@molecule/app-search-ui-angular 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 +1274 -2
- package/dist/highlight.component.d.ts +33 -0
- package/dist/highlight.component.d.ts.map +1 -0
- package/dist/highlight.component.js +84 -0
- package/dist/highlight.component.js.map +1 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +99 -0
- package/dist/index.js.map +1 -0
- package/dist/kbd.component.d.ts +28 -0
- package/dist/kbd.component.d.ts.map +1 -0
- package/dist/kbd.component.js +58 -0
- package/dist/kbd.component.js.map +1 -0
- package/dist/quick-search-dialog.component.d.ts +131 -0
- package/dist/quick-search-dialog.component.d.ts.map +1 -0
- package/dist/quick-search-dialog.component.js +297 -0
- package/dist/quick-search-dialog.component.js.map +1 -0
- package/dist/search-box.component.d.ts +266 -0
- package/dist/search-box.component.d.ts.map +1 -0
- package/dist/search-box.component.js +654 -0
- package/dist/search-box.component.js.map +1 -0
- package/dist/search-results.component.d.ts +174 -0
- package/dist/search-results.component.d.ts.map +1 -0
- package/dist/search-results.component.js +519 -0
- package/dist/search-results.component.js.map +1 -0
- package/dist/types.d.ts +172 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/package.json +77 -4
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { afterNextRender, Component, } from '@angular/core';
|
|
2
|
+
import { useTranslation } from '@molecule/app-angular';
|
|
3
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
4
|
+
import { Modal } from '@molecule/app-ui-angular';
|
|
5
|
+
import { Kbd } from './kbd.component.js';
|
|
6
|
+
import { SearchBox } from './search-box.component.js';
|
|
7
|
+
import { SearchResults } from './search-results.component.js';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
const _c0 = () => [];
|
|
10
|
+
function QuickSearchDialog_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
12
|
+
i0.ɵɵelementStart(0, "mol-modal", 1);
|
|
13
|
+
i0.ɵɵlistener("close", function QuickSearchDialog_Conditional_0_Template_mol_modal_close_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.emitClose()); });
|
|
14
|
+
i0.ɵɵelement(1, "div", 2);
|
|
15
|
+
i0.ɵɵelementStart(2, "div");
|
|
16
|
+
i0.ɵɵelement(3, "mol-search-results", 3);
|
|
17
|
+
i0.ɵɵelementEnd();
|
|
18
|
+
i0.ɵɵelementStart(4, "p")(5, "kbd", 4);
|
|
19
|
+
i0.ɵɵtext(6, "\u2191");
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
i0.ɵɵelementStart(7, "kbd", 4);
|
|
22
|
+
i0.ɵɵtext(8, "\u2193");
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementStart(9, "kbd", 4);
|
|
25
|
+
i0.ɵɵtext(10, "\u21B5");
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementStart(11, "kbd", 4);
|
|
28
|
+
i0.ɵɵtext(12, "esc");
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
i0.ɵɵtext(13);
|
|
31
|
+
i0.ɵɵelementEnd()();
|
|
32
|
+
} if (rf & 2) {
|
|
33
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
34
|
+
i0.ɵɵproperty("open", true)("size", "lg")("closeOnEscape", false)("showCloseButton", false)("closeLabel", ctx_r1.closeLabel());
|
|
35
|
+
i0.ɵɵattribute("aria-label", ctx_r1.label ?? ctx_r1.dialogLabel())("data-mol-id", ctx_r1.id());
|
|
36
|
+
i0.ɵɵadvance();
|
|
37
|
+
i0.ɵɵproperty("value", ctx_r1.read(ctx_r1.session.query))("onChange", ctx_r1.setQuery())("onKeyDown", ctx_r1.sessionKeyDown())("inputRef", ctx_r1.session.inputRef)("placeholder", ctx_r1.placeholder)("count", ctx_r1.read(ctx_r1.session.active) ? ctx_r1.read(ctx_r1.session.hits).length : undefined)("filters", ctx_r1.read(ctx_r1.session.parsed).filters)("onRemoveFilter", ctx_r1.removeFilter())("onClear", ctx_r1.clearSession())("examples", ctx_r1.examples)("shortcut", null)("molId", ctx_r1.id());
|
|
38
|
+
i0.ɵɵadvance();
|
|
39
|
+
i0.ɵɵclassMap(ctx_r1.cm().cn(ctx_r1.cm().dialogBody));
|
|
40
|
+
i0.ɵɵattribute("data-mol-id", ctx_r1.id() + "-pane");
|
|
41
|
+
i0.ɵɵadvance();
|
|
42
|
+
i0.ɵɵproperty("hits", ctx_r1.read(ctx_r1.session.active) ? ctx_r1.read(ctx_r1.session.hits) : i0.ɵɵpureFunction0(35, _c0))("view", ctx_r1.view)("activeIndex", ctx_r1.read(ctx_r1.session.activeIndex))("onActivate", ctx_r1.setActiveIndex())("onOpen", ctx_r1.openDoc())("onPrefetch", ctx_r1.prefetchDoc())("renderLink", ctx_r1.renderLink)("emptyText", ctx_r1.paneEmptyText())("molId", ctx_r1.id());
|
|
43
|
+
i0.ɵɵadvance();
|
|
44
|
+
i0.ɵɵclassMap(ctx_r1.cm().cn(ctx_r1.cm().dialogFooter, ctx_r1.cm().resultMeta));
|
|
45
|
+
i0.ɵɵattribute("data-mol-id", ctx_r1.id() + "-keys");
|
|
46
|
+
i0.ɵɵadvance(9);
|
|
47
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.keysText(), " ");
|
|
48
|
+
} }
|
|
49
|
+
/**
|
|
50
|
+
* Whether a session field is a signal (what a `useSearchSession` result
|
|
51
|
+
* holds) rather than a plain value.
|
|
52
|
+
*
|
|
53
|
+
* @param value - The session field.
|
|
54
|
+
* @returns True for a signal.
|
|
55
|
+
*/
|
|
56
|
+
const isSignalValue = (value) => typeof value === 'function';
|
|
57
|
+
/**
|
|
58
|
+
* Reads a session field, calling a signal and passing a plain value through,
|
|
59
|
+
* so the dialog takes a session from `useSearchSession` or a plain object
|
|
60
|
+
* alike.
|
|
61
|
+
*
|
|
62
|
+
* @param value - The session field.
|
|
63
|
+
* @returns The value.
|
|
64
|
+
*/
|
|
65
|
+
const read = (value) => (isSignalValue(value) ? value() : value);
|
|
66
|
+
/**
|
|
67
|
+
* QuickSearchDialog component.
|
|
68
|
+
*
|
|
69
|
+
* A search dialog for `mod+k`: the box on top with focus, the hits below in
|
|
70
|
+
* a scrolling pane, and the key hints in the footer. Before anything is
|
|
71
|
+
* typed the pane shows `idleText` rather than a browse list. Enter opens the active
|
|
72
|
+
* hit through the session (which closes the dialog by the caller's `onOpen`).
|
|
73
|
+
* The dialog is named for screen readers through `label` (or the translated
|
|
74
|
+
* "Search" default). React renders `null` while closed, so the host is
|
|
75
|
+
* unwrapped (`data-parity-unwrap`, `display: contents`) and renders exactly
|
|
76
|
+
* React's node list — nothing at all while closed.
|
|
77
|
+
*/
|
|
78
|
+
export class QuickSearchDialog {
|
|
79
|
+
/** Whether the dialog is open. Rendered only while open. */
|
|
80
|
+
open = false;
|
|
81
|
+
/** Close it (Escape with nothing typed, the overlay, or after opening a hit). */
|
|
82
|
+
onClose;
|
|
83
|
+
/** The search session (from `useSearchSession`), created with `syncUrl: false` and `onEscape: onClose`. */
|
|
84
|
+
session;
|
|
85
|
+
/** How a hit renders. */
|
|
86
|
+
view;
|
|
87
|
+
/** Placeholder for the box, already translated. */
|
|
88
|
+
placeholder = '';
|
|
89
|
+
/** Example tokens for the tips line. */
|
|
90
|
+
examples;
|
|
91
|
+
/** Shown while the text matches nothing, already translated. */
|
|
92
|
+
emptyText = '';
|
|
93
|
+
/** Shown before anything is typed, already translated. Defaults to the empty text. */
|
|
94
|
+
idleText;
|
|
95
|
+
/** Renders each row's link; a `TemplateRef` whose context carries the link props as `$implicit`. */
|
|
96
|
+
renderLink;
|
|
97
|
+
/**
|
|
98
|
+
* The dialog's accessible name, already translated (like `placeholder`, it
|
|
99
|
+
* names nothing visible). Defaults to `t('searchUi.dialogLabel')`
|
|
100
|
+
* ("Search"); the field's placeholder already names the field.
|
|
101
|
+
*/
|
|
102
|
+
label;
|
|
103
|
+
/** `data-mol-id` prefix. Defaults to `quick-search`. */
|
|
104
|
+
molId;
|
|
105
|
+
/** i18n handle, read in an injection context. */
|
|
106
|
+
t = useTranslation().t;
|
|
107
|
+
/**
|
|
108
|
+
* The current class map.
|
|
109
|
+
* @returns The UIClassMap.
|
|
110
|
+
*/
|
|
111
|
+
cm() {
|
|
112
|
+
return getClassMap();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Reads a session field, unwrapping a signal and passing a plain value
|
|
116
|
+
* through.
|
|
117
|
+
*
|
|
118
|
+
* @param value - The session field.
|
|
119
|
+
* @returns The value.
|
|
120
|
+
*/
|
|
121
|
+
read(value) {
|
|
122
|
+
return read(value);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The `data-mol-id` prefix (React's default parameter).
|
|
126
|
+
* @returns The prefix.
|
|
127
|
+
*/
|
|
128
|
+
id() {
|
|
129
|
+
return this.molId ?? 'quick-search';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The Modal's close label, translated like React passes it.
|
|
133
|
+
* @returns The label.
|
|
134
|
+
*/
|
|
135
|
+
closeLabel() {
|
|
136
|
+
return this.t('searchUi.close', undefined, { defaultValue: 'Close' });
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* The dialog's accessible name when no `label` is passed, translated like
|
|
140
|
+
* React passes it.
|
|
141
|
+
* @returns The default name ("Search").
|
|
142
|
+
*/
|
|
143
|
+
dialogLabel() {
|
|
144
|
+
return this.t('searchUi.dialogLabel', undefined, { defaultValue: 'Search' });
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The keys sentence (the footer's last text).
|
|
148
|
+
* @returns The translated text.
|
|
149
|
+
*/
|
|
150
|
+
keysText() {
|
|
151
|
+
return this.t('searchUi.dialogKeys', undefined, {
|
|
152
|
+
defaultValue: 'The arrow keys move through the results, Enter opens one, Escape closes.',
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* The pane's empty text: the empty text while the session is active, else
|
|
157
|
+
* the idle text (which falls back to the empty text).
|
|
158
|
+
* @returns The text.
|
|
159
|
+
*/
|
|
160
|
+
paneEmptyText() {
|
|
161
|
+
return read(this.session.active) ? this.emptyText : (this.idleText ?? this.emptyText);
|
|
162
|
+
}
|
|
163
|
+
/** Reports the session's `setQuery` as the box's `onChange`. */
|
|
164
|
+
setQuery() {
|
|
165
|
+
return (value) => this.session.setQuery(value);
|
|
166
|
+
}
|
|
167
|
+
/** Reports the session's `onKeyDown` as the box's key handling. */
|
|
168
|
+
sessionKeyDown() {
|
|
169
|
+
return (event) => this.session.onKeyDown(event);
|
|
170
|
+
}
|
|
171
|
+
/** Reports the session's `removeFilter` as the box's chip removal. */
|
|
172
|
+
removeFilter() {
|
|
173
|
+
return (index) => this.session.removeFilter(index);
|
|
174
|
+
}
|
|
175
|
+
/** Reports the session's `clear` as the box's clear callback. */
|
|
176
|
+
clearSession() {
|
|
177
|
+
return () => this.session.clear();
|
|
178
|
+
}
|
|
179
|
+
/** Reports the session's `setActiveIndex` as the list's activation. */
|
|
180
|
+
setActiveIndex() {
|
|
181
|
+
return (index) => this.session.setActiveIndex(index);
|
|
182
|
+
}
|
|
183
|
+
/** Reports the session's `open` as the list's open callback. */
|
|
184
|
+
openDoc() {
|
|
185
|
+
return (doc) => this.session.open(doc);
|
|
186
|
+
}
|
|
187
|
+
/** Reports the session's `prefetch` as the list's prefetch callback. */
|
|
188
|
+
prefetchDoc() {
|
|
189
|
+
return (doc) => this.session.prefetch(doc);
|
|
190
|
+
}
|
|
191
|
+
/** Closes the dialog through the caller's `onClose`. */
|
|
192
|
+
emitClose() {
|
|
193
|
+
this.onClose?.();
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Focus moves into the field after the first render, the way React's effect
|
|
197
|
+
* keyed on `open` and `session.inputRef` does. The move runs after the view
|
|
198
|
+
* check: focusing during it would fire the field's `focusin` listeners while
|
|
199
|
+
* Angular is still checking, and a state change they make would never render.
|
|
200
|
+
*/
|
|
201
|
+
constructor() {
|
|
202
|
+
afterNextRender(() => this.focusField());
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Focuses after an open flip too; the field mounts within the same change
|
|
206
|
+
* detection pass, and the focus waits one microtask for it.
|
|
207
|
+
*
|
|
208
|
+
* @param changes - The changed inputs.
|
|
209
|
+
*/
|
|
210
|
+
ngOnChanges(changes) {
|
|
211
|
+
if (changes['open'] && this.open)
|
|
212
|
+
queueMicrotask(() => this.focusField());
|
|
213
|
+
}
|
|
214
|
+
/** Focuses the session's input while the dialog is open. */
|
|
215
|
+
focusField() {
|
|
216
|
+
if (this.open)
|
|
217
|
+
this.session.inputRef.current?.focus();
|
|
218
|
+
}
|
|
219
|
+
static ɵfac = function QuickSearchDialog_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QuickSearchDialog)(); };
|
|
220
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QuickSearchDialog, selectors: [["mol-quick-search-dialog"]], hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { open: "open", onClose: "onClose", session: "session", view: "view", placeholder: "placeholder", examples: "examples", emptyText: "emptyText", idleText: "idleText", renderLink: "renderLink", label: "label", molId: "molId" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[3, "open", "size", "closeOnEscape", "showCloseButton", "closeLabel"], [3, "close", "open", "size", "closeOnEscape", "showCloseButton", "closeLabel"], ["mol-search-box", "", 3, "value", "onChange", "onKeyDown", "inputRef", "placeholder", "count", "filters", "onRemoveFilter", "onClear", "examples", "shortcut", "molId"], [3, "hits", "view", "activeIndex", "onActivate", "onOpen", "onPrefetch", "renderLink", "emptyText", "molId"], ["mol-kbd", ""]], template: function QuickSearchDialog_Template(rf, ctx) { if (rf & 1) {
|
|
221
|
+
i0.ɵɵconditionalCreate(0, QuickSearchDialog_Conditional_0_Template, 14, 36, "mol-modal", 0);
|
|
222
|
+
} if (rf & 2) {
|
|
223
|
+
i0.ɵɵconditional(ctx.open ? 0 : -1);
|
|
224
|
+
} }, dependencies: [Kbd, Modal, SearchBox, SearchResults], encapsulation: 2 });
|
|
225
|
+
}
|
|
226
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QuickSearchDialog, [{
|
|
227
|
+
type: Component,
|
|
228
|
+
args: [{
|
|
229
|
+
selector: 'mol-quick-search-dialog',
|
|
230
|
+
standalone: true,
|
|
231
|
+
imports: [Kbd, Modal, SearchBox, SearchResults],
|
|
232
|
+
inputs: [
|
|
233
|
+
'open',
|
|
234
|
+
'onClose',
|
|
235
|
+
'session',
|
|
236
|
+
'view',
|
|
237
|
+
'placeholder',
|
|
238
|
+
'examples',
|
|
239
|
+
'emptyText',
|
|
240
|
+
'idleText',
|
|
241
|
+
'renderLink',
|
|
242
|
+
'label',
|
|
243
|
+
'molId',
|
|
244
|
+
],
|
|
245
|
+
host: {
|
|
246
|
+
'data-parity-unwrap': '',
|
|
247
|
+
style: 'display: contents',
|
|
248
|
+
},
|
|
249
|
+
template: `@if (open) {
|
|
250
|
+
<mol-modal
|
|
251
|
+
[open]="true"
|
|
252
|
+
(close)="emitClose()"
|
|
253
|
+
[size]="'lg'"
|
|
254
|
+
[closeOnEscape]="false"
|
|
255
|
+
[showCloseButton]="false"
|
|
256
|
+
[closeLabel]="closeLabel()"
|
|
257
|
+
[attr.aria-label]="label ?? dialogLabel()"
|
|
258
|
+
[attr.data-mol-id]="id()"
|
|
259
|
+
>
|
|
260
|
+
<div
|
|
261
|
+
mol-search-box
|
|
262
|
+
[value]="read(session.query)"
|
|
263
|
+
[onChange]="setQuery()"
|
|
264
|
+
[onKeyDown]="sessionKeyDown()"
|
|
265
|
+
[inputRef]="session.inputRef"
|
|
266
|
+
[placeholder]="placeholder"
|
|
267
|
+
[count]="read(session.active) ? read(session.hits).length : undefined"
|
|
268
|
+
[filters]="read(session.parsed).filters"
|
|
269
|
+
[onRemoveFilter]="removeFilter()"
|
|
270
|
+
[onClear]="clearSession()"
|
|
271
|
+
[examples]="examples"
|
|
272
|
+
[shortcut]="null"
|
|
273
|
+
[molId]="id()"
|
|
274
|
+
></div>
|
|
275
|
+
<div [class]="cm().cn(cm().dialogBody)" [attr.data-mol-id]="id() + '-pane'">
|
|
276
|
+
<mol-search-results
|
|
277
|
+
[hits]="read(session.active) ? read(session.hits) : []"
|
|
278
|
+
[view]="view"
|
|
279
|
+
[activeIndex]="read(session.activeIndex)"
|
|
280
|
+
[onActivate]="setActiveIndex()"
|
|
281
|
+
[onOpen]="openDoc()"
|
|
282
|
+
[onPrefetch]="prefetchDoc()"
|
|
283
|
+
[renderLink]="renderLink"
|
|
284
|
+
[emptyText]="paneEmptyText()"
|
|
285
|
+
[molId]="id()"
|
|
286
|
+
/>
|
|
287
|
+
</div>
|
|
288
|
+
<p [class]="cm().cn(cm().dialogFooter, cm().resultMeta)" [attr.data-mol-id]="id() + '-keys'">
|
|
289
|
+
<kbd mol-kbd>↑</kbd> <kbd mol-kbd>↓</kbd> <kbd mol-kbd>↵</kbd> <kbd mol-kbd>esc</kbd>
|
|
290
|
+
{{ keysText() }}
|
|
291
|
+
</p>
|
|
292
|
+
</mol-modal>
|
|
293
|
+
}`,
|
|
294
|
+
}]
|
|
295
|
+
}], () => [], null); })();
|
|
296
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QuickSearchDialog, { className: "QuickSearchDialog", filePath: "quick-search-dialog.component.ts", lineNumber: 126 }); })();
|
|
297
|
+
//# sourceMappingURL=quick-search-dialog.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-search-dialog.component.js","sourceRoot":"","sources":["../src/quick-search-dialog.component.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,eAAe,EACf,SAAS,GAIV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAItD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAEhD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;;;;;IAwDzD,oCASC;IAPC,wLAAS,kBAAW,KAAC;IAQrB,yBAcO;IACP,2BAA4E;IAC1E,wCAUE;IACJ,iBAAM;IAEJ,AADF,yBAA6F,aAC9E;IAAA,sBAAC;IAAA,iBAAM;IAAC,8BAAa;IAAA,sBAAC;IAAA,iBAAM;IAAC,8BAAa;IAAA,uBAAC;IAAA,iBAAM;IAAC,+BAAa;IAAA,oBAAG;IAAA,iBAAM;IACrF,aACF;IACF,AADE,iBAAI,EACM;;;IApCV,AADA,AADA,AADA,AAFA,2BAAa,cAEA,wBACU,0BACE,mCACE;;IAMzB,cAA6B;IAW7B,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,yDAA6B,+BACN,sCACO,qCACD,mCACF,mGAC2C,uDAC9B,yCACP,kCACP,6BACL,kBACJ,sBACH;IAEX,cAAkC;IAAlC,qDAAkC;;IAEnC,cAAuD;IAQvD,AADA,AADA,AADA,AADA,AADA,AADA,AADA,AADA,0HAAuD,qBAC1C,wDAC4B,uCACV,4BACX,oCACQ,iCACH,qCACI,sBACf;IAGf,cAAqD;IAArD,+EAAqD;;IAEtD,eACF;IADE,kDACF;;AA9FN;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,CAAI,KAAoB,EAAsB,EAAE,CAAC,OAAO,KAAK,KAA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ox component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { type AfterViewInit, type ElementRef, type OnChanges, type SimpleChanges, type WritableSignal } from '@angular/core';
|
|
7
|
+
import type { ClientSearchFilter } from '@molecule/app-client-search';
|
|
8
|
+
import type { UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/** One stable record per chip key, so the rendered chips follow React's keyed reuse. */
|
|
11
|
+
interface ChipRecord {
|
|
12
|
+
/** The chip's composite key (React's). */
|
|
13
|
+
key: string;
|
|
14
|
+
/** The chip's filter. */
|
|
15
|
+
filter: ClientSearchFilter;
|
|
16
|
+
/** The chip's index. */
|
|
17
|
+
index: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* SearchBox component.
|
|
21
|
+
*
|
|
22
|
+
* A search field: a leading icon, the input, a help icon that shows the
|
|
23
|
+
* syntax on hover, an × to clear, and the shortcut cap; under it, whatever
|
|
24
|
+
* `afterField` holds (projected as `[slot=afterField]`), then the active
|
|
25
|
+
* filters as removable chips and the hit count. The field stays mounted, and
|
|
26
|
+
* its text with it, across searches. The host IS the outer `<div>` React
|
|
27
|
+
* renders (`div[mol-search-box]`).
|
|
28
|
+
*/
|
|
29
|
+
export declare class SearchBox implements AfterViewInit, OnChanges {
|
|
30
|
+
/** The text. */
|
|
31
|
+
value: string;
|
|
32
|
+
/** Called with the new text on every keystroke. */
|
|
33
|
+
onChange?: (value: string) => void;
|
|
34
|
+
/** Key handling for the input (arrows, Enter, Escape), usually a session's `onKeyDown`. */
|
|
35
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
36
|
+
/** A ref to the input, so a shortcut can focus it. */
|
|
37
|
+
inputRef?: {
|
|
38
|
+
current: HTMLInputElement | null;
|
|
39
|
+
};
|
|
40
|
+
/** Placeholder, already translated. Also the accessible name unless `label` is given. */
|
|
41
|
+
placeholder: string;
|
|
42
|
+
/** Accessible name for the input, already translated. Defaults to `placeholder`. */
|
|
43
|
+
label?: string;
|
|
44
|
+
/** How many hits the current text has. Omit to show no count. */
|
|
45
|
+
count?: number;
|
|
46
|
+
/** Active `field:value` filters, shown as removable chips. */
|
|
47
|
+
filters?: ClientSearchFilter[];
|
|
48
|
+
/** Removes the i-th filter. */
|
|
49
|
+
onRemoveFilter?: (index: number) => void;
|
|
50
|
+
/** Clears the text. Shown as an × while there is text. */
|
|
51
|
+
onClear?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Example tokens for the search tips, e.g. `['category:auth', 'type:bond']`.
|
|
54
|
+
* Given, a help icon sits inside the field and shows the syntax on hover or
|
|
55
|
+
* focus. Omit for no help icon.
|
|
56
|
+
*/
|
|
57
|
+
examples?: string[];
|
|
58
|
+
/** The key that focuses the box, shown as a cap while it is empty. `null` hides it. Defaults to `/`. */
|
|
59
|
+
shortcut?: string | null;
|
|
60
|
+
/** Focus the input on mount. */
|
|
61
|
+
autoFocus?: boolean;
|
|
62
|
+
/** `data-mol-id` prefix: `<molId>-input`, `-clear`, `-help`, `-filter`, `-count`. */
|
|
63
|
+
molId?: string;
|
|
64
|
+
/** Extra classes composed onto the field. */
|
|
65
|
+
className?: string;
|
|
66
|
+
/** Whether the field holds focus (React's `focused` state). */
|
|
67
|
+
readonly focused: WritableSignal<boolean>;
|
|
68
|
+
/** The input element, read for the ref and the focus requests. */
|
|
69
|
+
searchInput?: ElementRef<HTMLInputElement>;
|
|
70
|
+
/** Schedules the deferred focus from the view hooks (outside an injection context). */
|
|
71
|
+
private readonly injector;
|
|
72
|
+
/** i18n handle, read in an injection context. */
|
|
73
|
+
readonly t: (key: string, values?: import("@molecule/app-i18n").InterpolationValues, options?: import("@molecule/app-i18n").TranslateOptions) => string;
|
|
74
|
+
/**
|
|
75
|
+
* The current class map.
|
|
76
|
+
* @returns The UIClassMap.
|
|
77
|
+
*/
|
|
78
|
+
cm(): UIClassMap;
|
|
79
|
+
/**
|
|
80
|
+
* The `data-mol-id` prefix (React's default parameter).
|
|
81
|
+
* @returns The prefix.
|
|
82
|
+
*/
|
|
83
|
+
id(): string;
|
|
84
|
+
/**
|
|
85
|
+
* The active filters (React's default parameter: `[]`).
|
|
86
|
+
* @returns The filters.
|
|
87
|
+
*/
|
|
88
|
+
filterList(): ClientSearchFilter[];
|
|
89
|
+
/**
|
|
90
|
+
* The field's class list (`cm.searchField` + `className`).
|
|
91
|
+
* @returns The class string.
|
|
92
|
+
*/
|
|
93
|
+
fieldClasses(): string;
|
|
94
|
+
/**
|
|
95
|
+
* The input's accessible name (`label`, else the placeholder).
|
|
96
|
+
* @returns The accessible name.
|
|
97
|
+
*/
|
|
98
|
+
ariaLabel(): string;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the text is not blank, the branch that shows the count.
|
|
101
|
+
* @returns True while the text has content.
|
|
102
|
+
*/
|
|
103
|
+
hasText(): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the count shows: a count was given and the text is not blank.
|
|
106
|
+
* @returns True to show the count.
|
|
107
|
+
*/
|
|
108
|
+
showCount(): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the status row (chips and count) renders.
|
|
111
|
+
* @returns True when a chip or the count renders.
|
|
112
|
+
*/
|
|
113
|
+
hasStatus(): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the help icon renders (examples were given).
|
|
116
|
+
* @returns True to show the help icon.
|
|
117
|
+
*/
|
|
118
|
+
showHelp(): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* The example tokens plus the two always-present tokens, as React builds them.
|
|
121
|
+
* @returns The tips' example list.
|
|
122
|
+
*/
|
|
123
|
+
exampleList(): string[];
|
|
124
|
+
/**
|
|
125
|
+
* Whether the clear button shows: text present and `onClear` given.
|
|
126
|
+
* @returns True to show the clear button.
|
|
127
|
+
*/
|
|
128
|
+
showClear(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The shortcut cap's key, or null while hidden (React's default `/`).
|
|
131
|
+
* @returns The cap key or null.
|
|
132
|
+
*/
|
|
133
|
+
capKey(): string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Whether the cap shows: a key, no text, and the field not focused.
|
|
136
|
+
* @returns True to show the cap.
|
|
137
|
+
*/
|
|
138
|
+
showCap(): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* The cap's key text (a template may not bind a nullable value).
|
|
141
|
+
* @returns The key, or the empty string while hidden.
|
|
142
|
+
*/
|
|
143
|
+
shortcutText(): string;
|
|
144
|
+
/**
|
|
145
|
+
* The tips line's inline style (React's `whiteSpace`/`maxWidth`).
|
|
146
|
+
* @returns The style string.
|
|
147
|
+
*/
|
|
148
|
+
tipsStyle(): string;
|
|
149
|
+
/**
|
|
150
|
+
* A tips example's leading separator (' · ' from the second on), as React
|
|
151
|
+
* builds it.
|
|
152
|
+
*
|
|
153
|
+
* @param index - The example's index.
|
|
154
|
+
* @returns The separator text.
|
|
155
|
+
*/
|
|
156
|
+
separator(index: number): string;
|
|
157
|
+
/**
|
|
158
|
+
* The help icon's accessible label.
|
|
159
|
+
* @returns The translated label.
|
|
160
|
+
*/
|
|
161
|
+
helpLabel(): string;
|
|
162
|
+
/**
|
|
163
|
+
* The clear button's accessible label.
|
|
164
|
+
* @returns The translated label.
|
|
165
|
+
*/
|
|
166
|
+
clearLabel(): string;
|
|
167
|
+
/**
|
|
168
|
+
* The syntax sentence (the tips' first span).
|
|
169
|
+
* @returns The translated text.
|
|
170
|
+
*/
|
|
171
|
+
syntaxText(): string;
|
|
172
|
+
/**
|
|
173
|
+
* The keys sentence (the tips' last span).
|
|
174
|
+
* @returns The translated text.
|
|
175
|
+
*/
|
|
176
|
+
keysText(): string;
|
|
177
|
+
/**
|
|
178
|
+
* The hit-count text, or null while blank or without a count.
|
|
179
|
+
* @returns The translated count, or null.
|
|
180
|
+
*/
|
|
181
|
+
countText(): string | null;
|
|
182
|
+
/**
|
|
183
|
+
* A chip's text: a negation mark, the field and the accepted values.
|
|
184
|
+
*
|
|
185
|
+
* @param f - The filter.
|
|
186
|
+
* @returns The chip text.
|
|
187
|
+
*/
|
|
188
|
+
chipText(f: ClientSearchFilter): string;
|
|
189
|
+
/**
|
|
190
|
+
* A chip's accessible label (the removal announcement).
|
|
191
|
+
*
|
|
192
|
+
* @param f - The filter.
|
|
193
|
+
* @returns The translated label.
|
|
194
|
+
*/
|
|
195
|
+
chipLabel(f: ClientSearchFilter): string;
|
|
196
|
+
/**
|
|
197
|
+
* A chip's tracking key, React's composite key.
|
|
198
|
+
*
|
|
199
|
+
* @param f - The filter.
|
|
200
|
+
* @param index - The chip's index.
|
|
201
|
+
* @returns The key.
|
|
202
|
+
*/
|
|
203
|
+
chipKey(f: ClientSearchFilter, index: number): string;
|
|
204
|
+
/** The cached chip records and the key signature they were built from. */
|
|
205
|
+
private chipCache;
|
|
206
|
+
/**
|
|
207
|
+
* The chip records the template iterates: one stable wrapper per chip while
|
|
208
|
+
* the key sequence is unchanged, and fresh wrappers whenever it changes.
|
|
209
|
+
* React keys each chip by its composite key, so an unchanged key keeps the
|
|
210
|
+
* rendered chip (and everything stamped on it) while a changed key replaces
|
|
211
|
+
* it; Angular's keyed loop recomputes keys with the new indices and would
|
|
212
|
+
* reuse a view across a reorder, so the records — and the reuse they drive
|
|
213
|
+
* — are built here instead.
|
|
214
|
+
*
|
|
215
|
+
* @returns The chip records, in order.
|
|
216
|
+
*/
|
|
217
|
+
chipRecords(): ChipRecord[];
|
|
218
|
+
/**
|
|
219
|
+
* A chip's class list (`cm.filterChip`, negated when the filter negates).
|
|
220
|
+
*
|
|
221
|
+
* @param f - The filter.
|
|
222
|
+
* @returns The class string.
|
|
223
|
+
*/
|
|
224
|
+
chipClasses(f: ClientSearchFilter): string;
|
|
225
|
+
/**
|
|
226
|
+
* The value the controlled input restores after a keystroke the caller did
|
|
227
|
+
* not adopt, the way React renders its controlled input back.
|
|
228
|
+
* @returns The current prop value.
|
|
229
|
+
*/
|
|
230
|
+
restoreValue(): string;
|
|
231
|
+
/**
|
|
232
|
+
* Reports the typed text, then restores the field to the value the props
|
|
233
|
+
* still hold, the way React's controlled input renders it back when the
|
|
234
|
+
* caller keeps the old one.
|
|
235
|
+
*
|
|
236
|
+
* @param event - The input event.
|
|
237
|
+
*/
|
|
238
|
+
onType(event: Event): void;
|
|
239
|
+
/** Clears the text and puts focus back in the field, as React's button does. */
|
|
240
|
+
onClearClick(): void;
|
|
241
|
+
/**
|
|
242
|
+
* Assigns the input element into `inputRef`, as React's `ref` does, then
|
|
243
|
+
* requests the mount focus.
|
|
244
|
+
*/
|
|
245
|
+
ngAfterViewInit(): void;
|
|
246
|
+
/**
|
|
247
|
+
* Re-assigns the ref and re-runs the focus request when their inputs change,
|
|
248
|
+
* the way React's effect keyed on `autoFocus` and `inputRef` does.
|
|
249
|
+
*
|
|
250
|
+
* @param changes - The changed inputs.
|
|
251
|
+
*/
|
|
252
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
253
|
+
/**
|
|
254
|
+
* Schedules the focus request after the render, so the field exists and the
|
|
255
|
+
* `focusin` it fires reaches listeners after Angular has checked the view.
|
|
256
|
+
*/
|
|
257
|
+
private scheduleFocus;
|
|
258
|
+
/** Writes the input element into `inputRef`, as React's `ref` does. */
|
|
259
|
+
private captureRef;
|
|
260
|
+
/** Focuses the input when `autoFocus` asks and the element exists. */
|
|
261
|
+
private focusIfAsked;
|
|
262
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBox, never>;
|
|
263
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBox, "div[mol-search-box]", never, { "value": { "alias": "value"; "required": false; }; "onChange": { "alias": "onChange"; "required": false; }; "onKeyDown": { "alias": "onKeyDown"; "required": false; }; "inputRef": { "alias": "inputRef"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "count": { "alias": "count"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "onRemoveFilter": { "alias": "onRemoveFilter"; "required": false; }; "onClear": { "alias": "onClear"; "required": false; }; "examples": { "alias": "examples"; "required": false; }; "shortcut": { "alias": "shortcut"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "molId": { "alias": "molId"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["[slot=afterField]"], true, never>;
|
|
264
|
+
}
|
|
265
|
+
export {};
|
|
266
|
+
//# sourceMappingURL=search-box.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-box.component.d.ts","sourceRoot":"","sources":["../src/search-box.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,UAAU,EAGf,KAAK,SAAS,EAEd,KAAK,aAAa,EAElB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAMlD,wFAAwF;AACxF,UAAU,UAAU;IAClB,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,MAAM,EAAE,kBAAkB,CAAA;IAC1B,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;GASG;AACH,qBA8Ga,SAAU,YAAW,aAAa,EAAE,SAAS;IACxD,gBAAgB;IAChB,KAAK,SAAK;IACV,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,2FAA2F;IAC3F,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IAC1C,sDAAsD;IACtD,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAA;KAAE,CAAA;IAC/C,yFAAyF;IACzF,WAAW,SAAK;IAChB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iE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