@aeris-ui/core 22.0.0-alpha.7 → 22.0.0-alpha.9
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.md +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +730 -110
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +455 -258
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +430 -117
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +819 -310
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +934 -572
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1339 -514
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -103
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -112
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +477 -145
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +596 -196
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +894 -247
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +892 -386
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +502 -225
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1794 -643
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +868 -404
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +918 -257
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +1984 -865
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1258 -1413
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -147
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +855 -615
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +861 -842
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +28 -16
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +3 -3
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +12 -16
- package/styles/controls.css +1 -1
- package/types/aeris-ui-core-accordion.d.ts +166 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
- package/types/aeris-ui-core-auto-complete.d.ts +326 -149
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -47
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -64
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +197 -117
- package/types/aeris-ui-core-cascade-select.d.ts +252 -131
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -55
- package/types/aeris-ui-core-chip.d.ts +116 -51
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-color-picker.d.ts +347 -150
- package/types/aeris-ui-core-compare.d.ts +224 -101
- package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
- package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
- package/types/aeris-ui-core-context-menu.d.ts +262 -150
- package/types/aeris-ui-core-date-picker.d.ts +488 -226
- package/types/aeris-ui-core-dialog.d.ts +288 -121
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -116
- package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
- package/types/aeris-ui-core-editor.d.ts +243 -124
- package/types/aeris-ui-core-file-upload.d.ts +366 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +158 -62
- package/types/aeris-ui-core-galleria.d.ts +589 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -34
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -35
- package/types/aeris-ui-core-input-mask.d.ts +194 -71
- package/types/aeris-ui-core-input-number.d.ts +272 -90
- package/types/aeris-ui-core-input-otp.d.ts +190 -82
- package/types/aeris-ui-core-input-text.d.ts +185 -62
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +174 -123
- package/types/aeris-ui-core-menu.d.ts +275 -172
- package/types/aeris-ui-core-menubar.d.ts +272 -160
- package/types/aeris-ui-core-message.d.ts +132 -61
- package/types/aeris-ui-core-meter-group.d.ts +162 -90
- package/types/aeris-ui-core-multi-select.d.ts +435 -187
- package/types/aeris-ui-core-order-list.d.ts +143 -66
- package/types/aeris-ui-core-organization-chart.d.ts +132 -77
- package/types/aeris-ui-core-paginator.d.ts +92 -46
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +257 -108
- package/types/aeris-ui-core-pick-list.d.ts +373 -179
- package/types/aeris-ui-core-popover.d.ts +218 -107
- package/types/aeris-ui-core-progress-bar.d.ts +156 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -51
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +64 -29
- package/types/aeris-ui-core-select.d.ts +474 -226
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -116
- package/types/aeris-ui-core-speed-dial.d.ts +240 -112
- package/types/aeris-ui-core-split-button.d.ts +265 -115
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +183 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +595 -308
- package/types/aeris-ui-core-tabs.d.ts +163 -90
- package/types/aeris-ui-core-textarea.d.ts +261 -81
- package/types/aeris-ui-core-theme-builder.d.ts +466 -451
- package/types/aeris-ui-core-theming.d.ts +42 -49
- package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
- package/types/aeris-ui-core-timeline.d.ts +108 -71
- package/types/aeris-ui-core-toast.d.ts +219 -155
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -92
- package/types/aeris-ui-core-tree-select.d.ts +359 -179
- package/types/aeris-ui-core-tree-table.d.ts +565 -290
- package/types/aeris-ui-core-tree.d.ts +269 -165
- package/types/aeris-ui-core.d.ts +161 -125
|
@@ -1,645 +1,855 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output, signal, viewChild, viewChildren } from "@angular/core";
|
|
4
|
+
var AerisTreeNodeTemplate = class AerisTreeNodeTemplate {
|
|
5
|
+
template = inject(TemplateRef);
|
|
6
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
10
|
+
minVersion: "12.0.0",
|
|
11
|
+
version: "22.2.1",
|
|
12
|
+
ngImport: i0,
|
|
13
|
+
type: AerisTreeNodeTemplate,
|
|
14
|
+
deps: [],
|
|
15
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
16
|
+
});
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
18
|
+
minVersion: "14.0.0",
|
|
19
|
+
version: "22.2.1",
|
|
20
|
+
type: AerisTreeNodeTemplate,
|
|
21
|
+
isStandalone: true,
|
|
22
|
+
selector: "ng-template[aerisTreeNode]",
|
|
23
|
+
ngImport: i0
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
27
|
+
minVersion: "12.0.0",
|
|
28
|
+
version: "22.2.1",
|
|
29
|
+
ngImport: i0,
|
|
30
|
+
type: AerisTreeNodeTemplate,
|
|
31
|
+
decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{ selector: "ng-template[aerisTreeNode]" }]
|
|
34
|
+
}]
|
|
35
|
+
});
|
|
36
|
+
var AerisTreeEmptyTemplate = class AerisTreeEmptyTemplate {
|
|
37
|
+
template = inject(TemplateRef);
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
39
|
+
minVersion: "12.0.0",
|
|
40
|
+
version: "22.2.1",
|
|
41
|
+
ngImport: i0,
|
|
42
|
+
type: AerisTreeEmptyTemplate,
|
|
43
|
+
deps: [],
|
|
44
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
45
|
+
});
|
|
46
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
47
|
+
minVersion: "14.0.0",
|
|
48
|
+
version: "22.2.1",
|
|
49
|
+
type: AerisTreeEmptyTemplate,
|
|
50
|
+
isStandalone: true,
|
|
51
|
+
selector: "ng-template[aerisTreeEmpty]",
|
|
52
|
+
ngImport: i0
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
56
|
+
minVersion: "12.0.0",
|
|
57
|
+
version: "22.2.1",
|
|
58
|
+
ngImport: i0,
|
|
59
|
+
type: AerisTreeEmptyTemplate,
|
|
60
|
+
decorators: [{
|
|
61
|
+
type: Directive,
|
|
62
|
+
args: [{ selector: "ng-template[aerisTreeEmpty]" }]
|
|
63
|
+
}]
|
|
64
|
+
});
|
|
65
|
+
var AerisTreeLoadingTemplate = class AerisTreeLoadingTemplate {
|
|
66
|
+
template = inject(TemplateRef);
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
68
|
+
minVersion: "12.0.0",
|
|
69
|
+
version: "22.2.1",
|
|
70
|
+
ngImport: i0,
|
|
71
|
+
type: AerisTreeLoadingTemplate,
|
|
72
|
+
deps: [],
|
|
73
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
74
|
+
});
|
|
75
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
76
|
+
minVersion: "14.0.0",
|
|
77
|
+
version: "22.2.1",
|
|
78
|
+
type: AerisTreeLoadingTemplate,
|
|
79
|
+
isStandalone: true,
|
|
80
|
+
selector: "ng-template[aerisTreeLoading]",
|
|
81
|
+
ngImport: i0
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
85
|
+
minVersion: "12.0.0",
|
|
86
|
+
version: "22.2.1",
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
type: AerisTreeLoadingTemplate,
|
|
89
|
+
decorators: [{
|
|
90
|
+
type: Directive,
|
|
91
|
+
args: [{ selector: "ng-template[aerisTreeLoading]" }]
|
|
92
|
+
}]
|
|
93
|
+
});
|
|
35
94
|
let treeId = 0;
|
|
36
|
-
class AerisTree {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
95
|
+
var AerisTree = class AerisTree {
|
|
96
|
+
destroyRef = inject(DestroyRef);
|
|
97
|
+
value = model([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
98
|
+
selectionMode = input(null, ...ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []);
|
|
99
|
+
selectionKeys = model([], ...ngDevMode ? [{ debugName: "selectionKeys" }] : /* istanbul ignore next */ []);
|
|
100
|
+
expandedKeys = model([], ...ngDevMode ? [{ debugName: "expandedKeys" }] : /* istanbul ignore next */ []);
|
|
101
|
+
filterValue = model("", ...ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []);
|
|
102
|
+
filter = input(false, {
|
|
103
|
+
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
104
|
+
transform: booleanAttribute
|
|
105
|
+
});
|
|
106
|
+
propagateSelection = input(true, {
|
|
107
|
+
...ngDevMode ? { debugName: "propagateSelection" } : /* istanbul ignore next */ {},
|
|
108
|
+
transform: booleanAttribute
|
|
109
|
+
});
|
|
110
|
+
disabled = input(false, {
|
|
111
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: booleanAttribute
|
|
113
|
+
});
|
|
114
|
+
fluid = input(true, {
|
|
115
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
116
|
+
transform: booleanAttribute
|
|
117
|
+
});
|
|
118
|
+
loading = input(false, {
|
|
119
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
120
|
+
transform: booleanAttribute
|
|
121
|
+
});
|
|
122
|
+
loadingKeys = input([], ...ngDevMode ? [{ debugName: "loadingKeys" }] : /* istanbul ignore next */ []);
|
|
123
|
+
dragDrop = input(false, {
|
|
124
|
+
...ngDevMode ? { debugName: "dragDrop" } : /* istanbul ignore next */ {},
|
|
125
|
+
transform: booleanAttribute
|
|
126
|
+
});
|
|
127
|
+
ariaLabel = input("Tree", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
128
|
+
filterPlaceholder = input("Search tree", ...ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []);
|
|
129
|
+
filterAriaLabel = input("Search tree", ...ngDevMode ? [{ debugName: "filterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
130
|
+
filterClearAriaLabel = input("Clear search", ...ngDevMode ? [{ debugName: "filterClearAriaLabel" }] : /* istanbul ignore next */ []);
|
|
131
|
+
emptyMessage = input("No tree nodes available", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
132
|
+
emptyFilterMessage = input("No matching nodes", ...ngDevMode ? [{ debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []);
|
|
133
|
+
loadingMessage = input("Loading tree", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
|
|
134
|
+
selectionChanged = output();
|
|
135
|
+
nodeSelected = output();
|
|
136
|
+
nodeUnselected = output();
|
|
137
|
+
nodeExpanded = output();
|
|
138
|
+
nodeCollapsed = output();
|
|
139
|
+
filterChanged = output();
|
|
140
|
+
nodeDropped = output();
|
|
141
|
+
nodeTemplate = contentChild(AerisTreeNodeTemplate, ...ngDevMode ? [{ debugName: "nodeTemplate" }] : /* istanbul ignore next */ []);
|
|
142
|
+
emptyTemplate = contentChild(AerisTreeEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
143
|
+
loadingTemplate = contentChild(AerisTreeLoadingTemplate, ...ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []);
|
|
144
|
+
treeItems = viewChildren("treeItem", ...ngDevMode ? [{ debugName: "treeItems" }] : /* istanbul ignore next */ []);
|
|
145
|
+
filterInput = viewChild("filterInput", ...ngDevMode ? [{ debugName: "filterInput" }] : /* istanbul ignore next */ []);
|
|
146
|
+
activeKey = signal(null, ...ngDevMode ? [{ debugName: "activeKey" }] : /* istanbul ignore next */ []);
|
|
147
|
+
draggingKey = signal(null, ...ngDevMode ? [{ debugName: "draggingKey" }] : /* istanbul ignore next */ []);
|
|
148
|
+
dropTarget = signal(null, ...ngDevMode ? [{ debugName: "dropTarget" }] : /* istanbul ignore next */ []);
|
|
149
|
+
dragAnnouncement = signal("", ...ngDevMode ? [{ debugName: "dragAnnouncement" }] : /* istanbul ignore next */ []);
|
|
150
|
+
resolvedTreeId = `aeris-tree-${++treeId}`;
|
|
151
|
+
dragHelpId = `${this.resolvedTreeId}-drag-help`;
|
|
152
|
+
structure = computed(() => this.buildStructure(this.value(), this.filterValue().trim().toLocaleLowerCase()), ...ngDevMode ? [{ debugName: "structure" }] : /* istanbul ignore next */ []);
|
|
153
|
+
resolvedActiveKey = computed(() => {
|
|
154
|
+
const nodes = this.structure();
|
|
155
|
+
const activeKey = this.activeKey();
|
|
156
|
+
return nodes.some((entry) => entry.key === activeKey) ? activeKey : nodes[0]?.key ?? null;
|
|
157
|
+
}, ...ngDevMode ? [{ debugName: "resolvedActiveKey" }] : /* istanbul ignore next */ []);
|
|
158
|
+
selectionStates = computed(() => this.buildSelectionStates(this.value()), ...ngDevMode ? [{ debugName: "selectionStates" }] : /* istanbul ignore next */ []);
|
|
159
|
+
renderedNodes = computed(() => {
|
|
160
|
+
const activeKey = this.resolvedActiveKey();
|
|
161
|
+
const selectionStates = this.selectionStates();
|
|
162
|
+
const loadingKeys = new Set(this.loadingKeys());
|
|
163
|
+
return this.structure().map((entry, index) => {
|
|
164
|
+
const state = selectionStates.get(entry.key) ?? {
|
|
165
|
+
selected: false,
|
|
166
|
+
partial: false
|
|
167
|
+
};
|
|
168
|
+
const active = entry.key === activeKey;
|
|
169
|
+
const loading = loadingKeys.has(entry.key);
|
|
170
|
+
const dragging = this.draggingKey() === entry.key;
|
|
171
|
+
const dropPosition = this.dropTarget()?.key === entry.key ? this.dropTarget()?.position ?? null : null;
|
|
172
|
+
const context = {
|
|
173
|
+
$implicit: entry.node,
|
|
174
|
+
node: entry.node,
|
|
175
|
+
key: entry.key,
|
|
176
|
+
level: entry.level,
|
|
177
|
+
selected: state.selected,
|
|
178
|
+
partial: state.partial,
|
|
179
|
+
expanded: entry.expanded,
|
|
180
|
+
leaf: !entry.expandable,
|
|
181
|
+
active,
|
|
182
|
+
loading,
|
|
183
|
+
dragging,
|
|
184
|
+
dropPosition
|
|
185
|
+
};
|
|
186
|
+
return {
|
|
187
|
+
...entry,
|
|
188
|
+
id: `${this.resolvedTreeId}-node-${index}`,
|
|
189
|
+
active,
|
|
190
|
+
disabled: this.disabled() || entry.node.disabled === true,
|
|
191
|
+
selected: state.selected,
|
|
192
|
+
partial: state.partial,
|
|
193
|
+
loading,
|
|
194
|
+
draggable: this.dragDrop() && !this.disabled() && entry.node.disabled !== true && entry.node.draggable !== false,
|
|
195
|
+
dragging,
|
|
196
|
+
dropPosition,
|
|
197
|
+
tabIndex: active && !this.disabled() ? 0 : -1,
|
|
198
|
+
context
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
}, ...ngDevMode ? [{ debugName: "renderedNodes" }] : /* istanbul ignore next */ []);
|
|
202
|
+
typeahead = "";
|
|
203
|
+
typeaheadTimer;
|
|
204
|
+
constructor() {
|
|
205
|
+
this.destroyRef.onDestroy(() => {
|
|
206
|
+
if (this.typeaheadTimer) clearTimeout(this.typeaheadTimer);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
focus(key) {
|
|
210
|
+
const targetKey = key ?? this.resolvedActiveKey();
|
|
211
|
+
if (!targetKey || this.disabled()) return;
|
|
212
|
+
this.activeKey.set(targetKey);
|
|
213
|
+
this.focusKey(targetKey);
|
|
214
|
+
}
|
|
215
|
+
expandAll() {
|
|
216
|
+
this.expandedKeys.set(this.collectExpandableKeys(this.value()));
|
|
217
|
+
}
|
|
218
|
+
collapseAll() {
|
|
219
|
+
this.expandedKeys.set([]);
|
|
220
|
+
}
|
|
221
|
+
activate(key) {
|
|
222
|
+
this.activeKey.set(key);
|
|
223
|
+
}
|
|
224
|
+
handleFilterInput(event) {
|
|
225
|
+
const value = event.target.value;
|
|
226
|
+
this.filterValue.set(value);
|
|
227
|
+
this.filterChanged.emit({
|
|
228
|
+
originalEvent: event,
|
|
229
|
+
value
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
clearFilter(event) {
|
|
233
|
+
this.filterValue.set("");
|
|
234
|
+
this.filterChanged.emit({
|
|
235
|
+
originalEvent: event,
|
|
236
|
+
value: ""
|
|
237
|
+
});
|
|
238
|
+
queueMicrotask(() => this.filterInput()?.nativeElement.focus());
|
|
239
|
+
}
|
|
240
|
+
handleFilterKeydown(event) {
|
|
241
|
+
if (event.key !== "ArrowDown" || !this.renderedNodes().length) return;
|
|
242
|
+
event.preventDefault();
|
|
243
|
+
this.focus(this.renderedNodes()[0]?.key);
|
|
244
|
+
}
|
|
245
|
+
handleNodeClick(event, entry) {
|
|
246
|
+
this.activeKey.set(entry.key);
|
|
247
|
+
event.currentTarget.focus();
|
|
248
|
+
if (entry.disabled) return;
|
|
249
|
+
if (event.target.closest(".aeris-tree__toggle") && entry.expandable) {
|
|
250
|
+
this.toggleExpansion(entry, event);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
if (this.selectionMode() && entry.node.selectable !== false) this.toggleSelection(entry, event);
|
|
254
|
+
}
|
|
255
|
+
handleNodeKeydown(event, entry) {
|
|
256
|
+
const nodes = this.renderedNodes();
|
|
257
|
+
const index = nodes.findIndex((node) => node.key === entry.key);
|
|
258
|
+
if (event.altKey && this.dragDrop() && !entry.disabled && entry.node.draggable !== false) {
|
|
259
|
+
if (this.handleKeyboardMove(event, entry)) return;
|
|
260
|
+
}
|
|
261
|
+
switch (event.key) {
|
|
262
|
+
case "ArrowDown":
|
|
263
|
+
event.preventDefault();
|
|
264
|
+
this.focusKey(nodes[Math.min(index + 1, nodes.length - 1)]?.key);
|
|
265
|
+
return;
|
|
266
|
+
case "ArrowUp":
|
|
267
|
+
event.preventDefault();
|
|
268
|
+
this.focusKey(nodes[Math.max(index - 1, 0)]?.key);
|
|
269
|
+
return;
|
|
270
|
+
case "ArrowRight":
|
|
271
|
+
if (!entry.expandable) return;
|
|
272
|
+
event.preventDefault();
|
|
273
|
+
if (!entry.expanded) this.toggleExpansion(entry, event);
|
|
274
|
+
else this.focusKey(nodes.find((node) => node.parentKey === entry.key)?.key);
|
|
275
|
+
return;
|
|
276
|
+
case "ArrowLeft":
|
|
277
|
+
event.preventDefault();
|
|
278
|
+
if (entry.expandable && entry.expanded) this.toggleExpansion(entry, event);
|
|
279
|
+
else this.focusKey(entry.parentKey ?? entry.key);
|
|
280
|
+
return;
|
|
281
|
+
case "Home":
|
|
282
|
+
event.preventDefault();
|
|
283
|
+
this.focusKey(nodes[0]?.key);
|
|
284
|
+
return;
|
|
285
|
+
case "End":
|
|
286
|
+
event.preventDefault();
|
|
287
|
+
this.focusKey(nodes[nodes.length - 1]?.key);
|
|
288
|
+
return;
|
|
289
|
+
case "Enter":
|
|
290
|
+
case " ":
|
|
291
|
+
event.preventDefault();
|
|
292
|
+
if (!entry.disabled && this.selectionMode() && entry.node.selectable !== false) this.toggleSelection(entry, event);
|
|
293
|
+
else if (!entry.disabled && entry.expandable) this.toggleExpansion(entry, event);
|
|
294
|
+
return;
|
|
295
|
+
default: this.handleTypeahead(event, index);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
handleDragStart(originalEvent, entry) {
|
|
299
|
+
if (!entry.draggable) {
|
|
300
|
+
originalEvent.preventDefault();
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
this.draggingKey.set(entry.key);
|
|
304
|
+
this.dropTarget.set(null);
|
|
305
|
+
if (originalEvent.dataTransfer) {
|
|
306
|
+
originalEvent.dataTransfer.effectAllowed = "move";
|
|
307
|
+
originalEvent.dataTransfer.setData("text/plain", entry.key);
|
|
308
|
+
}
|
|
309
|
+
this.dragAnnouncement.set(`Moving ${entry.node.label}.`);
|
|
310
|
+
}
|
|
311
|
+
handleDragOver(originalEvent, entry) {
|
|
312
|
+
const sourceKey = this.draggingKey();
|
|
313
|
+
if (!sourceKey || !this.canDrop(sourceKey, entry.key)) return;
|
|
314
|
+
const position = this.pointerDropPosition(originalEvent, entry);
|
|
315
|
+
if (position === "inside" && !this.canReceiveChildren(entry.node)) return;
|
|
316
|
+
originalEvent.preventDefault();
|
|
317
|
+
originalEvent.stopPropagation();
|
|
318
|
+
if (originalEvent.dataTransfer) originalEvent.dataTransfer.dropEffect = "move";
|
|
319
|
+
this.dropTarget.set({
|
|
320
|
+
key: entry.key,
|
|
321
|
+
position
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
handleDragLeave(originalEvent, entry) {
|
|
325
|
+
if (this.dropTarget()?.key === entry.key && !originalEvent.currentTarget.contains(originalEvent.relatedTarget)) this.dropTarget.set(null);
|
|
326
|
+
}
|
|
327
|
+
handleDrop(originalEvent, entry) {
|
|
328
|
+
const sourceKey = this.draggingKey();
|
|
329
|
+
const target = this.dropTarget();
|
|
330
|
+
if (!sourceKey || target?.key !== entry.key) return;
|
|
331
|
+
originalEvent.preventDefault();
|
|
332
|
+
originalEvent.stopPropagation();
|
|
333
|
+
this.commitMove(sourceKey, entry.key, target.position, originalEvent);
|
|
334
|
+
this.handleDragEnd();
|
|
335
|
+
}
|
|
336
|
+
handleDragEnd() {
|
|
337
|
+
this.draggingKey.set(null);
|
|
338
|
+
this.dropTarget.set(null);
|
|
339
|
+
}
|
|
340
|
+
toggleExpansion(entry, originalEvent) {
|
|
341
|
+
if (entry.loading) return;
|
|
342
|
+
const keys = new Set(this.expandedKeys());
|
|
343
|
+
if (entry.expanded) {
|
|
344
|
+
keys.delete(entry.key);
|
|
345
|
+
this.expandedKeys.set([...keys]);
|
|
346
|
+
this.nodeCollapsed.emit({
|
|
347
|
+
originalEvent,
|
|
348
|
+
node: entry.node,
|
|
349
|
+
key: entry.key
|
|
350
|
+
});
|
|
351
|
+
} else {
|
|
352
|
+
keys.add(entry.key);
|
|
353
|
+
this.expandedKeys.set([...keys]);
|
|
354
|
+
this.nodeExpanded.emit({
|
|
355
|
+
originalEvent,
|
|
356
|
+
node: entry.node,
|
|
357
|
+
key: entry.key
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
handleKeyboardMove(event, entry) {
|
|
362
|
+
const location = this.findLocation(this.value(), entry.key);
|
|
363
|
+
if (!location) return false;
|
|
364
|
+
let targetKey;
|
|
365
|
+
let position;
|
|
366
|
+
if (event.key === "ArrowUp") {
|
|
367
|
+
targetKey = location.siblings[location.index - 1]?.key;
|
|
368
|
+
position = "before";
|
|
369
|
+
} else if (event.key === "ArrowDown") {
|
|
370
|
+
targetKey = location.siblings[location.index + 1]?.key;
|
|
371
|
+
position = "after";
|
|
372
|
+
} else if (event.key === "ArrowRight") {
|
|
373
|
+
const previous = location.siblings[location.index - 1];
|
|
374
|
+
if (previous && this.canReceiveChildren(previous)) {
|
|
375
|
+
targetKey = previous.key;
|
|
376
|
+
position = "inside";
|
|
377
|
+
}
|
|
378
|
+
} else if (event.key === "ArrowLeft" && location.parentKey) {
|
|
379
|
+
targetKey = location.parentKey;
|
|
380
|
+
position = "after";
|
|
381
|
+
} else return false;
|
|
382
|
+
event.preventDefault();
|
|
383
|
+
if (targetKey && position) {
|
|
384
|
+
this.commitMove(entry.key, targetKey, position, event);
|
|
385
|
+
this.activeKey.set(entry.key);
|
|
386
|
+
}
|
|
387
|
+
return true;
|
|
388
|
+
}
|
|
389
|
+
commitMove(sourceKey, targetKey, position, originalEvent) {
|
|
390
|
+
if (!this.canDrop(sourceKey, targetKey)) return;
|
|
391
|
+
const source = this.findNode(this.value(), sourceKey);
|
|
392
|
+
const target = this.findNode(this.value(), targetKey);
|
|
393
|
+
if (!source || !target || position === "inside" && !this.canReceiveChildren(target)) return;
|
|
394
|
+
const removed = this.removeNode(this.value(), sourceKey);
|
|
395
|
+
if (!removed) return;
|
|
396
|
+
const movedValue = this.insertNode(removed.value, targetKey, removed.node, position);
|
|
397
|
+
if (!movedValue) return;
|
|
398
|
+
this.value.set(movedValue);
|
|
399
|
+
if (position === "inside" && !this.expandedKeys().includes(targetKey)) this.expandedKeys.set([...this.expandedKeys(), targetKey]);
|
|
400
|
+
this.dragAnnouncement.set(`${source.label} moved ${position} ${target.label}.`);
|
|
401
|
+
this.nodeDropped.emit({
|
|
402
|
+
originalEvent,
|
|
403
|
+
node: source,
|
|
404
|
+
key: sourceKey,
|
|
405
|
+
target,
|
|
406
|
+
targetKey,
|
|
407
|
+
position,
|
|
408
|
+
value: movedValue
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
canDrop(sourceKey, targetKey) {
|
|
412
|
+
return sourceKey !== targetKey && !this.isDescendant(sourceKey, targetKey);
|
|
413
|
+
}
|
|
414
|
+
canReceiveChildren(node) {
|
|
415
|
+
return node.leaf !== true && node.droppable !== false && node.disabled !== true;
|
|
416
|
+
}
|
|
417
|
+
pointerDropPosition(originalEvent, entry) {
|
|
418
|
+
const rect = originalEvent.currentTarget.getBoundingClientRect();
|
|
419
|
+
const ratio = rect.height > 0 ? (originalEvent.clientY - rect.top) / rect.height : .5;
|
|
420
|
+
if (!this.canReceiveChildren(entry.node)) return ratio < .5 ? "before" : "after";
|
|
421
|
+
if (ratio < .25) return "before";
|
|
422
|
+
if (ratio > .75) return "after";
|
|
423
|
+
return "inside";
|
|
424
|
+
}
|
|
425
|
+
findNode(nodes, key) {
|
|
426
|
+
for (const node of nodes) {
|
|
427
|
+
if (node.key === key) return node;
|
|
428
|
+
const child = this.findNode(node.children ?? [], key);
|
|
429
|
+
if (child) return child;
|
|
430
|
+
}
|
|
431
|
+
return null;
|
|
432
|
+
}
|
|
433
|
+
findLocation(nodes, key, parentKey = null) {
|
|
434
|
+
const index = nodes.findIndex((node) => node.key === key);
|
|
435
|
+
if (index >= 0) return {
|
|
436
|
+
parentKey,
|
|
437
|
+
siblings: nodes,
|
|
438
|
+
index
|
|
439
|
+
};
|
|
440
|
+
for (const node of nodes) {
|
|
441
|
+
const location = this.findLocation(node.children ?? [], key, node.key);
|
|
442
|
+
if (location) return location;
|
|
443
|
+
}
|
|
444
|
+
return null;
|
|
445
|
+
}
|
|
446
|
+
removeNode(nodes, key) {
|
|
447
|
+
const index = nodes.findIndex((node) => node.key === key);
|
|
448
|
+
if (index >= 0) {
|
|
449
|
+
const node = nodes[index];
|
|
450
|
+
if (!node) return null;
|
|
451
|
+
return {
|
|
452
|
+
value: [...nodes.slice(0, index), ...nodes.slice(index + 1)],
|
|
453
|
+
node
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
for (let nodeIndex = 0; nodeIndex < nodes.length; nodeIndex += 1) {
|
|
457
|
+
const node = nodes[nodeIndex];
|
|
458
|
+
if (!node) continue;
|
|
459
|
+
const removed = this.removeNode(node.children ?? [], key);
|
|
460
|
+
if (!removed) continue;
|
|
461
|
+
const value = [...nodes];
|
|
462
|
+
value[nodeIndex] = {
|
|
463
|
+
...node,
|
|
464
|
+
children: removed.value
|
|
465
|
+
};
|
|
466
|
+
return {
|
|
467
|
+
value,
|
|
468
|
+
node: removed.node
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
return null;
|
|
472
|
+
}
|
|
473
|
+
insertNode(nodes, targetKey, node, position) {
|
|
474
|
+
const index = nodes.findIndex((candidate) => candidate.key === targetKey);
|
|
475
|
+
if (index >= 0) {
|
|
476
|
+
if (position === "before") return [
|
|
477
|
+
...nodes.slice(0, index),
|
|
478
|
+
node,
|
|
479
|
+
...nodes.slice(index)
|
|
480
|
+
];
|
|
481
|
+
if (position === "after") return [
|
|
482
|
+
...nodes.slice(0, index + 1),
|
|
483
|
+
node,
|
|
484
|
+
...nodes.slice(index + 1)
|
|
485
|
+
];
|
|
486
|
+
const target = nodes[index];
|
|
487
|
+
if (!target) return null;
|
|
488
|
+
const value = [...nodes];
|
|
489
|
+
value[index] = {
|
|
490
|
+
...target,
|
|
491
|
+
leaf: false,
|
|
492
|
+
children: [...target.children ?? [], node]
|
|
493
|
+
};
|
|
494
|
+
return value;
|
|
495
|
+
}
|
|
496
|
+
for (let nodeIndex = 0; nodeIndex < nodes.length; nodeIndex += 1) {
|
|
497
|
+
const current = nodes[nodeIndex];
|
|
498
|
+
if (!current) continue;
|
|
499
|
+
const children = this.insertNode(current.children ?? [], targetKey, node, position);
|
|
500
|
+
if (!children) continue;
|
|
501
|
+
const value = [...nodes];
|
|
502
|
+
value[nodeIndex] = {
|
|
503
|
+
...current,
|
|
504
|
+
children
|
|
505
|
+
};
|
|
506
|
+
return value;
|
|
507
|
+
}
|
|
508
|
+
return null;
|
|
509
|
+
}
|
|
510
|
+
isDescendant(sourceKey, targetKey) {
|
|
511
|
+
const source = this.findNode(this.value(), sourceKey);
|
|
512
|
+
return source ? this.findNode(source.children ?? [], targetKey) !== null : false;
|
|
513
|
+
}
|
|
514
|
+
toggleSelection(entry, originalEvent) {
|
|
515
|
+
const mode = this.selectionMode();
|
|
516
|
+
if (!mode) return;
|
|
517
|
+
const keys = new Set(this.selectionKeys());
|
|
518
|
+
const selected = entry.partial || !entry.selected;
|
|
519
|
+
if (mode === "single") {
|
|
520
|
+
keys.clear();
|
|
521
|
+
if (selected) keys.add(entry.key);
|
|
522
|
+
} else if (mode === "checkbox" && this.propagateSelection()) for (const key of this.collectSelectableKeys(entry.node)) if (selected) keys.add(key);
|
|
523
|
+
else keys.delete(key);
|
|
524
|
+
else if (selected) keys.add(entry.key);
|
|
525
|
+
else keys.delete(entry.key);
|
|
526
|
+
const selectedKeys = [...keys];
|
|
527
|
+
this.selectionKeys.set(selectedKeys);
|
|
528
|
+
const selectionEvent = {
|
|
529
|
+
originalEvent,
|
|
530
|
+
node: entry.node,
|
|
531
|
+
key: entry.key,
|
|
532
|
+
selected,
|
|
533
|
+
selectedKeys
|
|
534
|
+
};
|
|
535
|
+
this.selectionChanged.emit(selectionEvent);
|
|
536
|
+
if (selected) this.nodeSelected.emit(selectionEvent);
|
|
537
|
+
else this.nodeUnselected.emit(selectionEvent);
|
|
538
|
+
}
|
|
539
|
+
buildStructure(nodes, query) {
|
|
540
|
+
if (query) return this.buildFilteredStructure(nodes, query, 1, null).entries;
|
|
541
|
+
return this.buildExpandedStructure(nodes, 1, null, new Set(this.expandedKeys()));
|
|
542
|
+
}
|
|
543
|
+
buildExpandedStructure(nodes, level, parentKey, expandedKeys) {
|
|
544
|
+
const entries = [];
|
|
545
|
+
nodes.forEach((node, index) => {
|
|
546
|
+
const expandable = this.isExpandable(node);
|
|
547
|
+
const expanded = expandable && expandedKeys.has(node.key);
|
|
548
|
+
entries.push({
|
|
549
|
+
node,
|
|
550
|
+
key: node.key,
|
|
551
|
+
level,
|
|
552
|
+
parentKey,
|
|
553
|
+
position: index + 1,
|
|
554
|
+
setSize: nodes.length,
|
|
555
|
+
expanded,
|
|
556
|
+
expandable
|
|
557
|
+
});
|
|
558
|
+
if (expanded && node.children?.length) entries.push(...this.buildExpandedStructure(node.children, level + 1, node.key, expandedKeys));
|
|
559
|
+
});
|
|
560
|
+
return entries;
|
|
561
|
+
}
|
|
562
|
+
buildFilteredStructure(nodes, query, level, parentKey) {
|
|
563
|
+
const matches = nodes.map((node) => {
|
|
564
|
+
const childResult = this.buildFilteredStructure(node.children ?? [], query, level + 1, node.key);
|
|
565
|
+
return {
|
|
566
|
+
node,
|
|
567
|
+
childResult,
|
|
568
|
+
matched: node.label.toLocaleLowerCase().includes(query) || childResult.matched
|
|
569
|
+
};
|
|
570
|
+
}).filter((result) => result.matched);
|
|
571
|
+
const entries = [];
|
|
572
|
+
matches.forEach(({ node, childResult }, index) => {
|
|
573
|
+
const expandable = this.isExpandable(node);
|
|
574
|
+
entries.push({
|
|
575
|
+
node,
|
|
576
|
+
key: node.key,
|
|
577
|
+
level,
|
|
578
|
+
parentKey,
|
|
579
|
+
position: index + 1,
|
|
580
|
+
setSize: matches.length,
|
|
581
|
+
expanded: childResult.entries.length > 0,
|
|
582
|
+
expandable
|
|
583
|
+
});
|
|
584
|
+
entries.push(...childResult.entries);
|
|
585
|
+
});
|
|
586
|
+
return {
|
|
587
|
+
matched: matches.length > 0,
|
|
588
|
+
entries
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
buildSelectionStates(nodes) {
|
|
592
|
+
const result = /* @__PURE__ */ new Map();
|
|
593
|
+
const selectedKeys = new Set(this.selectionKeys());
|
|
594
|
+
const checkbox = this.selectionMode() === "checkbox" && this.propagateSelection();
|
|
595
|
+
const visit = (node) => {
|
|
596
|
+
let selectable = node.disabled || node.selectable === false ? 0 : 1;
|
|
597
|
+
let selected = selectable && selectedKeys.has(node.key) ? 1 : 0;
|
|
598
|
+
for (const child of node.children ?? []) {
|
|
599
|
+
const childState = visit(child);
|
|
600
|
+
selectable += childState.selectable;
|
|
601
|
+
selected += childState.selected;
|
|
602
|
+
}
|
|
603
|
+
result.set(node.key, checkbox ? {
|
|
604
|
+
selected: selectable > 0 && selected === selectable,
|
|
605
|
+
partial: selected > 0 && selected < selectable
|
|
606
|
+
} : {
|
|
607
|
+
selected: selectedKeys.has(node.key),
|
|
608
|
+
partial: false
|
|
609
|
+
});
|
|
610
|
+
return {
|
|
611
|
+
selected,
|
|
612
|
+
selectable
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
nodes.forEach(visit);
|
|
616
|
+
return result;
|
|
617
|
+
}
|
|
618
|
+
collectSelectableKeys(node) {
|
|
619
|
+
const keys = [];
|
|
620
|
+
if (!node.disabled && node.selectable !== false) keys.push(node.key);
|
|
621
|
+
for (const child of node.children ?? []) keys.push(...this.collectSelectableKeys(child));
|
|
622
|
+
return keys;
|
|
623
|
+
}
|
|
624
|
+
collectExpandableKeys(nodes) {
|
|
625
|
+
const keys = [];
|
|
626
|
+
for (const node of nodes) {
|
|
627
|
+
if (this.isExpandable(node)) keys.push(node.key);
|
|
628
|
+
if (node.children?.length) keys.push(...this.collectExpandableKeys(node.children));
|
|
629
|
+
}
|
|
630
|
+
return keys;
|
|
631
|
+
}
|
|
632
|
+
isExpandable(node) {
|
|
633
|
+
return Boolean(node.children?.length) || node.leaf === false;
|
|
634
|
+
}
|
|
635
|
+
focusKey(key) {
|
|
636
|
+
if (!key) return;
|
|
637
|
+
this.activeKey.set(key);
|
|
638
|
+
this.treeItems().find((item) => item.nativeElement.dataset["treeKey"] === key)?.nativeElement.focus();
|
|
639
|
+
}
|
|
640
|
+
handleTypeahead(event, currentIndex) {
|
|
641
|
+
if (event.ctrlKey || event.metaKey || event.altKey || event.key.length !== 1) return;
|
|
642
|
+
this.typeahead += event.key.toLocaleLowerCase();
|
|
643
|
+
if (this.typeaheadTimer) clearTimeout(this.typeaheadTimer);
|
|
644
|
+
this.typeaheadTimer = setTimeout(() => {
|
|
645
|
+
this.typeahead = "";
|
|
646
|
+
}, 500);
|
|
647
|
+
const nodes = this.renderedNodes();
|
|
648
|
+
const match = [...nodes.slice(currentIndex + 1), ...nodes.slice(0, currentIndex + 1)].find((entry) => entry.node.label.toLocaleLowerCase().startsWith(this.typeahead));
|
|
649
|
+
if (match) {
|
|
650
|
+
event.preventDefault();
|
|
651
|
+
this.focusKey(match.key);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
655
|
+
minVersion: "12.0.0",
|
|
656
|
+
version: "22.2.1",
|
|
657
|
+
ngImport: i0,
|
|
658
|
+
type: AerisTree,
|
|
659
|
+
deps: [],
|
|
660
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
661
|
+
});
|
|
662
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
663
|
+
minVersion: "17.0.0",
|
|
664
|
+
version: "22.2.1",
|
|
665
|
+
type: AerisTree,
|
|
666
|
+
isStandalone: true,
|
|
667
|
+
selector: "aeris-tree",
|
|
668
|
+
inputs: {
|
|
669
|
+
value: {
|
|
670
|
+
classPropertyName: "value",
|
|
671
|
+
publicName: "value",
|
|
672
|
+
isSignal: true,
|
|
673
|
+
isRequired: false,
|
|
674
|
+
transformFunction: null
|
|
675
|
+
},
|
|
676
|
+
selectionMode: {
|
|
677
|
+
classPropertyName: "selectionMode",
|
|
678
|
+
publicName: "selectionMode",
|
|
679
|
+
isSignal: true,
|
|
680
|
+
isRequired: false,
|
|
681
|
+
transformFunction: null
|
|
682
|
+
},
|
|
683
|
+
selectionKeys: {
|
|
684
|
+
classPropertyName: "selectionKeys",
|
|
685
|
+
publicName: "selectionKeys",
|
|
686
|
+
isSignal: true,
|
|
687
|
+
isRequired: false,
|
|
688
|
+
transformFunction: null
|
|
689
|
+
},
|
|
690
|
+
expandedKeys: {
|
|
691
|
+
classPropertyName: "expandedKeys",
|
|
692
|
+
publicName: "expandedKeys",
|
|
693
|
+
isSignal: true,
|
|
694
|
+
isRequired: false,
|
|
695
|
+
transformFunction: null
|
|
696
|
+
},
|
|
697
|
+
filterValue: {
|
|
698
|
+
classPropertyName: "filterValue",
|
|
699
|
+
publicName: "filterValue",
|
|
700
|
+
isSignal: true,
|
|
701
|
+
isRequired: false,
|
|
702
|
+
transformFunction: null
|
|
703
|
+
},
|
|
704
|
+
filter: {
|
|
705
|
+
classPropertyName: "filter",
|
|
706
|
+
publicName: "filter",
|
|
707
|
+
isSignal: true,
|
|
708
|
+
isRequired: false,
|
|
709
|
+
transformFunction: null
|
|
710
|
+
},
|
|
711
|
+
propagateSelection: {
|
|
712
|
+
classPropertyName: "propagateSelection",
|
|
713
|
+
publicName: "propagateSelection",
|
|
714
|
+
isSignal: true,
|
|
715
|
+
isRequired: false,
|
|
716
|
+
transformFunction: null
|
|
717
|
+
},
|
|
718
|
+
disabled: {
|
|
719
|
+
classPropertyName: "disabled",
|
|
720
|
+
publicName: "disabled",
|
|
721
|
+
isSignal: true,
|
|
722
|
+
isRequired: false,
|
|
723
|
+
transformFunction: null
|
|
724
|
+
},
|
|
725
|
+
fluid: {
|
|
726
|
+
classPropertyName: "fluid",
|
|
727
|
+
publicName: "fluid",
|
|
728
|
+
isSignal: true,
|
|
729
|
+
isRequired: false,
|
|
730
|
+
transformFunction: null
|
|
731
|
+
},
|
|
732
|
+
loading: {
|
|
733
|
+
classPropertyName: "loading",
|
|
734
|
+
publicName: "loading",
|
|
735
|
+
isSignal: true,
|
|
736
|
+
isRequired: false,
|
|
737
|
+
transformFunction: null
|
|
738
|
+
},
|
|
739
|
+
loadingKeys: {
|
|
740
|
+
classPropertyName: "loadingKeys",
|
|
741
|
+
publicName: "loadingKeys",
|
|
742
|
+
isSignal: true,
|
|
743
|
+
isRequired: false,
|
|
744
|
+
transformFunction: null
|
|
745
|
+
},
|
|
746
|
+
dragDrop: {
|
|
747
|
+
classPropertyName: "dragDrop",
|
|
748
|
+
publicName: "dragDrop",
|
|
749
|
+
isSignal: true,
|
|
750
|
+
isRequired: false,
|
|
751
|
+
transformFunction: null
|
|
752
|
+
},
|
|
753
|
+
ariaLabel: {
|
|
754
|
+
classPropertyName: "ariaLabel",
|
|
755
|
+
publicName: "ariaLabel",
|
|
756
|
+
isSignal: true,
|
|
757
|
+
isRequired: false,
|
|
758
|
+
transformFunction: null
|
|
759
|
+
},
|
|
760
|
+
filterPlaceholder: {
|
|
761
|
+
classPropertyName: "filterPlaceholder",
|
|
762
|
+
publicName: "filterPlaceholder",
|
|
763
|
+
isSignal: true,
|
|
764
|
+
isRequired: false,
|
|
765
|
+
transformFunction: null
|
|
766
|
+
},
|
|
767
|
+
filterAriaLabel: {
|
|
768
|
+
classPropertyName: "filterAriaLabel",
|
|
769
|
+
publicName: "filterAriaLabel",
|
|
770
|
+
isSignal: true,
|
|
771
|
+
isRequired: false,
|
|
772
|
+
transformFunction: null
|
|
773
|
+
},
|
|
774
|
+
filterClearAriaLabel: {
|
|
775
|
+
classPropertyName: "filterClearAriaLabel",
|
|
776
|
+
publicName: "filterClearAriaLabel",
|
|
777
|
+
isSignal: true,
|
|
778
|
+
isRequired: false,
|
|
779
|
+
transformFunction: null
|
|
780
|
+
},
|
|
781
|
+
emptyMessage: {
|
|
782
|
+
classPropertyName: "emptyMessage",
|
|
783
|
+
publicName: "emptyMessage",
|
|
784
|
+
isSignal: true,
|
|
785
|
+
isRequired: false,
|
|
786
|
+
transformFunction: null
|
|
787
|
+
},
|
|
788
|
+
emptyFilterMessage: {
|
|
789
|
+
classPropertyName: "emptyFilterMessage",
|
|
790
|
+
publicName: "emptyFilterMessage",
|
|
791
|
+
isSignal: true,
|
|
792
|
+
isRequired: false,
|
|
793
|
+
transformFunction: null
|
|
794
|
+
},
|
|
795
|
+
loadingMessage: {
|
|
796
|
+
classPropertyName: "loadingMessage",
|
|
797
|
+
publicName: "loadingMessage",
|
|
798
|
+
isSignal: true,
|
|
799
|
+
isRequired: false,
|
|
800
|
+
transformFunction: null
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
outputs: {
|
|
804
|
+
value: "valueChange",
|
|
805
|
+
selectionKeys: "selectionKeysChange",
|
|
806
|
+
expandedKeys: "expandedKeysChange",
|
|
807
|
+
filterValue: "filterValueChange",
|
|
808
|
+
selectionChanged: "selectionChanged",
|
|
809
|
+
nodeSelected: "nodeSelected",
|
|
810
|
+
nodeUnselected: "nodeUnselected",
|
|
811
|
+
nodeExpanded: "nodeExpanded",
|
|
812
|
+
nodeCollapsed: "nodeCollapsed",
|
|
813
|
+
filterChanged: "filterChanged",
|
|
814
|
+
nodeDropped: "nodeDropped"
|
|
815
|
+
},
|
|
816
|
+
queries: [
|
|
817
|
+
{
|
|
818
|
+
propertyName: "nodeTemplate",
|
|
819
|
+
first: true,
|
|
820
|
+
predicate: AerisTreeNodeTemplate,
|
|
821
|
+
descendants: true,
|
|
822
|
+
isSignal: true
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
propertyName: "emptyTemplate",
|
|
826
|
+
first: true,
|
|
827
|
+
predicate: AerisTreeEmptyTemplate,
|
|
828
|
+
descendants: true,
|
|
829
|
+
isSignal: true
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
propertyName: "loadingTemplate",
|
|
833
|
+
first: true,
|
|
834
|
+
predicate: AerisTreeLoadingTemplate,
|
|
835
|
+
descendants: true,
|
|
836
|
+
isSignal: true
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
viewQueries: [{
|
|
840
|
+
propertyName: "treeItems",
|
|
841
|
+
predicate: ["treeItem"],
|
|
842
|
+
descendants: true,
|
|
843
|
+
isSignal: true
|
|
844
|
+
}, {
|
|
845
|
+
propertyName: "filterInput",
|
|
846
|
+
first: true,
|
|
847
|
+
predicate: ["filterInput"],
|
|
848
|
+
descendants: true,
|
|
849
|
+
isSignal: true
|
|
850
|
+
}],
|
|
851
|
+
ngImport: i0,
|
|
852
|
+
template: `
|
|
643
853
|
<div
|
|
644
854
|
class="aeris-tree"
|
|
645
855
|
[attr.data-disabled]="disabled() || null"
|
|
@@ -790,11 +1000,32 @@ class AerisTree {
|
|
|
790
1000
|
</div>
|
|
791
1001
|
}
|
|
792
1002
|
</div>
|
|
793
|
-
`,
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
1003
|
+
`,
|
|
1004
|
+
isInline: true,
|
|
1005
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0;max-width:100%}.aeris-tree{--aeris-tree-density-gap: var(--aeris-density-gap, .5rem);--aeris-tree-node-height: var(--aeris-item-height, 2.5rem);--aeris-tree-node-padding: var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);box-sizing:border-box;width:max-content;min-width:var(--aeris-tree-min-width, 16rem);max-width:100%;padding:var(--aeris-tree-padding, var(--aeris-density-gap, .5rem));border:1px solid var(--aeris-tree-border, var(--aeris-border));border-radius:var(--aeris-tree-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-tree-background, var(--aeris-surface, #fff));color:var(--aeris-tree-color, var(--aeris-text, #222222))}.aeris-tree[data-fluid=true]{width:100%}.aeris-tree[data-disabled=true]{opacity:.62}.aeris-tree__filter-wrap{position:relative;display:flex;align-items:center;margin-bottom:var(--aeris-tree-density-gap)}.aeris-tree__filter{box-sizing:border-box;width:100%;min-height:var(--aeris-control-height, 2.625rem);padding:var(--aeris-item-padding-y, .5rem) calc(var(--aeris-control-padding-x, .75rem) + 1.5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-control-bg, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);font:inherit;font-size:.875rem}.aeris-tree__filter::placeholder{color:var(--aeris-text-muted, #6d7068)}.aeris-tree__filter:focus-visible{border-color:var(--aeris-focus, #2c432c);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #2c432c) 22%,transparent)}.aeris-tree__search{position:absolute;z-index:1;left:.875rem;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:var(--aeris-text-muted, #6d7068);pointer-events:none;-webkit-mask:var(--aeris-icon-search) center/100% 100% no-repeat;mask:var(--aeris-icon-search) center/100% 100% no-repeat}.aeris-tree__filter-clear{position:absolute;right:.35rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-muted, #6d7068);cursor:pointer}.aeris-tree__filter-clear:hover,.aeris-tree__filter-clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-tree__filter-clear:focus-visible{outline:2px solid var(--aeris-focus, #2c432c);outline-offset:1px}.aeris-tree__filter-clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-tree__filter::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-tree__items{max-height:var(--aeris-tree-max-height, 24rem);overflow:auto;overscroll-behavior:contain}.aeris-tree__node{position:relative;box-sizing:border-box;min-height:var(--aeris-tree-node-height, 2.375rem);display:flex;align-items:center;gap:var(--aeris-tree-density-gap);margin-left:calc(var(--aeris-tree-level) * var(--aeris-tree-indent, 1.25rem));padding:var(--aeris-tree-node-padding, .4375rem .625rem);border-radius:var(--aeris-tree-node-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));outline:0;color:var(--aeris-text, #222222);font-size:.875rem;line-height:1.35;cursor:default;-webkit-user-select:none;user-select:none}.aeris-tree__node[draggable=true]{cursor:grab}.aeris-tree__node[draggable=true]:active{cursor:grabbing}.aeris-tree__node[data-dragging=true]{opacity:.46}.aeris-tree__node[data-drop-position=inside]{background:var(--aeris-tree-drop-background, var(--aeris-primary-soft, #eef2e6));box-shadow:inset 0 0 0 2px var(--aeris-tree-drop-indicator, var(--aeris-primary-text, #2c432c))}.aeris-tree__node[data-drop-position=before]:before,.aeris-tree__node[data-drop-position=after]:after{position:absolute;right:.375rem;left:.375rem;z-index:1;height:2px;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-tree-drop-indicator, var(--aeris-primary-text, #2c432c));content:\"\"}.aeris-tree__node[data-drop-position=before]:before{top:-1px}.aeris-tree__node[data-drop-position=after]:after{bottom:-1px}.aeris-tree__node:not([data-disabled=true]):hover,.aeris-tree__node[data-active=true]{background:var(--aeris-tree-node-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)))}.aeris-tree__node[data-selected=true]{background:var(--aeris-tree-node-selected, var(--aeris-primary-soft, #eef2e6));color:var(--aeris-primary-text, #2c432c)}.aeris-tree__node[data-disabled=true]{color:var(--aeris-text-muted, #6d7068);cursor:not-allowed;opacity:.68}.aeris-tree__node:focus-visible{box-shadow:inset 0 0 0 2px var(--aeris-focus, #2c432c)}.aeris-tree__toggle{width:1.25rem;height:1.25rem;display:grid;flex:0 0 auto;place-items:center;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))}.aeris-tree__toggle[data-expandable=true]{cursor:pointer}.aeris-tree__toggle[data-expandable=true]:hover{background:color-mix(in srgb,currentColor 10%,transparent)}.aeris-tree__chevron{position:relative;width:1rem;height:1rem;opacity:0}.aeris-tree__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(-90deg);transition:transform .14s ease;-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tree__toggle[data-expandable=true] .aeris-tree__chevron{opacity:1}.aeris-tree__toggle[data-expanded=true] .aeris-tree__chevron:before{transform:translate(-50%,-50%)}.aeris-tree__box{box-sizing:border-box;width:1rem;height:1rem;display:grid;flex:0 0 auto;place-items:center;border:1.5px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .4375rem);background:var(--aeris-surface, #fff)}.aeris-tree__box[data-checked=true],.aeris-tree__box[data-mixed=true]{border-color:var(--aeris-primary-text, #2c432c);background:var(--aeris-primary-text, #2c432c);color:var(--aeris-primary-contrast, #fff)}.aeris-tree__box[data-checked=true] span{width:.45rem;height:.25rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:translateY(-.05rem) rotate(-45deg)}.aeris-tree__box[data-mixed=true] span{width:.5rem;height:1.75px;background:currentColor}.aeris-tree__content{min-width:0;flex:1 1 auto}.aeris-tree__spinner{box-sizing:border-box;width:.875rem;height:.875rem;display:inline-block;flex:0 0 auto;border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-tree-spin .7s linear infinite}.aeris-tree__message{min-height:7rem;display:flex;align-items:center;justify-content:center;gap:var(--aeris-tree-density-gap);padding:calc(var(--aeris-item-padding-y, .5rem) * 2) calc(var(--aeris-item-padding-x, .75rem) * 1.35);color:var(--aeris-text-muted, #6d7068);font-size:.875rem;text-align:center}.aeris-tree__visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);white-space:nowrap}@keyframes aeris-tree-spin{to{transform:rotate(360deg)}}@media(max-width:36rem){.aeris-tree{min-width:0}.aeris-tree__node{margin-left:calc(var(--aeris-tree-level) * var(--aeris-tree-indent-mobile, .875rem))}}@media(prefers-reduced-motion:reduce){.aeris-tree__chevron:before{transition:none}.aeris-tree__spinner{animation:none}}@media(forced-colors:active){.aeris-tree__node:focus-visible{outline:2px solid Highlight;outline-offset:-2px}.aeris-tree__box[data-checked=true],.aeris-tree__box[data-mixed=true]{border-color:Highlight;background:Highlight;color:HighlightText}}\n"],
|
|
1006
|
+
dependencies: [{
|
|
1007
|
+
kind: "directive",
|
|
1008
|
+
type: NgTemplateOutlet,
|
|
1009
|
+
selector: "[ngTemplateOutlet]",
|
|
1010
|
+
inputs: [
|
|
1011
|
+
"ngTemplateOutletContext",
|
|
1012
|
+
"ngTemplateOutlet",
|
|
1013
|
+
"ngTemplateOutletInjector"
|
|
1014
|
+
]
|
|
1015
|
+
}]
|
|
1016
|
+
});
|
|
1017
|
+
};
|
|
1018
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1019
|
+
minVersion: "12.0.0",
|
|
1020
|
+
version: "22.2.1",
|
|
1021
|
+
ngImport: i0,
|
|
1022
|
+
type: AerisTree,
|
|
1023
|
+
decorators: [{
|
|
1024
|
+
type: Component,
|
|
1025
|
+
args: [{
|
|
1026
|
+
selector: "aeris-tree",
|
|
1027
|
+
imports: [NgTemplateOutlet],
|
|
1028
|
+
template: `
|
|
798
1029
|
<div
|
|
799
1030
|
class="aeris-tree"
|
|
800
1031
|
[attr.data-disabled]="disabled() || null"
|
|
@@ -945,18 +1176,232 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
945
1176
|
</div>
|
|
946
1177
|
}
|
|
947
1178
|
</div>
|
|
948
|
-
`,
|
|
949
|
-
|
|
1179
|
+
`,
|
|
1180
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:block;min-width:0;max-width:100%}.aeris-tree{--aeris-tree-density-gap: var(--aeris-density-gap, .5rem);--aeris-tree-node-height: var(--aeris-item-height, 2.5rem);--aeris-tree-node-padding: var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);box-sizing:border-box;width:max-content;min-width:var(--aeris-tree-min-width, 16rem);max-width:100%;padding:var(--aeris-tree-padding, var(--aeris-density-gap, .5rem));border:1px solid var(--aeris-tree-border, var(--aeris-border));border-radius:var(--aeris-tree-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-tree-background, var(--aeris-surface, #fff));color:var(--aeris-tree-color, var(--aeris-text, #222222))}.aeris-tree[data-fluid=true]{width:100%}.aeris-tree[data-disabled=true]{opacity:.62}.aeris-tree__filter-wrap{position:relative;display:flex;align-items:center;margin-bottom:var(--aeris-tree-density-gap)}.aeris-tree__filter{box-sizing:border-box;width:100%;min-height:var(--aeris-control-height, 2.625rem);padding:var(--aeris-item-padding-y, .5rem) calc(var(--aeris-control-padding-x, .75rem) + 1.5rem);border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));outline:0;background:var(--aeris-control-bg, var(--aeris-surface, #fff));color:var(--aeris-text, #222222);font:inherit;font-size:.875rem}.aeris-tree__filter::placeholder{color:var(--aeris-text-muted, #6d7068)}.aeris-tree__filter:focus-visible{border-color:var(--aeris-focus, #2c432c);box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #2c432c) 22%,transparent)}.aeris-tree__search{position:absolute;z-index:1;left:.875rem;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:var(--aeris-text-muted, #6d7068);pointer-events:none;-webkit-mask:var(--aeris-icon-search) center/100% 100% no-repeat;mask:var(--aeris-icon-search) center/100% 100% no-repeat}.aeris-tree__filter-clear{position:absolute;right:.35rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-muted, #6d7068);cursor:pointer}.aeris-tree__filter-clear:hover,.aeris-tree__filter-clear:focus-visible{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-tree__filter-clear:focus-visible{outline:2px solid var(--aeris-focus, #2c432c);outline-offset:1px}.aeris-tree__filter-clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-tree__filter::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-tree__items{max-height:var(--aeris-tree-max-height, 24rem);overflow:auto;overscroll-behavior:contain}.aeris-tree__node{position:relative;box-sizing:border-box;min-height:var(--aeris-tree-node-height, 2.375rem);display:flex;align-items:center;gap:var(--aeris-tree-density-gap);margin-left:calc(var(--aeris-tree-level) * var(--aeris-tree-indent, 1.25rem));padding:var(--aeris-tree-node-padding, .4375rem .625rem);border-radius:var(--aeris-tree-node-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));outline:0;color:var(--aeris-text, #222222);font-size:.875rem;line-height:1.35;cursor:default;-webkit-user-select:none;user-select:none}.aeris-tree__node[draggable=true]{cursor:grab}.aeris-tree__node[draggable=true]:active{cursor:grabbing}.aeris-tree__node[data-dragging=true]{opacity:.46}.aeris-tree__node[data-drop-position=inside]{background:var(--aeris-tree-drop-background, var(--aeris-primary-soft, #eef2e6));box-shadow:inset 0 0 0 2px var(--aeris-tree-drop-indicator, var(--aeris-primary-text, #2c432c))}.aeris-tree__node[data-drop-position=before]:before,.aeris-tree__node[data-drop-position=after]:after{position:absolute;right:.375rem;left:.375rem;z-index:1;height:2px;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-tree-drop-indicator, var(--aeris-primary-text, #2c432c));content:\"\"}.aeris-tree__node[data-drop-position=before]:before{top:-1px}.aeris-tree__node[data-drop-position=after]:after{bottom:-1px}.aeris-tree__node:not([data-disabled=true]):hover,.aeris-tree__node[data-active=true]{background:var(--aeris-tree-node-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)))}.aeris-tree__node[data-selected=true]{background:var(--aeris-tree-node-selected, var(--aeris-primary-soft, #eef2e6));color:var(--aeris-primary-text, #2c432c)}.aeris-tree__node[data-disabled=true]{color:var(--aeris-text-muted, #6d7068);cursor:not-allowed;opacity:.68}.aeris-tree__node:focus-visible{box-shadow:inset 0 0 0 2px var(--aeris-focus, #2c432c)}.aeris-tree__toggle{width:1.25rem;height:1.25rem;display:grid;flex:0 0 auto;place-items:center;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))}.aeris-tree__toggle[data-expandable=true]{cursor:pointer}.aeris-tree__toggle[data-expandable=true]:hover{background:color-mix(in srgb,currentColor 10%,transparent)}.aeris-tree__chevron{position:relative;width:1rem;height:1rem;opacity:0}.aeris-tree__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(-90deg);transition:transform .14s ease;-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tree__toggle[data-expandable=true] .aeris-tree__chevron{opacity:1}.aeris-tree__toggle[data-expanded=true] .aeris-tree__chevron:before{transform:translate(-50%,-50%)}.aeris-tree__box{box-sizing:border-box;width:1rem;height:1rem;display:grid;flex:0 0 auto;place-items:center;border:1.5px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-sm, .4375rem);background:var(--aeris-surface, #fff)}.aeris-tree__box[data-checked=true],.aeris-tree__box[data-mixed=true]{border-color:var(--aeris-primary-text, #2c432c);background:var(--aeris-primary-text, #2c432c);color:var(--aeris-primary-contrast, #fff)}.aeris-tree__box[data-checked=true] span{width:.45rem;height:.25rem;border-bottom:1.75px solid currentColor;border-left:1.75px solid currentColor;transform:translateY(-.05rem) rotate(-45deg)}.aeris-tree__box[data-mixed=true] span{width:.5rem;height:1.75px;background:currentColor}.aeris-tree__content{min-width:0;flex:1 1 auto}.aeris-tree__spinner{box-sizing:border-box;width:.875rem;height:.875rem;display:inline-block;flex:0 0 auto;border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-tree-spin .7s linear infinite}.aeris-tree__message{min-height:7rem;display:flex;align-items:center;justify-content:center;gap:var(--aeris-tree-density-gap);padding:calc(var(--aeris-item-padding-y, .5rem) * 2) calc(var(--aeris-item-padding-x, .75rem) * 1.35);color:var(--aeris-text-muted, #6d7068);font-size:.875rem;text-align:center}.aeris-tree__visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);white-space:nowrap}@keyframes aeris-tree-spin{to{transform:rotate(360deg)}}@media(max-width:36rem){.aeris-tree{min-width:0}.aeris-tree__node{margin-left:calc(var(--aeris-tree-level) * var(--aeris-tree-indent-mobile, .875rem))}}@media(prefers-reduced-motion:reduce){.aeris-tree__chevron:before{transition:none}.aeris-tree__spinner{animation:none}}@media(forced-colors:active){.aeris-tree__node:focus-visible{outline:2px solid Highlight;outline-offset:-2px}.aeris-tree__box[data-checked=true],.aeris-tree__box[data-mixed=true]{border-color:Highlight;background:Highlight;color:HighlightText}}\n"]
|
|
1181
|
+
}]
|
|
1182
|
+
}],
|
|
1183
|
+
ctorParameters: () => [],
|
|
1184
|
+
propDecorators: {
|
|
1185
|
+
value: [{
|
|
1186
|
+
type: i0.Input,
|
|
1187
|
+
args: [{
|
|
1188
|
+
isSignal: true,
|
|
1189
|
+
alias: "value",
|
|
1190
|
+
required: false
|
|
1191
|
+
}]
|
|
1192
|
+
}, {
|
|
1193
|
+
type: i0.Output,
|
|
1194
|
+
args: ["valueChange"]
|
|
1195
|
+
}],
|
|
1196
|
+
selectionMode: [{
|
|
1197
|
+
type: i0.Input,
|
|
1198
|
+
args: [{
|
|
1199
|
+
isSignal: true,
|
|
1200
|
+
alias: "selectionMode",
|
|
1201
|
+
required: false
|
|
1202
|
+
}]
|
|
1203
|
+
}],
|
|
1204
|
+
selectionKeys: [{
|
|
1205
|
+
type: i0.Input,
|
|
1206
|
+
args: [{
|
|
1207
|
+
isSignal: true,
|
|
1208
|
+
alias: "selectionKeys",
|
|
1209
|
+
required: false
|
|
1210
|
+
}]
|
|
1211
|
+
}, {
|
|
1212
|
+
type: i0.Output,
|
|
1213
|
+
args: ["selectionKeysChange"]
|
|
1214
|
+
}],
|
|
1215
|
+
expandedKeys: [{
|
|
1216
|
+
type: i0.Input,
|
|
1217
|
+
args: [{
|
|
1218
|
+
isSignal: true,
|
|
1219
|
+
alias: "expandedKeys",
|
|
1220
|
+
required: false
|
|
1221
|
+
}]
|
|
1222
|
+
}, {
|
|
1223
|
+
type: i0.Output,
|
|
1224
|
+
args: ["expandedKeysChange"]
|
|
1225
|
+
}],
|
|
1226
|
+
filterValue: [{
|
|
1227
|
+
type: i0.Input,
|
|
1228
|
+
args: [{
|
|
1229
|
+
isSignal: true,
|
|
1230
|
+
alias: "filterValue",
|
|
1231
|
+
required: false
|
|
1232
|
+
}]
|
|
1233
|
+
}, {
|
|
1234
|
+
type: i0.Output,
|
|
1235
|
+
args: ["filterValueChange"]
|
|
1236
|
+
}],
|
|
1237
|
+
filter: [{
|
|
1238
|
+
type: i0.Input,
|
|
1239
|
+
args: [{
|
|
1240
|
+
isSignal: true,
|
|
1241
|
+
alias: "filter",
|
|
1242
|
+
required: false
|
|
1243
|
+
}]
|
|
1244
|
+
}],
|
|
1245
|
+
propagateSelection: [{
|
|
1246
|
+
type: i0.Input,
|
|
1247
|
+
args: [{
|
|
1248
|
+
isSignal: true,
|
|
1249
|
+
alias: "propagateSelection",
|
|
1250
|
+
required: false
|
|
1251
|
+
}]
|
|
1252
|
+
}],
|
|
1253
|
+
disabled: [{
|
|
1254
|
+
type: i0.Input,
|
|
1255
|
+
args: [{
|
|
1256
|
+
isSignal: true,
|
|
1257
|
+
alias: "disabled",
|
|
1258
|
+
required: false
|
|
1259
|
+
}]
|
|
1260
|
+
}],
|
|
1261
|
+
fluid: [{
|
|
1262
|
+
type: i0.Input,
|
|
1263
|
+
args: [{
|
|
1264
|
+
isSignal: true,
|
|
1265
|
+
alias: "fluid",
|
|
1266
|
+
required: false
|
|
1267
|
+
}]
|
|
1268
|
+
}],
|
|
1269
|
+
loading: [{
|
|
1270
|
+
type: i0.Input,
|
|
1271
|
+
args: [{
|
|
1272
|
+
isSignal: true,
|
|
1273
|
+
alias: "loading",
|
|
1274
|
+
required: false
|
|
1275
|
+
}]
|
|
1276
|
+
}],
|
|
1277
|
+
loadingKeys: [{
|
|
1278
|
+
type: i0.Input,
|
|
1279
|
+
args: [{
|
|
1280
|
+
isSignal: true,
|
|
1281
|
+
alias: "loadingKeys",
|
|
1282
|
+
required: false
|
|
1283
|
+
}]
|
|
1284
|
+
}],
|
|
1285
|
+
dragDrop: [{
|
|
1286
|
+
type: i0.Input,
|
|
1287
|
+
args: [{
|
|
1288
|
+
isSignal: true,
|
|
1289
|
+
alias: "dragDrop",
|
|
1290
|
+
required: false
|
|
1291
|
+
}]
|
|
1292
|
+
}],
|
|
1293
|
+
ariaLabel: [{
|
|
1294
|
+
type: i0.Input,
|
|
1295
|
+
args: [{
|
|
1296
|
+
isSignal: true,
|
|
1297
|
+
alias: "ariaLabel",
|
|
1298
|
+
required: false
|
|
1299
|
+
}]
|
|
1300
|
+
}],
|
|
1301
|
+
filterPlaceholder: [{
|
|
1302
|
+
type: i0.Input,
|
|
1303
|
+
args: [{
|
|
1304
|
+
isSignal: true,
|
|
1305
|
+
alias: "filterPlaceholder",
|
|
1306
|
+
required: false
|
|
1307
|
+
}]
|
|
1308
|
+
}],
|
|
1309
|
+
filterAriaLabel: [{
|
|
1310
|
+
type: i0.Input,
|
|
1311
|
+
args: [{
|
|
1312
|
+
isSignal: true,
|
|
1313
|
+
alias: "filterAriaLabel",
|
|
1314
|
+
required: false
|
|
1315
|
+
}]
|
|
1316
|
+
}],
|
|
1317
|
+
filterClearAriaLabel: [{
|
|
1318
|
+
type: i0.Input,
|
|
1319
|
+
args: [{
|
|
1320
|
+
isSignal: true,
|
|
1321
|
+
alias: "filterClearAriaLabel",
|
|
1322
|
+
required: false
|
|
1323
|
+
}]
|
|
1324
|
+
}],
|
|
1325
|
+
emptyMessage: [{
|
|
1326
|
+
type: i0.Input,
|
|
1327
|
+
args: [{
|
|
1328
|
+
isSignal: true,
|
|
1329
|
+
alias: "emptyMessage",
|
|
1330
|
+
required: false
|
|
1331
|
+
}]
|
|
1332
|
+
}],
|
|
1333
|
+
emptyFilterMessage: [{
|
|
1334
|
+
type: i0.Input,
|
|
1335
|
+
args: [{
|
|
1336
|
+
isSignal: true,
|
|
1337
|
+
alias: "emptyFilterMessage",
|
|
1338
|
+
required: false
|
|
1339
|
+
}]
|
|
1340
|
+
}],
|
|
1341
|
+
loadingMessage: [{
|
|
1342
|
+
type: i0.Input,
|
|
1343
|
+
args: [{
|
|
1344
|
+
isSignal: true,
|
|
1345
|
+
alias: "loadingMessage",
|
|
1346
|
+
required: false
|
|
1347
|
+
}]
|
|
1348
|
+
}],
|
|
1349
|
+
selectionChanged: [{
|
|
1350
|
+
type: i0.Output,
|
|
1351
|
+
args: ["selectionChanged"]
|
|
1352
|
+
}],
|
|
1353
|
+
nodeSelected: [{
|
|
1354
|
+
type: i0.Output,
|
|
1355
|
+
args: ["nodeSelected"]
|
|
1356
|
+
}],
|
|
1357
|
+
nodeUnselected: [{
|
|
1358
|
+
type: i0.Output,
|
|
1359
|
+
args: ["nodeUnselected"]
|
|
1360
|
+
}],
|
|
1361
|
+
nodeExpanded: [{
|
|
1362
|
+
type: i0.Output,
|
|
1363
|
+
args: ["nodeExpanded"]
|
|
1364
|
+
}],
|
|
1365
|
+
nodeCollapsed: [{
|
|
1366
|
+
type: i0.Output,
|
|
1367
|
+
args: ["nodeCollapsed"]
|
|
1368
|
+
}],
|
|
1369
|
+
filterChanged: [{
|
|
1370
|
+
type: i0.Output,
|
|
1371
|
+
args: ["filterChanged"]
|
|
1372
|
+
}],
|
|
1373
|
+
nodeDropped: [{
|
|
1374
|
+
type: i0.Output,
|
|
1375
|
+
args: ["nodeDropped"]
|
|
1376
|
+
}],
|
|
1377
|
+
nodeTemplate: [{
|
|
1378
|
+
type: i0.ContentChild,
|
|
1379
|
+
args: [i0.forwardRef(() => AerisTreeNodeTemplate), { isSignal: true }]
|
|
1380
|
+
}],
|
|
1381
|
+
emptyTemplate: [{
|
|
1382
|
+
type: i0.ContentChild,
|
|
1383
|
+
args: [i0.forwardRef(() => AerisTreeEmptyTemplate), { isSignal: true }]
|
|
1384
|
+
}],
|
|
1385
|
+
loadingTemplate: [{
|
|
1386
|
+
type: i0.ContentChild,
|
|
1387
|
+
args: [i0.forwardRef(() => AerisTreeLoadingTemplate), { isSignal: true }]
|
|
1388
|
+
}],
|
|
1389
|
+
treeItems: [{
|
|
1390
|
+
type: i0.ViewChildren,
|
|
1391
|
+
args: ["treeItem", { isSignal: true }]
|
|
1392
|
+
}],
|
|
1393
|
+
filterInput: [{
|
|
1394
|
+
type: i0.ViewChild,
|
|
1395
|
+
args: ["filterInput", { isSignal: true }]
|
|
1396
|
+
}]
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
950
1399
|
const AerisTreeModule = [
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1400
|
+
AerisTree,
|
|
1401
|
+
AerisTreeNodeTemplate,
|
|
1402
|
+
AerisTreeEmptyTemplate,
|
|
1403
|
+
AerisTreeLoadingTemplate
|
|
955
1404
|
];
|
|
956
|
-
|
|
957
|
-
/**
|
|
958
|
-
* Generated bundle index. Do not edit.
|
|
959
|
-
*/
|
|
960
|
-
|
|
961
1405
|
export { AerisTree, AerisTreeEmptyTemplate, AerisTreeLoadingTemplate, AerisTreeModule, AerisTreeNodeTemplate };
|
|
962
|
-
|
|
1406
|
+
|
|
1407
|
+
//# sourceMappingURL=aeris-ui-core-tree.mjs.map
|