@magicx-eng/ai-autocomplete-angular 0.32.4 → 0.32.6
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/esm2020/lib/ai-autocomplete/ai-autocomplete.component.mjs +8 -4
- package/esm2020/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.mjs +21 -8
- package/esm2020/lib/internal/product-strip/product-strip.component.mjs +8 -4
- package/esm2020/lib/internal/submit-button/submit-button.component.mjs +8 -3
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +38 -13
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +38 -13
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts +2 -0
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts.map +1 -1
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts +12 -3
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts.map +1 -1
- package/lib/internal/product-strip/product-strip.component.d.ts +4 -2
- package/lib/internal/product-strip/product-strip.component.d.ts.map +1 -1
- package/lib/internal/submit-button/submit-button.component.d.ts +3 -1
- package/lib/internal/submit-button/submit-button.component.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -182,6 +182,8 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
182
182
|
*/
|
|
183
183
|
get submitButtonState(): "default" | "custom" | "hidden";
|
|
184
184
|
/** Narrowed accessor for *ngTemplateOutlet — never undefined. */
|
|
185
|
+
/** The default submit button's name, in the widget language. */
|
|
186
|
+
get submitLabel(): string;
|
|
185
187
|
get customSubmitTemplate(): TemplateRef<unknown> | null;
|
|
186
188
|
get showInlinePills(): boolean;
|
|
187
189
|
get showDropdownPills(): boolean;
|
|
@@ -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,EAIlB,KAAK,UAAU,EACf,YAAY,EAKZ,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EAGX,KAAK,aAAa,EAClB,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAGxB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,
|
|
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,EAIlB,KAAK,UAAU,EACf,YAAY,EAKZ,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EAGX,KAAK,aAAa,EAClB,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAGxB,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,EAGpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;;AAKpF;;;;;;;GAOG;AACH,qBAuBa,uBACX,YAAW,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB;IAInE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1
|
import { type AfterViewChecked, type OnChanges, type OnDestroy, type OnInit, type SimpleChanges } from "@angular/core";
|
|
2
|
-
import { type AppearanceMode, type DateMonthView, type DateSelection, type Product, type ProductImageFallback, type ProductsLayout, type Suggestion, type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
2
|
+
import { type AppearanceMode, type DateMonthView, type DateSelection, type Product, type ProductImageFallback, type ProductsLayout, type Suggestion, type SuggestionOption, type UIStrings } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
3
3
|
import { type Observable } from "rxjs";
|
|
4
4
|
import type { AIAutocompleteController } from "../controller/ai-autocomplete.controller";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -36,6 +36,8 @@ interface DropdownVm {
|
|
|
36
36
|
groupKey: string;
|
|
37
37
|
footerKey: string;
|
|
38
38
|
footerHint: string;
|
|
39
|
+
/** The words of the widget language. */
|
|
40
|
+
strings: UIStrings;
|
|
39
41
|
optionsPosition: "above" | "below";
|
|
40
42
|
/** Whether option rows draw their `icon_svg` before the text. */
|
|
41
43
|
showOptionIcons: boolean;
|
|
@@ -105,6 +107,12 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
105
107
|
* unset when the dropdown sits inside a `.magicx-aia` ancestor (e.g. Tier 1).
|
|
106
108
|
*/
|
|
107
109
|
mode?: AppearanceMode;
|
|
110
|
+
/**
|
|
111
|
+
* The widget language. It picks the words the dropdown draws: Spanish for
|
|
112
|
+
* any "es" tag, else English. Only this input counts, as in the vanilla
|
|
113
|
+
* widget. Tier 1 passes its own `language`.
|
|
114
|
+
*/
|
|
115
|
+
language?: string;
|
|
108
116
|
/** Concrete resolved mode, or null when `mode` is unset (inherit from ancestor). */
|
|
109
117
|
resolvedMode: "light" | "dark" | null;
|
|
110
118
|
private modeMql?;
|
|
@@ -118,7 +126,7 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
118
126
|
/** Fallback skeleton-bar widths used when loading with zero cached options. */
|
|
119
127
|
readonly fallbackSkeletonBarWidths: number[];
|
|
120
128
|
/** Accessible name of the "more below" scroll arrow. */
|
|
121
|
-
|
|
129
|
+
get scrollArrowLabel(): string;
|
|
122
130
|
private dropdownRootRef?;
|
|
123
131
|
private scrollArrowRef?;
|
|
124
132
|
/** The grid the scroll-arrow controller is currently bound to. */
|
|
@@ -145,6 +153,7 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
145
153
|
private readonly showOptionIcons$;
|
|
146
154
|
private readonly showOptionImages$;
|
|
147
155
|
private readonly showOptionCounts$;
|
|
156
|
+
private readonly language$;
|
|
148
157
|
private lastVisibleContent;
|
|
149
158
|
ngOnInit(): void;
|
|
150
159
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -183,7 +192,7 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
183
192
|
onProductFocusChange(focused: boolean): void;
|
|
184
193
|
preventBlur(event: Event): void;
|
|
185
194
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIAutocompleteDropdownComponent, never>;
|
|
186
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteDropdownComponent, "ai-autocomplete-dropdown", never, { "controller": "controller"; "showPills": "showPills"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "showOptionImages": "showOptionImages"; "showOptionCounts": "showOptionCounts"; "productsLayout": "productsLayout"; "productImageFallback": "productImageFallback"; "className": "className"; "mode": "mode"; }, {}, never, never, true, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteDropdownComponent, "ai-autocomplete-dropdown", never, { "controller": "controller"; "showPills": "showPills"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "showOptionImages": "showOptionImages"; "showOptionCounts": "showOptionCounts"; "productsLayout": "productsLayout"; "productImageFallback": "productImageFallback"; "className": "className"; "mode": "mode"; "language": "language"; }, {}, never, never, true, never>;
|
|
187
196
|
}
|
|
188
197
|
export {};
|
|
189
198
|
//# sourceMappingURL=ai-autocomplete-dropdown.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,EAQrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,aAAa,EAClB,KAAK,aAAa,EAGlB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,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,EAQrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,aAAa,EAClB,KAAK,aAAa,EAGlB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAEnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAEf,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,CAA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,IAAI,IAAI;IAkBhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAiCzC;;;;;;;OAOG;IACH,kBAAkB,IAAI,IAAI;IAmB1B,WAAW,IAAI,IAAI;IAOnB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAwBjB,OAAO,CAAC,oBAAoB;IAQ5B,4EAA4E;IAC5E,OAAO,CAAC,MAAM;IAgHd,YAAY,MAAO,MAAM,KAAK,MAAM,KAAG,MAAM,CAAM;IAEnD,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIhC,MAAM,IAAI,IAAI;IAId,QAAQ,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAIxC,eAAe,IAAI,IAAI;IAIvB,WAAW,IAAI,IAAI;IAInB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKhC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIlC,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAIvC;;;OAGG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAI5C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCArZpB,+BAA+B;2CAA/B,+BAA+B;CAyZ3C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ElementRef, EventEmitter, type OnChanges, type OnDestroy } from "@angular/core";
|
|
2
|
-
import { type Product, type ProductImageFallback, type ProductsLayout, productInitial } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
2
|
+
import { type Product, type ProductImageFallback, type ProductsLayout, productInitial, type UIStrings } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Internal product strip rendered below the dropdown's options grid. Mirrors
|
|
@@ -34,6 +34,8 @@ export declare class ProductStripComponent implements OnDestroy, OnChanges {
|
|
|
34
34
|
/** How the cards lay out — a scrolling row, or stacked as full-width rows. Default: "row". */
|
|
35
35
|
layout: ProductsLayout;
|
|
36
36
|
imageFallback: ProductImageFallback;
|
|
37
|
+
/** The words of the widget language. Default: English. */
|
|
38
|
+
strings: UIStrings;
|
|
37
39
|
readonly initial: typeof productInitial;
|
|
38
40
|
/**
|
|
39
41
|
* Per product id, the `src`s that failed to load: a card moves on to the
|
|
@@ -72,6 +74,6 @@ export declare class ProductStripComponent implements OnDestroy, OnChanges {
|
|
|
72
74
|
onCardFocus(): void;
|
|
73
75
|
onCardBlur(event: FocusEvent): void;
|
|
74
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductStripComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductStripComponent, "aia-product-strip", never, { "products": "products"; "listboxId": "listboxId"; "focusable": "focusable"; "layout": "layout"; "imageFallback": "imageFallback"; }, { "select": "select"; "focusChange": "focusChange"; }, never, never, true, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductStripComponent, "aia-product-strip", never, { "products": "products"; "listboxId": "listboxId"; "focusable": "focusable"; "layout": "layout"; "imageFallback": "imageFallback"; "strings": "strings"; }, { "select": "select"; "focusChange": "focusChange"; }, never, never, true, never>;
|
|
76
78
|
}
|
|
77
79
|
//# sourceMappingURL=product-strip.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-strip.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/product-strip/product-strip.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,UAAU,EACf,YAAY,EAEZ,KAAK,SAAS,EACd,KAAK,SAAS,EAIf,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAEnB,cAAc,
|
|
1
|
+
{"version":3,"file":"product-strip.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/product-strip/product-strip.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL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,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IAMvD,WAAW,IAAI,IAAI;IAInB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCAlHxB,qBAAqB;2CAArB,qBAAqB;CAuHjC"}
|
|
@@ -9,9 +9,11 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class SubmitButtonComponent {
|
|
11
11
|
disabled: boolean;
|
|
12
|
+
/** The accessible name. Default: the English word. */
|
|
13
|
+
label: string;
|
|
12
14
|
readonly submit: EventEmitter<MouseEvent>;
|
|
13
15
|
onClick(event: MouseEvent): void;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitButtonComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitButtonComponent, "aia-submit-button", never, { "disabled": "disabled"; }, { "submit": "submit"; }, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitButtonComponent, "aia-submit-button", never, { "disabled": "disabled"; "label": "label"; }, { "submit": "submit"; }, never, never, true, never>;
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=submit-button.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-button.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/submit-button/submit-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;;
|
|
1
|
+
{"version":3,"file":"submit-button.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/submit-button/submit-button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;;AAGvB;;;;;;GAMG;AACH,qBAQa,qBAAqB;IACvB,QAAQ,UAAS;IAC1B,sDAAsD;IAC7C,KAAK,SAAyB;IAC7B,QAAQ,CAAC,MAAM,2BAAkC;IAE3D,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCANrB,qBAAqB;2CAArB,qBAAqB;CASjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicx-eng/ai-autocomplete-angular",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.6",
|
|
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.43.0"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"angular",
|