@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.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/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +7 -2
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, forwardRef, InjectionToken, inject, input, booleanAttribute, output, computed, viewChild, contentChild, contentChildren, HostListener,
|
|
4
|
+
import { Injectable, forwardRef, InjectionToken, inject, afterEveryRender, effect, untracked, input, booleanAttribute, output, computed, viewChild, signal, contentChild, contentChildren, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
5
5
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
6
6
|
import { uuid, isNotEmpty, getFocusableElements, getFirstFocusableElement, focus, getLastFocusableElement } from '@exhaustive-ui/utils';
|
|
7
7
|
import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
@@ -41,22 +41,22 @@ const style = /*css*/ `
|
|
|
41
41
|
}
|
|
42
42
|
`;
|
|
43
43
|
const inlineStyles = {
|
|
44
|
-
root: ({ instance }) => ({ position: instance.$appendTo() === 'self' ? 'relative' : undefined
|
|
44
|
+
root: ({ instance }) => ({ position: instance.$appendTo() === 'self' ? 'relative' : undefined })
|
|
45
45
|
};
|
|
46
46
|
const classes = {
|
|
47
47
|
root: ({ instance }) => [
|
|
48
48
|
'p-treeselect p-component p-inputwrapper',
|
|
49
49
|
{
|
|
50
|
-
'p-treeselect-display-chip': instance.display === 'chip',
|
|
50
|
+
'p-treeselect-display-chip': instance.display() === 'chip',
|
|
51
51
|
'p-disabled': instance.$disabled(),
|
|
52
52
|
'p-invalid': instance.invalid(),
|
|
53
|
-
'p-focus': instance.focused,
|
|
53
|
+
'p-focus': instance.focused(),
|
|
54
54
|
'p-variant-filled': instance.$variant() === 'filled',
|
|
55
|
-
'p-inputwrapper-filled': !instance.emptyValue,
|
|
56
|
-
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
|
57
|
-
'p-treeselect-open': instance.overlayVisible,
|
|
58
|
-
'p-treeselect-clearable': instance.showClear,
|
|
59
|
-
'p-treeselect-fluid': instance.hasFluid,
|
|
55
|
+
'p-inputwrapper-filled': !instance.emptyValue(),
|
|
56
|
+
'p-inputwrapper-focus': instance.focused() || instance.overlayVisible(),
|
|
57
|
+
'p-treeselect-open': instance.overlayVisible(),
|
|
58
|
+
'p-treeselect-clearable': instance.showClear(),
|
|
59
|
+
'p-treeselect-fluid': instance.hasFluid(),
|
|
60
60
|
'p-treeselect-sm p-inputfield-sm': instance.size() === 'small',
|
|
61
61
|
'p-treeselect-lg p-inputfield-lg': instance.size() === 'large'
|
|
62
62
|
}
|
|
@@ -65,8 +65,8 @@ const classes = {
|
|
|
65
65
|
label: ({ instance }) => [
|
|
66
66
|
'p-treeselect-label',
|
|
67
67
|
{
|
|
68
|
-
'p-placeholder': instance.label === instance.placeholder,
|
|
69
|
-
'p-treeselect-label-empty': !instance.placeholder && instance.emptyValue
|
|
68
|
+
'p-placeholder': instance.label() === instance.placeholder(),
|
|
69
|
+
'p-treeselect-label-empty': !instance.placeholder() && instance.emptyValue()
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
clearIcon: 'p-treeselect-clear-icon',
|
|
@@ -161,193 +161,204 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
161
161
|
$pcTreeSelect = inject(TREESELECT_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
162
162
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
163
163
|
_componentStyle = inject(TreeSelectStyle);
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
constructor() {
|
|
165
|
+
super();
|
|
166
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
167
|
+
effect(() => {
|
|
168
|
+
this.options();
|
|
169
|
+
untracked(() => this.updateTreeState());
|
|
170
|
+
});
|
|
166
171
|
}
|
|
167
172
|
/**
|
|
168
173
|
* Identifier of the underlying input element.
|
|
169
174
|
* @group Props
|
|
170
175
|
*/
|
|
171
|
-
inputId
|
|
176
|
+
inputId = input(/* @ts-ignore */
|
|
177
|
+
...(ngDevMode ? [undefined, { debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
172
178
|
/**
|
|
173
179
|
* Height of the viewport, a scrollbar is defined if height of list exceeds this value.
|
|
174
180
|
* @group Props
|
|
175
181
|
*/
|
|
176
|
-
scrollHeight = '400px'
|
|
182
|
+
scrollHeight = input('400px', /* @ts-ignore */
|
|
183
|
+
...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
|
|
177
184
|
/**
|
|
178
185
|
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
179
186
|
* @group Props
|
|
180
187
|
*/
|
|
181
|
-
metaKeySelection = false;
|
|
188
|
+
metaKeySelection = input(false, { ...(ngDevMode ? { debugName: "metaKeySelection" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
182
189
|
/**
|
|
183
190
|
* Defines how the selected items are displayed.
|
|
184
191
|
* @group Props
|
|
185
192
|
*/
|
|
186
|
-
display = 'comma'
|
|
193
|
+
display = input('comma', /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
187
195
|
/**
|
|
188
196
|
* Defines the selection mode.
|
|
189
197
|
* @group Props
|
|
190
198
|
*/
|
|
191
|
-
selectionMode = 'single'
|
|
199
|
+
selectionMode = input('single', /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []));
|
|
192
201
|
/**
|
|
193
202
|
* Index of the element in tabbing order.
|
|
194
203
|
* @group Props
|
|
195
204
|
*/
|
|
196
|
-
tabindex = '0'
|
|
205
|
+
tabindex = input('0', /* @ts-ignore */
|
|
206
|
+
...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
|
|
197
207
|
/**
|
|
198
208
|
* Defines a string that labels the input for accessibility.
|
|
199
209
|
* @group Props
|
|
200
210
|
*/
|
|
201
|
-
ariaLabel
|
|
211
|
+
ariaLabel = input(/* @ts-ignore */
|
|
212
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
202
213
|
/**
|
|
203
214
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
204
215
|
* @group Props
|
|
205
216
|
*/
|
|
206
|
-
ariaLabelledBy
|
|
217
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
218
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
207
219
|
/**
|
|
208
220
|
* Label to display when there are no selections.
|
|
209
221
|
* @group Props
|
|
210
222
|
*/
|
|
211
|
-
placeholder
|
|
223
|
+
placeholder = input(/* @ts-ignore */
|
|
224
|
+
...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
212
225
|
/**
|
|
213
226
|
* Style class of the overlay panel.
|
|
214
227
|
* @group Props
|
|
215
228
|
*/
|
|
216
|
-
panelClass
|
|
229
|
+
panelClass = input(/* @ts-ignore */
|
|
230
|
+
...(ngDevMode ? [undefined, { debugName: "panelClass" }] : /* istanbul ignore next */ []));
|
|
217
231
|
/**
|
|
218
232
|
* Inline style of the panel element.
|
|
219
233
|
* @group Props
|
|
220
234
|
*/
|
|
221
|
-
panelStyle
|
|
235
|
+
panelStyle = input(/* @ts-ignore */
|
|
236
|
+
...(ngDevMode ? [undefined, { debugName: "panelStyle" }] : /* istanbul ignore next */ []));
|
|
222
237
|
/**
|
|
223
238
|
* Style class of the panel element.
|
|
224
239
|
* @group Props
|
|
225
240
|
*/
|
|
226
|
-
panelStyleClass
|
|
227
|
-
|
|
228
|
-
* Inline style of the container element.
|
|
229
|
-
* @deprecated since v20.0.0, use `style` instead.
|
|
230
|
-
* @group Props
|
|
231
|
-
*/
|
|
232
|
-
containerStyle;
|
|
233
|
-
/**
|
|
234
|
-
* Style class of the container element.
|
|
235
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
236
|
-
* @group Props
|
|
237
|
-
*/
|
|
238
|
-
containerStyleClass;
|
|
241
|
+
panelStyleClass = input(/* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [undefined, { debugName: "panelStyleClass" }] : /* istanbul ignore next */ []));
|
|
239
243
|
/**
|
|
240
244
|
* Inline style of the label element.
|
|
241
245
|
* @group Props
|
|
242
246
|
*/
|
|
243
|
-
labelStyle
|
|
247
|
+
labelStyle = input(/* @ts-ignore */
|
|
248
|
+
...(ngDevMode ? [undefined, { debugName: "labelStyle" }] : /* istanbul ignore next */ []));
|
|
244
249
|
/**
|
|
245
250
|
* Style class of the label element.
|
|
246
251
|
* @group Props
|
|
247
252
|
*/
|
|
248
|
-
labelStyleClass
|
|
253
|
+
labelStyleClass = input(/* @ts-ignore */
|
|
254
|
+
...(ngDevMode ? [undefined, { debugName: "labelStyleClass" }] : /* istanbul ignore next */ []));
|
|
249
255
|
/**
|
|
250
256
|
* Specifies the options for the overlay.
|
|
251
257
|
* @group Props
|
|
252
258
|
*/
|
|
253
|
-
overlayOptions
|
|
259
|
+
overlayOptions = input(/* @ts-ignore */
|
|
260
|
+
...(ngDevMode ? [undefined, { debugName: "overlayOptions" }] : /* istanbul ignore next */ []));
|
|
254
261
|
/**
|
|
255
262
|
* Text to display when there are no options available. Defaults to value from Exhaustive locale configuration.
|
|
256
263
|
* @group Props
|
|
257
264
|
*/
|
|
258
|
-
emptyMessage = ''
|
|
265
|
+
emptyMessage = input('', /* @ts-ignore */
|
|
266
|
+
...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
259
267
|
/**
|
|
260
268
|
* When specified, displays an input field to filter the items.
|
|
261
269
|
* @group Props
|
|
262
270
|
*/
|
|
263
|
-
filter = false;
|
|
271
|
+
filter = input(false, { ...(ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
264
272
|
/**
|
|
265
273
|
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
266
274
|
* @group Props
|
|
267
275
|
*/
|
|
268
|
-
filterBy = 'label'
|
|
276
|
+
filterBy = input('label', /* @ts-ignore */
|
|
277
|
+
...(ngDevMode ? [{ debugName: "filterBy" }] : /* istanbul ignore next */ []));
|
|
269
278
|
/**
|
|
270
279
|
* Mode for filtering valid values are "lenient" and "strict". Default is lenient.
|
|
271
280
|
* @group Props
|
|
272
281
|
*/
|
|
273
|
-
filterMode = 'lenient'
|
|
282
|
+
filterMode = input('lenient', /* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []));
|
|
274
284
|
/**
|
|
275
285
|
* Placeholder text to show when filter input is empty.
|
|
276
286
|
* @group Props
|
|
277
287
|
*/
|
|
278
|
-
filterPlaceholder
|
|
288
|
+
filterPlaceholder = input(/* @ts-ignore */
|
|
289
|
+
...(ngDevMode ? [undefined, { debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []));
|
|
279
290
|
/**
|
|
280
291
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
281
292
|
* @group Props
|
|
282
293
|
*/
|
|
283
|
-
filterLocale
|
|
294
|
+
filterLocale = input(/* @ts-ignore */
|
|
295
|
+
...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
|
|
284
296
|
/**
|
|
285
297
|
* Determines whether the filter input should be automatically focused when the component is rendered.
|
|
286
298
|
* @group Props
|
|
287
299
|
*/
|
|
288
|
-
filterInputAutoFocus = true;
|
|
300
|
+
filterInputAutoFocus = input(true, { ...(ngDevMode ? { debugName: "filterInputAutoFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
289
301
|
/**
|
|
290
302
|
* Whether checkbox selections propagate to descendant nodes.
|
|
291
303
|
* @group Props
|
|
292
304
|
*/
|
|
293
|
-
propagateSelectionDown = true;
|
|
305
|
+
propagateSelectionDown = input(true, { ...(ngDevMode ? { debugName: "propagateSelectionDown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
294
306
|
/**
|
|
295
307
|
* Whether checkbox selections propagate to ancestor nodes.
|
|
296
308
|
* @group Props
|
|
297
309
|
*/
|
|
298
|
-
propagateSelectionUp = true;
|
|
310
|
+
propagateSelectionUp = input(true, { ...(ngDevMode ? { debugName: "propagateSelectionUp" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
299
311
|
/**
|
|
300
312
|
* When enabled, a clear icon is displayed to clear the value.
|
|
301
313
|
* @group Props
|
|
302
314
|
*/
|
|
303
|
-
showClear = false;
|
|
315
|
+
showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
304
316
|
/**
|
|
305
317
|
* Clears the filter value when hiding the dropdown.
|
|
306
318
|
* @group Props
|
|
307
319
|
*/
|
|
308
|
-
resetFilterOnHide = true;
|
|
320
|
+
resetFilterOnHide = input(true, { ...(ngDevMode ? { debugName: "resetFilterOnHide" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
309
321
|
/**
|
|
310
322
|
* Whether the data should be loaded on demand during scroll.
|
|
311
323
|
* @group Props
|
|
312
324
|
*/
|
|
313
|
-
virtualScroll
|
|
325
|
+
virtualScroll = input(/* @ts-ignore */
|
|
326
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScroll" }] : /* istanbul ignore next */ []));
|
|
314
327
|
/**
|
|
315
328
|
* Height of an item in the list for VirtualScrolling.
|
|
316
329
|
* @group Props
|
|
317
330
|
*/
|
|
318
|
-
virtualScrollItemSize
|
|
331
|
+
virtualScrollItemSize = input(/* @ts-ignore */
|
|
332
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScrollItemSize" }] : /* istanbul ignore next */ []));
|
|
319
333
|
/**
|
|
320
334
|
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
321
335
|
* @group Props
|
|
322
336
|
*/
|
|
323
|
-
virtualScrollOptions
|
|
337
|
+
virtualScrollOptions = input(/* @ts-ignore */
|
|
338
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
|
|
324
339
|
/**
|
|
325
340
|
* When present, it specifies that the component should automatically get focus on load.
|
|
326
341
|
* @group Props
|
|
327
342
|
*/
|
|
328
|
-
autofocus;
|
|
343
|
+
autofocus = input(undefined, { ...(ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
329
344
|
/**
|
|
330
345
|
* An array of treenodes.
|
|
331
346
|
* @defaultValue undefined
|
|
332
347
|
* @group Props
|
|
333
348
|
*/
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
set options(options) {
|
|
338
|
-
this._options = options;
|
|
339
|
-
this.updateTreeState();
|
|
340
|
-
}
|
|
349
|
+
options = input(/* @ts-ignore */
|
|
350
|
+
...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
|
|
341
351
|
/**
|
|
342
352
|
* Displays a loader to indicate data load is in progress.
|
|
343
353
|
* @group Props
|
|
344
354
|
*/
|
|
345
|
-
loading;
|
|
355
|
+
loading = input(undefined, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
346
356
|
/**
|
|
347
357
|
* Loading mode display.
|
|
348
358
|
* @group Props
|
|
349
359
|
*/
|
|
350
|
-
loadingMode = 'mask'
|
|
360
|
+
loadingMode = input('mask', /* @ts-ignore */
|
|
361
|
+
...(ngDevMode ? [{ debugName: "loadingMode" }] : /* istanbul ignore next */ []));
|
|
351
362
|
/**
|
|
352
363
|
* Specifies the size of the component.
|
|
353
364
|
* @defaultValue undefined
|
|
@@ -458,12 +469,12 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
458
469
|
$variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant(), /* @ts-ignore */
|
|
459
470
|
...(ngDevMode ? [{ debugName: "$variant" }] : /* istanbul ignore next */ []));
|
|
460
471
|
pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
filteredNodes;
|
|
465
|
-
filterValue = null
|
|
466
|
-
|
|
472
|
+
hasFluid = computed(() => this.fluid() ?? !!this.pcFluid, /* @ts-ignore */
|
|
473
|
+
...(ngDevMode ? [{ debugName: "hasFluid" }] : /* istanbul ignore next */ []));
|
|
474
|
+
filteredNodes = signal(undefined, /* @ts-ignore */
|
|
475
|
+
...(ngDevMode ? [{ debugName: "filteredNodes" }] : /* istanbul ignore next */ []));
|
|
476
|
+
filterValue = signal(null, /* @ts-ignore */
|
|
477
|
+
...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
467
478
|
/**
|
|
468
479
|
* Custom value template.
|
|
469
480
|
* @param {TreeSelectValueTemplateContext} context - value context.
|
|
@@ -531,87 +542,80 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
531
542
|
itemLoadingIconTemplate = contentChild('itemloadingicon', { ...(ngDevMode ? { debugName: "itemLoadingIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
532
543
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
533
544
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
534
|
-
_valueTemplate
|
|
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
|
-
|
|
545
|
+
_valueTemplate = computed(() => this.templates()
|
|
546
|
+
.filter((item) => item.getType() === 'value' || !item.name())
|
|
547
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
548
|
+
...(ngDevMode ? [{ debugName: "_valueTemplate" }] : /* istanbul ignore next */ []));
|
|
549
|
+
_headerTemplate = computed(() => this.templates()
|
|
550
|
+
.filter((item) => item.getType() === 'header')
|
|
551
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
552
|
+
...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
|
|
553
|
+
_emptyTemplate = computed(() => this.templates()
|
|
554
|
+
.filter((item) => item.getType() === 'empty')
|
|
555
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
556
|
+
...(ngDevMode ? [{ debugName: "_emptyTemplate" }] : /* istanbul ignore next */ []));
|
|
557
|
+
_footerTemplate = computed(() => this.templates()
|
|
558
|
+
.filter((item) => item.getType() === 'footer')
|
|
559
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
560
|
+
...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
|
|
561
|
+
_clearIconTemplate = computed(() => this.templates()
|
|
562
|
+
.filter((item) => item.getType() === 'clearicon')
|
|
563
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
564
|
+
...(ngDevMode ? [{ debugName: "_clearIconTemplate" }] : /* istanbul ignore next */ []));
|
|
565
|
+
_triggerIconTemplate = computed(() => this.templates()
|
|
566
|
+
.filter((item) => item.getType() === 'triggericon')
|
|
567
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
568
|
+
...(ngDevMode ? [{ debugName: "_triggerIconTemplate" }] : /* istanbul ignore next */ []));
|
|
569
|
+
_filterIconTemplate = computed(() => this.templates()
|
|
570
|
+
.filter((item) => item.getType() === 'filtericon')
|
|
571
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
572
|
+
...(ngDevMode ? [{ debugName: "_filterIconTemplate" }] : /* istanbul ignore next */ []));
|
|
573
|
+
_itemTogglerIconTemplate = computed(() => this.templates()
|
|
574
|
+
.filter((item) => item.getType() === 'itemtogglericon')
|
|
575
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
576
|
+
...(ngDevMode ? [{ debugName: "_itemTogglerIconTemplate" }] : /* istanbul ignore next */ []));
|
|
577
|
+
_itemCheckboxIconTemplate = computed(() => this.templates()
|
|
578
|
+
.filter((item) => item.getType() === 'itemcheckboxicon')
|
|
579
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
580
|
+
...(ngDevMode ? [{ debugName: "_itemCheckboxIconTemplate" }] : /* istanbul ignore next */ []));
|
|
581
|
+
_itemLoadingIconTemplate = computed(() => this.templates()
|
|
582
|
+
.filter((item) => item.getType() === 'itemloadingicon')
|
|
583
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
584
|
+
...(ngDevMode ? [{ debugName: "_itemLoadingIconTemplate" }] : /* istanbul ignore next */ []));
|
|
585
|
+
_dropdownIconTemplate = computed(() => this.templates()
|
|
586
|
+
.filter((item) => item.getType() === 'dropdownicon')
|
|
587
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
588
|
+
...(ngDevMode ? [{ debugName: "_dropdownIconTemplate" }] : /* istanbul ignore next */ []));
|
|
589
|
+
focused = signal(undefined, /* @ts-ignore */
|
|
590
|
+
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
591
|
+
overlayVisible = signal(undefined, /* @ts-ignore */
|
|
592
|
+
...(ngDevMode ? [{ debugName: "overlayVisible" }] : /* istanbul ignore next */ []));
|
|
593
|
+
value = signal(undefined, /* @ts-ignore */
|
|
594
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
595
|
+
expandedNodes = signal([], /* @ts-ignore */
|
|
596
|
+
...(ngDevMode ? [{ debugName: "expandedNodes" }] : /* istanbul ignore next */ []));
|
|
597
|
+
templateMap = computed(() => {
|
|
598
|
+
const templates = this.templates();
|
|
599
|
+
if (!templates.length) {
|
|
600
|
+
return undefined;
|
|
563
601
|
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
break;
|
|
569
|
-
case 'header':
|
|
570
|
-
this._headerTemplate = item.template;
|
|
571
|
-
break;
|
|
572
|
-
case 'empty':
|
|
573
|
-
this._emptyTemplate = item.template;
|
|
574
|
-
break;
|
|
575
|
-
case 'footer':
|
|
576
|
-
this._footerTemplate = item.template;
|
|
577
|
-
break;
|
|
578
|
-
case 'clearicon':
|
|
579
|
-
this._clearIconTemplate = item.template;
|
|
580
|
-
break;
|
|
581
|
-
case 'triggericon':
|
|
582
|
-
this._triggerIconTemplate = item.template;
|
|
583
|
-
break;
|
|
584
|
-
case 'filtericon':
|
|
585
|
-
this._filterIconTemplate = item.template;
|
|
586
|
-
break;
|
|
587
|
-
case 'closeicon':
|
|
588
|
-
this._closeIconTemplate = item.template;
|
|
589
|
-
break;
|
|
590
|
-
case 'itemtogglericon':
|
|
591
|
-
this._itemTogglerIconTemplate = item.template;
|
|
592
|
-
break;
|
|
593
|
-
case 'itemcheckboxicon':
|
|
594
|
-
this._itemCheckboxIconTemplate = item.template;
|
|
595
|
-
break;
|
|
596
|
-
case 'dropdownicon':
|
|
597
|
-
this._dropdownIconTemplate = item.template;
|
|
598
|
-
break;
|
|
599
|
-
case 'itemloadingicon':
|
|
600
|
-
this._itemLoadingIconTemplate = item.template;
|
|
601
|
-
break;
|
|
602
|
-
default: //TODO: @deprecated Use "value" template instead
|
|
603
|
-
if (item.name)
|
|
604
|
-
this.templateMap[item.name] = item.template;
|
|
605
|
-
else
|
|
606
|
-
this._valueTemplate = item.template;
|
|
607
|
-
break;
|
|
602
|
+
const templateMap = {};
|
|
603
|
+
templates.forEach((item) => {
|
|
604
|
+
if (item.name() && !['value', 'header', 'empty', 'footer', 'clearicon', 'triggericon', 'filtericon', 'closeicon', 'itemtogglericon', 'itemcheckboxicon', 'dropdownicon', 'itemloadingicon'].includes(item.getType())) {
|
|
605
|
+
templateMap[item.name()] = item.template;
|
|
608
606
|
}
|
|
609
607
|
});
|
|
608
|
+
return templateMap;
|
|
609
|
+
}, /* @ts-ignore */
|
|
610
|
+
...(ngDevMode ? [{ debugName: "templateMap" }] : /* istanbul ignore next */ []));
|
|
611
|
+
listId = uuid('pn_id_') + '_list';
|
|
612
|
+
onHostClick(event) {
|
|
613
|
+
this.onClick(event);
|
|
610
614
|
}
|
|
611
615
|
onOverlayBeforeEnter() {
|
|
612
|
-
if (this.filter) {
|
|
613
|
-
isNotEmpty(this.filterValue) && this.treeViewChild()?._filter(this.filterValue);
|
|
614
|
-
this.filterInputAutoFocus && this.filterViewChild()?.nativeElement.focus();
|
|
616
|
+
if (this.filter()) {
|
|
617
|
+
isNotEmpty(this.filterValue()) && this.treeViewChild()?._filter(this.filterValue());
|
|
618
|
+
this.filterInputAutoFocus() && this.filterViewChild()?.nativeElement.focus();
|
|
615
619
|
}
|
|
616
620
|
else {
|
|
617
621
|
let focusableElements = getFocusableElements(this.panelEl()?.nativeElement);
|
|
@@ -620,7 +624,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
620
624
|
}
|
|
621
625
|
}
|
|
622
626
|
const panelElement = this.panelEl()?.nativeElement;
|
|
623
|
-
if (this.virtualScroll && panelElement) {
|
|
627
|
+
if (this.virtualScroll() && panelElement) {
|
|
624
628
|
let lastHeight = panelElement.offsetHeight;
|
|
625
629
|
const virtualScrollResizeObserver = new ResizeObserver((entries) => {
|
|
626
630
|
const newHeight = entries[0].contentRect.height;
|
|
@@ -644,9 +648,8 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
onSelectionChange(event) {
|
|
647
|
-
this.value
|
|
648
|
-
this.onModelChange(this.value);
|
|
649
|
-
this.cd.markForCheck();
|
|
651
|
+
this.value.set(event);
|
|
652
|
+
this.onModelChange(this.value());
|
|
650
653
|
}
|
|
651
654
|
onClick(event) {
|
|
652
655
|
if (this.$disabled()) {
|
|
@@ -654,7 +657,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
654
657
|
}
|
|
655
658
|
const section = event.target?.getAttribute?.('data-pc-section');
|
|
656
659
|
if (!this.overlayViewChild().el?.nativeElement?.contains(event.target) && section !== 'box' && section !== 'icon') {
|
|
657
|
-
if (this.overlayVisible) {
|
|
660
|
+
if (this.overlayVisible()) {
|
|
658
661
|
this.hide();
|
|
659
662
|
}
|
|
660
663
|
else {
|
|
@@ -667,7 +670,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
667
670
|
switch (event.code) {
|
|
668
671
|
//down
|
|
669
672
|
case 'ArrowDown':
|
|
670
|
-
if (!this.overlayVisible) {
|
|
673
|
+
if (!this.overlayVisible()) {
|
|
671
674
|
this.show();
|
|
672
675
|
event.preventDefault();
|
|
673
676
|
}
|
|
@@ -677,14 +680,14 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
677
680
|
//space
|
|
678
681
|
case 'Space':
|
|
679
682
|
case 'Enter':
|
|
680
|
-
if (!this.overlayVisible) {
|
|
683
|
+
if (!this.overlayVisible()) {
|
|
681
684
|
this.show();
|
|
682
685
|
event.preventDefault();
|
|
683
686
|
}
|
|
684
687
|
break;
|
|
685
688
|
//escape
|
|
686
689
|
case 'Escape':
|
|
687
|
-
if (this.overlayVisible) {
|
|
690
|
+
if (this.overlayVisible()) {
|
|
688
691
|
this.hide();
|
|
689
692
|
this.focusInput().nativeElement.focus();
|
|
690
693
|
event.preventDefault();
|
|
@@ -699,12 +702,13 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
699
702
|
}
|
|
700
703
|
}
|
|
701
704
|
onFilterInput(event) {
|
|
702
|
-
|
|
705
|
+
const filterValue = event.target.value;
|
|
706
|
+
this.filterValue.set(filterValue);
|
|
703
707
|
const treeViewChild = this.treeViewChild();
|
|
704
|
-
treeViewChild?._filter(
|
|
708
|
+
treeViewChild?._filter(filterValue);
|
|
705
709
|
this.onFilter.emit({
|
|
706
|
-
filter:
|
|
707
|
-
filteredValue: treeViewChild?.filteredNodes
|
|
710
|
+
filter: filterValue,
|
|
711
|
+
filteredValue: treeViewChild?.filteredNodes()
|
|
708
712
|
});
|
|
709
713
|
setTimeout(() => {
|
|
710
714
|
this.overlayViewChild().alignOverlay();
|
|
@@ -712,7 +716,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
712
716
|
}
|
|
713
717
|
onArrowDown(event) {
|
|
714
718
|
const panelEl = this.panelEl();
|
|
715
|
-
if (this.overlayVisible && panelEl?.nativeElement) {
|
|
719
|
+
if (this.overlayVisible() && panelEl?.nativeElement) {
|
|
716
720
|
let focusableElements = getFocusableElements(panelEl.nativeElement, '[data-pc-section="node"]');
|
|
717
721
|
if (focusableElements && focusableElements.length > 0) {
|
|
718
722
|
focusableElements[0].focus();
|
|
@@ -731,33 +735,31 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
731
735
|
focus(focusableEl);
|
|
732
736
|
}
|
|
733
737
|
show() {
|
|
734
|
-
this.overlayVisible
|
|
738
|
+
this.overlayVisible.set(true);
|
|
735
739
|
}
|
|
736
740
|
hide(event) {
|
|
737
|
-
this.overlayVisible
|
|
741
|
+
this.overlayVisible.set(false);
|
|
738
742
|
this.resetFilter();
|
|
739
743
|
this.onHide.emit(event);
|
|
740
|
-
this.cd.markForCheck();
|
|
741
744
|
}
|
|
742
745
|
clear(event) {
|
|
743
|
-
this.value
|
|
746
|
+
this.value.set(null);
|
|
744
747
|
this.resetExpandedNodes();
|
|
745
748
|
this.resetPartialSelected();
|
|
746
|
-
this.onModelChange(this.value);
|
|
749
|
+
this.onModelChange(this.value());
|
|
747
750
|
this.onClear.emit(undefined);
|
|
748
751
|
event.stopPropagation();
|
|
749
752
|
}
|
|
750
|
-
checkValue()
|
|
751
|
-
|
|
752
|
-
}
|
|
753
|
+
checkValue = computed(() => this.value() !== null && isNotEmpty(this.value()), /* @ts-ignore */
|
|
754
|
+
...(ngDevMode ? [{ debugName: "checkValue" }] : /* istanbul ignore next */ []));
|
|
753
755
|
onTabKey(event, pressedInInputText = false) {
|
|
754
756
|
if (!pressedInInputText) {
|
|
755
|
-
if (this.overlayVisible && this.hasFocusableElements()) {
|
|
757
|
+
if (this.overlayVisible() && this.hasFocusableElements()) {
|
|
756
758
|
focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay()?.nativeElement : this.firstHiddenFocusableElementOnOverlay()?.nativeElement);
|
|
757
759
|
event.preventDefault();
|
|
758
760
|
}
|
|
759
761
|
else {
|
|
760
|
-
this.overlayVisible && this.hide(this.filter);
|
|
762
|
+
this.overlayVisible() && this.hide(this.filter());
|
|
761
763
|
}
|
|
762
764
|
}
|
|
763
765
|
}
|
|
@@ -765,21 +767,22 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
765
767
|
return getFocusableElements(this.overlayViewChild().overlayViewChild()?.nativeElement, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
766
768
|
}
|
|
767
769
|
resetFilter() {
|
|
768
|
-
if (this.filter && !this.resetFilterOnHide) {
|
|
770
|
+
if (this.filter() && !this.resetFilterOnHide()) {
|
|
769
771
|
const treeViewChild = this.treeViewChild();
|
|
770
|
-
this.filteredNodes
|
|
772
|
+
this.filteredNodes.set(treeViewChild?.filteredNodes());
|
|
771
773
|
treeViewChild?.resetFilter();
|
|
772
774
|
}
|
|
773
775
|
else {
|
|
774
|
-
this.filterValue
|
|
776
|
+
this.filterValue.set(null);
|
|
775
777
|
}
|
|
776
778
|
}
|
|
777
779
|
updateTreeState() {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
+
const value = this.value();
|
|
781
|
+
if (value) {
|
|
782
|
+
let selectedNodes = this.selectionMode() === 'single' ? [value] : [...value];
|
|
780
783
|
this.resetExpandedNodes();
|
|
781
784
|
this.resetPartialSelected();
|
|
782
|
-
if (selectedNodes && this.options) {
|
|
785
|
+
if (selectedNodes && this.options()) {
|
|
783
786
|
this.updateTreeBranchState(null, null, selectedNodes);
|
|
784
787
|
}
|
|
785
788
|
}
|
|
@@ -797,7 +800,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
797
800
|
}
|
|
798
801
|
}
|
|
799
802
|
else {
|
|
800
|
-
for (let childNode of this.options) {
|
|
803
|
+
for (let childNode of this.options()) {
|
|
801
804
|
this.updateTreeBranchState(childNode, [], selectedNodes);
|
|
802
805
|
}
|
|
803
806
|
}
|
|
@@ -806,29 +809,33 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
806
809
|
for (let node of expandedNodes) {
|
|
807
810
|
node.expanded = true;
|
|
808
811
|
}
|
|
809
|
-
this.expandedNodes
|
|
812
|
+
this.expandedNodes.set([...expandedNodes]);
|
|
810
813
|
}
|
|
811
814
|
nodeExpand(event) {
|
|
812
815
|
this.onNodeExpand.emit(event);
|
|
813
|
-
this.expandedNodes.
|
|
816
|
+
this.expandedNodes.update((nodes) => [...nodes, event.node]);
|
|
814
817
|
setTimeout(() => {
|
|
815
818
|
this.overlayViewChild().alignOverlay();
|
|
816
819
|
});
|
|
817
820
|
}
|
|
818
821
|
nodeCollapse(event) {
|
|
819
822
|
this.onNodeCollapse.emit(event);
|
|
820
|
-
this.expandedNodes.
|
|
823
|
+
this.expandedNodes.update((nodes) => {
|
|
824
|
+
const expandedNodes = [...nodes];
|
|
825
|
+
expandedNodes.splice(expandedNodes.indexOf(event.node), 1);
|
|
826
|
+
return expandedNodes;
|
|
827
|
+
});
|
|
821
828
|
setTimeout(() => {
|
|
822
829
|
this.overlayViewChild().alignOverlay();
|
|
823
830
|
});
|
|
824
831
|
}
|
|
825
832
|
resetExpandedNodes() {
|
|
826
|
-
for (let node of this.expandedNodes) {
|
|
833
|
+
for (let node of this.expandedNodes()) {
|
|
827
834
|
node.expanded = false;
|
|
828
835
|
}
|
|
829
|
-
this.expandedNodes
|
|
836
|
+
this.expandedNodes.set([]);
|
|
830
837
|
}
|
|
831
|
-
resetPartialSelected(nodes = this.options) {
|
|
838
|
+
resetPartialSelected(nodes = this.options()) {
|
|
832
839
|
if (!nodes) {
|
|
833
840
|
return;
|
|
834
841
|
}
|
|
@@ -839,37 +846,20 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
839
846
|
}
|
|
840
847
|
}
|
|
841
848
|
}
|
|
842
|
-
findSelectedNodes(node, keys, selectedNodes) {
|
|
843
|
-
if (node) {
|
|
844
|
-
if (this.isSelected(node)) {
|
|
845
|
-
selectedNodes.push(node);
|
|
846
|
-
delete keys[node.key];
|
|
847
|
-
}
|
|
848
|
-
if (Object.keys(keys).length && node.children) {
|
|
849
|
-
for (let childNode of node.children) {
|
|
850
|
-
this.findSelectedNodes(childNode, keys, selectedNodes);
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
else {
|
|
855
|
-
for (let childNode of this.options) {
|
|
856
|
-
this.findSelectedNodes(childNode, keys, selectedNodes);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
849
|
isSelected(node) {
|
|
861
850
|
return this.findIndexInSelection(node) != -1;
|
|
862
851
|
}
|
|
863
852
|
findIndexInSelection(node) {
|
|
864
853
|
let index = -1;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
854
|
+
const value = this.value();
|
|
855
|
+
if (value) {
|
|
856
|
+
if (this.selectionMode() === 'single') {
|
|
857
|
+
let areNodesEqual = (value.key && value.key === node.key) || value == node;
|
|
868
858
|
index = areNodesEqual ? 0 : -1;
|
|
869
859
|
}
|
|
870
860
|
else {
|
|
871
|
-
for (let i = 0; i <
|
|
872
|
-
let selectedNode =
|
|
861
|
+
for (let i = 0; i < value.length; i++) {
|
|
862
|
+
let selectedNode = value[i];
|
|
873
863
|
let areNodesEqual = (selectedNode.key && selectedNode.key === node.key) || selectedNode == node;
|
|
874
864
|
if (areNodesEqual) {
|
|
875
865
|
index = i;
|
|
@@ -882,7 +872,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
882
872
|
}
|
|
883
873
|
onSelect(event) {
|
|
884
874
|
this.onNodeSelect.emit(event);
|
|
885
|
-
if (this.selectionMode === 'single') {
|
|
875
|
+
if (this.selectionMode() === 'single') {
|
|
886
876
|
this.hide();
|
|
887
877
|
this.focusInput().nativeElement.focus();
|
|
888
878
|
}
|
|
@@ -895,11 +885,11 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
895
885
|
// For ScreenReaders
|
|
896
886
|
return;
|
|
897
887
|
}
|
|
898
|
-
this.focused
|
|
888
|
+
this.focused.set(true);
|
|
899
889
|
this.onFocus.emit(event);
|
|
900
890
|
}
|
|
901
891
|
onInputBlur(event) {
|
|
902
|
-
this.focused
|
|
892
|
+
this.focused.set(false);
|
|
903
893
|
this.onBlur.emit(event);
|
|
904
894
|
this.onModelTouched();
|
|
905
895
|
}
|
|
@@ -910,22 +900,18 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
910
900
|
* Writes the value to the control.
|
|
911
901
|
*/
|
|
912
902
|
writeControlValue(value) {
|
|
913
|
-
this.value
|
|
903
|
+
this.value.set(value);
|
|
914
904
|
this.updateTreeState();
|
|
915
|
-
this.cd.markForCheck();
|
|
916
|
-
}
|
|
917
|
-
get emptyValue() {
|
|
918
|
-
return !this.value || Object.keys(this.value).length === 0;
|
|
919
|
-
}
|
|
920
|
-
get emptyOptions() {
|
|
921
|
-
return !this.options || this.options.length === 0;
|
|
922
|
-
}
|
|
923
|
-
get label() {
|
|
924
|
-
let value = this.value || [];
|
|
925
|
-
return value.length ? value.map((node) => node.label).join(', ') : this.selectionMode === 'single' && this.value ? value.label : this.placeholder;
|
|
926
905
|
}
|
|
927
|
-
|
|
928
|
-
|
|
906
|
+
emptyValue = computed(() => !this.value() || Object.keys(this.value()).length === 0, /* @ts-ignore */
|
|
907
|
+
...(ngDevMode ? [{ debugName: "emptyValue" }] : /* istanbul ignore next */ []));
|
|
908
|
+
label = computed(() => {
|
|
909
|
+
let value = this.value() || [];
|
|
910
|
+
return value.length ? value.map((node) => node.label).join(', ') : this.selectionMode() === 'single' && this.value() ? value.label : this.placeholder();
|
|
911
|
+
}, /* @ts-ignore */
|
|
912
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
913
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TreeSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
914
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TreeSelect, isStandalone: true, selector: "p-treeSelect, p-treeselect, p-tree-select", inputs: { inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, display: { classPropertyName: "display", publicName: "display", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, labelStyle: { classPropertyName: "labelStyle", publicName: "labelStyle", isSignal: true, isRequired: false, transformFunction: null }, labelStyleClass: { classPropertyName: "labelStyleClass", publicName: "labelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, filterInputAutoFocus: { classPropertyName: "filterInputAutoFocus", publicName: "filterInputAutoFocus", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionDown: { classPropertyName: "propagateSelectionDown", publicName: "propagateSelectionDown", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionUp: { classPropertyName: "propagateSelectionUp", publicName: "propagateSelectionUp", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", 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 }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingMode: { classPropertyName: "loadingMode", publicName: "loadingMode", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onShow: "onShow", onHide: "onHide", onClear: "onClear", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onNodeUnselect: "onNodeUnselect", onNodeSelect: "onNodeSelect" }, host: { listeners: { "mousedown": "onHostClick($event)" }, properties: { "class": "cx('root')", "style": "sx('root')" } }, providers: [
|
|
929
915
|
TREESELECT_VALUE_ACCESSOR,
|
|
930
916
|
TreeSelectStyle,
|
|
931
917
|
{
|
|
@@ -942,59 +928,59 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
942
928
|
#focusInput
|
|
943
929
|
type="text"
|
|
944
930
|
role="combobox"
|
|
945
|
-
[attr.id]="inputId"
|
|
931
|
+
[attr.id]="inputId()"
|
|
946
932
|
readonly
|
|
947
933
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
948
934
|
(focus)="onInputFocus($event)"
|
|
949
935
|
(blur)="onInputBlur($event)"
|
|
950
936
|
(keydown)="onKeyDown($event)"
|
|
951
|
-
[attr.tabindex]="!$disabled() ? tabindex : -1"
|
|
952
|
-
[attr.aria-controls]="overlayVisible ? listId : null"
|
|
937
|
+
[attr.tabindex]="!$disabled() ? tabindex() : -1"
|
|
938
|
+
[attr.aria-controls]="overlayVisible() ? listId : null"
|
|
953
939
|
[attr.aria-haspopup]="'tree'"
|
|
954
|
-
[attr.aria-expanded]="overlayVisible ?? false"
|
|
955
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
|
956
|
-
[attr.aria-label]="ariaLabel || (label === 'p-emptylabel' ? undefined : label)"
|
|
957
|
-
[pAutoFocus]="autofocus"
|
|
940
|
+
[attr.aria-expanded]="overlayVisible() ?? false"
|
|
941
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
942
|
+
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
943
|
+
[pAutoFocus]="autofocus()"
|
|
958
944
|
[pBind]="ptm('hiddenInput')"
|
|
959
945
|
/>
|
|
960
946
|
</div>
|
|
961
947
|
<div [class]="cx('labelContainer')" [pBind]="ptm('labelContainer')">
|
|
962
|
-
<div [class]="cn(cx('label'), labelStyleClass)" [ngStyle]="labelStyle" [pBind]="ptm('label')">
|
|
963
|
-
@if (valueTemplate() || _valueTemplate) {
|
|
964
|
-
<ng-container *ngTemplateOutlet="valueTemplate() || _valueTemplate; context: { $implicit: value, placeholder: placeholder }"></ng-container>
|
|
948
|
+
<div [class]="cn(cx('label'), labelStyleClass())" [ngStyle]="labelStyle()" [pBind]="ptm('label')">
|
|
949
|
+
@if (valueTemplate() || _valueTemplate()) {
|
|
950
|
+
<ng-container *ngTemplateOutlet="valueTemplate() || _valueTemplate(); context: { $implicit: value(), placeholder: placeholder() }"></ng-container>
|
|
965
951
|
} @else {
|
|
966
|
-
@if (display === 'comma') {
|
|
967
|
-
{{ label || 'empty' }}
|
|
952
|
+
@if (display() === 'comma') {
|
|
953
|
+
{{ label() || 'empty' }}
|
|
968
954
|
} @else {
|
|
969
|
-
@for (node of value; track node) {
|
|
955
|
+
@for (node of value(); track node) {
|
|
970
956
|
<div [class]="cx('chipItem')" [pBind]="ptm('chipItem')">
|
|
971
957
|
<p-chip [unstyled]="unstyled()" [label]="node.label" [class]="cx('pcChip')" [pt]="ptm('pcChip')" />
|
|
972
958
|
</div>
|
|
973
959
|
}
|
|
974
|
-
@if (emptyValue) {
|
|
975
|
-
{{ placeholder || 'empty' }}
|
|
960
|
+
@if (emptyValue()) {
|
|
961
|
+
{{ placeholder() || 'empty' }}
|
|
976
962
|
}
|
|
977
963
|
}
|
|
978
964
|
}
|
|
979
965
|
</div>
|
|
980
966
|
</div>
|
|
981
|
-
@if (checkValue() && !$disabled() && showClear) {
|
|
982
|
-
@if (!clearIconTemplate() && !_clearIconTemplate) {
|
|
967
|
+
@if (checkValue() && !$disabled() && showClear()) {
|
|
968
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
983
969
|
<svg data-p-icon="times" [class]="cx('clearIcon')" (click)="clear($event)" [pBind]="ptm('clearIcon')" />
|
|
984
970
|
}
|
|
985
|
-
@if (clearIconTemplate() ||
|
|
971
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
986
972
|
<span [class]="cx('clearIcon')" (click)="clear($event)" [pBind]="ptm('clearIcon')">
|
|
987
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
|
|
973
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
|
|
988
974
|
</span>
|
|
989
975
|
}
|
|
990
976
|
}
|
|
991
|
-
<div [class]="cx('dropdown')" role="button" aria-haspopup="tree" [attr.aria-expanded]="overlayVisible ?? false" [attr.aria-label]="'treeselect trigger'" [pBind]="ptm('dropdown')">
|
|
992
|
-
@if (!triggerIconTemplate() && !_triggerIconTemplate && !dropdownIconTemplate() && !_dropdownIconTemplate) {
|
|
977
|
+
<div [class]="cx('dropdown')" role="button" aria-haspopup="tree" [attr.aria-expanded]="overlayVisible() ?? false" [attr.aria-label]="'treeselect trigger'" [pBind]="ptm('dropdown')">
|
|
978
|
+
@if (!triggerIconTemplate() && !_triggerIconTemplate() && !dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
993
979
|
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
|
|
994
980
|
}
|
|
995
|
-
@if (triggerIconTemplate() || _triggerIconTemplate || dropdownIconTemplate() || _dropdownIconTemplate) {
|
|
981
|
+
@if (triggerIconTemplate() || _triggerIconTemplate() || dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
996
982
|
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
|
|
997
|
-
<ng-template *ngTemplateOutlet="triggerIconTemplate() || _triggerIconTemplate || dropdownIconTemplate() || _dropdownIconTemplate"></ng-template>
|
|
983
|
+
<ng-template *ngTemplateOutlet="triggerIconTemplate() || _triggerIconTemplate() || dropdownIconTemplate() || _dropdownIconTemplate()"></ng-template>
|
|
998
984
|
</span>
|
|
999
985
|
}
|
|
1000
986
|
</div>
|
|
@@ -1002,7 +988,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
1002
988
|
#overlay
|
|
1003
989
|
[hostAttrSelector]="$attrSelector"
|
|
1004
990
|
[(visible)]="overlayVisible"
|
|
1005
|
-
[options]="overlayOptions"
|
|
991
|
+
[options]="overlayOptions()"
|
|
1006
992
|
[target]="'@parent'"
|
|
1007
993
|
[appendTo]="$appendTo()"
|
|
1008
994
|
[unstyled]="unstyled()"
|
|
@@ -1014,7 +1000,7 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
1014
1000
|
(onHide)="hide($event)"
|
|
1015
1001
|
>
|
|
1016
1002
|
<ng-template #content>
|
|
1017
|
-
<div #panel [attr.id]="listId" [class]="cn(cx('panel'), panelStyleClass, panelClass)" [ngStyle]="panelStyle" [pBind]="ptm('panel')">
|
|
1003
|
+
<div #panel [attr.id]="listId" [class]="cn(cx('panel'), panelStyleClass(), panelClass())" [ngStyle]="panelStyle()" [pBind]="ptm('panel')">
|
|
1018
1004
|
<span
|
|
1019
1005
|
#firstHiddenFocusableEl
|
|
1020
1006
|
role="presentation"
|
|
@@ -1026,64 +1012,64 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
1026
1012
|
[pBind]="ptm('hiddenFirstFocusableEl')"
|
|
1027
1013
|
>
|
|
1028
1014
|
</span>
|
|
1029
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate; context: { $implicit: value, options: options }"></ng-container>
|
|
1030
|
-
<div [class]="cx('treeContainer')" [ngStyle]="{ 'max-height': scrollHeight }" [pBind]="ptm('treeContainer')">
|
|
1015
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { $implicit: value(), options: options() }"></ng-container>
|
|
1016
|
+
<div [class]="cx('treeContainer')" [ngStyle]="{ 'max-height': scrollHeight() }" [pBind]="ptm('treeContainer')">
|
|
1031
1017
|
<p-tree
|
|
1032
1018
|
#tree
|
|
1033
|
-
[value]="options"
|
|
1034
|
-
[propagateSelectionDown]="propagateSelectionDown"
|
|
1035
|
-
[propagateSelectionUp]="propagateSelectionUp"
|
|
1036
|
-
[selectionMode]="selectionMode"
|
|
1019
|
+
[value]="options()"
|
|
1020
|
+
[propagateSelectionDown]="propagateSelectionDown()"
|
|
1021
|
+
[propagateSelectionUp]="propagateSelectionUp()"
|
|
1022
|
+
[selectionMode]="selectionMode()"
|
|
1037
1023
|
(selectionChange)="onSelectionChange($event)"
|
|
1038
|
-
[selection]="value"
|
|
1039
|
-
[metaKeySelection]="metaKeySelection"
|
|
1024
|
+
[selection]="value()"
|
|
1025
|
+
[metaKeySelection]="metaKeySelection()"
|
|
1040
1026
|
(onNodeExpand)="nodeExpand($event)"
|
|
1041
1027
|
(onNodeCollapse)="nodeCollapse($event)"
|
|
1042
1028
|
(onNodeSelect)="onSelect($event)"
|
|
1043
|
-
[emptyMessage]="emptyMessage"
|
|
1029
|
+
[emptyMessage]="emptyMessage()"
|
|
1044
1030
|
(onNodeUnselect)="onUnselect($event)"
|
|
1045
|
-
[filter]="filter"
|
|
1046
|
-
[filterBy]="filterBy"
|
|
1047
|
-
[filterMode]="filterMode"
|
|
1048
|
-
[filterPlaceholder]="filterPlaceholder"
|
|
1049
|
-
[filterLocale]="filterLocale"
|
|
1050
|
-
[filteredNodes]="filteredNodes"
|
|
1051
|
-
[virtualScroll]="virtualScroll"
|
|
1052
|
-
[virtualScrollItemSize]="virtualScrollItemSize"
|
|
1053
|
-
[virtualScrollOptions]="virtualScrollOptions"
|
|
1054
|
-
[_templateMap]="templateMap"
|
|
1055
|
-
[loading]="loading"
|
|
1056
|
-
[filterInputAutoFocus]="filterInputAutoFocus"
|
|
1057
|
-
[loadingMode]="loadingMode"
|
|
1031
|
+
[filter]="filter()"
|
|
1032
|
+
[filterBy]="filterBy()"
|
|
1033
|
+
[filterMode]="filterMode()"
|
|
1034
|
+
[filterPlaceholder]="filterPlaceholder()"
|
|
1035
|
+
[filterLocale]="filterLocale()"
|
|
1036
|
+
[filteredNodes]="filteredNodes()"
|
|
1037
|
+
[virtualScroll]="virtualScroll()"
|
|
1038
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
1039
|
+
[virtualScrollOptions]="virtualScrollOptions()"
|
|
1040
|
+
[_templateMap]="templateMap()"
|
|
1041
|
+
[loading]="loading()"
|
|
1042
|
+
[filterInputAutoFocus]="filterInputAutoFocus()"
|
|
1043
|
+
[loadingMode]="loadingMode()"
|
|
1058
1044
|
[pt]="ptm('pcTree')"
|
|
1059
1045
|
[unstyled]="unstyled()"
|
|
1060
1046
|
>
|
|
1061
|
-
@if (emptyTemplate() || _emptyTemplate) {
|
|
1047
|
+
@if (emptyTemplate() || _emptyTemplate()) {
|
|
1062
1048
|
<ng-template #empty>
|
|
1063
|
-
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
|
|
1049
|
+
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1064
1050
|
</ng-template>
|
|
1065
1051
|
}
|
|
1066
|
-
@if (itemTogglerIconTemplate() || _itemTogglerIconTemplate; as expanded) {
|
|
1052
|
+
@if (itemTogglerIconTemplate() || _itemTogglerIconTemplate(); as expanded) {
|
|
1067
1053
|
<ng-template #togglericon let-expanded>
|
|
1068
|
-
<ng-container *ngTemplateOutlet="itemTogglerIconTemplate() || _itemTogglerIconTemplate; context: { $implicit: expanded }"></ng-container>
|
|
1054
|
+
<ng-container *ngTemplateOutlet="itemTogglerIconTemplate() || _itemTogglerIconTemplate(); context: { $implicit: expanded }"></ng-container>
|
|
1069
1055
|
</ng-template>
|
|
1070
1056
|
}
|
|
1071
|
-
<ng-template #checkboxicon let-selected let-partialSelected="partialSelected" *ngIf="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate">
|
|
1072
|
-
<ng-container *ngTemplateOutlet="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate; context: { $implicit: selected, partialSelected: partialSelected }"></ng-container>
|
|
1057
|
+
<ng-template #checkboxicon let-selected let-partialSelected="partialSelected" *ngIf="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate()">
|
|
1058
|
+
<ng-container *ngTemplateOutlet="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate(); context: { $implicit: selected, partialSelected: partialSelected }"></ng-container>
|
|
1073
1059
|
</ng-template>
|
|
1074
|
-
@if (itemLoadingIconTemplate() || _itemLoadingIconTemplate) {
|
|
1060
|
+
@if (itemLoadingIconTemplate() || _itemLoadingIconTemplate()) {
|
|
1075
1061
|
<ng-template #loadingicon>
|
|
1076
|
-
<ng-container *ngTemplateOutlet="itemLoadingIconTemplate() || _itemLoadingIconTemplate"></ng-container>
|
|
1062
|
+
<ng-container *ngTemplateOutlet="itemLoadingIconTemplate() || _itemLoadingIconTemplate()"></ng-container>
|
|
1077
1063
|
</ng-template>
|
|
1078
1064
|
}
|
|
1079
|
-
@if (filterIconTemplate() || _filterIconTemplate) {
|
|
1065
|
+
@if (filterIconTemplate() || _filterIconTemplate()) {
|
|
1080
1066
|
<ng-template #filtericon>
|
|
1081
|
-
<ng-container *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-container>
|
|
1067
|
+
<ng-container *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-container>
|
|
1082
1068
|
</ng-template>
|
|
1083
1069
|
}
|
|
1084
1070
|
</p-tree>
|
|
1085
1071
|
</div>
|
|
1086
|
-
<ng-container *ngTemplateOutlet="footerTemplate(); context: { $implicit: value, options: options }"></ng-container>
|
|
1072
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate(); context: { $implicit: value(), options: options() }"></ng-container>
|
|
1087
1073
|
<span
|
|
1088
1074
|
#lastHiddenFocusableEl
|
|
1089
1075
|
role="presentation"
|
|
@@ -1097,13 +1083,12 @@ class TreeSelect extends BaseEditableHolder {
|
|
|
1097
1083
|
</div>
|
|
1098
1084
|
</ng-template>
|
|
1099
1085
|
</p-overlay>
|
|
1100
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "
|
|
1086
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "contextMenu", "contextMenuSelectionMode", "contextMenuSelection", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterInputAutoFocus", "filterBy", "filterMode", "filterOptions", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "highlightOnSelect"], outputs: ["valueChange", "selectionChange", "contextMenuSelectionChange", "filteredNodesChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDoubleClick", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1101
1087
|
}
|
|
1102
1088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TreeSelect, decorators: [{
|
|
1103
1089
|
type: Component,
|
|
1104
1090
|
args: [{
|
|
1105
1091
|
selector: 'p-treeSelect, p-treeselect, p-tree-select',
|
|
1106
|
-
standalone: true,
|
|
1107
1092
|
imports: [CommonModule, Overlay, SharedModule, Tree, AutoFocus, TimesIcon, ChevronDownIcon, Chip, Bind],
|
|
1108
1093
|
hostDirectives: [Bind],
|
|
1109
1094
|
template: `
|
|
@@ -1112,59 +1097,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1112
1097
|
#focusInput
|
|
1113
1098
|
type="text"
|
|
1114
1099
|
role="combobox"
|
|
1115
|
-
[attr.id]="inputId"
|
|
1100
|
+
[attr.id]="inputId()"
|
|
1116
1101
|
readonly
|
|
1117
1102
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1118
1103
|
(focus)="onInputFocus($event)"
|
|
1119
1104
|
(blur)="onInputBlur($event)"
|
|
1120
1105
|
(keydown)="onKeyDown($event)"
|
|
1121
|
-
[attr.tabindex]="!$disabled() ? tabindex : -1"
|
|
1122
|
-
[attr.aria-controls]="overlayVisible ? listId : null"
|
|
1106
|
+
[attr.tabindex]="!$disabled() ? tabindex() : -1"
|
|
1107
|
+
[attr.aria-controls]="overlayVisible() ? listId : null"
|
|
1123
1108
|
[attr.aria-haspopup]="'tree'"
|
|
1124
|
-
[attr.aria-expanded]="overlayVisible ?? false"
|
|
1125
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
|
1126
|
-
[attr.aria-label]="ariaLabel || (label === 'p-emptylabel' ? undefined : label)"
|
|
1127
|
-
[pAutoFocus]="autofocus"
|
|
1109
|
+
[attr.aria-expanded]="overlayVisible() ?? false"
|
|
1110
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
1111
|
+
[attr.aria-label]="ariaLabel() || (label() === 'p-emptylabel' ? undefined : label())"
|
|
1112
|
+
[pAutoFocus]="autofocus()"
|
|
1128
1113
|
[pBind]="ptm('hiddenInput')"
|
|
1129
1114
|
/>
|
|
1130
1115
|
</div>
|
|
1131
1116
|
<div [class]="cx('labelContainer')" [pBind]="ptm('labelContainer')">
|
|
1132
|
-
<div [class]="cn(cx('label'), labelStyleClass)" [ngStyle]="labelStyle" [pBind]="ptm('label')">
|
|
1133
|
-
@if (valueTemplate() || _valueTemplate) {
|
|
1134
|
-
<ng-container *ngTemplateOutlet="valueTemplate() || _valueTemplate; context: { $implicit: value, placeholder: placeholder }"></ng-container>
|
|
1117
|
+
<div [class]="cn(cx('label'), labelStyleClass())" [ngStyle]="labelStyle()" [pBind]="ptm('label')">
|
|
1118
|
+
@if (valueTemplate() || _valueTemplate()) {
|
|
1119
|
+
<ng-container *ngTemplateOutlet="valueTemplate() || _valueTemplate(); context: { $implicit: value(), placeholder: placeholder() }"></ng-container>
|
|
1135
1120
|
} @else {
|
|
1136
|
-
@if (display === 'comma') {
|
|
1137
|
-
{{ label || 'empty' }}
|
|
1121
|
+
@if (display() === 'comma') {
|
|
1122
|
+
{{ label() || 'empty' }}
|
|
1138
1123
|
} @else {
|
|
1139
|
-
@for (node of value; track node) {
|
|
1124
|
+
@for (node of value(); track node) {
|
|
1140
1125
|
<div [class]="cx('chipItem')" [pBind]="ptm('chipItem')">
|
|
1141
1126
|
<p-chip [unstyled]="unstyled()" [label]="node.label" [class]="cx('pcChip')" [pt]="ptm('pcChip')" />
|
|
1142
1127
|
</div>
|
|
1143
1128
|
}
|
|
1144
|
-
@if (emptyValue) {
|
|
1145
|
-
{{ placeholder || 'empty' }}
|
|
1129
|
+
@if (emptyValue()) {
|
|
1130
|
+
{{ placeholder() || 'empty' }}
|
|
1146
1131
|
}
|
|
1147
1132
|
}
|
|
1148
1133
|
}
|
|
1149
1134
|
</div>
|
|
1150
1135
|
</div>
|
|
1151
|
-
@if (checkValue() && !$disabled() && showClear) {
|
|
1152
|
-
@if (!clearIconTemplate() && !_clearIconTemplate) {
|
|
1136
|
+
@if (checkValue() && !$disabled() && showClear()) {
|
|
1137
|
+
@if (!clearIconTemplate() && !_clearIconTemplate()) {
|
|
1153
1138
|
<svg data-p-icon="times" [class]="cx('clearIcon')" (click)="clear($event)" [pBind]="ptm('clearIcon')" />
|
|
1154
1139
|
}
|
|
1155
|
-
@if (clearIconTemplate() ||
|
|
1140
|
+
@if (clearIconTemplate() || _clearIconTemplate()) {
|
|
1156
1141
|
<span [class]="cx('clearIcon')" (click)="clear($event)" [pBind]="ptm('clearIcon')">
|
|
1157
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate"></ng-template>
|
|
1142
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate() || _clearIconTemplate()"></ng-template>
|
|
1158
1143
|
</span>
|
|
1159
1144
|
}
|
|
1160
1145
|
}
|
|
1161
|
-
<div [class]="cx('dropdown')" role="button" aria-haspopup="tree" [attr.aria-expanded]="overlayVisible ?? false" [attr.aria-label]="'treeselect trigger'" [pBind]="ptm('dropdown')">
|
|
1162
|
-
@if (!triggerIconTemplate() && !_triggerIconTemplate && !dropdownIconTemplate() && !_dropdownIconTemplate) {
|
|
1146
|
+
<div [class]="cx('dropdown')" role="button" aria-haspopup="tree" [attr.aria-expanded]="overlayVisible() ?? false" [attr.aria-label]="'treeselect trigger'" [pBind]="ptm('dropdown')">
|
|
1147
|
+
@if (!triggerIconTemplate() && !_triggerIconTemplate() && !dropdownIconTemplate() && !_dropdownIconTemplate()) {
|
|
1163
1148
|
<svg data-p-icon="chevron-down" [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')" />
|
|
1164
1149
|
}
|
|
1165
|
-
@if (triggerIconTemplate() || _triggerIconTemplate || dropdownIconTemplate() || _dropdownIconTemplate) {
|
|
1150
|
+
@if (triggerIconTemplate() || _triggerIconTemplate() || dropdownIconTemplate() || _dropdownIconTemplate()) {
|
|
1166
1151
|
<span [class]="cx('dropdownIcon')" [pBind]="ptm('dropdownIcon')">
|
|
1167
|
-
<ng-template *ngTemplateOutlet="triggerIconTemplate() || _triggerIconTemplate || dropdownIconTemplate() || _dropdownIconTemplate"></ng-template>
|
|
1152
|
+
<ng-template *ngTemplateOutlet="triggerIconTemplate() || _triggerIconTemplate() || dropdownIconTemplate() || _dropdownIconTemplate()"></ng-template>
|
|
1168
1153
|
</span>
|
|
1169
1154
|
}
|
|
1170
1155
|
</div>
|
|
@@ -1172,7 +1157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1172
1157
|
#overlay
|
|
1173
1158
|
[hostAttrSelector]="$attrSelector"
|
|
1174
1159
|
[(visible)]="overlayVisible"
|
|
1175
|
-
[options]="overlayOptions"
|
|
1160
|
+
[options]="overlayOptions()"
|
|
1176
1161
|
[target]="'@parent'"
|
|
1177
1162
|
[appendTo]="$appendTo()"
|
|
1178
1163
|
[unstyled]="unstyled()"
|
|
@@ -1184,7 +1169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1184
1169
|
(onHide)="hide($event)"
|
|
1185
1170
|
>
|
|
1186
1171
|
<ng-template #content>
|
|
1187
|
-
<div #panel [attr.id]="listId" [class]="cn(cx('panel'), panelStyleClass, panelClass)" [ngStyle]="panelStyle" [pBind]="ptm('panel')">
|
|
1172
|
+
<div #panel [attr.id]="listId" [class]="cn(cx('panel'), panelStyleClass(), panelClass())" [ngStyle]="panelStyle()" [pBind]="ptm('panel')">
|
|
1188
1173
|
<span
|
|
1189
1174
|
#firstHiddenFocusableEl
|
|
1190
1175
|
role="presentation"
|
|
@@ -1196,64 +1181,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1196
1181
|
[pBind]="ptm('hiddenFirstFocusableEl')"
|
|
1197
1182
|
>
|
|
1198
1183
|
</span>
|
|
1199
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate; context: { $implicit: value, options: options }"></ng-container>
|
|
1200
|
-
<div [class]="cx('treeContainer')" [ngStyle]="{ 'max-height': scrollHeight }" [pBind]="ptm('treeContainer')">
|
|
1184
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { $implicit: value(), options: options() }"></ng-container>
|
|
1185
|
+
<div [class]="cx('treeContainer')" [ngStyle]="{ 'max-height': scrollHeight() }" [pBind]="ptm('treeContainer')">
|
|
1201
1186
|
<p-tree
|
|
1202
1187
|
#tree
|
|
1203
|
-
[value]="options"
|
|
1204
|
-
[propagateSelectionDown]="propagateSelectionDown"
|
|
1205
|
-
[propagateSelectionUp]="propagateSelectionUp"
|
|
1206
|
-
[selectionMode]="selectionMode"
|
|
1188
|
+
[value]="options()"
|
|
1189
|
+
[propagateSelectionDown]="propagateSelectionDown()"
|
|
1190
|
+
[propagateSelectionUp]="propagateSelectionUp()"
|
|
1191
|
+
[selectionMode]="selectionMode()"
|
|
1207
1192
|
(selectionChange)="onSelectionChange($event)"
|
|
1208
|
-
[selection]="value"
|
|
1209
|
-
[metaKeySelection]="metaKeySelection"
|
|
1193
|
+
[selection]="value()"
|
|
1194
|
+
[metaKeySelection]="metaKeySelection()"
|
|
1210
1195
|
(onNodeExpand)="nodeExpand($event)"
|
|
1211
1196
|
(onNodeCollapse)="nodeCollapse($event)"
|
|
1212
1197
|
(onNodeSelect)="onSelect($event)"
|
|
1213
|
-
[emptyMessage]="emptyMessage"
|
|
1198
|
+
[emptyMessage]="emptyMessage()"
|
|
1214
1199
|
(onNodeUnselect)="onUnselect($event)"
|
|
1215
|
-
[filter]="filter"
|
|
1216
|
-
[filterBy]="filterBy"
|
|
1217
|
-
[filterMode]="filterMode"
|
|
1218
|
-
[filterPlaceholder]="filterPlaceholder"
|
|
1219
|
-
[filterLocale]="filterLocale"
|
|
1220
|
-
[filteredNodes]="filteredNodes"
|
|
1221
|
-
[virtualScroll]="virtualScroll"
|
|
1222
|
-
[virtualScrollItemSize]="virtualScrollItemSize"
|
|
1223
|
-
[virtualScrollOptions]="virtualScrollOptions"
|
|
1224
|
-
[_templateMap]="templateMap"
|
|
1225
|
-
[loading]="loading"
|
|
1226
|
-
[filterInputAutoFocus]="filterInputAutoFocus"
|
|
1227
|
-
[loadingMode]="loadingMode"
|
|
1200
|
+
[filter]="filter()"
|
|
1201
|
+
[filterBy]="filterBy()"
|
|
1202
|
+
[filterMode]="filterMode()"
|
|
1203
|
+
[filterPlaceholder]="filterPlaceholder()"
|
|
1204
|
+
[filterLocale]="filterLocale()"
|
|
1205
|
+
[filteredNodes]="filteredNodes()"
|
|
1206
|
+
[virtualScroll]="virtualScroll()"
|
|
1207
|
+
[virtualScrollItemSize]="virtualScrollItemSize()"
|
|
1208
|
+
[virtualScrollOptions]="virtualScrollOptions()"
|
|
1209
|
+
[_templateMap]="templateMap()"
|
|
1210
|
+
[loading]="loading()"
|
|
1211
|
+
[filterInputAutoFocus]="filterInputAutoFocus()"
|
|
1212
|
+
[loadingMode]="loadingMode()"
|
|
1228
1213
|
[pt]="ptm('pcTree')"
|
|
1229
1214
|
[unstyled]="unstyled()"
|
|
1230
1215
|
>
|
|
1231
|
-
@if (emptyTemplate() || _emptyTemplate) {
|
|
1216
|
+
@if (emptyTemplate() || _emptyTemplate()) {
|
|
1232
1217
|
<ng-template #empty>
|
|
1233
|
-
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
|
|
1218
|
+
<ng-container *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1234
1219
|
</ng-template>
|
|
1235
1220
|
}
|
|
1236
|
-
@if (itemTogglerIconTemplate() || _itemTogglerIconTemplate; as expanded) {
|
|
1221
|
+
@if (itemTogglerIconTemplate() || _itemTogglerIconTemplate(); as expanded) {
|
|
1237
1222
|
<ng-template #togglericon let-expanded>
|
|
1238
|
-
<ng-container *ngTemplateOutlet="itemTogglerIconTemplate() || _itemTogglerIconTemplate; context: { $implicit: expanded }"></ng-container>
|
|
1223
|
+
<ng-container *ngTemplateOutlet="itemTogglerIconTemplate() || _itemTogglerIconTemplate(); context: { $implicit: expanded }"></ng-container>
|
|
1239
1224
|
</ng-template>
|
|
1240
1225
|
}
|
|
1241
|
-
<ng-template #checkboxicon let-selected let-partialSelected="partialSelected" *ngIf="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate">
|
|
1242
|
-
<ng-container *ngTemplateOutlet="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate; context: { $implicit: selected, partialSelected: partialSelected }"></ng-container>
|
|
1226
|
+
<ng-template #checkboxicon let-selected let-partialSelected="partialSelected" *ngIf="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate()">
|
|
1227
|
+
<ng-container *ngTemplateOutlet="itemCheckboxIconTemplate() || _itemCheckboxIconTemplate(); context: { $implicit: selected, partialSelected: partialSelected }"></ng-container>
|
|
1243
1228
|
</ng-template>
|
|
1244
|
-
@if (itemLoadingIconTemplate() || _itemLoadingIconTemplate) {
|
|
1229
|
+
@if (itemLoadingIconTemplate() || _itemLoadingIconTemplate()) {
|
|
1245
1230
|
<ng-template #loadingicon>
|
|
1246
|
-
<ng-container *ngTemplateOutlet="itemLoadingIconTemplate() || _itemLoadingIconTemplate"></ng-container>
|
|
1231
|
+
<ng-container *ngTemplateOutlet="itemLoadingIconTemplate() || _itemLoadingIconTemplate()"></ng-container>
|
|
1247
1232
|
</ng-template>
|
|
1248
1233
|
}
|
|
1249
|
-
@if (filterIconTemplate() || _filterIconTemplate) {
|
|
1234
|
+
@if (filterIconTemplate() || _filterIconTemplate()) {
|
|
1250
1235
|
<ng-template #filtericon>
|
|
1251
|
-
<ng-container *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-container>
|
|
1236
|
+
<ng-container *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-container>
|
|
1252
1237
|
</ng-template>
|
|
1253
1238
|
}
|
|
1254
1239
|
</p-tree>
|
|
1255
1240
|
</div>
|
|
1256
|
-
<ng-container *ngTemplateOutlet="footerTemplate(); context: { $implicit: value, options: options }"></ng-container>
|
|
1241
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate(); context: { $implicit: value(), options: options() }"></ng-container>
|
|
1257
1242
|
<span
|
|
1258
1243
|
#lastHiddenFocusableEl
|
|
1259
1244
|
role="presentation"
|
|
@@ -1283,90 +1268,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1283
1268
|
],
|
|
1284
1269
|
encapsulation: ViewEncapsulation.None,
|
|
1285
1270
|
host: {
|
|
1286
|
-
'[class]': "
|
|
1271
|
+
'[class]': "cx('root')",
|
|
1287
1272
|
'[style]': "sx('root')"
|
|
1288
1273
|
}
|
|
1289
1274
|
}]
|
|
1290
|
-
}], propDecorators: { inputId: [{
|
|
1291
|
-
type: Input
|
|
1292
|
-
}], scrollHeight: [{
|
|
1293
|
-
type: Input
|
|
1294
|
-
}], metaKeySelection: [{
|
|
1295
|
-
type: Input,
|
|
1296
|
-
args: [{ transform: booleanAttribute }]
|
|
1297
|
-
}], display: [{
|
|
1298
|
-
type: Input
|
|
1299
|
-
}], selectionMode: [{
|
|
1300
|
-
type: Input
|
|
1301
|
-
}], tabindex: [{
|
|
1302
|
-
type: Input
|
|
1303
|
-
}], ariaLabel: [{
|
|
1304
|
-
type: Input
|
|
1305
|
-
}], ariaLabelledBy: [{
|
|
1306
|
-
type: Input
|
|
1307
|
-
}], placeholder: [{
|
|
1308
|
-
type: Input
|
|
1309
|
-
}], panelClass: [{
|
|
1310
|
-
type: Input
|
|
1311
|
-
}], panelStyle: [{
|
|
1312
|
-
type: Input
|
|
1313
|
-
}], panelStyleClass: [{
|
|
1314
|
-
type: Input
|
|
1315
|
-
}], containerStyle: [{
|
|
1316
|
-
type: Input
|
|
1317
|
-
}], containerStyleClass: [{
|
|
1318
|
-
type: Input
|
|
1319
|
-
}], labelStyle: [{
|
|
1320
|
-
type: Input
|
|
1321
|
-
}], labelStyleClass: [{
|
|
1322
|
-
type: Input
|
|
1323
|
-
}], overlayOptions: [{
|
|
1324
|
-
type: Input
|
|
1325
|
-
}], emptyMessage: [{
|
|
1326
|
-
type: Input
|
|
1327
|
-
}], filter: [{
|
|
1328
|
-
type: Input,
|
|
1329
|
-
args: [{ transform: booleanAttribute }]
|
|
1330
|
-
}], filterBy: [{
|
|
1331
|
-
type: Input
|
|
1332
|
-
}], filterMode: [{
|
|
1333
|
-
type: Input
|
|
1334
|
-
}], filterPlaceholder: [{
|
|
1335
|
-
type: Input
|
|
1336
|
-
}], filterLocale: [{
|
|
1337
|
-
type: Input
|
|
1338
|
-
}], filterInputAutoFocus: [{
|
|
1339
|
-
type: Input,
|
|
1340
|
-
args: [{ transform: booleanAttribute }]
|
|
1341
|
-
}], propagateSelectionDown: [{
|
|
1342
|
-
type: Input,
|
|
1343
|
-
args: [{ transform: booleanAttribute }]
|
|
1344
|
-
}], propagateSelectionUp: [{
|
|
1345
|
-
type: Input,
|
|
1346
|
-
args: [{ transform: booleanAttribute }]
|
|
1347
|
-
}], showClear: [{
|
|
1348
|
-
type: Input,
|
|
1349
|
-
args: [{ transform: booleanAttribute }]
|
|
1350
|
-
}], resetFilterOnHide: [{
|
|
1351
|
-
type: Input,
|
|
1352
|
-
args: [{ transform: booleanAttribute }]
|
|
1353
|
-
}], virtualScroll: [{
|
|
1354
|
-
type: Input
|
|
1355
|
-
}], virtualScrollItemSize: [{
|
|
1356
|
-
type: Input
|
|
1357
|
-
}], virtualScrollOptions: [{
|
|
1358
|
-
type: Input
|
|
1359
|
-
}], autofocus: [{
|
|
1360
|
-
type: Input,
|
|
1361
|
-
args: [{ transform: booleanAttribute }]
|
|
1362
|
-
}], options: [{
|
|
1363
|
-
type: Input
|
|
1364
|
-
}], loading: [{
|
|
1365
|
-
type: Input,
|
|
1366
|
-
args: [{ transform: booleanAttribute }]
|
|
1367
|
-
}], loadingMode: [{
|
|
1368
|
-
type: Input
|
|
1369
|
-
}], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onNodeExpand: [{ type: i0.Output, args: ["onNodeExpand"] }], onNodeCollapse: [{ type: i0.Output, args: ["onNodeCollapse"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onNodeUnselect: [{ type: i0.Output, args: ["onNodeUnselect"] }], onNodeSelect: [{ type: i0.Output, args: ["onNodeSelect"] }], focusInput: [{ type: i0.ViewChild, args: ['focusInput', { isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filter', { isSignal: true }] }], treeViewChild: [{ type: i0.ViewChild, args: ['tree', { isSignal: true }] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], overlayViewChild: [{ type: i0.ViewChild, args: ['overlay', { isSignal: true }] }], firstHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['firstHiddenFocusableEl', { isSignal: true }] }], lastHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['lastHiddenFocusableEl', { isSignal: true }] }], valueTemplate: [{ type: i0.ContentChild, args: ['value', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], itemTogglerIconTemplate: [{ type: i0.ContentChild, args: ['itemtogglericon', { ...{ descendants: false }, isSignal: true }] }], itemCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['itemcheckboxicon', { ...{ descendants: false }, isSignal: true }] }], itemLoadingIconTemplate: [{ type: i0.ContentChild, args: ['itemloadingicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onHostClick: [{
|
|
1275
|
+
}], ctorParameters: () => [], propDecorators: { inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], labelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelStyle", required: false }] }], labelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelStyleClass", required: false }] }], overlayOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayOptions", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], filterMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMode", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], filterInputAutoFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterInputAutoFocus", required: false }] }], propagateSelectionDown: [{ type: i0.Input, args: [{ isSignal: true, alias: "propagateSelectionDown", required: false }] }], propagateSelectionUp: [{ type: i0.Input, args: [{ isSignal: true, alias: "propagateSelectionUp", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], resetFilterOnHide: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetFilterOnHide", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMode", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onNodeExpand: [{ type: i0.Output, args: ["onNodeExpand"] }], onNodeCollapse: [{ type: i0.Output, args: ["onNodeCollapse"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onNodeUnselect: [{ type: i0.Output, args: ["onNodeUnselect"] }], onNodeSelect: [{ type: i0.Output, args: ["onNodeSelect"] }], focusInput: [{ type: i0.ViewChild, args: ['focusInput', { isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filter', { isSignal: true }] }], treeViewChild: [{ type: i0.ViewChild, args: ['tree', { isSignal: true }] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], overlayViewChild: [{ type: i0.ViewChild, args: ['overlay', { isSignal: true }] }], firstHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['firstHiddenFocusableEl', { isSignal: true }] }], lastHiddenFocusableElementOnOverlay: [{ type: i0.ViewChild, args: ['lastHiddenFocusableEl', { isSignal: true }] }], valueTemplate: [{ type: i0.ContentChild, args: ['value', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], itemTogglerIconTemplate: [{ type: i0.ContentChild, args: ['itemtogglericon', { ...{ descendants: false }, isSignal: true }] }], itemCheckboxIconTemplate: [{ type: i0.ContentChild, args: ['itemcheckboxicon', { ...{ descendants: false }, isSignal: true }] }], itemLoadingIconTemplate: [{ type: i0.ContentChild, args: ['itemloadingicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onHostClick: [{
|
|
1370
1276
|
type: HostListener,
|
|
1371
1277
|
args: ['mousedown', ['$event']]
|
|
1372
1278
|
}] } });
|