primeng 22.1.0 → 22.1.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/primeng-accordion.mjs +69 -53
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +19 -10
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +60 -59
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +72 -33
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +7 -7
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +13 -13
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +13 -13
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +13 -13
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +12 -30
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +12 -23
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-baseeditableholder.mjs +8 -3
- package/fesm2022/primeng-baseeditableholder.mjs.map +1 -1
- package/fesm2022/primeng-baseinput.mjs +3 -3
- package/fesm2022/primeng-baseinput.mjs.map +1 -1
- package/fesm2022/primeng-basemodelholder.mjs +3 -3
- package/fesm2022/primeng-basemodelholder.mjs.map +1 -1
- package/fesm2022/primeng-bind.mjs +9 -8
- package/fesm2022/primeng-bind.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +10 -13
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +10 -10
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +45 -38
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +10 -10
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +10 -10
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +44 -45
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +111 -76
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +13 -13
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +17 -19
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +13 -13
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-classnames.mjs +7 -7
- package/fesm2022/primeng-classnames.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +20 -20
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-commandmenu.mjs +14 -16
- package/fesm2022/primeng-commandmenu.mjs.map +1 -1
- package/fesm2022/primeng-compare.mjs +20 -19
- package/fesm2022/primeng-compare.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +10 -10
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +23 -27
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +34 -47
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +70 -39
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +15 -14
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +100 -98
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +47 -40
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +15 -17
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +20 -14
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dom.mjs +14 -8
- package/fesm2022/primeng-dom.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +11 -10
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +26 -24
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +82 -93
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +16 -15
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +14 -17
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +26 -19
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +13 -13
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +11 -11
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +19 -19
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +55 -51
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-gallery.mjs +103 -105
- package/fesm2022/primeng-gallery.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +13 -13
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +3 -3
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +3 -3
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +3 -3
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +3 -3
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +3 -3
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +3 -3
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +3 -3
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +3 -3
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +3 -3
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +6 -6
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +3 -3
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +3 -3
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +3 -3
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +3 -3
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +3 -3
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +3 -3
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +3 -3
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +3 -3
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +3 -3
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +3 -3
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +3 -3
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +3 -3
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +3 -3
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterfill.mjs +3 -3
- package/fesm2022/primeng-icons-filterfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterslash.mjs +3 -3
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +3 -3
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +3 -3
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +3 -3
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +3 -3
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +3 -3
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +3 -3
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +3 -3
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +3 -3
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +3 -3
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +3 -3
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +3 -3
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +3 -3
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +3 -3
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +3 -3
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +3 -3
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +3 -3
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +3 -3
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +3 -3
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +3 -3
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +3 -3
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +3 -3
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +3 -3
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +3 -3
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +10 -10
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +21 -23
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +10 -10
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +16 -16
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputcolor.mjs +55 -46
- package/fesm2022/primeng-inputcolor.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +10 -10
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +10 -10
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +10 -10
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +27 -19
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +21 -21
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +15 -14
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputpassword.mjs +13 -15
- package/fesm2022/primeng-inputpassword.mjs.map +1 -1
- package/fesm2022/primeng-inputtags.mjs +10 -10
- package/fesm2022/primeng-inputtags.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +18 -13
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +13 -12
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +15 -13
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-label.mjs +10 -10
- package/fesm2022/primeng-label.mjs.map +1 -1
- package/fesm2022/primeng-license.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +67 -52
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +51 -31
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +48 -45
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +60 -38
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +25 -29
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +16 -16
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-motion.mjs +18 -18
- package/fesm2022/primeng-motion.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +184 -150
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +14 -28
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +16 -18
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +48 -34
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +10 -10
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +16 -16
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +20 -24
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +62 -30
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-passthrough.mjs +5 -7
- package/fesm2022/primeng-passthrough.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +39 -31
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +23 -20
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +23 -21
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +13 -13
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +10 -10
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +17 -19
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +13 -13
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +31 -17
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scrollarea.mjs +25 -25
- package/fesm2022/primeng-scrollarea.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +65 -29
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +52 -26
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +18 -19
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +102 -51
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +10 -10
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +143 -140
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +10 -10
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +22 -22
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +30 -17
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +18 -19
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +20 -23
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +64 -68
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +150 -127
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +13 -9
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +213 -190
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +66 -50
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +10 -10
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +13 -13
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +16 -12
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +65 -34
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +13 -13
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +115 -121
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +10 -10
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +10 -10
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +16 -16
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +27 -14
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +55 -66
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +28 -16
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +139 -127
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +10 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fesm2022/primeng-utils.mjs +13 -22
- package/fesm2022/primeng-utils.mjs.map +1 -1
- package/package.json +2 -2
- package/types/primeng-accordion.d.ts +27 -29
- package/types/primeng-api.d.ts +7 -1
- package/types/primeng-autocomplete.d.ts +64 -66
- package/types/primeng-avatar.d.ts +19 -21
- package/types/primeng-avatargroup.d.ts +9 -11
- package/types/primeng-badge.d.ts +15 -17
- package/types/primeng-basecomponent.d.ts +1 -1
- package/types/primeng-button.d.ts +34 -36
- package/types/primeng-buttongroup.d.ts +9 -11
- package/types/primeng-card.d.ts +16 -18
- package/types/primeng-carousel.d.ts +67 -69
- package/types/primeng-cascadeselect.d.ts +69 -71
- package/types/primeng-chart.d.ts +15 -17
- package/types/primeng-checkbox.d.ts +22 -24
- package/types/primeng-chip.d.ts +25 -27
- package/types/primeng-colorpicker.d.ts +31 -33
- package/types/primeng-commandmenu.d.ts +1 -1
- package/types/primeng-compare.d.ts +17 -19
- package/types/primeng-config.d.ts +1 -1
- package/types/primeng-confirmdialog.d.ts +14 -16
- package/types/primeng-confirmpopup.d.ts +23 -29
- package/types/primeng-contextmenu.d.ts +36 -38
- package/types/primeng-dataview.d.ts +25 -27
- package/types/primeng-datepicker.d.ts +107 -109
- package/types/primeng-dialog.d.ts +39 -41
- package/types/primeng-divider.d.ts +18 -20
- package/types/primeng-dock.d.ts +26 -28
- package/types/primeng-drawer.d.ts +30 -32
- package/types/primeng-dynamicdialog.d.ts +52 -56
- package/types/primeng-editor.d.ts +17 -19
- package/types/primeng-fieldset.d.ts +20 -22
- package/types/primeng-fileupload.d.ts +27 -29
- package/types/primeng-floatlabel.d.ts +15 -17
- package/types/primeng-fluid.d.ts +9 -11
- package/types/primeng-galleria.d.ts +69 -71
- package/types/primeng-gallery.d.ts +6 -6
- package/types/primeng-iconfield.d.ts +10 -12
- package/types/primeng-icons-baseicon.d.ts +6 -8
- package/types/primeng-iftalabel.d.ts +9 -11
- package/types/primeng-image.d.ts +31 -33
- package/types/primeng-imagecompare.d.ts +10 -12
- package/types/primeng-inplace.d.ts +15 -17
- package/types/primeng-inputcolor.d.ts +27 -29
- package/types/primeng-inputgroup.d.ts +13 -15
- package/types/primeng-inputmask.d.ts +15 -17
- package/types/primeng-inputnumber.d.ts +35 -37
- package/types/primeng-inputotp.d.ts +11 -13
- package/types/primeng-inputpassword.d.ts +9 -12
- package/types/primeng-inputtags.d.ts +13 -15
- package/types/primeng-inputtext.d.ts +14 -16
- package/types/primeng-knob.d.ts +17 -19
- package/types/primeng-label.d.ts +9 -11
- package/types/primeng-listbox.d.ts +4 -4
- package/types/primeng-megamenu.d.ts +52 -54
- package/types/primeng-menu.d.ts +40 -42
- package/types/primeng-menubar.d.ts +1 -1
- package/types/primeng-message.d.ts +20 -22
- package/types/primeng-metergroup.d.ts +27 -29
- package/types/primeng-motion.d.ts +1 -3
- package/types/primeng-multiselect.d.ts +104 -106
- package/types/primeng-orderlist.d.ts +16 -18
- package/types/primeng-organizationchart.d.ts +21 -23
- package/types/primeng-overlay.d.ts +1 -1
- package/types/primeng-paginator.d.ts +48 -52
- package/types/primeng-panelmenu.d.ts +45 -47
- package/types/primeng-password.d.ts +47 -49
- package/types/primeng-picklist.d.ts +16 -18
- package/types/primeng-popover.d.ts +3 -3
- package/types/primeng-progressbar.d.ts +17 -19
- package/types/primeng-progressspinner.d.ts +13 -15
- package/types/primeng-radiobutton.d.ts +22 -24
- package/types/primeng-rating.d.ts +26 -28
- package/types/primeng-ripple.d.ts +9 -11
- package/types/primeng-scrollarea.d.ts +34 -36
- package/types/primeng-scroller.d.ts +28 -30
- package/types/primeng-scrollpanel.d.ts +15 -17
- package/types/primeng-scrolltop.d.ts +17 -19
- package/types/primeng-select.d.ts +56 -58
- package/types/primeng-selectbutton.d.ts +14 -16
- package/types/primeng-sidebar.d.ts +33 -35
- package/types/primeng-skeleton.d.ts +14 -16
- package/types/primeng-slider.d.ts +34 -36
- package/types/primeng-speeddial.d.ts +39 -41
- package/types/primeng-splitbutton.d.ts +20 -22
- package/types/primeng-splitter.d.ts +15 -17
- package/types/primeng-stepper.d.ts +19 -31
- package/types/primeng-steps.d.ts +25 -27
- package/types/primeng-table.d.ts +17 -18
- package/types/primeng-tabs.d.ts +13 -23
- package/types/primeng-tag.d.ts +21 -23
- package/types/primeng-terminal.d.ts +17 -19
- package/types/primeng-textarea.d.ts +14 -16
- package/types/primeng-tieredmenu.d.ts +43 -45
- package/types/primeng-timeline.d.ts +18 -20
- package/types/primeng-toast.d.ts +48 -50
- package/types/primeng-togglebutton.d.ts +23 -25
- package/types/primeng-toggleswitch.d.ts +22 -24
- package/types/primeng-toolbar.d.ts +14 -16
- package/types/primeng-tooltip.d.ts +23 -25
- package/types/primeng-tree.d.ts +52 -54
- package/types/primeng-treeselect.d.ts +52 -48
- package/types/primeng-treetable.d.ts +109 -111
|
@@ -4,15 +4,15 @@ import { Injectable, InjectionToken, input, booleanAttribute, inject, computed,
|
|
|
4
4
|
import { BaseStyle } from 'primeng/base';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { NgTemplateOutlet, isPlatformBrowser } from '@angular/common';
|
|
7
|
+
import { ArrowDown } from '@primeicons/angular/arrow-down';
|
|
8
|
+
import { ArrowUp } from '@primeicons/angular/arrow-up';
|
|
9
|
+
import { Spinner } from '@primeicons/angular/spinner';
|
|
7
10
|
import { addClass, findSingle, calculateScrollbarWidth, calculateScrollbarHeight, resolveFieldData, isEmpty, getOffset, addStyle, getIndex, getHiddenElementOuterWidth, getHiddenElementOuterHeight, reorderArray, isClickable, equals, find, removeClass, clearSelection } from '@primeuix/utils';
|
|
8
11
|
import { FilterService, SharedModule } from 'primeng/api';
|
|
9
12
|
import { BaseComponent, PARENT_INSTANCE } from 'primeng/basecomponent';
|
|
10
13
|
import * as i1 from 'primeng/bind';
|
|
11
14
|
import { Bind } from 'primeng/bind';
|
|
12
15
|
import { DomHandler } from 'primeng/dom';
|
|
13
|
-
import { ArrowDown } from '@primeicons/angular/arrow-down';
|
|
14
|
-
import { ArrowUp } from '@primeicons/angular/arrow-up';
|
|
15
|
-
import { Spinner } from '@primeicons/angular/spinner';
|
|
16
16
|
import * as i2 from 'primeng/paginator';
|
|
17
17
|
import { PaginatorModule } from 'primeng/paginator';
|
|
18
18
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
@@ -633,10 +633,10 @@ class TreeTableStyle extends BaseStyle {
|
|
|
633
633
|
style = style;
|
|
634
634
|
classes = classes;
|
|
635
635
|
inlineStyles = inlineStyles;
|
|
636
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
637
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.
|
|
636
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
637
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableStyle });
|
|
638
638
|
}
|
|
639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableStyle, decorators: [{
|
|
640
640
|
type: Injectable
|
|
641
641
|
}] });
|
|
642
642
|
/**
|
|
@@ -823,10 +823,10 @@ class TreeTableService {
|
|
|
823
823
|
onTotalRecordsChange(value) {
|
|
824
824
|
this.totalRecordsSource.next(value);
|
|
825
825
|
}
|
|
826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
827
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.
|
|
826
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
827
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableService });
|
|
828
828
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableService, decorators: [{
|
|
830
830
|
type: Injectable
|
|
831
831
|
}] });
|
|
832
832
|
|
|
@@ -874,8 +874,8 @@ class TTBody extends BaseComponent {
|
|
|
874
874
|
frozen: this.frozen()
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
878
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
877
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTBody, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
878
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TTBody, isStandalone: true, selector: "[pTreeTableBody]", inputs: { columns: { classPropertyName: "columns", publicName: "pTreeTableBody", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "pTreeTableBodyTemplate", isSignal: true, isRequired: false, transformFunction: null }, frozen: { classPropertyName: "frozen", publicName: "frozen", isSignal: true, isRequired: false, transformFunction: null }, serializedNodes: { classPropertyName: "serializedNodes", publicName: "serializedNodes", isSignal: true, isRequired: false, transformFunction: null }, scrollerOptions: { classPropertyName: "scrollerOptions", publicName: "scrollerOptions", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-p": "dataP" } }, usesInheritance: true, ngImport: i0, template: `
|
|
879
879
|
@for (serializedNode of serializedNodes() || tt.serializedValue; track tt.rowTrackBy()($index, serializedNode)) {
|
|
880
880
|
@if (serializedNode.visible) {
|
|
881
881
|
<ng-container *ngTemplateOutlet="template(); context: getBodyTemplateContext(serializedNode)"></ng-container>
|
|
@@ -886,7 +886,7 @@ class TTBody extends BaseComponent {
|
|
|
886
886
|
}
|
|
887
887
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
888
888
|
}
|
|
889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTBody, decorators: [{
|
|
890
890
|
type: Component,
|
|
891
891
|
args: [{
|
|
892
892
|
selector: '[pTreeTableBody]',
|
|
@@ -962,7 +962,8 @@ class TTScrollableView extends BaseComponent {
|
|
|
962
962
|
effect(() => {
|
|
963
963
|
const val = this.scrollHeight();
|
|
964
964
|
if (val != null && (val.includes('%') || val.includes('calc'))) {
|
|
965
|
-
|
|
965
|
+
// eslint-disable-next-line no-console
|
|
966
|
+
console.warn('Percentage scroll height calculation is removed in favor of the more performant CSS based flex mode, use scrollHeight="flex" instead.');
|
|
966
967
|
}
|
|
967
968
|
});
|
|
968
969
|
}
|
|
@@ -1101,8 +1102,8 @@ class TTScrollableView extends BaseComponent {
|
|
|
1101
1102
|
this.unbindEvents();
|
|
1102
1103
|
this.frozenSiblingBody = null;
|
|
1103
1104
|
}
|
|
1104
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
1105
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
1105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTScrollableView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TTScrollableView, isStandalone: true, selector: "[ttScrollableView]", inputs: { columns: { classPropertyName: "columns", publicName: "ttScrollableView", isSignal: true, isRequired: false, transformFunction: null }, frozen: { classPropertyName: "frozen", publicName: "frozen", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], viewQueries: [{ propertyName: "scrollHeaderViewChild", first: true, predicate: ["scrollHeader"], descendants: true, isSignal: true }, { propertyName: "scrollHeaderBoxViewChild", first: true, predicate: ["scrollHeaderBox"], descendants: true, isSignal: true }, { propertyName: "scrollBodyViewChild", first: true, predicate: ["scrollBody"], descendants: true, isSignal: true }, { propertyName: "scrollTableViewChild", first: true, predicate: ["scrollTable"], descendants: true, isSignal: true }, { propertyName: "scrollLoadingTableViewChild", first: true, predicate: ["loadingTable"], descendants: true, isSignal: true }, { propertyName: "scrollFooterViewChild", first: true, predicate: ["scrollFooter"], descendants: true, isSignal: true }, { propertyName: "scrollFooterBoxViewChild", first: true, predicate: ["scrollFooterBox"], descendants: true, isSignal: true }, { propertyName: "scrollableAlignerViewChild", first: true, predicate: ["scrollableAligner"], descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1106
1107
|
<div #scrollHeader [class]="cx('scrollableHeader')" [pBind]="ptm('scrollableHeader')">
|
|
1107
1108
|
<div #scrollHeaderBox [class]="cx('scrollableHeaderBox')" [pBind]="ptm('scrollableHeaderBox')">
|
|
1108
1109
|
<table [class]="cn(cx('scrollableHeaderTable'), tt.tableStyleClass())" [pBind]="ptm('scrollableHeaderTable')" [style]="tt.tableStyle()">
|
|
@@ -1167,7 +1168,7 @@ class TTScrollableView extends BaseComponent {
|
|
|
1167
1168
|
}
|
|
1168
1169
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller", inputs: ["hostName", "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: "component", type: TTBody, selector: "[pTreeTableBody]", inputs: ["pTreeTableBody", "pTreeTableBodyTemplate", "frozen", "serializedNodes", "scrollerOptions"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1169
1170
|
}
|
|
1170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
1171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTScrollableView, decorators: [{
|
|
1171
1172
|
type: Component,
|
|
1172
1173
|
args: [{
|
|
1173
1174
|
selector: '[ttScrollableView]',
|
|
@@ -1250,9 +1251,6 @@ class TreeTable extends BaseComponent {
|
|
|
1250
1251
|
componentName = 'TreeTable';
|
|
1251
1252
|
_componentStyle = inject(TreeTableStyle);
|
|
1252
1253
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
1253
|
-
onAfterViewChecked() {
|
|
1254
|
-
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1255
|
-
}
|
|
1256
1254
|
/**
|
|
1257
1255
|
* An array of objects to represent dynamic columns.
|
|
1258
1256
|
* @group Props
|
|
@@ -1301,6 +1299,7 @@ class TreeTable extends BaseComponent {
|
|
|
1301
1299
|
* Index of the first row to be displayed.
|
|
1302
1300
|
* @group Props
|
|
1303
1301
|
*/
|
|
1302
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1304
1303
|
firstInput = input(0, { ...(ngDevMode ? { debugName: "firstInput" } : /* istanbul ignore next */ {}), alias: 'first', transform: numberAttribute });
|
|
1305
1304
|
/**
|
|
1306
1305
|
* Number of page links to display in paginator.
|
|
@@ -1503,12 +1502,14 @@ class TreeTable extends BaseComponent {
|
|
|
1503
1502
|
* Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
|
|
1504
1503
|
* @group Props
|
|
1505
1504
|
*/
|
|
1505
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
1506
1506
|
rowTrackBy = input((index, item) => item, /* @ts-ignore */
|
|
1507
1507
|
...(ngDevMode ? [{ debugName: "rowTrackBy" }] : /* istanbul ignore next */ []));
|
|
1508
1508
|
/**
|
|
1509
1509
|
* An array of FilterMetadata objects to provide external filters.
|
|
1510
1510
|
* @group Props
|
|
1511
1511
|
*/
|
|
1512
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1512
1513
|
filtersInput = input({}, { ...(ngDevMode ? { debugName: "filtersInput" } : /* istanbul ignore next */ {}), alias: 'filters' });
|
|
1513
1514
|
/**
|
|
1514
1515
|
* An array of fields as string to use in global filtering.
|
|
@@ -1543,23 +1544,27 @@ class TreeTable extends BaseComponent {
|
|
|
1543
1544
|
* Number of total records, defaults to length of value when not defined.
|
|
1544
1545
|
* @group Props
|
|
1545
1546
|
*/
|
|
1547
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1546
1548
|
totalRecordsInput = input(0, { ...(ngDevMode ? { debugName: "totalRecordsInput" } : /* istanbul ignore next */ {}), alias: 'totalRecords' });
|
|
1547
1549
|
/**
|
|
1548
1550
|
* Name of the field to sort data by default.
|
|
1549
1551
|
* @group Props
|
|
1550
1552
|
*/
|
|
1553
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1551
1554
|
sortFieldInput = input(undefined, { ...(ngDevMode ? { debugName: "sortFieldInput" } : /* istanbul ignore next */ {}), alias: 'sortField' });
|
|
1552
1555
|
/**
|
|
1553
1556
|
* Order to sort when default sorting is enabled.
|
|
1554
1557
|
* @defaultValue 1
|
|
1555
1558
|
* @group Props
|
|
1556
1559
|
*/
|
|
1560
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1557
1561
|
sortOrderInput = input(1, { ...(ngDevMode ? { debugName: "sortOrderInput" } : /* istanbul ignore next */ {}), alias: 'sortOrder' });
|
|
1558
1562
|
/**
|
|
1559
1563
|
* An array of SortMeta objects to sort the data by default in multiple sort mode.
|
|
1560
1564
|
* @defaultValue null
|
|
1561
1565
|
* @group Props
|
|
1562
1566
|
*/
|
|
1567
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1563
1568
|
multiSortMetaInput = input(undefined, { ...(ngDevMode ? { debugName: "multiSortMetaInput" } : /* istanbul ignore next */ {}), alias: 'multiSortMeta' });
|
|
1564
1569
|
/**
|
|
1565
1570
|
* Selected row in single mode or an array of values in multiple mode.
|
|
@@ -1567,12 +1572,14 @@ class TreeTable extends BaseComponent {
|
|
|
1567
1572
|
* @deprecated since v22, use `selectionKeys` instead for key-based selection state.
|
|
1568
1573
|
* @group Props
|
|
1569
1574
|
*/
|
|
1575
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1570
1576
|
selectionInput = input(undefined, { ...(ngDevMode ? { debugName: "selectionInput" } : /* istanbul ignore next */ {}), alias: 'selection' });
|
|
1571
1577
|
/**
|
|
1572
1578
|
* An array of objects to display.
|
|
1573
1579
|
* @defaultValue null
|
|
1574
1580
|
* @group Props
|
|
1575
1581
|
*/
|
|
1582
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1576
1583
|
valueInput = input(undefined, { ...(ngDevMode ? { debugName: "valueInput" } : /* istanbul ignore next */ {}), alias: 'value' });
|
|
1577
1584
|
/**
|
|
1578
1585
|
* A map of keys to control the selection state.
|
|
@@ -1972,8 +1979,6 @@ class TreeTable extends BaseComponent {
|
|
|
1972
1979
|
}
|
|
1973
1980
|
});
|
|
1974
1981
|
});
|
|
1975
|
-
// collapsedKeys effect: project the map onto each node's `expanded` flag so the existing
|
|
1976
|
-
// expansion engine keeps working unchanged (non-breaking when collapsedKeys is not provided).
|
|
1977
1982
|
effect(() => {
|
|
1978
1983
|
const val = this.collapsedKeys();
|
|
1979
1984
|
untracked(() => {
|
|
@@ -2001,6 +2006,9 @@ class TreeTable extends BaseComponent {
|
|
|
2001
2006
|
});
|
|
2002
2007
|
});
|
|
2003
2008
|
}
|
|
2009
|
+
onAfterViewChecked() {
|
|
2010
|
+
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
2011
|
+
}
|
|
2004
2012
|
onInit() {
|
|
2005
2013
|
if (this.lazy() && this.lazyLoadOnInit() && !this.virtualScroll()) {
|
|
2006
2014
|
this.onLazyLoad.emit(this.createLazyLoadMetadata());
|
|
@@ -2199,9 +2207,7 @@ class TreeTable extends BaseComponent {
|
|
|
2199
2207
|
});
|
|
2200
2208
|
}
|
|
2201
2209
|
else {
|
|
2202
|
-
nodes.sort((node1, node2) =>
|
|
2203
|
-
return this.multisortField(node1, node2, this._multiSortMeta, 0);
|
|
2204
|
-
});
|
|
2210
|
+
nodes.sort((node1, node2) => this.multisortField(node1, node2, this._multiSortMeta, 0));
|
|
2205
2211
|
}
|
|
2206
2212
|
for (let node of nodes) {
|
|
2207
2213
|
this.sortMultipleNodes(node.children);
|
|
@@ -2330,7 +2336,9 @@ class TreeTable extends BaseComponent {
|
|
|
2330
2336
|
onColumnResize(event) {
|
|
2331
2337
|
let containerLeft = getOffset(this.el?.nativeElement).left;
|
|
2332
2338
|
this.el?.nativeElement.setAttribute('data-p-unselectable-text', 'true');
|
|
2333
|
-
!this.$unstyled()
|
|
2339
|
+
if (!this.$unstyled()) {
|
|
2340
|
+
addStyle(this.el.nativeElement, { 'user-select': 'none' });
|
|
2341
|
+
}
|
|
2334
2342
|
this.resizeHelperViewChild().nativeElement.style.height = this.el?.nativeElement.offsetHeight + 'px';
|
|
2335
2343
|
this.resizeHelperViewChild().nativeElement.style.top = 0 + 'px';
|
|
2336
2344
|
this.resizeHelperViewChild().nativeElement.style.left = event.pageX - containerLeft + this.el?.nativeElement.scrollLeft + 'px';
|
|
@@ -2415,7 +2423,9 @@ class TreeTable extends BaseComponent {
|
|
|
2415
2423
|
}
|
|
2416
2424
|
this.resizeHelperViewChild().nativeElement.style.display = 'none';
|
|
2417
2425
|
this.el.nativeElement.removeAttribute('data-p-unselectable-text');
|
|
2418
|
-
!this.$unstyled()
|
|
2426
|
+
if (!this.$unstyled()) {
|
|
2427
|
+
this.el.nativeElement.style['user-select'] = '';
|
|
2428
|
+
}
|
|
2419
2429
|
}
|
|
2420
2430
|
findParentScrollableView(column) {
|
|
2421
2431
|
if (column) {
|
|
@@ -2458,7 +2468,6 @@ class TreeTable extends BaseComponent {
|
|
|
2458
2468
|
let dropHeaderOffset = getOffset(dropHeader);
|
|
2459
2469
|
if (this.draggedColumn != dropHeader) {
|
|
2460
2470
|
let targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
2461
|
-
let targetTop = containerOffset.top - dropHeaderOffset.top;
|
|
2462
2471
|
let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
2463
2472
|
this.reorderIndicatorUpViewChild().nativeElement.style.top = dropHeaderOffset.top - containerOffset.top - (this.reorderIconHeight - 1) + 'px';
|
|
2464
2473
|
this.reorderIndicatorDownViewChild().nativeElement.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
|
|
@@ -2642,6 +2651,7 @@ class TreeTable extends BaseComponent {
|
|
|
2642
2651
|
}
|
|
2643
2652
|
this.rowTouched = false;
|
|
2644
2653
|
}
|
|
2654
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2645
2655
|
handleRowTouchEnd(event) {
|
|
2646
2656
|
this.rowTouched = true;
|
|
2647
2657
|
}
|
|
@@ -2788,7 +2798,7 @@ class TreeTable extends BaseComponent {
|
|
|
2788
2798
|
// legacy selection support, will be removed in v18
|
|
2789
2799
|
if (node && this._selection) {
|
|
2790
2800
|
if (this.dataKey()) {
|
|
2791
|
-
if (
|
|
2801
|
+
if (Object.prototype.hasOwnProperty.call(node, 'checked')) {
|
|
2792
2802
|
return node['checked'];
|
|
2793
2803
|
}
|
|
2794
2804
|
else {
|
|
@@ -2990,7 +3000,7 @@ class TreeTable extends BaseComponent {
|
|
|
2990
3000
|
let globalMatch = false;
|
|
2991
3001
|
let paramsWithoutNode;
|
|
2992
3002
|
for (let prop in this.filters) {
|
|
2993
|
-
if (
|
|
3003
|
+
if (Object.prototype.hasOwnProperty.call(this.filters, prop) && prop !== 'global') {
|
|
2994
3004
|
let filterMeta = this.filters[prop];
|
|
2995
3005
|
let filterField = prop;
|
|
2996
3006
|
let filterValue = filterMeta.value;
|
|
@@ -3096,7 +3106,7 @@ class TreeTable extends BaseComponent {
|
|
|
3096
3106
|
hasFilter() {
|
|
3097
3107
|
let empty = true;
|
|
3098
3108
|
for (let prop in this.filters) {
|
|
3099
|
-
if (
|
|
3109
|
+
if (Object.prototype.hasOwnProperty.call(this.filters, prop)) {
|
|
3100
3110
|
empty = false;
|
|
3101
3111
|
break;
|
|
3102
3112
|
}
|
|
@@ -3133,9 +3143,11 @@ class TreeTable extends BaseComponent {
|
|
|
3133
3143
|
}
|
|
3134
3144
|
bindDocumentEditListener() {
|
|
3135
3145
|
if (!this.documentEditListener) {
|
|
3136
|
-
this.documentEditListener = this.renderer.listen(this.document, 'click', (
|
|
3146
|
+
this.documentEditListener = this.renderer.listen(this.document, 'click', () => {
|
|
3137
3147
|
if (this.editingCell && !this.editingCellClick && this.isEditingCellValid()) {
|
|
3138
|
-
!this.$unstyled()
|
|
3148
|
+
if (!this.$unstyled()) {
|
|
3149
|
+
removeClass(this.editingCell, 'p-cell-editing');
|
|
3150
|
+
}
|
|
3139
3151
|
this.editingCell = null;
|
|
3140
3152
|
this.onEditComplete.emit({ field: this.editingCellField, data: this.editingCellData });
|
|
3141
3153
|
this.editingCellField = null;
|
|
@@ -3159,8 +3171,8 @@ class TreeTable extends BaseComponent {
|
|
|
3159
3171
|
this.editingCellData = null;
|
|
3160
3172
|
this.initialized = null;
|
|
3161
3173
|
}
|
|
3162
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
3163
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: TreeTable, isStandalone: true, selector: "p-treetable, p-tree-table", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, tableStyleClass: { classPropertyName: "tableStyleClass", publicName: "tableStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoLayout: { classPropertyName: "autoLayout", publicName: "autoLayout", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, lazyLoadOnInit: { classPropertyName: "lazyLoadOnInit", publicName: "lazyLoadOnInit", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, firstInput: { classPropertyName: "firstInput", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", isSignal: true, isRequired: false, transformFunction: null }, paginatorPosition: { classPropertyName: "paginatorPosition", publicName: "paginatorPosition", isSignal: true, isRequired: false, transformFunction: null }, paginatorStyleClass: { classPropertyName: "paginatorStyleClass", publicName: "paginatorStyleClass", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownAppendTo: { classPropertyName: "paginatorDropdownAppendTo", publicName: "paginatorDropdownAppendTo", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageDropdown: { classPropertyName: "showJumpToPageDropdown", publicName: "showJumpToPageDropdown", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, defaultSortOrder: { classPropertyName: "defaultSortOrder", publicName: "defaultSortOrder", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, resetPageOnSort: { classPropertyName: "resetPageOnSort", publicName: "resetPageOnSort", isSignal: true, isRequired: false, transformFunction: null }, customSort: { classPropertyName: "customSort", publicName: "customSort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelection: { classPropertyName: "contextMenuSelection", publicName: "contextMenuSelection", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, compareSelectionBy: { classPropertyName: "compareSelectionBy", publicName: "compareSelectionBy", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, showLoader: { classPropertyName: "showLoader", publicName: "showLoader", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, 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 }, virtualScrollDelay: { classPropertyName: "virtualScrollDelay", publicName: "virtualScrollDelay", isSignal: true, isRequired: false, transformFunction: null }, frozenWidth: { classPropertyName: "frozenWidth", publicName: "frozenWidth", isSignal: true, isRequired: false, transformFunction: null }, frozenColumns: { classPropertyName: "frozenColumns", publicName: "frozenColumns", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, columnResizeMode: { classPropertyName: "columnResizeMode", publicName: "columnResizeMode", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, rowTrackBy: { classPropertyName: "rowTrackBy", publicName: "rowTrackBy", isSignal: true, isRequired: false, transformFunction: null }, filtersInput: { classPropertyName: "filtersInput", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, globalFilterFields: { classPropertyName: "globalFilterFields", publicName: "globalFilterFields", isSignal: true, isRequired: false, transformFunction: null }, filterDelay: { classPropertyName: "filterDelay", publicName: "filterDelay", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, paginatorLocale: { classPropertyName: "paginatorLocale", publicName: "paginatorLocale", isSignal: true, isRequired: false, transformFunction: null }, totalRecordsInput: { classPropertyName: "totalRecordsInput", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, sortFieldInput: { classPropertyName: "sortFieldInput", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrderInput: { classPropertyName: "sortOrderInput", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, multiSortMetaInput: { classPropertyName: "multiSortMetaInput", publicName: "multiSortMeta", isSignal: true, isRequired: false, transformFunction: null }, selectionInput: { classPropertyName: "selectionInput", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, valueInput: { classPropertyName: "valueInput", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collapsedKeys: { classPropertyName: "collapsedKeys", publicName: "collapsedKeys", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rows: "rowsChange", selectionChange: "selectionChange", contextMenuSelectionChange: "contextMenuSelectionChange", onFilter: "onFilter", onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onPage: "onPage", onSort: "onSort", onLazyLoad: "onLazyLoad", sortFunction: "sortFunction", onColResize: "onColResize", onColReorder: "onColReorder", onNodeSelect: "onNodeSelect", onNodeUnselect: "onNodeUnselect", onContextMenuSelect: "onContextMenuSelect", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", selectionKeysChange: "selectionKeysChange", collapsedKeysChange: "collapsedKeysChange" }, host: { properties: { "class": "cx('root')", "attr.data-p": "dataP()", "attr.data-scrollselectors": "'.p-treetable-scrollable-body'" } }, providers: [TreeTableService, TreeTableStyle, { provide: TREETABLE_INSTANCE, useExisting: TreeTable }, { provide: PARENT_INSTANCE, useExisting: TreeTable }], queries: [{ propertyName: "colGroupTemplate", first: true, predicate: ["colgroup"], isSignal: true }, { propertyName: "captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "bodyTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "summaryTemplate", first: true, predicate: ["summary"], isSignal: true }, { propertyName: "emptyMessageTemplate", first: true, predicate: ["emptymessage"], isSignal: true }, { propertyName: "paginatorLeftTemplate", first: true, predicate: ["paginatorleft"], isSignal: true }, { propertyName: "paginatorRightTemplate", first: true, predicate: ["paginatorright"], isSignal: true }, { propertyName: "paginatorDropdownItemTemplate", first: true, predicate: ["paginatordropdownitem"], isSignal: true }, { propertyName: "frozenHeaderTemplate", first: true, predicate: ["frozenheader"], isSignal: true }, { propertyName: "frozenBodyTemplate", first: true, predicate: ["frozenbody"], isSignal: true }, { propertyName: "frozenFooterTemplate", first: true, predicate: ["frozenfooter"], isSignal: true }, { propertyName: "frozenColGroupTemplate", first: true, predicate: ["frozencolgroup"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "reorderIndicatorUpIconTemplate", first: true, predicate: ["reorderindicatorupicon"], isSignal: true }, { propertyName: "reorderIndicatorDownIconTemplate", first: true, predicate: ["reorderindicatordownicon"], isSignal: true }, { propertyName: "sortIconTemplate", first: true, predicate: ["sorticon"], isSignal: true }, { propertyName: "checkboxIconTemplate", first: true, predicate: ["checkboxicon"], isSignal: true }, { propertyName: "headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"], isSignal: true }, { propertyName: "togglerIconTemplate", first: true, predicate: ["togglericon"], isSignal: true }, { propertyName: "paginatorFirstPageLinkIconTemplate", first: true, predicate: ["paginatorfirstpagelinkicon"], isSignal: true }, { propertyName: "paginatorLastPageLinkIconTemplate", first: true, predicate: ["paginatorlastpagelinkicon"], isSignal: true }, { propertyName: "paginatorPreviousPageLinkIconTemplate", first: true, predicate: ["paginatorpreviouspagelinkicon"], isSignal: true }, { propertyName: "paginatorNextPageLinkIconTemplate", first: true, predicate: ["paginatornextpagelinkicon"], isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], isSignal: true }], viewQueries: [{ propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true, isSignal: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true, isSignal: true }, { propertyName: "scrollableViewChild", first: true, predicate: ["scrollableView"], descendants: true, isSignal: true }, { propertyName: "scrollableFrozenViewChild", first: true, predicate: ["scrollableFrozenView"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3174
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TreeTable, isStandalone: true, selector: "p-treetable, p-tree-table", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, tableStyle: { classPropertyName: "tableStyle", publicName: "tableStyle", isSignal: true, isRequired: false, transformFunction: null }, tableStyleClass: { classPropertyName: "tableStyleClass", publicName: "tableStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoLayout: { classPropertyName: "autoLayout", publicName: "autoLayout", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, lazyLoadOnInit: { classPropertyName: "lazyLoadOnInit", publicName: "lazyLoadOnInit", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, firstInput: { classPropertyName: "firstInput", publicName: "first", isSignal: true, isRequired: false, transformFunction: null }, pageLinks: { classPropertyName: "pageLinks", publicName: "pageLinks", isSignal: true, isRequired: false, transformFunction: null }, rowsPerPageOptions: { classPropertyName: "rowsPerPageOptions", publicName: "rowsPerPageOptions", isSignal: true, isRequired: false, transformFunction: null }, alwaysShowPaginator: { classPropertyName: "alwaysShowPaginator", publicName: "alwaysShowPaginator", isSignal: true, isRequired: false, transformFunction: null }, paginatorPosition: { classPropertyName: "paginatorPosition", publicName: "paginatorPosition", isSignal: true, isRequired: false, transformFunction: null }, paginatorStyleClass: { classPropertyName: "paginatorStyleClass", publicName: "paginatorStyleClass", isSignal: true, isRequired: false, transformFunction: null }, paginatorDropdownAppendTo: { classPropertyName: "paginatorDropdownAppendTo", publicName: "paginatorDropdownAppendTo", isSignal: true, isRequired: false, transformFunction: null }, currentPageReportTemplate: { classPropertyName: "currentPageReportTemplate", publicName: "currentPageReportTemplate", isSignal: true, isRequired: false, transformFunction: null }, showCurrentPageReport: { classPropertyName: "showCurrentPageReport", publicName: "showCurrentPageReport", isSignal: true, isRequired: false, transformFunction: null }, showJumpToPageDropdown: { classPropertyName: "showJumpToPageDropdown", publicName: "showJumpToPageDropdown", isSignal: true, isRequired: false, transformFunction: null }, showFirstLastIcon: { classPropertyName: "showFirstLastIcon", publicName: "showFirstLastIcon", isSignal: true, isRequired: false, transformFunction: null }, showPageLinks: { classPropertyName: "showPageLinks", publicName: "showPageLinks", isSignal: true, isRequired: false, transformFunction: null }, defaultSortOrder: { classPropertyName: "defaultSortOrder", publicName: "defaultSortOrder", isSignal: true, isRequired: false, transformFunction: null }, sortMode: { classPropertyName: "sortMode", publicName: "sortMode", isSignal: true, isRequired: false, transformFunction: null }, resetPageOnSort: { classPropertyName: "resetPageOnSort", publicName: "resetPageOnSort", isSignal: true, isRequired: false, transformFunction: null }, customSort: { classPropertyName: "customSort", publicName: "customSort", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelection: { classPropertyName: "contextMenuSelection", publicName: "contextMenuSelection", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, compareSelectionBy: { classPropertyName: "compareSelectionBy", publicName: "compareSelectionBy", isSignal: true, isRequired: false, transformFunction: null }, rowHover: { classPropertyName: "rowHover", publicName: "rowHover", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, showLoader: { classPropertyName: "showLoader", publicName: "showLoader", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, 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 }, virtualScrollDelay: { classPropertyName: "virtualScrollDelay", publicName: "virtualScrollDelay", isSignal: true, isRequired: false, transformFunction: null }, frozenWidth: { classPropertyName: "frozenWidth", publicName: "frozenWidth", isSignal: true, isRequired: false, transformFunction: null }, frozenColumns: { classPropertyName: "frozenColumns", publicName: "frozenColumns", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, columnResizeMode: { classPropertyName: "columnResizeMode", publicName: "columnResizeMode", isSignal: true, isRequired: false, transformFunction: null }, reorderableColumns: { classPropertyName: "reorderableColumns", publicName: "reorderableColumns", isSignal: true, isRequired: false, transformFunction: null }, contextMenu: { classPropertyName: "contextMenu", publicName: "contextMenu", isSignal: true, isRequired: false, transformFunction: null }, rowTrackBy: { classPropertyName: "rowTrackBy", publicName: "rowTrackBy", isSignal: true, isRequired: false, transformFunction: null }, filtersInput: { classPropertyName: "filtersInput", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null }, globalFilterFields: { classPropertyName: "globalFilterFields", publicName: "globalFilterFields", isSignal: true, isRequired: false, transformFunction: null }, filterDelay: { classPropertyName: "filterDelay", publicName: "filterDelay", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, paginatorLocale: { classPropertyName: "paginatorLocale", publicName: "paginatorLocale", isSignal: true, isRequired: false, transformFunction: null }, totalRecordsInput: { classPropertyName: "totalRecordsInput", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, sortFieldInput: { classPropertyName: "sortFieldInput", publicName: "sortField", isSignal: true, isRequired: false, transformFunction: null }, sortOrderInput: { classPropertyName: "sortOrderInput", publicName: "sortOrder", isSignal: true, isRequired: false, transformFunction: null }, multiSortMetaInput: { classPropertyName: "multiSortMetaInput", publicName: "multiSortMeta", isSignal: true, isRequired: false, transformFunction: null }, selectionInput: { classPropertyName: "selectionInput", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, valueInput: { classPropertyName: "valueInput", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, selectionKeys: { classPropertyName: "selectionKeys", publicName: "selectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collapsedKeys: { classPropertyName: "collapsedKeys", publicName: "collapsedKeys", isSignal: true, isRequired: false, transformFunction: null }, showGridlines: { classPropertyName: "showGridlines", publicName: "showGridlines", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rows: "rowsChange", selectionChange: "selectionChange", contextMenuSelectionChange: "contextMenuSelectionChange", onFilter: "onFilter", onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onPage: "onPage", onSort: "onSort", onLazyLoad: "onLazyLoad", sortFunction: "sortFunction", onColResize: "onColResize", onColReorder: "onColReorder", onNodeSelect: "onNodeSelect", onNodeUnselect: "onNodeUnselect", onContextMenuSelect: "onContextMenuSelect", onHeaderCheckboxToggle: "onHeaderCheckboxToggle", onEditInit: "onEditInit", onEditComplete: "onEditComplete", onEditCancel: "onEditCancel", selectionKeysChange: "selectionKeysChange", collapsedKeysChange: "collapsedKeysChange" }, host: { properties: { "class": "cx('root')", "attr.data-p": "dataP()", "attr.data-scrollselectors": "'.p-treetable-scrollable-body'" } }, providers: [TreeTableService, TreeTableStyle, { provide: TREETABLE_INSTANCE, useExisting: TreeTable }, { provide: PARENT_INSTANCE, useExisting: TreeTable }], queries: [{ propertyName: "colGroupTemplate", first: true, predicate: ["colgroup"], isSignal: true }, { propertyName: "captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "bodyTemplate", first: true, predicate: ["body"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "summaryTemplate", first: true, predicate: ["summary"], isSignal: true }, { propertyName: "emptyMessageTemplate", first: true, predicate: ["emptymessage"], isSignal: true }, { propertyName: "paginatorLeftTemplate", first: true, predicate: ["paginatorleft"], isSignal: true }, { propertyName: "paginatorRightTemplate", first: true, predicate: ["paginatorright"], isSignal: true }, { propertyName: "paginatorDropdownItemTemplate", first: true, predicate: ["paginatordropdownitem"], isSignal: true }, { propertyName: "frozenHeaderTemplate", first: true, predicate: ["frozenheader"], isSignal: true }, { propertyName: "frozenBodyTemplate", first: true, predicate: ["frozenbody"], isSignal: true }, { propertyName: "frozenFooterTemplate", first: true, predicate: ["frozenfooter"], isSignal: true }, { propertyName: "frozenColGroupTemplate", first: true, predicate: ["frozencolgroup"], isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], isSignal: true }, { propertyName: "reorderIndicatorUpIconTemplate", first: true, predicate: ["reorderindicatorupicon"], isSignal: true }, { propertyName: "reorderIndicatorDownIconTemplate", first: true, predicate: ["reorderindicatordownicon"], isSignal: true }, { propertyName: "sortIconTemplate", first: true, predicate: ["sorticon"], isSignal: true }, { propertyName: "checkboxIconTemplate", first: true, predicate: ["checkboxicon"], isSignal: true }, { propertyName: "headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"], isSignal: true }, { propertyName: "togglerIconTemplate", first: true, predicate: ["togglericon"], isSignal: true }, { propertyName: "paginatorFirstPageLinkIconTemplate", first: true, predicate: ["paginatorfirstpagelinkicon"], isSignal: true }, { propertyName: "paginatorLastPageLinkIconTemplate", first: true, predicate: ["paginatorlastpagelinkicon"], isSignal: true }, { propertyName: "paginatorPreviousPageLinkIconTemplate", first: true, predicate: ["paginatorpreviouspagelinkicon"], isSignal: true }, { propertyName: "paginatorNextPageLinkIconTemplate", first: true, predicate: ["paginatornextpagelinkicon"], isSignal: true }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"], isSignal: true }], viewQueries: [{ propertyName: "resizeHelperViewChild", first: true, predicate: ["resizeHelper"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorUpViewChild", first: true, predicate: ["reorderIndicatorUp"], descendants: true, isSignal: true }, { propertyName: "reorderIndicatorDownViewChild", first: true, predicate: ["reorderIndicatorDown"], descendants: true, isSignal: true }, { propertyName: "tableViewChild", first: true, predicate: ["table"], descendants: true, isSignal: true }, { propertyName: "scrollableViewChild", first: true, predicate: ["scrollableView"], descendants: true, isSignal: true }, { propertyName: "scrollableFrozenViewChild", first: true, predicate: ["scrollableFrozenView"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
3164
3176
|
@if (showLoadingMask()) {
|
|
3165
3177
|
<div [pBind]="ptm('mask')" [class]="cx('mask')" animate.enter="p-overlay-mask-enter-active" animate.leave="p-overlay-mask-leave-active">
|
|
3166
3178
|
@if (loadingIcon()) {
|
|
@@ -3347,7 +3359,7 @@ class TreeTable extends BaseComponent {
|
|
|
3347
3359
|
}
|
|
3348
3360
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: PaginatorModule }, { kind: "component", type: i2.Paginator, selector: "p-paginator", inputs: ["pageLinkSize", "alwaysShow", "templateLeft", "templateRight", "dropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showFirstLastIcon", "totalRecords", "rows", "first", "rowsPerPageOptions", "showJumpToPageDropdown", "showJumpToPageInput", "jumpToPageItemTemplate", "showPageLinks", "locale", "dropdownItemTemplate", "appendTo"], outputs: ["rowsChange", "firstChange", "onPageChange"] }, { kind: "component", type: Spinner, selector: "svg[data-p-icon=\"spinner\"]" }, { kind: "component", type: ArrowDown, selector: "svg[data-p-icon=\"arrow-down\"]" }, { kind: "component", type: ArrowUp, selector: "svg[data-p-icon=\"arrow-up\"]" }, { kind: "component", type: TTScrollableView, selector: "[ttScrollableView]", inputs: ["ttScrollableView", "frozen", "scrollHeight"] }, { kind: "component", type: TTBody, selector: "[pTreeTableBody]", inputs: ["pTreeTableBody", "pTreeTableBodyTemplate", "frozen", "serializedNodes", "scrollerOptions"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
3349
3361
|
}
|
|
3350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
3362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTable, decorators: [{
|
|
3351
3363
|
type: Component,
|
|
3352
3364
|
args: [{
|
|
3353
3365
|
selector: 'p-treetable, p-tree-table',
|
|
@@ -3553,9 +3565,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
3553
3565
|
class TTSortableColumn extends BaseComponent {
|
|
3554
3566
|
hostName = 'TreeTable ';
|
|
3555
3567
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
3556
|
-
onAfterViewChecked() {
|
|
3557
|
-
this.bindDirectiveInstance.setAttrs(this.ptm('sortableColumn', { context: { sorted: this.sorted() } }));
|
|
3558
|
-
}
|
|
3559
3568
|
field = input(undefined, { ...(ngDevMode ? { debugName: "field" } : /* istanbul ignore next */ {}), alias: 'ttSortableColumn' });
|
|
3560
3569
|
ttSortableColumnDisabled = input(undefined, { ...(ngDevMode ? { debugName: "ttSortableColumnDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
3561
3570
|
sorted = signal(undefined, /* @ts-ignore */
|
|
@@ -3579,6 +3588,9 @@ class TTSortableColumn extends BaseComponent {
|
|
|
3579
3588
|
this.updateSortState();
|
|
3580
3589
|
});
|
|
3581
3590
|
}
|
|
3591
|
+
onAfterViewChecked() {
|
|
3592
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('sortableColumn', { context: { sorted: this.sorted() } }));
|
|
3593
|
+
}
|
|
3582
3594
|
onInit() {
|
|
3583
3595
|
if (this.isEnabled()) {
|
|
3584
3596
|
this.updateSortState();
|
|
@@ -3603,10 +3615,10 @@ class TTSortableColumn extends BaseComponent {
|
|
|
3603
3615
|
isEnabled() {
|
|
3604
3616
|
return this.ttSortableColumnDisabled() !== true;
|
|
3605
3617
|
}
|
|
3606
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
3607
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
3618
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSortableColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3619
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTSortableColumn, isStandalone: true, selector: "[ttSortableColumn]", inputs: { field: { classPropertyName: "field", publicName: "ttSortableColumn", isSignal: true, isRequired: false, transformFunction: null }, ttSortableColumnDisabled: { classPropertyName: "ttSortableColumnDisabled", publicName: "ttSortableColumnDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "columnheader" }, listeners: { "click": "onClick($event)", "keydown.enter": "onEnterKey($event)" }, properties: { "class": "cx(\"sortableColumn\")", "tabindex": "hostTabindex", "attr.aria-sort": "ariaSorted" } }, providers: [TreeTableStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
3608
3620
|
}
|
|
3609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
3621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSortableColumn, decorators: [{
|
|
3610
3622
|
type: Directive,
|
|
3611
3623
|
args: [{
|
|
3612
3624
|
selector: '[ttSortableColumn]',
|
|
@@ -3681,8 +3693,8 @@ class TTSortIcon extends BaseComponent {
|
|
|
3681
3693
|
isMultiSorted() {
|
|
3682
3694
|
return this.tt.sortMode() === 'multiple' && this.getMultiSortMetaIndex() > -1;
|
|
3683
3695
|
}
|
|
3684
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
3685
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
3696
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSortIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3697
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TTSortIcon, isStandalone: true, selector: "p-treetable-sort-icon, p-tree-table-sort-icon", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelDesc: { classPropertyName: "ariaLabelDesc", publicName: "ariaLabelDesc", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelAsc: { classPropertyName: "ariaLabelAsc", publicName: "ariaLabelAsc", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
|
|
3686
3698
|
@if (!tt.sortIconTemplate()) {
|
|
3687
3699
|
@if (sortOrder() === 0) {
|
|
3688
3700
|
<svg data-p-icon="sort-alt" [class]="cx('sortableColumnIcon')" [pBind]="ptm('sortableColumnIcon')" />
|
|
@@ -3704,7 +3716,7 @@ class TTSortIcon extends BaseComponent {
|
|
|
3704
3716
|
}
|
|
3705
3717
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i1$1.Badge, selector: "p-badge", inputs: ["badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "component", type: SortAlt, selector: "svg[data-p-icon=\"sort-alt\"]" }, { kind: "component", type: SortAmountUpAlt, selector: "svg[data-p-icon=\"sort-amount-up-alt\"]" }, { kind: "component", type: SortAmountDown, selector: "svg[data-p-icon=\"sort-amount-down\"]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3706
3718
|
}
|
|
3707
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
3719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSortIcon, decorators: [{
|
|
3708
3720
|
type: Component,
|
|
3709
3721
|
args: [{
|
|
3710
3722
|
selector: 'p-treetable-sort-icon, p-tree-table-sort-icon',
|
|
@@ -3750,7 +3762,9 @@ class TTResizableColumn extends BaseComponent {
|
|
|
3750
3762
|
if (this.isEnabled()) {
|
|
3751
3763
|
addClass(this.el.nativeElement, 'p-resizable-column');
|
|
3752
3764
|
this.resizer = this.renderer.createElement('span');
|
|
3753
|
-
!this.$unstyled()
|
|
3765
|
+
if (!this.$unstyled()) {
|
|
3766
|
+
this.renderer.addClass(this.resizer, 'p-column-resizer');
|
|
3767
|
+
}
|
|
3754
3768
|
this.resizer.setAttribute('data-pc-section', 'columnresizer');
|
|
3755
3769
|
this.renderer.appendChild(this.el.nativeElement, this.resizer);
|
|
3756
3770
|
this.resizerMouseDownListener = this.renderer.listen(this.resizer, 'mousedown', this.onMouseDown.bind(this));
|
|
@@ -3792,10 +3806,10 @@ class TTResizableColumn extends BaseComponent {
|
|
|
3792
3806
|
}
|
|
3793
3807
|
this.unbindDocumentEvents();
|
|
3794
3808
|
}
|
|
3795
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
3796
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
3809
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTResizableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3810
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTResizableColumn, isStandalone: true, selector: "[ttResizableColumn]", inputs: { ttResizableColumnDisabled: { classPropertyName: "ttResizableColumnDisabled", publicName: "ttResizableColumnDisabled", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
3797
3811
|
}
|
|
3798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
3812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTResizableColumn, decorators: [{
|
|
3799
3813
|
type: Directive,
|
|
3800
3814
|
args: [{
|
|
3801
3815
|
selector: '[ttResizableColumn]',
|
|
@@ -3875,10 +3889,10 @@ class TTReorderableColumn extends BaseComponent {
|
|
|
3875
3889
|
onDestroy() {
|
|
3876
3890
|
this.unbindEvents();
|
|
3877
3891
|
}
|
|
3878
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
3879
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
3892
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTReorderableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3893
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTReorderableColumn, isStandalone: true, selector: "[ttReorderableColumn]", inputs: { ttReorderableColumnDisabled: { classPropertyName: "ttReorderableColumnDisabled", publicName: "ttReorderableColumnDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "drop": "onDrop($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
3880
3894
|
}
|
|
3881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
3895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTReorderableColumn, decorators: [{
|
|
3882
3896
|
type: Directive,
|
|
3883
3897
|
args: [{
|
|
3884
3898
|
selector: '[ttReorderableColumn]',
|
|
@@ -3923,9 +3937,6 @@ class TTSelectableRow extends BaseComponent {
|
|
|
3923
3937
|
return this.isEnabled() ? 0 : null;
|
|
3924
3938
|
}
|
|
3925
3939
|
onKeyDown(event) {
|
|
3926
|
-
// Selection keys apply only while the row itself is focused. Keys from
|
|
3927
|
-
// focusables inside the row bubble through here — Enter/Space on the
|
|
3928
|
-
// toggler must stay a plain toggle, not become a selection.
|
|
3929
3940
|
if (event.target !== this.el?.nativeElement) {
|
|
3930
3941
|
return;
|
|
3931
3942
|
}
|
|
@@ -3980,10 +3991,10 @@ class TTSelectableRow extends BaseComponent {
|
|
|
3980
3991
|
isEnabled() {
|
|
3981
3992
|
return this.ttSelectableRowDisabled() !== true;
|
|
3982
3993
|
}
|
|
3983
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
3984
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
3994
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSelectableRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3995
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTSelectableRow, isStandalone: true, selector: "[ttSelectableRow]", inputs: { rowNode: { classPropertyName: "rowNode", publicName: "ttSelectableRow", isSignal: true, isRequired: false, transformFunction: null }, ttSelectableRowDisabled: { classPropertyName: "ttSelectableRowDisabled", publicName: "ttSelectableRowDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)", "touchend": "onTouchEnd($event)" }, properties: { "class": "cx(\"row\")", "attr.aria-selected": "selected()", "attr.tabindex": "hostTabindex" } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0 });
|
|
3985
3996
|
}
|
|
3986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
3997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSelectableRow, decorators: [{
|
|
3987
3998
|
type: Directive,
|
|
3988
3999
|
args: [{
|
|
3989
4000
|
selector: '[ttSelectableRow]',
|
|
@@ -4035,10 +4046,10 @@ class TTSelectableRowDblClick extends BaseComponent {
|
|
|
4035
4046
|
isEnabled() {
|
|
4036
4047
|
return this.ttSelectableRowDisabled() !== true;
|
|
4037
4048
|
}
|
|
4038
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4039
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
4049
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSelectableRowDblClick, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4050
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTSelectableRowDblClick, isStandalone: true, selector: "[ttSelectableRowDblClick]", inputs: { rowNode: { classPropertyName: "rowNode", publicName: "ttSelectableRowDblClick", isSignal: true, isRequired: false, transformFunction: null }, ttSelectableRowDisabled: { classPropertyName: "ttSelectableRowDisabled", publicName: "ttSelectableRowDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "dblclick": "onClick($event)" }, properties: { "class": "cx(\"row\")" } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0 });
|
|
4040
4051
|
}
|
|
4041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTSelectableRowDblClick, decorators: [{
|
|
4042
4053
|
type: Directive,
|
|
4043
4054
|
args: [{
|
|
4044
4055
|
selector: '[ttSelectableRowDblClick]',
|
|
@@ -4082,10 +4093,10 @@ class TTContextMenuRow extends BaseComponent {
|
|
|
4082
4093
|
isEnabled() {
|
|
4083
4094
|
return this.ttContextMenuRowDisabled() !== true;
|
|
4084
4095
|
}
|
|
4085
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4086
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
4096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTContextMenuRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4097
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTContextMenuRow, isStandalone: true, selector: "[ttContextMenuRow]", inputs: { rowNode: { classPropertyName: "rowNode", publicName: "ttContextMenuRow", isSignal: true, isRequired: false, transformFunction: null }, ttContextMenuRowDisabled: { classPropertyName: "ttContextMenuRowDisabled", publicName: "ttContextMenuRowDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "contextmenu": "onContextMenu($event)" }, properties: { "class": "cx(\"contextMenuRow\")", "tabindex": "hostTabindex" } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0 });
|
|
4087
4098
|
}
|
|
4088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTContextMenuRow, decorators: [{
|
|
4089
4100
|
type: Directive,
|
|
4090
4101
|
args: [{
|
|
4091
4102
|
selector: '[ttContextMenuRow]',
|
|
@@ -4104,6 +4115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
4104
4115
|
class TTCheckbox extends BaseComponent {
|
|
4105
4116
|
hostName = 'TreeTable';
|
|
4106
4117
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4118
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
4107
4119
|
rowNode = input(undefined, { ...(ngDevMode ? { debugName: "rowNode" } : /* istanbul ignore next */ {}), alias: 'value' });
|
|
4108
4120
|
checked = signal(undefined, /* @ts-ignore */
|
|
4109
4121
|
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
@@ -4153,8 +4165,8 @@ class TTCheckbox extends BaseComponent {
|
|
|
4153
4165
|
}
|
|
4154
4166
|
clearSelection();
|
|
4155
4167
|
}
|
|
4156
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4157
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
4168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TTCheckbox, isStandalone: true, selector: "p-treetable-checkbox, p-tree-table-checkbox", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rowNode: { classPropertyName: "rowNode", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], usesInheritance: true, ngImport: i0, template: `
|
|
4158
4170
|
<p-checkbox [ngModel]="checked()" [pt]="ptm('pcRowCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="disabled()" [indeterminate]="partialChecked()" [class]="cx('pcNodeCheckbox')" [tabIndex]="-1" [unstyled]="unstyled()">
|
|
4159
4171
|
@if (tt.checkboxIconTemplate()) {
|
|
4160
4172
|
<ng-template #icon>
|
|
@@ -4164,7 +4176,7 @@ class TTCheckbox extends BaseComponent {
|
|
|
4164
4176
|
</p-checkbox>
|
|
4165
4177
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4166
4178
|
}
|
|
4167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTCheckbox, decorators: [{
|
|
4168
4180
|
type: Component,
|
|
4169
4181
|
args: [{
|
|
4170
4182
|
selector: 'p-treetable-checkbox, p-tree-table-checkbox',
|
|
@@ -4243,8 +4255,8 @@ class TTHeaderCheckbox extends BaseComponent {
|
|
|
4243
4255
|
}
|
|
4244
4256
|
return checked;
|
|
4245
4257
|
}
|
|
4246
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4247
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
4258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTHeaderCheckbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4259
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TTHeaderCheckbox, isStandalone: true, selector: "p-treetableheadercheckbox, p-treetable-header-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
4248
4260
|
<p-checkbox [ngModel]="checked()" [pt]="ptm('pcHeaderCheckbox')" (onChange)="onClick($event)" [binary]="true" [disabled]="isDisabled" [unstyled]="unstyled()">
|
|
4249
4261
|
@if (tt.headerCheckboxIconTemplate()) {
|
|
4250
4262
|
<ng-template #icon>
|
|
@@ -4254,7 +4266,7 @@ class TTHeaderCheckbox extends BaseComponent {
|
|
|
4254
4266
|
</p-checkbox>
|
|
4255
4267
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4256
4268
|
}
|
|
4257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTHeaderCheckbox, decorators: [{
|
|
4258
4270
|
type: Component,
|
|
4259
4271
|
args: [{
|
|
4260
4272
|
selector: 'p-treetableheadercheckbox, p-treetable-header-checkbox',
|
|
@@ -4279,12 +4291,23 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4279
4291
|
field = input(undefined, { ...(ngDevMode ? { debugName: "field" } : /* istanbul ignore next */ {}), alias: 'ttEditableColumnField' });
|
|
4280
4292
|
ttEditableColumnDisabled = input(undefined, { ...(ngDevMode ? { debugName: "ttEditableColumnDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4281
4293
|
tt = inject(TREETABLE_INSTANCE);
|
|
4294
|
+
/**
|
|
4295
|
+
* Keyboard closes (Enter/Escape) must hand focus back somewhere — the editor
|
|
4296
|
+
* input unmounts, and without this the focus falls to <body>. The cell
|
|
4297
|
+
* editor host is a tab stop, so focus returns to it (Tab then continues to
|
|
4298
|
+
* the next focusable from the same position). The suppress flag keeps that
|
|
4299
|
+
* programmatic focus from immediately reopening the editor it just closed.
|
|
4300
|
+
*/
|
|
4301
|
+
suppressFocusOpen = false;
|
|
4282
4302
|
onAfterViewInit() {
|
|
4283
4303
|
if (this.isEnabled()) {
|
|
4284
|
-
!this.$unstyled()
|
|
4304
|
+
if (!this.$unstyled()) {
|
|
4305
|
+
addClass(this.el.nativeElement, 'p-editable-column');
|
|
4306
|
+
}
|
|
4285
4307
|
this.el?.nativeElement.setAttribute('data-p-editable-column', 'true');
|
|
4286
4308
|
}
|
|
4287
4309
|
}
|
|
4310
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4288
4311
|
onClick(event) {
|
|
4289
4312
|
if (this.isEnabled()) {
|
|
4290
4313
|
this.requestEdit();
|
|
@@ -4312,7 +4335,9 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4312
4335
|
return;
|
|
4313
4336
|
}
|
|
4314
4337
|
if (this.tt.editingCell) {
|
|
4315
|
-
!this.$unstyled()
|
|
4338
|
+
if (!this.$unstyled()) {
|
|
4339
|
+
removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
4340
|
+
}
|
|
4316
4341
|
// The cell being left keeps its editing marker otherwise — only
|
|
4317
4342
|
// Enter/Escape closes reset it, not switching to another cell.
|
|
4318
4343
|
this.tt.editingCell.setAttribute('data-p-cell-editing', 'false');
|
|
@@ -4326,7 +4351,9 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4326
4351
|
}
|
|
4327
4352
|
openCell() {
|
|
4328
4353
|
this.tt.updateEditingCell(this.el.nativeElement, this.data(), this.field());
|
|
4329
|
-
!this.$unstyled()
|
|
4354
|
+
if (!this.$unstyled()) {
|
|
4355
|
+
addClass(this.el.nativeElement, 'p-cell-editing');
|
|
4356
|
+
}
|
|
4330
4357
|
this.el?.nativeElement.setAttribute('data-p-cell-editing', 'true');
|
|
4331
4358
|
this.tt.onEditInit.emit({ field: this.field(), data: this.data() });
|
|
4332
4359
|
this.tt.editingCellClick = true;
|
|
@@ -4338,19 +4365,12 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4338
4365
|
}, 50);
|
|
4339
4366
|
}
|
|
4340
4367
|
closeEditingCell() {
|
|
4341
|
-
if (this.tt.editingCell)
|
|
4342
|
-
|
|
4368
|
+
if (this.tt.editingCell && !this.$unstyled()) {
|
|
4369
|
+
removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
4370
|
+
}
|
|
4343
4371
|
this.tt.editingCell = null;
|
|
4344
4372
|
this.tt.unbindDocumentEditListener();
|
|
4345
4373
|
}
|
|
4346
|
-
/**
|
|
4347
|
-
* Keyboard closes (Enter/Escape) must hand focus back somewhere — the editor
|
|
4348
|
-
* input unmounts, and without this the focus falls to <body>. The cell
|
|
4349
|
-
* editor host is a tab stop, so focus returns to it (Tab then continues to
|
|
4350
|
-
* the next focusable from the same position). The suppress flag keeps that
|
|
4351
|
-
* programmatic focus from immediately reopening the editor it just closed.
|
|
4352
|
-
*/
|
|
4353
|
-
suppressFocusOpen = false;
|
|
4354
4374
|
consumeSuppressedFocusOpen() {
|
|
4355
4375
|
const suppressed = this.suppressFocusOpen;
|
|
4356
4376
|
this.suppressFocusOpen = false;
|
|
@@ -4364,9 +4384,6 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4364
4384
|
}
|
|
4365
4385
|
}
|
|
4366
4386
|
onKeyDown(event) {
|
|
4367
|
-
// Only intercept keys while THIS cell's editor is open. Otherwise Enter/
|
|
4368
|
-
// Space must reach the cell's interactive children natively (e.g. the
|
|
4369
|
-
// row toggler button) and Tab must follow the normal tab order.
|
|
4370
4387
|
const editing = !!this.tt.editingCell && event.target instanceof Node && this.tt.editingCell.contains(event.target);
|
|
4371
4388
|
if (!editing) {
|
|
4372
4389
|
return;
|
|
@@ -4376,7 +4393,9 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4376
4393
|
if (event.keyCode == 13 && !event.shiftKey) {
|
|
4377
4394
|
if (this.tt.isEditingCellValid()) {
|
|
4378
4395
|
if (this.tt.editingCell) {
|
|
4379
|
-
!this.$unstyled()
|
|
4396
|
+
if (!this.$unstyled()) {
|
|
4397
|
+
removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
4398
|
+
}
|
|
4380
4399
|
this.el?.nativeElement.setAttribute('data-p-cell-editing', 'false');
|
|
4381
4400
|
}
|
|
4382
4401
|
this.closeEditingCell();
|
|
@@ -4389,7 +4408,9 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4389
4408
|
else if (event.keyCode == 27) {
|
|
4390
4409
|
if (this.tt.isEditingCellValid()) {
|
|
4391
4410
|
if (this.tt.editingCell) {
|
|
4392
|
-
!this.$unstyled()
|
|
4411
|
+
if (!this.$unstyled()) {
|
|
4412
|
+
removeClass(this.tt.editingCell, 'p-cell-editing');
|
|
4413
|
+
}
|
|
4393
4414
|
this.el?.nativeElement.setAttribute('data-p-cell-editing', 'false');
|
|
4394
4415
|
}
|
|
4395
4416
|
this.closeEditingCell();
|
|
@@ -4398,11 +4419,6 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4398
4419
|
}
|
|
4399
4420
|
event.preventDefault();
|
|
4400
4421
|
}
|
|
4401
|
-
// Tab is intentionally left to the browser: editable cells are real
|
|
4402
|
-
// tab stops (see TreeTableCellEditor.hostTabindex), so sequential
|
|
4403
|
-
// focus naturally reaches whatever comes next in DOM order — the
|
|
4404
|
-
// next cell, a row toggler between rows, or an element outside the
|
|
4405
|
-
// table. The focusout handler below commits the edit on the way out.
|
|
4406
4422
|
}
|
|
4407
4423
|
}
|
|
4408
4424
|
/**
|
|
@@ -4420,7 +4436,9 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4420
4436
|
return;
|
|
4421
4437
|
}
|
|
4422
4438
|
if (this.tt.isEditingCellValid()) {
|
|
4423
|
-
!this.$unstyled()
|
|
4439
|
+
if (!this.$unstyled()) {
|
|
4440
|
+
removeClass(cell, 'p-cell-editing');
|
|
4441
|
+
}
|
|
4424
4442
|
cell.setAttribute('data-p-cell-editing', 'false');
|
|
4425
4443
|
this.closeEditingCell();
|
|
4426
4444
|
this.tt.onEditComplete.emit({ field: this.field(), data: this.data() });
|
|
@@ -4429,10 +4447,10 @@ class TTEditableColumn extends BaseComponent {
|
|
|
4429
4447
|
isEnabled() {
|
|
4430
4448
|
return this.ttEditableColumnDisabled() !== true;
|
|
4431
4449
|
}
|
|
4432
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4433
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
4450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTEditableColumn, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4451
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTEditableColumn, isStandalone: true, selector: "[ttEditableColumn]", inputs: { data: { classPropertyName: "data", publicName: "ttEditableColumn", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "ttEditableColumnField", isSignal: true, isRequired: false, transformFunction: null }, ttEditableColumnDisabled: { classPropertyName: "ttEditableColumnDisabled", publicName: "ttEditableColumnDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)", "focusout": "onFocusOut($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
4434
4452
|
}
|
|
4435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTEditableColumn, decorators: [{
|
|
4436
4454
|
type: Directive,
|
|
4437
4455
|
args: [{
|
|
4438
4456
|
selector: '[ttEditableColumn]',
|
|
@@ -4452,6 +4470,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
4452
4470
|
class TreeTableCellEditor extends BaseComponent {
|
|
4453
4471
|
hostName = 'TreeTable';
|
|
4454
4472
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
4473
|
+
inputTemplate = contentChild('input', { ...(ngDevMode ? { debugName: "inputTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
4474
|
+
outputTemplate = contentChild('output', { ...(ngDevMode ? { debugName: "outputTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
4475
|
+
tt = inject(TREETABLE_INSTANCE);
|
|
4476
|
+
editableColumn = inject(TTEditableColumn);
|
|
4477
|
+
get editing() {
|
|
4478
|
+
return this.tt.editingCell === this.editableColumn.el.nativeElement;
|
|
4479
|
+
}
|
|
4455
4480
|
onAfterViewChecked() {
|
|
4456
4481
|
this.bindDirectiveInstance.setAttrs(this.ptm('cellEditor'));
|
|
4457
4482
|
}
|
|
@@ -4470,15 +4495,8 @@ class TreeTableCellEditor extends BaseComponent {
|
|
|
4470
4495
|
}
|
|
4471
4496
|
this.editableColumn.openCellFromFocus();
|
|
4472
4497
|
}
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
tt = inject(TREETABLE_INSTANCE);
|
|
4476
|
-
editableColumn = inject(TTEditableColumn);
|
|
4477
|
-
get editing() {
|
|
4478
|
-
return this.tt.editingCell === this.editableColumn.el.nativeElement;
|
|
4479
|
-
}
|
|
4480
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: TreeTableCellEditor, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4481
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: TreeTableCellEditor, isStandalone: true, selector: "p-treetablecelleditor, p-treetable-cell-editor", host: { listeners: { "focus": "onHostFocus()" }, properties: { "attr.tabindex": "hostTabindex" } }, queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], isSignal: true }, { propertyName: "outputTemplate", first: true, predicate: ["output"], isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
4498
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableCellEditor, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4499
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TreeTableCellEditor, isStandalone: true, selector: "p-treetablecelleditor, p-treetable-cell-editor", host: { listeners: { "focus": "onHostFocus()" }, properties: { "attr.tabindex": "hostTabindex" } }, queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], isSignal: true }, { propertyName: "outputTemplate", first: true, predicate: ["output"], isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
4482
4500
|
@if (editing) {
|
|
4483
4501
|
<ng-container *ngTemplateOutlet="inputTemplate()"></ng-container>
|
|
4484
4502
|
} @else {
|
|
@@ -4486,7 +4504,7 @@ class TreeTableCellEditor extends BaseComponent {
|
|
|
4486
4504
|
}
|
|
4487
4505
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4488
4506
|
}
|
|
4489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableCellEditor, decorators: [{
|
|
4490
4508
|
type: Component,
|
|
4491
4509
|
args: [{
|
|
4492
4510
|
selector: 'p-treetablecelleditor, p-treetable-cell-editor',
|
|
@@ -4512,6 +4530,8 @@ class TTRow extends BaseComponent {
|
|
|
4512
4530
|
hostName = 'TreeTable';
|
|
4513
4531
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
4514
4532
|
tt = inject(TREETABLE_INSTANCE);
|
|
4533
|
+
rowNode = input(undefined, { ...(ngDevMode ? { debugName: "rowNode" } : /* istanbul ignore next */ {}), alias: 'ttRow' });
|
|
4534
|
+
_componentStyle = inject(TreeTableStyle);
|
|
4515
4535
|
onAfterViewChecked() {
|
|
4516
4536
|
this.bindDirectiveInstance.setAttrs(this.ptm('row', this.ptmOptions()));
|
|
4517
4537
|
}
|
|
@@ -4524,12 +4544,7 @@ class TTRow extends BaseComponent {
|
|
|
4524
4544
|
get expanded() {
|
|
4525
4545
|
return this.rowNode()?.node['expanded'];
|
|
4526
4546
|
}
|
|
4527
|
-
rowNode = input(undefined, { ...(ngDevMode ? { debugName: "rowNode" } : /* istanbul ignore next */ {}), alias: 'ttRow' });
|
|
4528
|
-
_componentStyle = inject(TreeTableStyle);
|
|
4529
4547
|
onKeyDown(event) {
|
|
4530
|
-
// Skip row/cell keyboard navigation while a cell editor is open so that keys such as
|
|
4531
|
-
// ArrowLeft/ArrowRight move the caret inside the editor input instead of moving focus
|
|
4532
|
-
// out of the open editor and discarding the in-progress edit.
|
|
4533
4548
|
if (this.isEditingCellTarget(event.target)) {
|
|
4534
4549
|
return;
|
|
4535
4550
|
}
|
|
@@ -4662,10 +4677,10 @@ class TTRow extends BaseComponent {
|
|
|
4662
4677
|
}
|
|
4663
4678
|
};
|
|
4664
4679
|
}
|
|
4665
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4666
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
4680
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4681
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: TTRow, isStandalone: true, selector: "[ttRow]", inputs: { rowNode: { classPropertyName: "rowNode", publicName: "ttRow", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "row" }, listeners: { "keydown": "onKeyDown($event)" }, properties: { "class": "hostClass", "attr.aria-expanded": "expanded", "attr.aria-level": "level" } }, providers: [TreeTableStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
|
|
4667
4682
|
}
|
|
4668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TTRow, decorators: [{
|
|
4669
4684
|
type: Directive,
|
|
4670
4685
|
args: [{
|
|
4671
4686
|
selector: '[ttRow]',
|
|
@@ -4687,9 +4702,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
4687
4702
|
class TreeTableToggler extends BaseComponent {
|
|
4688
4703
|
hostName = 'TreeTable';
|
|
4689
4704
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
4690
|
-
onAfterViewChecked() {
|
|
4691
|
-
this.bindDirectiveInstance.setAttrs(this.ptm('toggler'));
|
|
4692
|
-
}
|
|
4693
4705
|
rowNode = input(/* @ts-ignore */
|
|
4694
4706
|
...(ngDevMode ? [undefined, { debugName: "rowNode" }] : /* istanbul ignore next */ []));
|
|
4695
4707
|
_componentStyle = inject(TreeTableStyle);
|
|
@@ -4707,10 +4719,10 @@ class TreeTableToggler extends BaseComponent {
|
|
|
4707
4719
|
get toggleButtonAriaLabel() {
|
|
4708
4720
|
return this.config.translation ? (this.rowNode()?.expanded ? this.config.translation?.aria?.collapseRow : this.config.translation?.aria?.expandRow) : undefined;
|
|
4709
4721
|
}
|
|
4722
|
+
onAfterViewChecked() {
|
|
4723
|
+
this.bindDirectiveInstance.setAttrs(this.ptm('toggler'));
|
|
4724
|
+
}
|
|
4710
4725
|
onClick(event) {
|
|
4711
|
-
// The toggle re-renders the tbody and destroys this button — remember the
|
|
4712
|
-
// row position so focus can be handed back to the recreated toggler
|
|
4713
|
-
// (keyboard flow: Tab → toggler, Enter/Space toggles, focus stays put).
|
|
4714
4726
|
const row = this.el?.nativeElement.closest('tr');
|
|
4715
4727
|
const tbody = row?.parentElement;
|
|
4716
4728
|
const rowIndex = row && tbody ? Array.prototype.indexOf.call(tbody.children, row) : -1;
|
|
@@ -4741,8 +4753,8 @@ class TreeTableToggler extends BaseComponent {
|
|
|
4741
4753
|
}
|
|
4742
4754
|
event.preventDefault();
|
|
4743
4755
|
}
|
|
4744
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4745
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
4756
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableToggler, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4757
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: TreeTableToggler, isStandalone: true, selector: "p-treetabletoggler, p-treetable-toggler", inputs: { rowNode: { classPropertyName: "rowNode", publicName: "rowNode", isSignal: true, isRequired: false, transformFunction: null } }, providers: [TreeTableStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
4746
4758
|
<button
|
|
4747
4759
|
type="button"
|
|
4748
4760
|
[class]="cx('toggler')"
|
|
@@ -4766,7 +4778,7 @@ class TreeTableToggler extends BaseComponent {
|
|
|
4766
4778
|
</button>
|
|
4767
4779
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: ChevronDown, selector: "svg[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: ChevronRight, selector: "svg[data-p-icon=\"chevron-right\"]" }], encapsulation: i0.ViewEncapsulation.None });
|
|
4768
4780
|
}
|
|
4769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableToggler, decorators: [{
|
|
4770
4782
|
type: Component,
|
|
4771
4783
|
args: [{
|
|
4772
4784
|
selector: 'p-treetabletoggler, p-treetable-toggler',
|
|
@@ -4802,8 +4814,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
4802
4814
|
}], propDecorators: { rowNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowNode", required: false }] }] } });
|
|
4803
4815
|
|
|
4804
4816
|
class TreeTableModule {
|
|
4805
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
4806
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.
|
|
4817
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4818
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.5", ngImport: i0, type: TreeTableModule, imports: [TreeTable,
|
|
4807
4819
|
TTBody,
|
|
4808
4820
|
TTScrollableView,
|
|
4809
4821
|
TTSortableColumn,
|
|
@@ -4835,7 +4847,7 @@ class TreeTableModule {
|
|
|
4835
4847
|
TTEditableColumn,
|
|
4836
4848
|
TreeTableCellEditor,
|
|
4837
4849
|
Scroller] });
|
|
4838
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.
|
|
4850
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableModule, imports: [TreeTable,
|
|
4839
4851
|
TTScrollableView,
|
|
4840
4852
|
TTSortIcon,
|
|
4841
4853
|
TTCheckbox,
|
|
@@ -4843,7 +4855,7 @@ class TreeTableModule {
|
|
|
4843
4855
|
TreeTableToggler,
|
|
4844
4856
|
Scroller, SharedModule] });
|
|
4845
4857
|
}
|
|
4846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
4858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: TreeTableModule, decorators: [{
|
|
4847
4859
|
type: NgModule,
|
|
4848
4860
|
args: [{
|
|
4849
4861
|
imports: [
|