@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.
- package/_bootstrap.scss +4 -101
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +157 -824
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +283 -20
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +11 -9
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
- package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +222 -422
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +124 -4
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
- package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
- package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
- package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
- package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
- package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
- package/src/styles/utilities/cursor.scss +0 -12
- package/src/styles/utilities/overflow.scss +0 -12
- package/src/styles/utilities/white-space.scss +0 -12
- 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,
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
70
|
-
*
|
|
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
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
readonly
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
readonly
|
|
90
|
-
|
|
91
|
-
readonly
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
293
|
-
readonly
|
|
294
|
-
|
|
295
|
-
readonly
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
readonly
|
|
303
|
-
|
|
304
|
-
readonly
|
|
305
|
-
|
|
306
|
-
readonly
|
|
307
|
-
/**
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
readonly
|
|
317
|
-
/**
|
|
318
|
-
readonly
|
|
319
|
-
/**
|
|
320
|
-
readonly
|
|
321
|
-
/**
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
private
|
|
334
|
-
|
|
335
|
-
private
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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 {
|
|
436
|
-
export type { BsDatatableFetch, BsDatatableFetchRequest, BsDatatableFilterPanelContext, BsDatatableRowEvent, BsDatatableTreeRowEvent };
|
|
236
|
+
export { BsDatatableCellDirective, BsDatatableComponent, BsDatatableFilterDirective, BsDatatableHeaderDirective, BsDatatableRowDirective };
|