@ids-group-ltd/ids-design-system 0.13.4 → 0.14.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 (102) hide show
  1. package/CHANGELOG.md +258 -0
  2. package/components.md +24 -14
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-chart.md +3 -1
  6. package/docs/agent/charts/ds-line-chart.md +1 -1
  7. package/docs/agent/charts/line-series-component.md +1 -1
  8. package/docs/agent/forms/ds-search.md +1 -1
  9. package/docs/agent/forms/ds-switch.md +4 -2
  10. package/docs/agent/forms/ds-textarea.md +1 -0
  11. package/docs/agent/navigation/ds-pagination.md +2 -2
  12. package/docs/agent/platform/ds-config.md +2 -1
  13. package/docs/agent/tables/ds-cell-template.md +1 -1
  14. package/docs/agent/tables/ds-table.md +4 -3
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +26 -19
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +13 -3
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +27 -14
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +366 -81
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +4 -4
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +8 -17
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +6 -5
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +42 -6
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +17 -9
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +8 -17
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -5
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +4 -0
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +23 -4
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +20 -5
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +30 -22
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +21 -0
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +91 -10
  66. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +2 -3
  68. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  70. package/migrations/0.12.2.json +4 -1
  71. package/migrations/0.13.3.json +32 -10
  72. package/migrations/0.13.4.json +1630 -132
  73. package/migrations/0.14.0.json +591 -0
  74. package/migrations/0.5.0.json +10 -4
  75. package/migrations/0.7.0.json +5 -2
  76. package/migrations/0.9.0.json +5 -2
  77. package/migrations/README.md +7 -2
  78. package/package.json +1 -1
  79. package/styles/_chart-frame.scss +4 -4
  80. package/styles/_chart-motion.scss +17 -10
  81. package/styles/_overlay-motion.scss +14 -6
  82. package/styles/_skeleton-shimmer.scss +4 -1
  83. package/styles/_tokens.scss +1 -1
  84. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +3 -5
  85. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +3 -0
  86. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +11 -3
  87. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +125 -26
  88. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +2 -0
  89. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +3 -5
  90. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +4 -1
  91. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +4 -0
  92. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +15 -10
  93. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -4
  94. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +7 -1
  95. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +2 -0
  96. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +1 -0
  97. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +10 -1
  98. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +35 -24
  99. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +13 -0
  100. package/types/ids-group-ltd-ids-design-system-components.d.ts +46 -3
  101. package/types/ids-group-ltd-ids-design-system-core.d.ts +13 -4
  102. package/types/ids-group-ltd-ids-design-system.d.ts +1 -1
@@ -1,32 +1,39 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { TemplateRef, Signal, ViewContainerRef } from '@angular/core';
3
- import { IconName } from '@ids-group-ltd/ids-design-system/core';
3
+ import { IconName, DsSize, PaginationLayout } from '@ids-group-ltd/ids-design-system/core';
4
4
 
5
+ /** What a `dsCellTemplate` is handed: the row, as `$implicit` and again as `row`. */
6
+ interface CellTemplateContext<T = unknown> {
7
+ readonly $implicit: T;
8
+ readonly row: T;
9
+ }
5
10
  /**
6
- * Projects a custom cell template into <ds-table> for a specific column.
7
- *
8
- * Usage:
9
- * <ds-table [data]="rows" [columns]="cols">
10
- * <ng-template dsCellTemplate="product" let-row>
11
- * <div>{{ asRule(row).product }}</div>
12
- * </ng-template>
13
- * </ds-table>
11
+ * Projects a custom cell template into `<ds-table>` for one column.
14
12
  *
15
- * The template context type is `unknown` because Angular cannot propagate
16
- * the parent <ds-table>'s row type to projected templates. Consumers should
17
- * narrow the row with a typed helper method on the host component.
13
+ * ```html
14
+ * <ds-table [data]="rows" [columns]="cols">
15
+ * <ng-template dsCellTemplate="product" [dsCellTemplateOf]="rows" let-row>
16
+ * {{ row.product }}
17
+ * </ng-template>
18
+ * </ds-table>
19
+ * ```
18
20
  *
19
- * Context shape:
20
- * - $implicit: the row object (typed `unknown`)
21
- * - row: alias for the row object (typed `unknown`)
21
+ * `[dsCellTemplateOf]` exists only to TYPE the template: bound to the same rows the
22
+ * table gets, it makes `let-row` a `T` under strict templates, so a typo in a field
23
+ * name is a compile error. Left off, `row` is `unknown` and a typed helper on the
24
+ * host narrows it, as before.
22
25
  */
23
- declare class CellTemplateDirective {
26
+ declare class CellTemplateDirective<T = unknown> {
24
27
  /** The `key` of the column this template replaces, matched against the table's
25
28
  * `columns`. A key no column declares renders nothing and warns nowhere. */
26
29
  readonly dsCellTemplate: _angular_core.InputSignal<string>;
30
+ /** The table's rows, bound to type `let-row`. Never read at runtime - the table
31
+ * hands the row out itself. */
32
+ readonly dsCellTemplateOf: _angular_core.InputSignal<readonly T[] | null>;
27
33
  readonly template: TemplateRef<any>;
28
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CellTemplateDirective, never>;
29
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CellTemplateDirective, "[dsCellTemplate]", never, { "dsCellTemplate": { "alias": "dsCellTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
34
+ static ngTemplateContextGuard<T>(_directive: CellTemplateDirective<T>, _context: unknown): _context is CellTemplateContext<T>;
35
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CellTemplateDirective<any>, never>;
36
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CellTemplateDirective<any>, "[dsCellTemplate]", never, { "dsCellTemplate": { "alias": "dsCellTemplate"; "required": true; "isSignal": true; }; "dsCellTemplateOf": { "alias": "dsCellTemplateOf"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
30
37
  }
31
38
 
32
39
  /** What a projected header filter is handed. */
@@ -62,9 +69,7 @@ interface HeaderFilterContext {
62
69
  * criterion is set, though, so `active` is how the highlight gets told; without
63
70
  * it a custom filter renders but the header never marks itself filtered.
64
71
  *
65
- * The column is typed `unknown` for the same reason `dsCellTemplate`'s row is:
66
- * Angular cannot propagate the parent table's row type into a projected
67
- * template. Narrow it with a typed helper on the host.
72
+ * The column is typed `unknown`; narrow it with a typed helper on the host.
68
73
  */
69
74
  declare class HeaderFilterDirective {
70
75
  /** Key of the column this filter belongs to. */
@@ -492,6 +497,12 @@ declare class TableComponent<T extends object> {
492
497
  readonly showPageSize: _angular_core.InputSignalWithTransform<boolean, unknown>;
493
498
  /** Shows the "N of M" range label in the footer pager. */
494
499
  readonly showLabel: _angular_core.InputSignalWithTransform<boolean, unknown>;
500
+ /** Control height of the footer pager's buttons and picker. Unset falls back to
501
+ * `DS_CONFIG.pagination.size`, then `DS_CONFIG.control.size`, then `'sm'`. */
502
+ readonly paginationSize: _angular_core.InputSignal<DsSize | null>;
503
+ /** `'spread'` gives the footer pager the table's full width, label at one edge and controls
504
+ * at the other. Unset falls back to `DS_CONFIG.pagination.layout`, then `'grouped'`. */
505
+ readonly paginationLayout: _angular_core.InputSignal<PaginationLayout | null>;
495
506
  /** Server-side total row count. `null` (default) = client paging: the table
496
507
  * slices `data()` itself and the pager counts the rows in hand. When set, the
497
508
  * host has already sliced to one page — the pager uses this count and the
@@ -616,7 +627,7 @@ declare class TableComponent<T extends object> {
616
627
  $implicit: unknown;
617
628
  row: unknown;
618
629
  }> | null>;
619
- protected readonly cellTemplateDirectives: _angular_core.Signal<readonly CellTemplateDirective[]>;
630
+ protected readonly cellTemplateDirectives: _angular_core.Signal<readonly CellTemplateDirective<any>[]>;
620
631
  protected readonly cellTemplates: _angular_core.Signal<Record<string, TemplateRef<{
621
632
  $implicit: unknown;
622
633
  row: unknown;
@@ -810,8 +821,8 @@ declare class TableComponent<T extends object> {
810
821
  * across re-renders. */
811
822
  protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
812
823
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
813
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortingOrder": { "alias": "sortingOrder"; "required": false; "isSignal": true; }; "sortAnnouncement": { "alias": "sortAnnouncement"; "required": false; "isSignal": true; }; "rangeAnnouncement": { "alias": "rangeAnnouncement"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "columnFilterOptions": { "alias": "columnFilterOptions"; "required": false; "isSignal": true; }; "stickyScrollbarOffset": { "alias": "stickyScrollbarOffset"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualRowSize": { "alias": "virtualRowSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandMode": { "alias": "expandMode"; "required": false; "isSignal": true; }; "expandAllToggle": { "alias": "expandAllToggle"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKeyChange": "sortKeyChange"; "sortDirectionChange": "sortDirectionChange"; "columnFilters": "columnFiltersChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "lazyLoad": "lazyLoad"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["cellTemplateDirectives", "headerFilters"], ["[toolbar]", "[empty]", "[bulk-actions]"], true, never>;
824
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortingOrder": { "alias": "sortingOrder"; "required": false; "isSignal": true; }; "sortAnnouncement": { "alias": "sortAnnouncement"; "required": false; "isSignal": true; }; "rangeAnnouncement": { "alias": "rangeAnnouncement"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "paginationSize": { "alias": "paginationSize"; "required": false; "isSignal": true; }; "paginationLayout": { "alias": "paginationLayout"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "columnFilterOptions": { "alias": "columnFilterOptions"; "required": false; "isSignal": true; }; "stickyScrollbarOffset": { "alias": "stickyScrollbarOffset"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualRowSize": { "alias": "virtualRowSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandMode": { "alias": "expandMode"; "required": false; "isSignal": true; }; "expandAllToggle": { "alias": "expandAllToggle"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKeyChange": "sortKeyChange"; "sortDirectionChange": "sortDirectionChange"; "columnFilters": "columnFiltersChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "lazyLoad": "lazyLoad"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["cellTemplateDirectives", "headerFilters"], ["[toolbar]", "[empty]", "[bulk-actions]"], true, never>;
814
825
  }
815
826
 
816
827
  export { CellTemplateDirective, DsTableLayout, HeaderFilterDirective, TableComponent };
817
- export type { DsTableColumnStage, DsTableExportContribution, DsTableRowStage, DsTableView, HeaderFilterContext, SortChangeEvent, SortDirection, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
828
+ export type { CellTemplateContext, DsTableColumnStage, DsTableExportContribution, DsTableRowStage, DsTableView, HeaderFilterContext, SortChangeEvent, SortDirection, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
@@ -77,6 +77,19 @@ declare class TextareaComponent extends DsControlValueAccessor<string> {
77
77
  /** Move keyboard focus to the native textarea — public so a host can drive it
78
78
  * deliberately, e.g. focusing the first invalid field on a failed submit. */
79
79
  focus(options?: FocusOptions): void;
80
+ /** Index of the first selected character of the native textarea; 0 before the view exists. */
81
+ get selectionStart(): number;
82
+ /** Index after the last selected character of the native textarea; 0 before the view exists. */
83
+ get selectionEnd(): number;
84
+ /**
85
+ * Mirrors `HTMLTextAreaElement.setSelectionRange`. Does not move focus - call
86
+ * `focus()` first when the selection has to be visible. A value written through
87
+ * `value` reaches the element a microtask later and drops the caret to the end,
88
+ * so after `value.set(...)` set the range from a `setTimeout`, not synchronously.
89
+ */
90
+ setSelectionRange(start: number, end: number, direction?: 'forward' | 'backward' | 'none'): void;
91
+ /** Selects the whole text, as `HTMLTextAreaElement.select()` does. */
92
+ select(): void;
80
93
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaComponent, never>;
81
94
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaComponent, "ds-textarea", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "readonlyBinding": { "alias": "readonly"; "required": false; "isSignal": true; }; "success": { "alias": "success"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "optional": { "alias": "optional"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "autosize": { "alias": "autosize"; "required": false; "isSignal": true; }; "minRows": { "alias": "minRows"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; "resize": { "alias": "resize"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
82
95
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Signal, ElementRef, TemplateRef, ModelSignal, WritableSignal } from '@angular/core';
2
+ import { Signal, ElementRef, AnimationCallbackEvent, TemplateRef, ModelSignal, WritableSignal } from '@angular/core';
3
3
  import { ChartFormatLocation, ChartCurve, ChartThreshold, IconName, ChartFrame, ChartDataTable, ChartValueFormat } from '@ids-group-ltd/ids-design-system/core';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
  import { FieldMessageState } from '@ids-group-ltd/ids-design-system/components/field-message';
@@ -236,6 +236,13 @@ declare function roundStepAtLeast(minimumStep: number): number;
236
236
  *
237
237
  * @internal */
238
238
  declare function staggerDelay(index: number, stepMs: number): number;
239
+ /** Starts a mark's exit, bound as `(animate.leave)="leaveMark($event)"`: `_chart-motion.scss`
240
+ * animates `.mark-leave`, and Angular removes the mark on its `animationend`. The function form,
241
+ * not `animate.leave="mark-leave"`: the class form calls `getAnimations()` once per leaving mark,
242
+ * and in Chrome that call costs more the more animations are running.
243
+ *
244
+ * @internal */
245
+ declare function leaveMark(event: AnimationCallbackEvent): void;
239
246
 
240
247
  /** Where a roving tabindex lands after `key`, or `null` when the key does not traverse.
241
248
  *
@@ -254,6 +261,33 @@ declare function markAt(scope: Element | null, index: number, within?: string):
254
261
  *
255
262
  * @internal */
256
263
  declare function focusMark(scope: Element | null, index: number, within?: string): void;
264
+ /** A chart's roving tab stop.
265
+ *
266
+ * One tab stop per chart, not one per mark: WCAG 2.1.1's Understanding is explicit that not every
267
+ * mouse-operable control has to be separately focusable, and that is what keeps a twenty-five
268
+ * mark chart from being twenty-five stops in the page's tab order.
269
+ *
270
+ * @internal */
271
+ interface RovingMarks {
272
+ /** The index of the one mark that carries `tabindex="0"`. */
273
+ readonly tabStop: Signal<number>;
274
+ /** Makes `index` the tab stop, for a mark that has taken focus. */
275
+ focus(index: number): void;
276
+ /** Handles an arrow, Home or End pressed on the mark at `index`: moves the tab stop and DOM focus
277
+ * to the next mark inside `scope`. Any other key is left alone. */
278
+ navigate(event: KeyboardEvent, index: number, scope: Element | null): void;
279
+ }
280
+ /** @internal */
281
+ declare function rovingMarks(count: () => number): RovingMarks;
282
+ /** The mark an event on the marks' parent came from - the nearest `[data-mark-index]` inside that
283
+ * parent - for a chart that listens once per series rather than once per mark. `null` when the
284
+ * event did not start on a mark.
285
+ *
286
+ * @internal */
287
+ declare function markOf(event: Event): {
288
+ readonly element: Element;
289
+ readonly index: number;
290
+ } | null;
257
291
 
258
292
  /** @internal */
259
293
  interface SummaryPoint {
@@ -501,6 +535,13 @@ declare abstract class DsControlValueAccessor<T> extends DsFieldBase implements
501
535
  * nowhere. A control with a more precise target overrides this.
502
536
  */
503
537
  focus(options?: FocusOptions): void;
538
+ /**
539
+ * The counterpart of `focus()`: drops focus if it sits anywhere inside this
540
+ * control - the input, a picker trigger, the OTP cell that has it - so no
541
+ * subclass overrides it. A portaled panel is outside the host and is left alone.
542
+ * For a host that navigates away after `clear()`, which keeps focus on purpose.
543
+ */
544
+ blur(): void;
504
545
  private readonly bridge;
505
546
  /** Driven by the forms API via `setDisabledState`. */
506
547
  protected readonly formDisabled: WritableSignal<boolean>;
@@ -535,6 +576,8 @@ declare abstract class DsBooleanControlValueAccessor extends DsFieldBase impleme
535
576
  * nowhere. A control with a more precise target overrides this.
536
577
  */
537
578
  focus(options?: FocusOptions): void;
579
+ /** The counterpart of `focus()` - see `DsControlValueAccessor.blur`. */
580
+ blur(): void;
538
581
  /** Driven by the forms API via `setDisabledState`. */
539
582
  protected readonly formDisabled: WritableSignal<boolean>;
540
583
  protected readonly touchedSelf: WritableSignal<boolean>;
@@ -969,5 +1012,5 @@ declare function resolveChartDefaults(inputs: ChartDefaultInputs): {
969
1012
  tooltipLingerMs: Signal<number>;
970
1013
  };
971
1014
 
972
- export { CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, defaultChartFormat, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, labelInterval, largestRemainder, linePath, lineSegments, linearScale, lttbDecimate, markAt, minMaxDecimate, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
973
- export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, NiceDomain, PointScale, SummaryPoint };
1015
+ export { CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_SERIES_COLORS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, defaultChartFormat, describeSeries, describeShare, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, elementWidth, focusIsInside, focusMark, formatPercent, formatTick, formatValue, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, linePath, lineSegments, linearScale, lttbDecimate, markAt, markOf, minMaxDecimate, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, pointScale, polylinePoints, prepareOverlayEnter, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, staggerDelay, tickStep, tickValues, trimmedText, valueControlBridge };
1016
+ export type { BandScale, DsAriaCurrent, DsDestination, DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsLinkModifiers, DsOverlayCloseCause, DsRouterLink, LinePoint, NiceDomain, PointScale, RovingMarks, SummaryPoint };
@@ -196,6 +196,8 @@ interface DsToastPosition {
196
196
  readonly offset: string;
197
197
  }
198
198
 
199
+ type PaginationLayout = 'grouped' | 'spread';
200
+
199
201
  interface DsConfig {
200
202
  field?: {
201
203
  /** Default for every field's `reserveMessage` — keeps a message line's worth
@@ -292,6 +294,14 @@ interface DsConfig {
292
294
  * at. A screen that differs still binds `size` per element. */
293
295
  size?: DsSize;
294
296
  };
297
+ pagination?: {
298
+ /** Default `size` for every pager, `ds-table`'s footer included. Unset falls back to
299
+ * `control.size`, so this is where a pager gets bigger targets than the rest of the
300
+ * controls without resizing them all. */
301
+ size?: DsSize;
302
+ /** Default `layout` for every pager, `ds-table`'s footer included. Default `'grouped'`. */
303
+ layout?: PaginationLayout;
304
+ };
295
305
  card?: {
296
306
  /** Default `elevation` for `ds-card`. Default `'flat'`. */
297
307
  elevation?: CardElevation;
@@ -411,9 +421,8 @@ declare function resolveWithConfig<T>(value: Signal<T | null>, pick: (config: Ds
411
421
  * a minifier to fold it and drop the message with it, which `isDevMode()` — an opaque
412
422
  * call — can never allow. It cannot become a helper function for the same reason.
413
423
  *
414
- * It does work: `ds-stat` and `ds-split-button` compile to `constructor(){}` in the
415
- * shipped bundle. `ds-toast-region`'s strip is UNVERIFIED — the bundle came out
416
- * byte-identical after adding the guard, so re-check on a clean `.angular/cache`.
424
+ * It does work: `ds-stat`, `ds-split-button` and `ds-toast-region` keep no message text in the
425
+ * shipped bundle.
417
426
  * @internal
418
427
  */
419
428
  declare function devWarn(message: () => string | null): void;
@@ -562,4 +571,4 @@ type DsTriggerDisplay = 'full' | 'count' | 'labels';
562
571
  type DsControlWidth = 'fill' | 'content';
563
572
 
564
573
  export { DS_CONFIG, ICONS, backdropDismiss, boundOr, devWarn, firstEnabledIndex, flattenDsOptions, inheritDsConfig, isDsOptionGroup, isTextClipped, isTextEntryTarget, lastEnabledIndex, nextEnabledIndex, optionalBound, provideDsConfig, resolveWithConfig };
565
- export type { CardElevation, CardPadding, ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName };
574
+ export type { CardElevation, CardPadding, ChartAxis, ChartAxisMode, ChartCurve, ChartDataTable, ChartFormatLocation, ChartFrame, ChartGaps, ChartStackMode, ChartThreshold, ChartThresholdDash, ChartValueFormat, DsConfig, DsControlWidth, DsOption, DsOptionGroup, DsOptionItem, DsSize, DsStatus, DsStatusKey, DsStatusRegistry, DsToastHorizontalPosition, DsToastPosition, DsToastVerticalPosition, DsTriggerDisplay, IconName, PaginationLayout };
@@ -65,7 +65,7 @@ export { StatComponent } from '@ids-group-ltd/ids-design-system/components/stat'
65
65
  export { StatusDotComponent } from '@ids-group-ltd/ids-design-system/components/status-dot';
66
66
  export { StepperComponent, StepperLabelPosition, StepperOrientation } from '@ids-group-ltd/ids-design-system/components/stepper';
67
67
  export { SwitchComponent } from '@ids-group-ltd/ids-design-system/components/switch';
68
- export { CellTemplateDirective, HeaderFilterContext, HeaderFilterDirective, SortChangeEvent, SortDirection, TableCellEditEvent, TableColumn, TableComponent, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode } from '@ids-group-ltd/ids-design-system/components/table';
68
+ export { CellTemplateContext, CellTemplateDirective, HeaderFilterContext, HeaderFilterDirective, SortChangeEvent, SortDirection, TableCellEditEvent, TableColumn, TableComponent, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode } from '@ids-group-ltd/ids-design-system/components/table';
69
69
  export { DsTableColumns } from '@ids-group-ltd/ids-design-system/components/table-columns';
70
70
  export { DsTableExport } from '@ids-group-ltd/ids-design-system/components/table-export';
71
71
  export { DsTableResize } from '@ids-group-ltd/ids-design-system/components/table-resize';