@magicx-eng/ai-autocomplete-angular 0.11.1 → 0.13.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.
Files changed (34) hide show
  1. package/README.md +122 -6
  2. package/esm2020/lib/ai-autocomplete/ai-autocomplete.component.mjs +3 -3
  3. package/esm2020/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.mjs +66 -8
  4. package/esm2020/lib/controller/ai-autocomplete.controller.mjs +36 -4
  5. package/esm2020/lib/internal/date-grid/date-grid.component.mjs +101 -0
  6. package/esm2020/lib/internal/editor-host/editor-host.directive.mjs +12 -3
  7. package/esm2020/lib/internal/layout/grid.component.mjs +10 -4
  8. package/esm2020/lib/internal/suggestion-grid/suggestion-grid.component.mjs +79 -18
  9. package/esm2020/lib/internal/suggestion-item/suggestion-item.component.mjs +25 -4
  10. package/esm2020/lib/shared/types.mjs +1 -1
  11. package/esm2020/public-api.mjs +23 -2
  12. package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +348 -43
  13. package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
  14. package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +339 -37
  15. package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
  16. package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts +26 -3
  17. package/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.d.ts.map +1 -1
  18. package/lib/controller/ai-autocomplete.controller.d.ts +5 -1
  19. package/lib/controller/ai-autocomplete.controller.d.ts.map +1 -1
  20. package/lib/internal/date-grid/date-grid.component.d.ts +48 -0
  21. package/lib/internal/date-grid/date-grid.component.d.ts.map +1 -0
  22. package/lib/internal/editor-host/editor-host.directive.d.ts +6 -0
  23. package/lib/internal/editor-host/editor-host.directive.d.ts.map +1 -1
  24. package/lib/internal/layout/grid.component.d.ts +10 -2
  25. package/lib/internal/layout/grid.component.d.ts.map +1 -1
  26. package/lib/internal/suggestion-grid/suggestion-grid.component.d.ts +30 -9
  27. package/lib/internal/suggestion-grid/suggestion-grid.component.d.ts.map +1 -1
  28. package/lib/internal/suggestion-item/suggestion-item.component.d.ts +16 -2
  29. package/lib/internal/suggestion-item/suggestion-item.component.d.ts.map +1 -1
  30. package/lib/shared/types.d.ts +25 -2
  31. package/lib/shared/types.d.ts.map +1 -1
  32. package/package.json +2 -2
  33. package/public-api.d.ts +21 -2
  34. package/public-api.d.ts.map +1 -1
@@ -1,5 +1,5 @@
1
- import { type OnChanges, type OnDestroy, type OnInit, type SimpleChanges } from "@angular/core";
2
- import { type AppearanceMode, type Product, type Suggestion, type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
1
+ import { type AfterViewChecked, type OnChanges, type OnDestroy, type OnInit, type SimpleChanges } from "@angular/core";
2
+ import { type AppearanceMode, type DateMonthView, type Product, type Suggestion, type SuggestionOption } 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";
@@ -20,6 +20,12 @@ interface DropdownVm {
20
20
  /** Active pill's label, for the skip button's aria-label. */
21
21
  activePillLabel: string;
22
22
  showsOptions: boolean;
23
+ /** Whether the calendar body renders in place of the options grid. */
24
+ showsDateGrid: boolean;
25
+ /** The month the calendar shows. Null unless `showsDateGrid`. */
26
+ dateView: DateMonthView | null;
27
+ /** `YYYY-MM-DD` the param being re-edited already holds, or null. */
28
+ selectedDateIso: string | null;
23
29
  showsFallbackSkeleton: boolean;
24
30
  isVisible: boolean;
25
31
  /** Product cards for the strip. Empty unless `products` is configured. */
@@ -45,7 +51,7 @@ interface DropdownVm {
45
51
  *
46
52
  * @public
47
53
  */
48
- export declare class AIAutocompleteDropdownComponent implements OnInit, OnChanges, OnDestroy {
54
+ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChanges, AfterViewChecked, OnDestroy {
49
55
  /** The controller that owns the autocomplete state. Required. */
50
56
  controller: AIAutocompleteController;
51
57
  /** Whether to render the pillbar above the options grid. Default: true. */
@@ -77,6 +83,12 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
77
83
  get rootClass(): string;
78
84
  /** Fallback skeleton-bar widths used when loading with zero cached options. */
79
85
  readonly fallbackSkeletonBarWidths: number[];
86
+ /** Accessible name of the "more below" scroll arrow. */
87
+ readonly scrollArrowLabel = "Scroll down for more options";
88
+ private dropdownRootRef?;
89
+ private scrollArrowRef?;
90
+ /** The grid the scroll-arrow controller is currently bound to. */
91
+ private scrollArrowBinding;
80
92
  /**
81
93
  * Attribution/branding link URL for the footer, with a `utm_source` derived
82
94
  * from the embedding page's hostname (see {@link buildAttributionUrl}).
@@ -99,6 +111,15 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
99
111
  private lastVisibleContent;
100
112
  ngOnInit(): void;
101
113
  ngOnChanges(changes: SimpleChanges): void;
114
+ /**
115
+ * Keep the core's "more below" arrow controller bound to whichever options
116
+ * grid is currently rendered — the Angular analogue of React's
117
+ * useScrollArrow. The controller owns the behaviour (measuring, visibility,
118
+ * the page-scroll on click — see the core's scrollArrow.ts); this only hands
119
+ * it the live elements after each view check, re-attaching when the grid
120
+ * element is replaced and tearing down when there is no grid.
121
+ */
122
+ ngAfterViewChecked(): void;
102
123
  ngOnDestroy(): void;
103
124
  /**
104
125
  * Resolve the `mode` input into `resolvedMode`. Unset → null (the dropdown
@@ -113,6 +134,8 @@ export declare class AIAutocompleteDropdownComponent implements OnInit, OnChange
113
134
  onPillClick(index: number): void;
114
135
  onSkip(): void;
115
136
  onSelect(option: SuggestionOption): void;
137
+ onPreviousMonth(): void;
138
+ onNextMonth(): void;
116
139
  onHighlight(index: number): void;
117
140
  onProductSelect(product: Product): void;
118
141
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ai-autocomplete-dropdown.component.d.ts","sourceRoot":"","sources":["../../../src/lib/ai-autocomplete-dropdown/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GAAG,IAAI;yCAhPpB,+BAA+B;2CAA/B,+BAA+B;CAoP3C"}
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,EAElB,KAAK,OAAO,EAGZ,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,qEAAqE;IACrE,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,yFAAyF;IAC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,GAAG,IAAI;IAqBzC;;;;;;;OAOG;IACH,kBAAkB,IAAI,IAAI;IAmB1B,WAAW,IAAI,IAAI;IAMnB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAwBjB,OAAO,CAAC,oBAAoB;IAQ5B,4EAA4E;IAC5E,OAAO,CAAC,MAAM;IA8Ed,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;IAIhC,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;yCA7SpB,+BAA+B;2CAA/B,+BAA+B;CAiT3C"}
@@ -48,7 +48,7 @@ export declare class AIAutocompleteController {
48
48
  /** Currently highlighted dropdown option index. -1 = none. */
49
49
  readonly activeIndex$: Observable<number>;
50
50
  /**
51
- * UI-visible loading flag — suppressed during the post-select streak
51
+ * UI-visible loading flag — suppressed during the post-select press
52
52
  * animation and during re-edit (cached options stay visible there). Use
53
53
  * this instead of the raw core state for any loading-skeleton binding.
54
54
  */
@@ -149,6 +149,10 @@ export declare class AIAutocompleteController {
149
149
  replaceEditingRange(replacement: string): boolean;
150
150
  /** Set the highlighted option index (typically driven by hover). */
151
151
  setActiveDropdownIndex(index: number): void;
152
+ /** Page the datepicker back one month. No-op unless a date pill is active. */
153
+ showPreviousMonth(): void;
154
+ /** Page the datepicker forward one month. No-op unless a date pill is active. */
155
+ showNextMonth(): void;
152
156
  /**
153
157
  * Apply runtime changes to a subset of options. Event callbacks
154
158
  * (`onSubmit`, `onError`, etc.) cannot be swapped this way — they are
@@ -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,mBAAmB,EAGxB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAuC,KAAK,UAAU,EAAe,MAAM,MAAM,CAAC;AACzF,OAAO,KAAK,EACV,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAGzB;;;;;;;;;;;;GAYG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAIvD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmD;IACpF,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAa;IAC7C,OAAO,CAAC,WAAW,CAAS;IAM5B,wCAAwC;IACxC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,uDAAuD;IACvD,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAC7D;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACzD,kEAAkE;IAClE,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC;IACpD,qEAAqE;IACrE,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;IAC1C,yEAAyE;IACzE,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAChD,u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AK5C,yEAAyE;IACzE,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAKjD,oEAAoE;IACpE,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK3C,8EAA8E;IAC9E,iBAAiB,IAAI,IAAI;IAKzB,iFAAiF;IACjF,aAAa,IAAI,IAAI;IAOrB;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,8BAA8B,GAAG,IAAI;IAQlD;;;;OAIG;IACH,OAAO,IAAI,IAAI;CAOhB"}
@@ -0,0 +1,48 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import { type DateMonthView, type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * The dropdown's calendar body, rendered in place of the options grid when the
6
+ * active parameter is a date. Angular analogue of vanilla's `renderDateGrid`
7
+ * and React's `<DateGrid>`.
8
+ *
9
+ * The cells carry the same `${listboxId}-option-${i}` ids, `role="option"` and
10
+ * `aria-selected` the options grid emits, and that is load-bearing rather than
11
+ * cosmetic: the keyboard controller lives in the vanilla core for all three
12
+ * packages, navigates by index into `filteredOptions`, and commits by clicking
13
+ * `#${listboxId}-option-${i}`. `getEffectiveColumns` also measures the live
14
+ * `grid-template-columns` of option-0's parent, which is why the 7 columns sit
15
+ * on the cell container itself and not on an ancestor.
16
+ *
17
+ * @internal
18
+ */
19
+ export declare class DateGridComponent {
20
+ /** The visible month's cells. These ARE `filteredOptions` — see `buildDateOptions`. */
21
+ options: SuggestionOption[];
22
+ activeIndex: number;
23
+ listboxId: string;
24
+ view: DateMonthView | null;
25
+ /** `YYYY-MM-DD` the param being re-edited already holds, or null. */
26
+ selectedIso: string | null;
27
+ readonly select: EventEmitter<SuggestionOption>;
28
+ readonly highlight: EventEmitter<number>;
29
+ readonly previousMonth: EventEmitter<void>;
30
+ readonly nextMonth: EventEmitter<void>;
31
+ readonly weekdays: string[];
32
+ /** Index of the cell showing a 500ms press animation, or -1. */
33
+ pressedIndex: number;
34
+ get monthLabel(): string;
35
+ dayOf(option: SuggestionOption): number | null;
36
+ isToday(option: SuggestionOption): boolean;
37
+ /** Before today: rendered dimmed, but every bit as pickable as the rest. */
38
+ isPast(option: SuggestionOption): boolean;
39
+ isSelected(option: SuggestionOption): boolean;
40
+ onSelect(option: SuggestionOption, index: number): void;
41
+ onKeyDown(event: KeyboardEvent, option: SuggestionOption, index: number): void;
42
+ /** Keeps the input focused, which the dropdown's visibility gate depends on. */
43
+ preventBlur(event: MouseEvent): void;
44
+ trackByCell: (index: number, option: SuggestionOption) => string;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateGridComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateGridComponent, "aia-date-grid", never, { "options": "options"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "view": "view"; "selectedIso": "selectedIso"; }, { "select": "select"; "highlight": "highlight"; "previousMonth": "previousMonth"; "nextMonth": "nextMonth"; }, never, never, true, never>;
47
+ }
48
+ //# sourceMappingURL=date-grid.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-grid.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/date-grid/date-grid.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,KAAK,aAAa,EAGlB,KAAK,gBAAgB,EAEtB,MAAM,qCAAqC,CAAC;;AAE7C;;;;;;;;;;;;;;GAcG;AACH,qBASa,iBAAiB;IAC5B,uFAAuF;IAC9E,OAAO,EAAE,gBAAgB,EAAE,CAAM;IACjC,WAAW,SAAM;IACjB,SAAS,SAAM;IACf,IAAI,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC3C,qEAAqE;IAC5D,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEjC,QAAQ,CAAC,MAAM,iCAAwC;IACvD,QAAQ,CAAC,SAAS,uBAA8B;IAChD,QAAQ,CAAC,aAAa,qBAA4B;IAClD,QAAQ,CAAC,SAAS,qBAA4B;IAExD,QAAQ,CAAC,QAAQ,WAAkB;IAEnC,gEAAgE;IAChE,YAAY,SAAM;IAElB,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,KAAK,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI;IAI9C,OAAO,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO;IAI1C,4EAA4E;IAC5E,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO;IAMzC,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO;IAK7C,QAAQ,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAQvD,SAAS,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAO9E,gFAAgF;IAChF,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKpC,WAAW,UAAW,MAAM,UAAU,gBAAgB,KAAG,MAAM,CAC3B;yCAjEzB,iBAAiB;2CAAjB,iBAAiB;CAkE7B"}
@@ -24,6 +24,12 @@ export declare class AIAutocompleteEditorHostDirective implements OnInit, OnDest
24
24
  private lastInputAt;
25
25
  private lastSeenParamId;
26
26
  private lastEditingId;
27
+ /**
28
+ * Id of whichever chip the dropdown is currently open on — a completed param
29
+ * being re-edited, or a span the server identified as a date. Either kind
30
+ * counts, otherwise every caret tick inside an open date span would re-enter
31
+ * the pick it is already in.
32
+ */
27
33
  private editingParamId;
28
34
  private documentSelectionListener?;
29
35
  private beforeInputListener?;
@@ -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,MAAM,EAEZ,MAAM,eAAe,CAAC;AASvB,OAAO,KAAK,EA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A6C,CAAC;;AAgB5F;;;;;;;;;;;GAWG;AACH,qBAmBa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IACjD,UAAU,EAAG,wBAAwB,CAAC;IACrD,SAAS,UAAQ;IAE1B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAkD;IACrE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAC9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAEhD,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,eAAe,CAAM;IAC7B,OAAO,CAAC,aAAa,CAAM;IAC3B;;;;;OAKG;IACH,OAAO,CAAC,cAAc,CAAuB;IAE7C,OAAO,CAAC,yBAAyB,CAAC,CAAa;IAC/C,OAAO,CAAC,mBAAmB,CAAC,CAAyB;IAErD,QAAQ,IAAI,IAAI;IA8BhB,WAAW,IAAI,IAAI;IAanB,kBAAkB,IAAI,IAAI;IAI1B,gBAAgB,IAAI,IAAI;IAKxB,OAAO,IAAI,IAAI;IAMf,SAAS,CAAC,KAAK,EAAE,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;yCA3LlB,iCAAiC;2CAAjC,iCAAiC;CA+N7C"}
@@ -24,10 +24,18 @@ export declare class GridComponent implements OnChanges {
24
24
  scrollResetKey?: string;
25
25
  /** Fixed column count. Overrides the intrinsic auto-fit when set; rows fill left-to-right. */
26
26
  cols?: number;
27
+ /** Explicit `grid-template-columns` value. Overrides `cols` when set. */
28
+ template?: string;
29
+ /**
30
+ * Identity of the content group on screen, mirrored onto `data-aia-group`.
31
+ * The core's scroll-arrow controller reads it to tell a new set of options
32
+ * (rising in) from the same set re-rendered.
33
+ */
34
+ group?: string;
27
35
  /**
28
36
  * Explicit column template overrides the intrinsic auto-fit (inline wins).
29
37
  * The track string is built by the core so all three packages emit the same
30
- * one.
38
+ * one; a measured template (the two-column split) wins over the count.
31
39
  */
32
40
  get templateColumns(): string | null;
33
41
  gridRef?: ElementRef<HTMLDivElement>;
@@ -38,6 +46,6 @@ export declare class GridComponent implements OnChanges {
38
46
  */
39
47
  ngOnChanges(changes: SimpleChanges): void;
40
48
  static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "aia-grid", never, { "min": "min"; "max": "max"; "gap": "gap"; "scroll": "scroll"; "maxHeight": "maxHeight"; "scrollResetKey": "scrollResetKey"; "cols": "cols"; }, {}, never, ["*"], true, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "aia-grid", never, { "min": "min"; "max": "max"; "gap": "gap"; "scroll": "scroll"; "maxHeight": "maxHeight"; "scrollResetKey": "scrollResetKey"; "cols": "cols"; "template": "template"; "group": "group"; }, {}, never, ["*"], true, never>;
42
50
  }
43
51
  //# sourceMappingURL=grid.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/layout/grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAEf,KAAK,SAAS,EACd,KAAK,aAAa,EAGnB,MAAM,eAAe,CAAC;;AAGvB;;;;;;;;GAQG;AACH,qBAQa,aAAc,YAAW,SAAS;IAC7C,iFAAiF;IACxE,GAAG,SAAW;IACvB,6EAA6E;IACpE,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IAC1D,MAAM,UAAS;IACxB,yEAAyE;IAChE,SAAS,CAAC,EA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1,5 @@
1
- import { EventEmitter } from "@angular/core";
2
- import { type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
1
+ import { type AfterViewChecked, EventEmitter, type OnChanges, type SimpleChanges } from "@angular/core";
2
+ import { type OptionsGridPlan, type SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Internal grid of suggestion options. Mirrors
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
10
10
  *
11
11
  * @internal
12
12
  */
13
- export declare class SuggestionGridComponent {
13
+ export declare class SuggestionGridComponent implements OnChanges, AfterViewChecked {
14
14
  options: SuggestionOption[];
15
15
  activeIndex: number;
16
16
  listboxId: string;
@@ -21,19 +21,40 @@ export declare class SuggestionGridComponent {
21
21
  * from the first one instead of from the previous list's scroll offset.
22
22
  */
23
23
  groupKey: string;
24
+ /**
25
+ * Which side of the input the dropdown opens on. The rows' entrance starts
26
+ * from the input's side outward, so "above" reverses the order.
27
+ */
28
+ optionsPosition: "above" | "below";
24
29
  readonly select: EventEmitter<SuggestionOption>;
25
30
  readonly highlight: EventEmitter<number>;
26
31
  private readonly cdr;
32
+ private gridComp?;
33
+ /**
34
+ * The measured layout plan. Starts as the measurement-free baseline (one
35
+ * column); after each view update the rendered rows are measured and the
36
+ * plan upgrades to two columns when they provably fit — same two-pass the
37
+ * React grid does with its layout effect, all through `planOptionsGrid`.
38
+ */
39
+ plan: OptionsGridPlan;
40
+ private needsMeasure;
27
41
  onResize(): void;
42
+ ngOnChanges(changes: SimpleChanges): void;
43
+ ngAfterViewChecked(): void;
44
+ isScrollHint(index: number): boolean;
45
+ /**
46
+ * Start delay of row `index`'s entrance — each row rises in a beat after
47
+ * the one nearer the input. Skeleton rows fade in together (they're
48
+ * placeholders, not content arriving).
49
+ */
50
+ enterDelayMs(index: number): number;
28
51
  /**
29
- * Rows/columns policy — owned by the core so vanilla, React and Angular all
30
- * lay the options grid out identically. See `computeOptionsGridLayout`.
52
+ * The group is part of the identity: a new suggestion's options are new
53
+ * rows and get the entrance animation even when one spells the same as a
54
+ * row already on screen.
31
55
  */
32
- private get layout();
33
- get gridCols(): number;
34
- get gridMaxHeight(): string;
35
56
  trackByOptionText: (_: number, opt: SuggestionOption) => string;
36
57
  static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionGridComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionGridComponent, "aia-suggestion-grid", never, { "options": "options"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "loading": "loading"; "groupKey": "groupKey"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionGridComponent, "aia-suggestion-grid", never, { "options": "options"; "activeIndex": "activeIndex"; "listboxId": "listboxId"; "loading": "loading"; "groupKey": "groupKey"; "optionsPosition": "optionsPosition"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
38
59
  }
39
60
  //# 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,EAIL,YAAY,EAMb,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;;AAI7C;;;;;;;;GAQG;AACH,qBAQa,uBAAuB;IACzB,OAAO,EAAE,gBAAgB,EAAE,CAAM;IACjC,WAAW,SAAM;IACjB,SAAS,SAAM;IACf,OAAO,UAAS;IACzB;;;;OAIG;IACM,QAAQ,SAAM;IAEb,QAAQ,CAAC,MAAM,iCAAwC;IACvD,QAAQ,CAAC,SAAS,uBAA8B;IAE1D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAKjD,QAAQ,IAAI,IAAI;IAIhB;;;OAGG;IACH,OAAO,KAAK,MAAM,GAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IACD,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,iBAAiB,MAAO,MAAM,OAAO,gBAAgB,KAAG,MAAM,CAAa;yCAvChE,uBAAuB;2CAAvB,uBAAuB;CAwCnC"}
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;IAE5C,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;yCAvGvF,uBAAuB;2CAAvB,uBAAuB;CAwGnC"}
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  * `packages/react/src/components/SuggestionItem.tsx`. Handles:
7
7
  *
8
8
  * - Tappable vs non-tappable cursor + hover styling
9
- * - Pressed-state streak animation (500ms, single-flight)
9
+ * - Pressed-state compress animation (500ms, single-flight)
10
10
  * - Keyboard activation (Enter/Space)
11
11
  * - ARIA `role="option"` + `aria-selected` for the listbox pattern
12
12
  * - Loading skeleton when `loading=true`
@@ -18,6 +18,20 @@ export declare class SuggestionItemComponent implements OnDestroy {
18
18
  isHighlighted: boolean;
19
19
  id: string;
20
20
  loading: boolean;
21
+ /** Fade this option's text toward its bottom edge (last visible row of a scrollable grid). */
22
+ scrollHint: boolean;
23
+ /**
24
+ * Start delay of this row's entrance animation (ms) — each row rises in a
25
+ * beat after the one nearer the input. Captured once, on first render, so a
26
+ * later change-detection pass can't restart a row mid-rise.
27
+ */
28
+ set enterDelayMs(value: number);
29
+ /**
30
+ * The captured delay; `null` until the first `enterDelayMs` binding lands.
31
+ * The template binds it to `--aia-option-enter-delay` (the core's
32
+ * OPTION_ENTER_DELAY_VAR), which the stylesheet's entrance rule reads.
33
+ */
34
+ enterDelay: number | null;
21
35
  readonly select: EventEmitter<SuggestionOption>;
22
36
  readonly highlight: EventEmitter<void>;
23
37
  pressed: boolean;
@@ -28,6 +42,6 @@ export declare class SuggestionItemComponent implements OnDestroy {
28
42
  onMouseEnter(): void;
29
43
  onKeyDown(event: KeyboardEvent): void;
30
44
  static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionItemComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionItemComponent, "aia-suggestion-item", never, { "option": "option"; "isHighlighted": "isHighlighted"; "id": "id"; "loading": "loading"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuggestionItemComponent, "aia-suggestion-item", never, { "option": "option"; "isHighlighted": "isHighlighted"; "id": "id"; "loading": "loading"; "scrollHint": "scrollHint"; "enterDelayMs": "enterDelayMs"; }, { "select": "select"; "highlight": "highlight"; }, never, never, true, never>;
32
46
  }
33
47
  //# 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,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;;AAE5E;;;;;;;;;;;GAWG;AACH,qBASa,uBAAwB,YAAW,SAAS;IAC9C,MAAM,EAAG,gBAAgB,CAAC;IAC1B,aAAa,UAAS;IACtB,EAAE,SAAM;IACR,OAAO,UAAS;IAEf,QAAQ,CAAC,MAAM,iCAAwC;IACvD,QAAQ,CAAC,SAAS,qBAA4B;IAExD,OAAO,UAAS;IAEhB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IACjD,OAAO,CAAC,YAAY,CAA4C;IAEhE,WAAW,IAAI,IAAI;IAInB,QAAQ,IAAI,IAAI;IAYhB,YAAY,IAAI,IAAI;IAKpB,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;yCAnC1B,uBAAuB;2CAAvB,uBAAuB;CA0CnC"}
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,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;;AAE5E;;;;;;;;;;;GAWG;AACH,qBASa,uBAAwB,YAAW,SAAS;IAC9C,MAAM,EAAG,gBAAgB,CAAC;IAC1B,aAAa,UAAS;IACtB,EAAE,SAAM;IACR,OAAO,UAAS;IACzB,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,YAAY,CAA4C;IAEhE,WAAW,IAAI,IAAI;IAInB,QAAQ,IAAI,IAAI;IAYhB,YAAY,IAAI,IAAI;IAKpB,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;yCAnD1B,uBAAuB;2CAAvB,uBAAuB;CA0DnC"}
@@ -1,4 +1,4 @@
1
- import type { APIConfig, AutocompleteResult, CompletedParamState, OptionOverrides, Product, ProductsConfig, Segment, SkippedParamState, Suggestion } from "@magicx-eng/ai-autocomplete-vanilla";
1
+ import type { APIConfig, AutocompleteResult, CompletedParamState, DateMonthView, FormatType, OptionOverrides, Product, ProductsConfig, Segment, SkippedParamState, Suggestion } from "@magicx-eng/ai-autocomplete-vanilla";
2
2
  /**
3
3
  * Construction-time options for {@link AIAutocompleteController}.
4
4
  *
@@ -99,7 +99,7 @@ export type AIAutocompleteControllerUpdate = Partial<Omit<AIAutocompleteControll
99
99
  *
100
100
  * `suggestionPills` mirrors React's `suggestionPills` — the actionable
101
101
  * subset of `suggestions` ready for pill rendering. `isLoading` is the
102
- * UI-visible loading flag (suppressed during the post-select streak
102
+ * UI-visible loading flag (suppressed during the post-select press
103
103
  * animation and during re-edit, where cached options stay visible).
104
104
  *
105
105
  * @public
@@ -131,6 +131,17 @@ export interface AIAutocompleteControllerState {
131
131
  placeholderText: string;
132
132
  error: Error | null;
133
133
  editingParam: CompletedParamState | null;
134
+ /**
135
+ * Set while the user is picking a date for a span the server identified as
136
+ * one — "september 5th" in "fly to vegas on september 5th". Null otherwise.
137
+ */
138
+ editingIdentified: {
139
+ id: string;
140
+ type: string;
141
+ anchor: number;
142
+ tail: number;
143
+ iso: string | null;
144
+ } | null;
134
145
  editingAnchor: number | null;
135
146
  caretOffset: number | null;
136
147
  }
@@ -181,5 +192,17 @@ export interface AIAutocompleteDropdownState {
181
192
  * placement is configured once on the controller (no separate input to sync).
182
193
  */
183
194
  optionsPosition: "above" | "below";
195
+ /**
196
+ * How the active pill is answered. `"date"` renders a calendar in place of
197
+ * the options grid, and `suggestions[0].options` then carries that month's
198
+ * cells rather than the parameter's own options — the core swaps them before
199
+ * they reach here. Optional (undefined ⇒ `"options"`) for the same
200
+ * compile-compat reason as `isEditing`.
201
+ */
202
+ formatType?: FormatType;
203
+ /** The month the calendar shows. Null/undefined unless `formatType` is `"date"`. */
204
+ dateView?: DateMonthView | null;
205
+ /** `YYYY-MM-DD` already held by the param being re-edited, so its cell reads as the current answer. */
206
+ selectedDateIso?: string | null;
184
207
  }
185
208
  //# 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,OAAO,EACP,cAAc,EACd,OAAO,EACP,iBAAiB,EACjB,UAAU,EACX,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,WAAW,+BAA+B;IAC9C,0DAA0D;IAC1D,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,wDAAwD;IACxD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;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AChC,uGAAuG;IACvG,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicx-eng/ai-autocomplete-angular",
3
- "version": "0.11.1",
3
+ "version": "0.13.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.13.1"
24
+ "@magicx-eng/ai-autocomplete-vanilla": "0.15.0"
25
25
  },
26
26
  "keywords": [
27
27
  "angular",
package/public-api.d.ts CHANGED
@@ -4,8 +4,27 @@
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, OptionOverrides, Product, ProductsConfig, Segment, SkippedParamState, Suggestion, SuggestionOption, TaskKind, } from "@magicx-eng/ai-autocomplete-vanilla";
8
- export { buildSubmitResult, withSkippedParams } from "@magicx-eng/ai-autocomplete-vanilla";
7
+ export type { AccessTokenConfig, AccessTokenResult, APIConfig, APIKeyConfig, AppearanceMode, AutocompleteResult, CompletedParam, CompletedParamState, DateMonthView, FormatType, OptionOverrides, Product, ProductsConfig, Segment, SkippedParamState, Suggestion, SuggestionOption, TaskKind, } from "@magicx-eng/ai-autocomplete-vanilla";
8
+ import { buildSubmitResult as _buildSubmitResult, cellDay as _cellDay, cellIso as _cellIso, formatDate as _formatDate, isoDate as _isoDate, monthLabel as _monthLabel, parseDate as _parseDate, parseLooseDate as _parseLooseDate, withSkippedParams as _withSkippedParams } from "@magicx-eng/ai-autocomplete-vanilla";
9
+ /**
10
+ * Re-exported through local bindings rather than `export ... from`.
11
+ *
12
+ * ng-packagr's flat bundles drop a bare `export { x } from "<external>"`: the
13
+ * name survives in the generated `.d.ts`, so consumer code typechecks, but the
14
+ * symbol is absent from `fesm2020` — the entry point the `exports` map resolves
15
+ * by default — and is `undefined` at runtime. Binding to a local const forces
16
+ * it into the bundle.
17
+ */
18
+ export declare const buildSubmitResult: typeof _buildSubmitResult;
19
+ export declare const withSkippedParams: typeof _withSkippedParams;
20
+ export declare const cellDay: typeof _cellDay;
21
+ export declare const cellIso: typeof _cellIso;
22
+ export declare const formatDate: typeof _formatDate;
23
+ export declare const isoDate: typeof _isoDate;
24
+ export declare const monthLabel: typeof _monthLabel;
25
+ export declare const parseDate: typeof _parseDate;
26
+ export declare const parseLooseDate: typeof _parseLooseDate;
27
+ export declare const WEEKDAY_LABELS: string[];
9
28
  export { AIAutocompleteComponent } from "./lib/ai-autocomplete";
10
29
  export { AIAutocompleteModule } from "./lib/ai-autocomplete.module";
11
30
  export { AIAutocompleteDropdownComponent } from "./lib/ai-autocomplete-dropdown";
@@ -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,OAAO,EACP,cAAc,EACd,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,QAAQ,GACT,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAE3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,g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