primeng 19.0.6 → 19.0.7
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/dataview/dataview.interface.d.ts +9 -19
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog.d.ts +1 -1
- package/fesm2022/primeng-accordion.mjs +347 -560
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +37 -40
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +79 -89
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +505 -786
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +26 -27
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +70 -120
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +44 -54
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +62 -71
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +6 -6
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +15 -15
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +66 -87
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +175 -386
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +223 -328
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +36 -40
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +727 -1127
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +88 -192
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +218 -405
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +392 -576
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +57 -63
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +131 -183
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +92 -188
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +142 -167
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +12 -12
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +220 -347
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +161 -251
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +336 -450
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +249 -352
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +740 -1136
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-defer.mjs +25 -31
- package/fesm2022/primeng-defer.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +277 -478
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +68 -77
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +138 -167
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +85 -79
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +171 -268
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +529 -867
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +152 -301
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +118 -156
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +153 -247
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +370 -687
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +38 -46
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +33 -41
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +23 -24
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +529 -761
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +42 -51
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +17 -19
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +17 -19
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +17 -19
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +17 -19
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +19 -19
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +26 -26
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +24 -26
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +19 -19
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +28 -33
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +14 -16
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +17 -19
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +17 -19
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +17 -19
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +17 -19
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +17 -19
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +17 -19
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +19 -19
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +24 -26
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterslash.mjs +26 -26
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +26 -26
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +26 -26
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +17 -19
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +24 -26
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +24 -26
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +26 -26
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +26 -26
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +26 -26
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +26 -26
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +30 -26
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +24 -26
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +24 -26
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +24 -26
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +26 -26
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +17 -19
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +26 -26
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +26 -26
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +26 -26
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +26 -26
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +32 -38
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +189 -370
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +57 -86
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +108 -206
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +40 -50
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +39 -48
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +156 -181
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +299 -416
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +97 -121
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputswitch.mjs +87 -92
- package/fesm2022/primeng-inputswitch.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +51 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +50 -55
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +44 -47
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +105 -111
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +473 -790
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +377 -611
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +289 -460
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +357 -549
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +156 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +162 -278
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +135 -264
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +655 -1132
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +228 -330
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +161 -311
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +135 -147
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +50 -58
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +134 -154
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +212 -447
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +219 -317
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +439 -783
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +268 -408
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +560 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +129 -148
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +81 -121
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +48 -58
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +115 -106
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +120 -208
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +28 -29
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +167 -295
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +96 -116
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +106 -150
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +579 -955
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +106 -133
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +151 -239
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +46 -54
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +186 -182
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +192 -254
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +211 -231
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +126 -159
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +227 -342
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +117 -170
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +50 -53
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +1808 -2584
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +173 -319
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +185 -300
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +263 -435
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +63 -110
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +60 -104
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +56 -61
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +338 -457
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +90 -156
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +251 -358
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +113 -150
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +98 -121
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +62 -121
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +73 -74
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +441 -730
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +342 -531
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1026 -1583
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/listbox/listbox.d.ts +2 -2
- package/package.json +178 -179
- package/password/password.d.ts +7 -1
- package/picklist/picklist.d.ts +11 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, inject, forwardRef,
|
4
|
+
import { Injectable, inject, forwardRef, numberAttribute, booleanAttribute, Input, ViewEncapsulation, Component, EventEmitter, ContentChildren, ViewChild, ContentChild, Output, Optional, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
5
5
|
import * as i2 from '@angular/forms';
|
6
6
|
import { FormsModule } from '@angular/forms';
|
7
7
|
import { find, hasClass, findSingle, focus, removeAccents, resolveFieldData } from '@primeuix/utils';
|
@@ -272,12 +272,12 @@ class TreeStyle extends BaseStyle {
|
|
272
272
|
name = 'tree';
|
273
273
|
theme = theme;
|
274
274
|
classes = classes;
|
275
|
-
static ɵfac =
|
276
|
-
static ɵprov =
|
275
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: TreeStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
276
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: TreeStyle });
|
277
277
|
}
|
278
|
-
(
|
279
|
-
|
280
|
-
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: TreeStyle, decorators: [{
|
279
|
+
type: Injectable
|
280
|
+
}] });
|
281
281
|
/**
|
282
282
|
*
|
283
283
|
* Tree is used to display hierarchical data.
|
@@ -347,446 +347,6 @@ var TreeClasses;
|
|
347
347
|
TreeClasses["nodeChildren"] = "p-tree-node-children";
|
348
348
|
})(TreeClasses || (TreeClasses = {}));
|
349
349
|
|
350
|
-
const _c0 = a0 => ({ height: a0 });
|
351
|
-
const _c1 = a0 => ({ "p-tree-node-droppoint-active": a0 });
|
352
|
-
const _c2 = a0 => ({ $implicit: a0 });
|
353
|
-
const _c3 = (a0, a1) => ({ $implicit: a0, partialSelected: a1, class: "p-tree-node-checkbox" });
|
354
|
-
function UITreeNode_Conditional_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
355
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
356
|
-
i0.ɵɵelementStart(0, "li", 11);
|
357
|
-
i0.ɵɵlistener("drop", function UITreeNode_Conditional_0_li_0_Template_li_drop_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPoint($event, -1)); })("dragover", function UITreeNode_Conditional_0_li_0_Template_li_dragover_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPointDragOver($event)); })("dragenter", function UITreeNode_Conditional_0_li_0_Template_li_dragenter_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPointDragEnter($event, -1)); })("dragleave", function UITreeNode_Conditional_0_li_0_Template_li_dragleave_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPointDragLeave($event)); });
|
358
|
-
i0.ɵɵelementEnd();
|
359
|
-
} if (rf & 2) {
|
360
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
361
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c1, ctx_r2.draghoverPrev));
|
362
|
-
i0.ɵɵattribute("aria-hidden", true);
|
363
|
-
} }
|
364
|
-
function UITreeNode_Conditional_0_ng_container_4_ng_container_1_ChevronRightIcon_1_Template(rf, ctx) { if (rf & 1) {
|
365
|
-
i0.ɵɵelement(0, "ChevronRightIcon", 13);
|
366
|
-
} if (rf & 2) {
|
367
|
-
i0.ɵɵproperty("styleClass", "p-tree-node-toggle-icon");
|
368
|
-
} }
|
369
|
-
function UITreeNode_Conditional_0_ng_container_4_ng_container_1_ChevronDownIcon_2_Template(rf, ctx) { if (rf & 1) {
|
370
|
-
i0.ɵɵelement(0, "ChevronDownIcon", 13);
|
371
|
-
} if (rf & 2) {
|
372
|
-
i0.ɵɵproperty("styleClass", "p-tree-node-toggle-icon");
|
373
|
-
} }
|
374
|
-
function UITreeNode_Conditional_0_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
375
|
-
i0.ɵɵelementContainerStart(0);
|
376
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_ng_container_4_ng_container_1_ChevronRightIcon_1_Template, 1, 1, "ChevronRightIcon", 12)(2, UITreeNode_Conditional_0_ng_container_4_ng_container_1_ChevronDownIcon_2_Template, 1, 1, "ChevronDownIcon", 12);
|
377
|
-
i0.ɵɵelementContainerEnd();
|
378
|
-
} if (rf & 2) {
|
379
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
380
|
-
i0.ɵɵadvance();
|
381
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.node.expanded);
|
382
|
-
i0.ɵɵadvance();
|
383
|
-
i0.ɵɵproperty("ngIf", ctx_r2.node.expanded);
|
384
|
-
} }
|
385
|
-
function UITreeNode_Conditional_0_ng_container_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
386
|
-
i0.ɵɵelementContainerStart(0);
|
387
|
-
i0.ɵɵelement(1, "SpinnerIcon", 13);
|
388
|
-
i0.ɵɵelementContainerEnd();
|
389
|
-
} if (rf & 2) {
|
390
|
-
i0.ɵɵadvance();
|
391
|
-
i0.ɵɵproperty("styleClass", "pi-spin p-tree-node-toggle-icon");
|
392
|
-
} }
|
393
|
-
function UITreeNode_Conditional_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
394
|
-
i0.ɵɵelementContainerStart(0);
|
395
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_ng_container_4_ng_container_1_Template, 3, 2, "ng-container", 5)(2, UITreeNode_Conditional_0_ng_container_4_ng_container_2_Template, 2, 1, "ng-container", 5);
|
396
|
-
i0.ɵɵelementContainerEnd();
|
397
|
-
} if (rf & 2) {
|
398
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
399
|
-
i0.ɵɵadvance();
|
400
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.node.loading);
|
401
|
-
i0.ɵɵadvance();
|
402
|
-
i0.ɵɵproperty("ngIf", ctx_r2.loadingMode === "icon" && ctx_r2.node.loading);
|
403
|
-
} }
|
404
|
-
function UITreeNode_Conditional_0_span_5_1_ng_template_0_Template(rf, ctx) { }
|
405
|
-
function UITreeNode_Conditional_0_span_5_1_Template(rf, ctx) { if (rf & 1) {
|
406
|
-
i0.ɵɵtemplate(0, UITreeNode_Conditional_0_span_5_1_ng_template_0_Template, 0, 0, "ng-template");
|
407
|
-
} }
|
408
|
-
function UITreeNode_Conditional_0_span_5_Template(rf, ctx) { if (rf & 1) {
|
409
|
-
i0.ɵɵelementStart(0, "span", 14);
|
410
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_span_5_1_Template, 1, 0, null, 15);
|
411
|
-
i0.ɵɵelementEnd();
|
412
|
-
} if (rf & 2) {
|
413
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
414
|
-
i0.ɵɵadvance();
|
415
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.tree.togglerIconTemplate || ctx_r2.tree._togglerIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r2.node.expanded));
|
416
|
-
} }
|
417
|
-
function UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_ng_template_1_0_ng_template_0_Template(rf, ctx) { }
|
418
|
-
function UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_ng_template_1_0_Template(rf, ctx) { if (rf & 1) {
|
419
|
-
i0.ɵɵtemplate(0, UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_ng_template_1_0_ng_template_0_Template, 0, 0, "ng-template");
|
420
|
-
} }
|
421
|
-
function UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
422
|
-
i0.ɵɵtemplate(0, UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_ng_template_1_0_Template, 1, 0, null, 15);
|
423
|
-
} if (rf & 2) {
|
424
|
-
const ctx_r2 = i0.ɵɵnextContext(4);
|
425
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.tree.checkboxIconTemplate || ctx_r2.tree._checkboxIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c3, ctx_r2.isSelected(), ctx_r2.node.partialSelected));
|
426
|
-
} }
|
427
|
-
function UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
428
|
-
i0.ɵɵelementContainerStart(0);
|
429
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_ng_template_1_Template, 1, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
430
|
-
i0.ɵɵelementContainerEnd();
|
431
|
-
} }
|
432
|
-
function UITreeNode_Conditional_0_p_checkbox_6_Template(rf, ctx) { if (rf & 1) {
|
433
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
434
|
-
i0.ɵɵelementStart(0, "p-checkbox", 16);
|
435
|
-
i0.ɵɵlistener("click", function UITreeNode_Conditional_0_p_checkbox_6_Template_p_checkbox_click_0_listener($event) { i0.ɵɵrestoreView(_r4); return i0.ɵɵresetView($event.preventDefault()); });
|
436
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_p_checkbox_6_ng_container_1_Template, 3, 0, "ng-container", 5);
|
437
|
-
i0.ɵɵelementEnd();
|
438
|
-
} if (rf & 2) {
|
439
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
440
|
-
i0.ɵɵproperty("ngModel", ctx_r2.isSelected())("binary", true)("indeterminate", ctx_r2.node.partialSelected)("disabled", ctx_r2.node.selectable === false)("variant", (ctx_r2.tree == null ? null : ctx_r2.tree.config.inputStyle()) === "filled" || (ctx_r2.tree == null ? null : ctx_r2.tree.config.inputVariant()) === "filled" ? "filled" : "outlined")("tabindex", -1);
|
441
|
-
i0.ɵɵattribute("data-p-partialchecked", ctx_r2.node.partialSelected);
|
442
|
-
i0.ɵɵadvance();
|
443
|
-
i0.ɵɵproperty("ngIf", ctx_r2.tree.checkboxIconTemplate || ctx_r2.tree._checkboxIconTemplate);
|
444
|
-
} }
|
445
|
-
function UITreeNode_Conditional_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
446
|
-
i0.ɵɵelement(0, "span");
|
447
|
-
} if (rf & 2) {
|
448
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
449
|
-
i0.ɵɵclassMap(ctx_r2.getIcon());
|
450
|
-
} }
|
451
|
-
function UITreeNode_Conditional_0_span_9_Template(rf, ctx) { if (rf & 1) {
|
452
|
-
i0.ɵɵelementStart(0, "span");
|
453
|
-
i0.ɵɵtext(1);
|
454
|
-
i0.ɵɵelementEnd();
|
455
|
-
} if (rf & 2) {
|
456
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
457
|
-
i0.ɵɵadvance();
|
458
|
-
i0.ɵɵtextInterpolate(ctx_r2.node.label);
|
459
|
-
} }
|
460
|
-
function UITreeNode_Conditional_0_span_10_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
461
|
-
i0.ɵɵelementContainer(0);
|
462
|
-
} }
|
463
|
-
function UITreeNode_Conditional_0_span_10_Template(rf, ctx) { if (rf & 1) {
|
464
|
-
i0.ɵɵelementStart(0, "span");
|
465
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_span_10_ng_container_1_Template, 1, 0, "ng-container", 15);
|
466
|
-
i0.ɵɵelementEnd();
|
467
|
-
} if (rf & 2) {
|
468
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
469
|
-
i0.ɵɵadvance();
|
470
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.tree.getTemplateForNode(ctx_r2.node))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r2.node));
|
471
|
-
} }
|
472
|
-
function UITreeNode_Conditional_0_ul_11_p_treeNode_1_Template(rf, ctx) { if (rf & 1) {
|
473
|
-
i0.ɵɵelement(0, "p-treeNode", 19);
|
474
|
-
} if (rf & 2) {
|
475
|
-
const childNode_r5 = ctx.$implicit;
|
476
|
-
const firstChild_r6 = ctx.first;
|
477
|
-
const lastChild_r7 = ctx.last;
|
478
|
-
const index_r8 = ctx.index;
|
479
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
480
|
-
i0.ɵɵproperty("node", childNode_r5)("parentNode", ctx_r2.node)("firstChild", firstChild_r6)("lastChild", lastChild_r7)("index", index_r8)("itemSize", ctx_r2.itemSize)("level", ctx_r2.level + 1)("loadingMode", ctx_r2.loadingMode);
|
481
|
-
} }
|
482
|
-
function UITreeNode_Conditional_0_ul_11_Template(rf, ctx) { if (rf & 1) {
|
483
|
-
i0.ɵɵelementStart(0, "ul", 17);
|
484
|
-
i0.ɵɵtemplate(1, UITreeNode_Conditional_0_ul_11_p_treeNode_1_Template, 1, 8, "p-treeNode", 18);
|
485
|
-
i0.ɵɵelementEnd();
|
486
|
-
} if (rf & 2) {
|
487
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
488
|
-
i0.ɵɵstyleProp("display", ctx_r2.node.expanded ? "block" : "none");
|
489
|
-
i0.ɵɵadvance();
|
490
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.node.children)("ngForTrackBy", ctx_r2.tree.trackBy.bind(ctx_r2));
|
491
|
-
} }
|
492
|
-
function UITreeNode_Conditional_0_li_12_Template(rf, ctx) { if (rf & 1) {
|
493
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
494
|
-
i0.ɵɵelementStart(0, "li", 11);
|
495
|
-
i0.ɵɵlistener("drop", function UITreeNode_Conditional_0_li_12_Template_li_drop_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPoint($event, 1)); })("dragover", function UITreeNode_Conditional_0_li_12_Template_li_dragover_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPointDragOver($event)); })("dragenter", function UITreeNode_Conditional_0_li_12_Template_li_dragenter_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPointDragEnter($event, 1)); })("dragleave", function UITreeNode_Conditional_0_li_12_Template_li_dragleave_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onDropPointDragLeave($event)); });
|
496
|
-
i0.ɵɵelementEnd();
|
497
|
-
} if (rf & 2) {
|
498
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
499
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c1, ctx_r2.draghoverNext));
|
500
|
-
i0.ɵɵattribute("aria-hidden", true);
|
501
|
-
} }
|
502
|
-
function UITreeNode_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
503
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
504
|
-
i0.ɵɵtemplate(0, UITreeNode_Conditional_0_li_0_Template, 1, 4, "li", 1);
|
505
|
-
i0.ɵɵelementStart(1, "li", 2);
|
506
|
-
i0.ɵɵlistener("keydown", function UITreeNode_Conditional_0_Template_li_keydown_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onKeyDown($event)); });
|
507
|
-
i0.ɵɵelementStart(2, "div", 3);
|
508
|
-
i0.ɵɵlistener("click", function UITreeNode_Conditional_0_Template_div_click_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onNodeClick($event)); })("contextmenu", function UITreeNode_Conditional_0_Template_div_contextmenu_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onNodeRightClick($event)); })("dblclick", function UITreeNode_Conditional_0_Template_div_dblclick_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onNodeDblClick($event)); })("touchend", function UITreeNode_Conditional_0_Template_div_touchend_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onNodeTouchEnd()); })("drop", function UITreeNode_Conditional_0_Template_div_drop_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDropNode($event)); })("dragover", function UITreeNode_Conditional_0_Template_div_dragover_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDropNodeDragOver($event)); })("dragenter", function UITreeNode_Conditional_0_Template_div_dragenter_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDropNodeDragEnter($event)); })("dragleave", function UITreeNode_Conditional_0_Template_div_dragleave_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDropNodeDragLeave($event)); })("dragstart", function UITreeNode_Conditional_0_Template_div_dragstart_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDragStart($event)); })("dragend", function UITreeNode_Conditional_0_Template_div_dragend_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDragStop($event)); });
|
509
|
-
i0.ɵɵelementStart(3, "button", 4);
|
510
|
-
i0.ɵɵlistener("click", function UITreeNode_Conditional_0_Template_button_click_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggle($event)); });
|
511
|
-
i0.ɵɵtemplate(4, UITreeNode_Conditional_0_ng_container_4_Template, 3, 2, "ng-container", 5)(5, UITreeNode_Conditional_0_span_5_Template, 2, 4, "span", 6);
|
512
|
-
i0.ɵɵelementEnd();
|
513
|
-
i0.ɵɵtemplate(6, UITreeNode_Conditional_0_p_checkbox_6_Template, 2, 8, "p-checkbox", 7)(7, UITreeNode_Conditional_0_span_7_Template, 1, 2, "span", 8);
|
514
|
-
i0.ɵɵelementStart(8, "span", 9);
|
515
|
-
i0.ɵɵtemplate(9, UITreeNode_Conditional_0_span_9_Template, 2, 1, "span", 5)(10, UITreeNode_Conditional_0_span_10_Template, 2, 4, "span", 5);
|
516
|
-
i0.ɵɵelementEnd()();
|
517
|
-
i0.ɵɵtemplate(11, UITreeNode_Conditional_0_ul_11_Template, 2, 4, "ul", 10);
|
518
|
-
i0.ɵɵelementEnd();
|
519
|
-
i0.ɵɵtemplate(12, UITreeNode_Conditional_0_li_12_Template, 1, 4, "li", 1);
|
520
|
-
} if (rf & 2) {
|
521
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
522
|
-
i0.ɵɵproperty("ngIf", ctx_r2.tree.droppableNodes);
|
523
|
-
i0.ɵɵadvance();
|
524
|
-
i0.ɵɵstyleMap(ctx_r2.node.style);
|
525
|
-
i0.ɵɵproperty("ngClass", ctx_r2.nodeClass)("ngStyle", i0.ɵɵpureFunction1(27, _c0, ctx_r2.itemSize + "px"));
|
526
|
-
i0.ɵɵattribute("aria-label", ctx_r2.node.label)("aria-checked", ctx_r2.checked)("aria-setsize", ctx_r2.node.children ? ctx_r2.node.children.length : 0)("aria-selected", ctx_r2.selected)("aria-expanded", ctx_r2.node.expanded)("aria-posinset", ctx_r2.index + 1)("aria-level", ctx_r2.level + 1)("tabindex", ctx_r2.index === 0 ? 0 : -1)("data-id", ctx_r2.node.key);
|
527
|
-
i0.ɵɵadvance();
|
528
|
-
i0.ɵɵstyleProp("padding-left", ctx_r2.level * ctx_r2.indentation + "rem");
|
529
|
-
i0.ɵɵproperty("ngClass", ctx_r2.nodeContentClass)("draggable", ctx_r2.tree.draggableNodes);
|
530
|
-
i0.ɵɵadvance();
|
531
|
-
i0.ɵɵattribute("data-pc-section", "toggler");
|
532
|
-
i0.ɵɵadvance();
|
533
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.tree.togglerIconTemplate && !ctx_r2.tree._togglerIconTemplate);
|
534
|
-
i0.ɵɵadvance();
|
535
|
-
i0.ɵɵproperty("ngIf", ctx_r2.tree.togglerIconTemplate || ctx_r2.tree._togglerIconTemplate);
|
536
|
-
i0.ɵɵadvance();
|
537
|
-
i0.ɵɵproperty("ngIf", ctx_r2.tree.selectionMode == "checkbox");
|
538
|
-
i0.ɵɵadvance();
|
539
|
-
i0.ɵɵproperty("ngIf", ctx_r2.node.icon || ctx_r2.node.expandedIcon || ctx_r2.node.collapsedIcon);
|
540
|
-
i0.ɵɵadvance(2);
|
541
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.tree.getTemplateForNode(ctx_r2.node));
|
542
|
-
i0.ɵɵadvance();
|
543
|
-
i0.ɵɵproperty("ngIf", ctx_r2.tree.getTemplateForNode(ctx_r2.node));
|
544
|
-
i0.ɵɵadvance();
|
545
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.tree.virtualScroll && ctx_r2.node.children && ctx_r2.node.expanded);
|
546
|
-
i0.ɵɵadvance();
|
547
|
-
i0.ɵɵproperty("ngIf", ctx_r2.tree.droppableNodes && ctx_r2.lastChild);
|
548
|
-
} }
|
549
|
-
const _c4 = ["filter"];
|
550
|
-
const _c5 = ["node"];
|
551
|
-
const _c6 = ["header"];
|
552
|
-
const _c7 = ["footer"];
|
553
|
-
const _c8 = ["loader"];
|
554
|
-
const _c9 = ["empty"];
|
555
|
-
const _c10 = ["togglericon"];
|
556
|
-
const _c11 = ["checkboxicon"];
|
557
|
-
const _c12 = ["loadingicon"];
|
558
|
-
const _c13 = ["filtericon"];
|
559
|
-
const _c14 = ["scroller"];
|
560
|
-
const _c15 = ["wrapper"];
|
561
|
-
const _c16 = a0 => ({ options: a0 });
|
562
|
-
function Tree_div_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
563
|
-
i0.ɵɵelement(0, "i");
|
564
|
-
} if (rf & 2) {
|
565
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
566
|
-
i0.ɵɵclassMap("p-tree-loading-icon pi-spin " + ctx_r0.loadingIcon);
|
567
|
-
} }
|
568
|
-
function Tree_div_1_ng_container_2_SpinnerIcon_1_Template(rf, ctx) { if (rf & 1) {
|
569
|
-
i0.ɵɵelement(0, "SpinnerIcon", 16);
|
570
|
-
} if (rf & 2) {
|
571
|
-
i0.ɵɵproperty("spin", true)("styleClass", "p-tree-loading-icon");
|
572
|
-
} }
|
573
|
-
function Tree_div_1_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { }
|
574
|
-
function Tree_div_1_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
575
|
-
i0.ɵɵtemplate(0, Tree_div_1_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
576
|
-
} }
|
577
|
-
function Tree_div_1_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
578
|
-
i0.ɵɵelementStart(0, "span", 17);
|
579
|
-
i0.ɵɵtemplate(1, Tree_div_1_ng_container_2_span_2_1_Template, 1, 0, null, 9);
|
580
|
-
i0.ɵɵelementEnd();
|
581
|
-
} if (rf & 2) {
|
582
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
583
|
-
i0.ɵɵadvance();
|
584
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.loadingIconTemplate || ctx_r0._loadingIconTemplate);
|
585
|
-
} }
|
586
|
-
function Tree_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
587
|
-
i0.ɵɵelementContainerStart(0);
|
588
|
-
i0.ɵɵtemplate(1, Tree_div_1_ng_container_2_SpinnerIcon_1_Template, 1, 2, "SpinnerIcon", 14)(2, Tree_div_1_ng_container_2_span_2_Template, 2, 1, "span", 15);
|
589
|
-
i0.ɵɵelementContainerEnd();
|
590
|
-
} if (rf & 2) {
|
591
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
592
|
-
i0.ɵɵadvance();
|
593
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.loadingIconTemplate && !ctx_r0._loadingIconTemplate);
|
594
|
-
i0.ɵɵadvance();
|
595
|
-
i0.ɵɵproperty("ngIf", ctx_r0.loadingIconTemplate || ctx_r0._loadingIconTemplate);
|
596
|
-
} }
|
597
|
-
function Tree_div_1_Template(rf, ctx) { if (rf & 1) {
|
598
|
-
i0.ɵɵelementStart(0, "div", 12);
|
599
|
-
i0.ɵɵtemplate(1, Tree_div_1_i_1_Template, 1, 2, "i", 13)(2, Tree_div_1_ng_container_2_Template, 3, 2, "ng-container", 10);
|
600
|
-
i0.ɵɵelementEnd();
|
601
|
-
} if (rf & 2) {
|
602
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
603
|
-
i0.ɵɵadvance();
|
604
|
-
i0.ɵɵproperty("ngIf", ctx_r0.loadingIcon);
|
605
|
-
i0.ɵɵadvance();
|
606
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.loadingIcon);
|
607
|
-
} }
|
608
|
-
function Tree_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
609
|
-
i0.ɵɵelementContainer(0);
|
610
|
-
} }
|
611
|
-
function Tree_Conditional_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
612
|
-
i0.ɵɵelementContainer(0);
|
613
|
-
} }
|
614
|
-
function Tree_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
615
|
-
i0.ɵɵtemplate(0, Tree_Conditional_3_ng_container_0_Template, 1, 0, "ng-container", 18);
|
616
|
-
} if (rf & 2) {
|
617
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
618
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.filterTemplate || ctx_r0._filterTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r0.filterOptions));
|
619
|
-
} }
|
620
|
-
function Tree_Conditional_4_p_iconField_0_SearchIcon_4_Template(rf, ctx) { if (rf & 1) {
|
621
|
-
i0.ɵɵelement(0, "SearchIcon", 21);
|
622
|
-
} }
|
623
|
-
function Tree_Conditional_4_p_iconField_0_span_5_1_ng_template_0_Template(rf, ctx) { }
|
624
|
-
function Tree_Conditional_4_p_iconField_0_span_5_1_Template(rf, ctx) { if (rf & 1) {
|
625
|
-
i0.ɵɵtemplate(0, Tree_Conditional_4_p_iconField_0_span_5_1_ng_template_0_Template, 0, 0, "ng-template");
|
626
|
-
} }
|
627
|
-
function Tree_Conditional_4_p_iconField_0_span_5_Template(rf, ctx) { if (rf & 1) {
|
628
|
-
i0.ɵɵelementStart(0, "span");
|
629
|
-
i0.ɵɵtemplate(1, Tree_Conditional_4_p_iconField_0_span_5_1_Template, 1, 0, null, 9);
|
630
|
-
i0.ɵɵelementEnd();
|
631
|
-
} if (rf & 2) {
|
632
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
633
|
-
i0.ɵɵadvance();
|
634
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.filterIconTemplate || ctx_r0._filterIconTemplate);
|
635
|
-
} }
|
636
|
-
function Tree_Conditional_4_p_iconField_0_Template(rf, ctx) { if (rf & 1) {
|
637
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
638
|
-
i0.ɵɵelementStart(0, "p-iconField")(1, "input", 19, 0);
|
639
|
-
i0.ɵɵlistener("keydown.enter", function Tree_Conditional_4_p_iconField_0_Template_input_keydown_enter_1_listener($event) { i0.ɵɵrestoreView(_r2); return i0.ɵɵresetView($event.preventDefault()); })("input", function Tree_Conditional_4_p_iconField_0_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0._filter($event.target.value)); });
|
640
|
-
i0.ɵɵelementEnd();
|
641
|
-
i0.ɵɵelementStart(3, "p-inputIcon");
|
642
|
-
i0.ɵɵtemplate(4, Tree_Conditional_4_p_iconField_0_SearchIcon_4_Template, 1, 0, "SearchIcon", 20)(5, Tree_Conditional_4_p_iconField_0_span_5_Template, 2, 1, "span", 10);
|
643
|
-
i0.ɵɵelementEnd()();
|
644
|
-
} if (rf & 2) {
|
645
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
646
|
-
i0.ɵɵadvance();
|
647
|
-
i0.ɵɵattribute("placeholder", ctx_r0.filterPlaceholder);
|
648
|
-
i0.ɵɵadvance(3);
|
649
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.filterIconTemplate && !ctx_r0._filterIconTemplate);
|
650
|
-
i0.ɵɵadvance();
|
651
|
-
i0.ɵɵproperty("ngIf", ctx_r0.filterIconTemplate || ctx_r0._filterIconTemplate);
|
652
|
-
} }
|
653
|
-
function Tree_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
654
|
-
i0.ɵɵtemplate(0, Tree_Conditional_4_p_iconField_0_Template, 6, 3, "p-iconField", 10);
|
655
|
-
} if (rf & 2) {
|
656
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
657
|
-
i0.ɵɵproperty("ngIf", ctx_r0.filter);
|
658
|
-
} }
|
659
|
-
function Tree_ng_container_5_p_scroller_1_ng_template_2_ul_0_p_treeNode_1_Template(rf, ctx) { if (rf & 1) {
|
660
|
-
i0.ɵɵelement(0, "p-treeNode", 27, 3);
|
661
|
-
} if (rf & 2) {
|
662
|
-
const rowNode_r4 = ctx.$implicit;
|
663
|
-
const firstChild_r5 = ctx.first;
|
664
|
-
const lastChild_r6 = ctx.last;
|
665
|
-
const index_r7 = ctx.index;
|
666
|
-
const scrollerOptions_r8 = i0.ɵɵnextContext(2).options;
|
667
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
668
|
-
i0.ɵɵproperty("level", rowNode_r4.level)("rowNode", rowNode_r4)("node", rowNode_r4.node)("parentNode", rowNode_r4.parent)("firstChild", firstChild_r5)("lastChild", lastChild_r6)("index", ctx_r0.getIndex(scrollerOptions_r8, index_r7))("itemSize", scrollerOptions_r8.itemSize)("indentation", ctx_r0.indentation)("loadingMode", ctx_r0.loadingMode);
|
669
|
-
} }
|
670
|
-
function Tree_ng_container_5_p_scroller_1_ng_template_2_ul_0_Template(rf, ctx) { if (rf & 1) {
|
671
|
-
i0.ɵɵelementStart(0, "ul", 25);
|
672
|
-
i0.ɵɵtemplate(1, Tree_ng_container_5_p_scroller_1_ng_template_2_ul_0_p_treeNode_1_Template, 2, 10, "p-treeNode", 26);
|
673
|
-
i0.ɵɵelementEnd();
|
674
|
-
} if (rf & 2) {
|
675
|
-
const ctx_r8 = i0.ɵɵnextContext();
|
676
|
-
const items_r10 = ctx_r8.$implicit;
|
677
|
-
const scrollerOptions_r8 = ctx_r8.options;
|
678
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
679
|
-
i0.ɵɵstyleMap(scrollerOptions_r8.contentStyle);
|
680
|
-
i0.ɵɵproperty("ngClass", scrollerOptions_r8.contentStyleClass);
|
681
|
-
i0.ɵɵattribute("aria-label", ctx_r0.ariaLabel)("aria-labelledby", ctx_r0.ariaLabelledBy);
|
682
|
-
i0.ɵɵadvance();
|
683
|
-
i0.ɵɵproperty("ngForOf", items_r10)("ngForTrackBy", ctx_r0.trackBy);
|
684
|
-
} }
|
685
|
-
function Tree_ng_container_5_p_scroller_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
686
|
-
i0.ɵɵtemplate(0, Tree_ng_container_5_p_scroller_1_ng_template_2_ul_0_Template, 2, 7, "ul", 24);
|
687
|
-
} if (rf & 2) {
|
688
|
-
const items_r10 = ctx.$implicit;
|
689
|
-
i0.ɵɵproperty("ngIf", items_r10);
|
690
|
-
} }
|
691
|
-
function Tree_ng_container_5_p_scroller_1_ng_container_4_ng_template_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
692
|
-
i0.ɵɵelementContainer(0);
|
693
|
-
} }
|
694
|
-
function Tree_ng_container_5_p_scroller_1_ng_container_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
695
|
-
i0.ɵɵtemplate(0, Tree_ng_container_5_p_scroller_1_ng_container_4_ng_template_1_ng_container_0_Template, 1, 0, "ng-container", 18);
|
696
|
-
} if (rf & 2) {
|
697
|
-
const scrollerOptions_r11 = ctx.options;
|
698
|
-
const ctx_r0 = i0.ɵɵnextContext(4);
|
699
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.loaderTemplate || ctx_r0._loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c16, scrollerOptions_r11));
|
700
|
-
} }
|
701
|
-
function Tree_ng_container_5_p_scroller_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
702
|
-
i0.ɵɵelementContainerStart(0);
|
703
|
-
i0.ɵɵtemplate(1, Tree_ng_container_5_p_scroller_1_ng_container_4_ng_template_1_Template, 1, 4, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
704
|
-
i0.ɵɵelementContainerEnd();
|
705
|
-
} }
|
706
|
-
function Tree_ng_container_5_p_scroller_1_Template(rf, ctx) { if (rf & 1) {
|
707
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
708
|
-
i0.ɵɵelementStart(0, "p-scroller", 23, 1);
|
709
|
-
i0.ɵɵlistener("onScroll", function Tree_ng_container_5_p_scroller_1_Template_p_scroller_onScroll_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onScroll.emit($event)); })("onScrollIndexChange", function Tree_ng_container_5_p_scroller_1_Template_p_scroller_onScrollIndexChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onScrollIndexChange.emit($event)); })("onLazyLoad", function Tree_ng_container_5_p_scroller_1_Template_p_scroller_onLazyLoad_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onLazyLoad.emit($event)); });
|
710
|
-
i0.ɵɵtemplate(2, Tree_ng_container_5_p_scroller_1_ng_template_2_Template, 1, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(4, Tree_ng_container_5_p_scroller_1_ng_container_4_Template, 3, 0, "ng-container", 10);
|
711
|
-
i0.ɵɵelementEnd();
|
712
|
-
} if (rf & 2) {
|
713
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
714
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(9, _c0, ctx_r0.scrollHeight !== "flex" ? ctx_r0.scrollHeight : undefined));
|
715
|
-
i0.ɵɵproperty("items", ctx_r0.serializedValue)("tabindex", -1)("scrollHeight", ctx_r0.scrollHeight !== "flex" ? undefined : "100%")("itemSize", ctx_r0.virtualScrollItemSize || ctx_r0._virtualNodeHeight)("lazy", ctx_r0.lazy)("options", ctx_r0.virtualScrollOptions);
|
716
|
-
i0.ɵɵadvance(4);
|
717
|
-
i0.ɵɵproperty("ngIf", ctx_r0.loaderTemplate || ctx_r0._loaderTemplate);
|
718
|
-
} }
|
719
|
-
function Tree_ng_container_5_ng_container_2_ul_3_p_treeNode_1_Template(rf, ctx) { if (rf & 1) {
|
720
|
-
i0.ɵɵelement(0, "p-treeNode", 32);
|
721
|
-
} if (rf & 2) {
|
722
|
-
const node_r12 = ctx.$implicit;
|
723
|
-
const firstChild_r13 = ctx.first;
|
724
|
-
const lastChild_r14 = ctx.last;
|
725
|
-
const index_r15 = ctx.index;
|
726
|
-
const ctx_r0 = i0.ɵɵnextContext(4);
|
727
|
-
i0.ɵɵproperty("node", node_r12)("firstChild", firstChild_r13)("lastChild", lastChild_r14)("index", index_r15)("level", 0)("loadingMode", ctx_r0.loadingMode);
|
728
|
-
} }
|
729
|
-
function Tree_ng_container_5_ng_container_2_ul_3_Template(rf, ctx) { if (rf & 1) {
|
730
|
-
i0.ɵɵelementStart(0, "ul", 30);
|
731
|
-
i0.ɵɵtemplate(1, Tree_ng_container_5_ng_container_2_ul_3_p_treeNode_1_Template, 1, 6, "p-treeNode", 31);
|
732
|
-
i0.ɵɵelementEnd();
|
733
|
-
} if (rf & 2) {
|
734
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
735
|
-
i0.ɵɵattribute("aria-label", ctx_r0.ariaLabel)("aria-labelledby", ctx_r0.ariaLabelledBy);
|
736
|
-
i0.ɵɵadvance();
|
737
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.getRootNode())("ngForTrackBy", ctx_r0.trackBy.bind(ctx_r0));
|
738
|
-
} }
|
739
|
-
function Tree_ng_container_5_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
740
|
-
i0.ɵɵelementContainerStart(0);
|
741
|
-
i0.ɵɵelementStart(1, "div", 28, 5);
|
742
|
-
i0.ɵɵtemplate(3, Tree_ng_container_5_ng_container_2_ul_3_Template, 2, 4, "ul", 29);
|
743
|
-
i0.ɵɵelementEnd();
|
744
|
-
i0.ɵɵelementContainerEnd();
|
745
|
-
} if (rf & 2) {
|
746
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
747
|
-
i0.ɵɵadvance();
|
748
|
-
i0.ɵɵstyleProp("max-height", ctx_r0.scrollHeight);
|
749
|
-
i0.ɵɵadvance(2);
|
750
|
-
i0.ɵɵproperty("ngIf", ctx_r0.getRootNode());
|
751
|
-
} }
|
752
|
-
function Tree_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
753
|
-
i0.ɵɵelementContainerStart(0);
|
754
|
-
i0.ɵɵtemplate(1, Tree_ng_container_5_p_scroller_1_Template, 5, 11, "p-scroller", 22)(2, Tree_ng_container_5_ng_container_2_Template, 4, 3, "ng-container", 10);
|
755
|
-
i0.ɵɵelementContainerEnd();
|
756
|
-
} if (rf & 2) {
|
757
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
758
|
-
i0.ɵɵadvance();
|
759
|
-
i0.ɵɵproperty("ngIf", ctx_r0.virtualScroll);
|
760
|
-
i0.ɵɵadvance();
|
761
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.virtualScroll);
|
762
|
-
} }
|
763
|
-
function Tree_div_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
764
|
-
i0.ɵɵelementContainerStart(0);
|
765
|
-
i0.ɵɵtext(1);
|
766
|
-
i0.ɵɵelementContainerEnd();
|
767
|
-
} if (rf & 2) {
|
768
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
769
|
-
i0.ɵɵadvance();
|
770
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.emptyMessageLabel, " ");
|
771
|
-
} }
|
772
|
-
function Tree_div_6_2_ng_template_0_Template(rf, ctx) { }
|
773
|
-
function Tree_div_6_2_Template(rf, ctx) { if (rf & 1) {
|
774
|
-
i0.ɵɵtemplate(0, Tree_div_6_2_ng_template_0_Template, 0, 0, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
775
|
-
} }
|
776
|
-
function Tree_div_6_Template(rf, ctx) { if (rf & 1) {
|
777
|
-
i0.ɵɵelementStart(0, "div", 33);
|
778
|
-
i0.ɵɵtemplate(1, Tree_div_6_ng_container_1_Template, 2, 1, "ng-container", 34)(2, Tree_div_6_2_Template, 2, 0, null, 9);
|
779
|
-
i0.ɵɵelementEnd();
|
780
|
-
} if (rf & 2) {
|
781
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
782
|
-
i0.ɵɵadvance();
|
783
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.emptyMessageTemplate && !ctx_r0._emptyMessageTemplate)("ngIfElse", ctx_r0.emptyFilter);
|
784
|
-
i0.ɵɵadvance();
|
785
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.emptyMessageTemplate || ctx_r0._emptyMessageTemplate);
|
786
|
-
} }
|
787
|
-
function Tree_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
788
|
-
i0.ɵɵelementContainer(0);
|
789
|
-
} }
|
790
350
|
class UITreeNode extends BaseComponent {
|
791
351
|
static ICON_CLASS = 'p-tree-node-icon ';
|
792
352
|
rowNode;
|
@@ -1223,20 +783,137 @@ class UITreeNode extends BaseComponent {
|
|
1223
783
|
focus(node);
|
1224
784
|
}, 1);
|
1225
785
|
}
|
1226
|
-
static ɵfac =
|
1227
|
-
static ɵcmp =
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: UITreeNode, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
787
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: UITreeNode, isStandalone: true, selector: "p-treeNode", inputs: { rowNode: "rowNode", node: "node", parentNode: "parentNode", root: ["root", "root", booleanAttribute], index: ["index", "index", numberAttribute], firstChild: ["firstChild", "firstChild", booleanAttribute], lastChild: ["lastChild", "lastChild", booleanAttribute], level: ["level", "level", numberAttribute], indentation: ["indentation", "indentation", numberAttribute], itemSize: ["itemSize", "itemSize", numberAttribute], loadingMode: "loadingMode" }, usesInheritance: true, ngImport: i0, template: `
|
788
|
+
@if (node) {
|
789
|
+
<li
|
790
|
+
*ngIf="tree.droppableNodes"
|
791
|
+
class="p-tree-node-droppoint"
|
792
|
+
[attr.aria-hidden]="true"
|
793
|
+
[ngClass]="{ 'p-tree-node-droppoint-active': draghoverPrev }"
|
794
|
+
(drop)="onDropPoint($event, -1)"
|
795
|
+
(dragover)="onDropPointDragOver($event)"
|
796
|
+
(dragenter)="onDropPointDragEnter($event, -1)"
|
797
|
+
(dragleave)="onDropPointDragLeave($event)"
|
798
|
+
></li>
|
799
|
+
<li
|
800
|
+
[ngClass]="nodeClass"
|
801
|
+
[class]="node.styleClass"
|
802
|
+
[ngStyle]="{ height: itemSize + 'px' }"
|
803
|
+
[style]="node.style"
|
804
|
+
[attr.aria-label]="node.label"
|
805
|
+
[attr.aria-checked]="checked"
|
806
|
+
[attr.aria-setsize]="node.children ? node.children.length : 0"
|
807
|
+
[attr.aria-selected]="selected"
|
808
|
+
[attr.aria-expanded]="node.expanded"
|
809
|
+
[attr.aria-posinset]="index + 1"
|
810
|
+
[attr.aria-level]="level + 1"
|
811
|
+
[attr.tabindex]="index === 0 ? 0 : -1"
|
812
|
+
[attr.data-id]="node.key"
|
813
|
+
role="treeitem"
|
814
|
+
(keydown)="onKeyDown($event)"
|
815
|
+
>
|
816
|
+
<div
|
817
|
+
[ngClass]="nodeContentClass"
|
818
|
+
[style.paddingLeft]="level * indentation + 'rem'"
|
819
|
+
(click)="onNodeClick($event)"
|
820
|
+
(contextmenu)="onNodeRightClick($event)"
|
821
|
+
(dblclick)="onNodeDblClick($event)"
|
822
|
+
(touchend)="onNodeTouchEnd()"
|
823
|
+
(drop)="onDropNode($event)"
|
824
|
+
(dragover)="onDropNodeDragOver($event)"
|
825
|
+
(dragenter)="onDropNodeDragEnter($event)"
|
826
|
+
(dragleave)="onDropNodeDragLeave($event)"
|
827
|
+
[draggable]="tree.draggableNodes"
|
828
|
+
(dragstart)="onDragStart($event)"
|
829
|
+
(dragend)="onDragStop($event)"
|
830
|
+
>
|
831
|
+
<button type="button" [attr.data-pc-section]="'toggler'" class="p-tree-node-toggle-button" (click)="toggle($event)" pRipple tabindex="-1">
|
832
|
+
<ng-container *ngIf="!tree.togglerIconTemplate && !tree._togglerIconTemplate">
|
833
|
+
<ng-container *ngIf="!node.loading">
|
834
|
+
<ChevronRightIcon *ngIf="!node.expanded" [styleClass]="'p-tree-node-toggle-icon'" />
|
835
|
+
<ChevronDownIcon *ngIf="node.expanded" [styleClass]="'p-tree-node-toggle-icon'" />
|
836
|
+
</ng-container>
|
837
|
+
<ng-container *ngIf="loadingMode === 'icon' && node.loading">
|
838
|
+
<SpinnerIcon [styleClass]="'pi-spin p-tree-node-toggle-icon'" />
|
839
|
+
</ng-container>
|
840
|
+
</ng-container>
|
841
|
+
<span *ngIf="tree.togglerIconTemplate || tree._togglerIconTemplate" class="p-tree-node-toggle-icon">
|
842
|
+
<ng-template *ngTemplateOutlet="tree.togglerIconTemplate || tree._togglerIconTemplate; context: { $implicit: node.expanded }"></ng-template>
|
843
|
+
</span>
|
844
|
+
</button>
|
845
|
+
|
846
|
+
<p-checkbox
|
847
|
+
[ngModel]="isSelected()"
|
848
|
+
styleClass="p-tree-node-checkbox"
|
849
|
+
[binary]="true"
|
850
|
+
[indeterminate]="node.partialSelected"
|
851
|
+
*ngIf="tree.selectionMode == 'checkbox'"
|
852
|
+
[disabled]="node.selectable === false"
|
853
|
+
[variant]="tree?.config.inputStyle() === 'filled' || tree?.config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
854
|
+
[attr.data-p-partialchecked]="node.partialSelected"
|
855
|
+
[tabindex]="-1"
|
856
|
+
(click)="$event.preventDefault()"
|
857
|
+
>
|
858
|
+
<ng-container *ngIf="tree.checkboxIconTemplate || tree._checkboxIconTemplate">
|
859
|
+
<ng-template #icon>
|
860
|
+
<ng-template
|
861
|
+
*ngTemplateOutlet="
|
862
|
+
tree.checkboxIconTemplate || tree._checkboxIconTemplate;
|
863
|
+
context: {
|
864
|
+
$implicit: isSelected(),
|
865
|
+
partialSelected: node.partialSelected,
|
866
|
+
class: 'p-tree-node-checkbox'
|
867
|
+
}
|
868
|
+
"
|
869
|
+
></ng-template>
|
870
|
+
</ng-template>
|
871
|
+
</ng-container>
|
872
|
+
</p-checkbox>
|
873
|
+
|
874
|
+
<span [class]="getIcon()" *ngIf="node.icon || node.expandedIcon || node.collapsedIcon"></span>
|
875
|
+
<span class="p-tree-node-label">
|
876
|
+
<span *ngIf="!tree.getTemplateForNode(node)">{{ node.label }}</span>
|
877
|
+
<span *ngIf="tree.getTemplateForNode(node)">
|
878
|
+
<ng-container *ngTemplateOutlet="tree.getTemplateForNode(node); context: { $implicit: node }"></ng-container>
|
879
|
+
</span>
|
880
|
+
</span>
|
881
|
+
</div>
|
882
|
+
<ul class="p-tree-node-children" style="display: none;" *ngIf="!tree.virtualScroll && node.children && node.expanded" [style.display]="node.expanded ? 'block' : 'none'" role="group">
|
883
|
+
<p-treeNode
|
884
|
+
*ngFor="let childNode of node.children; let firstChild = first; let lastChild = last; let index = index; trackBy: tree.trackBy.bind(this)"
|
885
|
+
[node]="childNode"
|
886
|
+
[parentNode]="node"
|
887
|
+
[firstChild]="firstChild"
|
888
|
+
[lastChild]="lastChild"
|
889
|
+
[index]="index"
|
890
|
+
[itemSize]="itemSize"
|
891
|
+
[level]="level + 1"
|
892
|
+
[loadingMode]="loadingMode"
|
893
|
+
></p-treeNode>
|
894
|
+
</ul>
|
895
|
+
</li>
|
896
|
+
|
897
|
+
<li
|
898
|
+
*ngIf="tree.droppableNodes && lastChild"
|
899
|
+
class="p-tree-node-droppoint"
|
900
|
+
[ngClass]="{ 'p-tree-node-droppoint-active': draghoverNext }"
|
901
|
+
(drop)="onDropPoint($event, 1)"
|
902
|
+
[attr.aria-hidden]="true"
|
903
|
+
(dragover)="onDropPointDragOver($event)"
|
904
|
+
(dragenter)="onDropPointDragEnter($event, 1)"
|
905
|
+
(dragleave)="onDropPointDragLeave($event)"
|
906
|
+
></li>
|
907
|
+
}
|
908
|
+
`, isInline: true, dependencies: [{ kind: "component", type: UITreeNode, selector: "p-treeNode", inputs: ["rowNode", "node", "parentNode", "root", "index", "firstChild", "lastChild", "level", "indentation", "itemSize", "loadingMode"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "name", "disabled", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "inputStyle", "styleClass", "inputClass", "indeterminate", "size", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ChevronRightIcon, selector: "ChevronRightIcon" }, { kind: "component", type: ChevronDownIcon, selector: "ChevronDownIcon" }, { kind: "component", type: SpinnerIcon, selector: "SpinnerIcon" }, { kind: "ngmodule", type: SharedModule }], encapsulation: i0.ViewEncapsulation.None });
|
1232
909
|
}
|
1233
|
-
(
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: UITreeNode, decorators: [{
|
911
|
+
type: Component,
|
912
|
+
args: [{
|
913
|
+
selector: 'p-treeNode',
|
914
|
+
standalone: true,
|
915
|
+
imports: [CommonModule, Ripple, Checkbox, FormsModule, ChevronRightIcon, ChevronDownIcon, SpinnerIcon, SharedModule],
|
916
|
+
template: `
|
1240
917
|
@if (node) {
|
1241
918
|
<li
|
1242
919
|
*ngIf="tree.droppableNodes"
|
@@ -1250,6 +927,7 @@ class UITreeNode extends BaseComponent {
|
|
1250
927
|
></li>
|
1251
928
|
<li
|
1252
929
|
[ngClass]="nodeClass"
|
930
|
+
[class]="node.styleClass"
|
1253
931
|
[ngStyle]="{ height: itemSize + 'px' }"
|
1254
932
|
[style]="node.style"
|
1255
933
|
[attr.aria-label]="node.label"
|
@@ -1357,39 +1035,38 @@ class UITreeNode extends BaseComponent {
|
|
1357
1035
|
></li>
|
1358
1036
|
}
|
1359
1037
|
`,
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UITreeNode, { className: "UITreeNode", filePath: "tree.ts", lineNumber: 182 }); })();
|
1038
|
+
encapsulation: ViewEncapsulation.None
|
1039
|
+
}]
|
1040
|
+
}], propDecorators: { rowNode: [{
|
1041
|
+
type: Input
|
1042
|
+
}], node: [{
|
1043
|
+
type: Input
|
1044
|
+
}], parentNode: [{
|
1045
|
+
type: Input
|
1046
|
+
}], root: [{
|
1047
|
+
type: Input,
|
1048
|
+
args: [{ transform: booleanAttribute }]
|
1049
|
+
}], index: [{
|
1050
|
+
type: Input,
|
1051
|
+
args: [{ transform: numberAttribute }]
|
1052
|
+
}], firstChild: [{
|
1053
|
+
type: Input,
|
1054
|
+
args: [{ transform: booleanAttribute }]
|
1055
|
+
}], lastChild: [{
|
1056
|
+
type: Input,
|
1057
|
+
args: [{ transform: booleanAttribute }]
|
1058
|
+
}], level: [{
|
1059
|
+
type: Input,
|
1060
|
+
args: [{ transform: numberAttribute }]
|
1061
|
+
}], indentation: [{
|
1062
|
+
type: Input,
|
1063
|
+
args: [{ transform: numberAttribute }]
|
1064
|
+
}], itemSize: [{
|
1065
|
+
type: Input,
|
1066
|
+
args: [{ transform: numberAttribute }]
|
1067
|
+
}], loadingMode: [{
|
1068
|
+
type: Input
|
1069
|
+
}] } });
|
1393
1070
|
/**
|
1394
1071
|
* Tree is used to display hierarchical data.
|
1395
1072
|
* @group Components
|
@@ -2321,71 +1998,107 @@ class Tree extends BaseComponent {
|
|
2321
1998
|
}
|
2322
1999
|
super.ngOnDestroy();
|
2323
2000
|
}
|
2324
|
-
static ɵfac =
|
2325
|
-
static ɵcmp =
|
2326
|
-
|
2327
|
-
|
2328
|
-
|
2329
|
-
|
2330
|
-
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2334
|
-
|
2335
|
-
|
2336
|
-
|
2337
|
-
|
2338
|
-
|
2339
|
-
|
2340
|
-
|
2341
|
-
|
2342
|
-
|
2343
|
-
|
2344
|
-
|
2345
|
-
|
2346
|
-
|
2347
|
-
|
2348
|
-
|
2349
|
-
|
2350
|
-
|
2351
|
-
|
2352
|
-
|
2353
|
-
|
2354
|
-
|
2355
|
-
|
2356
|
-
|
2357
|
-
|
2358
|
-
|
2359
|
-
|
2360
|
-
|
2361
|
-
|
2362
|
-
|
2363
|
-
|
2364
|
-
|
2365
|
-
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2369
|
-
|
2370
|
-
|
2371
|
-
|
2372
|
-
|
2373
|
-
|
2374
|
-
|
2375
|
-
|
2376
|
-
|
2377
|
-
|
2378
|
-
|
2379
|
-
|
2380
|
-
|
2001
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Tree, deps: [{ token: i3.TreeDragDropService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
2002
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: Tree, isStandalone: true, selector: "p-tree", inputs: { value: "value", selectionMode: "selectionMode", loadingMode: "loadingMode", selection: "selection", style: "style", styleClass: "styleClass", contextMenu: "contextMenu", draggableScope: "draggableScope", droppableScope: "droppableScope", draggableNodes: ["draggableNodes", "draggableNodes", booleanAttribute], droppableNodes: ["droppableNodes", "droppableNodes", booleanAttribute], metaKeySelection: ["metaKeySelection", "metaKeySelection", booleanAttribute], propagateSelectionUp: ["propagateSelectionUp", "propagateSelectionUp", booleanAttribute], propagateSelectionDown: ["propagateSelectionDown", "propagateSelectionDown", booleanAttribute], loading: ["loading", "loading", booleanAttribute], loadingIcon: "loadingIcon", emptyMessage: "emptyMessage", ariaLabel: "ariaLabel", togglerAriaLabel: "togglerAriaLabel", ariaLabelledBy: "ariaLabelledBy", validateDrop: ["validateDrop", "validateDrop", booleanAttribute], filter: ["filter", "filter", booleanAttribute], filterBy: "filterBy", filterMode: "filterMode", filterOptions: "filterOptions", filterPlaceholder: "filterPlaceholder", filteredNodes: "filteredNodes", filterLocale: "filterLocale", scrollHeight: "scrollHeight", lazy: ["lazy", "lazy", booleanAttribute], virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", indentation: ["indentation", "indentation", numberAttribute], _templateMap: "_templateMap", trackBy: "trackBy", highlightOnSelect: ["highlightOnSelect", "highlightOnSelect", booleanAttribute], virtualNodeHeight: "virtualNodeHeight" }, outputs: { selectionChange: "selectionChange", onNodeSelect: "onNodeSelect", onNodeUnselect: "onNodeUnselect", onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onNodeContextMenuSelect: "onNodeContextMenuSelect", onNodeDoubleClick: "onNodeDoubleClick", onNodeDrop: "onNodeDrop", onLazyLoad: "onLazyLoad", onScroll: "onScroll", onScrollIndexChange: "onScrollIndexChange", onFilter: "onFilter" }, providers: [TreeStyle], queries: [{ propertyName: "filterTemplate", first: true, predicate: ["filter"] }, { propertyName: "nodeTemplate", first: true, predicate: ["node"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"] }, { propertyName: "emptyMessageTemplate", first: true, predicate: ["empty"] }, { propertyName: "togglerIconTemplate", first: true, predicate: ["togglericon"] }, { propertyName: "checkboxIconTemplate", first: true, predicate: ["checkboxicon"] }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"] }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }, { propertyName: "wrapperViewChild", first: true, predicate: ["wrapper"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
2003
|
+
<div [ngClass]="containerClass" [ngStyle]="style" [class]="styleClass" (drop)="onDrop($event)" (dragover)="onDragOver($event)" (dragenter)="onDragEnter()" (dragleave)="onDragLeave($event)">
|
2004
|
+
<div class="p-tree-mask p-overlay-mask" *ngIf="loading && loadingMode === 'mask'">
|
2005
|
+
<i *ngIf="loadingIcon" [class]="'p-tree-loading-icon pi-spin ' + loadingIcon"></i>
|
2006
|
+
<ng-container *ngIf="!loadingIcon">
|
2007
|
+
<SpinnerIcon *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [spin]="true" [styleClass]="'p-tree-loading-icon'" />
|
2008
|
+
<span *ngIf="loadingIconTemplate || _loadingIconTemplate" class="p-tree-loading-icon">
|
2009
|
+
<ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
|
2010
|
+
</span>
|
2011
|
+
</ng-container>
|
2012
|
+
</div>
|
2013
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
2014
|
+
@if (filterTemplate || _filterTemplate) {
|
2015
|
+
<ng-container *ngTemplateOutlet="filterTemplate || _filterTemplate; context: { $implicit: filterOptions }"></ng-container>
|
2016
|
+
} @else {
|
2017
|
+
<p-iconField *ngIf="filter">
|
2018
|
+
<input #filter pInputText type="search" autocomplete="off" class="p-tree-filter-input" [attr.placeholder]="filterPlaceholder" (keydown.enter)="$event.preventDefault()" (input)="_filter($event.target.value)" />
|
2019
|
+
<p-inputIcon>
|
2020
|
+
<SearchIcon *ngIf="!filterIconTemplate && !_filterIconTemplate" class="p-tree-filter-icon" />
|
2021
|
+
<span *ngIf="filterIconTemplate || _filterIconTemplate">
|
2022
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate"></ng-template>
|
2023
|
+
</span>
|
2024
|
+
</p-inputIcon>
|
2025
|
+
</p-iconField>
|
2026
|
+
}
|
2027
|
+
|
2028
|
+
<ng-container *ngIf="getRootNode()?.length">
|
2029
|
+
<p-scroller
|
2030
|
+
#scroller
|
2031
|
+
*ngIf="virtualScroll"
|
2032
|
+
[items]="serializedValue"
|
2033
|
+
[tabindex]="-1"
|
2034
|
+
styleClass="p-tree-root"
|
2035
|
+
[style]="{ height: scrollHeight !== 'flex' ? scrollHeight : undefined }"
|
2036
|
+
[scrollHeight]="scrollHeight !== 'flex' ? undefined : '100%'"
|
2037
|
+
[itemSize]="virtualScrollItemSize || _virtualNodeHeight"
|
2038
|
+
[lazy]="lazy"
|
2039
|
+
(onScroll)="onScroll.emit($event)"
|
2040
|
+
(onScrollIndexChange)="onScrollIndexChange.emit($event)"
|
2041
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
2042
|
+
[options]="virtualScrollOptions"
|
2043
|
+
>
|
2044
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
2045
|
+
<ul *ngIf="items" class="p-tree-root-children" [ngClass]="scrollerOptions.contentStyleClass" [style]="scrollerOptions.contentStyle" role="tree" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledBy">
|
2046
|
+
<p-treeNode
|
2047
|
+
#treeNode
|
2048
|
+
*ngFor="let rowNode of items; let firstChild = first; let lastChild = last; let index = index; trackBy: trackBy"
|
2049
|
+
[level]="rowNode.level"
|
2050
|
+
[rowNode]="rowNode"
|
2051
|
+
[node]="rowNode.node"
|
2052
|
+
[parentNode]="rowNode.parent"
|
2053
|
+
[firstChild]="firstChild"
|
2054
|
+
[lastChild]="lastChild"
|
2055
|
+
[index]="getIndex(scrollerOptions, index)"
|
2056
|
+
[itemSize]="scrollerOptions.itemSize"
|
2057
|
+
[indentation]="indentation"
|
2058
|
+
[loadingMode]="loadingMode"
|
2059
|
+
></p-treeNode>
|
2060
|
+
</ul>
|
2061
|
+
</ng-template>
|
2062
|
+
<ng-container *ngIf="loaderTemplate || _loaderTemplate">
|
2063
|
+
<ng-template #loader let-scrollerOptions="options">
|
2064
|
+
<ng-container *ngTemplateOutlet="loaderTemplate || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
2065
|
+
</ng-template>
|
2066
|
+
</ng-container>
|
2067
|
+
</p-scroller>
|
2068
|
+
<ng-container *ngIf="!virtualScroll">
|
2069
|
+
<div #wrapper class="p-tree-root" [style.max-height]="scrollHeight">
|
2070
|
+
<ul class="p-tree-root-children" *ngIf="getRootNode()" role="tree" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledBy">
|
2071
|
+
<p-treeNode
|
2072
|
+
*ngFor="let node of getRootNode(); let firstChild = first; let lastChild = last; let index = index; trackBy: trackBy.bind(this)"
|
2073
|
+
[node]="node"
|
2074
|
+
[firstChild]="firstChild"
|
2075
|
+
[lastChild]="lastChild"
|
2076
|
+
[index]="index"
|
2077
|
+
[level]="0"
|
2078
|
+
[loadingMode]="loadingMode"
|
2079
|
+
></p-treeNode>
|
2080
|
+
</ul>
|
2081
|
+
</div>
|
2082
|
+
</ng-container>
|
2083
|
+
</ng-container>
|
2084
|
+
|
2085
|
+
<div class="p-tree-empty-message" *ngIf="!loading && (getRootNode() == null || getRootNode().length === 0)">
|
2086
|
+
<ng-container *ngIf="!emptyMessageTemplate && !_emptyMessageTemplate; else emptyFilter">
|
2087
|
+
{{ emptyMessageLabel }}
|
2088
|
+
</ng-container>
|
2089
|
+
<ng-template #emptyFilter *ngTemplateOutlet="emptyMessageTemplate || _emptyMessageTemplate"></ng-template>
|
2090
|
+
</div>
|
2091
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
2092
|
+
</div>
|
2093
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "ngmodule", type: SharedModule }, { kind: "component", type: SearchIcon, selector: "SearchIcon" }, { kind: "component", type: SpinnerIcon, selector: "SpinnerIcon" }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "component", type: UITreeNode, selector: "p-treeNode", inputs: ["rowNode", "node", "parentNode", "root", "index", "firstChild", "lastChild", "level", "indentation", "itemSize", "loadingMode"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
2381
2094
|
}
|
2382
|
-
(
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Tree, decorators: [{
|
2096
|
+
type: Component,
|
2097
|
+
args: [{
|
2098
|
+
selector: 'p-tree',
|
2099
|
+
standalone: true,
|
2100
|
+
imports: [CommonModule, Scroller, SharedModule, SearchIcon, SpinnerIcon, InputText, FormsModule, IconField, InputIcon, UITreeNode],
|
2101
|
+
template: `
|
2389
2102
|
<div [ngClass]="containerClass" [ngStyle]="style" [class]="styleClass" (drop)="onDrop($event)" (dragover)="onDragOver($event)" (dragenter)="onDragEnter()" (dragleave)="onDragLeave($event)">
|
2390
2103
|
<div class="p-tree-mask p-overlay-mask" *ngIf="loading && loadingMode === 'mask'">
|
2391
2104
|
<i *ngIf="loadingIcon" [class]="'p-tree-loading-icon pi-spin ' + loadingIcon"></i>
|
@@ -2477,182 +2190,180 @@ class Tree extends BaseComponent {
|
|
2477
2190
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
2478
2191
|
</div>
|
2479
2192
|
`,
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2488
|
-
|
2489
|
-
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2498
|
-
|
2499
|
-
|
2500
|
-
|
2501
|
-
|
2502
|
-
|
2503
|
-
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2562
|
-
|
2563
|
-
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2567
|
-
|
2568
|
-
|
2569
|
-
|
2570
|
-
|
2571
|
-
|
2572
|
-
|
2573
|
-
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2578
|
-
|
2579
|
-
|
2580
|
-
|
2581
|
-
|
2582
|
-
|
2583
|
-
|
2584
|
-
|
2585
|
-
|
2586
|
-
|
2587
|
-
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2607
|
-
|
2608
|
-
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Tree, { className: "Tree", filePath: "tree.ts", lineNumber: 807 }); })();
|
2193
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
2194
|
+
encapsulation: ViewEncapsulation.None,
|
2195
|
+
providers: [TreeStyle]
|
2196
|
+
}]
|
2197
|
+
}], ctorParameters: () => [{ type: i3.TreeDragDropService, decorators: [{
|
2198
|
+
type: Optional
|
2199
|
+
}] }], propDecorators: { value: [{
|
2200
|
+
type: Input
|
2201
|
+
}], selectionMode: [{
|
2202
|
+
type: Input
|
2203
|
+
}], loadingMode: [{
|
2204
|
+
type: Input
|
2205
|
+
}], selection: [{
|
2206
|
+
type: Input
|
2207
|
+
}], style: [{
|
2208
|
+
type: Input
|
2209
|
+
}], styleClass: [{
|
2210
|
+
type: Input
|
2211
|
+
}], contextMenu: [{
|
2212
|
+
type: Input
|
2213
|
+
}], draggableScope: [{
|
2214
|
+
type: Input
|
2215
|
+
}], droppableScope: [{
|
2216
|
+
type: Input
|
2217
|
+
}], draggableNodes: [{
|
2218
|
+
type: Input,
|
2219
|
+
args: [{ transform: booleanAttribute }]
|
2220
|
+
}], droppableNodes: [{
|
2221
|
+
type: Input,
|
2222
|
+
args: [{ transform: booleanAttribute }]
|
2223
|
+
}], metaKeySelection: [{
|
2224
|
+
type: Input,
|
2225
|
+
args: [{ transform: booleanAttribute }]
|
2226
|
+
}], propagateSelectionUp: [{
|
2227
|
+
type: Input,
|
2228
|
+
args: [{ transform: booleanAttribute }]
|
2229
|
+
}], propagateSelectionDown: [{
|
2230
|
+
type: Input,
|
2231
|
+
args: [{ transform: booleanAttribute }]
|
2232
|
+
}], loading: [{
|
2233
|
+
type: Input,
|
2234
|
+
args: [{ transform: booleanAttribute }]
|
2235
|
+
}], loadingIcon: [{
|
2236
|
+
type: Input
|
2237
|
+
}], emptyMessage: [{
|
2238
|
+
type: Input
|
2239
|
+
}], ariaLabel: [{
|
2240
|
+
type: Input
|
2241
|
+
}], togglerAriaLabel: [{
|
2242
|
+
type: Input
|
2243
|
+
}], ariaLabelledBy: [{
|
2244
|
+
type: Input
|
2245
|
+
}], validateDrop: [{
|
2246
|
+
type: Input,
|
2247
|
+
args: [{ transform: booleanAttribute }]
|
2248
|
+
}], filter: [{
|
2249
|
+
type: Input,
|
2250
|
+
args: [{ transform: booleanAttribute }]
|
2251
|
+
}], filterBy: [{
|
2252
|
+
type: Input
|
2253
|
+
}], filterMode: [{
|
2254
|
+
type: Input
|
2255
|
+
}], filterOptions: [{
|
2256
|
+
type: Input
|
2257
|
+
}], filterPlaceholder: [{
|
2258
|
+
type: Input
|
2259
|
+
}], filteredNodes: [{
|
2260
|
+
type: Input
|
2261
|
+
}], filterLocale: [{
|
2262
|
+
type: Input
|
2263
|
+
}], scrollHeight: [{
|
2264
|
+
type: Input
|
2265
|
+
}], lazy: [{
|
2266
|
+
type: Input,
|
2267
|
+
args: [{ transform: booleanAttribute }]
|
2268
|
+
}], virtualScroll: [{
|
2269
|
+
type: Input,
|
2270
|
+
args: [{ transform: booleanAttribute }]
|
2271
|
+
}], virtualScrollItemSize: [{
|
2272
|
+
type: Input,
|
2273
|
+
args: [{ transform: numberAttribute }]
|
2274
|
+
}], virtualScrollOptions: [{
|
2275
|
+
type: Input
|
2276
|
+
}], indentation: [{
|
2277
|
+
type: Input,
|
2278
|
+
args: [{ transform: numberAttribute }]
|
2279
|
+
}], _templateMap: [{
|
2280
|
+
type: Input
|
2281
|
+
}], trackBy: [{
|
2282
|
+
type: Input
|
2283
|
+
}], highlightOnSelect: [{
|
2284
|
+
type: Input,
|
2285
|
+
args: [{ transform: booleanAttribute }]
|
2286
|
+
}], virtualNodeHeight: [{
|
2287
|
+
type: Input
|
2288
|
+
}], selectionChange: [{
|
2289
|
+
type: Output
|
2290
|
+
}], onNodeSelect: [{
|
2291
|
+
type: Output
|
2292
|
+
}], onNodeUnselect: [{
|
2293
|
+
type: Output
|
2294
|
+
}], onNodeExpand: [{
|
2295
|
+
type: Output
|
2296
|
+
}], onNodeCollapse: [{
|
2297
|
+
type: Output
|
2298
|
+
}], onNodeContextMenuSelect: [{
|
2299
|
+
type: Output
|
2300
|
+
}], onNodeDoubleClick: [{
|
2301
|
+
type: Output
|
2302
|
+
}], onNodeDrop: [{
|
2303
|
+
type: Output
|
2304
|
+
}], onLazyLoad: [{
|
2305
|
+
type: Output
|
2306
|
+
}], onScroll: [{
|
2307
|
+
type: Output
|
2308
|
+
}], onScrollIndexChange: [{
|
2309
|
+
type: Output
|
2310
|
+
}], onFilter: [{
|
2311
|
+
type: Output
|
2312
|
+
}], filterTemplate: [{
|
2313
|
+
type: ContentChild,
|
2314
|
+
args: ['filter', { descendants: false }]
|
2315
|
+
}], nodeTemplate: [{
|
2316
|
+
type: ContentChild,
|
2317
|
+
args: ['node', { descendants: false }]
|
2318
|
+
}], headerTemplate: [{
|
2319
|
+
type: ContentChild,
|
2320
|
+
args: ['header', { descendants: false }]
|
2321
|
+
}], footerTemplate: [{
|
2322
|
+
type: ContentChild,
|
2323
|
+
args: ['footer', { descendants: false }]
|
2324
|
+
}], loaderTemplate: [{
|
2325
|
+
type: ContentChild,
|
2326
|
+
args: ['loader', { descendants: false }]
|
2327
|
+
}], emptyMessageTemplate: [{
|
2328
|
+
type: ContentChild,
|
2329
|
+
args: ['empty', { descendants: false }]
|
2330
|
+
}], togglerIconTemplate: [{
|
2331
|
+
type: ContentChild,
|
2332
|
+
args: ['togglericon', { descendants: false }]
|
2333
|
+
}], checkboxIconTemplate: [{
|
2334
|
+
type: ContentChild,
|
2335
|
+
args: ['checkboxicon', { descendants: false }]
|
2336
|
+
}], loadingIconTemplate: [{
|
2337
|
+
type: ContentChild,
|
2338
|
+
args: ['loadingicon', { descendants: false }]
|
2339
|
+
}], filterIconTemplate: [{
|
2340
|
+
type: ContentChild,
|
2341
|
+
args: ['filtericon', { descendants: false }]
|
2342
|
+
}], filterViewChild: [{
|
2343
|
+
type: ViewChild,
|
2344
|
+
args: ['filter']
|
2345
|
+
}], scroller: [{
|
2346
|
+
type: ViewChild,
|
2347
|
+
args: ['scroller']
|
2348
|
+
}], wrapperViewChild: [{
|
2349
|
+
type: ViewChild,
|
2350
|
+
args: ['wrapper']
|
2351
|
+
}], templates: [{
|
2352
|
+
type: ContentChildren,
|
2353
|
+
args: [PrimeTemplate]
|
2354
|
+
}] } });
|
2643
2355
|
class TreeModule {
|
2644
|
-
static ɵfac =
|
2645
|
-
static ɵmod =
|
2646
|
-
static ɵinj =
|
2356
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: TreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2357
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: TreeModule, imports: [Tree, SharedModule], exports: [Tree, SharedModule] });
|
2358
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: TreeModule, imports: [Tree, SharedModule, SharedModule] });
|
2647
2359
|
}
|
2648
|
-
(
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2655
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TreeModule, { imports: [Tree, SharedModule], exports: [Tree, SharedModule] }); })();
|
2360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: TreeModule, decorators: [{
|
2361
|
+
type: NgModule,
|
2362
|
+
args: [{
|
2363
|
+
imports: [Tree, SharedModule],
|
2364
|
+
exports: [Tree, SharedModule]
|
2365
|
+
}]
|
2366
|
+
}] });
|
2656
2367
|
|
2657
2368
|
/**
|
2658
2369
|
* Generated bundle index. Do not edit.
|