@magicx-eng/ai-autocomplete-angular 0.23.1 → 0.24.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/README.md +5 -0
- package/esm2020/lib/ai-autocomplete/ai-autocomplete.component.mjs +16 -4
- package/esm2020/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.mjs +34 -4
- package/esm2020/lib/internal/editor-host/editor-host.directive.mjs +10 -3
- package/esm2020/lib/internal/suggestion-grid/suggestion-grid.component.mjs +11 -3
- package/esm2020/lib/internal/suggestion-item/suggestion-item.component.mjs +40 -5
- package/esm2020/public-api.mjs +9 -2
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +115 -15
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +114 -15
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts +7 -1
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts.map +1 -1
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts +18 -1
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts.map +1 -1
- package/lib/internal/editor-host/editor-host.directive.d.ts +3 -1
- package/lib/internal/editor-host/editor-host.directive.d.ts.map +1 -1
- package/lib/internal/suggestion-grid/suggestion-grid.component.d.ts +5 -1
- package/lib/internal/suggestion-grid/suggestion-grid.component.d.ts.map +1 -1
- package/lib/internal/suggestion-item/suggestion-item.component.d.ts +23 -1
- package/lib/internal/suggestion-item/suggestion-item.component.d.ts.map +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +9 -1
- package/public-api.d.ts.map +1 -1
|
@@ -43,6 +43,10 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
43
43
|
showSkipButton: boolean;
|
|
44
44
|
/** When true (default), an option that carries an `icon_svg` draws its icon before its text in the dropdown. Set to false to render option rows as text only. */
|
|
45
45
|
showOptionIcons: boolean;
|
|
46
|
+
/** When true (default), an option that carries an `image_url` draws it as a square thumbnail before its text in the dropdown (in place of its `icon_svg`). Set to false to render option rows without pictures. */
|
|
47
|
+
showOptionImages: boolean;
|
|
48
|
+
/** When true (default), an option that carries an `item_count` shows it as a muted label at the row's trailing edge ("12 items"). Set to false to hide the counts. */
|
|
49
|
+
showOptionCounts: boolean;
|
|
46
50
|
/**
|
|
47
51
|
* How the product strip lays its cards out. `"row"` (the default) is a
|
|
48
52
|
* horizontally scrolling shelf of cards. `"list"` stacks the same cards as
|
|
@@ -54,6 +58,8 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
54
58
|
productsLayout: ProductsLayout;
|
|
55
59
|
/** When true (default), a completed chip in the input draws the icon of the option that answered it. Set to false to render chips as text only. */
|
|
56
60
|
showChipIcons: boolean;
|
|
61
|
+
/** When true (default), a completed chip in the input draws the picture (`image_url`) of the option that answered it, in place of its icon. Set to false to render chips without pictures. */
|
|
62
|
+
showChipImages: boolean;
|
|
57
63
|
/** Focus the editor on mount. Default: true. */
|
|
58
64
|
autoFocus: boolean;
|
|
59
65
|
/** Controlled-mode text value. */
|
|
@@ -187,6 +193,6 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
187
193
|
private handleSubmitFromUserAction;
|
|
188
194
|
private measurePillWrap;
|
|
189
195
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIAutocompleteComponent, never>;
|
|
190
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteComponent, "ai-autocomplete", never, { "apiConfig": "apiConfig"; "additionalContext": "additionalContext"; "optionOverrides": "optionOverrides"; "maskCompletedText": "maskCompletedText"; "columns": "columns"; "pillPlacement": "pillPlacement"; "mode": "mode"; "optionsPosition": "optionsPosition"; "animations": "animations"; "dropdownTrigger": "dropdownTrigger"; "closeDropdownOnBlur": "closeDropdownOnBlur"; "showNonTappableOptions": "showNonTappableOptions"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "productsLayout": "productsLayout"; "showChipIcons": "showChipIcons"; "autoFocus": "autoFocus"; "value": "value"; "completedParams": "completedParams"; "showProducts": "showProducts"; "products": "products"; "submitButton": "submitButton"; }, { "submitted": "submitted"; "resultChange": "resultChange"; "errored": "errored"; "valueChange": "valueChange"; "completedParamsChange": "completedParamsChange"; "focused": "focused"; "blurred": "blurred"; "productSelect": "productSelect"; }, never, never, true, never>;
|
|
196
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteComponent, "ai-autocomplete", never, { "apiConfig": "apiConfig"; "additionalContext": "additionalContext"; "optionOverrides": "optionOverrides"; "maskCompletedText": "maskCompletedText"; "columns": "columns"; "pillPlacement": "pillPlacement"; "mode": "mode"; "optionsPosition": "optionsPosition"; "animations": "animations"; "dropdownTrigger": "dropdownTrigger"; "closeDropdownOnBlur": "closeDropdownOnBlur"; "showNonTappableOptions": "showNonTappableOptions"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "showOptionImages": "showOptionImages"; "showOptionCounts": "showOptionCounts"; "productsLayout": "productsLayout"; "showChipIcons": "showChipIcons"; "showChipImages": "showChipImages"; "autoFocus": "autoFocus"; "value": "value"; "completedParams": "completedParams"; "showProducts": "showProducts"; "products": "products"; "submitButton": "submitButton"; }, { "submitted": "submitted"; "resultChange": "resultChange"; "errored": "errored"; "valueChange": "valueChange"; "completedParamsChange": "completedParamsChange"; "focused": "focused"; "blurred": "blurred"; "productSelect": "productSelect"; }, never, never, true, never>;
|
|
191
197
|
}
|
|
192
198
|
//# sourceMappingURL=ai-autocomplete.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-autocomplete.component.d.ts","sourceRoot":"","sources":["../../../src/lib/ai-autocomplete/ai-autocomplete.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EA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,UAAU,GAAG,IAAI;IAK1C,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAMjC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAatC,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAInD,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAIvC,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAS1C;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,0BAA0B;IAelC,OAAO,CAAC,eAAe;yCAzbZ,uBAAuB;2CAAvB,uBAAuB;CA4cnC"}
|
|
@@ -37,6 +37,10 @@ interface DropdownVm {
|
|
|
37
37
|
optionsPosition: "above" | "below";
|
|
38
38
|
/** Whether option rows draw their `icon_svg` before the text. */
|
|
39
39
|
showOptionIcons: boolean;
|
|
40
|
+
/** Whether option rows draw their `image_url` as a thumbnail before the text. */
|
|
41
|
+
showOptionImages: boolean;
|
|
42
|
+
/** Whether option rows show their `item_count` at the trailing edge. */
|
|
43
|
+
showOptionCounts: boolean;
|
|
40
44
|
}
|
|
41
45
|
/**
|
|
42
46
|
* Tier 2 dropdown component — the Angular equivalent of React's
|
|
@@ -72,6 +76,17 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
72
76
|
* Set to false to render option rows as text only.
|
|
73
77
|
*/
|
|
74
78
|
showOptionIcons: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether option rows draw their `image_url` as a square thumbnail before
|
|
81
|
+
* the text, in place of the icon. Default: true. Set to false to render
|
|
82
|
+
* option rows without pictures.
|
|
83
|
+
*/
|
|
84
|
+
showOptionImages: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether option rows show their `item_count` as a muted label at the
|
|
87
|
+
* trailing edge ("12 items"). Default: true. Set to false to hide the counts.
|
|
88
|
+
*/
|
|
89
|
+
showOptionCounts: boolean;
|
|
75
90
|
/**
|
|
76
91
|
* How the product strip lays its cards out: a horizontally scrolling row
|
|
77
92
|
* (the default), or the same cards stacked as full-width rows.
|
|
@@ -121,6 +136,8 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
121
136
|
private readonly showPills$;
|
|
122
137
|
private readonly showSkipButton$;
|
|
123
138
|
private readonly showOptionIcons$;
|
|
139
|
+
private readonly showOptionImages$;
|
|
140
|
+
private readonly showOptionCounts$;
|
|
124
141
|
private lastVisibleContent;
|
|
125
142
|
ngOnInit(): void;
|
|
126
143
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -158,7 +175,7 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
158
175
|
onProductFocusChange(focused: boolean): void;
|
|
159
176
|
preventBlur(event: Event): void;
|
|
160
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIAutocompleteDropdownComponent, never>;
|
|
161
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteDropdownComponent, "ai-autocomplete-dropdown", never, { "controller": "controller"; "showPills": "showPills"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "productsLayout": "productsLayout"; "className": "className"; "mode": "mode"; }, {}, never, never, true, never>;
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteDropdownComponent, "ai-autocomplete-dropdown", never, { "controller": "controller"; "showPills": "showPills"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "showOptionImages": "showOptionImages"; "showOptionCounts": "showOptionCounts"; "productsLayout": "productsLayout"; "className": "className"; "mode": "mode"; }, {}, never, never, true, never>;
|
|
162
179
|
}
|
|
163
180
|
export {};
|
|
164
181
|
//# sourceMappingURL=ai-autocomplete-dropdown.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-autocomplete-dropdown.component.d.ts","sourceRoot":"","sources":["../../../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,eAAe,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC,iEAAiE;IACjE,eAAe,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-autocomplete-dropdown.component.d.ts","sourceRoot":"","sources":["../../../src/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EAOrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAGlB,KAAK,OAAO,EACZ,KAAK,cAAc,EAGnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;;AAQzF,UAAU,UAAU;IAClB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,sEAAsE;IACtE,aAAa,EAAE,OAAO,CAAC;IACvB,iEAAiE;IACjE,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,gFAAgF;IAChF,aAAa,EAAE,aAAa,CAAC;IAC7B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0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OnChan
|
|
|
18
18
|
autoFocus: boolean;
|
|
19
19
|
/** Whether completed chips draw the icon of the option that answered them. Default: true. */
|
|
20
20
|
showChipIcons: boolean;
|
|
21
|
+
/** Whether completed chips draw the picture of the option that answered them, in place of the icon. Default: true. */
|
|
22
|
+
showChipImages: boolean;
|
|
21
23
|
private readonly el;
|
|
22
24
|
private readonly renderer;
|
|
23
25
|
private readonly zone;
|
|
@@ -52,6 +54,6 @@ export declare class AIAutocompleteEditorHostDirective implements OnInit, OnChan
|
|
|
52
54
|
private bindBeforeInputListener;
|
|
53
55
|
private bindStateSubscription;
|
|
54
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIAutocompleteEditorHostDirective, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AIAutocompleteEditorHostDirective, "[aiaEditorHost]", never, { "controller": "aiaEditorHost"; "autoFocus": "autoFocus"; "showChipIcons": "showChipIcons"; }, {}, never, never, true, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AIAutocompleteEditorHostDirective, "[aiaEditorHost]", never, { "controller": "aiaEditorHost"; "autoFocus": "autoFocus"; "showChipIcons": "showChipIcons"; "showChipImages": "showChipImages"; }, {}, never, never, true, never>;
|
|
56
58
|
}
|
|
57
59
|
//# sourceMappingURL=editor-host.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-host.directive.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/editor-host/editor-host.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EAEX,KAAK,aAAa,EACnB,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;;AAiB5F;;;;;;;;;;;GAWG;AACH,qBAmBa,iCAAkC,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAC5D,UAAU,EAAG,wBAAwB,CAA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AAE,aAAa,GAAG,IAAI;IAIrC,OAAO,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAoBpC,OAAO,IAAI,IAAI;IAIf,MAAM,IAAI,IAAI;IAMd,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,6BAA6B;IAwCrC,OAAO,CAAC,uBAAuB;IAsB/B,OAAO,CAAC,qBAAqB;yCAvNlB,iCAAiC;2CAAjC,iCAAiC;CAqP7C"}
|
|
@@ -28,6 +28,10 @@ export declare class SuggestionGridComponent implements OnChanges, AfterViewChec
|
|
|
28
28
|
optionsPosition: "above" | "below";
|
|
29
29
|
/** Whether rows draw their `icon_svg` before the text. Default: true. */
|
|
30
30
|
showIcons: boolean;
|
|
31
|
+
/** Whether rows draw their `image_url` as a thumbnail before the text. Default: true. */
|
|
32
|
+
showImages: boolean;
|
|
33
|
+
/** Whether rows show their `item_count` at the trailing edge. Default: true. */
|
|
34
|
+
showCounts: boolean;
|
|
31
35
|
readonly select: EventEmitter<SuggestionOption>;
|
|
32
36
|
readonly highlight: EventEmitter<number>;
|
|
33
37
|
private readonly cdr;
|
|
@@ -57,6 +61,6 @@ export declare class SuggestionGridComponent implements OnChanges, AfterViewChec
|
|
|
57
61
|
*/
|
|
58
62
|
trackByOptionText: (_: number, opt: SuggestionOption) => string;
|
|
59
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionGridComponent, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionGridComponent, "aia-suggestion-grid", never, { "options": "options"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "loading": "loading"; "groupKey": "groupKey"; "optionsPosition": "optionsPosition"; "showIcons": "showIcons"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionGridComponent, "aia-suggestion-grid", never, { "options": "options"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "loading": "loading"; "groupKey": "groupKey"; "optionsPosition": "optionsPosition"; "showIcons": "showIcons"; "showImages": "showImages"; "showCounts": "showCounts"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
|
|
61
65
|
}
|
|
62
66
|
//# sourceMappingURL=suggestion-grid.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/suggestion-grid/suggestion-grid.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EAIrB,YAAY,EAIZ,KAAK,SAAS,EAEd,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,eAAe,EAGpB,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;;AAI7C;;;;;;;;GAQG;AACH,qBAQa,uBAAwB,YAAW,SAAS,EAAE,gBAAgB;IAChE,OAAO,EAAE,gBAAgB,EAAE,CAAM;IACjC,WAAW,SAAM;IACjB,SAAS,SAAM;IACf,OAAO,UAAS;IACzB;;;;OAIG;IACM,QAAQ,SAAM;IACvB;;;OAGG;IACM,eAAe,EAAE,OAAO,GAAG,OAAO,CAAW;IACtD,yEAAyE;IAChE,SAAS,UAAQ;
|
|
1
|
+
{"version":3,"file":"suggestion-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/suggestion-grid/suggestion-grid.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EAIrB,YAAY,EAIZ,KAAK,SAAS,EAEd,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,eAAe,EAGpB,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;;AAI7C;;;;;;;;GAQG;AACH,qBAQa,uBAAwB,YAAW,SAAS,EAAE,gBAAgB;IAChE,OAAO,EAAE,gBAAgB,EAAE,CAAM;IACjC,WAAW,SAAM;IACjB,SAAS,SAAM;IACf,OAAO,UAAS;IACzB;;;;OAIG;IACM,QAAQ,SAAM;IACvB;;;OAGG;IACM,eAAe,EAAE,OAAO,GAAG,OAAO,CAAW;IACtD,yEAAyE;IAChE,SAAS,UAAQ;IAC1B,yFAAyF;IAChF,UAAU,UAAQ;IAC3B,gFAAgF;IACvE,UAAU,UAAQ;IAEjB,QAAQ,CAAC,MAAM,iCAAwC;IACvD,QAAQ,CAAC,SAAS,uBAA8B;IAE1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAEJ,OAAO,CAAC,QAAQ,CAAC,CAAgB;IAE9E;;;;;OAKG;IACH,IAAI,EAAE,eAAe,CAAyC;IAC9D,OAAO,CAAC,YAAY,CAAQ;IAK5B,QAAQ,IAAI,IAAI;IAKhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAWzC,kBAAkB,IAAI,IAAI;IA8B1B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIpC;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAOnC;;;;OAIG;IACH,iBAAiB,MAAO,MAAM,OAAO,gBAAgB,KAAG,MAAM,CAAoC;yCA7GvF,uBAAuB;2CAAvB,uBAAuB;CA8GnC"}
|
|
@@ -13,6 +13,8 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* - Loading skeleton when `loading=true`
|
|
14
14
|
* - Server-provided icon (`icon_svg`), allowlisted through the core's
|
|
15
15
|
* `sanitizeOptionIconSvg` before it is bound as HTML
|
|
16
|
+
* - Server-provided picture (`image_url`) as a square thumbnail in place of
|
|
17
|
+
* the icon, and item count (`item_count`) at the row's trailing edge
|
|
16
18
|
*
|
|
17
19
|
* @internal
|
|
18
20
|
*/
|
|
@@ -23,6 +25,10 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
23
25
|
loading: boolean;
|
|
24
26
|
/** Whether to draw the option's `icon_svg` before its text. Default: true. */
|
|
25
27
|
showIcon: boolean;
|
|
28
|
+
/** Whether to draw the option's `image_url` as a thumbnail before its text, in place of the icon. Default: true. */
|
|
29
|
+
showImage: boolean;
|
|
30
|
+
/** Whether to show the option's `item_count` at the row's trailing edge. Default: true. */
|
|
31
|
+
showCount: boolean;
|
|
26
32
|
/** Fade this option's text toward its bottom edge (last visible row of a scrollable grid). */
|
|
27
33
|
scrollHint: boolean;
|
|
28
34
|
/**
|
|
@@ -45,8 +51,24 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
45
51
|
private pressedTimer;
|
|
46
52
|
private iconSource;
|
|
47
53
|
private iconSafe;
|
|
54
|
+
/** The `src` whose load failed, so the tile keeps its placeholder fill for it. */
|
|
55
|
+
private failedSrc;
|
|
48
56
|
/** The option's text. `icon` is the icon's name and is never shown as text. */
|
|
49
57
|
get label(): string;
|
|
58
|
+
/**
|
|
59
|
+
* The picture's `src`, or `null` when the row draws none: images off, no
|
|
60
|
+
* `image_url`, or one that is not an http(s) URL. A picture stands in for
|
|
61
|
+
* the icon — a row never leads with two visuals.
|
|
62
|
+
*/
|
|
63
|
+
get imageSrc(): string | null;
|
|
64
|
+
/** Whether the current picture failed to load (the tile's fill stays). */
|
|
65
|
+
get imageFailed(): boolean;
|
|
66
|
+
onImageError(): void;
|
|
67
|
+
/**
|
|
68
|
+
* The count as printed ("1,284"), or `null` when the row shows none. The
|
|
69
|
+
* unit word after it is the stylesheet's (`--aia-option-count-unit`).
|
|
70
|
+
*/
|
|
71
|
+
get countLabel(): string | null;
|
|
50
72
|
/**
|
|
51
73
|
* The option's icon as bindable HTML, or `null` when it has none (or its
|
|
52
74
|
* markup failed the allowlist). Angular's own HTML sanitizer strips `<svg>`
|
|
@@ -60,6 +82,6 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
60
82
|
onMouseEnter(): void;
|
|
61
83
|
onKeyDown(event: KeyboardEvent): void;
|
|
62
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionItemComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionItemComponent, "aia-suggestion-item", never, { "option": "option"; "isHighlighted": "isHighlighted"; "id": "id"; "loading": "loading"; "showIcon": "showIcon"; "scrollHint": "scrollHint"; "enterDelayMs": "enterDelayMs"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionItemComponent, "aia-suggestion-item", never, { "option": "option"; "isHighlighted": "isHighlighted"; "id": "id"; "loading": "loading"; "showIcon": "showIcon"; "showImage": "showImage"; "showCount": "showCount"; "scrollHint": "scrollHint"; "enterDelayMs": "enterDelayMs"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
|
|
64
86
|
}
|
|
65
87
|
//# sourceMappingURL=suggestion-item.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-item.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/suggestion-item/suggestion-item.component.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,YAAY,EAGZ,KAAK,SAAS,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,
|
|
1
|
+
{"version":3,"file":"suggestion-item.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/suggestion-item/suggestion-item.component.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,YAAY,EAGZ,KAAK,SAAS,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAIL,KAAK,gBAAgB,EAEtB,MAAM,qCAAqC,CAAC;;AAE7C;;;;;;;;;;;;;;;GAeG;AACH,qBASa,uBAAwB,YAAW,SAAS;IAC9C,MAAM,EAAG,gBAAgB,CAAC;IAC1B,aAAa,UAAS;IACtB,EAAE,SAAM;IACR,OAAO,UAAS;IACzB,8EAA8E;IACrE,QAAQ,UAAQ;IACzB,oHAAoH;IAC3G,SAAS,UAAQ;IAC1B,2FAA2F;IAClF,SAAS,UAAQ;IAC1B,8FAA8F;IACrF,UAAU,UAAS;IAC5B;;;;OAIG;IACH,IAAa,YAAY,CAAC,KAAK,EAAE,MAAM,EAEtC;IACD;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEvB,QAAQ,CAAC,MAAM,iCAAwC;IACvD,QAAQ,CAAC,SAAS,qBAA4B;IAExD,OAAO,UAAS;IAEhB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAClD,OAAO,CAAC,YAAY,CAA4C;IAChE,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,QAAQ,CAAyB;IACzC,kFAAkF;IAClF,OAAO,CAAC,SAAS,CAAuB;IAExC,+EAA+E;IAC/E,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,MAAM,GAAG,IAAI,CAE5B;IAED,0EAA0E;IAC1E,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,YAAY,IAAI,IAAI;IAKpB;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;IAED;;;;;;OAMG;IACH,IAAI,QAAQ,IAAI,QAAQ,GAAG,IAAI,CAQ9B;IAED,WAAW,IAAI,IAAI;IAInB,QAAQ,IAAI,IAAI;IAYhB,YAAY,IAAI,IAAI;IAKpB,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;yCA/G1B,uBAAuB;2CAAvB,uBAAuB;CAsHnC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicx-eng/ai-autocomplete-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "AI Autocomplete Angular SDK — guided autocomplete with pill-based input and dropdown suggestions",
|
|
5
5
|
"module": "fesm2015/magicx-eng-ai-autocomplete-angular.mjs",
|
|
6
6
|
"es2020": "fesm2020/magicx-eng-ai-autocomplete-angular.mjs",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"tslib": "^2.3.0",
|
|
24
|
-
"@magicx-eng/ai-autocomplete-vanilla": "0.
|
|
24
|
+
"@magicx-eng/ai-autocomplete-vanilla": "0.27.0"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"angular",
|
package/public-api.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* are considered part of the package's public contract.
|
|
6
6
|
*/
|
|
7
7
|
export type { AccessTokenConfig, AccessTokenResult, APIConfig, APIKeyConfig, AppearanceMode, AutocompleteResult, CompletedParam, CompletedParamState, CustomFieldsReport, DateMonthView, DateRange, ExpressedFilter, FilterOp, FormatType, IdentifiedParam, IdentifiedParamState, MatchedItem, MatchedItems, OptionOverrides, Product, ProductsConfig, ProductsLayout, Segment, SkippedParamState, SubmitResultExtras, Suggestion, SuggestionOption, TaskKind, } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
8
|
-
import { buildSubmitResult as _buildSubmitResult, cellDay as _cellDay, cellIso as _cellIso, dateCellMarks as _dateCellMarks, formatDate as _formatDate, formatDateRange as _formatDateRange, isoDate as _isoDate, monthLabel as _monthLabel, optionLabel as _optionLabel, parseDate as _parseDate, parseLooseDate as _parseLooseDate, parseLooseDateRange as _parseLooseDateRange, productFromMatchedItem as _productFromMatchedItem, productsFromCustomFields as _productsFromCustomFields, sanitizeOptionIconSvg as _sanitizeOptionIconSvg, selectedRangeFor as _selectedRangeFor, visibleDateRange as _visibleDateRange, withSkippedParams as _withSkippedParams } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
8
|
+
import { buildSubmitResult as _buildSubmitResult, cellDay as _cellDay, cellIso as _cellIso, dateCellMarks as _dateCellMarks, formatDate as _formatDate, formatDateRange as _formatDateRange, formatOptionCount as _formatOptionCount, isoDate as _isoDate, monthLabel as _monthLabel, optionCountLabel as _optionCountLabel, optionHasImage as _optionHasImage, optionImageSrc as _optionImageSrc, optionLabel as _optionLabel, parseDate as _parseDate, parseLooseDate as _parseLooseDate, parseLooseDateRange as _parseLooseDateRange, productFromMatchedItem as _productFromMatchedItem, productsFromCustomFields as _productsFromCustomFields, sanitizeOptionIconSvg as _sanitizeOptionIconSvg, selectedRangeFor as _selectedRangeFor, visibleDateRange as _visibleDateRange, withSkippedParams as _withSkippedParams } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
9
9
|
/**
|
|
10
10
|
* Re-exported through local bindings rather than `export ... from`.
|
|
11
11
|
*
|
|
@@ -34,6 +34,14 @@ export declare const selectedRangeFor: typeof _selectedRangeFor;
|
|
|
34
34
|
export declare const visibleDateRange: typeof _visibleDateRange;
|
|
35
35
|
export declare const optionLabel: typeof _optionLabel;
|
|
36
36
|
export declare const sanitizeOptionIconSvg: typeof _sanitizeOptionIconSvg;
|
|
37
|
+
export declare const DEFAULT_OPTION_COUNT_UNIT: {
|
|
38
|
+
readonly one: "item";
|
|
39
|
+
readonly other: "items";
|
|
40
|
+
};
|
|
41
|
+
export declare const formatOptionCount: typeof _formatOptionCount;
|
|
42
|
+
export declare const optionCountLabel: typeof _optionCountLabel;
|
|
43
|
+
export declare const optionHasImage: typeof _optionHasImage;
|
|
44
|
+
export declare const optionImageSrc: typeof _optionImageSrc;
|
|
37
45
|
export declare const PRODUCT_PATH_PREFIX = "/products/";
|
|
38
46
|
export declare const productFromMatchedItem: typeof _productFromMatchedItem;
|
|
39
47
|
export declare const productsFromCustomFields: typeof _productsFromCustomFields;
|
package/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,OAAO,EACP,cAAc,EACd,cAAc,EACd,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,QAAQ,GACT,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,iBAAiB,IAAI,kBAAkB,EACvC,OAAO,IAAI,QAAQ,EACnB,OAAO,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,OAAO,EACP,cAAc,EACd,cAAc,EACd,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,QAAQ,GACT,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,iBAAiB,IAAI,kBAAkB,EACvC,OAAO,IAAI,QAAQ,EACnB,OAAO,IAAI,QAAQ,EAInB,aAAa,IAAI,cAAc,EAC/B,UAAU,IAAI,WAAW,EACzB,eAAe,IAAI,gBAAgB,EACnC,iBAAiB,IAAI,kBAAkB,EACvC,OAAO,IAAI,QAAQ,EACnB,UAAU,IAAI,WAAW,EACzB,gBAAgB,IAAI,iBAAiB,EACrC,cAAc,IAAI,eAAe,EACjC,cAAc,IAAI,eAAe,EACjC,WAAW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