@magicx-eng/ai-autocomplete-angular 0.7.2 → 0.8.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.
@@ -22,6 +22,14 @@ export declare class GridComponent implements OnChanges {
22
22
  maxHeight?: string;
23
23
  /** Scroll back to the top whenever this key changes (`scroll` only). */
24
24
  scrollResetKey?: string;
25
+ /** Fixed column count. Overrides the intrinsic auto-fit when set; rows fill left-to-right. */
26
+ cols?: number;
27
+ /**
28
+ * Explicit column template overrides the intrinsic auto-fit (inline wins).
29
+ * The track string is built by the core so all three packages emit the same
30
+ * one.
31
+ */
32
+ get templateColumns(): string | null;
25
33
  gridRef?: ElementRef<HTMLDivElement>;
26
34
  /**
27
35
  * A new `scrollResetKey` means a different content group is being shown (e.g.
@@ -30,6 +38,6 @@ export declare class GridComponent implements OnChanges {
30
38
  */
31
39
  ngOnChanges(changes: SimpleChanges): void;
32
40
  static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "aia-grid", never, { "min": "min"; "max": "max"; "gap": "gap"; "scroll": "scroll"; "maxHeight": "maxHeight"; "scrollResetKey": "scrollResetKey"; }, {}, never, ["*"], true, 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>;
34
42
  }
35
43
  //# 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;;AAEvB;;;;;;;;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,EAAE,MAAM,CAAC;IAC5B,wEAAwE;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IAEK,OAAO,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAE3E;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;yCArB9B,aAAa;2CAAb,aAAa;CA2BzB"}
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,EAAE,MAAM,CAAC;IAC5B,wEAAwE;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,8FAA8F;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAEnC;IAEqC,OAAO,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAE3E;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;yCAhC9B,aAAa;2CAAb,aAAa;CAsCzB"}
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "@angular/core";
2
- import type { SuggestionOption } from "@magicx-eng/ai-autocomplete-vanilla";
2
+ import { 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
@@ -23,6 +23,15 @@ export declare class SuggestionGridComponent {
23
23
  groupKey: string;
24
24
  readonly select: EventEmitter<SuggestionOption>;
25
25
  readonly highlight: EventEmitter<number>;
26
+ private readonly cdr;
27
+ onResize(): void;
28
+ /**
29
+ * Rows/columns policy — owned by the core so vanilla, React and Angular all
30
+ * lay the options grid out identically. See `computeOptionsGridLayout`.
31
+ */
32
+ private get layout();
33
+ get gridCols(): number;
34
+ get gridMaxHeight(): string;
26
35
  trackByOptionText: (_: number, opt: SuggestionOption) => string;
27
36
  static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionGridComponent, never>;
28
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>;
@@ -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,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;;AAI5E;;;;;;;;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,iBAAiB,MAAO,MAAM,OAAO,gBAAgB,KAAG,MAAM,CAAa;yCAfhE,uBAAuB;2CAAvB,uBAAuB;CAgBnC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicx-eng/ai-autocomplete-angular",
3
- "version": "0.7.2",
3
+ "version": "0.8.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.9.1"
24
+ "@magicx-eng/ai-autocomplete-vanilla": "0.10.0"
25
25
  },
26
26
  "keywords": [
27
27
  "angular",