@mintplayer/ng-bootstrap 22.28.0 → 22.30.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 (134) hide show
  1. package/_bootstrap.scss +4 -101
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
  7. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
  9. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
  11. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
  13. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
  19. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
  21. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +157 -824
  25. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
  27. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
  29. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
  31. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
  35. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
  37. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
  39. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
  41. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +283 -20
  43. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
  45. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
  47. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
  49. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
  53. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
  55. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
  57. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
  59. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
  61. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
  63. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
  65. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
  67. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
  69. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
  71. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
  73. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
  75. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
  77. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
  79. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
  81. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
  83. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
  85. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
  87. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
  89. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  90. package/package.json +11 -9
  91. package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
  92. package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
  93. package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
  94. package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
  95. package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
  96. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
  97. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
  98. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
  99. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
  100. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
  101. package/types/mintplayer-ng-bootstrap-datatable.d.ts +222 -422
  102. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
  103. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
  104. package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
  105. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
  106. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
  107. package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
  108. package/types/mintplayer-ng-bootstrap-machine.d.ts +124 -4
  109. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
  110. package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
  111. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
  112. package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
  113. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
  114. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
  115. package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
  116. package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
  117. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
  118. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
  119. package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
  120. package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
  121. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
  122. package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
  123. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
  124. package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
  125. package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
  126. package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
  127. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
  128. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
  129. package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
  130. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
  131. package/src/styles/utilities/cursor.scss +0 -12
  132. package/src/styles/utilities/overflow.scss +0 -12
  133. package/src/styles/utilities/white-space.scss +0 -12
  134. package/src/styles/utilities/width.scss +0 -14
@@ -1,436 +1,236 @@
1
+ import * as _mintplayer_ui_core_transfer_state from '@mintplayer/ui-core/transfer-state';
2
+ import * as _mintplayer_ui_core_datatable from '@mintplayer/ui-core/datatable';
3
+ import { DatatableColumnDef, SortColumn, RowEventDetail, SelectionChangeEventDetail, TreeRowExpandDetail, DatatableLoadErrorDetail, RowRenderContext, FilterContext, DatatableMethods } from '@mintplayer/ui-core/datatable';
4
+ export { DEFAULT_DATATABLE_LABELS, DatatableColumnDef, DatatableDistincts, DatatableFetch, DatatableFetchRequest, DatatableFetchResponse, DatatableFilter, DatatableFilters, DatatableHrefFor, DatatableHrefState, DatatableLabels, DatatableLoadErrorDetail, DatatableReloadOptions, DatatableSelectionMode, DistinctValue, DistinctValues, DistinctsRequest, FilterContext, FilterInputType, FilterMode, FilterOperator, FilterSelection, RowEventDetail, RowKey, RowRenderContext, SelectionChangeEventDetail, SortColumn, SortDirection, TreeIdKey, TreeRowExpandDetail, TreeSelectionStrategy, cellText, computeNextSort, sortRows } from '@mintplayer/ui-core/datatable';
1
5
  import * as _angular_core from '@angular/core';
2
- import { TemplateRef, Signal, ElementRef } from '@angular/core';
3
- import { FilterSelection, FilterMode, FilterInputType, FilterOperator, DistinctValues, FilterContext, DatatableColumnDef, DatatableDistincts, DatatableLabels, DatatableSelectionMode, TreeIdKey, TreeSelectionStrategy, FilterChangeDetail, MpDatatable, DatatableReloadOptions } from '@mintplayer/web-components/datatable';
4
- export { CellContent, CellRenderer, ComparisonFilterChangeDetail, DatatableColumnDef, DatatableDistincts, DatatableFetch, DatatableFetchRequest, DatatableFetchResponse, DatatableLabels, DatatableSelectionMode, DistinctValue, DistinctValues, DistinctsRequest, FilterChangeDetail, FilterContext, FilterInputType, FilterMode, FilterOperator, FilterRenderer, FilterSelection, HeaderRenderer, RowEventDetail, RowKey, RowRenderContext, RowRenderer, SelectionChangeEventDetail, SortChangeEventDetail, TreeExpandedIdsChangeDetail, TreeIdKey, TreeRowExpandDetail, TreeSelectionStrategy, ValuesFilterChangeDetail, computeNextSort } from '@mintplayer/web-components/datatable';
5
- import { SortColumn, PaginationRequest, PaginationResponse } from '@mintplayer/pagination';
6
+ import { TemplateRef, ElementRef } from '@angular/core';
6
7
 
7
- declare class DatatableSettings {
8
- constructor(data?: Partial<DatatableSettings>);
9
- sortColumns: SortColumn[];
10
- perPage: {
11
- values: number[];
12
- selected: number;
8
+ /** The `header` slot of `<bs-datatable>`: `<ng-template bsDatatableHeader>` or `*bsDatatableHeader`. */
9
+ declare class BsDatatableHeaderDirective {
10
+ readonly templateRef: TemplateRef<{
11
+ column: DatatableColumnDef;
12
+ } & {
13
+ $implicit: {
14
+ column: DatatableColumnDef;
15
+ };
16
+ }>;
17
+ static ngTemplateContextGuard(_dir: BsDatatableHeaderDirective, ctx: unknown): ctx is {
18
+ column: DatatableColumnDef;
19
+ } & {
20
+ $implicit: {
21
+ column: DatatableColumnDef;
22
+ };
13
23
  };
14
- page: {
15
- values: number[];
16
- selected: number;
24
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableHeaderDirective, never>;
25
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDatatableHeaderDirective, "[bsDatatableHeader]", never, {}, {}, never, never, true, never>;
26
+ }
27
+ /** The `cell` slot of `<bs-datatable>`: `<ng-template bsDatatableCell>` or `*bsDatatableCell`. */
28
+ declare class BsDatatableCellDirective {
29
+ readonly templateRef: TemplateRef<{
30
+ row: unknown;
31
+ column: DatatableColumnDef;
32
+ rowIndex: number;
33
+ } & {
34
+ $implicit: {
35
+ row: unknown;
36
+ column: DatatableColumnDef;
37
+ rowIndex: number;
38
+ };
39
+ }>;
40
+ static ngTemplateContextGuard(_dir: BsDatatableCellDirective, ctx: unknown): ctx is {
41
+ row: unknown;
42
+ column: DatatableColumnDef;
43
+ rowIndex: number;
44
+ } & {
45
+ $implicit: {
46
+ row: unknown;
47
+ column: DatatableColumnDef;
48
+ rowIndex: number;
49
+ };
17
50
  };
18
- pageNumberOfBoxes: number;
19
- toPagination(): PaginationRequest;
51
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableCellDirective, never>;
52
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDatatableCellDirective, "[bsDatatableCell]", never, {}, {}, never, never, true, never>;
20
53
  }
21
-
22
- /**
23
- * Extended pagination request passed to `BsDatatableFetch` callbacks.
24
- *
25
- * `parentId` is populated when the datatable is in tree mode (`[tree]="true"`)
26
- * and the WC needs children for a specific row. `parentId === undefined` (or
27
- * absent) means the call is for the root level. Consumers can use plain
28
- * `PaginationRequest`-typed callbacks unchanged — TypeScript's contravariance
29
- * for function parameters allows the wider input type.
30
- */
31
- interface BsDatatableFetchRequest extends PaginationRequest {
32
- parentId?: unknown;
33
- /**
34
- * Aborts when the table invalidates its pages (sort, page size, a new
35
- * `[fetch]`, `reload()`), so a superseded request stops instead of running to
36
- * completion and being ignored. Hand it to `fetch`; for an `HttpClient`
37
- * observable, unsubscribe on `signal.addEventListener('abort', …)`.
38
- */
39
- signal: AbortSignal;
54
+ /** The `row` slot of `<bs-datatable>`: `<ng-template bsDatatableRow>` or `*bsDatatableRow`. */
55
+ declare class BsDatatableRowDirective {
56
+ readonly templateRef: TemplateRef<{
57
+ row: unknown;
58
+ rowIndex: number;
59
+ ctx: RowRenderContext;
60
+ } & {
61
+ $implicit: {
62
+ row: unknown;
63
+ rowIndex: number;
64
+ ctx: RowRenderContext;
65
+ };
66
+ }>;
67
+ static ngTemplateContextGuard(_dir: BsDatatableRowDirective, ctx: unknown): ctx is {
68
+ row: unknown;
69
+ rowIndex: number;
70
+ ctx: RowRenderContext;
71
+ } & {
72
+ $implicit: {
73
+ row: unknown;
74
+ rowIndex: number;
75
+ ctx: RowRenderContext;
76
+ };
77
+ };
78
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableRowDirective, never>;
79
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDatatableRowDirective, "[bsDatatableRow]", never, {}, {}, never, never, true, never>;
40
80
  }
41
- type BsDatatableFetch<T> = (req: BsDatatableFetchRequest) => Promise<PaginationResponse<T>>;
42
-
43
- /**
44
- * Context of a `*bsDatatableFilterPanel` template.
45
- *
46
- * `$implicit` is a **Signal**, not a plain object. The demos and the specs run
47
- * zoneless, where mutating a context object notifies nothing and the panel never
48
- * repaints; a signal the wrapper writes to is what makes the override update as
49
- * values load.
50
- */
51
- interface BsDatatableFilterPanelContext {
52
- $implicit: Signal<DistinctValues | null>;
53
- ctx: FilterContext;
81
+ /** The `filter` slot of `<bs-datatable>`: `<ng-template bsDatatableFilter>` or `*bsDatatableFilter`. */
82
+ declare class BsDatatableFilterDirective {
83
+ readonly templateRef: TemplateRef<{
84
+ column: DatatableColumnDef;
85
+ ctx: FilterContext;
86
+ } & {
87
+ $implicit: {
88
+ column: DatatableColumnDef;
89
+ ctx: FilterContext;
90
+ };
91
+ }>;
92
+ static ngTemplateContextGuard(_dir: BsDatatableFilterDirective, ctx: unknown): ctx is {
93
+ column: DatatableColumnDef;
94
+ ctx: FilterContext;
95
+ } & {
96
+ $implicit: {
97
+ column: DatatableColumnDef;
98
+ ctx: FilterContext;
99
+ };
100
+ };
101
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableFilterDirective, never>;
102
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDatatableFilterDirective, "[bsDatatableFilter]", never, {}, {}, never, never, true, never>;
54
103
  }
55
104
  /**
56
- * Declares a column in `<bs-datatable>`.
57
- *
58
- * - `bsDatatableColumn` (the directive value) is the **data property name** —
59
- * it must match the field key on each row in the fetched data and is what
60
- * `SortColumn.property` references when the column is clicked.
61
- * - The directive's **template content** is the header template — what gets
62
- * rendered inside the `<th>`.
63
- *
64
- * Example:
65
- * ```html
66
- * <div *bsDatatableColumn="'YearStarted'; sortable: true">Year started</div>
67
- * ```
105
+ * A sortable, pageable, selectable table (#437), over local `data` or a server `fetch`;
106
+ * virtual scrolling, a lazy tree (`tree` + `idKey` + `childCountKey`) and resizable columns.
68
107
  *
69
- * Optional `bsDatatableColumnSortable` controls whether the header acts as a
70
- * sort toggle (default `true`).
108
+ * Columns are data (`DatatableColumnDef`). Slots: `header {column}` (a header label),
109
+ * `cell {row, column, rowIndex}` (one cell) and `row {row, rowIndex, ctx}` (all of a
110
+ * row's data cells) and `filter {column, ctx}` (the panel of a column with `filterMode: 'custom'`). Two-way: `sortColumns`, `page`, `perPage`, `selectedIds`, `expandedIds`, `filters`.
111
+ * An `aria-label` names the table. With `fetch`, filters are applied server-side; `stateKey` prefetches
112
+ * the first page during SSR and hands it to the client (#448).
71
113
  */
72
- declare class BsDatatableColumnDirective {
73
- readonly templateRef: TemplateRef<unknown>;
74
- /** Data property name on each row; used as `SortColumn.property` on sort. */
75
- readonly name: _angular_core.InputSignal<string>;
76
- readonly sortable: _angular_core.InputSignal<boolean>;
77
- /**
78
- * The column's name in generated accessible strings (resize handle, filter
79
- * trigger and panel, announcements). Optional: without it the datatable uses
80
- * the text the header template renders, so set it only for an icon-only
81
- * header or when the spoken name should differ from the visible one.
82
- */
83
- readonly label: _angular_core.InputSignal<string | undefined>;
84
- /**
85
- * Whether this column offers a resize handle. Left unset it follows the
86
- * table's `resizableColumns`; a set value wins over it in either direction.
87
- * Deliberately no `true` default, which would override a table-wide `false`.
88
- */
89
- readonly resizable: _angular_core.InputSignal<boolean | undefined>;
90
- /** Opt this column into the filter row. Default `false`, unlike `sortable`. */
91
- readonly filterable: _angular_core.InputSignal<boolean>;
92
- /**
93
- * Purely visual: marks this column's trigger as "filtered". The component
94
- * attaches no meaning to it — the consumer decides when it is true, because
95
- * the component never filters the data itself.
96
- */
97
- readonly filterActive: _angular_core.InputSignal<boolean>;
98
- /** Short description of the active filter, shown on the trigger and in its name. */
99
- readonly filterSummary: _angular_core.InputSignal<string | undefined>;
100
- /** Initial or externally restored selection for this column's panel. */
101
- readonly filterSelection: _angular_core.InputSignal<FilterSelection | undefined>;
102
- /**
103
- * `'values'` (default) lists the column's distinct values as checkboxes;
104
- * `'comparison'` offers an operator and one operand — the right shape for a
105
- * quantity, where ticking forty individual years is a poor way to say
106
- * "after 1990".
107
- */
108
- readonly filterMode: _angular_core.InputSignal<FilterMode>;
109
- /** `type` of the operand input in comparison mode. Default `'number'`. */
110
- readonly filterInputType: _angular_core.InputSignal<FilterInputType | undefined>;
111
- /** Operators offered in comparison mode, in order. Defaults to all six. */
112
- readonly filterOperators: _angular_core.InputSignal<FilterOperator[] | undefined>;
113
- /**
114
- * Set by a nested `*bsDatatableFilterPanel`, and a **plain field** rather than
115
- * a signal on purpose.
116
- *
117
- * The nested directive assigns this from its constructor, which runs while
118
- * the column's own header view is being created — i.e. inside a reactive
119
- * read. Writing a signal there is NG0600. Nothing reads this reactively: the
120
- * wrapper resolves it when the web component asks for the panel's contents,
121
- * which is at panel open, long after any computed has settled.
122
- */
123
- filterPanelTemplate?: TemplateRef<BsDatatableFilterPanelContext>;
124
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableColumnDirective, never>;
125
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDatatableColumnDirective, "[bsDatatableColumn]", never, { "name": { "alias": "bsDatatableColumn"; "required": false; "isSignal": true; }; "sortable": { "alias": "bsDatatableColumnSortable"; "required": false; "isSignal": true; }; "label": { "alias": "bsDatatableColumnLabel"; "required": false; "isSignal": true; }; "resizable": { "alias": "bsDatatableColumnResizable"; "required": false; "isSignal": true; }; "filterable": { "alias": "bsDatatableColumnFilterable"; "required": false; "isSignal": true; }; "filterActive": { "alias": "bsDatatableColumnFilterActive"; "required": false; "isSignal": true; }; "filterSummary": { "alias": "bsDatatableColumnFilterSummary"; "required": false; "isSignal": true; }; "filterSelection": { "alias": "bsDatatableColumnFilterSelection"; "required": false; "isSignal": true; }; "filterMode": { "alias": "bsDatatableColumnFilterMode"; "required": false; "isSignal": true; }; "filterInputType": { "alias": "bsDatatableColumnFilterInputType"; "required": false; "isSignal": true; }; "filterOperators": { "alias": "bsDatatableColumnFilterOperators"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
126
- }
127
-
128
- /**
129
- * Marks an `<ng-template>` as the per-row body for `<bs-datatable>`. The
130
- * template's `$implicit` is the row object. The template should render one
131
- * `<td>` per data column (in column order).
132
- *
133
- * In tree mode (`[tree]="true"`) the context also carries `depth` (0 for
134
- * roots, +1 per nesting level), `isExpanded`, and `isPlaceholder` (true when
135
- * the row is a not-yet-loaded child slot — `$implicit` is undefined).
136
- *
137
- * Example:
138
- * ```html
139
- * <ng-container *bsRowTemplate="let artist">
140
- * <td class="text-nowrap">{{ artist?.name }}</td>
141
- * <td class="text-nowrap">{{ artist?.yearStarted }}</td>
142
- * </ng-container>
143
- *
144
- * <!-- tree mode: render a spinner for placeholder rows -->
145
- * <ng-container *bsRowTemplate="let item; let isPlaceholder = isPlaceholder">
146
- * @if (isPlaceholder) { <td colspan="3"><i>Loading…</i></td> }
147
- * @else { <td>{{ item.name }}</td><td>{{ item.headcount }}</td><td>{{ item.code }}</td> }
148
- * </ng-container>
149
- * ```
150
- */
151
- declare class BsRowTemplateDirective<TData = unknown> {
152
- readonly templateRef: TemplateRef<BsRowTemplateContext<TData>>;
153
- static ngTemplateContextGuard<TData>(_dir: BsRowTemplateDirective<TData>, ctx: unknown): ctx is BsRowTemplateContext<Exclude<TData, false | 0 | '' | null | undefined>>;
154
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRowTemplateDirective<any>, never>;
155
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsRowTemplateDirective<any>, "[bsRowTemplate]", never, {}, {}, never, never, true, never>;
156
- }
157
- declare class BsRowTemplateContext<TData = unknown> {
158
- $implicit: TData | undefined;
159
- index?: number;
160
- /** 0 for roots; +1 per nesting level. Always 0 in flat mode. */
161
- depth: number;
162
- /** True when the row is currently expanded. Always false in flat mode. */
163
- isExpanded: boolean;
164
- /** True when the row is a not-yet-loaded child slot — `$implicit` is undefined. */
165
- isPlaceholder: boolean;
166
- }
167
-
168
- interface BsDatatableRowEvent<T> {
169
- row: T;
170
- rowIndex: number;
171
- rowKey: string;
172
- originalEvent: Event;
173
- }
174
- interface BsDatatableTreeRowEvent<T> {
175
- row: T;
176
- depth: number;
177
- parentId: unknown | null;
178
- }
179
- declare class BsDatatableComponent<TData> {
180
- private readonly platformId;
181
- private readonly vcr;
182
- private readonly destroyRef;
183
- /**
184
- * Programmatic column list. Mutually exclusive with the `*bsDatatableColumn`
185
- * template directives — if provided, takes precedence.
186
- */
187
- readonly columnsInput: _angular_core.InputSignal<DatatableColumnDef<TData>[] | null>;
188
- /**
189
- * The **complete** row set. Use `[fetch]` for server-side pagination.
190
- *
191
- * "Complete" matters to the filter panels: their value lists are computed from
192
- * this array, so a consumer who pages `[data]` themselves is showing the
193
- * component one page and will get a value list covering one page. That case
194
- * needs `[distincts]`.
195
- */
196
- readonly data: _angular_core.InputSignal<TData[] | null>;
197
- /** Async data loader (server-side pagination). Mutually exclusive with `[data]`. */
198
- readonly fetch: _angular_core.InputSignal<BsDatatableFetch<TData> | null>;
199
- /**
200
- * Source of distinct values for the filter panels.
201
- *
202
- * Required whenever the component does not hold every row — with `[fetch]`,
203
- * with external paging, or with a tree whose children are loaded on demand, a
204
- * locally computed list would silently omit values, so it is not computed at
205
- * all. Resolve `null` for a column to hand that one column back to the local
206
- * path.
207
- */
208
- readonly distincts: _angular_core.InputSignal<DatatableDistincts | null>;
209
- /** Partial override of the component's user-visible strings. */
210
- readonly labels: _angular_core.InputSignal<Partial<DatatableLabels> | null>;
211
- /** Two-way bound pagination / sort settings. */
212
- readonly settings: _angular_core.ModelSignal<DatatableSettings>;
213
- /**
214
- * - `'none'` (default): no selection, no checkbox column.
215
- * - `'single'`: a row click selects that one row.
216
- * - `'multiple'`: a row click selects (Ctrl/Shift extend it), plus a checkbox column.
217
- * - `'checkbox'`: multi-select through the checkbox column only; a row click
218
- * just opens the row (`rowClick`), it never changes the selection.
219
- */
220
- readonly selectionMode: _angular_core.InputSignal<DatatableSelectionMode>;
221
- /** @deprecated Use `selectionMode`. Kept for source-level compatibility. */
222
- readonly selectable: _angular_core.InputSignal<DatatableSelectionMode | undefined>;
223
- /**
224
- * Two-way bound array of selected rows. Identity is `rowKey`: two row
225
- * objects with the same key are the same selection entry.
226
- *
227
- * The selection survives paging, sorting and re-fetching: a selected row
228
- * that leaves the loaded data stays in the model (the element remembers it).
229
- * Rows written here are handed to the element, so a host may select rows
230
- * that are not loaded at all. After a selection change the model holds the
231
- * freshest row object the element knows for each key.
232
- */
233
- readonly selection: _angular_core.ModelSignal<TData[]>;
234
- /**
235
- * The row's identity, used for selection and for keeping views across
236
- * re-renders. Default: `String(row.id)`.
237
- *
238
- * **With `[fetch]` (or any selection that must survive paging) the key must
239
- * be stable** — derived from the row itself, never from its position. The
240
- * fallback for a row without an `id`, `row-${index}`, is positional and
241
- * therefore unstable: the same row gets another key on another page or sort.
242
- * Worse, a selected row that is not loaded has no index and is keyed
243
- * `rowKey(row, -1)`, so every id-less off-page row collapses onto the one
244
- * key `row--1` — in this wrapper's model and in the element alike — and the
245
- * selection can no longer tell them apart. Supply a stable `rowKey`.
246
- */
247
- readonly rowKey: _angular_core.InputSignal<(row: TData, index: number) => string>;
248
- /**
249
- * Names a row for its selection checkbox ("Select {label}"). When unset, or
250
- * when it returns an empty string, the trimmed text of the row's first cell
251
- * is used, and failing that the row number.
252
- */
253
- readonly rowLabel: _angular_core.InputSignal<((row: TData) => string) | null>;
254
- /** Drag-resize column widths. Default `true`. */
255
- readonly resizableColumns: _angular_core.InputSignal<boolean>;
256
- /** Built-in pagination footer. Ignored when `[fetch]` is provided (server-side paging owns the page state). */
257
- readonly pagination: _angular_core.InputSignal<boolean>;
258
- /** Enable virtual scrolling for large datasets. */
259
- readonly virtualScroll: _angular_core.InputSignal<boolean>;
260
- /** Approximate row height in px (drives virtual scroll). */
261
- readonly itemSize: _angular_core.InputSignal<number>;
262
- /** Off-screen row buffer per side for virtual scrolling. */
263
- readonly virtualBuffer: _angular_core.InputSignal<number>;
264
- /**
265
- * Fit a sized parent: the header sticks to its top, the footer to its
266
- * bottom, and only the rows scroll in between (horizontally the whole table
267
- * scrolls as one). The parent needs a definite height.
268
- */
269
- readonly fill: _angular_core.InputSignalWithTransform<boolean, unknown>;
270
- /** Forwarded to the inner table (legacy responsive flag, currently a CSS hook). */
271
- readonly isResponsive: _angular_core.InputSignal<boolean>;
272
- /** Emitted on row single-click. */
273
- readonly rowClick: _angular_core.OutputEmitterRef<BsDatatableRowEvent<TData>>;
274
- /** Emitted on row double-click. */
275
- readonly rowDblClick: _angular_core.OutputEmitterRef<BsDatatableRowEvent<TData>>;
276
- /** Emitted on row context-menu. */
277
- readonly rowContextMenu: _angular_core.OutputEmitterRef<BsDatatableRowEvent<TData>>;
278
- /** Enable tree mode (chevron column, nested expansion, lazy children). */
279
- readonly tree: _angular_core.InputSignal<boolean>;
280
- /**
281
- * Property name (or function) that extracts the row's stable identity.
282
- * Required when `tree=true`. Used as the expansion key and as the
283
- * `parentId` value the WC sends in `mp-datatable-fetch-request`.
284
- */
285
- readonly idKey: _angular_core.InputSignal<TreeIdKey<TData> | null>;
286
- /**
287
- * Property name on the row holding the direct-child count. Drives chevron
288
- * visibility AND placeholder reservation for lazy children. Required when
289
- * `tree=true`.
290
- */
114
+ declare class BsDatatableComponent {
115
+ #private;
116
+ /** The host element. */
117
+ readonly elementRef: ElementRef<HTMLElement>;
118
+ readonly columns: _angular_core.InputSignal<DatatableColumnDef<unknown>[]>;
119
+ readonly data: _angular_core.InputSignal<unknown[]>;
120
+ readonly fetch: _angular_core.InputSignal<_mintplayer_ui_core_datatable.DatatableFetch<any, any> | null>;
121
+ readonly caption: _angular_core.InputSignal<string | null>;
122
+ readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_datatable.DatatableLabels> | null>;
123
+ readonly inputLabel: _angular_core.InputSignal<string | null>;
124
+ readonly sortColumns: _angular_core.ModelSignal<SortColumn[]>;
125
+ readonly page: _angular_core.ModelSignal<number>;
126
+ readonly perPage: _angular_core.ModelSignal<number>;
127
+ readonly perPageOptions: _angular_core.InputSignal<number[]>;
128
+ readonly pagination: _angular_core.InputSignalWithTransform<boolean, unknown>;
129
+ readonly autoSort: _angular_core.InputSignalWithTransform<boolean, unknown>;
130
+ readonly selectionMode: _angular_core.InputSignal<_mintplayer_ui_core_datatable.DatatableSelectionMode>;
131
+ readonly selectedIds: _angular_core.ModelSignal<string[]>;
132
+ readonly cutIds: _angular_core.InputSignal<string[]>;
133
+ readonly focusedRowKey: _angular_core.InputSignal<string | null>;
134
+ readonly rowLabel: _angular_core.InputSignal<((row: unknown) => string) | null>;
135
+ readonly rowKey: _angular_core.InputSignal<_mintplayer_ui_core_datatable.RowKey | null>;
136
+ readonly tree: _angular_core.InputSignalWithTransform<boolean, unknown>;
137
+ readonly idKey: _angular_core.InputSignal<_mintplayer_ui_core_datatable.TreeIdKey | null>;
291
138
  readonly childCountKey: _angular_core.InputSignal<string | null>;
292
- /** Indent in rem per depth level on the chevron cell. Default `1.25`. */
293
- readonly treeIndent: _angular_core.InputSignal<number>;
294
- /** Two-way bound set of expanded-row ids (keyed by `idKey`). */
295
- readonly expandedIds: _angular_core.ModelSignal<Set<unknown>>;
296
- /**
297
- * `'flat'` (default) leaves selection to per-row toggles; `'cascading'`
298
- * (recommended in tree mode) propagates a parent toggle to all loaded
299
- * descendants and surfaces an indeterminate state on partially-selected
300
- * parents.
301
- */
302
- readonly selectionStrategy: _angular_core.InputSignal<TreeSelectionStrategy>;
303
- /** Emitted after a row is expanded. */
304
- readonly rowExpand: _angular_core.OutputEmitterRef<BsDatatableTreeRowEvent<TData>>;
305
- /** Emitted after a row is collapsed. */
306
- readonly rowCollapse: _angular_core.OutputEmitterRef<BsDatatableTreeRowEvent<TData>>;
307
- /**
308
- * Emitted whenever a column's filter selection changes, including when it is
309
- * cleared (`selected: []`).
310
- *
311
- * The component does not filter `[data]`: acting on this — and setting
312
- * `filterActive` / `filterSummary` back on the column — is the consumer's job,
313
- * because only they know whether the filter is client-side or a new query.
314
- */
315
- readonly filterChange: _angular_core.OutputEmitterRef<FilterChangeDetail>;
316
- readonly datatableRef: _angular_core.Signal<ElementRef<MpDatatable>>;
317
- /** Column directives (header template + sortable). Wrapper-level discovery. */
318
- readonly columnDirectives: _angular_core.Signal<readonly BsDatatableColumnDirective[]>;
319
- /** Optional row template. When present, drives a per-row EmbeddedView render path. */
320
- readonly rowTemplate: _angular_core.Signal<BsRowTemplateDirective<any> | undefined>;
321
- /**
322
- * Merged column defs:
323
- * - `[columns]` if provided
324
- * - else the `*bsDatatableColumn` directives mapped onto column defs whose
325
- * `headerRenderer` returns a DOM node produced from the directive's template.
326
- */
327
- protected readonly effectiveColumns: _angular_core.Signal<DatatableColumnDef<TData>[]>;
328
- /** EmbeddedViews for header templates (one per column directive). */
329
- private headerViews;
330
- /** EmbeddedViews for filter panel templates (one per overriding column). */
331
- private filterViews;
332
- /** `FilterContext.onChange` unsubscribes, one per live filter view. */
333
- private filterUnsubscribes;
334
- /** The previous generation, awaiting disposal by the columns effect. */
335
- private staleViews;
336
- /**
337
- * Hands the previous generation over for disposal — it does **not** destroy
338
- * anything, and must not.
339
- *
340
- * This runs inside `effectiveColumns`, and destroying a view detaches it,
341
- * which dirties Angular's query signals: a signal write inside a computed,
342
- * i.e. NG0600, the moment the host declares any view query. It is the exact
343
- * mirror of why views are not CREATED here either — attach and detach are
344
- * both signal writes, so neither belongs in a computed.
345
- *
346
- * Handing over is a plain field write, and the effect that forwards the
347
- * columns disposes the batch on the same tick, so the leak this replaced
348
- * stays fixed: at most one dead generation exists, and only momentarily.
349
- */
350
- private retireTemplateViews;
351
- /** Destroys the retired generation. Only ever called from an effect. */
352
- private disposeStaleViews;
353
- /**
354
- * Without this the web component keeps calling into a destroyed view's signal
355
- * on every value change, for the life of the element.
356
- */
357
- private releaseFilterSubscriptions;
358
- /** EmbeddedViews for row templates, keyed by rowKey for reuse. */
359
- private rowViews;
360
- constructor();
361
- /** The selection model the wrapper last built from a WC event (echo guard). */
362
- private lastEmittedSelection;
363
- /**
364
- * Keys a selection-model row the way the element would: a row the element
365
- * currently reports keeps the key it reports it under; any other row gets
366
- * `rowKey(row, -1)`, which is what the element uses for a row that is not
367
- * in its loaded data.
368
- */
369
- private selectionKeyLookup;
370
- /**
371
- * Re-queries `[fetch]` for the current sort, page and page size, e.g. after
372
- * the server data changed. The selection is kept. `resetPage: true` also
373
- * returns to page 1. A no-op on the server and without `[fetch]`.
374
- */
375
- reload(options?: DatatableReloadOptions): void;
376
- private buildRowRenderer;
377
- onSortChange(event: Event): void;
378
- onSelectionChange(event: Event): void;
379
- onPageChange(event: Event): void;
380
- onPerPageChange(event: Event): void;
381
- onRowClick(event: Event): void;
382
- onRowDblClick(event: Event): void;
383
- onRowContextMenu(event: Event): void;
384
- onRowExpand(event: Event): void;
385
- onRowCollapse(event: Event): void;
386
- onExpandedIdsChange(event: Event): void;
387
- onFilterChange(event: Event): void;
388
- private toBsEvent;
389
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableComponent<any>, never>;
390
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDatatableComponent<any>, "bs-datatable", never, { "columnsInput": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "fetch": { "alias": "fetch"; "required": false; "isSignal": true; }; "distincts": { "alias": "distincts"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "rowLabel": { "alias": "rowLabel"; "required": false; "isSignal": true; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "virtualBuffer": { "alias": "virtualBuffer"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "isResponsive": { "alias": "isResponsive"; "required": false; "isSignal": true; }; "tree": { "alias": "tree"; "required": false; "isSignal": true; }; "idKey": { "alias": "idKey"; "required": false; "isSignal": true; }; "childCountKey": { "alias": "childCountKey"; "required": false; "isSignal": true; }; "treeIndent": { "alias": "treeIndent"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "selectionStrategy": { "alias": "selectionStrategy"; "required": false; "isSignal": true; }; }, { "settings": "settingsChange"; "selection": "selectionChange"; "rowClick": "rowClick"; "rowDblClick": "rowDblClick"; "rowContextMenu": "rowContextMenu"; "expandedIds": "expandedIdsChange"; "rowExpand": "rowExpand"; "rowCollapse": "rowCollapse"; "filterChange": "filterChange"; }, ["columnDirectives", "rowTemplate"], never, true, never>;
391
- }
392
-
393
- /**
394
- * Overrides the filter panel of the column it is nested in.
395
- *
396
- * ```html
397
- * <div *bsDatatableColumn="'country'; filterable: true">
398
- * Country
399
- * <ng-container *bsDatatableFilterPanel="let values">
400
- * <my-panel [values]="values()"></my-panel>
401
- * </ng-container>
402
- * </div>
403
- * ```
404
- *
405
- * Nested inside the column rather than a sibling keyed by name: the column is
406
- * the thing being configured, and a name-keyed sibling has no way to fail loudly
407
- * when the two names drift apart. It is also the pattern every other per-item
408
- * override in this workspace uses.
409
- *
410
- * Omitting it is not a lesser option — the web component renders a built-in
411
- * panel (search, include/exclude, checkbox list, clear) which React and Vue get
412
- * for free. This directive is for the cases that need something else.
413
- *
414
- * ### Inputs on the column, not here
415
- *
416
- * `filterable`, `filterActive`, `filterSummary` and `filterSelection` are inputs
417
- * on `*bsDatatableColumn`. They cannot live here: this directive's own inputs
418
- * are not yet set when its constructor runs, and the constructor is the only
419
- * point at which it can register itself with the column early enough.
420
- */
421
- declare class BsDatatableFilterPanelDirective {
422
- private readonly column;
423
- private readonly templateRef;
139
+ readonly treeIndent: _angular_core.InputSignalWithTransform<number, unknown>;
140
+ readonly expandedIds: _angular_core.ModelSignal<unknown[]>;
141
+ readonly selectionStrategy: _angular_core.InputSignal<_mintplayer_ui_core_datatable.TreeSelectionStrategy>;
142
+ readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
143
+ readonly emptyMessage: _angular_core.InputSignal<string>;
144
+ readonly virtualScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
145
+ readonly itemSize: _angular_core.InputSignalWithTransform<number, unknown>;
146
+ readonly virtualBuffer: _angular_core.InputSignalWithTransform<number, unknown>;
147
+ readonly fill: _angular_core.InputSignalWithTransform<boolean, unknown>;
148
+ readonly resizableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
149
+ readonly hrefFor: _angular_core.InputSignal<_mintplayer_ui_core_datatable.DatatableHrefFor | null>;
150
+ readonly distincts: _angular_core.InputSignal<((request: _mintplayer_ui_core_datatable.DistinctsRequest<any>) => Promise<_mintplayer_ui_core_datatable.DistinctValues | null>) | null>;
151
+ readonly filters: _angular_core.ModelSignal<Readonly<Record<string, _mintplayer_ui_core_datatable.DatatableFilter>> | null>;
152
+ readonly fetchParams: _angular_core.InputSignal<_mintplayer_ui_core_transfer_state.JsonValue>;
153
+ readonly stateKey: _angular_core.InputSignal<string | null>;
154
+ /** The sort, after the user changed it. */
155
+ readonly sortcolumnschange: _angular_core.OutputEmitterRef<SortColumn[]>;
156
+ /** The page, after the user changed it. */
157
+ readonly pagechange: _angular_core.OutputEmitterRef<number>;
158
+ /** The page size, after the user changed it. */
159
+ readonly perpagechange: _angular_core.OutputEmitterRef<number>;
160
+ /** The selected row keys, after the user changed them. */
161
+ readonly selectedidschange: _angular_core.OutputEmitterRef<string[]>;
162
+ /** The expanded row ids, after the user changed them. */
163
+ readonly expandedidschange: _angular_core.OutputEmitterRef<unknown[]>;
164
+ /** A row was clicked, or opened with Enter. */
165
+ readonly rowclick: _angular_core.OutputEmitterRef<RowEventDetail<unknown>>;
166
+ /** A row was double-clicked. */
167
+ readonly rowdblclick: _angular_core.OutputEmitterRef<RowEventDetail<unknown>>;
168
+ /** A row's context menu; `originalEvent.preventDefault()` suppresses the browser's. */
169
+ readonly rowcontextmenu: _angular_core.OutputEmitterRef<RowEventDetail<unknown>>;
170
+ /** The user changed the selection: the keys and their rows. */
171
+ readonly selectionchanged: _angular_core.OutputEmitterRef<SelectionChangeEventDetail<unknown>>;
172
+ /** A tree row expanded. */
173
+ readonly rowexpand: _angular_core.OutputEmitterRef<TreeRowExpandDetail<unknown>>;
174
+ /** A tree row collapsed. */
175
+ readonly rowcollapse: _angular_core.OutputEmitterRef<TreeRowExpandDetail<unknown>>;
176
+ /** A `fetch` call rejected. */
177
+ readonly loaderror: _angular_core.OutputEmitterRef<DatatableLoadErrorDetail>;
178
+ /** The column filters, after the user changed them; `fetch` (or the consumer, over `data`) applies them. */
179
+ readonly filterschange: _angular_core.OutputEmitterRef<Readonly<Record<string, _mintplayer_ui_core_datatable.DatatableFilter>>>;
180
+ private readonly headerSlot;
181
+ private readonly cellSlot;
182
+ private readonly rowSlot;
183
+ private readonly filterSlot;
184
+ /** The template's named slots. */
185
+ protected readonly slots: _angular_core.Signal<{
186
+ header: TemplateRef<{
187
+ column: DatatableColumnDef;
188
+ } & {
189
+ $implicit: {
190
+ column: DatatableColumnDef;
191
+ };
192
+ }> | undefined;
193
+ cell: TemplateRef<{
194
+ row: unknown;
195
+ column: DatatableColumnDef;
196
+ rowIndex: number;
197
+ } & {
198
+ $implicit: {
199
+ row: unknown;
200
+ column: DatatableColumnDef;
201
+ rowIndex: number;
202
+ };
203
+ }> | undefined;
204
+ row: TemplateRef<{
205
+ row: unknown;
206
+ rowIndex: number;
207
+ ctx: RowRenderContext;
208
+ } & {
209
+ $implicit: {
210
+ row: unknown;
211
+ rowIndex: number;
212
+ ctx: RowRenderContext;
213
+ };
214
+ }> | undefined;
215
+ filter: TemplateRef<{
216
+ column: DatatableColumnDef;
217
+ ctx: FilterContext;
218
+ } & {
219
+ $implicit: {
220
+ column: DatatableColumnDef;
221
+ ctx: FilterContext;
222
+ };
223
+ }> | undefined;
224
+ }>;
225
+ /** The template's props. */
226
+ protected readonly props: _angular_core.Signal<{
227
+ view: _mintplayer_ui_core_datatable.DatatableView;
228
+ }>;
424
229
  constructor();
425
- /**
426
- * Lets `let values = $implicit` and `let ctx = ctx` type-check against the
427
- * real context. Without it both are `any`, so `values().anything.deeper`
428
- * compiles and fails at runtime.
429
- */
430
- static ngTemplateContextGuard(_dir: BsDatatableFilterPanelDirective, _ctx: unknown): _ctx is BsDatatableFilterPanelContext;
431
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableFilterPanelDirective, never>;
432
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDatatableFilterPanelDirective, "[bsDatatableFilterPanel]", never, {}, {}, never, never, true, never>;
230
+ /** Re-query `fetch` for the current sort, page and page size; `{ resetPage: true }` also returns to page 1. */
231
+ reload(...args: Parameters<DatatableMethods['reload']>): ReturnType<DatatableMethods['reload']>;
232
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDatatableComponent, never>;
233
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDatatableComponent, "bs-datatable", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "fetch": { "alias": "fetch"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "sortColumns": { "alias": "sortColumns"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "perPage": { "alias": "perPage"; "required": false; "isSignal": true; }; "perPageOptions": { "alias": "perPageOptions"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "autoSort": { "alias": "autoSort"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "cutIds": { "alias": "cutIds"; "required": false; "isSignal": true; }; "focusedRowKey": { "alias": "focusedRowKey"; "required": false; "isSignal": true; }; "rowLabel": { "alias": "rowLabel"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "tree": { "alias": "tree"; "required": false; "isSignal": true; }; "idKey": { "alias": "idKey"; "required": false; "isSignal": true; }; "childCountKey": { "alias": "childCountKey"; "required": false; "isSignal": true; }; "treeIndent": { "alias": "treeIndent"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "selectionStrategy": { "alias": "selectionStrategy"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "virtualBuffer": { "alias": "virtualBuffer"; "required": false; "isSignal": true; }; "fill": { "alias": "fill"; "required": false; "isSignal": true; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; "isSignal": true; }; "hrefFor": { "alias": "hrefFor"; "required": false; "isSignal": true; }; "distincts": { "alias": "distincts"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "fetchParams": { "alias": "fetchParams"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; }, { "sortColumns": "sortColumnsChange"; "page": "pageChange"; "perPage": "perPageChange"; "selectedIds": "selectedIdsChange"; "expandedIds": "expandedIdsChange"; "filters": "filtersChange"; "sortcolumnschange": "sortcolumnschange"; "pagechange": "pagechange"; "perpagechange": "perpagechange"; "selectedidschange": "selectedidschange"; "expandedidschange": "expandedidschange"; "rowclick": "rowclick"; "rowdblclick": "rowdblclick"; "rowcontextmenu": "rowcontextmenu"; "selectionchanged": "selectionchanged"; "rowexpand": "rowexpand"; "rowcollapse": "rowcollapse"; "loaderror": "loaderror"; "filterschange": "filterschange"; }, ["headerSlot", "cellSlot", "rowSlot", "filterSlot"], never, true, never>;
433
234
  }
434
235
 
435
- export { BsDatatableColumnDirective, BsDatatableComponent, BsDatatableFilterPanelDirective, BsRowTemplateContext, BsRowTemplateDirective, DatatableSettings };
436
- export type { BsDatatableFetch, BsDatatableFetchRequest, BsDatatableFilterPanelContext, BsDatatableRowEvent, BsDatatableTreeRowEvent };
236
+ export { BsDatatableCellDirective, BsDatatableComponent, BsDatatableFilterDirective, BsDatatableHeaderDirective, BsDatatableRowDirective };