Added fuzzy search to the editor. Missing proper index handling of the plan display, I'd like to keep original indices on the filtered results
parent
c754789ffb
commit
a81bcc908f
@ -1,68 +1,68 @@
|
|||||||
:host {
|
:host {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 0 25px 25px 0;
|
margin: 0 25px 25px 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
flex-grow: 1 1 auto;
|
flex-grow: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
border: solid 1px #ccc;
|
border: solid 1px #ccc;
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
display: block;
|
display: block;
|
||||||
padding-bottom: 50px;
|
padding-bottom: 50px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
padding: 20px 10px;
|
padding: 10px 5px;
|
||||||
border-bottom: solid 1px #ccc;
|
border-bottom: solid 1px #ccc;
|
||||||
color: rgba(0, 0, 0, 0.87);
|
color: rgba(0, 0, 0, 0.87);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
background: white;
|
background: white;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cdk-drag-preview {
|
.cdk-drag-preview {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
||||||
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
||||||
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cdk-drag-placeholder {
|
.cdk-drag-placeholder {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cdk-drag-animating {
|
.cdk-drag-animating {
|
||||||
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
transition: transform 75ms cubic-bezier(0, 0, 0.2, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.box:last-child {
|
.box:last-child {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list.cdk-drop-list-dragging .box:not(.cdk-drag-placeholder) {
|
.list.cdk-drop-list-dragging .box:not(.cdk-drag-placeholder) {
|
||||||
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
transition: transform 125ms cubic-bezier(0, 0, 0.2, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.editor-container {
|
.editor-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
import init, { Fuzzr } from 'fuzzr/pkg';
|
||||||
|
|
||||||
|
|
||||||
|
export function initFuzzr() {
|
||||||
|
return init("/fuzzr/pkg/fuzzr_bg.wasm")
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Fuzzr };
|
Loading…
Reference in new issue