@magicx-eng/ai-autocomplete-angular 0.46.0 → 0.47.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 +78 -543
- package/REFERENCE.md +610 -0
- package/esm2020/lib/ai-autocomplete/ai-autocomplete.component.mjs +22 -5
- package/esm2020/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.mjs +36 -8
- package/esm2020/lib/controller/ai-autocomplete.controller.mjs +47 -4
- package/esm2020/lib/internal/date-grid/date-grid.component.mjs +3 -3
- package/esm2020/lib/internal/location-field/location-field.component.mjs +370 -0
- package/esm2020/lib/internal/product-strip/product-strip.component.mjs +3 -3
- package/esm2020/lib/internal/submit-button/submit-button.component.mjs +7 -3
- package/esm2020/lib/internal/suggestion-grid/suggestion-grid.component.mjs +7 -3
- package/esm2020/lib/internal/suggestion-item/suggestion-item.component.mjs +22 -6
- package/esm2020/lib/shared/types.mjs +1 -1
- package/esm2020/public-api.mjs +6 -2
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +518 -33
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +509 -28
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts +9 -1
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts.map +1 -1
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts +13 -1
- package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts.map +1 -1
- package/lib/controller/ai-autocomplete.controller.d.ts +25 -3
- package/lib/controller/ai-autocomplete.controller.d.ts.map +1 -1
- package/lib/internal/location-field/location-field.component.d.ts +98 -0
- package/lib/internal/location-field/location-field.component.d.ts.map +1 -0
- 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/lib/internal/suggestion-grid/suggestion-grid.component.d.ts +3 -1
- package/lib/internal/suggestion-grid/suggestion-grid.component.d.ts.map +1 -1
- package/lib/internal/suggestion-item/suggestion-item.component.d.ts +8 -2
- package/lib/internal/suggestion-item/suggestion-item.component.d.ts.map +1 -1
- package/lib/shared/types.d.ts +19 -1
- package/lib/shared/types.d.ts.map +1 -1
- package/package.json +5 -2
- package/public-api.d.ts +4 -2
- package/public-api.d.ts.map +1 -1
|
@@ -53,6 +53,12 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
53
53
|
dropdownTrigger?: "auto" | "manual" | "hidden";
|
|
54
54
|
closeDropdownOnBlur?: boolean;
|
|
55
55
|
showNonTappableOptions?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* When true (default), a location parameter without options searches the
|
|
58
|
+
* server's location search as the user types in its field. Set to false to
|
|
59
|
+
* take typed text only.
|
|
60
|
+
*/
|
|
61
|
+
locationSearch?: boolean;
|
|
56
62
|
/**
|
|
57
63
|
* When true (default), the dropdown's pill bar ends in a small "skip" button
|
|
58
64
|
* that dismisses the active pill — same action as pressing → at the end of
|
|
@@ -165,6 +171,8 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
165
171
|
containerRef: ElementRef<HTMLDivElement>;
|
|
166
172
|
editorRef?: ElementRef<HTMLDivElement>;
|
|
167
173
|
pillContainerRef?: ElementRef<HTMLSpanElement>;
|
|
174
|
+
editorAreaRef: ElementRef<HTMLDivElement>;
|
|
175
|
+
private stopEditorHeight?;
|
|
168
176
|
controller: AIAutocompleteController;
|
|
169
177
|
/**
|
|
170
178
|
* Concrete light/dark value bound to `[attr.data-mode]`. Seeded in ngOnInit
|
|
@@ -248,6 +256,6 @@ export declare class AIAutocompleteComponent implements OnInit, AfterViewInit, O
|
|
|
248
256
|
private handleSubmitFromUserAction;
|
|
249
257
|
private measurePillWrap;
|
|
250
258
|
static ɵfac: i0.ɵɵFactoryDeclaration<AIAutocompleteComponent, never>;
|
|
251
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteComponent, "ai-autocomplete", never, { "apiConfig": "apiConfig"; "additionalContext": "additionalContext"; "language": "language"; "currency": "currency"; "productId": "productId"; "visitorId": "visitorId"; "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"; "productImageFallback": "productImageFallback"; "showChipIcons": "showChipIcons"; "showChipImages": "showChipImages"; "autoFocus": "autoFocus"; "value": "value"; "completedParams": "completedParams"; "showProducts": "showProducts"; "products": "products"; "mapProducts": "mapProducts"; "onProductAddToCart": "onProductAddToCart"; "submitButton": "submitButton"; "resetOnSubmit": "resetOnSubmit"; }, { "submitted": "submitted"; "resultChange": "resultChange"; "errored": "errored"; "valueChange": "valueChange"; "completedParamsChange": "completedParamsChange"; "focused": "focused"; "blurred": "blurred"; "productSelect": "productSelect"; }, never, never, true, never>;
|
|
259
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AIAutocompleteComponent, "ai-autocomplete", never, { "apiConfig": "apiConfig"; "additionalContext": "additionalContext"; "language": "language"; "currency": "currency"; "productId": "productId"; "visitorId": "visitorId"; "optionOverrides": "optionOverrides"; "maskCompletedText": "maskCompletedText"; "columns": "columns"; "pillPlacement": "pillPlacement"; "mode": "mode"; "optionsPosition": "optionsPosition"; "animations": "animations"; "dropdownTrigger": "dropdownTrigger"; "closeDropdownOnBlur": "closeDropdownOnBlur"; "showNonTappableOptions": "showNonTappableOptions"; "locationSearch": "locationSearch"; "showSkipButton": "showSkipButton"; "showOptionIcons": "showOptionIcons"; "showOptionImages": "showOptionImages"; "showOptionCounts": "showOptionCounts"; "productsLayout": "productsLayout"; "productImageFallback": "productImageFallback"; "showChipIcons": "showChipIcons"; "showChipImages": "showChipImages"; "autoFocus": "autoFocus"; "value": "value"; "completedParams": "completedParams"; "showProducts": "showProducts"; "products": "products"; "mapProducts": "mapProducts"; "onProductAddToCart": "onProductAddToCart"; "submitButton": "submitButton"; "resetOnSubmit": "resetOnSubmit"; }, { "submitted": "submitted"; "resultChange": "resultChange"; "errored": "errored"; "valueChange": "valueChange"; "completedParamsChange": "completedParamsChange"; "focused": "focused"; "blurred": "blurred"; "productSelect": "productSelect"; }, never, never, true, never>;
|
|
252
260
|
}
|
|
253
261
|
//# 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,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,EACxB,KAAK,WAAW,EAChB,KAAK,eAAe,EAGpB,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,E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,GAAG,QAAQ,CAIvD;IAED,iEAAiE;IACjE,gEAAgE;IAChE,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,oBAAoB,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAEtD;IAED,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,eAAe,EAAE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,OAAO;IAIhG,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAUvC,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAK5C,iBAAiB,CAAC,KAAK,EAAE,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;IAGH,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,0BAA0B;IAiBlC,OAAO,CAAC,eAAe;yCAjiBZ,uBAAuB;2CAAvB,uBAAuB;CAojBnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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, type TimeView, type UIStrings } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
2
|
+
import { type AppearanceMode, type DateMonthView, type DateSelection, type LocationView, type Product, type ProductImageFallback, type ProductsLayout, type Suggestion, type SuggestionOption, type TimeView, 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";
|
|
@@ -35,6 +35,12 @@ interface DropdownVm {
|
|
|
35
35
|
multiSelectView: {
|
|
36
36
|
picked: string[];
|
|
37
37
|
} | null;
|
|
38
|
+
/** True for a location pill without options: the search field replaces the grid. */
|
|
39
|
+
showsLocationField: boolean;
|
|
40
|
+
/** What the location field shows. Null unless `showsLocationField`. */
|
|
41
|
+
locationView: LocationView | null;
|
|
42
|
+
/** Whether the widget has focus — the location field takes it while it does. */
|
|
43
|
+
widgetFocused: boolean;
|
|
38
44
|
showsFallbackSkeleton: boolean;
|
|
39
45
|
isVisible: boolean;
|
|
40
46
|
/** Product cards for the strip. Empty unless `products` is configured. */
|
|
@@ -197,10 +203,16 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
|
|
|
197
203
|
onPillClick(index: number): void;
|
|
198
204
|
onSkip(): void;
|
|
199
205
|
onSelect(option: SuggestionOption): void;
|
|
206
|
+
onCommitSelect(option: SuggestionOption): void;
|
|
200
207
|
onPreviousMonth(): void;
|
|
201
208
|
onNextMonth(): void;
|
|
202
209
|
onTimeChange(minutes: number): void;
|
|
203
210
|
onTimeCommit(): void;
|
|
211
|
+
onLocationQuery(query: string): void;
|
|
212
|
+
onLocationMove(delta: number): void;
|
|
213
|
+
onLocationAnswer(index: number | undefined): void;
|
|
214
|
+
/** The field taking focus blurs the input, which must not close the panel it lives in. */
|
|
215
|
+
onLocationFocusChange(focused: boolean): void;
|
|
204
216
|
onHighlight(index: number): void;
|
|
205
217
|
onUnhighlight(index: number): void;
|
|
206
218
|
onProductSelect(product: Product): void;
|
|
@@ -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,EAKnB,KAAK,aAAa,EAClB,KAAK,aAAa,
|
|
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,EAKnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAIlB,KAAK,YAAY,EAEjB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAEnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,SAAS,EAGf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;;AAUzF,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,mFAAmF;IACnF,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,8DAA8D;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GAAG,IAAI;IAKhC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIlC,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAIvC;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,YAAa,OAAO,KAAG,QAAQ,IAAI,CAAC,CACjB;IAE5C;;;OAGG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAI5C,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCA3fpB,+BAA+B;2CAA/B,+BAA+B;CA+f3C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AutocompleteResult, type CompletedParamState, type CustomFieldsReport, type IdentifiedParamState, type Product, type Segment, type SkippedParamState, type Suggestion, type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
1
|
+
import { type AutocompleteResult, type CompletedParamState, type CustomFieldsReport, type IdentifiedParamState, type Product, type Segment, type SelectOptionOptions, type SkippedParamState, type Suggestion, type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
2
2
|
import { type Observable } from "rxjs";
|
|
3
3
|
import type { AIAutocompleteControllerOptions, AIAutocompleteControllerState, AIAutocompleteControllerUpdate, AIAutocompleteDropdownState } from "../shared/types";
|
|
4
4
|
/**
|
|
@@ -133,8 +133,12 @@ export declare class AIAutocompleteController {
|
|
|
133
133
|
* from a submit button you render, so each submit is counted once.
|
|
134
134
|
*/
|
|
135
135
|
recordSubmit(result: AutocompleteResult): void;
|
|
136
|
-
/**
|
|
137
|
-
|
|
136
|
+
/**
|
|
137
|
+
* Pick a dropdown option (or replace the re-edited param if in re-edit mode).
|
|
138
|
+
* In a multi_select question this ticks the option; pass `{ commit: true }`
|
|
139
|
+
* to answer with it right away instead.
|
|
140
|
+
*/
|
|
141
|
+
selectOption(option: SuggestionOption, how?: SelectOptionOptions): void;
|
|
138
142
|
/**
|
|
139
143
|
* Announce a product selection — fires the `onProductSelect` callback the
|
|
140
144
|
* controller was constructed with. `<ai-autocomplete-dropdown>` calls this
|
|
@@ -208,6 +212,24 @@ export declare class AIAutocompleteController {
|
|
|
208
212
|
toggleMultiSelectOption(option: SuggestionOption): void;
|
|
209
213
|
commitMultiSelect(): void;
|
|
210
214
|
commitTime(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Set the text of the location search field, which searches the server's
|
|
217
|
+
* location search after a short pause. No-op unless a location pill (a
|
|
218
|
+
* location parameter without options) is active.
|
|
219
|
+
*/
|
|
220
|
+
setLocationQuery(query: string): void;
|
|
221
|
+
/** Move the highlight through the location results (ArrowDown / ArrowUp in the field). */
|
|
222
|
+
moveLocationHighlight(delta: number): void;
|
|
223
|
+
/**
|
|
224
|
+
* Answer the active location pill: with the place at `index`, else the
|
|
225
|
+
* highlighted place, else the typed text as written.
|
|
226
|
+
*/
|
|
227
|
+
commitLocation(index?: number): void;
|
|
228
|
+
/**
|
|
229
|
+
* Report that the location field holds focus (or is about to take it), so
|
|
230
|
+
* the input's blur doesn't close the panel the field lives in.
|
|
231
|
+
*/
|
|
232
|
+
setLocationFieldFocused(focused: boolean): void;
|
|
211
233
|
/**
|
|
212
234
|
* Runs mapProducts synchronously on the shown items again without a request.
|
|
213
235
|
* Keeps the same cards while updating their content.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-autocomplete.controller.d.ts","sourceRoot":"","sources":["../../../src/lib/controller/ai-autocomplete.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAGxB,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAEzB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,gBAAgB,EAEtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAuC,KAAK,UAAU,EAAe,MAAM,MAAM,CAAC;AACzF,OAAO,KAAK,EACV,+BAA+B,EAC/B,6BAA6B,EAC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BAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKrC,0FAA0F;IAC1F,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK1C;;;OAGG;IACH,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAKpC;;;OAGG;IACH,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAK/C;;;;OAIG;IACH,eAAe,IAAI,IAAI;IAOvB;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,8BAA8B,GAAG,IAAI;IAalD;;;;OAIG;IACH,OAAO,IAAI,IAAI;CAOhB"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type AfterViewChecked, type ElementRef, EventEmitter, type OnDestroy } from "@angular/core";
|
|
2
|
+
import type { LocationPlace, LocationView } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* The dropdown's location body, rendered in place of the options grid for a
|
|
6
|
+
* location parameter that came with no options. Angular analogue of vanilla's
|
|
7
|
+
* `renderLocationField` and React's `<LocationField>`: a search field over
|
|
8
|
+
* the server's location search, and the places it returned.
|
|
9
|
+
*
|
|
10
|
+
* The search itself — debounce, cancellation, results, highlight — lives in
|
|
11
|
+
* the core. This component only moves focus: into the field when the widget
|
|
12
|
+
* has focus, and back to the input it came from before an answer, on Escape
|
|
13
|
+
* or backspacing out of an empty field, or when the field goes away.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare class LocationFieldComponent implements AfterViewChecked, OnDestroy {
|
|
18
|
+
/** The core's `locationView`: the field's text and the places found for it. */
|
|
19
|
+
view: LocationView | null;
|
|
20
|
+
/** Placeholder and accessible name of the field ("Search a city or address"). */
|
|
21
|
+
searchLabel: string;
|
|
22
|
+
/** Shown when a search found nothing ("No places found"). */
|
|
23
|
+
noResultsLabel: string;
|
|
24
|
+
/** Says Enter answers with the typed text ("Press Enter to use what you typed"). */
|
|
25
|
+
useTypedLabel: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the widget has focus. The field takes focus whenever it does —
|
|
28
|
+
* so a user typing in the input types straight into the field — unless the
|
|
29
|
+
* user has left the field for the input since. Never pulls focus onto a page
|
|
30
|
+
* the user wasn't typing in.
|
|
31
|
+
*/
|
|
32
|
+
widgetFocused: boolean;
|
|
33
|
+
/** False while the panel is closed: the field leaves the tab order. */
|
|
34
|
+
visible: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* False for the press window after an answer: the answered pill's field is
|
|
37
|
+
* still on screen and must not take a second answer.
|
|
38
|
+
*/
|
|
39
|
+
interactive: boolean;
|
|
40
|
+
/** The field's text changed — the core's `setLocationQuery`. */
|
|
41
|
+
readonly query: EventEmitter<string>;
|
|
42
|
+
/** ArrowDown / ArrowUp — the core's `moveLocationHighlight`. */
|
|
43
|
+
readonly move: EventEmitter<number>;
|
|
44
|
+
/** Answer: the place at the index, else the highlighted place, else the typed text — the core's `commitLocation`. */
|
|
45
|
+
readonly answer: EventEmitter<number | undefined>;
|
|
46
|
+
/** The field took or let go of focus — the core's `setLocationFieldFocused`. */
|
|
47
|
+
readonly focusChange: EventEmitter<boolean>;
|
|
48
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
49
|
+
rootRef: ElementRef<HTMLElement>;
|
|
50
|
+
fieldRef: ElementRef<HTMLElement>;
|
|
51
|
+
readonly fieldId: string;
|
|
52
|
+
private returnTo;
|
|
53
|
+
private returnRange;
|
|
54
|
+
private returning;
|
|
55
|
+
private declined;
|
|
56
|
+
private focusQueued;
|
|
57
|
+
private claimed;
|
|
58
|
+
get trimmedQuery(): string;
|
|
59
|
+
get activeDescendant(): string | null;
|
|
60
|
+
rowId(index: number): string;
|
|
61
|
+
trackPlace(_index: number, place: LocationPlace): string;
|
|
62
|
+
ngAfterViewChecked(): void;
|
|
63
|
+
/**
|
|
64
|
+
* The field can go away while it holds focus — the dropdown withholds it
|
|
65
|
+
* while a request is in flight (a skip that fetches, say). Angular removes
|
|
66
|
+
* the node before this hook runs, so focus may already have fallen to the
|
|
67
|
+
* body: hand it back to the input it came from, and release the claim.
|
|
68
|
+
*/
|
|
69
|
+
ngOnDestroy(): void;
|
|
70
|
+
/**
|
|
71
|
+
* A press anywhere on the field (the input, its search icon, its padding —
|
|
72
|
+
* the label focuses the input for all of them) must reach it: the dropdown
|
|
73
|
+
* root cancels every mousedown inside it, so this one stops here — and
|
|
74
|
+
* claims focus before the editor's blur, which would otherwise close the
|
|
75
|
+
* panel.
|
|
76
|
+
*/
|
|
77
|
+
onPress(event: MouseEvent): void;
|
|
78
|
+
onInput(): void;
|
|
79
|
+
onFocus(): void;
|
|
80
|
+
onBlur(): void;
|
|
81
|
+
onKeydown(event: KeyboardEvent): void;
|
|
82
|
+
/**
|
|
83
|
+
* Taps on result rows are handled here, on the results container, never by
|
|
84
|
+
* listeners on the rows — rows appear when a search lands, and content that
|
|
85
|
+
* appears mid-tap carrying its own listeners cancels the tap on iOS.
|
|
86
|
+
*/
|
|
87
|
+
onResultsClick(event: MouseEvent): void;
|
|
88
|
+
private hasFocus;
|
|
89
|
+
private reportFocus;
|
|
90
|
+
/** After the field left the document with focus in it: focus back on the input it came from. */
|
|
91
|
+
private restoreAfterRemoval;
|
|
92
|
+
private rememberReturn;
|
|
93
|
+
/** Hand focus back to the input before an answer, so the field going away never strands it. */
|
|
94
|
+
private handBack;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocationFieldComponent, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocationFieldComponent, "aia-location-field", never, { "view": "view"; "searchLabel": "searchLabel"; "noResultsLabel": "noResultsLabel"; "useTypedLabel": "useTypedLabel"; "widgetFocused": "widgetFocused"; "visible": "visible"; "interactive": "interactive"; }, { "query": "query"; "move": "move"; "answer": "answer"; "focusChange": "focusChange"; }, never, never, true, never>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=location-field.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location-field.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/location-field/location-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,gBAAgB,EAGrB,KAAK,UAAU,EACf,YAAY,EAEZ,KAAK,SAAS,EAIf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;;AAqDvF;;;;;;;;;;;;GAYG;AACH,qBASa,sBAAuB,YAAW,gBAAgB,EAAE,SAAS;IACxE,+EAA+E;IACtE,IAAI,EAAE,YAAY,GAAG,IAAI,CAAQ;IAC1C,iFAAiF;IACxE,WAAW,SAAM;IAC1B,6DAA6D;IACpD,cAAc,SAAM;IAC7B,oFAAoF;IAC3E,aAAa,SAAM;IAC5B;;;;;OAKG;IACM,aAAa,UAAS;IAC/B,uEAAuE;IAC9D,OAAO,UAAQ;IACxB;;;OAGG;IACM,WAAW,UAAQ;IAE5B,gEAAgE;IACtD,QAAQ,CAAC,KAAK,uBAA8B;IACtD,gEAAgE;IACtD,QAAQ,CAAC,IAAI,uBAA8B;IACrD,qHAAqH;IAC3G,QAAQ,CAAC,MAAM,mCAA0C;IACnE,gFAAgF;IACtE,QAAQ,CAAC,WAAW,wBAA+B;IAEvB,QAAQ,EAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IACzC,OAAO,EAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACjC,QAAQ,EAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IAEzE,QAAQ,CAAC,OAAO,SAAgC;IAEhD,OAAO,CAAC,QAAQ,CAA4B;IAE5C,OAAO,CAAC,WAAW,CAAsB;IAEzC,OAAO,CAAC,SAAS,CAAS;IAG1B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,WAAW,CAAS;IAI5B,OAAO,CAAC,OAAO,CAAS;IAExB,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAIpC;IAED,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAI5B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM;IAIxD,kBAAkB,IAAI,IAAI;IA8D1B;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAOnB;;;;;;OAMG;IACH,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAShC,OAAO,IAAI,IAAI;IAIf,OAAO,IAAI,IAAI;IAIf,MAAM,IAAI,IAAI;IASd,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAkCrC;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQvC,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,WAAW;IAKnB,gGAAgG;IAChG,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,cAAc;IActB,+FAA+F;IAC/F,OAAO,CAAC,QAAQ;yCArQL,sBAAsB;2CAAtB,sBAAsB;CAiRlC"}
|
|
@@ -9,11 +9,13 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class SubmitButtonComponent {
|
|
11
11
|
disabled: boolean;
|
|
12
|
+
/** The request is complete: the button lights up to invite the submit. */
|
|
13
|
+
ready: boolean;
|
|
12
14
|
/** The accessible name. Default: the English word. */
|
|
13
15
|
label: string;
|
|
14
16
|
readonly submit: EventEmitter<MouseEvent>;
|
|
15
17
|
onClick(event: MouseEvent): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitButtonComponent, "aia-submit-button", never, { "disabled": "disabled"; "label": "label"; }, { "submit": "submit"; }, never, never, true, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitButtonComponent, "aia-submit-button", never, { "disabled": "disabled"; "ready": "ready"; "label": "label"; }, { "submit": "submit"; }, never, never, true, never>;
|
|
18
20
|
}
|
|
19
21
|
//# 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;;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;
|
|
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,0EAA0E;IACjE,KAAK,UAAS;IACvB,sDAAsD;IAC7C,KAAK,SAAyB;IAC7B,QAAQ,CAAC,MAAM,2BAAkC;IAE3D,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCARrB,qBAAqB;2CAArB,qBAAqB;CAWjC"}
|
|
@@ -39,6 +39,8 @@ export declare class SuggestionGridComponent implements OnChanges, AfterViewChec
|
|
|
39
39
|
*/
|
|
40
40
|
get leadingVisuals(): boolean;
|
|
41
41
|
readonly select: EventEmitter<SuggestionOption>;
|
|
42
|
+
/** A multi_select row was clicked on its text: answer with it right away. */
|
|
43
|
+
readonly commitSelect: EventEmitter<SuggestionOption>;
|
|
42
44
|
readonly highlight: EventEmitter<number>;
|
|
43
45
|
/** The pointer left option `index` — the dropdown clears a highlight still on it. */
|
|
44
46
|
readonly unhighlight: EventEmitter<number>;
|
|
@@ -74,6 +76,6 @@ export declare class SuggestionGridComponent implements OnChanges, AfterViewChec
|
|
|
74
76
|
*/
|
|
75
77
|
trackByOptionText: (_: number, opt: SuggestionOption) => string;
|
|
76
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionGridComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionGridComponent, "aia-suggestion-grid", never, { "options": "options"; "picked": "picked"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "loading": "loading"; "groupKey": "groupKey"; "optionsPosition": "optionsPosition"; "showIcons": "showIcons"; "showImages": "showImages"; "showCounts": "showCounts"; }, { "select": "select"; "highlight": "highlight"; "unhighlight": "unhighlight"; }, never, never, true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionGridComponent, "aia-suggestion-grid", never, { "options": "options"; "picked": "picked"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "loading": "loading"; "groupKey": "groupKey"; "optionsPosition": "optionsPosition"; "showIcons": "showIcons"; "showImages": "showImages"; "showCounts": "showCounts"; }, { "select": "select"; "commitSelect": "commitSelect"; "highlight": "highlight"; "unhighlight": "unhighlight"; }, never, never, true, never>;
|
|
78
80
|
}
|
|
79
81
|
//# 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,EAIpB,KAAK,gBAAgB,EAEtB,MAAM,qCAAqC,CAAC;;AAI7C;;;;;;;;GAQG;AACH,qBAQa,uBAAwB,YAAW,SAAS,EAAE,gBAAgB;IAChE,OAAO,EAAE,gBAAgB,EAAE,CAAM;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,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;IAE3B;;;OAGG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAES,QAAQ,CAAC,MAAM,iCAAwC;
|
|
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,EAIpB,KAAK,gBAAgB,EAEtB,MAAM,qCAAqC,CAAC;;AAI7C;;;;;;;;GAQG;AACH,qBAQa,uBAAwB,YAAW,SAAS,EAAE,gBAAgB;IAChE,OAAO,EAAE,gBAAgB,EAAE,CAAM;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,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;IAE3B;;;OAGG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAES,QAAQ,CAAC,MAAM,iCAAwC;IACjE,6EAA6E;IACnE,QAAQ,CAAC,YAAY,iCAAwC;IAC7D,QAAQ,CAAC,SAAS,uBAA8B;IAC1D,qFAAqF;IAC3E,QAAQ,CAAC,WAAW,uBAA8B;IAE5D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAEJ,OAAO,CAAC,QAAQ,CAAC,CAAgB;IAE9E;;;;;OAKG;IACH,IAAI,EAAE,eAAe,CAAyC;IAC9D,OAAO,CAAC,YAAY,CAAQ;IAC5B;;;OAGG;IACH,OAAO,CAAC,YAAY,CAAmC;IAKvD,QAAQ,IAAI,IAAI;IAKhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAazC,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;yCAjIvF,uBAAuB;2CAAvB,uBAAuB;CAkInC"}
|
|
@@ -45,6 +45,11 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
45
45
|
*/
|
|
46
46
|
enterDelay: number | null;
|
|
47
47
|
readonly select: EventEmitter<SuggestionOption>;
|
|
48
|
+
/**
|
|
49
|
+
* A multi_select row was clicked on its text rather than its checkbox:
|
|
50
|
+
* answer with the option right away instead of only ticking it.
|
|
51
|
+
*/
|
|
52
|
+
readonly commitSelect: EventEmitter<SuggestionOption>;
|
|
48
53
|
readonly highlight: EventEmitter<void>;
|
|
49
54
|
/**
|
|
50
55
|
* The pointer left this row. The owner clears the highlight if it is still
|
|
@@ -102,11 +107,12 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
102
107
|
*/
|
|
103
108
|
get iconHtml(): SafeHtml | null;
|
|
104
109
|
ngOnDestroy(): void;
|
|
105
|
-
|
|
110
|
+
/** `event` is the click that picked the row; a key press passes none. */
|
|
111
|
+
onSelect(event?: MouseEvent): void;
|
|
106
112
|
onMouseEnter(): void;
|
|
107
113
|
onMouseLeave(): void;
|
|
108
114
|
onKeyDown(event: KeyboardEvent): void;
|
|
109
115
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionItemComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionItemComponent, "aia-suggestion-item", never, { "option": "option"; "checked": "checked"; "isHighlighted": "isHighlighted"; "id": "id"; "loading": "loading"; "showIcon": "showIcon"; "showImage": "showImage"; "showCount": "showCount"; "scrollHint": "scrollHint"; "enterDelayMs": "enterDelayMs"; }, { "select": "select"; "highlight": "highlight"; "unhighlight": "unhighlight"; }, never, never, true, never>;
|
|
116
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionItemComponent, "aia-suggestion-item", never, { "option": "option"; "checked": "checked"; "isHighlighted": "isHighlighted"; "id": "id"; "loading": "loading"; "showIcon": "showIcon"; "showImage": "showImage"; "showCount": "showCount"; "scrollHint": "scrollHint"; "enterDelayMs": "enterDelayMs"; }, { "select": "select"; "commitSelect": "commitSelect"; "highlight": "highlight"; "unhighlight": "unhighlight"; }, never, never, true, never>;
|
|
111
117
|
}
|
|
112
118
|
//# 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,E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AI,MAAM,CAElB;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,MAAM,GAAG,IAAI,CAK5B;IAED,kFAAkF;IAClF,IAAI,WAAW,IAAI,OAAO,CAGzB;IAED,iFAAiF;IACjF,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK9B,YAAY,IAAI,IAAI;IAMpB,OAAO,KAAK,YAAY,GAEvB;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;IAED;;;;;;OAMG;IACH,IAAI,QAAQ,IAAI,QAAQ,GAAG,IAAI,CAQ9B;IAED,WAAW,IAAI,IAAI;IAInB,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI;IAoBlC,YAAY,IAAI,IAAI;IAKpB,YAAY,IAAI,IAAI;IAIpB,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;yCA3K1B,uBAAuB;2CAAvB,uBAAuB;CAkLnC"}
|
package/lib/shared/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { APIConfig, AutocompleteResult, CompletedParamState, CurrencyOptions, CustomFieldsReport, DateMonthView, DateRange, FormatType, IdentifiedParamState, MatchedItem, OptionOverrides, Product, ProductsConfig, Segment, SkippedParamState, Suggestion, TimeView } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
1
|
+
import type { APIConfig, AutocompleteResult, CompletedParamState, CurrencyOptions, CustomFieldsReport, DateMonthView, DateRange, FormatType, IdentifiedParamState, LocationView, MatchedItem, OptionOverrides, Product, ProductsConfig, Segment, SkippedParamState, Suggestion, TimeView } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
2
2
|
/**
|
|
3
3
|
* Construction-time options for {@link AIAutocompleteController}.
|
|
4
4
|
*
|
|
@@ -62,6 +62,13 @@ export interface AIAutocompleteControllerOptions {
|
|
|
62
62
|
closeDropdownOnBlur?: boolean;
|
|
63
63
|
/** When true (default), non-tappable options render alongside tappable ones. */
|
|
64
64
|
showNonTappableOptions?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* When true (default), a location parameter without options searches the
|
|
67
|
+
* server's location search (cities, addresses, landmarks) as the user types
|
|
68
|
+
* in its field. Set to false to keep the field but take typed text only, so
|
|
69
|
+
* nothing the user types is sent for a lookup.
|
|
70
|
+
*/
|
|
71
|
+
locationSearch?: boolean;
|
|
65
72
|
/**
|
|
66
73
|
* SDK surface identifier — sent as meta.source on both /api/suggest and
|
|
67
74
|
* telemetry events. Set automatically to "full-sdk" by the Tier 1
|
|
@@ -316,5 +323,16 @@ export interface AIAutocompleteDropdownState {
|
|
|
316
323
|
multiSelectView?: {
|
|
317
324
|
picked: string[];
|
|
318
325
|
} | null;
|
|
326
|
+
/**
|
|
327
|
+
* What the location search field shows. Null/undefined unless `formatType`
|
|
328
|
+
* is `"location"` (a location parameter that came with no options).
|
|
329
|
+
*/
|
|
330
|
+
locationView?: LocationView | null;
|
|
331
|
+
/**
|
|
332
|
+
* Whether the widget has focus (the input or the location field). The
|
|
333
|
+
* location field takes focus while it does, so the user types straight
|
|
334
|
+
* into it.
|
|
335
|
+
*/
|
|
336
|
+
isFocused?: boolean;
|
|
319
337
|
}
|
|
320
338
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,OAAO,EACP,cAAc,EACd,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACT,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,WAAW,+BAA+B;IAC9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0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "AI Autocomplete for Angular: add real-time AI suggestions to any text box and guide users to what your product can do, across search, commerce, agents, and more. Standalone component or controller + directive, with Reactive Forms support.",
|
|
5
5
|
"homepage": "https://ai-autocomplete.com/docs/angular/getting-started",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"email": "will@magicx.ai"
|
|
8
|
+
},
|
|
6
9
|
"module": "fesm2015/magicx-eng-ai-autocomplete-angular.mjs",
|
|
7
10
|
"es2020": "fesm2020/magicx-eng-ai-autocomplete-angular.mjs",
|
|
8
11
|
"esm2020": "esm2020/magicx-eng-ai-autocomplete-angular.mjs",
|
|
@@ -22,7 +25,7 @@
|
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"tslib": "^2.3.0",
|
|
25
|
-
"@magicx-eng/ai-autocomplete-vanilla": "0.
|
|
28
|
+
"@magicx-eng/ai-autocomplete-vanilla": "0.58.0"
|
|
26
29
|
},
|
|
27
30
|
"keywords": [
|
|
28
31
|
"angular",
|
package/public-api.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Populated incrementally as features land. Only symbols re-exported here
|
|
5
5
|
* are considered part of the package's public contract.
|
|
6
6
|
*/
|
|
7
|
-
export type { AccessTokenConfig, AccessTokenResult, APIConfig, APIKeyConfig, AppearanceMode, AutocompleteResult, CompletedParam, CompletedParamState, CurrencyOptions, CustomFieldsReport, DateMonthView, DateRange, ExpressedFilter, FilterOp, FormatType, IdentifiedParam, IdentifiedParamState, MatchedItem, MatchedItems, OptionOverrides, Product, ProductImageFallback, ProductsConfig, ProductsLayout, Segment, SkippedParamState, SubmitResultExtras, Suggestion, SuggestionOption, TaskKind, TimeView, } 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, formatTime as _formatTime, isoDate as _isoDate, monthLabel as _monthLabel, optionCountLabel as _optionCountLabel, optionHasImage as _optionHasImage, optionImageSources as _optionImageSources, optionImageSrc as _optionImageSrc, optionLabel as _optionLabel, optionsShowLeadingVisuals as _optionsShowLeadingVisuals, parseDate as _parseDate, parseLooseDate as _parseLooseDate, parseLooseDateRange as _parseLooseDateRange, parseTime as _parseTime, productFromMatchedItem as _productFromMatchedItem, productImageSources as _productImageSources, productsFromCustomFields as _productsFromCustomFields, sanitizeOptionIconSvg as _sanitizeOptionIconSvg, selectedRangeFor as _selectedRangeFor, visibleDateRange as _visibleDateRange, withSkippedParams as _withSkippedParams } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
7
|
+
export type { AccessTokenConfig, AccessTokenResult, APIConfig, APIKeyConfig, AppearanceMode, AutocompleteResult, CompletedParam, CompletedParamState, CurrencyOptions, CustomFieldsReport, DateMonthView, DateRange, ExpressedFilter, FilterOp, FormatType, IdentifiedParam, IdentifiedParamState, LocationPlace, LocationView, MatchedItem, MatchedItems, OptionOverrides, Product, ProductImageFallback, ProductsConfig, ProductsLayout, Segment, SelectOptionOptions, SkippedParamState, SubmitResultExtras, Suggestion, SuggestionOption, TaskKind, TimeView, } 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, formatPlace as _formatPlace, formatTime as _formatTime, isoDate as _isoDate, monthLabel as _monthLabel, optionCountLabel as _optionCountLabel, optionHasImage as _optionHasImage, optionImageSources as _optionImageSources, optionImageSrc as _optionImageSrc, optionLabel as _optionLabel, optionsShowLeadingVisuals as _optionsShowLeadingVisuals, parseDate as _parseDate, parseLooseDate as _parseLooseDate, parseLooseDateRange as _parseLooseDateRange, parseTime as _parseTime, productFromMatchedItem as _productFromMatchedItem, productImageSources as _productImageSources, 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
|
*
|
|
@@ -35,6 +35,8 @@ export declare const visibleDateRange: typeof _visibleDateRange;
|
|
|
35
35
|
export declare const formatTime: typeof _formatTime;
|
|
36
36
|
export declare const parseTime: typeof _parseTime;
|
|
37
37
|
export declare const TIME_META_KEY = "aiaTime";
|
|
38
|
+
export declare const formatPlace: typeof _formatPlace;
|
|
39
|
+
export declare const LOCATION_META_KEY = "aiaPlace";
|
|
38
40
|
export declare const optionLabel: typeof _optionLabel;
|
|
39
41
|
export declare const sanitizeOptionIconSvg: typeof _sanitizeOptionIconSvg;
|
|
40
42
|
export declare const DEFAULT_OPTION_COUNT_UNIT: {
|
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,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,OAAO,EACP,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,GACT,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EACL,iBAAiB,IAAI,kBAAkB,EACvC,OAAO,IAAI,QAAQ,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