@4sh/ui-kit 0.16.0 → 0.17.1
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 +10 -10
- package/README.md +10 -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 -1000
- 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 -2048
- 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 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- 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 -199
- 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 -137
- 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 +721 -638
- 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 +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- 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/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 +573 -376
- 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 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- 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 -56
- 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 +275 -194
- 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,1069 +1,2009 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NgTemplateOutlet } from
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import { FormsModule } from
|
|
6
|
-
import { UiCheckbox } from
|
|
7
|
-
import { UiRadio } from
|
|
8
|
-
import { UiIcon } from
|
|
9
|
-
import { UiEmptyState } from
|
|
10
|
-
import { UiSpinner } from
|
|
11
|
-
import { UiPaginator } from
|
|
12
|
-
|
|
13
|
-
/** Reads a (possibly dotted) field path on a row object. */
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Directive, ElementRef, Injector, ViewEncapsulation, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, effect, inject, input, isDevMode, linkedSignal, model, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import { FormsModule } from "@angular/forms";
|
|
6
|
+
import { UiCheckbox } from "@4sh/ui-kit/forms/ui-checkbox";
|
|
7
|
+
import { UiRadio } from "@4sh/ui-kit/forms/ui-radio";
|
|
8
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
9
|
+
import { UiEmptyState } from "@4sh/ui-kit/informative/ui-empty-state";
|
|
10
|
+
import { UiSpinner } from "@4sh/ui-kit/informative/ui-spinner";
|
|
11
|
+
import { UiPaginator } from "@4sh/ui-kit/table/ui-paginator";
|
|
14
12
|
function resolveFieldData(data, field) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
value = value[part];
|
|
24
|
-
}
|
|
25
|
-
return value;
|
|
13
|
+
if (data == null) return null;
|
|
14
|
+
if (!field.includes(".")) return data[field];
|
|
15
|
+
let value = data;
|
|
16
|
+
for (const part of field.split(".")) {
|
|
17
|
+
if (value == null) return null;
|
|
18
|
+
value = value[part];
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
26
21
|
}
|
|
27
|
-
/** Null-safe, locale-aware comparison shared by the sort pipeline. */
|
|
28
22
|
function compareValues(a, b) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return a.localeCompare(b);
|
|
37
|
-
const na = a;
|
|
38
|
-
const nb = b;
|
|
39
|
-
return na < nb ? -1 : na > nb ? 1 : 0;
|
|
23
|
+
if (a == null && b == null) return 0;
|
|
24
|
+
if (a == null) return -1;
|
|
25
|
+
if (b == null) return 1;
|
|
26
|
+
if (typeof a === "string" && typeof b === "string") return a.localeCompare(b);
|
|
27
|
+
const na = a;
|
|
28
|
+
const nb = b;
|
|
29
|
+
return na < nb ? -1 : na > nb ? 1 : 0;
|
|
40
30
|
}
|
|
41
|
-
/** Minimum width a column can be resized down to (px). */
|
|
42
31
|
const COLUMN_MIN_WIDTH = 64;
|
|
43
32
|
let nextUid = 0;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
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
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiTable, isStandalone: true, selector: "ui-table", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, sortField: { classPropertyName: "sortField", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrder: { classPropertyName: "sortOrder", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, multiSortMeta: { classPropertyName: "multiSortMeta", publicName: "multiSortMeta", isSignal: true, isRequired: false, transformFunction: null }, defaultSortOrder: { classPropertyName: "defaultSortOrder", publicName: "defaultSortOrder", isSignal: true, isRequired: false, transformFunction: null }, customSort: { classPropertyName: "customSort", publicName: "customSort", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, first: { classPropertyName: "first", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, frozenValue: { classPropertyName: "frozenValue", publicName: "frozenValue", isSignal: true, isRequired: false, transformFunction: null }, expandedRowKeys: { classPropertyName: "expandedRowKeys", publicName: "expandedRowKeys", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingAriaLabel: { classPropertyName: "loadingAriaLabel", publicName: "loadingAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyIcon: { classPropertyName: "emptyIcon", publicName: "emptyIcon", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", first: "firstChange", expandedRowKeys: "expandedRowKeysChange", rowSelect: "rowSelect", rowUnselect: "rowUnselect", headerCheckboxToggle: "headerCheckboxToggle", sortFunction: "sortFunction", sortChange: "sortChange", pageChange: "pageChange", rowExpand: "rowExpand", rowCollapse: "rowCollapse", colResize: "colResize", rowReorder: "rowReorder", lazyLoad: "lazyLoad" }, queries: [{ propertyName: "captionTemplate", first: true, predicate: ["caption"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "bodyTemplate", first: true, predicate: ["body"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "expandedRowTemplate", first: true, predicate: ["expandedrow"], descendants: true, isSignal: true }, { propertyName: "emptyMessageTemplate", first: true, predicate: ["emptymessage"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tableEl", first: true, predicate: ["tableEl"], descendants: true, isSignal: true }, { propertyName: "theadEl", first: true, predicate: ["theadEl"], descendants: true, isSignal: true }, { propertyName: "wrapperEl", first: true, predicate: ["wrapperEl"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"classes()\" [attr.aria-busy]=\"loading() ? 'true' : null\">\n @if (captionTemplate(); as caption) {\n <div class=\"ui-table-caption\">\n <ng-container [ngTemplateOutlet]=\"caption\" />\n </div>\n }\n\n <div class=\"ui-table-container\">\n <div\n #wrapperEl\n class=\"ui-table-wrapper\"\n [attr.tabindex]=\"scrollable() ? 0 : null\"\n [style.max-height]=\"scrollMaxHeight()\"\n [style.--ui-table-frozen-top.px]=\"frozenRowsTop()\"\n (scroll)=\"onWrapperScroll()\"\n >\n <table #tableEl class=\"ui-table-table\" [style]=\"tableStyle() ?? null\">\n @if (headerTemplate(); as header) {\n <thead #theadEl class=\"ui-table-thead\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n </thead>\n }\n\n @if (!loading() && frozenValue()?.length) {\n <tbody class=\"ui-table-tbody _frozen-rows\">\n @for (row of frozenValue(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index, true)\"\n />\n }\n }\n </tbody>\n }\n\n <tbody class=\"ui-table-tbody\">\n @if (loading()) {\n <tr class=\"ui-table-loading-row\">\n <td class=\"ui-table-loading-cell\" [attr.colspan]=\"columnCount()\">\n <ui-spinner [ariaLabel]=\"loadingAriaLabel()\" />\n </td>\n </tr>\n } @else {\n @if (virtualScroll() && virtualPadding().top > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().top\"></td>\n </tr>\n }\n\n @for (row of pageData(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n @if (expandedRowTemplate(); as expansion) {\n @if (isRowExpanded(row)) {\n <ng-container\n [ngTemplateOutlet]=\"expansion\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n }\n } @empty {\n <tr class=\"ui-table-empty-row\">\n <td class=\"ui-table-empty-cell\" [attr.colspan]=\"columnCount()\">\n @if (emptyMessageTemplate(); as empty) {\n <ng-container [ngTemplateOutlet]=\"empty\" />\n } @else {\n <ui-empty-state size=\"small\" [icon]=\"emptyIcon()\" [title]=\"emptyMessage()\" />\n }\n </td>\n </tr>\n }\n\n @if (virtualScroll() && virtualPadding().bottom > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().bottom\"></td>\n </tr>\n }\n }\n </tbody>\n\n @if (footerTemplate(); as footer) {\n <tfoot class=\"ui-table-tfoot\">\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </tfoot>\n }\n </table>\n </div>\n </div>\n\n @if (paginator()) {\n <ui-paginator\n [totalRecords]=\"effectiveTotalRecords()\"\n [rows]=\"rowsState()\"\n (rowsChange)=\"onPaginatorRows($event)\"\n [first]=\"first()\"\n (firstChange)=\"first.set($event)\"\n [pageLinks]=\"pageLinks()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n ariaLabel=\"Pagination du tableau\"\n (pageChange)=\"pageChange.emit($event)\"\n />\n }\n</div>\n", styles: ["ui-table{display:block;min-width:0}ui-table:has(>.ui-table._flex-scroll){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table{font-family:var(--ui-table-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-table-body-color, var(--table-body-content-odd))}.ui-table-container{min-width:0}.ui-table-wrapper{min-width:0;overflow-x:auto}.ui-table-loading-cell{text-align:center}.ui-table-loading-cell ui-spinner{display:flex;justify-content:center;padding:var(--ui-table-loading-padding-y, var(--units-3xl)) 0}.ui-table-table{width:100%;border-collapse:separate;border-spacing:0}.ui-table-table th,.ui-table-table td{box-sizing:border-box}.ui-table-caption{padding:var(--units-md) var(--units-default);font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table-thead th{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-head-surface, var(--table-head-surface-default));color:var(--ui-table-head-color, var(--table-head-content-default));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-head-stroke, var(--table-head-stroke-default));font-size:var(--size-typography-text-md);font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left;white-space:nowrap}.ui-table-tbody td{padding:var(--ui-table-cell-padding, var(--units-default));background-color:var(--ui-table-body-surface, var(--table-body-surface-odd));color:var(--ui-table-body-color, var(--table-body-content-odd));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-body-stroke, var(--table-body-stroke-odd));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-tbody tr:last-child td{border-bottom-color:transparent}.ui-table._striped .ui-table-tbody tr:nth-child(2n) td{background-color:var(--ui-table-body-surface-even, var(--table-body-surface-even));color:var(--ui-table-body-color-even, var(--table-body-content-even));border-bottom-color:var(--ui-table-body-stroke-even, var(--table-body-stroke-even))}.ui-table._hoverable .ui-table-tbody tr:hover td{background-color:var(--ui-table-body-surface-hover, var(--table-body-surface-hover));color:var(--ui-table-body-color-hover, var(--table-body-content-hover))}.ui-table-tbody tr._selected td,.ui-table._striped .ui-table-tbody tr._selected td{background-color:var(--ui-table-body-surface-selected, var(--informative-highlightlow-surface-default));color:var(--ui-table-body-color-selected, var(--informative-highlightlow-content-default));border-bottom-color:var(--ui-table-body-stroke-selected, var(--informative-highlightlow-stroke-default))}.ui-table._hoverable .ui-table-tbody tr._selected:hover td{background-color:var(--ui-table-body-surface-selected-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-table-body-color-selected-hover, var(--informative-highlightlow-content-hover))}.ui-table-selectable-row{cursor:pointer}.ui-table-selectable-row:focus-visible{outline:var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid var(--ui-table-focus-ring-color, var(--global-border-focus));outline-offset:calc(-1 * var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))))}.ui-table-reorderable-row{cursor:grab}.ui-table-reorderable-row._drop-above td{box-shadow:inset 0 var(--ui-table-drop-indicator-width, var(--stroke-lg)) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-reorderable-row._drop-below td{box-shadow:inset 0 calc(-1 * var(--ui-table-drop-indicator-width, var(--stroke-lg))) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-empty-cell{text-align:center}.ui-table-empty-cell ui-empty-state{display:flex;justify-content:center;padding:var(--units-xl) 0}.ui-table-virtual-spacer td{padding:0;border:none;background:none}.ui-table-tfoot td{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-footer-surface, var(--table-footer-surface-default));color:var(--ui-table-footer-color, var(--table-footer-content-default));border-top:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-footer-stroke, var(--table-footer-stroke-default));font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left}.ui-table._small .ui-table-tbody td{padding:var(--ui-table-cell-padding-small, var(--units-sm) var(--units-md))}.ui-table._small .ui-table-thead th,.ui-table._small .ui-table-tfoot td{padding:var(--ui-table-head-padding-small, var(--units-sm) var(--units-md))}.ui-table._large .ui-table-tbody td{padding:var(--ui-table-cell-padding-large, var(--units-xl) var(--units-default))}.ui-table._large .ui-table-thead th,.ui-table._large .ui-table-tfoot td{padding:var(--ui-table-head-padding-large, var(--units-default))}.ui-table._gridlines .ui-table-table{border:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th,.ui-table._gridlines .ui-table-tbody td,.ui-table._gridlines .ui-table-tfoot td{border-right:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th:last-child,.ui-table._gridlines .ui-table-tbody td:last-child,.ui-table._gridlines .ui-table-tfoot td:last-child{border-right:none}.ui-table-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-sortable-column:hover{background-color:var(--ui-table-head-surface-hover, var(--table-head-surface-hover));color:var(--ui-table-head-color-hover, var(--table-head-content-hover))}.ui-table-sortable-column:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-table-focus-ring-color, var(--global-border-focus))}.ui-table-sortable-column .ui-table-sort-icon{margin-left:var(--units-xs);vertical-align:middle}.ui-table._scrollable .ui-table-wrapper{overflow:auto}.ui-table._scrollable .ui-table-thead th{position:sticky;top:0;z-index:2}.ui-table._scrollable .ui-table-thead th._frozen-left,.ui-table._scrollable .ui-table-thead th._frozen-right{z-index:3}.ui-table._scrollable .ui-table-tfoot td{position:sticky;bottom:0;z-index:2}.ui-table._scrollable .ui-table-tbody._frozen-rows td{position:sticky;top:var(--ui-table-frozen-top, 0);z-index:1;font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table._flex-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table._flex-scroll .ui-table-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0}.ui-table._flex-scroll .ui-table-wrapper{flex:1 1 0;min-height:0}.ui-table._virtual .ui-table-wrapper{overflow-anchor:none}.ui-table .ui-table-table th._frozen-left,.ui-table .ui-table-table th._frozen-right,.ui-table .ui-table-table td._frozen-left,.ui-table .ui-table-table td._frozen-right{position:sticky;z-index:1}.ui-table-thead th._frozen-left,.ui-table-thead th._frozen-right{z-index:3}.ui-table._resizable .ui-table-thead th{position:relative;overflow:hidden}.ui-table-column-resizer{position:absolute;top:0;right:0;width:var(--ui-table-resizer-hit-width, var(--units-sm));height:100%;cursor:col-resize;touch-action:none}.ui-table-column-resizer:hover{border-right:var(--stroke-default) solid var(--ui-table-resizer-stroke-hover, var(--global-border-default-hover))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: UiPaginator, selector: "ui-paginator", inputs: ["totalRecords", "rows", "first", "pageLinks", "ellipsis", "boundaryCount", "rowsPerPageOptions", "showFirstLastIcon", "showPageLinks", "showCurrentPageReport", "currentPageReportTemplate", "disabled", "ripple", "ariaLabel", "pageAriaLabel", "firstPageAriaLabel", "prevPageAriaLabel", "nextPageAriaLabel", "lastPageAriaLabel", "rowsPerPageAriaLabel"], outputs: ["rowsChange", "firstChange", "pageChange"] }, { kind: "component", type: UiEmptyState, selector: "ui-empty-state", inputs: ["title", "description", "icon", "iconType", "size", "showMedia", "ariaLabel", "ariaLabelledBy"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
args: [{ selector: 'ui-table', imports: [NgTemplateOutlet, UiPaginator, UiEmptyState, UiSpinner], encapsulation: ViewEncapsulation.None, template: "<div [class]=\"classes()\" [attr.aria-busy]=\"loading() ? 'true' : null\">\n @if (captionTemplate(); as caption) {\n <div class=\"ui-table-caption\">\n <ng-container [ngTemplateOutlet]=\"caption\" />\n </div>\n }\n\n <div class=\"ui-table-container\">\n <div\n #wrapperEl\n class=\"ui-table-wrapper\"\n [attr.tabindex]=\"scrollable() ? 0 : null\"\n [style.max-height]=\"scrollMaxHeight()\"\n [style.--ui-table-frozen-top.px]=\"frozenRowsTop()\"\n (scroll)=\"onWrapperScroll()\"\n >\n <table #tableEl class=\"ui-table-table\" [style]=\"tableStyle() ?? null\">\n @if (headerTemplate(); as header) {\n <thead #theadEl class=\"ui-table-thead\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n </thead>\n }\n\n @if (!loading() && frozenValue()?.length) {\n <tbody class=\"ui-table-tbody _frozen-rows\">\n @for (row of frozenValue(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index, true)\"\n />\n }\n }\n </tbody>\n }\n\n <tbody class=\"ui-table-tbody\">\n @if (loading()) {\n <tr class=\"ui-table-loading-row\">\n <td class=\"ui-table-loading-cell\" [attr.colspan]=\"columnCount()\">\n <ui-spinner [ariaLabel]=\"loadingAriaLabel()\" />\n </td>\n </tr>\n } @else {\n @if (virtualScroll() && virtualPadding().top > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().top\"></td>\n </tr>\n }\n\n @for (row of pageData(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n @if (expandedRowTemplate(); as expansion) {\n @if (isRowExpanded(row)) {\n <ng-container\n [ngTemplateOutlet]=\"expansion\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n }\n } @empty {\n <tr class=\"ui-table-empty-row\">\n <td class=\"ui-table-empty-cell\" [attr.colspan]=\"columnCount()\">\n @if (emptyMessageTemplate(); as empty) {\n <ng-container [ngTemplateOutlet]=\"empty\" />\n } @else {\n <ui-empty-state size=\"small\" [icon]=\"emptyIcon()\" [title]=\"emptyMessage()\" />\n }\n </td>\n </tr>\n }\n\n @if (virtualScroll() && virtualPadding().bottom > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().bottom\"></td>\n </tr>\n }\n }\n </tbody>\n\n @if (footerTemplate(); as footer) {\n <tfoot class=\"ui-table-tfoot\">\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </tfoot>\n }\n </table>\n </div>\n </div>\n\n @if (paginator()) {\n <ui-paginator\n [totalRecords]=\"effectiveTotalRecords()\"\n [rows]=\"rowsState()\"\n (rowsChange)=\"onPaginatorRows($event)\"\n [first]=\"first()\"\n (firstChange)=\"first.set($event)\"\n [pageLinks]=\"pageLinks()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n ariaLabel=\"Pagination du tableau\"\n (pageChange)=\"pageChange.emit($event)\"\n />\n }\n</div>\n", styles: ["ui-table{display:block;min-width:0}ui-table:has(>.ui-table._flex-scroll){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table{font-family:var(--ui-table-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-table-body-color, var(--table-body-content-odd))}.ui-table-container{min-width:0}.ui-table-wrapper{min-width:0;overflow-x:auto}.ui-table-loading-cell{text-align:center}.ui-table-loading-cell ui-spinner{display:flex;justify-content:center;padding:var(--ui-table-loading-padding-y, var(--units-3xl)) 0}.ui-table-table{width:100%;border-collapse:separate;border-spacing:0}.ui-table-table th,.ui-table-table td{box-sizing:border-box}.ui-table-caption{padding:var(--units-md) var(--units-default);font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table-thead th{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-head-surface, var(--table-head-surface-default));color:var(--ui-table-head-color, var(--table-head-content-default));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-head-stroke, var(--table-head-stroke-default));font-size:var(--size-typography-text-md);font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left;white-space:nowrap}.ui-table-tbody td{padding:var(--ui-table-cell-padding, var(--units-default));background-color:var(--ui-table-body-surface, var(--table-body-surface-odd));color:var(--ui-table-body-color, var(--table-body-content-odd));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-body-stroke, var(--table-body-stroke-odd));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-tbody tr:last-child td{border-bottom-color:transparent}.ui-table._striped .ui-table-tbody tr:nth-child(2n) td{background-color:var(--ui-table-body-surface-even, var(--table-body-surface-even));color:var(--ui-table-body-color-even, var(--table-body-content-even));border-bottom-color:var(--ui-table-body-stroke-even, var(--table-body-stroke-even))}.ui-table._hoverable .ui-table-tbody tr:hover td{background-color:var(--ui-table-body-surface-hover, var(--table-body-surface-hover));color:var(--ui-table-body-color-hover, var(--table-body-content-hover))}.ui-table-tbody tr._selected td,.ui-table._striped .ui-table-tbody tr._selected td{background-color:var(--ui-table-body-surface-selected, var(--informative-highlightlow-surface-default));color:var(--ui-table-body-color-selected, var(--informative-highlightlow-content-default));border-bottom-color:var(--ui-table-body-stroke-selected, var(--informative-highlightlow-stroke-default))}.ui-table._hoverable .ui-table-tbody tr._selected:hover td{background-color:var(--ui-table-body-surface-selected-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-table-body-color-selected-hover, var(--informative-highlightlow-content-hover))}.ui-table-selectable-row{cursor:pointer}.ui-table-selectable-row:focus-visible{outline:var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid var(--ui-table-focus-ring-color, var(--global-border-focus));outline-offset:calc(-1 * var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))))}.ui-table-reorderable-row{cursor:grab}.ui-table-reorderable-row._drop-above td{box-shadow:inset 0 var(--ui-table-drop-indicator-width, var(--stroke-lg)) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-reorderable-row._drop-below td{box-shadow:inset 0 calc(-1 * var(--ui-table-drop-indicator-width, var(--stroke-lg))) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-empty-cell{text-align:center}.ui-table-empty-cell ui-empty-state{display:flex;justify-content:center;padding:var(--units-xl) 0}.ui-table-virtual-spacer td{padding:0;border:none;background:none}.ui-table-tfoot td{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-footer-surface, var(--table-footer-surface-default));color:var(--ui-table-footer-color, var(--table-footer-content-default));border-top:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-footer-stroke, var(--table-footer-stroke-default));font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left}.ui-table._small .ui-table-tbody td{padding:var(--ui-table-cell-padding-small, var(--units-sm) var(--units-md))}.ui-table._small .ui-table-thead th,.ui-table._small .ui-table-tfoot td{padding:var(--ui-table-head-padding-small, var(--units-sm) var(--units-md))}.ui-table._large .ui-table-tbody td{padding:var(--ui-table-cell-padding-large, var(--units-xl) var(--units-default))}.ui-table._large .ui-table-thead th,.ui-table._large .ui-table-tfoot td{padding:var(--ui-table-head-padding-large, var(--units-default))}.ui-table._gridlines .ui-table-table{border:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th,.ui-table._gridlines .ui-table-tbody td,.ui-table._gridlines .ui-table-tfoot td{border-right:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th:last-child,.ui-table._gridlines .ui-table-tbody td:last-child,.ui-table._gridlines .ui-table-tfoot td:last-child{border-right:none}.ui-table-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-sortable-column:hover{background-color:var(--ui-table-head-surface-hover, var(--table-head-surface-hover));color:var(--ui-table-head-color-hover, var(--table-head-content-hover))}.ui-table-sortable-column:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-table-focus-ring-color, var(--global-border-focus))}.ui-table-sortable-column .ui-table-sort-icon{margin-left:var(--units-xs);vertical-align:middle}.ui-table._scrollable .ui-table-wrapper{overflow:auto}.ui-table._scrollable .ui-table-thead th{position:sticky;top:0;z-index:2}.ui-table._scrollable .ui-table-thead th._frozen-left,.ui-table._scrollable .ui-table-thead th._frozen-right{z-index:3}.ui-table._scrollable .ui-table-tfoot td{position:sticky;bottom:0;z-index:2}.ui-table._scrollable .ui-table-tbody._frozen-rows td{position:sticky;top:var(--ui-table-frozen-top, 0);z-index:1;font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table._flex-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table._flex-scroll .ui-table-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0}.ui-table._flex-scroll .ui-table-wrapper{flex:1 1 0;min-height:0}.ui-table._virtual .ui-table-wrapper{overflow-anchor:none}.ui-table .ui-table-table th._frozen-left,.ui-table .ui-table-table th._frozen-right,.ui-table .ui-table-table td._frozen-left,.ui-table .ui-table-table td._frozen-right{position:sticky;z-index:1}.ui-table-thead th._frozen-left,.ui-table-thead th._frozen-right{z-index:3}.ui-table._resizable .ui-table-thead th{position:relative;overflow:hidden}.ui-table-column-resizer{position:absolute;top:0;right:0;width:var(--ui-table-resizer-hit-width, var(--units-sm));height:100%;cursor:col-resize;touch-action:none}.ui-table-column-resizer:hover{border-right:var(--stroke-default) solid var(--ui-table-resizer-stroke-hover, var(--global-border-default-hover))}\n"] }]
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
33
|
+
var UiTable = class UiTable {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.value = input([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
36
|
+
this.dataKey = input(...ngDevMode ? [void 0, { debugName: "dataKey" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
38
|
+
this.showGridlines = input(false, {
|
|
39
|
+
...ngDevMode ? { debugName: "showGridlines" } : /* istanbul ignore next */ {},
|
|
40
|
+
transform: booleanAttribute
|
|
41
|
+
});
|
|
42
|
+
this.stripedRows = input(false, {
|
|
43
|
+
...ngDevMode ? { debugName: "stripedRows" } : /* istanbul ignore next */ {},
|
|
44
|
+
transform: booleanAttribute
|
|
45
|
+
});
|
|
46
|
+
this.rowHover = input(false, {
|
|
47
|
+
...ngDevMode ? { debugName: "rowHover" } : /* istanbul ignore next */ {},
|
|
48
|
+
transform: booleanAttribute
|
|
49
|
+
});
|
|
50
|
+
this.tableStyle = input(...ngDevMode ? [void 0, { debugName: "tableStyle" }] : /* istanbul ignore next */ []);
|
|
51
|
+
this.selectionMode = input(null, ...ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []);
|
|
52
|
+
this.selection = model(null, ...ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []);
|
|
53
|
+
this.metaKeySelection = input(false, {
|
|
54
|
+
...ngDevMode ? { debugName: "metaKeySelection" } : /* istanbul ignore next */ {},
|
|
55
|
+
transform: booleanAttribute
|
|
56
|
+
});
|
|
57
|
+
this.sortMode = input("single", ...ngDevMode ? [{ debugName: "sortMode" }] : /* istanbul ignore next */ []);
|
|
58
|
+
this.sortField = input(...ngDevMode ? [void 0, { debugName: "sortField" }] : /* istanbul ignore next */ []);
|
|
59
|
+
this.sortOrder = input(1, {
|
|
60
|
+
...ngDevMode ? { debugName: "sortOrder" } : /* istanbul ignore next */ {},
|
|
61
|
+
transform: numberAttribute
|
|
62
|
+
});
|
|
63
|
+
this.multiSortMeta = input(...ngDevMode ? [void 0, { debugName: "multiSortMeta" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.defaultSortOrder = input(1, {
|
|
65
|
+
...ngDevMode ? { debugName: "defaultSortOrder" } : /* istanbul ignore next */ {},
|
|
66
|
+
transform: numberAttribute
|
|
67
|
+
});
|
|
68
|
+
this.customSort = input(false, {
|
|
69
|
+
...ngDevMode ? { debugName: "customSort" } : /* istanbul ignore next */ {},
|
|
70
|
+
transform: booleanAttribute
|
|
71
|
+
});
|
|
72
|
+
this.paginator = input(false, {
|
|
73
|
+
...ngDevMode ? { debugName: "paginator" } : /* istanbul ignore next */ {},
|
|
74
|
+
transform: booleanAttribute
|
|
75
|
+
});
|
|
76
|
+
this.rows = input(10, {
|
|
77
|
+
...ngDevMode ? { debugName: "rows" } : /* istanbul ignore next */ {},
|
|
78
|
+
transform: numberAttribute
|
|
79
|
+
});
|
|
80
|
+
this.first = model(0, ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
|
|
81
|
+
this.rowsPerPageOptions = input(...ngDevMode ? [void 0, { debugName: "rowsPerPageOptions" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this.pageLinks = input(5, {
|
|
83
|
+
...ngDevMode ? { debugName: "pageLinks" } : /* istanbul ignore next */ {},
|
|
84
|
+
transform: numberAttribute
|
|
85
|
+
});
|
|
86
|
+
this.totalRecords = input(...ngDevMode ? [void 0, { debugName: "totalRecords" }] : /* istanbul ignore next */ []);
|
|
87
|
+
this.scrollable = input(false, {
|
|
88
|
+
...ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {},
|
|
89
|
+
transform: booleanAttribute
|
|
90
|
+
});
|
|
91
|
+
this.scrollHeight = input(...ngDevMode ? [void 0, { debugName: "scrollHeight" }] : /* istanbul ignore next */ []);
|
|
92
|
+
this.frozenValue = input(...ngDevMode ? [void 0, { debugName: "frozenValue" }] : /* istanbul ignore next */ []);
|
|
93
|
+
this.expandedRowKeys = model({}, ...ngDevMode ? [{ debugName: "expandedRowKeys" }] : /* istanbul ignore next */ []);
|
|
94
|
+
this.resizableColumns = input(false, {
|
|
95
|
+
...ngDevMode ? { debugName: "resizableColumns" } : /* istanbul ignore next */ {},
|
|
96
|
+
transform: booleanAttribute
|
|
97
|
+
});
|
|
98
|
+
this.loading = input(false, {
|
|
99
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
100
|
+
transform: booleanAttribute
|
|
101
|
+
});
|
|
102
|
+
this.loadingAriaLabel = input("Chargement des données", ...ngDevMode ? [{ debugName: "loadingAriaLabel" }] : /* istanbul ignore next */ []);
|
|
103
|
+
this.emptyMessage = input("Aucune donnée à afficher", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
104
|
+
this.emptyIcon = input("inbox", ...ngDevMode ? [{ debugName: "emptyIcon" }] : /* istanbul ignore next */ []);
|
|
105
|
+
this.virtualScroll = input(false, {
|
|
106
|
+
...ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {},
|
|
107
|
+
transform: booleanAttribute
|
|
108
|
+
});
|
|
109
|
+
this.virtualScrollItemSize = input(50, {
|
|
110
|
+
...ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {},
|
|
111
|
+
transform: numberAttribute
|
|
112
|
+
});
|
|
113
|
+
this.lazy = input(false, {
|
|
114
|
+
...ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {},
|
|
115
|
+
transform: booleanAttribute
|
|
116
|
+
});
|
|
117
|
+
this.rowSelect = output();
|
|
118
|
+
this.rowUnselect = output();
|
|
119
|
+
this.headerCheckboxToggle = output();
|
|
120
|
+
this.sortFunction = output();
|
|
121
|
+
this.sortChange = output();
|
|
122
|
+
this.pageChange = output();
|
|
123
|
+
this.rowExpand = output();
|
|
124
|
+
this.rowCollapse = output();
|
|
125
|
+
this.colResize = output();
|
|
126
|
+
this.rowReorder = output();
|
|
127
|
+
this.lazyLoad = output();
|
|
128
|
+
this.captionTemplate = contentChild("caption", ...ngDevMode ? [{ debugName: "captionTemplate" }] : /* istanbul ignore next */ []);
|
|
129
|
+
this.headerTemplate = contentChild("header", ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
130
|
+
this.bodyTemplate = contentChild("body", ...ngDevMode ? [{ debugName: "bodyTemplate" }] : /* istanbul ignore next */ []);
|
|
131
|
+
this.footerTemplate = contentChild("footer", ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
132
|
+
this.expandedRowTemplate = contentChild("expandedrow", ...ngDevMode ? [{ debugName: "expandedRowTemplate" }] : /* istanbul ignore next */ []);
|
|
133
|
+
this.emptyMessageTemplate = contentChild("emptymessage", ...ngDevMode ? [{ debugName: "emptyMessageTemplate" }] : /* istanbul ignore next */ []);
|
|
134
|
+
this.tableEl = viewChild("tableEl", ...ngDevMode ? [{ debugName: "tableEl" }] : /* istanbul ignore next */ []);
|
|
135
|
+
this.theadEl = viewChild("theadEl", ...ngDevMode ? [{ debugName: "theadEl" }] : /* istanbul ignore next */ []);
|
|
136
|
+
this.wrapperEl = viewChild("wrapperEl", ...ngDevMode ? [{ debugName: "wrapperEl" }] : /* istanbul ignore next */ []);
|
|
137
|
+
this.wrapperScrollTop = signal(0, ...ngDevMode ? [{ debugName: "wrapperScrollTop" }] : /* istanbul ignore next */ []);
|
|
138
|
+
this.wrapperHeight = signal(0, ...ngDevMode ? [{ debugName: "wrapperHeight" }] : /* istanbul ignore next */ []);
|
|
139
|
+
this.draggedRowIndex = null;
|
|
140
|
+
this.selectableRowRefs = /* @__PURE__ */ new Map();
|
|
141
|
+
this.anchorRowIndex = null;
|
|
142
|
+
this.uid = `ui-table-${nextUid++}`;
|
|
143
|
+
this.destroyRef = inject(DestroyRef);
|
|
144
|
+
this.sortState = linkedSignal(() => {
|
|
145
|
+
const field = this.sortField();
|
|
146
|
+
return field ? {
|
|
147
|
+
field,
|
|
148
|
+
order: this.sortOrder()
|
|
149
|
+
} : null;
|
|
150
|
+
}, ...ngDevMode ? [{ debugName: "sortState" }] : /* istanbul ignore next */ []);
|
|
151
|
+
this.multiSortState = linkedSignal(() => this.multiSortMeta() ?? [], ...ngDevMode ? [{ debugName: "multiSortState" }] : /* istanbul ignore next */ []);
|
|
152
|
+
this.rowsState = linkedSignal(() => this.rows(), ...ngDevMode ? [{ debugName: "rowsState" }] : /* istanbul ignore next */ []);
|
|
153
|
+
this.columnCount = signal(1, ...ngDevMode ? [{ debugName: "columnCount" }] : /* istanbul ignore next */ []);
|
|
154
|
+
this.frozenRowsTop = signal(0, ...ngDevMode ? [{ debugName: "frozenRowsTop" }] : /* istanbul ignore next */ []);
|
|
155
|
+
this.processedData = computed(() => {
|
|
156
|
+
const data = this.value() ?? [];
|
|
157
|
+
if (!data.length || this.customSort() || this.lazy()) return data;
|
|
158
|
+
if (this.sortMode() === "single") {
|
|
159
|
+
const sort = this.sortState();
|
|
160
|
+
if (!sort) return data;
|
|
161
|
+
return [...data].sort((a, b) => sort.order * compareValues(resolveFieldData(a, sort.field), resolveFieldData(b, sort.field)));
|
|
162
|
+
}
|
|
163
|
+
const metas = this.multiSortState();
|
|
164
|
+
if (!metas.length) return data;
|
|
165
|
+
return [...data].sort((a, b) => {
|
|
166
|
+
for (const meta of metas) {
|
|
167
|
+
const result = meta.order * compareValues(resolveFieldData(a, meta.field), resolveFieldData(b, meta.field));
|
|
168
|
+
if (result !== 0) return result;
|
|
169
|
+
}
|
|
170
|
+
return 0;
|
|
171
|
+
});
|
|
172
|
+
}, ...ngDevMode ? [{ debugName: "processedData" }] : /* istanbul ignore next */ []);
|
|
173
|
+
this.effectiveTotalRecords = computed(() => this.lazy() ? this.totalRecords() ?? this.processedData().length : this.processedData().length, ...ngDevMode ? [{ debugName: "effectiveTotalRecords" }] : /* istanbul ignore next */ []);
|
|
174
|
+
this.pageCount = computed(() => Math.max(1, Math.ceil(this.effectiveTotalRecords() / Math.max(1, this.rowsState()))), ...ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []);
|
|
175
|
+
this.clampedFirst = computed(() => {
|
|
176
|
+
const rows = Math.max(1, this.rowsState());
|
|
177
|
+
const maxFirst = (this.pageCount() - 1) * rows;
|
|
178
|
+
return Math.min(Math.max(0, this.first()), maxFirst);
|
|
179
|
+
}, ...ngDevMode ? [{ debugName: "clampedFirst" }] : /* istanbul ignore next */ []);
|
|
180
|
+
this.virtualRange = computed(() => {
|
|
181
|
+
const total = this.processedData().length;
|
|
182
|
+
if (!this.virtualScroll()) return {
|
|
183
|
+
start: 0,
|
|
184
|
+
end: total
|
|
185
|
+
};
|
|
186
|
+
const itemSize = Math.max(1, this.virtualScrollItemSize());
|
|
187
|
+
const start = Math.max(0, Math.floor(this.wrapperScrollTop() / itemSize) - 5);
|
|
188
|
+
const visible = Math.ceil(Math.max(0, this.wrapperHeight()) / itemSize) + 10;
|
|
189
|
+
return {
|
|
190
|
+
start,
|
|
191
|
+
end: Math.min(total, start + visible)
|
|
192
|
+
};
|
|
193
|
+
}, ...ngDevMode ? [{ debugName: "virtualRange" }] : /* istanbul ignore next */ []);
|
|
194
|
+
this.virtualPadding = computed(() => {
|
|
195
|
+
if (!this.virtualScroll()) return {
|
|
196
|
+
top: 0,
|
|
197
|
+
bottom: 0
|
|
198
|
+
};
|
|
199
|
+
const itemSize = Math.max(1, this.virtualScrollItemSize());
|
|
200
|
+
const { start, end } = this.virtualRange();
|
|
201
|
+
return {
|
|
202
|
+
top: start * itemSize,
|
|
203
|
+
bottom: (this.processedData().length - end) * itemSize
|
|
204
|
+
};
|
|
205
|
+
}, ...ngDevMode ? [{ debugName: "virtualPadding" }] : /* istanbul ignore next */ []);
|
|
206
|
+
this.pageOffset = computed(() => {
|
|
207
|
+
if (this.virtualScroll()) return this.virtualRange().start;
|
|
208
|
+
return this.paginator() ? this.clampedFirst() : 0;
|
|
209
|
+
}, ...ngDevMode ? [{ debugName: "pageOffset" }] : /* istanbul ignore next */ []);
|
|
210
|
+
this.pageData = computed(() => {
|
|
211
|
+
const data = this.processedData();
|
|
212
|
+
if (this.virtualScroll()) {
|
|
213
|
+
const { start, end } = this.virtualRange();
|
|
214
|
+
return data.slice(start, end);
|
|
215
|
+
}
|
|
216
|
+
if (!this.paginator() || this.lazy()) return data;
|
|
217
|
+
const start = this.clampedFirst();
|
|
218
|
+
return data.slice(start, start + this.rowsState());
|
|
219
|
+
}, ...ngDevMode ? [{ debugName: "pageData" }] : /* istanbul ignore next */ []);
|
|
220
|
+
this.isFlexScroll = computed(() => this.scrollable() && this.scrollHeight() === "flex", ...ngDevMode ? [{ debugName: "isFlexScroll" }] : /* istanbul ignore next */ []);
|
|
221
|
+
this.scrollMaxHeight = computed(() => {
|
|
222
|
+
const height = this.scrollHeight();
|
|
223
|
+
return this.scrollable() && height && height !== "flex" ? height : null;
|
|
224
|
+
}, ...ngDevMode ? [{ debugName: "scrollMaxHeight" }] : /* istanbul ignore next */ []);
|
|
225
|
+
this.classes = computed(() => {
|
|
226
|
+
const c = ["ui-table"];
|
|
227
|
+
if (this.size() !== "default") c.push(`_${this.size()}`);
|
|
228
|
+
if (this.showGridlines()) c.push("_gridlines");
|
|
229
|
+
if (this.stripedRows()) c.push("_striped");
|
|
230
|
+
if (this.rowHover() || this.selectionMode()) c.push("_hoverable");
|
|
231
|
+
if (this.scrollable()) c.push("_scrollable");
|
|
232
|
+
if (this.isFlexScroll()) c.push("_flex-scroll");
|
|
233
|
+
if (this.resizableColumns()) c.push("_resizable");
|
|
234
|
+
if (this.virtualScroll()) c.push("_virtual");
|
|
235
|
+
return c.join(" ");
|
|
236
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
237
|
+
this.selectionArray = computed(() => {
|
|
238
|
+
const sel = this.selection();
|
|
239
|
+
if (sel == null) return [];
|
|
240
|
+
return Array.isArray(sel) ? sel : [sel];
|
|
241
|
+
}, ...ngDevMode ? [{ debugName: "selectionArray" }] : /* istanbul ignore next */ []);
|
|
242
|
+
this.allSelected = computed(() => {
|
|
243
|
+
const data = this.processedData();
|
|
244
|
+
if (!data.length) return false;
|
|
245
|
+
const selection = this.selectionArray();
|
|
246
|
+
return data.every((row) => selection.some((s) => this.rowEquals(s, row)));
|
|
247
|
+
}, ...ngDevMode ? [{ debugName: "allSelected" }] : /* istanbul ignore next */ []);
|
|
248
|
+
this.partiallySelected = computed(() => !this.allSelected() && this.selectionArray().length > 0, ...ngDevMode ? [{ debugName: "partiallySelected" }] : /* istanbul ignore next */ []);
|
|
249
|
+
this.tabbableRow = computed(() => {
|
|
250
|
+
const page = this.pageData();
|
|
251
|
+
return page.find((row) => this.isSelected(row)) ?? page[0];
|
|
252
|
+
}, ...ngDevMode ? [{ debugName: "tabbableRow" }] : /* istanbul ignore next */ []);
|
|
253
|
+
this.idBase = this.uid;
|
|
254
|
+
if (isDevMode()) effect(() => {
|
|
255
|
+
if (Object.keys(this.expandedRowKeys()).length && !this.dataKey()) console.warn("[ui-table] `expandedRowKeys` requires `dataKey` to identify rows.");
|
|
256
|
+
if (this.virtualScroll() && (!this.scrollable() || !this.scrollHeight() || this.scrollHeight() === "flex")) console.warn("[ui-table] `virtualScroll` requires `scrollable` and a fixed `scrollHeight`.");
|
|
257
|
+
if (this.totalRecords() !== void 0 && !this.lazy()) console.warn("[ui-table] `totalRecords` is ignored without `lazy`.");
|
|
258
|
+
if (this.lazy() && this.paginator() && this.totalRecords() === void 0) console.warn("[ui-table] `lazy` + `paginator` requires `totalRecords` (server total) for the paginator.");
|
|
259
|
+
});
|
|
260
|
+
let lastLazyRange = null;
|
|
261
|
+
effect(() => {
|
|
262
|
+
if (!this.virtualScroll() || !this.lazy()) return;
|
|
263
|
+
const { start, end } = this.virtualRange();
|
|
264
|
+
if (lastLazyRange?.first === start && lastLazyRange?.last === end) return;
|
|
265
|
+
lastLazyRange = {
|
|
266
|
+
first: start,
|
|
267
|
+
last: end
|
|
268
|
+
};
|
|
269
|
+
this.lazyLoad.emit(lastLazyRange);
|
|
270
|
+
});
|
|
271
|
+
afterRenderEffect(() => {
|
|
272
|
+
this.value();
|
|
273
|
+
this.size();
|
|
274
|
+
this.headerTemplate();
|
|
275
|
+
this.frozenValue();
|
|
276
|
+
this.measureStickyMetrics();
|
|
277
|
+
const wrapper = this.wrapperEl()?.nativeElement;
|
|
278
|
+
if (wrapper) this.wrapperHeight.set(wrapper.clientHeight);
|
|
279
|
+
});
|
|
280
|
+
afterNextRender(() => {
|
|
281
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
282
|
+
const table = this.tableEl()?.nativeElement;
|
|
283
|
+
const wrapper = this.wrapperEl()?.nativeElement;
|
|
284
|
+
const observer = new ResizeObserver(() => {
|
|
285
|
+
this.measureStickyMetrics();
|
|
286
|
+
if (wrapper) this.wrapperHeight.set(wrapper.clientHeight);
|
|
287
|
+
});
|
|
288
|
+
if (table) observer.observe(table);
|
|
289
|
+
if (wrapper) observer.observe(wrapper);
|
|
290
|
+
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
measureStickyMetrics() {
|
|
294
|
+
const thead = this.theadEl()?.nativeElement;
|
|
295
|
+
if (!thead) return;
|
|
296
|
+
const cells = thead.querySelectorAll("th").length;
|
|
297
|
+
if (cells > 0) this.columnCount.set(cells);
|
|
298
|
+
const headerHeight = thead.getBoundingClientRect().height;
|
|
299
|
+
this.frozenRowsTop.set(Math.floor(headerHeight));
|
|
300
|
+
const frozenBody = thead.parentElement?.querySelector("tbody._frozen-rows");
|
|
301
|
+
if (!frozenBody) return;
|
|
302
|
+
let offset = headerHeight;
|
|
303
|
+
for (const row of Array.from(frozenBody.rows)) {
|
|
304
|
+
for (const cell of Array.from(row.cells)) cell.style.top = `${Math.floor(offset)}px`;
|
|
305
|
+
offset += row.getBoundingClientRect().height;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
rowContext(row, pageIndex, frozen = false) {
|
|
309
|
+
return {
|
|
310
|
+
$implicit: row,
|
|
311
|
+
rowIndex: frozen ? pageIndex : this.pageOffset() + pageIndex,
|
|
312
|
+
even: pageIndex % 2 === 1,
|
|
313
|
+
selected: this.isSelected(row),
|
|
314
|
+
expanded: this.isRowExpanded(row),
|
|
315
|
+
frozen
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
getSortOrder(field) {
|
|
319
|
+
if (this.sortMode() === "single") {
|
|
320
|
+
const sort = this.sortState();
|
|
321
|
+
return sort?.field === field ? sort.order : 0;
|
|
322
|
+
}
|
|
323
|
+
return this.multiSortState().find((m) => m.field === field)?.order ?? 0;
|
|
324
|
+
}
|
|
325
|
+
toggleColumnSort(field, originalEvent) {
|
|
326
|
+
const defaultOrder = this.defaultSortOrder() || 1;
|
|
327
|
+
if (this.sortMode() === "single") {
|
|
328
|
+
const current = this.sortState();
|
|
329
|
+
if (current?.field === field) this.sortState.set(current.order === defaultOrder ? {
|
|
330
|
+
field,
|
|
331
|
+
order: -defaultOrder
|
|
332
|
+
} : null);
|
|
333
|
+
else this.sortState.set({
|
|
334
|
+
field,
|
|
335
|
+
order: defaultOrder
|
|
336
|
+
});
|
|
337
|
+
} else {
|
|
338
|
+
const metas = [...this.multiSortState()];
|
|
339
|
+
const index = metas.findIndex((m) => m.field === field);
|
|
340
|
+
if (!(originalEvent instanceof MouseEvent && (originalEvent.metaKey || originalEvent.ctrlKey))) {
|
|
341
|
+
const existing = index >= 0 ? metas[index] : void 0;
|
|
342
|
+
this.multiSortState.set([{
|
|
343
|
+
field,
|
|
344
|
+
order: existing ? -existing.order : defaultOrder
|
|
345
|
+
}]);
|
|
346
|
+
} else if (index >= 0) {
|
|
347
|
+
metas[index] = {
|
|
348
|
+
field,
|
|
349
|
+
order: -metas[index].order
|
|
350
|
+
};
|
|
351
|
+
this.multiSortState.set(metas);
|
|
352
|
+
} else this.multiSortState.set([...metas, {
|
|
353
|
+
field,
|
|
354
|
+
order: defaultOrder
|
|
355
|
+
}]);
|
|
356
|
+
}
|
|
357
|
+
const single = this.sortState();
|
|
358
|
+
if (this.customSort()) this.sortFunction.emit({
|
|
359
|
+
data: this.value() ?? [],
|
|
360
|
+
mode: this.sortMode(),
|
|
361
|
+
field: this.sortMode() === "single" ? single?.field : void 0,
|
|
362
|
+
order: this.sortMode() === "single" ? single?.order ?? 0 : void 0,
|
|
363
|
+
multiSortMeta: this.sortMode() === "multiple" ? this.multiSortState() : void 0
|
|
364
|
+
});
|
|
365
|
+
this.sortChange.emit({
|
|
366
|
+
mode: this.sortMode(),
|
|
367
|
+
field: this.sortMode() === "single" ? single?.field : void 0,
|
|
368
|
+
order: this.sortMode() === "single" ? single?.order ?? 0 : void 0,
|
|
369
|
+
multiSortMeta: this.sortMode() === "multiple" ? this.multiSortState() : void 0
|
|
370
|
+
});
|
|
371
|
+
if (this.paginator()) this.first.set(0);
|
|
372
|
+
}
|
|
373
|
+
rowEquals(a, b) {
|
|
374
|
+
const key = this.dataKey();
|
|
375
|
+
return key ? resolveFieldData(a, key) === resolveFieldData(b, key) : a === b;
|
|
376
|
+
}
|
|
377
|
+
isSelected(row) {
|
|
378
|
+
return this.selectionArray().some((s) => this.rowEquals(s, row));
|
|
379
|
+
}
|
|
380
|
+
handleRowClick(originalEvent, data, index) {
|
|
381
|
+
const mode = this.selectionMode();
|
|
382
|
+
if (!mode) return;
|
|
383
|
+
if (originalEvent.target?.closest("button, a, input, label, select, textarea")) return;
|
|
384
|
+
const pointer = originalEvent instanceof MouseEvent ? originalEvent : null;
|
|
385
|
+
if (mode === "multiple" && pointer?.shiftKey && this.anchorRowIndex != null) {
|
|
386
|
+
this.selectRange(originalEvent, index);
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
const selected = this.isSelected(data);
|
|
390
|
+
const metaKey = !!pointer && (pointer.metaKey || pointer.ctrlKey);
|
|
391
|
+
if (this.metaKeySelection()) {
|
|
392
|
+
if (selected && metaKey) this.unselectRow(originalEvent, data, index, "row");
|
|
393
|
+
else if (mode === "single") {
|
|
394
|
+
this.selection.set(data);
|
|
395
|
+
this.rowSelect.emit({
|
|
396
|
+
originalEvent,
|
|
397
|
+
data,
|
|
398
|
+
index,
|
|
399
|
+
type: "row"
|
|
400
|
+
});
|
|
401
|
+
} else {
|
|
402
|
+
this.selection.set(metaKey ? [...this.selectionArray(), data] : [data]);
|
|
403
|
+
this.rowSelect.emit({
|
|
404
|
+
originalEvent,
|
|
405
|
+
data,
|
|
406
|
+
index,
|
|
407
|
+
type: "row"
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
} else if (selected) this.unselectRow(originalEvent, data, index, "row");
|
|
411
|
+
else if (mode === "single") {
|
|
412
|
+
this.selection.set(data);
|
|
413
|
+
this.rowSelect.emit({
|
|
414
|
+
originalEvent,
|
|
415
|
+
data,
|
|
416
|
+
index,
|
|
417
|
+
type: "row"
|
|
418
|
+
});
|
|
419
|
+
} else {
|
|
420
|
+
this.selection.set([...this.selectionArray(), data]);
|
|
421
|
+
this.rowSelect.emit({
|
|
422
|
+
originalEvent,
|
|
423
|
+
data,
|
|
424
|
+
index,
|
|
425
|
+
type: "row"
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
this.anchorRowIndex = index;
|
|
429
|
+
}
|
|
430
|
+
dataIndex(index) {
|
|
431
|
+
return this.lazy() && this.paginator() && !this.virtualScroll() ? index - this.clampedFirst() : index;
|
|
432
|
+
}
|
|
433
|
+
selectRange(originalEvent, index) {
|
|
434
|
+
const anchorLocal = this.anchorRowIndex == null ? null : this.dataIndex(this.anchorRowIndex);
|
|
435
|
+
const anchor = anchorLocal == null || anchorLocal < 0 || anchorLocal >= this.processedData().length ? index : this.anchorRowIndex;
|
|
436
|
+
this.anchorRowIndex = anchor;
|
|
437
|
+
const start = Math.min(anchor, index);
|
|
438
|
+
const end = Math.max(anchor, index);
|
|
439
|
+
const range = this.processedData().slice(this.dataIndex(start), this.dataIndex(end) + 1);
|
|
440
|
+
this.selection.set([...range]);
|
|
441
|
+
for (const [offset, data] of range.entries()) this.rowSelect.emit({
|
|
442
|
+
originalEvent,
|
|
443
|
+
data,
|
|
444
|
+
index: start + offset,
|
|
445
|
+
type: "row"
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
toggleRowWithCheckbox(originalEvent, data, index) {
|
|
449
|
+
if (this.isSelected(data)) {
|
|
450
|
+
this.selection.set(this.selectionArray().filter((s) => !this.rowEquals(s, data)));
|
|
451
|
+
this.rowUnselect.emit({
|
|
452
|
+
originalEvent,
|
|
453
|
+
data,
|
|
454
|
+
index,
|
|
455
|
+
type: "checkbox"
|
|
456
|
+
});
|
|
457
|
+
} else {
|
|
458
|
+
this.selection.set([...this.selectionArray(), data]);
|
|
459
|
+
this.rowSelect.emit({
|
|
460
|
+
originalEvent,
|
|
461
|
+
data,
|
|
462
|
+
index,
|
|
463
|
+
type: "checkbox"
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
this.anchorRowIndex = index ?? null;
|
|
467
|
+
}
|
|
468
|
+
toggleAllRows(originalEvent, checked) {
|
|
469
|
+
this.selection.set(checked ? [...this.processedData()] : []);
|
|
470
|
+
this.headerCheckboxToggle.emit({
|
|
471
|
+
originalEvent,
|
|
472
|
+
checked
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
selectRowWithRadio(originalEvent, data, index) {
|
|
476
|
+
if (this.isSelected(data)) return;
|
|
477
|
+
this.selection.set(data);
|
|
478
|
+
this.rowSelect.emit({
|
|
479
|
+
originalEvent,
|
|
480
|
+
data,
|
|
481
|
+
index,
|
|
482
|
+
type: "radio"
|
|
483
|
+
});
|
|
484
|
+
this.anchorRowIndex = index ?? null;
|
|
485
|
+
}
|
|
486
|
+
unselectRow(originalEvent, data, index, type) {
|
|
487
|
+
if (this.selectionMode() === "single") this.selection.set(null);
|
|
488
|
+
else this.selection.set(this.selectionArray().filter((s) => !this.rowEquals(s, data)));
|
|
489
|
+
this.rowUnselect.emit({
|
|
490
|
+
originalEvent,
|
|
491
|
+
data,
|
|
492
|
+
index,
|
|
493
|
+
type
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
rowKey(data) {
|
|
497
|
+
const key = this.dataKey();
|
|
498
|
+
if (!key) {
|
|
499
|
+
if (isDevMode()) console.warn("[ui-table] Row expansion requires `dataKey`.");
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
return String(resolveFieldData(data, key));
|
|
503
|
+
}
|
|
504
|
+
isRowExpanded(data) {
|
|
505
|
+
const key = this.dataKey();
|
|
506
|
+
if (!key) return false;
|
|
507
|
+
return !!this.expandedRowKeys()[String(resolveFieldData(data, key))];
|
|
508
|
+
}
|
|
509
|
+
toggleRow(data, originalEvent) {
|
|
510
|
+
const key = this.rowKey(data);
|
|
511
|
+
if (key === void 0) return;
|
|
512
|
+
const keys = { ...this.expandedRowKeys() };
|
|
513
|
+
if (keys[key]) {
|
|
514
|
+
delete keys[key];
|
|
515
|
+
this.expandedRowKeys.set(keys);
|
|
516
|
+
this.rowCollapse.emit({
|
|
517
|
+
originalEvent,
|
|
518
|
+
data
|
|
519
|
+
});
|
|
520
|
+
} else {
|
|
521
|
+
keys[key] = true;
|
|
522
|
+
this.expandedRowKeys.set(keys);
|
|
523
|
+
this.rowExpand.emit({
|
|
524
|
+
originalEvent,
|
|
525
|
+
data
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
onPaginatorRows(rows) {
|
|
530
|
+
this.rowsState.set(rows);
|
|
531
|
+
}
|
|
532
|
+
dropRow(dropIndex) {
|
|
533
|
+
const dragIndex = this.draggedRowIndex;
|
|
534
|
+
this.draggedRowIndex = null;
|
|
535
|
+
if (dragIndex == null || dragIndex === dropIndex) return;
|
|
536
|
+
const value = [...this.value() ?? []];
|
|
537
|
+
if (dragIndex < 0 || dragIndex >= value.length || dropIndex < 0 || dropIndex >= value.length) return;
|
|
538
|
+
const [moved] = value.splice(dragIndex, 1);
|
|
539
|
+
value.splice(dropIndex, 0, moved);
|
|
540
|
+
this.rowReorder.emit({
|
|
541
|
+
dragIndex,
|
|
542
|
+
dropIndex,
|
|
543
|
+
value
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
onWrapperScroll() {
|
|
547
|
+
if (!this.virtualScroll()) return;
|
|
548
|
+
const wrapper = this.wrapperEl()?.nativeElement;
|
|
549
|
+
if (wrapper) this.wrapperScrollTop.set(wrapper.scrollTop);
|
|
550
|
+
}
|
|
551
|
+
isRowTabbable(data) {
|
|
552
|
+
const tabbable = this.tabbableRow();
|
|
553
|
+
return tabbable !== void 0 && this.rowEquals(tabbable, data);
|
|
554
|
+
}
|
|
555
|
+
selectAllRows(originalEvent) {
|
|
556
|
+
if (this.selectionMode() !== "multiple") return;
|
|
557
|
+
this.selection.set([...this.processedData()]);
|
|
558
|
+
this.headerCheckboxToggle.emit({
|
|
559
|
+
originalEvent,
|
|
560
|
+
checked: true
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
selectRangeToEdge(index, edge) {
|
|
564
|
+
if (this.selectionMode() !== "multiple") return;
|
|
565
|
+
const data = this.processedData();
|
|
566
|
+
const localIndex = this.dataIndex(index);
|
|
567
|
+
const range = edge === "start" ? data.slice(0, localIndex + 1) : data.slice(localIndex);
|
|
568
|
+
this.selection.set([...range]);
|
|
569
|
+
this.anchorRowIndex = index;
|
|
570
|
+
}
|
|
571
|
+
lockColumnWidths() {
|
|
572
|
+
const table = this.tableEl()?.nativeElement;
|
|
573
|
+
if (!table) return;
|
|
574
|
+
const headerRow = table.querySelector("thead tr");
|
|
575
|
+
if (!headerRow) return;
|
|
576
|
+
const tableWidth = table.getBoundingClientRect().width;
|
|
577
|
+
const cells = Array.from(headerRow.children);
|
|
578
|
+
const widths = cells.map((cell) => cell.getBoundingClientRect().width);
|
|
579
|
+
cells.forEach((cell, i) => cell.style.width = `${widths[i]}px`);
|
|
580
|
+
table.style.tableLayout = "fixed";
|
|
581
|
+
table.style.width = `${tableWidth}px`;
|
|
582
|
+
}
|
|
583
|
+
resizeColumnFit(cell, startWidth, nextStartWidth, delta) {
|
|
584
|
+
const next = cell.nextElementSibling;
|
|
585
|
+
if (!next) return false;
|
|
586
|
+
const width = startWidth + delta;
|
|
587
|
+
const nextWidth = nextStartWidth - delta;
|
|
588
|
+
if (width < COLUMN_MIN_WIDTH || nextWidth < COLUMN_MIN_WIDTH) return false;
|
|
589
|
+
cell.style.width = `${width}px`;
|
|
590
|
+
next.style.width = `${nextWidth}px`;
|
|
591
|
+
return true;
|
|
592
|
+
}
|
|
593
|
+
notifyColResize(element, delta) {
|
|
594
|
+
this.colResize.emit({
|
|
595
|
+
element,
|
|
596
|
+
delta
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
static {
|
|
600
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
601
|
+
minVersion: "12.0.0",
|
|
602
|
+
version: "22.3.0",
|
|
603
|
+
ngImport: i0,
|
|
604
|
+
type: UiTable,
|
|
605
|
+
deps: [],
|
|
606
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
static {
|
|
610
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
611
|
+
minVersion: "17.0.0",
|
|
612
|
+
version: "22.3.0",
|
|
613
|
+
type: UiTable,
|
|
614
|
+
isStandalone: true,
|
|
615
|
+
selector: "ui-table",
|
|
616
|
+
inputs: {
|
|
617
|
+
value: {
|
|
618
|
+
classPropertyName: "value",
|
|
619
|
+
publicName: "value",
|
|
620
|
+
isSignal: true,
|
|
621
|
+
isRequired: false,
|
|
622
|
+
transformFunction: null
|
|
623
|
+
},
|
|
624
|
+
dataKey: {
|
|
625
|
+
classPropertyName: "dataKey",
|
|
626
|
+
publicName: "dataKey",
|
|
627
|
+
isSignal: true,
|
|
628
|
+
isRequired: false,
|
|
629
|
+
transformFunction: null
|
|
630
|
+
},
|
|
631
|
+
size: {
|
|
632
|
+
classPropertyName: "size",
|
|
633
|
+
publicName: "size",
|
|
634
|
+
isSignal: true,
|
|
635
|
+
isRequired: false,
|
|
636
|
+
transformFunction: null
|
|
637
|
+
},
|
|
638
|
+
showGridlines: {
|
|
639
|
+
classPropertyName: "showGridlines",
|
|
640
|
+
publicName: "showGridlines",
|
|
641
|
+
isSignal: true,
|
|
642
|
+
isRequired: false,
|
|
643
|
+
transformFunction: null
|
|
644
|
+
},
|
|
645
|
+
stripedRows: {
|
|
646
|
+
classPropertyName: "stripedRows",
|
|
647
|
+
publicName: "stripedRows",
|
|
648
|
+
isSignal: true,
|
|
649
|
+
isRequired: false,
|
|
650
|
+
transformFunction: null
|
|
651
|
+
},
|
|
652
|
+
rowHover: {
|
|
653
|
+
classPropertyName: "rowHover",
|
|
654
|
+
publicName: "rowHover",
|
|
655
|
+
isSignal: true,
|
|
656
|
+
isRequired: false,
|
|
657
|
+
transformFunction: null
|
|
658
|
+
},
|
|
659
|
+
tableStyle: {
|
|
660
|
+
classPropertyName: "tableStyle",
|
|
661
|
+
publicName: "tableStyle",
|
|
662
|
+
isSignal: true,
|
|
663
|
+
isRequired: false,
|
|
664
|
+
transformFunction: null
|
|
665
|
+
},
|
|
666
|
+
selectionMode: {
|
|
667
|
+
classPropertyName: "selectionMode",
|
|
668
|
+
publicName: "selectionMode",
|
|
669
|
+
isSignal: true,
|
|
670
|
+
isRequired: false,
|
|
671
|
+
transformFunction: null
|
|
672
|
+
},
|
|
673
|
+
selection: {
|
|
674
|
+
classPropertyName: "selection",
|
|
675
|
+
publicName: "selection",
|
|
676
|
+
isSignal: true,
|
|
677
|
+
isRequired: false,
|
|
678
|
+
transformFunction: null
|
|
679
|
+
},
|
|
680
|
+
metaKeySelection: {
|
|
681
|
+
classPropertyName: "metaKeySelection",
|
|
682
|
+
publicName: "metaKeySelection",
|
|
683
|
+
isSignal: true,
|
|
684
|
+
isRequired: false,
|
|
685
|
+
transformFunction: null
|
|
686
|
+
},
|
|
687
|
+
sortMode: {
|
|
688
|
+
classPropertyName: "sortMode",
|
|
689
|
+
publicName: "sortMode",
|
|
690
|
+
isSignal: true,
|
|
691
|
+
isRequired: false,
|
|
692
|
+
transformFunction: null
|
|
693
|
+
},
|
|
694
|
+
sortField: {
|
|
695
|
+
classPropertyName: "sortField",
|
|
696
|
+
publicName: "sortField",
|
|
697
|
+
isSignal: true,
|
|
698
|
+
isRequired: false,
|
|
699
|
+
transformFunction: null
|
|
700
|
+
},
|
|
701
|
+
sortOrder: {
|
|
702
|
+
classPropertyName: "sortOrder",
|
|
703
|
+
publicName: "sortOrder",
|
|
704
|
+
isSignal: true,
|
|
705
|
+
isRequired: false,
|
|
706
|
+
transformFunction: null
|
|
707
|
+
},
|
|
708
|
+
multiSortMeta: {
|
|
709
|
+
classPropertyName: "multiSortMeta",
|
|
710
|
+
publicName: "multiSortMeta",
|
|
711
|
+
isSignal: true,
|
|
712
|
+
isRequired: false,
|
|
713
|
+
transformFunction: null
|
|
714
|
+
},
|
|
715
|
+
defaultSortOrder: {
|
|
716
|
+
classPropertyName: "defaultSortOrder",
|
|
717
|
+
publicName: "defaultSortOrder",
|
|
718
|
+
isSignal: true,
|
|
719
|
+
isRequired: false,
|
|
720
|
+
transformFunction: null
|
|
721
|
+
},
|
|
722
|
+
customSort: {
|
|
723
|
+
classPropertyName: "customSort",
|
|
724
|
+
publicName: "customSort",
|
|
725
|
+
isSignal: true,
|
|
726
|
+
isRequired: false,
|
|
727
|
+
transformFunction: null
|
|
728
|
+
},
|
|
729
|
+
paginator: {
|
|
730
|
+
classPropertyName: "paginator",
|
|
731
|
+
publicName: "paginator",
|
|
732
|
+
isSignal: true,
|
|
733
|
+
isRequired: false,
|
|
734
|
+
transformFunction: null
|
|
735
|
+
},
|
|
736
|
+
rows: {
|
|
737
|
+
classPropertyName: "rows",
|
|
738
|
+
publicName: "rows",
|
|
739
|
+
isSignal: true,
|
|
740
|
+
isRequired: false,
|
|
741
|
+
transformFunction: null
|
|
742
|
+
},
|
|
743
|
+
first: {
|
|
744
|
+
classPropertyName: "first",
|
|
745
|
+
publicName: "first",
|
|
746
|
+
isSignal: true,
|
|
747
|
+
isRequired: false,
|
|
748
|
+
transformFunction: null
|
|
749
|
+
},
|
|
750
|
+
rowsPerPageOptions: {
|
|
751
|
+
classPropertyName: "rowsPerPageOptions",
|
|
752
|
+
publicName: "rowsPerPageOptions",
|
|
753
|
+
isSignal: true,
|
|
754
|
+
isRequired: false,
|
|
755
|
+
transformFunction: null
|
|
756
|
+
},
|
|
757
|
+
pageLinks: {
|
|
758
|
+
classPropertyName: "pageLinks",
|
|
759
|
+
publicName: "pageLinks",
|
|
760
|
+
isSignal: true,
|
|
761
|
+
isRequired: false,
|
|
762
|
+
transformFunction: null
|
|
763
|
+
},
|
|
764
|
+
totalRecords: {
|
|
765
|
+
classPropertyName: "totalRecords",
|
|
766
|
+
publicName: "totalRecords",
|
|
767
|
+
isSignal: true,
|
|
768
|
+
isRequired: false,
|
|
769
|
+
transformFunction: null
|
|
770
|
+
},
|
|
771
|
+
scrollable: {
|
|
772
|
+
classPropertyName: "scrollable",
|
|
773
|
+
publicName: "scrollable",
|
|
774
|
+
isSignal: true,
|
|
775
|
+
isRequired: false,
|
|
776
|
+
transformFunction: null
|
|
777
|
+
},
|
|
778
|
+
scrollHeight: {
|
|
779
|
+
classPropertyName: "scrollHeight",
|
|
780
|
+
publicName: "scrollHeight",
|
|
781
|
+
isSignal: true,
|
|
782
|
+
isRequired: false,
|
|
783
|
+
transformFunction: null
|
|
784
|
+
},
|
|
785
|
+
frozenValue: {
|
|
786
|
+
classPropertyName: "frozenValue",
|
|
787
|
+
publicName: "frozenValue",
|
|
788
|
+
isSignal: true,
|
|
789
|
+
isRequired: false,
|
|
790
|
+
transformFunction: null
|
|
791
|
+
},
|
|
792
|
+
expandedRowKeys: {
|
|
793
|
+
classPropertyName: "expandedRowKeys",
|
|
794
|
+
publicName: "expandedRowKeys",
|
|
795
|
+
isSignal: true,
|
|
796
|
+
isRequired: false,
|
|
797
|
+
transformFunction: null
|
|
798
|
+
},
|
|
799
|
+
resizableColumns: {
|
|
800
|
+
classPropertyName: "resizableColumns",
|
|
801
|
+
publicName: "resizableColumns",
|
|
802
|
+
isSignal: true,
|
|
803
|
+
isRequired: false,
|
|
804
|
+
transformFunction: null
|
|
805
|
+
},
|
|
806
|
+
loading: {
|
|
807
|
+
classPropertyName: "loading",
|
|
808
|
+
publicName: "loading",
|
|
809
|
+
isSignal: true,
|
|
810
|
+
isRequired: false,
|
|
811
|
+
transformFunction: null
|
|
812
|
+
},
|
|
813
|
+
loadingAriaLabel: {
|
|
814
|
+
classPropertyName: "loadingAriaLabel",
|
|
815
|
+
publicName: "loadingAriaLabel",
|
|
816
|
+
isSignal: true,
|
|
817
|
+
isRequired: false,
|
|
818
|
+
transformFunction: null
|
|
819
|
+
},
|
|
820
|
+
emptyMessage: {
|
|
821
|
+
classPropertyName: "emptyMessage",
|
|
822
|
+
publicName: "emptyMessage",
|
|
823
|
+
isSignal: true,
|
|
824
|
+
isRequired: false,
|
|
825
|
+
transformFunction: null
|
|
826
|
+
},
|
|
827
|
+
emptyIcon: {
|
|
828
|
+
classPropertyName: "emptyIcon",
|
|
829
|
+
publicName: "emptyIcon",
|
|
830
|
+
isSignal: true,
|
|
831
|
+
isRequired: false,
|
|
832
|
+
transformFunction: null
|
|
833
|
+
},
|
|
834
|
+
virtualScroll: {
|
|
835
|
+
classPropertyName: "virtualScroll",
|
|
836
|
+
publicName: "virtualScroll",
|
|
837
|
+
isSignal: true,
|
|
838
|
+
isRequired: false,
|
|
839
|
+
transformFunction: null
|
|
840
|
+
},
|
|
841
|
+
virtualScrollItemSize: {
|
|
842
|
+
classPropertyName: "virtualScrollItemSize",
|
|
843
|
+
publicName: "virtualScrollItemSize",
|
|
844
|
+
isSignal: true,
|
|
845
|
+
isRequired: false,
|
|
846
|
+
transformFunction: null
|
|
847
|
+
},
|
|
848
|
+
lazy: {
|
|
849
|
+
classPropertyName: "lazy",
|
|
850
|
+
publicName: "lazy",
|
|
851
|
+
isSignal: true,
|
|
852
|
+
isRequired: false,
|
|
853
|
+
transformFunction: null
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
outputs: {
|
|
857
|
+
selection: "selectionChange",
|
|
858
|
+
first: "firstChange",
|
|
859
|
+
expandedRowKeys: "expandedRowKeysChange",
|
|
860
|
+
rowSelect: "rowSelect",
|
|
861
|
+
rowUnselect: "rowUnselect",
|
|
862
|
+
headerCheckboxToggle: "headerCheckboxToggle",
|
|
863
|
+
sortFunction: "sortFunction",
|
|
864
|
+
sortChange: "sortChange",
|
|
865
|
+
pageChange: "pageChange",
|
|
866
|
+
rowExpand: "rowExpand",
|
|
867
|
+
rowCollapse: "rowCollapse",
|
|
868
|
+
colResize: "colResize",
|
|
869
|
+
rowReorder: "rowReorder",
|
|
870
|
+
lazyLoad: "lazyLoad"
|
|
871
|
+
},
|
|
872
|
+
queries: [
|
|
873
|
+
{
|
|
874
|
+
propertyName: "captionTemplate",
|
|
875
|
+
first: true,
|
|
876
|
+
predicate: ["caption"],
|
|
877
|
+
descendants: true,
|
|
878
|
+
isSignal: true
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
propertyName: "headerTemplate",
|
|
882
|
+
first: true,
|
|
883
|
+
predicate: ["header"],
|
|
884
|
+
descendants: true,
|
|
885
|
+
isSignal: true
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
propertyName: "bodyTemplate",
|
|
889
|
+
first: true,
|
|
890
|
+
predicate: ["body"],
|
|
891
|
+
descendants: true,
|
|
892
|
+
isSignal: true
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
propertyName: "footerTemplate",
|
|
896
|
+
first: true,
|
|
897
|
+
predicate: ["footer"],
|
|
898
|
+
descendants: true,
|
|
899
|
+
isSignal: true
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
propertyName: "expandedRowTemplate",
|
|
903
|
+
first: true,
|
|
904
|
+
predicate: ["expandedrow"],
|
|
905
|
+
descendants: true,
|
|
906
|
+
isSignal: true
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
propertyName: "emptyMessageTemplate",
|
|
910
|
+
first: true,
|
|
911
|
+
predicate: ["emptymessage"],
|
|
912
|
+
descendants: true,
|
|
913
|
+
isSignal: true
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
viewQueries: [
|
|
917
|
+
{
|
|
918
|
+
propertyName: "tableEl",
|
|
919
|
+
first: true,
|
|
920
|
+
predicate: ["tableEl"],
|
|
921
|
+
descendants: true,
|
|
922
|
+
isSignal: true
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
propertyName: "theadEl",
|
|
926
|
+
first: true,
|
|
927
|
+
predicate: ["theadEl"],
|
|
928
|
+
descendants: true,
|
|
929
|
+
isSignal: true
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
propertyName: "wrapperEl",
|
|
933
|
+
first: true,
|
|
934
|
+
predicate: ["wrapperEl"],
|
|
935
|
+
descendants: true,
|
|
936
|
+
isSignal: true
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
ngImport: i0,
|
|
940
|
+
template: "<div [class]=\"classes()\" [attr.aria-busy]=\"loading() ? 'true' : null\">\n @if (captionTemplate(); as caption) {\n <div class=\"ui-table-caption\">\n <ng-container [ngTemplateOutlet]=\"caption\" />\n </div>\n }\n\n <div class=\"ui-table-container\">\n <div\n #wrapperEl\n class=\"ui-table-wrapper\"\n [attr.tabindex]=\"scrollable() ? 0 : null\"\n [style.max-height]=\"scrollMaxHeight()\"\n [style.--ui-table-frozen-top.px]=\"frozenRowsTop()\"\n (scroll)=\"onWrapperScroll()\"\n >\n <table #tableEl class=\"ui-table-table\" [style]=\"tableStyle() ?? null\">\n @if (headerTemplate(); as header) {\n <thead #theadEl class=\"ui-table-thead\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n </thead>\n }\n\n @if (!loading() && frozenValue()?.length) {\n <tbody class=\"ui-table-tbody _frozen-rows\">\n @for (row of frozenValue(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index, true)\"\n />\n }\n }\n </tbody>\n }\n\n <tbody class=\"ui-table-tbody\">\n @if (loading()) {\n <tr class=\"ui-table-loading-row\">\n <td class=\"ui-table-loading-cell\" [attr.colspan]=\"columnCount()\">\n <ui-spinner [ariaLabel]=\"loadingAriaLabel()\" />\n </td>\n </tr>\n } @else {\n @if (virtualScroll() && virtualPadding().top > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().top\"></td>\n </tr>\n }\n\n @for (row of pageData(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n @if (expandedRowTemplate(); as expansion) {\n @if (isRowExpanded(row)) {\n <ng-container\n [ngTemplateOutlet]=\"expansion\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n }\n } @empty {\n <tr class=\"ui-table-empty-row\">\n <td class=\"ui-table-empty-cell\" [attr.colspan]=\"columnCount()\">\n @if (emptyMessageTemplate(); as empty) {\n <ng-container [ngTemplateOutlet]=\"empty\" />\n } @else {\n <ui-empty-state size=\"small\" [icon]=\"emptyIcon()\" [title]=\"emptyMessage()\" />\n }\n </td>\n </tr>\n }\n\n @if (virtualScroll() && virtualPadding().bottom > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().bottom\"></td>\n </tr>\n }\n }\n </tbody>\n\n @if (footerTemplate(); as footer) {\n <tfoot class=\"ui-table-tfoot\">\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </tfoot>\n }\n </table>\n </div>\n </div>\n\n @if (paginator()) {\n <ui-paginator\n [totalRecords]=\"effectiveTotalRecords()\"\n [rows]=\"rowsState()\"\n (rowsChange)=\"onPaginatorRows($event)\"\n [first]=\"first()\"\n (firstChange)=\"first.set($event)\"\n [pageLinks]=\"pageLinks()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n ariaLabel=\"Pagination du tableau\"\n (pageChange)=\"pageChange.emit($event)\"\n />\n }\n</div>\n",
|
|
941
|
+
styles: ["ui-table{display:block;min-width:0}ui-table:has(>.ui-table._flex-scroll){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table{font-family:var(--ui-table-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-table-body-color, var(--table-body-content-odd))}.ui-table-container{min-width:0}.ui-table-wrapper{min-width:0;overflow-x:auto}.ui-table-loading-cell{text-align:center}.ui-table-loading-cell ui-spinner{display:flex;justify-content:center;padding:var(--ui-table-loading-padding-y, var(--units-3xl)) 0}.ui-table-table{width:100%;border-collapse:separate;border-spacing:0}.ui-table-table th,.ui-table-table td{box-sizing:border-box}.ui-table-caption{padding:var(--units-md) var(--units-default);font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table-thead th{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-head-surface, var(--table-head-surface-default));color:var(--ui-table-head-color, var(--table-head-content-default));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-head-stroke, var(--table-head-stroke-default));font-size:var(--size-typography-text-md);font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left;white-space:nowrap}.ui-table-tbody td{padding:var(--ui-table-cell-padding, var(--units-default));background-color:var(--ui-table-body-surface, var(--table-body-surface-odd));color:var(--ui-table-body-color, var(--table-body-content-odd));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-body-stroke, var(--table-body-stroke-odd));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-tbody tr:last-child td{border-bottom-color:transparent}.ui-table._striped .ui-table-tbody tr:nth-child(2n) td{background-color:var(--ui-table-body-surface-even, var(--table-body-surface-even));color:var(--ui-table-body-color-even, var(--table-body-content-even));border-bottom-color:var(--ui-table-body-stroke-even, var(--table-body-stroke-even))}.ui-table._hoverable .ui-table-tbody tr:hover td{background-color:var(--ui-table-body-surface-hover, var(--table-body-surface-hover));color:var(--ui-table-body-color-hover, var(--table-body-content-hover))}.ui-table-tbody tr._selected td,.ui-table._striped .ui-table-tbody tr._selected td{background-color:var(--ui-table-body-surface-selected, var(--informative-highlightlow-surface-default));color:var(--ui-table-body-color-selected, var(--informative-highlightlow-content-default));border-bottom-color:var(--ui-table-body-stroke-selected, var(--informative-highlightlow-stroke-default))}.ui-table._hoverable .ui-table-tbody tr._selected:hover td{background-color:var(--ui-table-body-surface-selected-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-table-body-color-selected-hover, var(--informative-highlightlow-content-hover))}.ui-table-selectable-row{cursor:pointer}.ui-table-selectable-row:focus-visible{outline:var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid var(--ui-table-focus-ring-color, var(--global-border-focus));outline-offset:calc(-1 * var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))))}.ui-table-reorderable-row{cursor:grab}.ui-table-reorderable-row._drop-above td{box-shadow:inset 0 var(--ui-table-drop-indicator-width, var(--stroke-lg)) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-reorderable-row._drop-below td{box-shadow:inset 0 calc(-1 * var(--ui-table-drop-indicator-width, var(--stroke-lg))) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-empty-cell{text-align:center}.ui-table-empty-cell ui-empty-state{display:flex;justify-content:center;padding:var(--units-xl) 0}.ui-table-virtual-spacer td{padding:0;border:none;background:none}.ui-table-tfoot td{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-footer-surface, var(--table-footer-surface-default));color:var(--ui-table-footer-color, var(--table-footer-content-default));border-top:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-footer-stroke, var(--table-footer-stroke-default));font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left}.ui-table._small .ui-table-tbody td{padding:var(--ui-table-cell-padding-small, var(--units-sm) var(--units-md))}.ui-table._small .ui-table-thead th,.ui-table._small .ui-table-tfoot td{padding:var(--ui-table-head-padding-small, var(--units-sm) var(--units-md))}.ui-table._large .ui-table-tbody td{padding:var(--ui-table-cell-padding-large, var(--units-xl) var(--units-default))}.ui-table._large .ui-table-thead th,.ui-table._large .ui-table-tfoot td{padding:var(--ui-table-head-padding-large, var(--units-default))}.ui-table._gridlines .ui-table-table{border:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th,.ui-table._gridlines .ui-table-tbody td,.ui-table._gridlines .ui-table-tfoot td{border-right:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th:last-child,.ui-table._gridlines .ui-table-tbody td:last-child,.ui-table._gridlines .ui-table-tfoot td:last-child{border-right:none}.ui-table-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-sortable-column:hover{background-color:var(--ui-table-head-surface-hover, var(--table-head-surface-hover));color:var(--ui-table-head-color-hover, var(--table-head-content-hover))}.ui-table-sortable-column:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-table-focus-ring-color, var(--global-border-focus))}.ui-table-sortable-column .ui-table-sort-icon{margin-left:var(--units-xs);vertical-align:middle}.ui-table._scrollable .ui-table-wrapper{overflow:auto}.ui-table._scrollable .ui-table-thead th{position:sticky;top:0;z-index:2}.ui-table._scrollable .ui-table-thead th._frozen-left,.ui-table._scrollable .ui-table-thead th._frozen-right{z-index:3}.ui-table._scrollable .ui-table-tfoot td{position:sticky;bottom:0;z-index:2}.ui-table._scrollable .ui-table-tbody._frozen-rows td{position:sticky;top:var(--ui-table-frozen-top, 0);z-index:1;font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table._flex-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table._flex-scroll .ui-table-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0}.ui-table._flex-scroll .ui-table-wrapper{flex:1 1 0;min-height:0}.ui-table._virtual .ui-table-wrapper{overflow-anchor:none}.ui-table .ui-table-table th._frozen-left,.ui-table .ui-table-table th._frozen-right,.ui-table .ui-table-table td._frozen-left,.ui-table .ui-table-table td._frozen-right{position:sticky;z-index:1}.ui-table-thead th._frozen-left,.ui-table-thead th._frozen-right{z-index:3}.ui-table._resizable .ui-table-thead th{position:relative;overflow:hidden}.ui-table-column-resizer{position:absolute;top:0;right:0;width:var(--ui-table-resizer-hit-width, var(--units-sm));height:100%;cursor:col-resize;touch-action:none}.ui-table-column-resizer:hover{border-right:var(--stroke-default) solid var(--ui-table-resizer-stroke-hover, var(--global-border-default-hover))}\n"],
|
|
942
|
+
dependencies: [
|
|
943
|
+
{
|
|
944
|
+
kind: "directive",
|
|
945
|
+
type: NgTemplateOutlet,
|
|
946
|
+
selector: "[ngTemplateOutlet]",
|
|
947
|
+
inputs: [
|
|
948
|
+
"ngTemplateOutletContext",
|
|
949
|
+
"ngTemplateOutlet",
|
|
950
|
+
"ngTemplateOutletInjector"
|
|
951
|
+
]
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
kind: "component",
|
|
955
|
+
type: UiPaginator,
|
|
956
|
+
selector: "ui-paginator",
|
|
957
|
+
inputs: [
|
|
958
|
+
"totalRecords",
|
|
959
|
+
"rows",
|
|
960
|
+
"first",
|
|
961
|
+
"pageLinks",
|
|
962
|
+
"ellipsis",
|
|
963
|
+
"boundaryCount",
|
|
964
|
+
"rowsPerPageOptions",
|
|
965
|
+
"showFirstLastIcon",
|
|
966
|
+
"showPageLinks",
|
|
967
|
+
"showCurrentPageReport",
|
|
968
|
+
"currentPageReportTemplate",
|
|
969
|
+
"disabled",
|
|
970
|
+
"ripple",
|
|
971
|
+
"ariaLabel",
|
|
972
|
+
"pageAriaLabel",
|
|
973
|
+
"firstPageAriaLabel",
|
|
974
|
+
"prevPageAriaLabel",
|
|
975
|
+
"nextPageAriaLabel",
|
|
976
|
+
"lastPageAriaLabel",
|
|
977
|
+
"rowsPerPageAriaLabel"
|
|
978
|
+
],
|
|
979
|
+
outputs: [
|
|
980
|
+
"rowsChange",
|
|
981
|
+
"firstChange",
|
|
982
|
+
"pageChange"
|
|
983
|
+
]
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
kind: "component",
|
|
987
|
+
type: UiEmptyState,
|
|
988
|
+
selector: "ui-empty-state",
|
|
989
|
+
inputs: [
|
|
990
|
+
"title",
|
|
991
|
+
"description",
|
|
992
|
+
"icon",
|
|
993
|
+
"iconType",
|
|
994
|
+
"size",
|
|
995
|
+
"showMedia",
|
|
996
|
+
"ariaLabel",
|
|
997
|
+
"ariaLabelledBy"
|
|
998
|
+
]
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
kind: "component",
|
|
1002
|
+
type: UiSpinner,
|
|
1003
|
+
selector: "ui-spinner",
|
|
1004
|
+
inputs: [
|
|
1005
|
+
"size",
|
|
1006
|
+
"orientation",
|
|
1007
|
+
"label",
|
|
1008
|
+
"ariaLabel",
|
|
1009
|
+
"spinnerTemplate",
|
|
1010
|
+
"image",
|
|
1011
|
+
"imageAlt",
|
|
1012
|
+
"icon",
|
|
1013
|
+
"strokeWidth",
|
|
1014
|
+
"fill",
|
|
1015
|
+
"animationDuration",
|
|
1016
|
+
"delay"
|
|
1017
|
+
]
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
1024
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1025
|
+
minVersion: "12.0.0",
|
|
1026
|
+
version: "22.3.0",
|
|
1027
|
+
ngImport: i0,
|
|
1028
|
+
type: UiTable,
|
|
1029
|
+
decorators: [{
|
|
1030
|
+
type: Component,
|
|
1031
|
+
args: [{
|
|
1032
|
+
selector: "ui-table",
|
|
1033
|
+
imports: [
|
|
1034
|
+
NgTemplateOutlet,
|
|
1035
|
+
UiPaginator,
|
|
1036
|
+
UiEmptyState,
|
|
1037
|
+
UiSpinner
|
|
1038
|
+
],
|
|
1039
|
+
encapsulation: ViewEncapsulation.None,
|
|
1040
|
+
template: "<div [class]=\"classes()\" [attr.aria-busy]=\"loading() ? 'true' : null\">\n @if (captionTemplate(); as caption) {\n <div class=\"ui-table-caption\">\n <ng-container [ngTemplateOutlet]=\"caption\" />\n </div>\n }\n\n <div class=\"ui-table-container\">\n <div\n #wrapperEl\n class=\"ui-table-wrapper\"\n [attr.tabindex]=\"scrollable() ? 0 : null\"\n [style.max-height]=\"scrollMaxHeight()\"\n [style.--ui-table-frozen-top.px]=\"frozenRowsTop()\"\n (scroll)=\"onWrapperScroll()\"\n >\n <table #tableEl class=\"ui-table-table\" [style]=\"tableStyle() ?? null\">\n @if (headerTemplate(); as header) {\n <thead #theadEl class=\"ui-table-thead\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n </thead>\n }\n\n @if (!loading() && frozenValue()?.length) {\n <tbody class=\"ui-table-tbody _frozen-rows\">\n @for (row of frozenValue(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index, true)\"\n />\n }\n }\n </tbody>\n }\n\n <tbody class=\"ui-table-tbody\">\n @if (loading()) {\n <tr class=\"ui-table-loading-row\">\n <td class=\"ui-table-loading-cell\" [attr.colspan]=\"columnCount()\">\n <ui-spinner [ariaLabel]=\"loadingAriaLabel()\" />\n </td>\n </tr>\n } @else {\n @if (virtualScroll() && virtualPadding().top > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().top\"></td>\n </tr>\n }\n\n @for (row of pageData(); track $index) {\n @if (bodyTemplate(); as body) {\n <ng-container\n [ngTemplateOutlet]=\"body\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n @if (expandedRowTemplate(); as expansion) {\n @if (isRowExpanded(row)) {\n <ng-container\n [ngTemplateOutlet]=\"expansion\"\n [ngTemplateOutletContext]=\"rowContext(row, $index)\"\n />\n }\n }\n } @empty {\n <tr class=\"ui-table-empty-row\">\n <td class=\"ui-table-empty-cell\" [attr.colspan]=\"columnCount()\">\n @if (emptyMessageTemplate(); as empty) {\n <ng-container [ngTemplateOutlet]=\"empty\" />\n } @else {\n <ui-empty-state size=\"small\" [icon]=\"emptyIcon()\" [title]=\"emptyMessage()\" />\n }\n </td>\n </tr>\n }\n\n @if (virtualScroll() && virtualPadding().bottom > 0) {\n <tr class=\"ui-table-virtual-spacer\" aria-hidden=\"true\">\n <td [attr.colspan]=\"columnCount()\" [style.height.px]=\"virtualPadding().bottom\"></td>\n </tr>\n }\n }\n </tbody>\n\n @if (footerTemplate(); as footer) {\n <tfoot class=\"ui-table-tfoot\">\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </tfoot>\n }\n </table>\n </div>\n </div>\n\n @if (paginator()) {\n <ui-paginator\n [totalRecords]=\"effectiveTotalRecords()\"\n [rows]=\"rowsState()\"\n (rowsChange)=\"onPaginatorRows($event)\"\n [first]=\"first()\"\n (firstChange)=\"first.set($event)\"\n [pageLinks]=\"pageLinks()\"\n [rowsPerPageOptions]=\"rowsPerPageOptions()\"\n ariaLabel=\"Pagination du tableau\"\n (pageChange)=\"pageChange.emit($event)\"\n />\n }\n</div>\n",
|
|
1041
|
+
styles: ["ui-table{display:block;min-width:0}ui-table:has(>.ui-table._flex-scroll){display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table{font-family:var(--ui-table-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-table-body-color, var(--table-body-content-odd))}.ui-table-container{min-width:0}.ui-table-wrapper{min-width:0;overflow-x:auto}.ui-table-loading-cell{text-align:center}.ui-table-loading-cell ui-spinner{display:flex;justify-content:center;padding:var(--ui-table-loading-padding-y, var(--units-3xl)) 0}.ui-table-table{width:100%;border-collapse:separate;border-spacing:0}.ui-table-table th,.ui-table-table td{box-sizing:border-box}.ui-table-caption{padding:var(--units-md) var(--units-default);font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table-thead th{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-head-surface, var(--table-head-surface-default));color:var(--ui-table-head-color, var(--table-head-content-default));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-head-stroke, var(--table-head-stroke-default));font-size:var(--size-typography-text-md);font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left;white-space:nowrap}.ui-table-tbody td{padding:var(--ui-table-cell-padding, var(--units-default));background-color:var(--ui-table-body-surface, var(--table-body-surface-odd));color:var(--ui-table-body-color, var(--table-body-content-odd));border-bottom:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-body-stroke, var(--table-body-stroke-odd));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-tbody tr:last-child td{border-bottom-color:transparent}.ui-table._striped .ui-table-tbody tr:nth-child(2n) td{background-color:var(--ui-table-body-surface-even, var(--table-body-surface-even));color:var(--ui-table-body-color-even, var(--table-body-content-even));border-bottom-color:var(--ui-table-body-stroke-even, var(--table-body-stroke-even))}.ui-table._hoverable .ui-table-tbody tr:hover td{background-color:var(--ui-table-body-surface-hover, var(--table-body-surface-hover));color:var(--ui-table-body-color-hover, var(--table-body-content-hover))}.ui-table-tbody tr._selected td,.ui-table._striped .ui-table-tbody tr._selected td{background-color:var(--ui-table-body-surface-selected, var(--informative-highlightlow-surface-default));color:var(--ui-table-body-color-selected, var(--informative-highlightlow-content-default));border-bottom-color:var(--ui-table-body-stroke-selected, var(--informative-highlightlow-stroke-default))}.ui-table._hoverable .ui-table-tbody tr._selected:hover td{background-color:var(--ui-table-body-surface-selected-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-table-body-color-selected-hover, var(--informative-highlightlow-content-hover))}.ui-table-selectable-row{cursor:pointer}.ui-table-selectable-row:focus-visible{outline:var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid var(--ui-table-focus-ring-color, var(--global-border-focus));outline-offset:calc(-1 * var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))))}.ui-table-reorderable-row{cursor:grab}.ui-table-reorderable-row._drop-above td{box-shadow:inset 0 var(--ui-table-drop-indicator-width, var(--stroke-lg)) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-reorderable-row._drop-below td{box-shadow:inset 0 calc(-1 * var(--ui-table-drop-indicator-width, var(--stroke-lg))) 0 0 var(--ui-table-drop-indicator-color, var(--global-border-focus))}.ui-table-empty-cell{text-align:center}.ui-table-empty-cell ui-empty-state{display:flex;justify-content:center;padding:var(--units-xl) 0}.ui-table-virtual-spacer td{padding:0;border:none;background:none}.ui-table-tfoot td{padding:var(--ui-table-head-padding, var(--units-md) var(--units-default));background-color:var(--ui-table-footer-surface, var(--table-footer-surface-default));color:var(--ui-table-footer-color, var(--table-footer-content-default));border-top:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-footer-stroke, var(--table-footer-stroke-default));font-weight:var(--ui-table-weight, var(--weight-bold));text-align:left}.ui-table._small .ui-table-tbody td{padding:var(--ui-table-cell-padding-small, var(--units-sm) var(--units-md))}.ui-table._small .ui-table-thead th,.ui-table._small .ui-table-tfoot td{padding:var(--ui-table-head-padding-small, var(--units-sm) var(--units-md))}.ui-table._large .ui-table-tbody td{padding:var(--ui-table-cell-padding-large, var(--units-xl) var(--units-default))}.ui-table._large .ui-table-thead th,.ui-table._large .ui-table-tfoot td{padding:var(--ui-table-head-padding-large, var(--units-default))}.ui-table._gridlines .ui-table-table{border:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th,.ui-table._gridlines .ui-table-tbody td,.ui-table._gridlines .ui-table-tfoot td{border-right:var(--ui-table-stroke-width, var(--stroke-sm)) solid var(--ui-table-gridline-stroke, var(--table-body-stroke-odd))}.ui-table._gridlines .ui-table-thead th:last-child,.ui-table._gridlines .ui-table-tbody td:last-child,.ui-table._gridlines .ui-table-tfoot td:last-child{border-right:none}.ui-table-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-table-sortable-column:hover{background-color:var(--ui-table-head-surface-hover, var(--table-head-surface-hover));color:var(--ui-table-head-color-hover, var(--table-head-content-hover))}.ui-table-sortable-column:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-table-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-table-focus-ring-color, var(--global-border-focus))}.ui-table-sortable-column .ui-table-sort-icon{margin-left:var(--units-xs);vertical-align:middle}.ui-table._scrollable .ui-table-wrapper{overflow:auto}.ui-table._scrollable .ui-table-thead th{position:sticky;top:0;z-index:2}.ui-table._scrollable .ui-table-thead th._frozen-left,.ui-table._scrollable .ui-table-thead th._frozen-right{z-index:3}.ui-table._scrollable .ui-table-tfoot td{position:sticky;bottom:0;z-index:2}.ui-table._scrollable .ui-table-tbody._frozen-rows td{position:sticky;top:var(--ui-table-frozen-top, 0);z-index:1;font-weight:var(--ui-table-weight, var(--weight-bold))}.ui-table._flex-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.ui-table._flex-scroll .ui-table-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0}.ui-table._flex-scroll .ui-table-wrapper{flex:1 1 0;min-height:0}.ui-table._virtual .ui-table-wrapper{overflow-anchor:none}.ui-table .ui-table-table th._frozen-left,.ui-table .ui-table-table th._frozen-right,.ui-table .ui-table-table td._frozen-left,.ui-table .ui-table-table td._frozen-right{position:sticky;z-index:1}.ui-table-thead th._frozen-left,.ui-table-thead th._frozen-right{z-index:3}.ui-table._resizable .ui-table-thead th{position:relative;overflow:hidden}.ui-table-column-resizer{position:absolute;top:0;right:0;width:var(--ui-table-resizer-hit-width, var(--units-sm));height:100%;cursor:col-resize;touch-action:none}.ui-table-column-resizer:hover{border-right:var(--stroke-default) solid var(--ui-table-resizer-stroke-hover, var(--global-border-default-hover))}\n"]
|
|
1042
|
+
}]
|
|
1043
|
+
}],
|
|
1044
|
+
ctorParameters: () => [],
|
|
1045
|
+
propDecorators: {
|
|
1046
|
+
value: [{
|
|
1047
|
+
type: i0.Input,
|
|
1048
|
+
args: [{
|
|
1049
|
+
isSignal: true,
|
|
1050
|
+
alias: "value",
|
|
1051
|
+
required: false
|
|
1052
|
+
}]
|
|
1053
|
+
}],
|
|
1054
|
+
dataKey: [{
|
|
1055
|
+
type: i0.Input,
|
|
1056
|
+
args: [{
|
|
1057
|
+
isSignal: true,
|
|
1058
|
+
alias: "dataKey",
|
|
1059
|
+
required: false
|
|
1060
|
+
}]
|
|
1061
|
+
}],
|
|
1062
|
+
size: [{
|
|
1063
|
+
type: i0.Input,
|
|
1064
|
+
args: [{
|
|
1065
|
+
isSignal: true,
|
|
1066
|
+
alias: "size",
|
|
1067
|
+
required: false
|
|
1068
|
+
}]
|
|
1069
|
+
}],
|
|
1070
|
+
showGridlines: [{
|
|
1071
|
+
type: i0.Input,
|
|
1072
|
+
args: [{
|
|
1073
|
+
isSignal: true,
|
|
1074
|
+
alias: "showGridlines",
|
|
1075
|
+
required: false
|
|
1076
|
+
}]
|
|
1077
|
+
}],
|
|
1078
|
+
stripedRows: [{
|
|
1079
|
+
type: i0.Input,
|
|
1080
|
+
args: [{
|
|
1081
|
+
isSignal: true,
|
|
1082
|
+
alias: "stripedRows",
|
|
1083
|
+
required: false
|
|
1084
|
+
}]
|
|
1085
|
+
}],
|
|
1086
|
+
rowHover: [{
|
|
1087
|
+
type: i0.Input,
|
|
1088
|
+
args: [{
|
|
1089
|
+
isSignal: true,
|
|
1090
|
+
alias: "rowHover",
|
|
1091
|
+
required: false
|
|
1092
|
+
}]
|
|
1093
|
+
}],
|
|
1094
|
+
tableStyle: [{
|
|
1095
|
+
type: i0.Input,
|
|
1096
|
+
args: [{
|
|
1097
|
+
isSignal: true,
|
|
1098
|
+
alias: "tableStyle",
|
|
1099
|
+
required: false
|
|
1100
|
+
}]
|
|
1101
|
+
}],
|
|
1102
|
+
selectionMode: [{
|
|
1103
|
+
type: i0.Input,
|
|
1104
|
+
args: [{
|
|
1105
|
+
isSignal: true,
|
|
1106
|
+
alias: "selectionMode",
|
|
1107
|
+
required: false
|
|
1108
|
+
}]
|
|
1109
|
+
}],
|
|
1110
|
+
selection: [{
|
|
1111
|
+
type: i0.Input,
|
|
1112
|
+
args: [{
|
|
1113
|
+
isSignal: true,
|
|
1114
|
+
alias: "selection",
|
|
1115
|
+
required: false
|
|
1116
|
+
}]
|
|
1117
|
+
}, {
|
|
1118
|
+
type: i0.Output,
|
|
1119
|
+
args: ["selectionChange"]
|
|
1120
|
+
}],
|
|
1121
|
+
metaKeySelection: [{
|
|
1122
|
+
type: i0.Input,
|
|
1123
|
+
args: [{
|
|
1124
|
+
isSignal: true,
|
|
1125
|
+
alias: "metaKeySelection",
|
|
1126
|
+
required: false
|
|
1127
|
+
}]
|
|
1128
|
+
}],
|
|
1129
|
+
sortMode: [{
|
|
1130
|
+
type: i0.Input,
|
|
1131
|
+
args: [{
|
|
1132
|
+
isSignal: true,
|
|
1133
|
+
alias: "sortMode",
|
|
1134
|
+
required: false
|
|
1135
|
+
}]
|
|
1136
|
+
}],
|
|
1137
|
+
sortField: [{
|
|
1138
|
+
type: i0.Input,
|
|
1139
|
+
args: [{
|
|
1140
|
+
isSignal: true,
|
|
1141
|
+
alias: "sortField",
|
|
1142
|
+
required: false
|
|
1143
|
+
}]
|
|
1144
|
+
}],
|
|
1145
|
+
sortOrder: [{
|
|
1146
|
+
type: i0.Input,
|
|
1147
|
+
args: [{
|
|
1148
|
+
isSignal: true,
|
|
1149
|
+
alias: "sortOrder",
|
|
1150
|
+
required: false
|
|
1151
|
+
}]
|
|
1152
|
+
}],
|
|
1153
|
+
multiSortMeta: [{
|
|
1154
|
+
type: i0.Input,
|
|
1155
|
+
args: [{
|
|
1156
|
+
isSignal: true,
|
|
1157
|
+
alias: "multiSortMeta",
|
|
1158
|
+
required: false
|
|
1159
|
+
}]
|
|
1160
|
+
}],
|
|
1161
|
+
defaultSortOrder: [{
|
|
1162
|
+
type: i0.Input,
|
|
1163
|
+
args: [{
|
|
1164
|
+
isSignal: true,
|
|
1165
|
+
alias: "defaultSortOrder",
|
|
1166
|
+
required: false
|
|
1167
|
+
}]
|
|
1168
|
+
}],
|
|
1169
|
+
customSort: [{
|
|
1170
|
+
type: i0.Input,
|
|
1171
|
+
args: [{
|
|
1172
|
+
isSignal: true,
|
|
1173
|
+
alias: "customSort",
|
|
1174
|
+
required: false
|
|
1175
|
+
}]
|
|
1176
|
+
}],
|
|
1177
|
+
paginator: [{
|
|
1178
|
+
type: i0.Input,
|
|
1179
|
+
args: [{
|
|
1180
|
+
isSignal: true,
|
|
1181
|
+
alias: "paginator",
|
|
1182
|
+
required: false
|
|
1183
|
+
}]
|
|
1184
|
+
}],
|
|
1185
|
+
rows: [{
|
|
1186
|
+
type: i0.Input,
|
|
1187
|
+
args: [{
|
|
1188
|
+
isSignal: true,
|
|
1189
|
+
alias: "rows",
|
|
1190
|
+
required: false
|
|
1191
|
+
}]
|
|
1192
|
+
}],
|
|
1193
|
+
first: [{
|
|
1194
|
+
type: i0.Input,
|
|
1195
|
+
args: [{
|
|
1196
|
+
isSignal: true,
|
|
1197
|
+
alias: "first",
|
|
1198
|
+
required: false
|
|
1199
|
+
}]
|
|
1200
|
+
}, {
|
|
1201
|
+
type: i0.Output,
|
|
1202
|
+
args: ["firstChange"]
|
|
1203
|
+
}],
|
|
1204
|
+
rowsPerPageOptions: [{
|
|
1205
|
+
type: i0.Input,
|
|
1206
|
+
args: [{
|
|
1207
|
+
isSignal: true,
|
|
1208
|
+
alias: "rowsPerPageOptions",
|
|
1209
|
+
required: false
|
|
1210
|
+
}]
|
|
1211
|
+
}],
|
|
1212
|
+
pageLinks: [{
|
|
1213
|
+
type: i0.Input,
|
|
1214
|
+
args: [{
|
|
1215
|
+
isSignal: true,
|
|
1216
|
+
alias: "pageLinks",
|
|
1217
|
+
required: false
|
|
1218
|
+
}]
|
|
1219
|
+
}],
|
|
1220
|
+
totalRecords: [{
|
|
1221
|
+
type: i0.Input,
|
|
1222
|
+
args: [{
|
|
1223
|
+
isSignal: true,
|
|
1224
|
+
alias: "totalRecords",
|
|
1225
|
+
required: false
|
|
1226
|
+
}]
|
|
1227
|
+
}],
|
|
1228
|
+
scrollable: [{
|
|
1229
|
+
type: i0.Input,
|
|
1230
|
+
args: [{
|
|
1231
|
+
isSignal: true,
|
|
1232
|
+
alias: "scrollable",
|
|
1233
|
+
required: false
|
|
1234
|
+
}]
|
|
1235
|
+
}],
|
|
1236
|
+
scrollHeight: [{
|
|
1237
|
+
type: i0.Input,
|
|
1238
|
+
args: [{
|
|
1239
|
+
isSignal: true,
|
|
1240
|
+
alias: "scrollHeight",
|
|
1241
|
+
required: false
|
|
1242
|
+
}]
|
|
1243
|
+
}],
|
|
1244
|
+
frozenValue: [{
|
|
1245
|
+
type: i0.Input,
|
|
1246
|
+
args: [{
|
|
1247
|
+
isSignal: true,
|
|
1248
|
+
alias: "frozenValue",
|
|
1249
|
+
required: false
|
|
1250
|
+
}]
|
|
1251
|
+
}],
|
|
1252
|
+
expandedRowKeys: [{
|
|
1253
|
+
type: i0.Input,
|
|
1254
|
+
args: [{
|
|
1255
|
+
isSignal: true,
|
|
1256
|
+
alias: "expandedRowKeys",
|
|
1257
|
+
required: false
|
|
1258
|
+
}]
|
|
1259
|
+
}, {
|
|
1260
|
+
type: i0.Output,
|
|
1261
|
+
args: ["expandedRowKeysChange"]
|
|
1262
|
+
}],
|
|
1263
|
+
resizableColumns: [{
|
|
1264
|
+
type: i0.Input,
|
|
1265
|
+
args: [{
|
|
1266
|
+
isSignal: true,
|
|
1267
|
+
alias: "resizableColumns",
|
|
1268
|
+
required: false
|
|
1269
|
+
}]
|
|
1270
|
+
}],
|
|
1271
|
+
loading: [{
|
|
1272
|
+
type: i0.Input,
|
|
1273
|
+
args: [{
|
|
1274
|
+
isSignal: true,
|
|
1275
|
+
alias: "loading",
|
|
1276
|
+
required: false
|
|
1277
|
+
}]
|
|
1278
|
+
}],
|
|
1279
|
+
loadingAriaLabel: [{
|
|
1280
|
+
type: i0.Input,
|
|
1281
|
+
args: [{
|
|
1282
|
+
isSignal: true,
|
|
1283
|
+
alias: "loadingAriaLabel",
|
|
1284
|
+
required: false
|
|
1285
|
+
}]
|
|
1286
|
+
}],
|
|
1287
|
+
emptyMessage: [{
|
|
1288
|
+
type: i0.Input,
|
|
1289
|
+
args: [{
|
|
1290
|
+
isSignal: true,
|
|
1291
|
+
alias: "emptyMessage",
|
|
1292
|
+
required: false
|
|
1293
|
+
}]
|
|
1294
|
+
}],
|
|
1295
|
+
emptyIcon: [{
|
|
1296
|
+
type: i0.Input,
|
|
1297
|
+
args: [{
|
|
1298
|
+
isSignal: true,
|
|
1299
|
+
alias: "emptyIcon",
|
|
1300
|
+
required: false
|
|
1301
|
+
}]
|
|
1302
|
+
}],
|
|
1303
|
+
virtualScroll: [{
|
|
1304
|
+
type: i0.Input,
|
|
1305
|
+
args: [{
|
|
1306
|
+
isSignal: true,
|
|
1307
|
+
alias: "virtualScroll",
|
|
1308
|
+
required: false
|
|
1309
|
+
}]
|
|
1310
|
+
}],
|
|
1311
|
+
virtualScrollItemSize: [{
|
|
1312
|
+
type: i0.Input,
|
|
1313
|
+
args: [{
|
|
1314
|
+
isSignal: true,
|
|
1315
|
+
alias: "virtualScrollItemSize",
|
|
1316
|
+
required: false
|
|
1317
|
+
}]
|
|
1318
|
+
}],
|
|
1319
|
+
lazy: [{
|
|
1320
|
+
type: i0.Input,
|
|
1321
|
+
args: [{
|
|
1322
|
+
isSignal: true,
|
|
1323
|
+
alias: "lazy",
|
|
1324
|
+
required: false
|
|
1325
|
+
}]
|
|
1326
|
+
}],
|
|
1327
|
+
rowSelect: [{
|
|
1328
|
+
type: i0.Output,
|
|
1329
|
+
args: ["rowSelect"]
|
|
1330
|
+
}],
|
|
1331
|
+
rowUnselect: [{
|
|
1332
|
+
type: i0.Output,
|
|
1333
|
+
args: ["rowUnselect"]
|
|
1334
|
+
}],
|
|
1335
|
+
headerCheckboxToggle: [{
|
|
1336
|
+
type: i0.Output,
|
|
1337
|
+
args: ["headerCheckboxToggle"]
|
|
1338
|
+
}],
|
|
1339
|
+
sortFunction: [{
|
|
1340
|
+
type: i0.Output,
|
|
1341
|
+
args: ["sortFunction"]
|
|
1342
|
+
}],
|
|
1343
|
+
sortChange: [{
|
|
1344
|
+
type: i0.Output,
|
|
1345
|
+
args: ["sortChange"]
|
|
1346
|
+
}],
|
|
1347
|
+
pageChange: [{
|
|
1348
|
+
type: i0.Output,
|
|
1349
|
+
args: ["pageChange"]
|
|
1350
|
+
}],
|
|
1351
|
+
rowExpand: [{
|
|
1352
|
+
type: i0.Output,
|
|
1353
|
+
args: ["rowExpand"]
|
|
1354
|
+
}],
|
|
1355
|
+
rowCollapse: [{
|
|
1356
|
+
type: i0.Output,
|
|
1357
|
+
args: ["rowCollapse"]
|
|
1358
|
+
}],
|
|
1359
|
+
colResize: [{
|
|
1360
|
+
type: i0.Output,
|
|
1361
|
+
args: ["colResize"]
|
|
1362
|
+
}],
|
|
1363
|
+
rowReorder: [{
|
|
1364
|
+
type: i0.Output,
|
|
1365
|
+
args: ["rowReorder"]
|
|
1366
|
+
}],
|
|
1367
|
+
lazyLoad: [{
|
|
1368
|
+
type: i0.Output,
|
|
1369
|
+
args: ["lazyLoad"]
|
|
1370
|
+
}],
|
|
1371
|
+
captionTemplate: [{
|
|
1372
|
+
type: i0.ContentChild,
|
|
1373
|
+
args: ["caption", { isSignal: true }]
|
|
1374
|
+
}],
|
|
1375
|
+
headerTemplate: [{
|
|
1376
|
+
type: i0.ContentChild,
|
|
1377
|
+
args: ["header", { isSignal: true }]
|
|
1378
|
+
}],
|
|
1379
|
+
bodyTemplate: [{
|
|
1380
|
+
type: i0.ContentChild,
|
|
1381
|
+
args: ["body", { isSignal: true }]
|
|
1382
|
+
}],
|
|
1383
|
+
footerTemplate: [{
|
|
1384
|
+
type: i0.ContentChild,
|
|
1385
|
+
args: ["footer", { isSignal: true }]
|
|
1386
|
+
}],
|
|
1387
|
+
expandedRowTemplate: [{
|
|
1388
|
+
type: i0.ContentChild,
|
|
1389
|
+
args: ["expandedrow", { isSignal: true }]
|
|
1390
|
+
}],
|
|
1391
|
+
emptyMessageTemplate: [{
|
|
1392
|
+
type: i0.ContentChild,
|
|
1393
|
+
args: ["emptymessage", { isSignal: true }]
|
|
1394
|
+
}],
|
|
1395
|
+
tableEl: [{
|
|
1396
|
+
type: i0.ViewChild,
|
|
1397
|
+
args: ["tableEl", { isSignal: true }]
|
|
1398
|
+
}],
|
|
1399
|
+
theadEl: [{
|
|
1400
|
+
type: i0.ViewChild,
|
|
1401
|
+
args: ["theadEl", { isSignal: true }]
|
|
1402
|
+
}],
|
|
1403
|
+
wrapperEl: [{
|
|
1404
|
+
type: i0.ViewChild,
|
|
1405
|
+
args: ["wrapperEl", { isSignal: true }]
|
|
1406
|
+
}]
|
|
1407
|
+
}
|
|
1408
|
+
});
|
|
1409
|
+
var UiTableSortableColumn = class UiTableSortableColumn {
|
|
1410
|
+
constructor() {
|
|
1411
|
+
this.table = inject(UiTable);
|
|
1412
|
+
this.field = input.required({
|
|
1413
|
+
...ngDevMode ? { debugName: "field" } : /* istanbul ignore next */ {},
|
|
1414
|
+
alias: "uiSortableColumn"
|
|
1415
|
+
});
|
|
1416
|
+
this.disabled = input(false, {
|
|
1417
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1418
|
+
transform: booleanAttribute,
|
|
1419
|
+
alias: "uiSortableColumnDisabled"
|
|
1420
|
+
});
|
|
1421
|
+
this.sorted = computed(() => this.table.getSortOrder(this.field()) !== 0, ...ngDevMode ? [{ debugName: "sorted" }] : /* istanbul ignore next */ []);
|
|
1422
|
+
this.ariaSort = computed(() => {
|
|
1423
|
+
const order = this.table.getSortOrder(this.field());
|
|
1424
|
+
return order === 0 ? "none" : order > 0 ? "ascending" : "descending";
|
|
1425
|
+
}, ...ngDevMode ? [{ debugName: "ariaSort" }] : /* istanbul ignore next */ []);
|
|
1426
|
+
}
|
|
1427
|
+
onTrigger(event) {
|
|
1428
|
+
if (this.disabled()) return;
|
|
1429
|
+
event.preventDefault();
|
|
1430
|
+
this.table.toggleColumnSort(this.field(), event);
|
|
1431
|
+
}
|
|
1432
|
+
static {
|
|
1433
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1434
|
+
minVersion: "12.0.0",
|
|
1435
|
+
version: "22.3.0",
|
|
1436
|
+
ngImport: i0,
|
|
1437
|
+
type: UiTableSortableColumn,
|
|
1438
|
+
deps: [],
|
|
1439
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
static {
|
|
1443
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1444
|
+
minVersion: "17.1.0",
|
|
1445
|
+
version: "22.3.0",
|
|
1446
|
+
type: UiTableSortableColumn,
|
|
1447
|
+
isStandalone: true,
|
|
1448
|
+
selector: "[uiSortableColumn]",
|
|
1449
|
+
inputs: {
|
|
1450
|
+
field: {
|
|
1451
|
+
classPropertyName: "field",
|
|
1452
|
+
publicName: "uiSortableColumn",
|
|
1453
|
+
isSignal: true,
|
|
1454
|
+
isRequired: true,
|
|
1455
|
+
transformFunction: null
|
|
1456
|
+
},
|
|
1457
|
+
disabled: {
|
|
1458
|
+
classPropertyName: "disabled",
|
|
1459
|
+
publicName: "uiSortableColumnDisabled",
|
|
1460
|
+
isSignal: true,
|
|
1461
|
+
isRequired: false,
|
|
1462
|
+
transformFunction: null
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
host: {
|
|
1466
|
+
listeners: {
|
|
1467
|
+
"click": "onTrigger($event)",
|
|
1468
|
+
"keydown.enter": "onTrigger($event)",
|
|
1469
|
+
"keydown.space": "onTrigger($event)"
|
|
1470
|
+
},
|
|
1471
|
+
properties: {
|
|
1472
|
+
"class._sorted": "sorted()",
|
|
1473
|
+
"attr.tabindex": "disabled() ? null : 0",
|
|
1474
|
+
"attr.role": "\"columnheader\"",
|
|
1475
|
+
"attr.aria-sort": "ariaSort()"
|
|
1476
|
+
},
|
|
1477
|
+
classAttribute: "ui-table-sortable-column"
|
|
1478
|
+
},
|
|
1479
|
+
ngImport: i0
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1482
|
+
};
|
|
1483
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1484
|
+
minVersion: "12.0.0",
|
|
1485
|
+
version: "22.3.0",
|
|
1486
|
+
ngImport: i0,
|
|
1487
|
+
type: UiTableSortableColumn,
|
|
1488
|
+
decorators: [{
|
|
1489
|
+
type: Directive,
|
|
1490
|
+
args: [{
|
|
1491
|
+
selector: "[uiSortableColumn]",
|
|
1492
|
+
host: {
|
|
1493
|
+
class: "ui-table-sortable-column",
|
|
1494
|
+
"[class._sorted]": "sorted()",
|
|
1495
|
+
"[attr.tabindex]": "disabled() ? null : 0",
|
|
1496
|
+
"[attr.role]": "\"columnheader\"",
|
|
1497
|
+
"[attr.aria-sort]": "ariaSort()",
|
|
1498
|
+
"(click)": "onTrigger($event)",
|
|
1499
|
+
"(keydown.enter)": "onTrigger($event)",
|
|
1500
|
+
"(keydown.space)": "onTrigger($event)"
|
|
1501
|
+
}
|
|
1502
|
+
}]
|
|
1503
|
+
}],
|
|
1504
|
+
propDecorators: {
|
|
1505
|
+
field: [{
|
|
1506
|
+
type: i0.Input,
|
|
1507
|
+
args: [{
|
|
1508
|
+
isSignal: true,
|
|
1509
|
+
alias: "uiSortableColumn",
|
|
1510
|
+
required: true
|
|
1511
|
+
}]
|
|
1512
|
+
}],
|
|
1513
|
+
disabled: [{
|
|
1514
|
+
type: i0.Input,
|
|
1515
|
+
args: [{
|
|
1516
|
+
isSignal: true,
|
|
1517
|
+
alias: "uiSortableColumnDisabled",
|
|
1518
|
+
required: false
|
|
1519
|
+
}]
|
|
1520
|
+
}]
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
var UiTableSortIcon = class UiTableSortIcon {
|
|
1524
|
+
constructor() {
|
|
1525
|
+
this.table = inject(UiTable);
|
|
1526
|
+
this.field = input.required(...ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []);
|
|
1527
|
+
this.iconName = computed(() => {
|
|
1528
|
+
const order = this.table.getSortOrder(this.field());
|
|
1529
|
+
return order === 0 ? "sort" : order > 0 ? "sort-up" : "sort-down";
|
|
1530
|
+
}, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
1531
|
+
}
|
|
1532
|
+
static {
|
|
1533
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1534
|
+
minVersion: "12.0.0",
|
|
1535
|
+
version: "22.3.0",
|
|
1536
|
+
ngImport: i0,
|
|
1537
|
+
type: UiTableSortIcon,
|
|
1538
|
+
deps: [],
|
|
1539
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
static {
|
|
1543
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1544
|
+
minVersion: "17.1.0",
|
|
1545
|
+
version: "22.3.0",
|
|
1546
|
+
type: UiTableSortIcon,
|
|
1547
|
+
isStandalone: true,
|
|
1548
|
+
selector: "ui-table-sort-icon",
|
|
1549
|
+
inputs: { field: {
|
|
1550
|
+
classPropertyName: "field",
|
|
1551
|
+
publicName: "field",
|
|
1552
|
+
isSignal: true,
|
|
1553
|
+
isRequired: true,
|
|
1554
|
+
transformFunction: null
|
|
1555
|
+
} },
|
|
1556
|
+
ngImport: i0,
|
|
1557
|
+
template: `<ui-icon class="ui-table-sort-icon" [name]="iconName()" size="sm" />`,
|
|
1558
|
+
isInline: true,
|
|
1559
|
+
dependencies: [{
|
|
1560
|
+
kind: "component",
|
|
1561
|
+
type: UiIcon,
|
|
1562
|
+
selector: "ui-icon",
|
|
1563
|
+
inputs: [
|
|
1564
|
+
"name",
|
|
1565
|
+
"size",
|
|
1566
|
+
"type",
|
|
1567
|
+
"family",
|
|
1568
|
+
"decorative",
|
|
1569
|
+
"ariaLabel"
|
|
1570
|
+
]
|
|
1571
|
+
}]
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1576
|
+
minVersion: "12.0.0",
|
|
1577
|
+
version: "22.3.0",
|
|
1578
|
+
ngImport: i0,
|
|
1579
|
+
type: UiTableSortIcon,
|
|
1580
|
+
decorators: [{
|
|
1581
|
+
type: Component,
|
|
1582
|
+
args: [{
|
|
1583
|
+
selector: "ui-table-sort-icon",
|
|
1584
|
+
imports: [UiIcon],
|
|
1585
|
+
template: `<ui-icon class="ui-table-sort-icon" [name]="iconName()" size="sm" />`
|
|
1586
|
+
}]
|
|
1587
|
+
}],
|
|
1588
|
+
propDecorators: { field: [{
|
|
1589
|
+
type: i0.Input,
|
|
1590
|
+
args: [{
|
|
1591
|
+
isSignal: true,
|
|
1592
|
+
alias: "field",
|
|
1593
|
+
required: true
|
|
1594
|
+
}]
|
|
1595
|
+
}] }
|
|
1596
|
+
});
|
|
1597
|
+
var UiTableSelectableRow = class UiTableSelectableRow {
|
|
1598
|
+
constructor() {
|
|
1599
|
+
this.table = inject(UiTable);
|
|
1600
|
+
this.el = inject(ElementRef);
|
|
1601
|
+
this.data = input.required({
|
|
1602
|
+
...ngDevMode ? { debugName: "data" } : /* istanbul ignore next */ {},
|
|
1603
|
+
alias: "uiSelectableRow"
|
|
1604
|
+
});
|
|
1605
|
+
this.index = input(0, {
|
|
1606
|
+
...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
|
|
1607
|
+
transform: numberAttribute,
|
|
1608
|
+
alias: "uiSelectableRowIndex"
|
|
1609
|
+
});
|
|
1610
|
+
this.disabled = input(false, {
|
|
1611
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1612
|
+
transform: booleanAttribute,
|
|
1613
|
+
alias: "uiSelectableRowDisabled"
|
|
1614
|
+
});
|
|
1615
|
+
this.selected = computed(() => this.table.isSelected(this.data()), ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
1616
|
+
this.tabindex = computed(() => {
|
|
1617
|
+
if (this.disabled()) return null;
|
|
1618
|
+
return this.table.isRowTabbable(this.data()) ? 0 : -1;
|
|
1619
|
+
}, ...ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []);
|
|
1620
|
+
effect(() => {
|
|
1621
|
+
this.table.selectableRowRefs.set(this.el.nativeElement, {
|
|
1622
|
+
data: this.data(),
|
|
1623
|
+
index: this.index()
|
|
1624
|
+
});
|
|
1625
|
+
});
|
|
1626
|
+
inject(DestroyRef).onDestroy(() => this.table.selectableRowRefs.delete(this.el.nativeElement));
|
|
1627
|
+
}
|
|
1628
|
+
onClick(event) {
|
|
1629
|
+
if (this.disabled()) return;
|
|
1630
|
+
this.table.handleRowClick(event, this.data(), this.index());
|
|
1631
|
+
}
|
|
1632
|
+
onKeydown(event) {
|
|
1633
|
+
if (this.disabled()) return;
|
|
1634
|
+
const meta = event.metaKey || event.ctrlKey;
|
|
1635
|
+
switch (event.key) {
|
|
1636
|
+
case "ArrowDown":
|
|
1637
|
+
case "ArrowUp": {
|
|
1638
|
+
event.preventDefault();
|
|
1639
|
+
const target = this.findSiblingRow(event.key === "ArrowDown" ? "next" : "previous");
|
|
1640
|
+
if (!target) return;
|
|
1641
|
+
target.focus();
|
|
1642
|
+
if (event.shiftKey) {
|
|
1643
|
+
const ref = this.table.selectableRowRefs.get(target);
|
|
1644
|
+
if (ref) this.table.selectRange(event, ref.index);
|
|
1645
|
+
}
|
|
1646
|
+
break;
|
|
1647
|
+
}
|
|
1648
|
+
case "Home":
|
|
1649
|
+
case "End": {
|
|
1650
|
+
event.preventDefault();
|
|
1651
|
+
const edge = event.key === "Home" ? "start" : "end";
|
|
1652
|
+
this.findEdgeRow(edge)?.focus();
|
|
1653
|
+
if (meta && event.shiftKey) this.table.selectRangeToEdge(this.index(), edge);
|
|
1654
|
+
break;
|
|
1655
|
+
}
|
|
1656
|
+
case "Enter":
|
|
1657
|
+
event.preventDefault();
|
|
1658
|
+
this.table.handleRowClick(event, this.data(), this.index());
|
|
1659
|
+
break;
|
|
1660
|
+
case " ":
|
|
1661
|
+
event.preventDefault();
|
|
1662
|
+
if (event.shiftKey) this.table.selectRange(event, this.index());
|
|
1663
|
+
else this.table.handleRowClick(event, this.data(), this.index());
|
|
1664
|
+
break;
|
|
1665
|
+
case "a":
|
|
1666
|
+
case "A":
|
|
1667
|
+
if (!meta) return;
|
|
1668
|
+
event.preventDefault();
|
|
1669
|
+
this.table.selectAllRows(event);
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
findSiblingRow(direction) {
|
|
1673
|
+
let el = this.el.nativeElement;
|
|
1674
|
+
while (el = direction === "next" ? el.nextElementSibling : el.previousElementSibling) if (el.classList.contains("ui-table-selectable-row")) return el;
|
|
1675
|
+
return null;
|
|
1676
|
+
}
|
|
1677
|
+
findEdgeRow(edge) {
|
|
1678
|
+
const rows = this.el.nativeElement.closest("table")?.querySelectorAll(".ui-table-selectable-row");
|
|
1679
|
+
if (!rows?.length) return null;
|
|
1680
|
+
return edge === "start" ? rows[0] : rows[rows.length - 1];
|
|
1681
|
+
}
|
|
1682
|
+
static {
|
|
1683
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1684
|
+
minVersion: "12.0.0",
|
|
1685
|
+
version: "22.3.0",
|
|
1686
|
+
ngImport: i0,
|
|
1687
|
+
type: UiTableSelectableRow,
|
|
1688
|
+
deps: [],
|
|
1689
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
static {
|
|
1693
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1694
|
+
minVersion: "17.1.0",
|
|
1695
|
+
version: "22.3.0",
|
|
1696
|
+
type: UiTableSelectableRow,
|
|
1697
|
+
isStandalone: true,
|
|
1698
|
+
selector: "[uiSelectableRow]",
|
|
1699
|
+
inputs: {
|
|
1700
|
+
data: {
|
|
1701
|
+
classPropertyName: "data",
|
|
1702
|
+
publicName: "uiSelectableRow",
|
|
1703
|
+
isSignal: true,
|
|
1704
|
+
isRequired: true,
|
|
1705
|
+
transformFunction: null
|
|
1706
|
+
},
|
|
1707
|
+
index: {
|
|
1708
|
+
classPropertyName: "index",
|
|
1709
|
+
publicName: "uiSelectableRowIndex",
|
|
1710
|
+
isSignal: true,
|
|
1711
|
+
isRequired: false,
|
|
1712
|
+
transformFunction: null
|
|
1713
|
+
},
|
|
1714
|
+
disabled: {
|
|
1715
|
+
classPropertyName: "disabled",
|
|
1716
|
+
publicName: "uiSelectableRowDisabled",
|
|
1717
|
+
isSignal: true,
|
|
1718
|
+
isRequired: false,
|
|
1719
|
+
transformFunction: null
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
host: {
|
|
1723
|
+
listeners: {
|
|
1724
|
+
"click": "onClick($event)",
|
|
1725
|
+
"keydown": "onKeydown($event)"
|
|
1726
|
+
},
|
|
1727
|
+
properties: {
|
|
1728
|
+
"class._selected": "selected()",
|
|
1729
|
+
"attr.tabindex": "tabindex()",
|
|
1730
|
+
"attr.aria-selected": "selected()"
|
|
1731
|
+
},
|
|
1732
|
+
classAttribute: "ui-table-selectable-row"
|
|
1733
|
+
},
|
|
1734
|
+
ngImport: i0
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1739
|
+
minVersion: "12.0.0",
|
|
1740
|
+
version: "22.3.0",
|
|
1741
|
+
ngImport: i0,
|
|
1742
|
+
type: UiTableSelectableRow,
|
|
1743
|
+
decorators: [{
|
|
1744
|
+
type: Directive,
|
|
1745
|
+
args: [{
|
|
1746
|
+
selector: "[uiSelectableRow]",
|
|
1747
|
+
host: {
|
|
1748
|
+
class: "ui-table-selectable-row",
|
|
1749
|
+
"[class._selected]": "selected()",
|
|
1750
|
+
"[attr.tabindex]": "tabindex()",
|
|
1751
|
+
"[attr.aria-selected]": "selected()",
|
|
1752
|
+
"(click)": "onClick($event)",
|
|
1753
|
+
"(keydown)": "onKeydown($event)"
|
|
1754
|
+
}
|
|
1755
|
+
}]
|
|
1756
|
+
}],
|
|
1757
|
+
ctorParameters: () => [],
|
|
1758
|
+
propDecorators: {
|
|
1759
|
+
data: [{
|
|
1760
|
+
type: i0.Input,
|
|
1761
|
+
args: [{
|
|
1762
|
+
isSignal: true,
|
|
1763
|
+
alias: "uiSelectableRow",
|
|
1764
|
+
required: true
|
|
1765
|
+
}]
|
|
1766
|
+
}],
|
|
1767
|
+
index: [{
|
|
1768
|
+
type: i0.Input,
|
|
1769
|
+
args: [{
|
|
1770
|
+
isSignal: true,
|
|
1771
|
+
alias: "uiSelectableRowIndex",
|
|
1772
|
+
required: false
|
|
1773
|
+
}]
|
|
1774
|
+
}],
|
|
1775
|
+
disabled: [{
|
|
1776
|
+
type: i0.Input,
|
|
1777
|
+
args: [{
|
|
1778
|
+
isSignal: true,
|
|
1779
|
+
alias: "uiSelectableRowDisabled",
|
|
1780
|
+
required: false
|
|
1781
|
+
}]
|
|
1782
|
+
}]
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1785
|
+
var UiTableCheckbox = class UiTableCheckbox {
|
|
1786
|
+
constructor() {
|
|
1787
|
+
this.table = inject(UiTable);
|
|
1788
|
+
this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
1789
|
+
this.index = input(void 0, {
|
|
1790
|
+
...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
|
|
1791
|
+
transform: (v) => v == null ? void 0 : Number(v)
|
|
1792
|
+
});
|
|
1793
|
+
this.disabled = input(false, {
|
|
1794
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1795
|
+
transform: booleanAttribute
|
|
1796
|
+
});
|
|
1797
|
+
this.ariaLabel = input("Sélectionner la ligne", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
1798
|
+
this.checked = computed(() => this.table.isSelected(this.value()), ...ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []);
|
|
1799
|
+
}
|
|
1800
|
+
onToggle(_checked) {
|
|
1801
|
+
this.table.toggleRowWithCheckbox(void 0, this.value(), this.index());
|
|
1802
|
+
}
|
|
1803
|
+
static {
|
|
1804
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1805
|
+
minVersion: "12.0.0",
|
|
1806
|
+
version: "22.3.0",
|
|
1807
|
+
ngImport: i0,
|
|
1808
|
+
type: UiTableCheckbox,
|
|
1809
|
+
deps: [],
|
|
1810
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
static {
|
|
1814
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1815
|
+
minVersion: "17.1.0",
|
|
1816
|
+
version: "22.3.0",
|
|
1817
|
+
type: UiTableCheckbox,
|
|
1818
|
+
isStandalone: true,
|
|
1819
|
+
selector: "ui-table-checkbox",
|
|
1820
|
+
inputs: {
|
|
1821
|
+
value: {
|
|
1822
|
+
classPropertyName: "value",
|
|
1823
|
+
publicName: "value",
|
|
1824
|
+
isSignal: true,
|
|
1825
|
+
isRequired: true,
|
|
1826
|
+
transformFunction: null
|
|
1827
|
+
},
|
|
1828
|
+
index: {
|
|
1829
|
+
classPropertyName: "index",
|
|
1830
|
+
publicName: "index",
|
|
1831
|
+
isSignal: true,
|
|
1832
|
+
isRequired: false,
|
|
1833
|
+
transformFunction: null
|
|
1834
|
+
},
|
|
1835
|
+
disabled: {
|
|
1836
|
+
classPropertyName: "disabled",
|
|
1837
|
+
publicName: "disabled",
|
|
1838
|
+
isSignal: true,
|
|
1839
|
+
isRequired: false,
|
|
1840
|
+
transformFunction: null
|
|
1841
|
+
},
|
|
1842
|
+
ariaLabel: {
|
|
1843
|
+
classPropertyName: "ariaLabel",
|
|
1844
|
+
publicName: "ariaLabel",
|
|
1845
|
+
isSignal: true,
|
|
1846
|
+
isRequired: false,
|
|
1847
|
+
transformFunction: null
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
ngImport: i0,
|
|
1851
|
+
template: `
|
|
1024
1852
|
<ui-checkbox
|
|
1025
1853
|
[ngModel]="checked()"
|
|
1026
1854
|
[disabled]="disabled()"
|
|
1027
1855
|
[ariaLabel]="ariaLabel()"
|
|
1028
1856
|
(checkboxChange)="onToggle($event)"
|
|
1029
1857
|
/>
|
|
1030
|
-
`,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1858
|
+
`,
|
|
1859
|
+
isInline: true,
|
|
1860
|
+
dependencies: [
|
|
1861
|
+
{
|
|
1862
|
+
kind: "component",
|
|
1863
|
+
type: UiCheckbox,
|
|
1864
|
+
selector: "ui-checkbox",
|
|
1865
|
+
inputs: [
|
|
1866
|
+
"label",
|
|
1867
|
+
"trueValue",
|
|
1868
|
+
"falseValue",
|
|
1869
|
+
"indeterminate",
|
|
1870
|
+
"checkIcon",
|
|
1871
|
+
"indeterminateIcon"
|
|
1872
|
+
],
|
|
1873
|
+
outputs: [
|
|
1874
|
+
"checkboxChange",
|
|
1875
|
+
"checkboxFocus",
|
|
1876
|
+
"checkboxBlur"
|
|
1877
|
+
]
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
kind: "ngmodule",
|
|
1881
|
+
type: FormsModule
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
kind: "directive",
|
|
1885
|
+
type: i1.NgControlStatus,
|
|
1886
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
kind: "directive",
|
|
1890
|
+
type: i1.NgModel,
|
|
1891
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
1892
|
+
inputs: [
|
|
1893
|
+
"name",
|
|
1894
|
+
"disabled",
|
|
1895
|
+
"ngModel",
|
|
1896
|
+
"ngModelOptions"
|
|
1897
|
+
],
|
|
1898
|
+
outputs: ["ngModelChange"],
|
|
1899
|
+
exportAs: ["ngModel"]
|
|
1900
|
+
}
|
|
1901
|
+
]
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1905
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1906
|
+
minVersion: "12.0.0",
|
|
1907
|
+
version: "22.3.0",
|
|
1908
|
+
ngImport: i0,
|
|
1909
|
+
type: UiTableCheckbox,
|
|
1910
|
+
decorators: [{
|
|
1911
|
+
type: Component,
|
|
1912
|
+
args: [{
|
|
1913
|
+
selector: "ui-table-checkbox",
|
|
1914
|
+
imports: [UiCheckbox, FormsModule],
|
|
1915
|
+
template: `
|
|
1038
1916
|
<ui-checkbox
|
|
1039
1917
|
[ngModel]="checked()"
|
|
1040
1918
|
[disabled]="disabled()"
|
|
1041
1919
|
[ariaLabel]="ariaLabel()"
|
|
1042
1920
|
(checkboxChange)="onToggle($event)"
|
|
1043
1921
|
/>
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1922
|
+
`
|
|
1923
|
+
}]
|
|
1924
|
+
}],
|
|
1925
|
+
propDecorators: {
|
|
1926
|
+
value: [{
|
|
1927
|
+
type: i0.Input,
|
|
1928
|
+
args: [{
|
|
1929
|
+
isSignal: true,
|
|
1930
|
+
alias: "value",
|
|
1931
|
+
required: true
|
|
1932
|
+
}]
|
|
1933
|
+
}],
|
|
1934
|
+
index: [{
|
|
1935
|
+
type: i0.Input,
|
|
1936
|
+
args: [{
|
|
1937
|
+
isSignal: true,
|
|
1938
|
+
alias: "index",
|
|
1939
|
+
required: false
|
|
1940
|
+
}]
|
|
1941
|
+
}],
|
|
1942
|
+
disabled: [{
|
|
1943
|
+
type: i0.Input,
|
|
1944
|
+
args: [{
|
|
1945
|
+
isSignal: true,
|
|
1946
|
+
alias: "disabled",
|
|
1947
|
+
required: false
|
|
1948
|
+
}]
|
|
1949
|
+
}],
|
|
1950
|
+
ariaLabel: [{
|
|
1951
|
+
type: i0.Input,
|
|
1952
|
+
args: [{
|
|
1953
|
+
isSignal: true,
|
|
1954
|
+
alias: "ariaLabel",
|
|
1955
|
+
required: false
|
|
1956
|
+
}]
|
|
1957
|
+
}]
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
var UiTableHeaderCheckbox = class UiTableHeaderCheckbox {
|
|
1961
|
+
constructor() {
|
|
1962
|
+
this.table = inject(UiTable);
|
|
1963
|
+
this.disabled = input(false, {
|
|
1964
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1965
|
+
transform: booleanAttribute
|
|
1966
|
+
});
|
|
1967
|
+
this.ariaLabel = input("Tout sélectionner", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
1968
|
+
}
|
|
1969
|
+
onToggle(checked) {
|
|
1970
|
+
this.table.toggleAllRows(void 0, checked === true);
|
|
1971
|
+
}
|
|
1972
|
+
static {
|
|
1973
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1974
|
+
minVersion: "12.0.0",
|
|
1975
|
+
version: "22.3.0",
|
|
1976
|
+
ngImport: i0,
|
|
1977
|
+
type: UiTableHeaderCheckbox,
|
|
1978
|
+
deps: [],
|
|
1979
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
static {
|
|
1983
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1984
|
+
minVersion: "17.1.0",
|
|
1985
|
+
version: "22.3.0",
|
|
1986
|
+
type: UiTableHeaderCheckbox,
|
|
1987
|
+
isStandalone: true,
|
|
1988
|
+
selector: "ui-table-header-checkbox",
|
|
1989
|
+
inputs: {
|
|
1990
|
+
disabled: {
|
|
1991
|
+
classPropertyName: "disabled",
|
|
1992
|
+
publicName: "disabled",
|
|
1993
|
+
isSignal: true,
|
|
1994
|
+
isRequired: false,
|
|
1995
|
+
transformFunction: null
|
|
1996
|
+
},
|
|
1997
|
+
ariaLabel: {
|
|
1998
|
+
classPropertyName: "ariaLabel",
|
|
1999
|
+
publicName: "ariaLabel",
|
|
2000
|
+
isSignal: true,
|
|
2001
|
+
isRequired: false,
|
|
2002
|
+
transformFunction: null
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
ngImport: i0,
|
|
2006
|
+
template: `
|
|
1067
2007
|
<ui-checkbox
|
|
1068
2008
|
[ngModel]="table.allSelected()"
|
|
1069
2009
|
[indeterminate]="table.partiallySelected()"
|
|
@@ -1071,14 +2011,64 @@ class UiTableHeaderCheckbox {
|
|
|
1071
2011
|
[ariaLabel]="ariaLabel()"
|
|
1072
2012
|
(checkboxChange)="onToggle($event)"
|
|
1073
2013
|
/>
|
|
1074
|
-
`,
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
2014
|
+
`,
|
|
2015
|
+
isInline: true,
|
|
2016
|
+
dependencies: [
|
|
2017
|
+
{
|
|
2018
|
+
kind: "component",
|
|
2019
|
+
type: UiCheckbox,
|
|
2020
|
+
selector: "ui-checkbox",
|
|
2021
|
+
inputs: [
|
|
2022
|
+
"label",
|
|
2023
|
+
"trueValue",
|
|
2024
|
+
"falseValue",
|
|
2025
|
+
"indeterminate",
|
|
2026
|
+
"checkIcon",
|
|
2027
|
+
"indeterminateIcon"
|
|
2028
|
+
],
|
|
2029
|
+
outputs: [
|
|
2030
|
+
"checkboxChange",
|
|
2031
|
+
"checkboxFocus",
|
|
2032
|
+
"checkboxBlur"
|
|
2033
|
+
]
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
kind: "ngmodule",
|
|
2037
|
+
type: FormsModule
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
kind: "directive",
|
|
2041
|
+
type: i1.NgControlStatus,
|
|
2042
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
kind: "directive",
|
|
2046
|
+
type: i1.NgModel,
|
|
2047
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
2048
|
+
inputs: [
|
|
2049
|
+
"name",
|
|
2050
|
+
"disabled",
|
|
2051
|
+
"ngModel",
|
|
2052
|
+
"ngModelOptions"
|
|
2053
|
+
],
|
|
2054
|
+
outputs: ["ngModelChange"],
|
|
2055
|
+
exportAs: ["ngModel"]
|
|
2056
|
+
}
|
|
2057
|
+
]
|
|
2058
|
+
});
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2062
|
+
minVersion: "12.0.0",
|
|
2063
|
+
version: "22.3.0",
|
|
2064
|
+
ngImport: i0,
|
|
2065
|
+
type: UiTableHeaderCheckbox,
|
|
2066
|
+
decorators: [{
|
|
2067
|
+
type: Component,
|
|
2068
|
+
args: [{
|
|
2069
|
+
selector: "ui-table-header-checkbox",
|
|
2070
|
+
imports: [UiCheckbox, FormsModule],
|
|
2071
|
+
template: `
|
|
1082
2072
|
<ui-checkbox
|
|
1083
2073
|
[ngModel]="table.allSelected()"
|
|
1084
2074
|
[indeterminate]="table.partiallySelected()"
|
|
@@ -1086,37 +2076,102 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
1086
2076
|
[ariaLabel]="ariaLabel()"
|
|
1087
2077
|
(checkboxChange)="onToggle($event)"
|
|
1088
2078
|
/>
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
2079
|
+
`
|
|
2080
|
+
}]
|
|
2081
|
+
}],
|
|
2082
|
+
propDecorators: {
|
|
2083
|
+
disabled: [{
|
|
2084
|
+
type: i0.Input,
|
|
2085
|
+
args: [{
|
|
2086
|
+
isSignal: true,
|
|
2087
|
+
alias: "disabled",
|
|
2088
|
+
required: false
|
|
2089
|
+
}]
|
|
2090
|
+
}],
|
|
2091
|
+
ariaLabel: [{
|
|
2092
|
+
type: i0.Input,
|
|
2093
|
+
args: [{
|
|
2094
|
+
isSignal: true,
|
|
2095
|
+
alias: "ariaLabel",
|
|
2096
|
+
required: false
|
|
2097
|
+
}]
|
|
2098
|
+
}]
|
|
2099
|
+
}
|
|
2100
|
+
});
|
|
2101
|
+
var UiTableRadio = class UiTableRadio {
|
|
2102
|
+
constructor() {
|
|
2103
|
+
this.table = inject(UiTable);
|
|
2104
|
+
this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
2105
|
+
this.index = input(void 0, {
|
|
2106
|
+
...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
|
|
2107
|
+
transform: (v) => v == null ? void 0 : Number(v)
|
|
2108
|
+
});
|
|
2109
|
+
this.name = input("ui-table-radio", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
2110
|
+
this.disabled = input(false, {
|
|
2111
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
2112
|
+
transform: booleanAttribute
|
|
2113
|
+
});
|
|
2114
|
+
this.ariaLabel = input("Sélectionner la ligne", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
2115
|
+
}
|
|
2116
|
+
onSelect() {
|
|
2117
|
+
this.table.selectRowWithRadio(void 0, this.value(), this.index());
|
|
2118
|
+
}
|
|
2119
|
+
static {
|
|
2120
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2121
|
+
minVersion: "12.0.0",
|
|
2122
|
+
version: "22.3.0",
|
|
2123
|
+
ngImport: i0,
|
|
2124
|
+
type: UiTableRadio,
|
|
2125
|
+
deps: [],
|
|
2126
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
2127
|
+
});
|
|
2128
|
+
}
|
|
2129
|
+
static {
|
|
2130
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
2131
|
+
minVersion: "17.1.0",
|
|
2132
|
+
version: "22.3.0",
|
|
2133
|
+
type: UiTableRadio,
|
|
2134
|
+
isStandalone: true,
|
|
2135
|
+
selector: "ui-table-radio",
|
|
2136
|
+
inputs: {
|
|
2137
|
+
value: {
|
|
2138
|
+
classPropertyName: "value",
|
|
2139
|
+
publicName: "value",
|
|
2140
|
+
isSignal: true,
|
|
2141
|
+
isRequired: true,
|
|
2142
|
+
transformFunction: null
|
|
2143
|
+
},
|
|
2144
|
+
index: {
|
|
2145
|
+
classPropertyName: "index",
|
|
2146
|
+
publicName: "index",
|
|
2147
|
+
isSignal: true,
|
|
2148
|
+
isRequired: false,
|
|
2149
|
+
transformFunction: null
|
|
2150
|
+
},
|
|
2151
|
+
name: {
|
|
2152
|
+
classPropertyName: "name",
|
|
2153
|
+
publicName: "name",
|
|
2154
|
+
isSignal: true,
|
|
2155
|
+
isRequired: false,
|
|
2156
|
+
transformFunction: null
|
|
2157
|
+
},
|
|
2158
|
+
disabled: {
|
|
2159
|
+
classPropertyName: "disabled",
|
|
2160
|
+
publicName: "disabled",
|
|
2161
|
+
isSignal: true,
|
|
2162
|
+
isRequired: false,
|
|
2163
|
+
transformFunction: null
|
|
2164
|
+
},
|
|
2165
|
+
ariaLabel: {
|
|
2166
|
+
classPropertyName: "ariaLabel",
|
|
2167
|
+
publicName: "ariaLabel",
|
|
2168
|
+
isSignal: true,
|
|
2169
|
+
isRequired: false,
|
|
2170
|
+
transformFunction: null
|
|
2171
|
+
}
|
|
2172
|
+
},
|
|
2173
|
+
ngImport: i0,
|
|
2174
|
+
template: `
|
|
1120
2175
|
<ui-radio
|
|
1121
2176
|
[value]="value()"
|
|
1122
2177
|
[ngModel]="table.isSelected(value()) ? value() : undefined"
|
|
@@ -1125,14 +2180,57 @@ class UiTableRadio {
|
|
|
1125
2180
|
[ariaLabel]="ariaLabel()"
|
|
1126
2181
|
(radioChange)="onSelect()"
|
|
1127
2182
|
/>
|
|
1128
|
-
`,
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
2183
|
+
`,
|
|
2184
|
+
isInline: true,
|
|
2185
|
+
dependencies: [
|
|
2186
|
+
{
|
|
2187
|
+
kind: "component",
|
|
2188
|
+
type: UiRadio,
|
|
2189
|
+
selector: "ui-radio",
|
|
2190
|
+
inputs: ["value", "label"],
|
|
2191
|
+
outputs: [
|
|
2192
|
+
"radioChange",
|
|
2193
|
+
"radioFocus",
|
|
2194
|
+
"radioBlur"
|
|
2195
|
+
]
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
kind: "ngmodule",
|
|
2199
|
+
type: FormsModule
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
kind: "directive",
|
|
2203
|
+
type: i1.NgControlStatus,
|
|
2204
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
kind: "directive",
|
|
2208
|
+
type: i1.NgModel,
|
|
2209
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
2210
|
+
inputs: [
|
|
2211
|
+
"name",
|
|
2212
|
+
"disabled",
|
|
2213
|
+
"ngModel",
|
|
2214
|
+
"ngModelOptions"
|
|
2215
|
+
],
|
|
2216
|
+
outputs: ["ngModelChange"],
|
|
2217
|
+
exportAs: ["ngModel"]
|
|
2218
|
+
}
|
|
2219
|
+
]
|
|
2220
|
+
});
|
|
2221
|
+
}
|
|
2222
|
+
};
|
|
2223
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2224
|
+
minVersion: "12.0.0",
|
|
2225
|
+
version: "22.3.0",
|
|
2226
|
+
ngImport: i0,
|
|
2227
|
+
type: UiTableRadio,
|
|
2228
|
+
decorators: [{
|
|
2229
|
+
type: Component,
|
|
2230
|
+
args: [{
|
|
2231
|
+
selector: "ui-table-radio",
|
|
2232
|
+
imports: [UiRadio, FormsModule],
|
|
2233
|
+
template: `
|
|
1136
2234
|
<ui-radio
|
|
1137
2235
|
[value]="value()"
|
|
1138
2236
|
[ngModel]="table.isSelected(value()) ? value() : undefined"
|
|
@@ -1141,279 +2239,444 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
1141
2239
|
[ariaLabel]="ariaLabel()"
|
|
1142
2240
|
(radioChange)="onSelect()"
|
|
1143
2241
|
/>
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
2242
|
+
`
|
|
2243
|
+
}]
|
|
2244
|
+
}],
|
|
2245
|
+
propDecorators: {
|
|
2246
|
+
value: [{
|
|
2247
|
+
type: i0.Input,
|
|
2248
|
+
args: [{
|
|
2249
|
+
isSignal: true,
|
|
2250
|
+
alias: "value",
|
|
2251
|
+
required: true
|
|
2252
|
+
}]
|
|
2253
|
+
}],
|
|
2254
|
+
index: [{
|
|
2255
|
+
type: i0.Input,
|
|
2256
|
+
args: [{
|
|
2257
|
+
isSignal: true,
|
|
2258
|
+
alias: "index",
|
|
2259
|
+
required: false
|
|
2260
|
+
}]
|
|
2261
|
+
}],
|
|
2262
|
+
name: [{
|
|
2263
|
+
type: i0.Input,
|
|
2264
|
+
args: [{
|
|
2265
|
+
isSignal: true,
|
|
2266
|
+
alias: "name",
|
|
2267
|
+
required: false
|
|
2268
|
+
}]
|
|
2269
|
+
}],
|
|
2270
|
+
disabled: [{
|
|
2271
|
+
type: i0.Input,
|
|
2272
|
+
args: [{
|
|
2273
|
+
isSignal: true,
|
|
2274
|
+
alias: "disabled",
|
|
2275
|
+
required: false
|
|
2276
|
+
}]
|
|
2277
|
+
}],
|
|
2278
|
+
ariaLabel: [{
|
|
2279
|
+
type: i0.Input,
|
|
2280
|
+
args: [{
|
|
2281
|
+
isSignal: true,
|
|
2282
|
+
alias: "ariaLabel",
|
|
2283
|
+
required: false
|
|
2284
|
+
}]
|
|
2285
|
+
}]
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
var UiTableRowToggler = class UiTableRowToggler {
|
|
2289
|
+
constructor() {
|
|
2290
|
+
this.table = inject(UiTable);
|
|
2291
|
+
this.data = input.required({
|
|
2292
|
+
...ngDevMode ? { debugName: "data" } : /* istanbul ignore next */ {},
|
|
2293
|
+
alias: "uiRowToggler"
|
|
2294
|
+
});
|
|
2295
|
+
this.expanded = computed(() => this.table.isRowExpanded(this.data()), ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
|
|
2296
|
+
}
|
|
2297
|
+
onToggle(event) {
|
|
2298
|
+
this.table.toggleRow(this.data(), event);
|
|
2299
|
+
event.stopPropagation();
|
|
2300
|
+
}
|
|
2301
|
+
static {
|
|
2302
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2303
|
+
minVersion: "12.0.0",
|
|
2304
|
+
version: "22.3.0",
|
|
2305
|
+
ngImport: i0,
|
|
2306
|
+
type: UiTableRowToggler,
|
|
2307
|
+
deps: [],
|
|
2308
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2309
|
+
});
|
|
2310
|
+
}
|
|
2311
|
+
static {
|
|
2312
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2313
|
+
minVersion: "17.1.0",
|
|
2314
|
+
version: "22.3.0",
|
|
2315
|
+
type: UiTableRowToggler,
|
|
2316
|
+
isStandalone: true,
|
|
2317
|
+
selector: "[uiRowToggler]",
|
|
2318
|
+
inputs: { data: {
|
|
2319
|
+
classPropertyName: "data",
|
|
2320
|
+
publicName: "uiRowToggler",
|
|
2321
|
+
isSignal: true,
|
|
2322
|
+
isRequired: true,
|
|
2323
|
+
transformFunction: null
|
|
2324
|
+
} },
|
|
2325
|
+
host: {
|
|
2326
|
+
listeners: { "click": "onToggle($event)" },
|
|
2327
|
+
properties: { "attr.aria-expanded": "expanded()" }
|
|
2328
|
+
},
|
|
2329
|
+
ngImport: i0
|
|
2330
|
+
});
|
|
2331
|
+
}
|
|
2332
|
+
};
|
|
2333
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2334
|
+
minVersion: "12.0.0",
|
|
2335
|
+
version: "22.3.0",
|
|
2336
|
+
ngImport: i0,
|
|
2337
|
+
type: UiTableRowToggler,
|
|
2338
|
+
decorators: [{
|
|
2339
|
+
type: Directive,
|
|
2340
|
+
args: [{
|
|
2341
|
+
selector: "[uiRowToggler]",
|
|
2342
|
+
host: {
|
|
2343
|
+
"[attr.aria-expanded]": "expanded()",
|
|
2344
|
+
"(click)": "onToggle($event)"
|
|
2345
|
+
}
|
|
2346
|
+
}]
|
|
2347
|
+
}],
|
|
2348
|
+
propDecorators: { data: [{
|
|
2349
|
+
type: i0.Input,
|
|
2350
|
+
args: [{
|
|
2351
|
+
isSignal: true,
|
|
2352
|
+
alias: "uiRowToggler",
|
|
2353
|
+
required: true
|
|
2354
|
+
}]
|
|
2355
|
+
}] }
|
|
2356
|
+
});
|
|
2357
|
+
var UiTableFrozenColumn = class UiTableFrozenColumn {
|
|
2358
|
+
constructor() {
|
|
2359
|
+
this.el = inject(ElementRef);
|
|
2360
|
+
this.injector = inject(Injector);
|
|
2361
|
+
this.frozen = input(true, {
|
|
2362
|
+
...ngDevMode ? { debugName: "frozen" } : /* istanbul ignore next */ {},
|
|
2363
|
+
alias: "uiFrozenColumn",
|
|
2364
|
+
transform: (value) => value === "" || value == null || booleanAttribute(value)
|
|
2365
|
+
});
|
|
2366
|
+
this.alignFrozen = input("left", ...ngDevMode ? [{ debugName: "alignFrozen" }] : /* istanbul ignore next */ []);
|
|
2367
|
+
this.isFrozen = computed(() => this.frozen(), ...ngDevMode ? [{ debugName: "isFrozen" }] : /* istanbul ignore next */ []);
|
|
2368
|
+
afterNextRender(() => {
|
|
2369
|
+
this.updatePosition();
|
|
2370
|
+
const row = this.el.nativeElement.parentElement;
|
|
2371
|
+
if (row && typeof ResizeObserver !== "undefined") {
|
|
2372
|
+
const observer = new ResizeObserver(() => this.updatePosition());
|
|
2373
|
+
observer.observe(row);
|
|
2374
|
+
this.injector.get(DestroyRef).onDestroy(() => observer.disconnect());
|
|
2375
|
+
}
|
|
2376
|
+
});
|
|
2377
|
+
effect(() => {
|
|
2378
|
+
this.frozen();
|
|
2379
|
+
this.alignFrozen();
|
|
2380
|
+
this.updatePosition();
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
updatePosition() {
|
|
2384
|
+
const cell = this.el.nativeElement;
|
|
2385
|
+
if (!this.frozen()) {
|
|
2386
|
+
cell.style.left = "";
|
|
2387
|
+
cell.style.right = "";
|
|
2388
|
+
return;
|
|
2389
|
+
}
|
|
2390
|
+
if (this.alignFrozen() === "left") {
|
|
2391
|
+
let offset = 0;
|
|
2392
|
+
let sibling = cell.previousElementSibling;
|
|
2393
|
+
while (sibling) {
|
|
2394
|
+
if (sibling.classList.contains("_frozen-left")) offset += sibling.getBoundingClientRect().width;
|
|
2395
|
+
sibling = sibling.previousElementSibling;
|
|
2396
|
+
}
|
|
2397
|
+
cell.style.left = `${offset}px`;
|
|
2398
|
+
cell.style.right = "";
|
|
2399
|
+
} else {
|
|
2400
|
+
let offset = 0;
|
|
2401
|
+
let sibling = cell.nextElementSibling;
|
|
2402
|
+
while (sibling) {
|
|
2403
|
+
if (sibling.classList.contains("_frozen-right")) offset += sibling.getBoundingClientRect().width;
|
|
2404
|
+
sibling = sibling.nextElementSibling;
|
|
2405
|
+
}
|
|
2406
|
+
cell.style.right = `${offset}px`;
|
|
2407
|
+
cell.style.left = "";
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
static {
|
|
2411
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2412
|
+
minVersion: "12.0.0",
|
|
2413
|
+
version: "22.3.0",
|
|
2414
|
+
ngImport: i0,
|
|
2415
|
+
type: UiTableFrozenColumn,
|
|
2416
|
+
deps: [],
|
|
2417
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
static {
|
|
2421
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2422
|
+
minVersion: "17.1.0",
|
|
2423
|
+
version: "22.3.0",
|
|
2424
|
+
type: UiTableFrozenColumn,
|
|
2425
|
+
isStandalone: true,
|
|
2426
|
+
selector: "[uiFrozenColumn]",
|
|
2427
|
+
inputs: {
|
|
2428
|
+
frozen: {
|
|
2429
|
+
classPropertyName: "frozen",
|
|
2430
|
+
publicName: "uiFrozenColumn",
|
|
2431
|
+
isSignal: true,
|
|
2432
|
+
isRequired: false,
|
|
2433
|
+
transformFunction: null
|
|
2434
|
+
},
|
|
2435
|
+
alignFrozen: {
|
|
2436
|
+
classPropertyName: "alignFrozen",
|
|
2437
|
+
publicName: "alignFrozen",
|
|
2438
|
+
isSignal: true,
|
|
2439
|
+
isRequired: false,
|
|
2440
|
+
transformFunction: null
|
|
2441
|
+
}
|
|
2442
|
+
},
|
|
2443
|
+
host: { properties: {
|
|
2444
|
+
"class._frozen-left": "isFrozen() && alignFrozen() === \"left\"",
|
|
2445
|
+
"class._frozen-right": "isFrozen() && alignFrozen() === \"right\""
|
|
2446
|
+
} },
|
|
2447
|
+
ngImport: i0
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2450
|
+
};
|
|
2451
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2452
|
+
minVersion: "12.0.0",
|
|
2453
|
+
version: "22.3.0",
|
|
2454
|
+
ngImport: i0,
|
|
2455
|
+
type: UiTableFrozenColumn,
|
|
2456
|
+
decorators: [{
|
|
2457
|
+
type: Directive,
|
|
2458
|
+
args: [{
|
|
2459
|
+
selector: "[uiFrozenColumn]",
|
|
2460
|
+
host: {
|
|
2461
|
+
"[class._frozen-left]": "isFrozen() && alignFrozen() === \"left\"",
|
|
2462
|
+
"[class._frozen-right]": "isFrozen() && alignFrozen() === \"right\""
|
|
2463
|
+
}
|
|
2464
|
+
}]
|
|
2465
|
+
}],
|
|
2466
|
+
ctorParameters: () => [],
|
|
2467
|
+
propDecorators: {
|
|
2468
|
+
frozen: [{
|
|
2469
|
+
type: i0.Input,
|
|
2470
|
+
args: [{
|
|
2471
|
+
isSignal: true,
|
|
2472
|
+
alias: "uiFrozenColumn",
|
|
2473
|
+
required: false
|
|
2474
|
+
}]
|
|
2475
|
+
}],
|
|
2476
|
+
alignFrozen: [{
|
|
2477
|
+
type: i0.Input,
|
|
2478
|
+
args: [{
|
|
2479
|
+
isSignal: true,
|
|
2480
|
+
alias: "alignFrozen",
|
|
2481
|
+
required: false
|
|
2482
|
+
}]
|
|
2483
|
+
}]
|
|
2484
|
+
}
|
|
2485
|
+
});
|
|
2486
|
+
var UiTableResizableColumn = class UiTableResizableColumn {
|
|
2487
|
+
constructor() {
|
|
2488
|
+
this.table = inject(UiTable);
|
|
2489
|
+
this.el = inject(ElementRef);
|
|
2490
|
+
this.destroyRef = inject(DestroyRef);
|
|
2491
|
+
this.startX = 0;
|
|
2492
|
+
this.startWidth = 0;
|
|
2493
|
+
this.nextStartWidth = 0;
|
|
2494
|
+
this.appliedDelta = 0;
|
|
2495
|
+
this.cleanupDrag = null;
|
|
2496
|
+
this.onPointerDown = (event) => {
|
|
2497
|
+
const cell = this.el.nativeElement;
|
|
2498
|
+
const next = cell.nextElementSibling;
|
|
2499
|
+
if (!next) return;
|
|
2500
|
+
event.preventDefault();
|
|
2501
|
+
this.table.lockColumnWidths();
|
|
2502
|
+
this.startX = event.clientX;
|
|
2503
|
+
this.startWidth = cell.getBoundingClientRect().width;
|
|
2504
|
+
this.nextStartWidth = next.getBoundingClientRect().width;
|
|
2505
|
+
this.appliedDelta = 0;
|
|
2506
|
+
const onMove = (moveEvent) => {
|
|
2507
|
+
const delta = moveEvent.clientX - this.startX;
|
|
2508
|
+
if (this.table.resizeColumnFit(cell, this.startWidth, this.nextStartWidth, delta)) this.appliedDelta = delta;
|
|
2509
|
+
};
|
|
2510
|
+
const onUp = () => {
|
|
2511
|
+
this.cleanupDrag?.();
|
|
2512
|
+
if (this.appliedDelta !== 0) this.table.notifyColResize(cell, this.appliedDelta);
|
|
2513
|
+
};
|
|
2514
|
+
document.addEventListener("pointermove", onMove);
|
|
2515
|
+
document.addEventListener("pointerup", onUp);
|
|
2516
|
+
this.cleanupDrag = () => {
|
|
2517
|
+
document.removeEventListener("pointermove", onMove);
|
|
2518
|
+
document.removeEventListener("pointerup", onUp);
|
|
2519
|
+
this.cleanupDrag = null;
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2522
|
+
afterNextRender(() => {
|
|
2523
|
+
const handle = document.createElement("span");
|
|
2524
|
+
handle.className = "ui-table-column-resizer";
|
|
2525
|
+
handle.setAttribute("aria-hidden", "true");
|
|
2526
|
+
handle.addEventListener("pointerdown", this.onPointerDown);
|
|
2527
|
+
this.el.nativeElement.appendChild(handle);
|
|
2528
|
+
});
|
|
2529
|
+
this.destroyRef.onDestroy(() => this.cleanupDrag?.());
|
|
2530
|
+
}
|
|
2531
|
+
static {
|
|
2532
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2533
|
+
minVersion: "12.0.0",
|
|
2534
|
+
version: "22.3.0",
|
|
2535
|
+
ngImport: i0,
|
|
2536
|
+
type: UiTableResizableColumn,
|
|
2537
|
+
deps: [],
|
|
2538
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
static {
|
|
2542
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2543
|
+
minVersion: "14.0.0",
|
|
2544
|
+
version: "22.3.0",
|
|
2545
|
+
type: UiTableResizableColumn,
|
|
2546
|
+
isStandalone: true,
|
|
2547
|
+
selector: "[uiResizableColumn]",
|
|
2548
|
+
host: { classAttribute: "ui-table-resizable-column" },
|
|
2549
|
+
ngImport: i0
|
|
2550
|
+
});
|
|
2551
|
+
}
|
|
2552
|
+
};
|
|
2553
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2554
|
+
minVersion: "12.0.0",
|
|
2555
|
+
version: "22.3.0",
|
|
2556
|
+
ngImport: i0,
|
|
2557
|
+
type: UiTableResizableColumn,
|
|
2558
|
+
decorators: [{
|
|
2559
|
+
type: Directive,
|
|
2560
|
+
args: [{
|
|
2561
|
+
selector: "[uiResizableColumn]",
|
|
2562
|
+
host: { class: "ui-table-resizable-column" }
|
|
2563
|
+
}]
|
|
2564
|
+
}],
|
|
2565
|
+
ctorParameters: () => []
|
|
2566
|
+
});
|
|
2567
|
+
var UiTableReorderableRow = class UiTableReorderableRow {
|
|
2568
|
+
constructor() {
|
|
2569
|
+
this.table = inject(UiTable);
|
|
2570
|
+
this.el = inject(ElementRef);
|
|
2571
|
+
this.index = input.required({
|
|
2572
|
+
...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
|
|
2573
|
+
alias: "uiReorderableRow",
|
|
2574
|
+
transform: numberAttribute
|
|
2575
|
+
});
|
|
2576
|
+
this.dropPosition = signal(null, ...ngDevMode ? [{ debugName: "dropPosition" }] : /* istanbul ignore next */ []);
|
|
2577
|
+
}
|
|
2578
|
+
onDragStart(event) {
|
|
2579
|
+
this.table.draggedRowIndex = this.index();
|
|
2580
|
+
event.dataTransfer?.setData("text/plain", String(this.index()));
|
|
2581
|
+
if (event.dataTransfer) event.dataTransfer.effectAllowed = "move";
|
|
2582
|
+
}
|
|
2583
|
+
onDragOver(event) {
|
|
2584
|
+
if (this.table.draggedRowIndex == null) return;
|
|
2585
|
+
event.preventDefault();
|
|
2586
|
+
const rect = this.el.nativeElement.getBoundingClientRect();
|
|
2587
|
+
this.dropPosition.set(event.clientY < rect.top + rect.height / 2 ? "above" : "below");
|
|
2588
|
+
}
|
|
2589
|
+
onDragLeave() {
|
|
2590
|
+
this.dropPosition.set(null);
|
|
2591
|
+
}
|
|
2592
|
+
onDrop(event) {
|
|
2593
|
+
event.preventDefault();
|
|
2594
|
+
const position = this.dropPosition();
|
|
2595
|
+
this.dropPosition.set(null);
|
|
2596
|
+
if (position == null) return;
|
|
2597
|
+
const drag = this.table.draggedRowIndex;
|
|
2598
|
+
let drop = position === "above" ? this.index() : this.index() + 1;
|
|
2599
|
+
if (drag != null && drag < drop) drop--;
|
|
2600
|
+
this.table.dropRow(drop);
|
|
2601
|
+
}
|
|
2602
|
+
onDragEnd() {
|
|
2603
|
+
this.dropPosition.set(null);
|
|
2604
|
+
this.table.draggedRowIndex = null;
|
|
2605
|
+
}
|
|
2606
|
+
static {
|
|
2607
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
2608
|
+
minVersion: "12.0.0",
|
|
2609
|
+
version: "22.3.0",
|
|
2610
|
+
ngImport: i0,
|
|
2611
|
+
type: UiTableReorderableRow,
|
|
2612
|
+
deps: [],
|
|
2613
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
2614
|
+
});
|
|
2615
|
+
}
|
|
2616
|
+
static {
|
|
2617
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
2618
|
+
minVersion: "17.1.0",
|
|
2619
|
+
version: "22.3.0",
|
|
2620
|
+
type: UiTableReorderableRow,
|
|
2621
|
+
isStandalone: true,
|
|
2622
|
+
selector: "[uiReorderableRow]",
|
|
2623
|
+
inputs: { index: {
|
|
2624
|
+
classPropertyName: "index",
|
|
2625
|
+
publicName: "uiReorderableRow",
|
|
2626
|
+
isSignal: true,
|
|
2627
|
+
isRequired: true,
|
|
2628
|
+
transformFunction: null
|
|
2629
|
+
} },
|
|
2630
|
+
host: {
|
|
2631
|
+
listeners: {
|
|
2632
|
+
"dragstart": "onDragStart($event)",
|
|
2633
|
+
"dragover": "onDragOver($event)",
|
|
2634
|
+
"dragleave": "onDragLeave()",
|
|
2635
|
+
"drop": "onDrop($event)",
|
|
2636
|
+
"dragend": "onDragEnd()"
|
|
2637
|
+
},
|
|
2638
|
+
properties: {
|
|
2639
|
+
"attr.draggable": "true",
|
|
2640
|
+
"class._drop-above": "dropPosition() === \"above\"",
|
|
2641
|
+
"class._drop-below": "dropPosition() === \"below\""
|
|
2642
|
+
},
|
|
2643
|
+
classAttribute: "ui-table-reorderable-row"
|
|
2644
|
+
},
|
|
2645
|
+
ngImport: i0
|
|
2646
|
+
});
|
|
2647
|
+
}
|
|
2648
|
+
};
|
|
2649
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2650
|
+
minVersion: "12.0.0",
|
|
2651
|
+
version: "22.3.0",
|
|
2652
|
+
ngImport: i0,
|
|
2653
|
+
type: UiTableReorderableRow,
|
|
2654
|
+
decorators: [{
|
|
2655
|
+
type: Directive,
|
|
2656
|
+
args: [{
|
|
2657
|
+
selector: "[uiReorderableRow]",
|
|
2658
|
+
host: {
|
|
2659
|
+
class: "ui-table-reorderable-row",
|
|
2660
|
+
"[attr.draggable]": "true",
|
|
2661
|
+
"[class._drop-above]": "dropPosition() === \"above\"",
|
|
2662
|
+
"[class._drop-below]": "dropPosition() === \"below\"",
|
|
2663
|
+
"(dragstart)": "onDragStart($event)",
|
|
2664
|
+
"(dragover)": "onDragOver($event)",
|
|
2665
|
+
"(dragleave)": "onDragLeave()",
|
|
2666
|
+
"(drop)": "onDrop($event)",
|
|
2667
|
+
"(dragend)": "onDragEnd()"
|
|
2668
|
+
}
|
|
2669
|
+
}]
|
|
2670
|
+
}],
|
|
2671
|
+
propDecorators: { index: [{
|
|
2672
|
+
type: i0.Input,
|
|
2673
|
+
args: [{
|
|
2674
|
+
isSignal: true,
|
|
2675
|
+
alias: "uiReorderableRow",
|
|
2676
|
+
required: true
|
|
2677
|
+
}]
|
|
2678
|
+
}] }
|
|
2679
|
+
});
|
|
1418
2680
|
export { UiTable, UiTableCheckbox, UiTableFrozenColumn, UiTableHeaderCheckbox, UiTableRadio, UiTableReorderableRow, UiTableResizableColumn, UiTableRowToggler, UiTableSelectableRow, UiTableSortIcon, UiTableSortableColumn };
|
|
1419
|
-
|
|
2681
|
+
|
|
2682
|
+
//# sourceMappingURL=4sh-ui-kit-table-ui-table.mjs.map
|