@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.
@@ -0,0 +1,654 @@
1
+ /**
2
+ * SearchBox component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { afterNextRender, Component, inject, Injector, signal, ViewChild, } from '@angular/core';
7
+ import { useTranslation } from '@molecule/app-angular';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { Icon, Tooltip } from '@molecule/app-ui-angular';
10
+ import { Kbd } from './kbd.component.js';
11
+ import * as i0 from "@angular/core";
12
+ const _c0 = ["searchInput"];
13
+ const _c1 = [[["", "slot", "afterfield"]]];
14
+ const _c2 = ["[slot=afterField]"];
15
+ function SearchBox_Conditional_6_For_7_Template(rf, ctx) { if (rf & 1) {
16
+ i0.ɵɵelementStart(0, "span");
17
+ i0.ɵɵtext(1);
18
+ i0.ɵɵelementStart(2, "code");
19
+ i0.ɵɵtext(3);
20
+ i0.ɵɵelementEnd()();
21
+ } if (rf & 2) {
22
+ const ex_r1 = ctx.$implicit;
23
+ const ɵ$index_23_r2 = ctx.$index;
24
+ const ctx_r2 = i0.ɵɵnextContext(2);
25
+ i0.ɵɵadvance();
26
+ i0.ɵɵtextInterpolate(ctx_r2.separator(ɵ$index_23_r2));
27
+ i0.ɵɵadvance(2);
28
+ i0.ɵɵtextInterpolate(ex_r1);
29
+ } }
30
+ function SearchBox_Conditional_6_Template(rf, ctx) { if (rf & 1) {
31
+ i0.ɵɵelementStart(0, "mol-tooltip", 4)(1, "button", 8);
32
+ i0.ɵɵnamespaceSVG();
33
+ i0.ɵɵelement(2, "svg", 2);
34
+ i0.ɵɵelementEnd();
35
+ i0.ɵɵnamespaceHTML();
36
+ i0.ɵɵelementContainerStart(3, 9);
37
+ i0.ɵɵelementStart(4, "div");
38
+ i0.ɵɵtext(5);
39
+ i0.ɵɵrepeaterCreate(6, SearchBox_Conditional_6_For_7_Template, 4, 2, "span", null, i0.ɵɵrepeaterTrackByIdentity);
40
+ i0.ɵɵtext(8);
41
+ i0.ɵɵelementStart(9, "kbd", 6);
42
+ i0.ɵɵtext(10, "\u2191");
43
+ i0.ɵɵelementEnd();
44
+ i0.ɵɵtext(11);
45
+ i0.ɵɵelementStart(12, "kbd", 6);
46
+ i0.ɵɵtext(13, "\u2193");
47
+ i0.ɵɵelementEnd();
48
+ i0.ɵɵtext(14);
49
+ i0.ɵɵelementStart(15, "kbd", 6);
50
+ i0.ɵɵtext(16, "\u21B5");
51
+ i0.ɵɵelementEnd();
52
+ i0.ɵɵtext(17);
53
+ i0.ɵɵelementEnd();
54
+ i0.ɵɵelementContainerEnd();
55
+ i0.ɵɵelementEnd();
56
+ } if (rf & 2) {
57
+ const ctx_r2 = i0.ɵɵnextContext();
58
+ i0.ɵɵadvance();
59
+ i0.ɵɵclassMap(ctx_r2.cm().cn(ctx_r2.cm().searchFieldClear));
60
+ i0.ɵɵattribute("aria-label", ctx_r2.helpLabel())("data-mol-id", ctx_r2.id() + "-help");
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵproperty("name", "question")("size", 16);
63
+ i0.ɵɵadvance(2);
64
+ i0.ɵɵstyleMap(ctx_r2.tipsStyle());
65
+ i0.ɵɵclassMap(ctx_r2.cm().cn(ctx_r2.cm().searchTips));
66
+ i0.ɵɵadvance();
67
+ i0.ɵɵtextInterpolate2(" ", ctx_r2.syntaxText(), "", " ", " ");
68
+ i0.ɵɵadvance();
69
+ i0.ɵɵrepeater(ctx_r2.exampleList());
70
+ i0.ɵɵadvance(2);
71
+ i0.ɵɵtextInterpolate1(" ", " \u00B7 ");
72
+ i0.ɵɵadvance(3);
73
+ i0.ɵɵtextInterpolate1(" ", " ");
74
+ i0.ɵɵadvance(3);
75
+ i0.ɵɵtextInterpolate1(" ", " ");
76
+ i0.ɵɵadvance(3);
77
+ i0.ɵɵtextInterpolate2(" ", " ", "", ctx_r2.keysText(), " ");
78
+ } }
79
+ function SearchBox_Conditional_7_Template(rf, ctx) { if (rf & 1) {
80
+ const _r4 = i0.ɵɵgetCurrentView();
81
+ i0.ɵɵelementStart(0, "button", 10);
82
+ i0.ɵɵlistener("click", function SearchBox_Conditional_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onClearClick()); });
83
+ i0.ɵɵelementStart(1, "span", 1);
84
+ i0.ɵɵtext(2, "\u00D7");
85
+ i0.ɵɵelementEnd()();
86
+ } if (rf & 2) {
87
+ const ctx_r2 = i0.ɵɵnextContext();
88
+ i0.ɵɵclassMap(ctx_r2.cm().cn(ctx_r2.cm().searchFieldClear));
89
+ i0.ɵɵattribute("aria-label", ctx_r2.clearLabel())("data-mol-id", ctx_r2.id() + "-clear");
90
+ } }
91
+ function SearchBox_Conditional_8_Template(rf, ctx) { if (rf & 1) {
92
+ i0.ɵɵelementStart(0, "kbd", 6);
93
+ i0.ɵɵtext(1);
94
+ i0.ɵɵelementEnd();
95
+ } if (rf & 2) {
96
+ const ctx_r2 = i0.ɵɵnextContext();
97
+ i0.ɵɵadvance();
98
+ i0.ɵɵtextInterpolate(ctx_r2.shortcutText());
99
+ } }
100
+ function SearchBox_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
101
+ const _r5 = i0.ɵɵgetCurrentView();
102
+ i0.ɵɵelementStart(0, "button", 10);
103
+ i0.ɵɵlistener("click", function SearchBox_Conditional_10_For_2_Template_button_click_0_listener() { const chip_r6 = i0.ɵɵrestoreView(_r5).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onRemoveFilter?.(chip_r6.index)); });
104
+ i0.ɵɵtext(1);
105
+ i0.ɵɵelementStart(2, "span", 1);
106
+ i0.ɵɵtext(3, "\u00D7");
107
+ i0.ɵɵelementEnd()();
108
+ } if (rf & 2) {
109
+ const chip_r6 = ctx.$implicit;
110
+ const ctx_r2 = i0.ɵɵnextContext(2);
111
+ i0.ɵɵclassMap(ctx_r2.chipClasses(chip_r6.filter));
112
+ i0.ɵɵattribute("aria-label", ctx_r2.chipLabel(chip_r6.filter))("data-mol-id", ctx_r2.id() + "-filter")("data-filter-field", chip_r6.filter.field);
113
+ i0.ɵɵadvance();
114
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.chipText(chip_r6.filter), " ");
115
+ i0.ɵɵadvance();
116
+ i0.ɵɵclassMap(ctx_r2.cm().cn(ctx_r2.cm().filterChipRemove));
117
+ } }
118
+ function SearchBox_Conditional_10_Conditional_4_Template(rf, ctx) { if (rf & 1) {
119
+ i0.ɵɵelementStart(0, "span");
120
+ i0.ɵɵtext(1);
121
+ i0.ɵɵelementEnd();
122
+ } if (rf & 2) {
123
+ const ctx_r2 = i0.ɵɵnextContext(2);
124
+ i0.ɵɵattribute("data-mol-id", ctx_r2.id() + "-count");
125
+ i0.ɵɵadvance();
126
+ i0.ɵɵtextInterpolate(ctx);
127
+ } }
128
+ function SearchBox_Conditional_10_Template(rf, ctx) { if (rf & 1) {
129
+ i0.ɵɵelementStart(0, "div");
130
+ i0.ɵɵrepeaterCreate(1, SearchBox_Conditional_10_For_2_Template, 4, 8, "button", 5, i0.ɵɵrepeaterTrackByIdentity);
131
+ i0.ɵɵelement(3, "span");
132
+ i0.ɵɵconditionalCreate(4, SearchBox_Conditional_10_Conditional_4_Template, 2, 2, "span");
133
+ i0.ɵɵelementEnd();
134
+ } if (rf & 2) {
135
+ let tmp_5_0;
136
+ const ctx_r2 = i0.ɵɵnextContext();
137
+ i0.ɵɵclassMap(ctx_r2.cm().cn(ctx_r2.cm().searchStatusRow));
138
+ i0.ɵɵadvance();
139
+ i0.ɵɵrepeater(ctx_r2.chipRecords());
140
+ i0.ɵɵadvance(2);
141
+ i0.ɵɵclassMap(ctx_r2.cm().cn(ctx_r2.cm().mxAuto));
142
+ i0.ɵɵadvance();
143
+ i0.ɵɵconditional((tmp_5_0 = ctx_r2.countText()) ? 4 : -1, tmp_5_0);
144
+ } }
145
+ /**
146
+ * SearchBox component.
147
+ *
148
+ * A search field: a leading icon, the input, a help icon that shows the
149
+ * syntax on hover, an × to clear, and the shortcut cap; under it, whatever
150
+ * `afterField` holds (projected as `[slot=afterField]`), then the active
151
+ * filters as removable chips and the hit count. The field stays mounted, and
152
+ * its text with it, across searches. The host IS the outer `<div>` React
153
+ * renders (`div[mol-search-box]`).
154
+ */
155
+ export class SearchBox {
156
+ /** The text. */
157
+ value = '';
158
+ /** Called with the new text on every keystroke. */
159
+ onChange;
160
+ /** Key handling for the input (arrows, Enter, Escape), usually a session's `onKeyDown`. */
161
+ onKeyDown;
162
+ /** A ref to the input, so a shortcut can focus it. */
163
+ inputRef;
164
+ /** Placeholder, already translated. Also the accessible name unless `label` is given. */
165
+ placeholder = '';
166
+ /** Accessible name for the input, already translated. Defaults to `placeholder`. */
167
+ label;
168
+ /** How many hits the current text has. Omit to show no count. */
169
+ count;
170
+ /** Active `field:value` filters, shown as removable chips. */
171
+ filters;
172
+ /** Removes the i-th filter. */
173
+ onRemoveFilter;
174
+ /** Clears the text. Shown as an × while there is text. */
175
+ onClear;
176
+ /**
177
+ * Example tokens for the search tips, e.g. `['category:auth', 'type:bond']`.
178
+ * Given, a help icon sits inside the field and shows the syntax on hover or
179
+ * focus. Omit for no help icon.
180
+ */
181
+ examples;
182
+ /** The key that focuses the box, shown as a cap while it is empty. `null` hides it. Defaults to `/`. */
183
+ shortcut;
184
+ /** Focus the input on mount. */
185
+ autoFocus;
186
+ /** `data-mol-id` prefix: `<molId>-input`, `-clear`, `-help`, `-filter`, `-count`. */
187
+ molId;
188
+ /** Extra classes composed onto the field. */
189
+ className;
190
+ /** Whether the field holds focus (React's `focused` state). */
191
+ focused = signal(false, /* @ts-ignore */
192
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
193
+ /** The input element, read for the ref and the focus requests. */
194
+ searchInput;
195
+ /** Schedules the deferred focus from the view hooks (outside an injection context). */
196
+ injector = inject(Injector);
197
+ /** i18n handle, read in an injection context. */
198
+ t = useTranslation().t;
199
+ /**
200
+ * The current class map.
201
+ * @returns The UIClassMap.
202
+ */
203
+ cm() {
204
+ return getClassMap();
205
+ }
206
+ /**
207
+ * The `data-mol-id` prefix (React's default parameter).
208
+ * @returns The prefix.
209
+ */
210
+ id() {
211
+ return this.molId ?? 'search';
212
+ }
213
+ /**
214
+ * The active filters (React's default parameter: `[]`).
215
+ * @returns The filters.
216
+ */
217
+ filterList() {
218
+ return this.filters ?? [];
219
+ }
220
+ /**
221
+ * The field's class list (`cm.searchField` + `className`).
222
+ * @returns The class string.
223
+ */
224
+ fieldClasses() {
225
+ return this.cm().cn(this.cm().searchField, this.className);
226
+ }
227
+ /**
228
+ * The input's accessible name (`label`, else the placeholder).
229
+ * @returns The accessible name.
230
+ */
231
+ ariaLabel() {
232
+ return this.label ?? this.placeholder;
233
+ }
234
+ /**
235
+ * Whether the text is not blank, the branch that shows the count.
236
+ * @returns True while the text has content.
237
+ */
238
+ hasText() {
239
+ return this.value.trim().length > 0;
240
+ }
241
+ /**
242
+ * Whether the count shows: a count was given and the text is not blank.
243
+ * @returns True to show the count.
244
+ */
245
+ showCount() {
246
+ return this.count !== undefined && this.hasText();
247
+ }
248
+ /**
249
+ * Whether the status row (chips and count) renders.
250
+ * @returns True when a chip or the count renders.
251
+ */
252
+ hasStatus() {
253
+ return this.filterList().length > 0 || this.showCount();
254
+ }
255
+ /**
256
+ * Whether the help icon renders (examples were given).
257
+ * @returns True to show the help icon.
258
+ */
259
+ showHelp() {
260
+ return Boolean(this.examples?.length);
261
+ }
262
+ /**
263
+ * The example tokens plus the two always-present tokens, as React builds them.
264
+ * @returns The tips' example list.
265
+ */
266
+ exampleList() {
267
+ return [
268
+ ...(this.examples ?? []),
269
+ this.t('searchUi.examplePhrase', undefined, { defaultValue: '"exact phrase"' }),
270
+ this.t('searchUi.exampleExcluded', undefined, { defaultValue: '-word' }),
271
+ ];
272
+ }
273
+ /**
274
+ * Whether the clear button shows: text present and `onClear` given.
275
+ * @returns True to show the clear button.
276
+ */
277
+ showClear() {
278
+ return Boolean(this.value) && Boolean(this.onClear);
279
+ }
280
+ /**
281
+ * The shortcut cap's key, or null while hidden (React's default `/`).
282
+ * @returns The cap key or null.
283
+ */
284
+ capKey() {
285
+ return this.shortcut === undefined ? '/' : this.shortcut;
286
+ }
287
+ /**
288
+ * Whether the cap shows: a key, no text, and the field not focused.
289
+ * @returns True to show the cap.
290
+ */
291
+ showCap() {
292
+ return Boolean(this.capKey()) && !this.value && !this.focused();
293
+ }
294
+ /**
295
+ * The cap's key text (a template may not bind a nullable value).
296
+ * @returns The key, or the empty string while hidden.
297
+ */
298
+ shortcutText() {
299
+ return this.capKey() ?? '';
300
+ }
301
+ /**
302
+ * The tips line's inline style (React's `whiteSpace`/`maxWidth`).
303
+ * @returns The style string.
304
+ */
305
+ tipsStyle() {
306
+ return 'white-space: normal; max-width: 360px';
307
+ }
308
+ /**
309
+ * A tips example's leading separator (' · ' from the second on), as React
310
+ * builds it.
311
+ *
312
+ * @param index - The example's index.
313
+ * @returns The separator text.
314
+ */
315
+ separator(index) {
316
+ return index > 0 ? ' · ' : '';
317
+ }
318
+ /**
319
+ * The help icon's accessible label.
320
+ * @returns The translated label.
321
+ */
322
+ helpLabel() {
323
+ return this.t('searchUi.help', undefined, { defaultValue: 'Search tips' });
324
+ }
325
+ /**
326
+ * The clear button's accessible label.
327
+ * @returns The translated label.
328
+ */
329
+ clearLabel() {
330
+ return this.t('searchUi.clear', undefined, { defaultValue: 'Clear search' });
331
+ }
332
+ /**
333
+ * The syntax sentence (the tips' first span).
334
+ * @returns The translated text.
335
+ */
336
+ syntaxText() {
337
+ return this.t('searchUi.syntax', undefined, {
338
+ defaultValue: 'Narrow with a field, quote a phrase, or exclude a word:',
339
+ });
340
+ }
341
+ /**
342
+ * The keys sentence (the tips' last span).
343
+ * @returns The translated text.
344
+ */
345
+ keysText() {
346
+ return this.t('searchUi.keys', undefined, {
347
+ defaultValue: 'The arrow keys move through the results and Enter opens one.',
348
+ });
349
+ }
350
+ /**
351
+ * The hit-count text, or null while blank or without a count.
352
+ * @returns The translated count, or null.
353
+ */
354
+ countText() {
355
+ const count = this.count;
356
+ if (count === undefined || !this.hasText())
357
+ return null;
358
+ return this.t('searchUi.count', { count }, { defaultValue: '{{count}} results' });
359
+ }
360
+ /**
361
+ * A chip's text: a negation mark, the field and the accepted values.
362
+ *
363
+ * @param f - The filter.
364
+ * @returns The chip text.
365
+ */
366
+ chipText(f) {
367
+ return `${f.negate ? '−' : ''}${f.field}: ${f.values.join(', ')}`;
368
+ }
369
+ /**
370
+ * A chip's accessible label (the removal announcement).
371
+ *
372
+ * @param f - The filter.
373
+ * @returns The translated label.
374
+ */
375
+ chipLabel(f) {
376
+ return this.t('searchUi.removeFilter', { filter: this.chipText(f) }, {
377
+ defaultValue: 'Remove filter {{filter}}',
378
+ });
379
+ }
380
+ /**
381
+ * A chip's tracking key, React's composite key.
382
+ *
383
+ * @param f - The filter.
384
+ * @param index - The chip's index.
385
+ * @returns The key.
386
+ */
387
+ chipKey(f, index) {
388
+ return `${f.field}:${f.values.join(',')}:${index}`;
389
+ }
390
+ /** The cached chip records and the key signature they were built from. */
391
+ chipCache = null;
392
+ /**
393
+ * The chip records the template iterates: one stable wrapper per chip while
394
+ * the key sequence is unchanged, and fresh wrappers whenever it changes.
395
+ * React keys each chip by its composite key, so an unchanged key keeps the
396
+ * rendered chip (and everything stamped on it) while a changed key replaces
397
+ * it; Angular's keyed loop recomputes keys with the new indices and would
398
+ * reuse a view across a reorder, so the records — and the reuse they drive
399
+ * — are built here instead.
400
+ *
401
+ * @returns The chip records, in order.
402
+ */
403
+ chipRecords() {
404
+ const filters = this.filterList();
405
+ const signature = filters.map((f, i) => this.chipKey(f, i)).join('|');
406
+ if (!this.chipCache || this.chipCache.signature !== signature) {
407
+ this.chipCache = {
408
+ signature,
409
+ records: filters.map((f, i) => ({
410
+ key: this.chipKey(f, i),
411
+ filter: f,
412
+ index: i,
413
+ })),
414
+ };
415
+ }
416
+ return this.chipCache.records;
417
+ }
418
+ /**
419
+ * A chip's class list (`cm.filterChip`, negated when the filter negates).
420
+ *
421
+ * @param f - The filter.
422
+ * @returns The class string.
423
+ */
424
+ chipClasses(f) {
425
+ return this.cm().cn(this.cm().filterChip, f.negate && this.cm().filterChipNegated);
426
+ }
427
+ /**
428
+ * The value the controlled input restores after a keystroke the caller did
429
+ * not adopt, the way React renders its controlled input back.
430
+ * @returns The current prop value.
431
+ */
432
+ restoreValue() {
433
+ return this.value;
434
+ }
435
+ /**
436
+ * Reports the typed text, then restores the field to the value the props
437
+ * still hold, the way React's controlled input renders it back when the
438
+ * caller keeps the old one.
439
+ *
440
+ * @param event - The input event.
441
+ */
442
+ onType(event) {
443
+ const el = event.target;
444
+ this.onChange?.(el.value);
445
+ el.value = this.value;
446
+ el.setAttribute('value', this.value);
447
+ }
448
+ /** Clears the text and puts focus back in the field, as React's button does. */
449
+ onClearClick() {
450
+ this.onClear?.();
451
+ this.inputRef?.current?.focus();
452
+ }
453
+ /**
454
+ * Assigns the input element into `inputRef`, as React's `ref` does, then
455
+ * requests the mount focus.
456
+ */
457
+ ngAfterViewInit() {
458
+ this.captureRef();
459
+ this.scheduleFocus();
460
+ }
461
+ /**
462
+ * Re-assigns the ref and re-runs the focus request when their inputs change,
463
+ * the way React's effect keyed on `autoFocus` and `inputRef` does.
464
+ *
465
+ * @param changes - The changed inputs.
466
+ */
467
+ ngOnChanges(changes) {
468
+ if (changes['inputRef'])
469
+ this.captureRef();
470
+ if (changes['autoFocus'] || changes['inputRef'])
471
+ this.scheduleFocus();
472
+ }
473
+ /**
474
+ * Schedules the focus request after the render, so the field exists and the
475
+ * `focusin` it fires reaches listeners after Angular has checked the view.
476
+ */
477
+ scheduleFocus() {
478
+ afterNextRender(() => this.focusIfAsked(), { injector: this.injector });
479
+ }
480
+ /** Writes the input element into `inputRef`, as React's `ref` does. */
481
+ captureRef() {
482
+ if (this.inputRef)
483
+ this.inputRef.current = this.searchInput?.nativeElement ?? null;
484
+ }
485
+ /** Focuses the input when `autoFocus` asks and the element exists. */
486
+ focusIfAsked() {
487
+ if (this.autoFocus)
488
+ this.inputRef?.current?.focus();
489
+ }
490
+ static ɵfac = function SearchBox_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SearchBox)(); };
491
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchBox, selectors: [["div", "mol-search-box", ""]], viewQuery: function SearchBox_Query(rf, ctx) { if (rf & 1) {
492
+ i0.ɵɵviewQuery(_c0, 5);
493
+ } if (rf & 2) {
494
+ let _t;
495
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.searchInput = _t.first);
496
+ } }, hostVars: 1, hostBindings: function SearchBox_HostBindings(rf, ctx) { if (rf & 2) {
497
+ i0.ɵɵattribute("data-mol-id", ctx.id() + "-box");
498
+ } }, inputs: { value: "value", onChange: "onChange", onKeyDown: "onKeyDown", inputRef: "inputRef", placeholder: "placeholder", label: "label", count: "count", filters: "filters", onRemoveFilter: "onRemoveFilter", onClear: "onClear", examples: "examples", shortcut: "shortcut", autoFocus: "autoFocus", molId: "molId", className: "className" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c2, decls: 11, vars: 19, consts: [["searchInput", ""], ["aria-hidden", "true"], ["mol-icon-root", "", 3, "name", "size"], ["type", "search", "autocomplete", "off", "autocorrect", "off", "spellcheck", "false", "enterkeyhint", "search", 3, "input", "keydown", "focus", "blur", "value"], ["placement", "bottom-end"], ["type", "button", 3, "class"], ["mol-kbd", ""], [3, "class"], ["type", "button"], ["ngProjectAs", "[slot=content]", 5, ["", "slot", "content"]], ["type", "button", 3, "click"]], template: function SearchBox_Template(rf, ctx) { if (rf & 1) {
499
+ i0.ɵɵprojectionDef(_c1);
500
+ i0.ɵɵelementStart(0, "div")(1, "span", 1);
501
+ i0.ɵɵnamespaceSVG();
502
+ i0.ɵɵelement(2, "svg", 2);
503
+ i0.ɵɵelementEnd();
504
+ i0.ɵɵnamespaceHTML();
505
+ i0.ɵɵelementStart(3, "input", 3, 0);
506
+ i0.ɵɵlistener("input", function SearchBox_Template_input_input_3_listener($event) { return ctx.onType($event); })("keydown", function SearchBox_Template_input_keydown_3_listener($event) { return ctx.onKeyDown?.($event); })("focus", function SearchBox_Template_input_focus_3_listener() { return ctx.focused.set(true); })("blur", function SearchBox_Template_input_blur_3_listener() { return ctx.focused.set(false); });
507
+ i0.ɵɵelementEnd();
508
+ i0.ɵɵelementStart(5, "span");
509
+ i0.ɵɵconditionalCreate(6, SearchBox_Conditional_6_Template, 18, 17, "mol-tooltip", 4);
510
+ i0.ɵɵconditionalCreate(7, SearchBox_Conditional_7_Template, 3, 4, "button", 5);
511
+ i0.ɵɵconditionalCreate(8, SearchBox_Conditional_8_Template, 2, 1, "kbd", 6);
512
+ i0.ɵɵelementEnd()();
513
+ i0.ɵɵprojection(9);
514
+ i0.ɵɵconditionalCreate(10, SearchBox_Conditional_10_Template, 5, 5, "div", 7);
515
+ } if (rf & 2) {
516
+ i0.ɵɵclassMap(ctx.fieldClasses());
517
+ i0.ɵɵadvance();
518
+ i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().searchFieldIcon));
519
+ i0.ɵɵadvance();
520
+ i0.ɵɵproperty("name", "search")("size", 18);
521
+ i0.ɵɵadvance();
522
+ i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().searchFieldInput));
523
+ i0.ɵɵproperty("value", ctx.value);
524
+ i0.ɵɵattribute("value", ctx.restoreValue())("placeholder", ctx.placeholder)("aria-label", ctx.ariaLabel())("data-mol-id", ctx.id() + "-input");
525
+ i0.ɵɵadvance(2);
526
+ i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().searchFieldActions));
527
+ i0.ɵɵadvance();
528
+ i0.ɵɵconditional(ctx.showHelp() ? 6 : -1);
529
+ i0.ɵɵadvance();
530
+ i0.ɵɵconditional(ctx.showClear() ? 7 : -1);
531
+ i0.ɵɵadvance();
532
+ i0.ɵɵconditional(ctx.showCap() ? 8 : -1);
533
+ i0.ɵɵadvance(2);
534
+ i0.ɵɵconditional(ctx.hasStatus() ? 10 : -1);
535
+ } }, dependencies: [Icon, Kbd, Tooltip], encapsulation: 2 });
536
+ }
537
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchBox, [{
538
+ type: Component,
539
+ args: [{
540
+ selector: 'div[mol-search-box]',
541
+ standalone: true,
542
+ imports: [Icon, Kbd, Tooltip],
543
+ inputs: [
544
+ 'value',
545
+ 'onChange',
546
+ 'onKeyDown',
547
+ 'inputRef',
548
+ 'placeholder',
549
+ 'label',
550
+ 'count',
551
+ 'filters',
552
+ 'onRemoveFilter',
553
+ 'onClear',
554
+ 'examples',
555
+ 'shortcut',
556
+ 'autoFocus',
557
+ 'molId',
558
+ 'className',
559
+ ],
560
+ host: {
561
+ '[attr.data-mol-id]': 'id() + "-box"',
562
+ },
563
+ template: `<div [class]="fieldClasses()">
564
+ <span [class]="cm().cn(cm().searchFieldIcon)" aria-hidden="true">
565
+ <svg mol-icon-root [name]="'search'" [size]="18"></svg>
566
+ </span>
567
+ <input
568
+ #searchInput
569
+ type="search"
570
+ [value]="value"
571
+ [attr.value]="restoreValue()"
572
+ (input)="onType($event)"
573
+ (keydown)="onKeyDown?.($event)"
574
+ (focus)="focused.set(true)"
575
+ (blur)="focused.set(false)"
576
+ [attr.placeholder]="placeholder"
577
+ [attr.aria-label]="ariaLabel()"
578
+ autocomplete="off"
579
+ autocorrect="off"
580
+ spellcheck="false"
581
+ enterkeyhint="search"
582
+ [class]="cm().cn(cm().searchFieldInput)"
583
+ [attr.data-mol-id]="id() + '-input'"
584
+ />
585
+ <span [class]="cm().cn(cm().searchFieldActions)">
586
+ @if (showHelp()) {
587
+ <mol-tooltip placement="bottom-end">
588
+ <button
589
+ type="button"
590
+ [attr.aria-label]="helpLabel()"
591
+ [class]="cm().cn(cm().searchFieldClear)"
592
+ [attr.data-mol-id]="id() + '-help'"
593
+ >
594
+ <svg mol-icon-root [name]="'question'" [size]="16"></svg>
595
+ </button>
596
+ <ng-container ngProjectAs="[slot=content]">
597
+ <div [class]="cm().cn(cm().searchTips)" [style]="tipsStyle()">
598
+ {{ syntaxText() }}{{ ' ' }}
599
+ @for (ex of exampleList(); track ex; let i = $index) {
600
+ <span
601
+ >{{ separator(i) }}<code>{{ ex }}</code></span
602
+ >
603
+ }
604
+ {{ ' · ' }}<kbd mol-kbd>↑</kbd> {{ ' ' }}<kbd mol-kbd>↓</kbd> {{ ' '
605
+ }}<kbd mol-kbd>↵</kbd> {{ ' ' }}{{ keysText() }}
606
+ </div>
607
+ </ng-container>
608
+ </mol-tooltip>
609
+ }
610
+ @if (showClear()) {
611
+ <button
612
+ type="button"
613
+ (click)="onClearClick()"
614
+ [attr.aria-label]="clearLabel()"
615
+ [class]="cm().cn(cm().searchFieldClear)"
616
+ [attr.data-mol-id]="id() + '-clear'"
617
+ >
618
+ <span aria-hidden="true">×</span>
619
+ </button>
620
+ }
621
+ @if (showCap()) {
622
+ <kbd mol-kbd>{{ shortcutText() }}</kbd>
623
+ }
624
+ </span>
625
+ </div>
626
+ <ng-content select="[slot=afterField]"></ng-content>
627
+ @if (hasStatus()) {
628
+ <div [class]="cm().cn(cm().searchStatusRow)">
629
+ @for (chip of chipRecords(); track chip) {
630
+ <button
631
+ type="button"
632
+ (click)="onRemoveFilter?.(chip.index)"
633
+ [attr.aria-label]="chipLabel(chip.filter)"
634
+ [class]="chipClasses(chip.filter)"
635
+ [attr.data-mol-id]="id() + '-filter'"
636
+ [attr.data-filter-field]="chip.filter.field"
637
+ >
638
+ {{ chipText(chip.filter) }}
639
+ <span [class]="cm().cn(cm().filterChipRemove)" aria-hidden="true">×</span>
640
+ </button>
641
+ }
642
+ <span [class]="cm().cn(cm().mxAuto)"></span>
643
+ @if (countText(); as countLabel) {
644
+ <span [attr.data-mol-id]="id() + '-count'">{{ countLabel }}</span>
645
+ }
646
+ </div>
647
+ }`,
648
+ }]
649
+ }], null, { searchInput: [{
650
+ type: ViewChild,
651
+ args: ['searchInput']
652
+ }] }); })();
653
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchBox, { className: "SearchBox", filePath: "search-box.component.ts", lineNumber: 159 }); })();
654
+ //# sourceMappingURL=search-box.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-box.component.js","sourceRoot":"","sources":["../src/search-box.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EAEf,SAAS,EAET,MAAM,EACN,QAAQ,EAER,MAAM,EAEN,SAAS,GAEV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAExD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;;;;;;IAmFtB,4BACG;IAAA,YAAkB;IAAA,4BAAM;IAAA,YAAQ;IAAO,AAAP,iBAAO,EACzC;;;;;IADE,cAAkB;IAAlB,qDAAkB;IAAM,eAAQ;IAAR,2BAAQ;;;IAbzC,AADF,sCAAoC,gBAMjC;;IACC,yBAAyD;IAC3D,iBAAS;;IACT,gCAA2C;IACzC,2BAA8D;IAC5D,YACA;IAAA,gHAIC;IACD,YAAW;IAAA,8BAAa;IAAA,uBAAC;IAAA,iBAAM;IAAC,aAAS;IAAA,+BAAa;IAAA,uBAAC;IAAA,iBAAM;IAAC,aAC5D;IAAA,+BAAa;IAAA,uBAAC;IAAA,iBAAM;IAAC,aACzB;IAAA,iBAAM;;IAEV,iBAAc;;;IAjBV,cAAwC;IAAxC,2DAAwC;;IAGrB,cAAmB;IAAC,AAApB,iCAAmB,YAAY;IAGV,eAAqB;IAArB,iCAAqB;IAA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