@molecule/app-search-ui-vue 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +663 -2
- package/dist/Highlight.d.ts +34 -0
- package/dist/Highlight.d.ts.map +1 -0
- package/dist/Highlight.js +30 -0
- package/dist/Highlight.js.map +1 -0
- package/dist/Kbd.d.ts +22 -0
- package/dist/Kbd.d.ts.map +1 -0
- package/dist/Kbd.js +44 -0
- package/dist/Kbd.js.map +1 -0
- package/dist/QuickSearchDialog.d.ts +119 -0
- package/dist/QuickSearchDialog.d.ts.map +1 -0
- package/dist/QuickSearchDialog.js +150 -0
- package/dist/QuickSearchDialog.js.map +1 -0
- package/dist/SearchBox.d.ts +152 -0
- package/dist/SearchBox.d.ts.map +1 -0
- package/dist/SearchBox.js +217 -0
- package/dist/SearchBox.js.map +1 -0
- package/dist/SearchResults.d.ts +111 -0
- package/dist/SearchResults.d.ts.map +1 -0
- package/dist/SearchResults.js +179 -0
- package/dist/SearchResults.js.map +1 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +163 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +13 -0
- package/dist/types.js.map +1 -0
- package/package.json +71 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue marked text — the counterpart of `@molecule/app-search-ui-react`'s
|
|
3
|
+
* `Highlight`.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { defineComponent, h } from 'vue';
|
|
8
|
+
import { highlightMatches } from '@molecule/app-client-search';
|
|
9
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
10
|
+
/**
|
|
11
|
+
* Text with the matched terms marked: each term is marked where it starts a
|
|
12
|
+
* word, case-insensitively, through the ClassMap's `resultMark`.
|
|
13
|
+
*
|
|
14
|
+
* @param props - See {@link HighlightProps}.
|
|
15
|
+
* @returns The marked text component.
|
|
16
|
+
*/
|
|
17
|
+
export const Highlight = defineComponent({
|
|
18
|
+
name: 'Highlight',
|
|
19
|
+
props: {
|
|
20
|
+
text: { type: String, required: true },
|
|
21
|
+
terms: { type: Array, required: true },
|
|
22
|
+
},
|
|
23
|
+
setup(props) {
|
|
24
|
+
return () => {
|
|
25
|
+
const cm = getClassMap();
|
|
26
|
+
return highlightMatches(props.text, props.terms).map((seg) => seg.hit ? h('mark', { class: cm.resultMark }, [seg.text]) : seg.text);
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=Highlight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Highlight.js","sourceRoot":"","sources":["../src/Highlight.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,CAAC,EAAkC,MAAM,KAAK,CAAA;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC;IACvC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtC,KAAK,EAAE,EAAE,IAAI,EAAE,KAA2B,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC7D;IACD,KAAK,CAAC,KAAK;QACT,OAAO,GAAiB,EAAE;YACxB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;YACxB,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAC3D,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CACrE,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
|
package/dist/Kbd.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue key cap — the counterpart of `@molecule/app-search-ui-react`'s `Kbd`.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { type VNode } from 'vue';
|
|
7
|
+
/**
|
|
8
|
+
* A key cap, for shortcut hints (`/` to focus, `↵` to open). The cap shows a
|
|
9
|
+
* key name, not prose (a physical key such as `esc` reads the same in every
|
|
10
|
+
* language), so it carries HTML's own `translate="no"`.
|
|
11
|
+
*
|
|
12
|
+
* @param props - See {@link KbdProps}.
|
|
13
|
+
* @returns The key cap component.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Kbd: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
|
+
children: null;
|
|
17
|
+
className: StringConstructor;
|
|
18
|
+
}>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
children: null;
|
|
20
|
+
className: StringConstructor;
|
|
21
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
//# sourceMappingURL=Kbd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../src/Kbd.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsB,KAAK,KAAK,EAAmB,MAAM,KAAK,CAAA;AAqBrE;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG;;;UAOD,KAAK;;;iGASlB,CAAA"}
|
package/dist/Kbd.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue key cap — the counterpart of `@molecule/app-search-ui-react`'s `Kbd`.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { defineComponent, h } from 'vue';
|
|
7
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
8
|
+
/**
|
|
9
|
+
* Resolves a node-valued prop that may also arrive as the default slot: the
|
|
10
|
+
* slot wins, and an absent pair contributes nothing.
|
|
11
|
+
*
|
|
12
|
+
* @param slot - The default slot's render function, when the caller passed it.
|
|
13
|
+
* @param prop - The prop value, when the caller passed the prop.
|
|
14
|
+
* @returns The children to render.
|
|
15
|
+
*/
|
|
16
|
+
const childrenOf = (slot, prop) => {
|
|
17
|
+
if (slot)
|
|
18
|
+
return slot();
|
|
19
|
+
if (prop === undefined || prop === null || prop === false)
|
|
20
|
+
return [];
|
|
21
|
+
return Array.isArray(prop) ? prop : [prop];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A key cap, for shortcut hints (`/` to focus, `↵` to open). The cap shows a
|
|
25
|
+
* key name, not prose (a physical key such as `esc` reads the same in every
|
|
26
|
+
* language), so it carries HTML's own `translate="no"`.
|
|
27
|
+
*
|
|
28
|
+
* @param props - See {@link KbdProps}.
|
|
29
|
+
* @returns The key cap component.
|
|
30
|
+
*/
|
|
31
|
+
export const Kbd = defineComponent({
|
|
32
|
+
name: 'Kbd',
|
|
33
|
+
props: {
|
|
34
|
+
children: null,
|
|
35
|
+
className: String,
|
|
36
|
+
},
|
|
37
|
+
setup(props, { slots }) {
|
|
38
|
+
return () => {
|
|
39
|
+
const cm = getClassMap();
|
|
40
|
+
return h('kbd', { class: cm.cn(cm.kbd, props.className), translate: 'no' }, childrenOf(slots.default, props.children));
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43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,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue quick-search dialog — the counterpart of
|
|
3
|
+
* `@molecule/app-search-ui-react`'s `QuickSearchDialog`.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { type PropType, type VNodeChild } from 'vue';
|
|
8
|
+
import type { ClientSearchDocument } from '@molecule/app-client-search';
|
|
9
|
+
import type { SearchSession } from '@molecule/app-client-search-vue';
|
|
10
|
+
import type { SearchResultLinkProps, SearchResultView } from './types.js';
|
|
11
|
+
/**
|
|
12
|
+
* A search dialog for `mod+k`: the box on top with focus, the hits below in
|
|
13
|
+
* a scrolling pane, and the key hints in the footer. Before anything is
|
|
14
|
+
* typed the pane shows `idleText` rather than a browse list. Enter opens the active
|
|
15
|
+
* hit through the session (which closes the dialog by the caller's `onOpen`).
|
|
16
|
+
* The dialog is named for screen readers through `label` (or the translated
|
|
17
|
+
* "Search" default).
|
|
18
|
+
*
|
|
19
|
+
* @param props - See {@link QuickSearchDialogProps}.
|
|
20
|
+
* @returns The dialog component.
|
|
21
|
+
*/
|
|
22
|
+
export declare const QuickSearchDialog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
23
|
+
open: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
onClose: {
|
|
28
|
+
type: PropType<() => void>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
session: {
|
|
32
|
+
type: PropType<SearchSession<ClientSearchDocument>>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
view: {
|
|
36
|
+
type: PropType<(doc: unknown) => SearchResultView>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
placeholder: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
examples: {
|
|
44
|
+
type: PropType<string[]>;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
emptyText: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
idleText: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
renderLink: {
|
|
56
|
+
type: PropType<((linkProps: SearchResultLinkProps) => VNodeChild) | undefined>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
label: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
molId: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
open: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
onClose: {
|
|
73
|
+
type: PropType<() => void>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
session: {
|
|
77
|
+
type: PropType<SearchSession<ClientSearchDocument>>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
view: {
|
|
81
|
+
type: PropType<(doc: unknown) => SearchResultView>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
placeholder: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
examples: {
|
|
89
|
+
type: PropType<string[]>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
emptyText: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
idleText: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
renderLink: {
|
|
101
|
+
type: PropType<((linkProps: SearchResultLinkProps) => VNodeChild) | undefined>;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
label: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
molId: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{}>, {
|
|
113
|
+
label: string;
|
|
114
|
+
examples: string[];
|
|
115
|
+
molId: string;
|
|
116
|
+
renderLink: ((linkProps: SearchResultLinkProps) => VNodeChild) | undefined;
|
|
117
|
+
idleText: string;
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
|
+
//# sourceMappingURL=QuickSearchDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickSearchDialog.d.ts","sourceRoot":"","sources":["../src/QuickSearchDialog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAKL,KAAK,QAAQ,EAGb,KAAK,UAAU,EAEhB,MAAM,KAAK,CAAA;AAEZ,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAQpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAsBzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;;;;;cAIG,QAAQ,CAAC,MAAM,IAAI,CAAC;;;;cAE/B,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;;;;cAI3C,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,gBAAgB,CAAC;;;;;;;;cAIrC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;cAIzB,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,qBAAqB,KAAK,UAAU,CAAC,GAAG,SAAS,CAAC;;;;;;;;;;;UAwBjF,UAAU;;;;;;cAtCQ,QAAQ,CAAC,MAAM,IAAI,CAAC;;;;cAE/B,QAAQ,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;;;;cAI3C,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,gBAAgB,CAAC;;;;;;;;cAIrC,QAAQ,CAAC,MAAM,EAAE,CAAC;;;;;;;;;;;;cAIzB,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,qBAAqB,KAAK,UAAU,CAAC,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;6BAAlD,qBAAqB,KAAK,UAAU;;4EAoGhF,CAAA"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue quick-search dialog — the counterpart of
|
|
3
|
+
* `@molecule/app-search-ui-react`'s `QuickSearchDialog`.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { defineComponent, h, nextTick, onMounted, toValue, watch, } from 'vue';
|
|
8
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { Modal } from '@molecule/app-ui-vue';
|
|
10
|
+
import { useTranslation } from '@molecule/app-vue';
|
|
11
|
+
import { Kbd } from './Kbd.js';
|
|
12
|
+
import { SearchBox } from './SearchBox.js';
|
|
13
|
+
import { SearchResults } from './SearchResults.js';
|
|
14
|
+
/**
|
|
15
|
+
* Reads a session field, unwrapping the reactive container a Vue session
|
|
16
|
+
* holds it in (`Ref`/`ComputedRef`) and passing a plain value through, so the
|
|
17
|
+
* dialog takes a session from `useSearchSession` or a plain object alike.
|
|
18
|
+
*
|
|
19
|
+
* @param value - The session field.
|
|
20
|
+
* @returns The value.
|
|
21
|
+
*/
|
|
22
|
+
const read = (value) => toValue(value);
|
|
23
|
+
/**
|
|
24
|
+
* Whether a value is a search document, so a hit handed back by the list can
|
|
25
|
+
* reach the session's typed `open`/`prefetch` without a cast.
|
|
26
|
+
*
|
|
27
|
+
* @param value - The hit's document.
|
|
28
|
+
* @returns True for a record, which is what a `ClientSearchDocument` is.
|
|
29
|
+
*/
|
|
30
|
+
const isDocument = (value) => typeof value === 'object' && value !== null;
|
|
31
|
+
/**
|
|
32
|
+
* A search dialog for `mod+k`: the box on top with focus, the hits below in
|
|
33
|
+
* a scrolling pane, and the key hints in the footer. Before anything is
|
|
34
|
+
* typed the pane shows `idleText` rather than a browse list. Enter opens the active
|
|
35
|
+
* hit through the session (which closes the dialog by the caller's `onOpen`).
|
|
36
|
+
* The dialog is named for screen readers through `label` (or the translated
|
|
37
|
+
* "Search" default).
|
|
38
|
+
*
|
|
39
|
+
* @param props - See {@link QuickSearchDialogProps}.
|
|
40
|
+
* @returns The dialog component.
|
|
41
|
+
*/
|
|
42
|
+
export const QuickSearchDialog = defineComponent({
|
|
43
|
+
name: 'QuickSearchDialog',
|
|
44
|
+
props: {
|
|
45
|
+
open: { type: Boolean, required: true },
|
|
46
|
+
onClose: { type: Function, required: true },
|
|
47
|
+
session: {
|
|
48
|
+
type: Object,
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
view: {
|
|
52
|
+
type: Function,
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
placeholder: { type: String, required: true },
|
|
56
|
+
examples: { type: Array, default: undefined },
|
|
57
|
+
emptyText: { type: String, required: true },
|
|
58
|
+
idleText: { type: String, default: undefined },
|
|
59
|
+
renderLink: {
|
|
60
|
+
type: Function,
|
|
61
|
+
default: undefined,
|
|
62
|
+
},
|
|
63
|
+
label: { type: String, default: undefined },
|
|
64
|
+
molId: { type: String, default: 'quick-search' },
|
|
65
|
+
},
|
|
66
|
+
setup(props) {
|
|
67
|
+
const cm = getClassMap();
|
|
68
|
+
const { t } = useTranslation();
|
|
69
|
+
// The dialog pattern: focus moves into the field when it opens. The input
|
|
70
|
+
// is mounted only while open, so the focus waits one tick for the field
|
|
71
|
+
// to exist (React's effect runs after the child mounts).
|
|
72
|
+
const focusField = () => {
|
|
73
|
+
if (props.open)
|
|
74
|
+
props.session.inputRef.current?.focus();
|
|
75
|
+
};
|
|
76
|
+
onMounted(focusField);
|
|
77
|
+
watch(() => props.open, () => {
|
|
78
|
+
nextTick(focusField);
|
|
79
|
+
});
|
|
80
|
+
return () => {
|
|
81
|
+
if (!props.open)
|
|
82
|
+
return null;
|
|
83
|
+
const active = read(props.session.active);
|
|
84
|
+
const hits = read(props.session.hits);
|
|
85
|
+
return h(Modal, {
|
|
86
|
+
open: props.open,
|
|
87
|
+
onClose: props.onClose,
|
|
88
|
+
size: 'lg',
|
|
89
|
+
closeOnEscape: false,
|
|
90
|
+
showCloseButton: false,
|
|
91
|
+
closeLabel: t('searchUi.close', undefined, { defaultValue: 'Close' }),
|
|
92
|
+
'aria-label': props.label ?? t('searchUi.dialogLabel', undefined, { defaultValue: 'Search' }),
|
|
93
|
+
'data-mol-id': props.molId,
|
|
94
|
+
}, {
|
|
95
|
+
default: () => [
|
|
96
|
+
h(SearchBox, {
|
|
97
|
+
value: read(props.session.query),
|
|
98
|
+
onChange: (value) => props.session.setQuery(value),
|
|
99
|
+
onKeyDown: (event) => props.session.onKeyDown(event),
|
|
100
|
+
inputRef: props.session.inputRef,
|
|
101
|
+
placeholder: props.placeholder,
|
|
102
|
+
count: active ? hits.length : undefined,
|
|
103
|
+
filters: read(props.session.parsed).filters,
|
|
104
|
+
onRemoveFilter: (index) => props.session.removeFilter(index),
|
|
105
|
+
onClear: () => props.session.clear(),
|
|
106
|
+
examples: props.examples,
|
|
107
|
+
shortcut: null,
|
|
108
|
+
molId: props.molId,
|
|
109
|
+
}),
|
|
110
|
+
h('div', { class: cm.dialogBody, 'data-mol-id': `${props.molId}-pane` }, [
|
|
111
|
+
h(SearchResults, {
|
|
112
|
+
hits: active ? hits : [],
|
|
113
|
+
view: props.view,
|
|
114
|
+
activeIndex: read(props.session.activeIndex),
|
|
115
|
+
onActivate: (index) => props.session.setActiveIndex(index),
|
|
116
|
+
onOpen: (doc) => {
|
|
117
|
+
if (isDocument(doc))
|
|
118
|
+
props.session.open(doc);
|
|
119
|
+
},
|
|
120
|
+
onPrefetch: (doc) => {
|
|
121
|
+
if (isDocument(doc))
|
|
122
|
+
props.session.prefetch(doc);
|
|
123
|
+
},
|
|
124
|
+
renderLink: props.renderLink,
|
|
125
|
+
emptyText: active ? props.emptyText : (props.idleText ?? props.emptyText),
|
|
126
|
+
molId: props.molId,
|
|
127
|
+
}),
|
|
128
|
+
]),
|
|
129
|
+
h('p', {
|
|
130
|
+
class: cm.cn(cm.dialogFooter, cm.resultMeta),
|
|
131
|
+
'data-mol-id': `${props.molId}-keys`,
|
|
132
|
+
}, [
|
|
133
|
+
h(Kbd, () => ['↑']),
|
|
134
|
+
' ',
|
|
135
|
+
h(Kbd, () => ['↓']),
|
|
136
|
+
' ',
|
|
137
|
+
h(Kbd, () => ['↵']),
|
|
138
|
+
' ',
|
|
139
|
+
h(Kbd, () => ['esc']),
|
|
140
|
+
' ',
|
|
141
|
+
t('searchUi.dialogKeys', undefined, {
|
|
142
|
+
defaultValue: 'The arrow keys move through the results, Enter opens one, Escape closes.',
|
|
143
|
+
}),
|
|
144
|
+
]),
|
|
145
|
+
],
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
//# sourceMappingURL=QuickSearchDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickSearchDialog.js","sourceRoot":"","sources":["../src/QuickSearchDialog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,eAAe,EACf,CAAC,EACD,QAAQ,EACR,SAAS,EAGT,OAAO,EAEP,KAAK,GACN,MAAM,KAAK,CAAA;AAIZ,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAA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;4BAClC,YAAY,EACV,0EAA0E;yBAC7E,CAAC;qBACH,CACF;iBACF;aACF,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue search field — the counterpart of `@molecule/app-search-ui-react`'s
|
|
3
|
+
* `SearchBox`.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { type PropType, type VNode } from 'vue';
|
|
8
|
+
import type { ClientSearchFilter } from '@molecule/app-client-search';
|
|
9
|
+
import type { SearchBoxProps } from './types.js';
|
|
10
|
+
/**
|
|
11
|
+
* A search field: a leading icon, the input, a help icon that shows the
|
|
12
|
+
* syntax on hover, an × to clear, and the shortcut cap; under it, whatever
|
|
13
|
+
* `afterField` holds, then the active filters as removable chips and the
|
|
14
|
+
* hit count. The field stays mounted, and its text with it, across searches.
|
|
15
|
+
*
|
|
16
|
+
* @param props - See {@link SearchBoxProps}.
|
|
17
|
+
* @returns The field component.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SearchBox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
20
|
+
value: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
onChange: {
|
|
25
|
+
type: PropType<SearchBoxProps["onChange"]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
onKeyDown: {
|
|
29
|
+
type: PropType<SearchBoxProps["onKeyDown"]>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
inputRef: {
|
|
33
|
+
type: PropType<SearchBoxProps["inputRef"]>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
placeholder: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
count: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
filters: {
|
|
49
|
+
type: PropType<ClientSearchFilter[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
onRemoveFilter: {
|
|
53
|
+
type: PropType<SearchBoxProps["onRemoveFilter"]>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
onClear: {
|
|
57
|
+
type: PropType<SearchBoxProps["onClear"]>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
examples: {
|
|
61
|
+
type: PropType<string[]>;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
shortcut: {
|
|
65
|
+
type: null;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
autoFocus: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
afterField: null;
|
|
73
|
+
molId: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
className: StringConstructor;
|
|
78
|
+
}>, () => VNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
value: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
onChange: {
|
|
84
|
+
type: PropType<SearchBoxProps["onChange"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
onKeyDown: {
|
|
88
|
+
type: PropType<SearchBoxProps["onKeyDown"]>;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
inputRef: {
|
|
92
|
+
type: PropType<SearchBoxProps["inputRef"]>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
placeholder: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
required: true;
|
|
98
|
+
};
|
|
99
|
+
label: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
count: {
|
|
104
|
+
type: NumberConstructor;
|
|
105
|
+
default: undefined;
|
|
106
|
+
};
|
|
107
|
+
filters: {
|
|
108
|
+
type: PropType<ClientSearchFilter[]>;
|
|
109
|
+
default: () => never[];
|
|
110
|
+
};
|
|
111
|
+
onRemoveFilter: {
|
|
112
|
+
type: PropType<SearchBoxProps["onRemoveFilter"]>;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
onClear: {
|
|
116
|
+
type: PropType<SearchBoxProps["onClear"]>;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
examples: {
|
|
120
|
+
type: PropType<string[]>;
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
123
|
+
shortcut: {
|
|
124
|
+
type: null;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
autoFocus: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
afterField: null;
|
|
132
|
+
molId: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
className: StringConstructor;
|
|
137
|
+
}>> & Readonly<{}>, {
|
|
138
|
+
label: string;
|
|
139
|
+
onKeyDown: ((event: KeyboardEvent) => void) | undefined;
|
|
140
|
+
inputRef: {
|
|
141
|
+
current: HTMLInputElement | null;
|
|
142
|
+
} | undefined;
|
|
143
|
+
onRemoveFilter: ((index: number) => void) | undefined;
|
|
144
|
+
onClear: (() => void) | undefined;
|
|
145
|
+
count: number;
|
|
146
|
+
filters: ClientSearchFilter[];
|
|
147
|
+
examples: string[];
|
|
148
|
+
shortcut: any;
|
|
149
|
+
autoFocus: boolean;
|
|
150
|
+
molId: string;
|
|
151
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