@4sh/ui-kit 0.15.0 → 0.17.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/README.fr.md +18 -10
- package/README.md +18 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -953
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2039
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -130
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -246
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -291
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -194
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -131
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +723 -596
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +313 -2
- package/mcp/data/text-search-docs.json +177 -17
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/styles/utils/_mixins.scss +11 -0
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +291 -186
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,92 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import { UiPaginatorPageEvent } from "@4sh/ui-kit/table/ui-paginator";
|
|
5
7
|
/** Cell padding density. */
|
|
6
|
-
type TableSize = 'default' | 'small' | 'large';
|
|
8
|
+
export type TableSize = 'default' | 'small' | 'large';
|
|
7
9
|
/** Row selection behavior (null = no selection). */
|
|
8
|
-
type TableSelectionMode = 'single' | 'multiple' | null;
|
|
10
|
+
export type TableSelectionMode = 'single' | 'multiple' | null;
|
|
9
11
|
/** Sorting behavior: one column at a time, or several (Ctrl/Cmd + click). */
|
|
10
|
-
type TableSortMode = 'single' | 'multiple';
|
|
12
|
+
export type TableSortMode = 'single' | 'multiple';
|
|
11
13
|
/** Edge a frozen column sticks to. */
|
|
12
|
-
type TableFrozenAlign = 'left' | 'right';
|
|
14
|
+
export type TableFrozenAlign = 'left' | 'right';
|
|
13
15
|
/** One (field, direction) pair of a multiple sort. */
|
|
14
|
-
interface UiTableSortMeta {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
export interface UiTableSortMeta {
|
|
17
|
+
field: string;
|
|
18
|
+
/** 1 = ascending, -1 = descending. */
|
|
19
|
+
order: number;
|
|
18
20
|
}
|
|
19
21
|
/** Payload of `sortFunction` (emitted when `customSort` is enabled). */
|
|
20
|
-
interface UiTableSortEvent<T = unknown> {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
export interface UiTableSortEvent<T = unknown> {
|
|
23
|
+
/** The data array to sort in place. */
|
|
24
|
+
data: T[];
|
|
25
|
+
mode: TableSortMode;
|
|
26
|
+
field?: string;
|
|
27
|
+
order?: number;
|
|
28
|
+
multiSortMeta?: UiTableSortMeta[];
|
|
27
29
|
}
|
|
28
30
|
/** Payload of `sortChange` — the sort state after a header interaction (no data: lazy consumers refetch). */
|
|
29
|
-
interface UiTableSortChangeEvent {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
export interface UiTableSortChangeEvent {
|
|
32
|
+
mode: TableSortMode;
|
|
33
|
+
/** Single mode: sorted field (`undefined` when the sort was removed). */
|
|
34
|
+
field?: string;
|
|
35
|
+
/** Single mode: `1` asc, `-1` desc, `0` when unsorted. */
|
|
36
|
+
order?: number;
|
|
37
|
+
/** Multiple mode: composed sort metas. */
|
|
38
|
+
multiSortMeta?: UiTableSortMeta[];
|
|
37
39
|
}
|
|
38
40
|
/** Payload of `rowSelect` / `rowUnselect`. */
|
|
39
|
-
interface UiTableRowSelectEvent<T = unknown> {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
export interface UiTableRowSelectEvent<T = unknown> {
|
|
42
|
+
originalEvent?: Event;
|
|
43
|
+
data: T;
|
|
44
|
+
index?: number;
|
|
45
|
+
/** Interaction that triggered the (un)selection. */
|
|
46
|
+
type: 'row' | 'checkbox' | 'radio';
|
|
45
47
|
}
|
|
46
48
|
/** Payload of `headerCheckboxToggle`. */
|
|
47
|
-
interface UiTableHeaderCheckboxToggleEvent {
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
export interface UiTableHeaderCheckboxToggleEvent {
|
|
50
|
+
originalEvent?: Event;
|
|
51
|
+
checked: boolean;
|
|
50
52
|
}
|
|
51
53
|
/** Payload of `pageChange` (same shape as the standalone `ui-paginator`). */
|
|
52
|
-
type UiTablePageEvent = UiPaginatorPageEvent;
|
|
54
|
+
export type UiTablePageEvent = UiPaginatorPageEvent;
|
|
53
55
|
/** Payload of `rowReorder` (drag & drop). */
|
|
54
|
-
interface UiTableRowReorderEvent<T = unknown> {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
export interface UiTableRowReorderEvent<T = unknown> {
|
|
57
|
+
dragIndex: number;
|
|
58
|
+
dropIndex: number;
|
|
59
|
+
/** Reordered copy of `value` — rebind it to the table. */
|
|
60
|
+
value: T[];
|
|
59
61
|
}
|
|
60
62
|
/** Payload of `lazyLoad` (virtual scroll in lazy mode). */
|
|
61
|
-
interface UiTableLazyLoadEvent {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
export interface UiTableLazyLoadEvent {
|
|
64
|
+
/** Index of the first row of the rendered window. */
|
|
65
|
+
first: number;
|
|
66
|
+
/** Index right after the last rendered row. */
|
|
67
|
+
last: number;
|
|
66
68
|
}
|
|
67
69
|
/** Payload of `rowExpand` / `rowCollapse`. */
|
|
68
|
-
interface UiTableRowExpandEvent<T = unknown> {
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
export interface UiTableRowExpandEvent<T = unknown> {
|
|
71
|
+
originalEvent?: Event;
|
|
72
|
+
data: T;
|
|
71
73
|
}
|
|
72
74
|
/** Payload of `colResize`. */
|
|
73
|
-
interface UiTableColResizeEvent {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
export interface UiTableColResizeEvent {
|
|
76
|
+
/** The resized header cell. */
|
|
77
|
+
element: HTMLElement;
|
|
78
|
+
/** Applied horizontal delta in px. */
|
|
79
|
+
delta: number;
|
|
78
80
|
}
|
|
79
81
|
/** Context handed to the `#body` (and frozen body) row template. */
|
|
80
|
-
interface UiTableBodyContext<T = unknown> {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
export interface UiTableBodyContext<T = unknown> {
|
|
83
|
+
$implicit: T;
|
|
84
|
+
/** Absolute row index in the (sorted) dataset. */
|
|
85
|
+
rowIndex: number;
|
|
86
|
+
/** Even position within the rendered page (for manual striping needs). */
|
|
87
|
+
even: boolean;
|
|
88
|
+
selected: boolean;
|
|
89
|
+
expanded: boolean;
|
|
90
|
+
/** True when the row comes from `frozenValue`. */
|
|
91
|
+
frozen: boolean;
|
|
90
92
|
}
|
|
91
93
|
/**
|
|
92
94
|
* ui-table — headless data table.
|
|
@@ -105,242 +107,428 @@ interface UiTableBodyContext<T = unknown> {
|
|
|
105
107
|
* `.ui-table`) because the row markup is projected from the consumer and
|
|
106
108
|
* would not match emulated-encapsulation selectors.
|
|
107
109
|
*/
|
|
108
|
-
declare class UiTable<T = unknown> {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
110
|
+
export declare class UiTable<T = unknown> {
|
|
111
|
+
/** Rows to display. */
|
|
112
|
+
value: import("@angular/core").InputSignal<T[]>;
|
|
113
|
+
/** Property (dotted path allowed) uniquely identifying a row — required for expansion, recommended for selection. */
|
|
114
|
+
dataKey: import("@angular/core").InputSignal<string | undefined>;
|
|
115
|
+
/** Cell padding density. */
|
|
116
|
+
size: import("@angular/core").InputSignal<TableSize>;
|
|
117
|
+
/** Displays borders between cells. */
|
|
118
|
+
showGridlines: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
119
|
+
/** Alternates the background of even rows. */
|
|
120
|
+
stripedRows: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
121
|
+
/** Highlights the hovered row (implicit when a selection mode is active). */
|
|
122
|
+
rowHover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
/** Inline styles applied to the inner `<table>` (e.g. `{'min-width': '60rem'}` for horizontal scroll). */
|
|
124
|
+
tableStyle: import("@angular/core").InputSignal<Record<string, string> | undefined>;
|
|
125
|
+
/** Row selection behavior. `single` keeps one row, `multiple` an array. */
|
|
126
|
+
selectionMode: import("@angular/core").InputSignal<TableSelectionMode>;
|
|
127
|
+
/** Selected row (single) or rows (multiple). Two-way bindable. */
|
|
128
|
+
selection: import("@angular/core").ModelSignal<T | T[] | null>;
|
|
129
|
+
/** Desktop-like selection: plain click replaces, Ctrl/Cmd+click toggles, Shift+click ranges. */
|
|
130
|
+
metaKeySelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
131
|
+
/** One column at a time, or several with Ctrl/Cmd + click. */
|
|
132
|
+
sortMode: import("@angular/core").InputSignal<TableSortMode>;
|
|
133
|
+
/** Initial sorted field (presort). */
|
|
134
|
+
sortField: import("@angular/core").InputSignal<string | undefined>;
|
|
135
|
+
/** Initial sort direction (1 asc, -1 desc). */
|
|
136
|
+
sortOrder: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
137
|
+
/** Initial multiple-sort state (presort, `sortMode="multiple"`). */
|
|
138
|
+
multiSortMeta: import("@angular/core").InputSignal<UiTableSortMeta[] | undefined>;
|
|
139
|
+
/** Direction applied when a column becomes sorted. */
|
|
140
|
+
defaultSortOrder: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
141
|
+
/** Delegates sorting: the table stops sorting itself and emits `sortFunction`. */
|
|
142
|
+
customSort: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
143
|
+
/** Splits rows into pages and renders the paginator bar. */
|
|
144
|
+
paginator: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
145
|
+
/** Rows per page. */
|
|
146
|
+
rows: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
147
|
+
/** Index of the first displayed row. Two-way bindable (programmatic pagination). */
|
|
148
|
+
first: import("@angular/core").ModelSignal<number>;
|
|
149
|
+
/** Choices offered in the rows-per-page select (omit to hide it). */
|
|
150
|
+
rowsPerPageOptions: import("@angular/core").InputSignal<number[] | undefined>;
|
|
151
|
+
/** Maximum number of page-number buttons. */
|
|
152
|
+
pageLinks: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
153
|
+
/** Total row count on the server (lazy mode) — drives the paginator; ignored otherwise. */
|
|
154
|
+
totalRecords: import("@angular/core").InputSignal<number | undefined>;
|
|
155
|
+
/** Enables the scroll shell (sticky header inside the scrollable viewport). */
|
|
156
|
+
scrollable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
157
|
+
/** Viewport height: a CSS size (e.g. `'400px'`) or `'flex'` to fill the flex parent. */
|
|
158
|
+
scrollHeight: import("@angular/core").InputSignal<string | undefined>;
|
|
159
|
+
/** Rows pinned above the body while scrolling. */
|
|
160
|
+
frozenValue: import("@angular/core").InputSignal<T[] | undefined>;
|
|
161
|
+
/** Expanded rows, keyed by `dataKey` value. Two-way bindable. */
|
|
162
|
+
expandedRowKeys: import("@angular/core").ModelSignal<Record<string, boolean>>;
|
|
163
|
+
/** Enables column resizing (fit mode: the next column absorbs the delta). */
|
|
164
|
+
resizableColumns: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
165
|
+
/** Displays a mask + spinner over the table while data is being fetched. */
|
|
166
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
167
|
+
/** Accessible name of the loading indicator. */
|
|
168
|
+
loadingAriaLabel: import("@angular/core").InputSignal<string>;
|
|
169
|
+
/** Title of the default empty state (rendered with `ui-empty-state`; `#emptymessage` overrides it). */
|
|
170
|
+
emptyMessage: import("@angular/core").InputSignal<string>;
|
|
171
|
+
/** Icon of the default empty state. */
|
|
172
|
+
emptyIcon: import("@angular/core").InputSignal<string>;
|
|
173
|
+
/** Windows the rendered rows to the visible viewport (requires `scrollable` + a fixed `scrollHeight`). */
|
|
174
|
+
virtualScroll: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
175
|
+
/** Fixed row height in px (also apply it to the `<tr>` of the body template). */
|
|
176
|
+
virtualScrollItemSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
177
|
+
/**
|
|
178
|
+
* Lazy/server mode: the consumer owns sorting and pagination — `value` is the
|
|
179
|
+
* currently loaded page (with `paginator` + `totalRecords`, listen to
|
|
180
|
+
* `pageChange`/`sortChange` to refetch) or the loaded window (with
|
|
181
|
+
* `virtualScroll`, `lazyLoad` emits the rendered range). No client-side
|
|
182
|
+
* sorting or page slicing is applied.
|
|
183
|
+
*/
|
|
184
|
+
lazy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
185
|
+
/** Emitted when a row becomes selected. */
|
|
186
|
+
rowSelect: import("@angular/core").OutputEmitterRef<UiTableRowSelectEvent<T>>;
|
|
187
|
+
/** Emitted when a row becomes unselected. */
|
|
188
|
+
rowUnselect: import("@angular/core").OutputEmitterRef<UiTableRowSelectEvent<T>>;
|
|
189
|
+
/** Emitted when the header select-all checkbox is toggled. */
|
|
190
|
+
headerCheckboxToggle: import("@angular/core").OutputEmitterRef<UiTableHeaderCheckboxToggleEvent>;
|
|
191
|
+
/** Emitted instead of sorting internally when `customSort` is enabled. */
|
|
192
|
+
sortFunction: import("@angular/core").OutputEmitterRef<UiTableSortEvent<T>>;
|
|
193
|
+
/** Emitted whenever the sort state changes from a header interaction (lazy mode: refetch with it). */
|
|
194
|
+
sortChange: import("@angular/core").OutputEmitterRef<UiTableSortChangeEvent>;
|
|
195
|
+
/** Emitted on any pagination change (navigation or rows-per-page). */
|
|
196
|
+
pageChange: import("@angular/core").OutputEmitterRef<UiPaginatorPageEvent>;
|
|
197
|
+
/** Emitted when a row expands. */
|
|
198
|
+
rowExpand: import("@angular/core").OutputEmitterRef<UiTableRowExpandEvent<T>>;
|
|
199
|
+
/** Emitted when a row collapses. */
|
|
200
|
+
rowCollapse: import("@angular/core").OutputEmitterRef<UiTableRowExpandEvent<T>>;
|
|
201
|
+
/** Emitted after a column resize. */
|
|
202
|
+
colResize: import("@angular/core").OutputEmitterRef<UiTableColResizeEvent>;
|
|
203
|
+
/** Emitted after a row drag & drop, with the reordered copy of `value`. */
|
|
204
|
+
rowReorder: import("@angular/core").OutputEmitterRef<UiTableRowReorderEvent<T>>;
|
|
205
|
+
/** Emitted when the virtual-scroll window changes (lazy mode). */
|
|
206
|
+
lazyLoad: import("@angular/core").OutputEmitterRef<UiTableLazyLoadEvent>;
|
|
207
|
+
/** @ignore Free content rendered above the table. */
|
|
208
|
+
protected readonly captionTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
209
|
+
/** @ignore `<tr>` of header cells. */
|
|
210
|
+
protected readonly headerTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
211
|
+
/** @ignore Row template (context: row, rowIndex, even, selected, expanded, frozen). */
|
|
212
|
+
protected readonly bodyTemplate: import("@angular/core").Signal<TemplateRef<UiTableBodyContext<T>> | undefined>;
|
|
213
|
+
/** @ignore `<tr>` of footer cells. */
|
|
214
|
+
protected readonly footerTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
215
|
+
/** @ignore Extra `<tr>` rendered under an expanded row. */
|
|
216
|
+
protected readonly expandedRowTemplate: import("@angular/core").Signal<TemplateRef<UiTableBodyContext<T>> | undefined>;
|
|
217
|
+
/** @ignore Content of the "no rows" cell. */
|
|
218
|
+
protected readonly emptyMessageTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
219
|
+
/** @ignore */
|
|
220
|
+
private readonly tableEl;
|
|
221
|
+
/** @ignore */
|
|
222
|
+
private readonly theadEl;
|
|
223
|
+
/** @ignore */
|
|
224
|
+
private readonly wrapperEl;
|
|
225
|
+
/** @ignore Scroll position of the wrapper (drives the virtual window). */
|
|
226
|
+
private readonly wrapperScrollTop;
|
|
227
|
+
/** @ignore Measured height of the scroll viewport. */
|
|
228
|
+
private readonly wrapperHeight;
|
|
229
|
+
/** @ignore Row index currently dragged (row reorder). */
|
|
230
|
+
draggedRowIndex: number | null;
|
|
231
|
+
/** @ignore Selectable-row directives currently rendered, by host element (keyboard range selection). */
|
|
232
|
+
readonly selectableRowRefs: Map<Element, {
|
|
233
|
+
data: T;
|
|
234
|
+
index: number;
|
|
235
|
+
}>;
|
|
236
|
+
/** @ignore Shift-selection anchor (absolute row index). */
|
|
237
|
+
private anchorRowIndex;
|
|
238
|
+
/** @ignore */
|
|
239
|
+
private readonly uid;
|
|
240
|
+
/** @ignore */
|
|
241
|
+
private readonly destroyRef;
|
|
242
|
+
/** @ignore Active single sort; reset when the `sortField`/`sortOrder` inputs change. */
|
|
243
|
+
readonly sortState: import("@angular/core").WritableSignal<{
|
|
244
|
+
field: string;
|
|
245
|
+
order: number;
|
|
246
|
+
} | null>;
|
|
247
|
+
/** @ignore Active multiple sort. */
|
|
248
|
+
readonly multiSortState: import("@angular/core").WritableSignal<UiTableSortMeta[]>;
|
|
249
|
+
/** @ignore Effective rows-per-page (user can change it via the paginator select). */
|
|
250
|
+
protected readonly rowsState: import("@angular/core").WritableSignal<number>;
|
|
251
|
+
/** @ignore Number of header cells (drives the colspan of the empty row). */
|
|
252
|
+
protected readonly columnCount: import("@angular/core").WritableSignal<number>;
|
|
253
|
+
/** @ignore Measured header height (sticky offset of frozen rows). */
|
|
254
|
+
protected readonly frozenRowsTop: import("@angular/core").WritableSignal<number>;
|
|
255
|
+
constructor();
|
|
256
|
+
/** @ignore Measures the header height + stacks the frozen-row sticky offsets. */
|
|
257
|
+
private measureStickyMetrics;
|
|
258
|
+
/** @ignore Sorted dataset (identity when `customSort` delegates sorting). */
|
|
259
|
+
readonly processedData: import("@angular/core").Signal<T[]>;
|
|
260
|
+
/** @ignore Paginator total: server-provided in lazy mode, client count otherwise. */
|
|
261
|
+
protected readonly effectiveTotalRecords: import("@angular/core").Signal<number>;
|
|
262
|
+
/** @ignore */
|
|
263
|
+
protected readonly pageCount: import("@angular/core").Signal<number>;
|
|
264
|
+
/** @ignore `first` clamped to the dataset (data may shrink under the cursor). */
|
|
265
|
+
protected readonly clampedFirst: import("@angular/core").Signal<number>;
|
|
266
|
+
/** @ignore Rendered window of the virtual scroll (with a small buffer). */
|
|
267
|
+
protected readonly virtualRange: import("@angular/core").Signal<{
|
|
268
|
+
start: number;
|
|
269
|
+
end: number;
|
|
270
|
+
}>;
|
|
271
|
+
/** @ignore Heights of the spacer rows keeping the scrollbar honest (virtual scroll). */
|
|
272
|
+
protected readonly virtualPadding: import("@angular/core").Signal<{
|
|
273
|
+
top: number;
|
|
274
|
+
bottom: number;
|
|
275
|
+
}>;
|
|
276
|
+
/** @ignore Absolute index of the first rendered row. */
|
|
277
|
+
protected readonly pageOffset: import("@angular/core").Signal<number>;
|
|
278
|
+
/** @ignore Rows actually rendered (page, virtual window, or whole dataset). */
|
|
279
|
+
protected readonly pageData: import("@angular/core").Signal<T[]>;
|
|
280
|
+
/** @ignore */
|
|
281
|
+
protected readonly isFlexScroll: import("@angular/core").Signal<boolean>;
|
|
282
|
+
/** @ignore Viewport max-height (fixed scrollHeight mode only). */
|
|
283
|
+
protected readonly scrollMaxHeight: import("@angular/core").Signal<string | null>;
|
|
284
|
+
/** @ignore */
|
|
285
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
286
|
+
/** @ignore Template context of a body row. */
|
|
287
|
+
protected rowContext(row: T, pageIndex: number, frozen?: boolean): UiTableBodyContext<T>;
|
|
288
|
+
/** Current direction of a column: 1, -1, or 0 when unsorted. */
|
|
289
|
+
getSortOrder(field: string): number;
|
|
290
|
+
/** @ignore Cycles the sort of a column (called by `uiSortableColumn`). */
|
|
291
|
+
toggleColumnSort(field: string, originalEvent: Event): void;
|
|
292
|
+
/** @ignore Row equality: by `dataKey` when provided, by reference otherwise. */
|
|
293
|
+
private rowEquals;
|
|
294
|
+
/** @ignore Selection normalized as an array. */
|
|
295
|
+
readonly selectionArray: import("@angular/core").Signal<T[]>;
|
|
296
|
+
/** True when the row is part of the current selection. */
|
|
297
|
+
isSelected(row: T): boolean;
|
|
298
|
+
/** @ignore Every processed row is selected (header checkbox state). */
|
|
299
|
+
readonly allSelected: import("@angular/core").Signal<boolean>;
|
|
300
|
+
/** @ignore Partial selection (header checkbox indeterminate state). */
|
|
301
|
+
readonly partiallySelected: import("@angular/core").Signal<boolean>;
|
|
302
|
+
/** @ignore Row click / Enter / Space (called by `uiSelectableRow`). */
|
|
303
|
+
handleRowClick(originalEvent: Event, data: T, index: number): void;
|
|
304
|
+
/** @ignore Maps an absolute row index onto `processedData` (page-local in lazy pagination). */
|
|
305
|
+
private dataIndex;
|
|
306
|
+
/** @ignore Shift+click / Shift+Arrow range selection (replaces the selection). */
|
|
307
|
+
selectRange(originalEvent: Event, index: number): void;
|
|
308
|
+
/** @ignore Checkbox-column toggle (called by `ui-table-checkbox`). */
|
|
309
|
+
toggleRowWithCheckbox(originalEvent: Event | undefined, data: T, index?: number): void;
|
|
310
|
+
/** @ignore Header checkbox toggle: selects / clears every processed row. */
|
|
311
|
+
toggleAllRows(originalEvent: Event | undefined, checked: boolean): void;
|
|
312
|
+
/** @ignore Radio-column selection (called by `ui-table-radio`). */
|
|
313
|
+
selectRowWithRadio(originalEvent: Event | undefined, data: T, index?: number): void;
|
|
314
|
+
/** @ignore */
|
|
315
|
+
private unselectRow;
|
|
316
|
+
/** @ignore Key of a row for the expansion map. */
|
|
317
|
+
rowKey(data: T): string | undefined;
|
|
318
|
+
/** True when the row is expanded. */
|
|
319
|
+
isRowExpanded(data: T): boolean;
|
|
320
|
+
/** Toggles the expansion of a row (used by `uiRowToggler`). */
|
|
321
|
+
toggleRow(data: T, originalEvent?: Event): void;
|
|
322
|
+
/** @ignore Rows-per-page picked in the paginator select. */
|
|
323
|
+
protected onPaginatorRows(rows: number): void;
|
|
324
|
+
/** @ignore Drop of a dragged row: emits the reordered copy of `value`. */
|
|
325
|
+
dropRow(dropIndex: number): void;
|
|
326
|
+
/** @ignore */
|
|
327
|
+
protected onWrapperScroll(): void;
|
|
328
|
+
/** @ignore Row receiving the tab stop (first selected row on the page, else the first row). */
|
|
329
|
+
private readonly tabbableRow;
|
|
330
|
+
/** @ignore Roving tabindex: only one row is tabbable (WAI-ARIA grid-like navigation). */
|
|
331
|
+
isRowTabbable(data: T): boolean;
|
|
332
|
+
/** @ignore Selects every processed row (Ctrl+A). */
|
|
333
|
+
selectAllRows(originalEvent: Event): void;
|
|
334
|
+
/** @ignore Selects from a row to the first / last processed row (Ctrl+Shift+Home / End). */
|
|
335
|
+
selectRangeToEdge(index: number, edge: 'start' | 'end'): void;
|
|
336
|
+
/** @ignore Freezes every column width in px so the drag only moves the shared edge. */
|
|
337
|
+
lockColumnWidths(): void;
|
|
338
|
+
/** @ignore Fit-mode resize: the delta moves the edge between `cell` and its next sibling. */
|
|
339
|
+
resizeColumnFit(cell: HTMLElement, startWidth: number, nextStartWidth: number, delta: number): boolean;
|
|
340
|
+
/** @ignore Forwarded from the resize directive once the drag ends. */
|
|
341
|
+
notifyColResize(element: HTMLElement, delta: number): void;
|
|
342
|
+
/** @ignore Stable id base for internal controls. */
|
|
343
|
+
protected readonly idBase: string;
|
|
344
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTable<any>, never>;
|
|
345
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTable<any>, "ui-table", never, {
|
|
346
|
+
"value": {
|
|
347
|
+
"alias": "value";
|
|
348
|
+
"required": false;
|
|
349
|
+
"isSignal": true;
|
|
350
|
+
};
|
|
351
|
+
"dataKey": {
|
|
352
|
+
"alias": "dataKey";
|
|
353
|
+
"required": false;
|
|
354
|
+
"isSignal": true;
|
|
355
|
+
};
|
|
356
|
+
"size": {
|
|
357
|
+
"alias": "size";
|
|
358
|
+
"required": false;
|
|
359
|
+
"isSignal": true;
|
|
360
|
+
};
|
|
361
|
+
"showGridlines": {
|
|
362
|
+
"alias": "showGridlines";
|
|
363
|
+
"required": false;
|
|
364
|
+
"isSignal": true;
|
|
365
|
+
};
|
|
366
|
+
"stripedRows": {
|
|
367
|
+
"alias": "stripedRows";
|
|
368
|
+
"required": false;
|
|
369
|
+
"isSignal": true;
|
|
370
|
+
};
|
|
371
|
+
"rowHover": {
|
|
372
|
+
"alias": "rowHover";
|
|
373
|
+
"required": false;
|
|
374
|
+
"isSignal": true;
|
|
375
|
+
};
|
|
376
|
+
"tableStyle": {
|
|
377
|
+
"alias": "tableStyle";
|
|
378
|
+
"required": false;
|
|
379
|
+
"isSignal": true;
|
|
380
|
+
};
|
|
381
|
+
"selectionMode": {
|
|
382
|
+
"alias": "selectionMode";
|
|
383
|
+
"required": false;
|
|
384
|
+
"isSignal": true;
|
|
385
|
+
};
|
|
386
|
+
"selection": {
|
|
387
|
+
"alias": "selection";
|
|
388
|
+
"required": false;
|
|
389
|
+
"isSignal": true;
|
|
390
|
+
};
|
|
391
|
+
"metaKeySelection": {
|
|
392
|
+
"alias": "metaKeySelection";
|
|
393
|
+
"required": false;
|
|
394
|
+
"isSignal": true;
|
|
395
|
+
};
|
|
396
|
+
"sortMode": {
|
|
397
|
+
"alias": "sortMode";
|
|
398
|
+
"required": false;
|
|
399
|
+
"isSignal": true;
|
|
400
|
+
};
|
|
401
|
+
"sortField": {
|
|
402
|
+
"alias": "sortField";
|
|
403
|
+
"required": false;
|
|
404
|
+
"isSignal": true;
|
|
405
|
+
};
|
|
406
|
+
"sortOrder": {
|
|
407
|
+
"alias": "sortOrder";
|
|
408
|
+
"required": false;
|
|
409
|
+
"isSignal": true;
|
|
410
|
+
};
|
|
411
|
+
"multiSortMeta": {
|
|
412
|
+
"alias": "multiSortMeta";
|
|
413
|
+
"required": false;
|
|
414
|
+
"isSignal": true;
|
|
415
|
+
};
|
|
416
|
+
"defaultSortOrder": {
|
|
417
|
+
"alias": "defaultSortOrder";
|
|
418
|
+
"required": false;
|
|
419
|
+
"isSignal": true;
|
|
420
|
+
};
|
|
421
|
+
"customSort": {
|
|
422
|
+
"alias": "customSort";
|
|
423
|
+
"required": false;
|
|
424
|
+
"isSignal": true;
|
|
425
|
+
};
|
|
426
|
+
"paginator": {
|
|
427
|
+
"alias": "paginator";
|
|
428
|
+
"required": false;
|
|
429
|
+
"isSignal": true;
|
|
430
|
+
};
|
|
431
|
+
"rows": {
|
|
432
|
+
"alias": "rows";
|
|
433
|
+
"required": false;
|
|
434
|
+
"isSignal": true;
|
|
435
|
+
};
|
|
436
|
+
"first": {
|
|
437
|
+
"alias": "first";
|
|
438
|
+
"required": false;
|
|
439
|
+
"isSignal": true;
|
|
440
|
+
};
|
|
441
|
+
"rowsPerPageOptions": {
|
|
442
|
+
"alias": "rowsPerPageOptions";
|
|
443
|
+
"required": false;
|
|
444
|
+
"isSignal": true;
|
|
445
|
+
};
|
|
446
|
+
"pageLinks": {
|
|
447
|
+
"alias": "pageLinks";
|
|
448
|
+
"required": false;
|
|
449
|
+
"isSignal": true;
|
|
450
|
+
};
|
|
451
|
+
"totalRecords": {
|
|
452
|
+
"alias": "totalRecords";
|
|
453
|
+
"required": false;
|
|
454
|
+
"isSignal": true;
|
|
455
|
+
};
|
|
456
|
+
"scrollable": {
|
|
457
|
+
"alias": "scrollable";
|
|
458
|
+
"required": false;
|
|
459
|
+
"isSignal": true;
|
|
460
|
+
};
|
|
461
|
+
"scrollHeight": {
|
|
462
|
+
"alias": "scrollHeight";
|
|
463
|
+
"required": false;
|
|
464
|
+
"isSignal": true;
|
|
465
|
+
};
|
|
466
|
+
"frozenValue": {
|
|
467
|
+
"alias": "frozenValue";
|
|
468
|
+
"required": false;
|
|
469
|
+
"isSignal": true;
|
|
470
|
+
};
|
|
471
|
+
"expandedRowKeys": {
|
|
472
|
+
"alias": "expandedRowKeys";
|
|
473
|
+
"required": false;
|
|
474
|
+
"isSignal": true;
|
|
475
|
+
};
|
|
476
|
+
"resizableColumns": {
|
|
477
|
+
"alias": "resizableColumns";
|
|
478
|
+
"required": false;
|
|
479
|
+
"isSignal": true;
|
|
480
|
+
};
|
|
481
|
+
"loading": {
|
|
482
|
+
"alias": "loading";
|
|
483
|
+
"required": false;
|
|
484
|
+
"isSignal": true;
|
|
485
|
+
};
|
|
486
|
+
"loadingAriaLabel": {
|
|
487
|
+
"alias": "loadingAriaLabel";
|
|
488
|
+
"required": false;
|
|
489
|
+
"isSignal": true;
|
|
490
|
+
};
|
|
491
|
+
"emptyMessage": {
|
|
492
|
+
"alias": "emptyMessage";
|
|
493
|
+
"required": false;
|
|
494
|
+
"isSignal": true;
|
|
495
|
+
};
|
|
496
|
+
"emptyIcon": {
|
|
497
|
+
"alias": "emptyIcon";
|
|
498
|
+
"required": false;
|
|
499
|
+
"isSignal": true;
|
|
500
|
+
};
|
|
501
|
+
"virtualScroll": {
|
|
502
|
+
"alias": "virtualScroll";
|
|
503
|
+
"required": false;
|
|
504
|
+
"isSignal": true;
|
|
505
|
+
};
|
|
506
|
+
"virtualScrollItemSize": {
|
|
507
|
+
"alias": "virtualScrollItemSize";
|
|
508
|
+
"required": false;
|
|
509
|
+
"isSignal": true;
|
|
510
|
+
};
|
|
511
|
+
"lazy": {
|
|
512
|
+
"alias": "lazy";
|
|
513
|
+
"required": false;
|
|
514
|
+
"isSignal": true;
|
|
515
|
+
};
|
|
516
|
+
}, {
|
|
517
|
+
"selection": "selectionChange";
|
|
518
|
+
"first": "firstChange";
|
|
519
|
+
"expandedRowKeys": "expandedRowKeysChange";
|
|
520
|
+
"rowSelect": "rowSelect";
|
|
521
|
+
"rowUnselect": "rowUnselect";
|
|
522
|
+
"headerCheckboxToggle": "headerCheckboxToggle";
|
|
523
|
+
"sortFunction": "sortFunction";
|
|
524
|
+
"sortChange": "sortChange";
|
|
525
|
+
"pageChange": "pageChange";
|
|
526
|
+
"rowExpand": "rowExpand";
|
|
527
|
+
"rowCollapse": "rowCollapse";
|
|
528
|
+
"colResize": "colResize";
|
|
529
|
+
"rowReorder": "rowReorder";
|
|
530
|
+
"lazyLoad": "lazyLoad";
|
|
531
|
+
}, ["captionTemplate", "headerTemplate", "bodyTemplate", "footerTemplate", "expandedRowTemplate", "emptyMessageTemplate"], never, true, never>;
|
|
344
532
|
}
|
|
345
533
|
/**
|
|
346
534
|
* uiSortableColumn — makes a `<th>` sortable.
|
|
@@ -348,35 +536,52 @@ declare class UiTable<T = unknown> {
|
|
|
348
536
|
* Click / Enter / Space cycles ascending → descending → unsorted (single
|
|
349
537
|
* mode) or composes with Ctrl/Cmd in multiple mode. Exposes `aria-sort`.
|
|
350
538
|
*/
|
|
351
|
-
declare class UiTableSortableColumn {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
539
|
+
export declare class UiTableSortableColumn {
|
|
540
|
+
/** @ignore */
|
|
541
|
+
private readonly table;
|
|
542
|
+
/** Field (dotted path allowed) this column sorts on. */
|
|
543
|
+
field: import("@angular/core").InputSignal<string>;
|
|
544
|
+
/** Disables the sort interaction. */
|
|
545
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
546
|
+
/** @ignore */
|
|
547
|
+
protected readonly sorted: import("@angular/core").Signal<boolean>;
|
|
548
|
+
/** @ignore */
|
|
549
|
+
protected readonly ariaSort: import("@angular/core").Signal<"none" | "ascending" | "descending">;
|
|
550
|
+
/** @ignore */
|
|
551
|
+
protected onTrigger(event: Event): void;
|
|
552
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableSortableColumn, never>;
|
|
553
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTableSortableColumn, "[uiSortableColumn]", never, {
|
|
554
|
+
"field": {
|
|
555
|
+
"alias": "uiSortableColumn";
|
|
556
|
+
"required": true;
|
|
557
|
+
"isSignal": true;
|
|
558
|
+
};
|
|
559
|
+
"disabled": {
|
|
560
|
+
"alias": "uiSortableColumnDisabled";
|
|
561
|
+
"required": false;
|
|
562
|
+
"isSignal": true;
|
|
563
|
+
};
|
|
564
|
+
}, {}, never, never, true, never>;
|
|
366
565
|
}
|
|
367
566
|
/**
|
|
368
567
|
* ui-table-sort-icon — direction indicator of a sortable column.
|
|
369
568
|
* Decorative: the accessible state lives on the `<th>` (`aria-sort`).
|
|
370
569
|
*/
|
|
371
|
-
declare class UiTableSortIcon {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
570
|
+
export declare class UiTableSortIcon {
|
|
571
|
+
/** @ignore */
|
|
572
|
+
private readonly table;
|
|
573
|
+
/** Field of the column this icon reflects. */
|
|
574
|
+
field: import("@angular/core").InputSignal<string>;
|
|
575
|
+
/** @ignore */
|
|
576
|
+
protected readonly iconName: import("@angular/core").Signal<"sort" | "sort-up" | "sort-down">;
|
|
577
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableSortIcon, never>;
|
|
578
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTableSortIcon, "ui-table-sort-icon", never, {
|
|
579
|
+
"field": {
|
|
580
|
+
"alias": "field";
|
|
581
|
+
"required": true;
|
|
582
|
+
"isSignal": true;
|
|
583
|
+
};
|
|
584
|
+
}, {}, never, never, true, never>;
|
|
380
585
|
}
|
|
381
586
|
/**
|
|
382
587
|
* uiSelectableRow — makes a `<tr>` selectable.
|
|
@@ -385,156 +590,247 @@ declare class UiTableSortIcon {
|
|
|
385
590
|
* `metaKeySelection`); Arrow Up/Down moves the focus between rows, Space /
|
|
386
591
|
* Enter toggles, Shift+Arrow extends the range.
|
|
387
592
|
*/
|
|
388
|
-
declare class UiTableSelectableRow<T = unknown> {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
593
|
+
export declare class UiTableSelectableRow<T = unknown> {
|
|
594
|
+
/** @ignore */
|
|
595
|
+
private readonly table;
|
|
596
|
+
/** @ignore */
|
|
597
|
+
private readonly el;
|
|
598
|
+
/** Row data carried by this `<tr>`. */
|
|
599
|
+
data: import("@angular/core").InputSignal<T>;
|
|
600
|
+
/** Absolute row index (from the body template context). */
|
|
601
|
+
index: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
602
|
+
/** Disables the selection interaction. */
|
|
603
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
604
|
+
/** @ignore */
|
|
605
|
+
protected readonly selected: import("@angular/core").Signal<boolean>;
|
|
606
|
+
/** @ignore Roving tabindex: a single row carries the tab stop. */
|
|
607
|
+
protected readonly tabindex: import("@angular/core").Signal<0 | -1 | null>;
|
|
608
|
+
constructor();
|
|
609
|
+
/** @ignore */
|
|
610
|
+
protected onClick(event: MouseEvent): void;
|
|
611
|
+
/** @ignore */
|
|
612
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
613
|
+
/** @ignore Nearest selectable `<tr>` sibling (skips expansion rows). */
|
|
614
|
+
private findSiblingRow;
|
|
615
|
+
/** @ignore First / last selectable row of the table. */
|
|
616
|
+
private findEdgeRow;
|
|
617
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableSelectableRow<any>, never>;
|
|
618
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTableSelectableRow<any>, "[uiSelectableRow]", never, {
|
|
619
|
+
"data": {
|
|
620
|
+
"alias": "uiSelectableRow";
|
|
621
|
+
"required": true;
|
|
622
|
+
"isSignal": true;
|
|
623
|
+
};
|
|
624
|
+
"index": {
|
|
625
|
+
"alias": "uiSelectableRowIndex";
|
|
626
|
+
"required": false;
|
|
627
|
+
"isSignal": true;
|
|
628
|
+
};
|
|
629
|
+
"disabled": {
|
|
630
|
+
"alias": "uiSelectableRowDisabled";
|
|
631
|
+
"required": false;
|
|
632
|
+
"isSignal": true;
|
|
633
|
+
};
|
|
634
|
+
}, {}, never, never, true, never>;
|
|
414
635
|
}
|
|
415
636
|
/**
|
|
416
637
|
* ui-table-checkbox — row checkbox of a checkbox-based multiple selection.
|
|
417
638
|
* Instantiates `ui-checkbox` bound to the table selection.
|
|
418
639
|
*/
|
|
419
|
-
declare class UiTableCheckbox<T = unknown> {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
640
|
+
export declare class UiTableCheckbox<T = unknown> {
|
|
641
|
+
/** @ignore */
|
|
642
|
+
private readonly table;
|
|
643
|
+
/** Row this checkbox (un)selects. */
|
|
644
|
+
value: import("@angular/core").InputSignal<T>;
|
|
645
|
+
/** Absolute row index (forwarded to the selection events). */
|
|
646
|
+
index: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
647
|
+
/** Disables the checkbox. */
|
|
648
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
649
|
+
/** Accessible name of the checkbox. */
|
|
650
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
651
|
+
/** @ignore */
|
|
652
|
+
protected readonly checked: import("@angular/core").Signal<boolean>;
|
|
653
|
+
/** @ignore */
|
|
654
|
+
protected onToggle(_checked: unknown): void;
|
|
655
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableCheckbox<any>, never>;
|
|
656
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTableCheckbox<any>, "ui-table-checkbox", never, {
|
|
657
|
+
"value": {
|
|
658
|
+
"alias": "value";
|
|
659
|
+
"required": true;
|
|
660
|
+
"isSignal": true;
|
|
661
|
+
};
|
|
662
|
+
"index": {
|
|
663
|
+
"alias": "index";
|
|
664
|
+
"required": false;
|
|
665
|
+
"isSignal": true;
|
|
666
|
+
};
|
|
667
|
+
"disabled": {
|
|
668
|
+
"alias": "disabled";
|
|
669
|
+
"required": false;
|
|
670
|
+
"isSignal": true;
|
|
671
|
+
};
|
|
672
|
+
"ariaLabel": {
|
|
673
|
+
"alias": "ariaLabel";
|
|
674
|
+
"required": false;
|
|
675
|
+
"isSignal": true;
|
|
676
|
+
};
|
|
677
|
+
}, {}, never, never, true, never>;
|
|
436
678
|
}
|
|
437
679
|
/**
|
|
438
680
|
* ui-table-header-checkbox — header select-all checkbox (checkbox selection).
|
|
439
681
|
* Checked when every row is selected, indeterminate on partial selection.
|
|
440
682
|
*/
|
|
441
|
-
declare class UiTableHeaderCheckbox<T = unknown> {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
683
|
+
export declare class UiTableHeaderCheckbox<T = unknown> {
|
|
684
|
+
/** @ignore */
|
|
685
|
+
protected readonly table: UiTable<T>;
|
|
686
|
+
/** Disables the checkbox. */
|
|
687
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
688
|
+
/** Accessible name of the checkbox. */
|
|
689
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
690
|
+
/** @ignore */
|
|
691
|
+
protected onToggle(checked: unknown): void;
|
|
692
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableHeaderCheckbox<any>, never>;
|
|
693
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTableHeaderCheckbox<any>, "ui-table-header-checkbox", never, {
|
|
694
|
+
"disabled": {
|
|
695
|
+
"alias": "disabled";
|
|
696
|
+
"required": false;
|
|
697
|
+
"isSignal": true;
|
|
698
|
+
};
|
|
699
|
+
"ariaLabel": {
|
|
700
|
+
"alias": "ariaLabel";
|
|
701
|
+
"required": false;
|
|
702
|
+
"isSignal": true;
|
|
703
|
+
};
|
|
704
|
+
}, {}, never, never, true, never>;
|
|
452
705
|
}
|
|
453
706
|
/**
|
|
454
707
|
* ui-table-radio — row radio button of a radio-based single selection.
|
|
455
708
|
* Instantiates `ui-radio` bound to the table selection.
|
|
456
709
|
*/
|
|
457
|
-
declare class UiTableRadio<T = unknown> {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
710
|
+
export declare class UiTableRadio<T = unknown> {
|
|
711
|
+
/** @ignore */
|
|
712
|
+
protected readonly table: UiTable<T>;
|
|
713
|
+
/** Row this radio selects. */
|
|
714
|
+
value: import("@angular/core").InputSignal<T>;
|
|
715
|
+
/** Absolute row index (forwarded to the selection events). */
|
|
716
|
+
index: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
717
|
+
/** Native group name (defaults to a per-table group). */
|
|
718
|
+
name: import("@angular/core").InputSignal<string>;
|
|
719
|
+
/** Disables the radio. */
|
|
720
|
+
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
721
|
+
/** Accessible name of the radio. */
|
|
722
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
723
|
+
/** @ignore */
|
|
724
|
+
protected onSelect(): void;
|
|
725
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableRadio<any>, never>;
|
|
726
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiTableRadio<any>, "ui-table-radio", never, {
|
|
727
|
+
"value": {
|
|
728
|
+
"alias": "value";
|
|
729
|
+
"required": true;
|
|
730
|
+
"isSignal": true;
|
|
731
|
+
};
|
|
732
|
+
"index": {
|
|
733
|
+
"alias": "index";
|
|
734
|
+
"required": false;
|
|
735
|
+
"isSignal": true;
|
|
736
|
+
};
|
|
737
|
+
"name": {
|
|
738
|
+
"alias": "name";
|
|
739
|
+
"required": false;
|
|
740
|
+
"isSignal": true;
|
|
741
|
+
};
|
|
742
|
+
"disabled": {
|
|
743
|
+
"alias": "disabled";
|
|
744
|
+
"required": false;
|
|
745
|
+
"isSignal": true;
|
|
746
|
+
};
|
|
747
|
+
"ariaLabel": {
|
|
748
|
+
"alias": "ariaLabel";
|
|
749
|
+
"required": false;
|
|
750
|
+
"isSignal": true;
|
|
751
|
+
};
|
|
752
|
+
}, {}, never, never, true, never>;
|
|
474
753
|
}
|
|
475
754
|
/**
|
|
476
755
|
* uiRowToggler — toggles the expansion of a row. Place it on the expand
|
|
477
756
|
* button (native `<button>` or `ui-button`); `aria-expanded` is reflected.
|
|
478
757
|
*/
|
|
479
|
-
declare class UiTableRowToggler<T = unknown> {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
758
|
+
export declare class UiTableRowToggler<T = unknown> {
|
|
759
|
+
/** @ignore */
|
|
760
|
+
private readonly table;
|
|
761
|
+
/** Row whose expansion this button toggles. */
|
|
762
|
+
data: import("@angular/core").InputSignal<T>;
|
|
763
|
+
/** @ignore */
|
|
764
|
+
protected readonly expanded: import("@angular/core").Signal<boolean>;
|
|
765
|
+
/** @ignore */
|
|
766
|
+
protected onToggle(event: Event): void;
|
|
767
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableRowToggler<any>, never>;
|
|
768
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTableRowToggler<any>, "[uiRowToggler]", never, {
|
|
769
|
+
"data": {
|
|
770
|
+
"alias": "uiRowToggler";
|
|
771
|
+
"required": true;
|
|
772
|
+
"isSignal": true;
|
|
773
|
+
};
|
|
774
|
+
}, {}, never, never, true, never>;
|
|
490
775
|
}
|
|
491
776
|
/**
|
|
492
777
|
* uiFrozenColumn — pins a column while scrolling horizontally.
|
|
493
778
|
* Apply to every `<th>`/`<td>` of the column; `alignFrozen` picks the edge.
|
|
494
779
|
*/
|
|
495
|
-
declare class UiTableFrozenColumn {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
780
|
+
export declare class UiTableFrozenColumn {
|
|
781
|
+
/** @ignore */
|
|
782
|
+
private readonly el;
|
|
783
|
+
/** @ignore */
|
|
784
|
+
private readonly injector;
|
|
785
|
+
/** Enables the pinning (attribute presence defaults to true). */
|
|
786
|
+
frozen: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
787
|
+
/** Edge the column sticks to. */
|
|
788
|
+
alignFrozen: import("@angular/core").InputSignal<TableFrozenAlign>;
|
|
789
|
+
/** @ignore */
|
|
790
|
+
protected readonly isFrozen: import("@angular/core").Signal<boolean>;
|
|
791
|
+
constructor();
|
|
792
|
+
/** @ignore */
|
|
793
|
+
private updatePosition;
|
|
794
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableFrozenColumn, never>;
|
|
795
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTableFrozenColumn, "[uiFrozenColumn]", never, {
|
|
796
|
+
"frozen": {
|
|
797
|
+
"alias": "uiFrozenColumn";
|
|
798
|
+
"required": false;
|
|
799
|
+
"isSignal": true;
|
|
800
|
+
};
|
|
801
|
+
"alignFrozen": {
|
|
802
|
+
"alias": "alignFrozen";
|
|
803
|
+
"required": false;
|
|
804
|
+
"isSignal": true;
|
|
805
|
+
};
|
|
806
|
+
}, {}, never, never, true, never>;
|
|
511
807
|
}
|
|
512
808
|
/**
|
|
513
809
|
* uiResizableColumn — drag handle on a `<th>` to resize the column.
|
|
514
810
|
* Fit mode: the next column absorbs the delta, the table width is preserved.
|
|
515
811
|
*/
|
|
516
|
-
declare class UiTableResizableColumn {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
812
|
+
export declare class UiTableResizableColumn {
|
|
813
|
+
/** @ignore */
|
|
814
|
+
private readonly table;
|
|
815
|
+
/** @ignore */
|
|
816
|
+
private readonly el;
|
|
817
|
+
/** @ignore */
|
|
818
|
+
private readonly destroyRef;
|
|
819
|
+
/** @ignore */
|
|
820
|
+
private startX;
|
|
821
|
+
/** @ignore */
|
|
822
|
+
private startWidth;
|
|
823
|
+
/** @ignore */
|
|
824
|
+
private nextStartWidth;
|
|
825
|
+
/** @ignore */
|
|
826
|
+
private appliedDelta;
|
|
827
|
+
/** @ignore */
|
|
828
|
+
private cleanupDrag;
|
|
829
|
+
constructor();
|
|
830
|
+
/** @ignore */
|
|
831
|
+
private readonly onPointerDown;
|
|
832
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableResizableColumn, never>;
|
|
833
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTableResizableColumn, "[uiResizableColumn]", never, {}, {}, never, never, true, never>;
|
|
538
834
|
}
|
|
539
835
|
/**
|
|
540
836
|
* uiReorderableRow — drag & drop a `<tr>` to reorder rows.
|
|
@@ -543,28 +839,31 @@ declare class UiTableResizableColumn {
|
|
|
543
839
|
* table emits `rowReorder` with a reordered copy of `value` (rebind it).
|
|
544
840
|
* Intended for unsorted data (reordering a sorted view is ambiguous).
|
|
545
841
|
*/
|
|
546
|
-
declare class UiTableReorderableRow {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
842
|
+
export declare class UiTableReorderableRow {
|
|
843
|
+
/** @ignore */
|
|
844
|
+
private readonly table;
|
|
845
|
+
/** @ignore */
|
|
846
|
+
private readonly el;
|
|
847
|
+
/** Absolute row index (from the body template context). */
|
|
848
|
+
index: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
849
|
+
/** @ignore Visual drop indicator (edge of the hovered row). */
|
|
850
|
+
protected readonly dropPosition: import("@angular/core").WritableSignal<"above" | "below" | null>;
|
|
851
|
+
/** @ignore */
|
|
852
|
+
protected onDragStart(event: DragEvent): void;
|
|
853
|
+
/** @ignore */
|
|
854
|
+
protected onDragOver(event: DragEvent): void;
|
|
855
|
+
/** @ignore */
|
|
856
|
+
protected onDragLeave(): void;
|
|
857
|
+
/** @ignore */
|
|
858
|
+
protected onDrop(event: DragEvent): void;
|
|
859
|
+
/** @ignore */
|
|
860
|
+
protected onDragEnd(): void;
|
|
861
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTableReorderableRow, never>;
|
|
862
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTableReorderableRow, "[uiReorderableRow]", never, {
|
|
863
|
+
"index": {
|
|
864
|
+
"alias": "uiReorderableRow";
|
|
865
|
+
"required": true;
|
|
866
|
+
"isSignal": true;
|
|
867
|
+
};
|
|
868
|
+
}, {}, never, never, true, never>;
|
|
869
|
+
}
|