@exhaustive-ui/core 3.0.0-alpha.0 → 22.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +11 -6
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '@exhaustive-ui/core/types/tieredmenu';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input,
|
|
3
|
+
import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, output, viewChild, linkedSignal, afterEveryRender, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, signal, effect, NgModule } from '@angular/core';
|
|
4
4
|
import { style } from '@exhaustive-ui/styles/tieredmenu';
|
|
5
5
|
import { BaseStyle } from '@exhaustive-ui/core/base';
|
|
6
6
|
import * as i2 from '@angular/common';
|
|
@@ -28,7 +28,7 @@ const classes = {
|
|
|
28
28
|
root: ({ instance }) => [
|
|
29
29
|
'p-tieredmenu p-component',
|
|
30
30
|
{
|
|
31
|
-
'p-tieredmenu-overlay': instance.popup,
|
|
31
|
+
'p-tieredmenu-overlay': instance.popup(),
|
|
32
32
|
'p-tieredmenu-mobile': instance.queryMatches()
|
|
33
33
|
}
|
|
34
34
|
],
|
|
@@ -130,32 +130,30 @@ class TieredMenuSub extends BaseComponent {
|
|
|
130
130
|
el = inject(ElementRef);
|
|
131
131
|
renderer = inject(Renderer2);
|
|
132
132
|
tieredMenu = inject(TieredMenu);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
ariaLabel;
|
|
151
|
-
ariaLabelledBy;
|
|
152
|
-
level = 0;
|
|
153
|
-
focusedItemId;
|
|
133
|
+
visible = input(false, /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
135
|
+
items = input.required(/* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
137
|
+
itemTemplate = input(undefined, /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
|
|
139
|
+
root = input(false, { ...(ngDevMode ? { debugName: "root" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
140
|
+
autoDisplay = input(undefined, { ...(ngDevMode ? { debugName: "autoDisplay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
141
|
+
menuId = input(undefined, /* @ts-ignore */
|
|
142
|
+
...(ngDevMode ? [{ debugName: "menuId" }] : /* istanbul ignore next */ []));
|
|
143
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
145
|
+
ariaLabelledBy = input(undefined, /* @ts-ignore */
|
|
146
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
147
|
+
level = input(0, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
148
|
+
focusedItemId = input(undefined, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
|
|
154
150
|
activeItemPath = input([], /* @ts-ignore */
|
|
155
151
|
...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
|
|
156
|
-
motionOptions
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
motionOptions = input(undefined, /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
|
|
154
|
+
tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
155
|
+
inlineStyles = input(undefined, /* @ts-ignore */
|
|
156
|
+
...(ngDevMode ? [{ debugName: "inlineStyles" }] : /* istanbul ignore next */ []));
|
|
159
157
|
itemClick = output();
|
|
160
158
|
itemMouseEnter = output();
|
|
161
159
|
menuFocus = output();
|
|
@@ -163,20 +161,20 @@ class TieredMenuSub extends BaseComponent {
|
|
|
163
161
|
menuKeydown = output();
|
|
164
162
|
sublistViewChild = viewChild('sublist', /* @ts-ignore */
|
|
165
163
|
...(ngDevMode ? [{ debugName: "sublistViewChild" }] : /* istanbul ignore next */ []));
|
|
166
|
-
render =
|
|
167
|
-
|
|
164
|
+
render = linkedSignal({ ...(ngDevMode ? { debugName: "render" } : /* istanbul ignore next */ {}), source: () => !!(this.visible() || this.root()),
|
|
165
|
+
computation: (show, previous) => show || (previous?.value ?? false) });
|
|
168
166
|
_componentStyle = inject(TieredMenuStyle);
|
|
169
167
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
170
168
|
$pcTieredMenu = inject(TIEREDMENU_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
171
169
|
$pcTieredMenuSub = inject(TIEREDMENUSUB_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
170
|
+
constructor() {
|
|
171
|
+
super();
|
|
172
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
175
173
|
}
|
|
176
174
|
positionSubmenu(sublist) {
|
|
177
175
|
if (isPlatformBrowser(this.tieredMenu.platformId)) {
|
|
178
176
|
if (sublist) {
|
|
179
|
-
nestedPosition(sublist, this.level);
|
|
177
|
+
nestedPosition(sublist, this.level());
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
}
|
|
@@ -184,7 +182,7 @@ class TieredMenuSub extends BaseComponent {
|
|
|
184
182
|
return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;
|
|
185
183
|
}
|
|
186
184
|
getItemId(processedItem) {
|
|
187
|
-
return processedItem.item?.id ?? `${this.menuId}_${processedItem.key}`;
|
|
185
|
+
return processedItem.item?.id ?? `${this.menuId()}_${processedItem.key}`;
|
|
188
186
|
}
|
|
189
187
|
getItemKey(processedItem) {
|
|
190
188
|
return this.getItemId(processedItem);
|
|
@@ -193,11 +191,13 @@ class TieredMenuSub extends BaseComponent {
|
|
|
193
191
|
return this.getItemProp(processedItem, 'label');
|
|
194
192
|
}
|
|
195
193
|
getAriaSetSize() {
|
|
196
|
-
return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
194
|
+
return this.items().filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
197
195
|
}
|
|
198
196
|
getAriaPosInset(index) {
|
|
199
197
|
return (index -
|
|
200
|
-
this.items
|
|
198
|
+
this.items()
|
|
199
|
+
.slice(0, index)
|
|
200
|
+
.filter((processedItem) => {
|
|
201
201
|
const isItemVisible = this.isItemVisible(processedItem);
|
|
202
202
|
const isVisibleSeparator = isItemVisible && this.getItemProp(processedItem, 'separator');
|
|
203
203
|
return !isItemVisible || isVisibleSeparator;
|
|
@@ -217,7 +217,7 @@ class TieredMenuSub extends BaseComponent {
|
|
|
217
217
|
return this.getItemProp(processedItem, 'disabled');
|
|
218
218
|
}
|
|
219
219
|
isItemFocused(processedItem) {
|
|
220
|
-
return this.focusedItemId === this.getItemId(processedItem);
|
|
220
|
+
return this.focusedItemId() === this.getItemId(processedItem);
|
|
221
221
|
}
|
|
222
222
|
isItemGroup(processedItem) {
|
|
223
223
|
return isNotEmpty(processedItem.items);
|
|
@@ -238,7 +238,7 @@ class TieredMenuSub extends BaseComponent {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
onItemMouseEnter(param) {
|
|
241
|
-
if (this.autoDisplay) {
|
|
241
|
+
if (this.autoDisplay()) {
|
|
242
242
|
const { event, processedItem } = param;
|
|
243
243
|
this.itemMouseEnter.emit({ originalEvent: event, processedItem });
|
|
244
244
|
}
|
|
@@ -253,8 +253,8 @@ class TieredMenuSub extends BaseComponent {
|
|
|
253
253
|
onAfterLeave() {
|
|
254
254
|
this.render.set(false);
|
|
255
255
|
}
|
|
256
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, deps:
|
|
257
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal:
|
|
256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: true, isRequired: false, transformFunction: null }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: true, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [
|
|
258
258
|
{ provide: TIEREDMENUSUB_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) },
|
|
259
259
|
{ provide: PARENT_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) }
|
|
260
260
|
], viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
@@ -262,392 +262,381 @@ class TieredMenuSub extends BaseComponent {
|
|
|
262
262
|
<ul
|
|
263
263
|
#sublist
|
|
264
264
|
role="menu"
|
|
265
|
-
[class]="root ? cx('rootList') : cx('submenu')"
|
|
266
|
-
[id]="menuId + '_list'"
|
|
267
|
-
[tabindex]="tabindex"
|
|
268
|
-
[attr.aria-label]="ariaLabel"
|
|
269
|
-
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
270
|
-
[attr.aria-activedescendant]="focusedItemId"
|
|
265
|
+
[class]="root() ? cx('rootList') : cx('submenu')"
|
|
266
|
+
[id]="menuId() + '_list'"
|
|
267
|
+
[tabindex]="tabindex()"
|
|
268
|
+
[attr.aria-label]="ariaLabel()"
|
|
269
|
+
[attr.aria-labelledBy]="ariaLabelledBy()"
|
|
270
|
+
[attr.aria-activedescendant]="focusedItemId()"
|
|
271
271
|
[attr.aria-orientation]="'vertical'"
|
|
272
|
-
[pBind]="_ptm(root ? 'rootList' : 'submenu')"
|
|
272
|
+
[pBind]="_ptm(root() ? 'rootList' : 'submenu')"
|
|
273
273
|
(keydown)="menuKeydown.emit($event)"
|
|
274
274
|
(focus)="menuFocus.emit($event)"
|
|
275
275
|
(blur)="menuBlur.emit($event)"
|
|
276
|
-
[style]="inlineStyles"
|
|
277
|
-
[pMotion]="root ? true : visible"
|
|
278
|
-
[pMotionDisabled]="root"
|
|
276
|
+
[style]="inlineStyles()"
|
|
277
|
+
[pMotion]="root() ? true : visible()"
|
|
278
|
+
[pMotionDisabled]="root()"
|
|
279
279
|
[pMotionAppear]="true"
|
|
280
280
|
[pMotionName]="'p-anchored-overlay'"
|
|
281
|
-
[pMotionOptions]="motionOptions"
|
|
281
|
+
[pMotionOptions]="motionOptions()"
|
|
282
282
|
(pMotionOnBeforeEnter)="onBeforeEnter($event)"
|
|
283
283
|
(pMotionOnAfterLeave)="onAfterLeave()"
|
|
284
284
|
>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
<
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
285
|
+
@for (processedItem of items(); track processedItem.key; let index = $index) {
|
|
286
|
+
@if (isItemVisible(processedItem) && getItemProp(processedItem, 'separator')) {
|
|
287
|
+
<li
|
|
288
|
+
[attr.id]="getItemId(processedItem)"
|
|
289
|
+
[style]="getItemProp(processedItem, 'style')"
|
|
290
|
+
[class]="cn(cx('separator'), getItemProp(processedItem, 'class'), getItemProp(processedItem, 'styleClass'))"
|
|
291
|
+
role="separator"
|
|
292
|
+
[pBind]="_ptm('separator')"
|
|
293
|
+
></li>
|
|
294
|
+
}
|
|
295
|
+
@if (isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')) {
|
|
296
|
+
<li
|
|
297
|
+
#listItem
|
|
298
|
+
role="menuitem"
|
|
299
|
+
[attr.id]="getItemId(processedItem)"
|
|
300
|
+
[attr.data-p-highlight]="isItemActive(processedItem)"
|
|
301
|
+
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
302
|
+
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
303
|
+
[attr.aria-label]="getItemLabel(processedItem)"
|
|
304
|
+
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
|
305
|
+
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
|
306
|
+
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
|
307
|
+
[attr.aria-setsize]="getAriaSetSize()"
|
|
308
|
+
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
309
|
+
[ngStyle]="getItemProp(processedItem, 'style')"
|
|
310
|
+
[class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
|
|
311
|
+
[pBind]="getPTOptions(processedItem, index, 'item')"
|
|
312
|
+
[pTooltip]="getItemProp(processedItem, 'tooltip')"
|
|
313
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
314
|
+
[pTooltipUnstyled]="unstyled()"
|
|
315
|
+
>
|
|
316
|
+
<div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
|
|
317
|
+
@if (!itemTemplate()) {
|
|
318
|
+
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
319
|
+
<a
|
|
320
|
+
[attr.href]="getItemProp(processedItem, 'url')"
|
|
321
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
322
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
323
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
324
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
325
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
326
|
+
[attr.tabindex]="-1"
|
|
327
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
328
|
+
pRipple
|
|
329
|
+
>
|
|
330
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
331
|
+
<span
|
|
332
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
333
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
334
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
335
|
+
[attr.tabindex]="-1"
|
|
336
|
+
>
|
|
337
|
+
</span>
|
|
338
|
+
}
|
|
339
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
340
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
341
|
+
{{ getItemLabel(processedItem) }}
|
|
342
|
+
</span>
|
|
343
|
+
} @else {
|
|
344
|
+
<span
|
|
345
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
346
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
347
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
348
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
349
|
+
></span>
|
|
350
|
+
}
|
|
351
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
352
|
+
<span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
353
|
+
}
|
|
354
354
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
410
|
-
></span>
|
|
411
|
-
</ng-template>
|
|
412
|
-
<span *ngIf="getItemProp(processedItem, 'badge')" [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
355
|
+
@if (isItemGroup(processedItem)) {
|
|
356
|
+
@if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
|
|
357
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
358
|
+
}
|
|
359
|
+
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
|
|
360
|
+
}
|
|
361
|
+
</a>
|
|
362
|
+
}
|
|
363
|
+
@if (getItemProp(processedItem, 'routerLink')) {
|
|
364
|
+
<a
|
|
365
|
+
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
|
366
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
367
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
368
|
+
[attr.tabindex]="-1"
|
|
369
|
+
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
|
370
|
+
[routerLinkActive]="'p-tieredmenu-item-link-active'"
|
|
371
|
+
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
|
372
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
373
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
374
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
375
|
+
[fragment]="getItemProp(processedItem, 'fragment')"
|
|
376
|
+
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
|
377
|
+
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
|
378
|
+
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
|
379
|
+
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
|
380
|
+
[state]="getItemProp(processedItem, 'state')"
|
|
381
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
382
|
+
pRipple
|
|
383
|
+
>
|
|
384
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
385
|
+
<span
|
|
386
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
387
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
388
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
389
|
+
[attr.aria-hidden]="true"
|
|
390
|
+
[attr.tabindex]="-1"
|
|
391
|
+
>
|
|
392
|
+
</span>
|
|
393
|
+
}
|
|
394
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
395
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
396
|
+
{{ getItemLabel(processedItem) }}
|
|
397
|
+
</span>
|
|
398
|
+
} @else {
|
|
399
|
+
<span
|
|
400
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
401
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
402
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
403
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
404
|
+
></span>
|
|
405
|
+
}
|
|
406
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
407
|
+
<span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
408
|
+
}
|
|
413
409
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
|
|
428
|
-
</ng-container>
|
|
429
|
-
</div>
|
|
410
|
+
@if (isItemGroup(processedItem)) {
|
|
411
|
+
@if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
|
|
412
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
413
|
+
}
|
|
414
|
+
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
|
|
415
|
+
}
|
|
416
|
+
</a>
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
@if (itemTemplate()) {
|
|
420
|
+
<ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
|
|
421
|
+
}
|
|
422
|
+
</div>
|
|
430
423
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
424
|
+
@if (isItemVisible(processedItem) && isItemGroup(processedItem)) {
|
|
425
|
+
<p-tieredmenusub
|
|
426
|
+
[items]="processedItem.items"
|
|
427
|
+
[itemTemplate]="itemTemplate()"
|
|
428
|
+
[autoDisplay]="autoDisplay()"
|
|
429
|
+
[menuId]="menuId()"
|
|
430
|
+
[visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
|
|
431
|
+
[activeItemPath]="activeItemPath()"
|
|
432
|
+
[focusedItemId]="focusedItemId()"
|
|
433
|
+
[ariaLabelledBy]="getItemId(processedItem)"
|
|
434
|
+
[level]="level() + 1"
|
|
435
|
+
(itemClick)="itemClick.emit($event)"
|
|
436
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
437
|
+
[pt]="pt()"
|
|
438
|
+
[motionOptions]="motionOptions()"
|
|
439
|
+
[unstyled]="unstyled()"
|
|
440
|
+
></p-tieredmenusub>
|
|
441
|
+
}
|
|
442
|
+
</li>
|
|
443
|
+
}
|
|
444
|
+
}
|
|
450
445
|
</ul>
|
|
451
446
|
}
|
|
452
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "
|
|
447
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
453
448
|
}
|
|
454
449
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, decorators: [{
|
|
455
450
|
type: Component,
|
|
456
451
|
args: [{
|
|
457
|
-
changeDetection: ChangeDetectionStrategy.
|
|
452
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
458
453
|
selector: 'p-tieredMenuSub, p-tieredmenusub',
|
|
459
|
-
standalone: true,
|
|
460
454
|
imports: [CommonModule, RouterModule, Ripple, TooltipModule, AngleRightIcon, SharedModule, BindModule, MotionModule],
|
|
461
455
|
template: `
|
|
462
456
|
@if (render()) {
|
|
463
457
|
<ul
|
|
464
458
|
#sublist
|
|
465
459
|
role="menu"
|
|
466
|
-
[class]="root ? cx('rootList') : cx('submenu')"
|
|
467
|
-
[id]="menuId + '_list'"
|
|
468
|
-
[tabindex]="tabindex"
|
|
469
|
-
[attr.aria-label]="ariaLabel"
|
|
470
|
-
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
471
|
-
[attr.aria-activedescendant]="focusedItemId"
|
|
460
|
+
[class]="root() ? cx('rootList') : cx('submenu')"
|
|
461
|
+
[id]="menuId() + '_list'"
|
|
462
|
+
[tabindex]="tabindex()"
|
|
463
|
+
[attr.aria-label]="ariaLabel()"
|
|
464
|
+
[attr.aria-labelledBy]="ariaLabelledBy()"
|
|
465
|
+
[attr.aria-activedescendant]="focusedItemId()"
|
|
472
466
|
[attr.aria-orientation]="'vertical'"
|
|
473
|
-
[pBind]="_ptm(root ? 'rootList' : 'submenu')"
|
|
467
|
+
[pBind]="_ptm(root() ? 'rootList' : 'submenu')"
|
|
474
468
|
(keydown)="menuKeydown.emit($event)"
|
|
475
469
|
(focus)="menuFocus.emit($event)"
|
|
476
470
|
(blur)="menuBlur.emit($event)"
|
|
477
|
-
[style]="inlineStyles"
|
|
478
|
-
[pMotion]="root ? true : visible"
|
|
479
|
-
[pMotionDisabled]="root"
|
|
471
|
+
[style]="inlineStyles()"
|
|
472
|
+
[pMotion]="root() ? true : visible()"
|
|
473
|
+
[pMotionDisabled]="root()"
|
|
480
474
|
[pMotionAppear]="true"
|
|
481
475
|
[pMotionName]="'p-anchored-overlay'"
|
|
482
|
-
[pMotionOptions]="motionOptions"
|
|
476
|
+
[pMotionOptions]="motionOptions()"
|
|
483
477
|
(pMotionOnBeforeEnter)="onBeforeEnter($event)"
|
|
484
478
|
(pMotionOnAfterLeave)="onAfterLeave()"
|
|
485
479
|
>
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
<
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
480
|
+
@for (processedItem of items(); track processedItem.key; let index = $index) {
|
|
481
|
+
@if (isItemVisible(processedItem) && getItemProp(processedItem, 'separator')) {
|
|
482
|
+
<li
|
|
483
|
+
[attr.id]="getItemId(processedItem)"
|
|
484
|
+
[style]="getItemProp(processedItem, 'style')"
|
|
485
|
+
[class]="cn(cx('separator'), getItemProp(processedItem, 'class'), getItemProp(processedItem, 'styleClass'))"
|
|
486
|
+
role="separator"
|
|
487
|
+
[pBind]="_ptm('separator')"
|
|
488
|
+
></li>
|
|
489
|
+
}
|
|
490
|
+
@if (isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')) {
|
|
491
|
+
<li
|
|
492
|
+
#listItem
|
|
493
|
+
role="menuitem"
|
|
494
|
+
[attr.id]="getItemId(processedItem)"
|
|
495
|
+
[attr.data-p-highlight]="isItemActive(processedItem)"
|
|
496
|
+
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
497
|
+
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
498
|
+
[attr.aria-label]="getItemLabel(processedItem)"
|
|
499
|
+
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
|
500
|
+
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
|
501
|
+
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
|
502
|
+
[attr.aria-setsize]="getAriaSetSize()"
|
|
503
|
+
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
504
|
+
[ngStyle]="getItemProp(processedItem, 'style')"
|
|
505
|
+
[class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
|
|
506
|
+
[pBind]="getPTOptions(processedItem, index, 'item')"
|
|
507
|
+
[pTooltip]="getItemProp(processedItem, 'tooltip')"
|
|
508
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
509
|
+
[pTooltipUnstyled]="unstyled()"
|
|
510
|
+
>
|
|
511
|
+
<div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
|
|
512
|
+
@if (!itemTemplate()) {
|
|
513
|
+
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
514
|
+
<a
|
|
515
|
+
[attr.href]="getItemProp(processedItem, 'url')"
|
|
516
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
517
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
518
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
519
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
520
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
521
|
+
[attr.tabindex]="-1"
|
|
522
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
523
|
+
pRipple
|
|
524
|
+
>
|
|
525
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
526
|
+
<span
|
|
527
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
528
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
529
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
530
|
+
[attr.tabindex]="-1"
|
|
531
|
+
>
|
|
532
|
+
</span>
|
|
533
|
+
}
|
|
534
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
535
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
536
|
+
{{ getItemLabel(processedItem) }}
|
|
537
|
+
</span>
|
|
538
|
+
} @else {
|
|
539
|
+
<span
|
|
540
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
541
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
542
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
543
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
544
|
+
></span>
|
|
545
|
+
}
|
|
546
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
547
|
+
<span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
548
|
+
}
|
|
555
549
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
611
|
-
></span>
|
|
612
|
-
</ng-template>
|
|
613
|
-
<span *ngIf="getItemProp(processedItem, 'badge')" [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
550
|
+
@if (isItemGroup(processedItem)) {
|
|
551
|
+
@if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
|
|
552
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
553
|
+
}
|
|
554
|
+
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
|
|
555
|
+
}
|
|
556
|
+
</a>
|
|
557
|
+
}
|
|
558
|
+
@if (getItemProp(processedItem, 'routerLink')) {
|
|
559
|
+
<a
|
|
560
|
+
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
|
561
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
562
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
563
|
+
[attr.tabindex]="-1"
|
|
564
|
+
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
|
565
|
+
[routerLinkActive]="'p-tieredmenu-item-link-active'"
|
|
566
|
+
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
|
567
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
568
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
569
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
570
|
+
[fragment]="getItemProp(processedItem, 'fragment')"
|
|
571
|
+
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
|
572
|
+
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
|
573
|
+
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
|
574
|
+
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
|
575
|
+
[state]="getItemProp(processedItem, 'state')"
|
|
576
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
577
|
+
pRipple
|
|
578
|
+
>
|
|
579
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
580
|
+
<span
|
|
581
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
582
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
583
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
584
|
+
[attr.aria-hidden]="true"
|
|
585
|
+
[attr.tabindex]="-1"
|
|
586
|
+
>
|
|
587
|
+
</span>
|
|
588
|
+
}
|
|
589
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
590
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
591
|
+
{{ getItemLabel(processedItem) }}
|
|
592
|
+
</span>
|
|
593
|
+
} @else {
|
|
594
|
+
<span
|
|
595
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
596
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
597
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
598
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
599
|
+
></span>
|
|
600
|
+
}
|
|
601
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
602
|
+
<span [class]="cn(cx('itemBadge'), getItemProp(processedItem, 'badgeStyleClass'))">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
603
|
+
}
|
|
614
604
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
|
|
629
|
-
</ng-container>
|
|
630
|
-
</div>
|
|
605
|
+
@if (isItemGroup(processedItem)) {
|
|
606
|
+
@if (!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()) {
|
|
607
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
608
|
+
}
|
|
609
|
+
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
|
|
610
|
+
}
|
|
611
|
+
</a>
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
@if (itemTemplate()) {
|
|
615
|
+
<ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
|
|
616
|
+
}
|
|
617
|
+
</div>
|
|
631
618
|
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
619
|
+
@if (isItemVisible(processedItem) && isItemGroup(processedItem)) {
|
|
620
|
+
<p-tieredmenusub
|
|
621
|
+
[items]="processedItem.items"
|
|
622
|
+
[itemTemplate]="itemTemplate()"
|
|
623
|
+
[autoDisplay]="autoDisplay()"
|
|
624
|
+
[menuId]="menuId()"
|
|
625
|
+
[visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
|
|
626
|
+
[activeItemPath]="activeItemPath()"
|
|
627
|
+
[focusedItemId]="focusedItemId()"
|
|
628
|
+
[ariaLabelledBy]="getItemId(processedItem)"
|
|
629
|
+
[level]="level() + 1"
|
|
630
|
+
(itemClick)="itemClick.emit($event)"
|
|
631
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
632
|
+
[pt]="pt()"
|
|
633
|
+
[motionOptions]="motionOptions()"
|
|
634
|
+
[unstyled]="unstyled()"
|
|
635
|
+
></p-tieredmenusub>
|
|
636
|
+
}
|
|
637
|
+
</li>
|
|
638
|
+
}
|
|
639
|
+
}
|
|
651
640
|
</ul>
|
|
652
641
|
}
|
|
653
642
|
`,
|
|
@@ -658,46 +647,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
658
647
|
],
|
|
659
648
|
hostDirectives: [Bind]
|
|
660
649
|
}]
|
|
661
|
-
}], propDecorators: { visible: [{
|
|
662
|
-
type: Input
|
|
663
|
-
}], items: [{
|
|
664
|
-
type: Input
|
|
665
|
-
}], itemTemplate: [{
|
|
666
|
-
type: Input
|
|
667
|
-
}], root: [{
|
|
668
|
-
type: Input,
|
|
669
|
-
args: [{ transform: booleanAttribute }]
|
|
670
|
-
}], autoDisplay: [{
|
|
671
|
-
type: Input,
|
|
672
|
-
args: [{ transform: booleanAttribute }]
|
|
673
|
-
}], autoZIndex: [{
|
|
674
|
-
type: Input,
|
|
675
|
-
args: [{ transform: booleanAttribute }]
|
|
676
|
-
}], baseZIndex: [{
|
|
677
|
-
type: Input,
|
|
678
|
-
args: [{ transform: numberAttribute }]
|
|
679
|
-
}], popup: [{
|
|
680
|
-
type: Input,
|
|
681
|
-
args: [{ transform: booleanAttribute }]
|
|
682
|
-
}], menuId: [{
|
|
683
|
-
type: Input
|
|
684
|
-
}], ariaLabel: [{
|
|
685
|
-
type: Input
|
|
686
|
-
}], ariaLabelledBy: [{
|
|
687
|
-
type: Input
|
|
688
|
-
}], level: [{
|
|
689
|
-
type: Input,
|
|
690
|
-
args: [{ transform: numberAttribute }]
|
|
691
|
-
}], focusedItemId: [{
|
|
692
|
-
type: Input
|
|
693
|
-
}], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: false }] }], motionOptions: [{
|
|
694
|
-
type: Input
|
|
695
|
-
}], tabindex: [{
|
|
696
|
-
type: Input,
|
|
697
|
-
args: [{ transform: numberAttribute }]
|
|
698
|
-
}], inlineStyles: [{
|
|
699
|
-
type: Input
|
|
700
|
-
}], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemMouseEnter: [{ type: i0.Output, args: ["itemMouseEnter"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }], menuKeydown: [{ type: i0.Output, args: ["menuKeydown"] }], sublistViewChild: [{ type: i0.ViewChild, args: ['sublist', { isSignal: true }] }] } });
|
|
650
|
+
}], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], autoDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisplay", required: false }] }], menuId: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], focusedItemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedItemId", required: false }] }], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], inlineStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineStyles", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemMouseEnter: [{ type: i0.Output, args: ["itemMouseEnter"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }], menuKeydown: [{ type: i0.Output, args: ["menuKeydown"] }], sublistViewChild: [{ type: i0.ViewChild, args: ['sublist', { isSignal: true }] }] } });
|
|
701
651
|
/**
|
|
702
652
|
* TieredMenu displays submenus in nested overlays.
|
|
703
653
|
* @group Components
|
|
@@ -709,86 +659,77 @@ class TieredMenu extends BaseComponent {
|
|
|
709
659
|
* An array of menuitems.
|
|
710
660
|
* @group Props
|
|
711
661
|
*/
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
this._processedItems = this.createProcessedItems(this._model || []);
|
|
715
|
-
}
|
|
716
|
-
get model() {
|
|
717
|
-
return this._model;
|
|
718
|
-
}
|
|
662
|
+
model = input(undefined, /* @ts-ignore */
|
|
663
|
+
...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
|
|
719
664
|
/**
|
|
720
665
|
* Defines if menu would displayed as a popup.
|
|
721
666
|
* @group Props
|
|
722
667
|
*/
|
|
723
|
-
popup;
|
|
668
|
+
popup = input(undefined, { ...(ngDevMode ? { debugName: "popup" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
724
669
|
/**
|
|
725
670
|
* Inline style of the component.
|
|
726
671
|
* @group Props
|
|
727
672
|
*/
|
|
728
|
-
style
|
|
673
|
+
style = input(undefined, /* @ts-ignore */
|
|
674
|
+
...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
729
675
|
/**
|
|
730
676
|
* Style class of the component.
|
|
731
677
|
* @group Props
|
|
732
678
|
*/
|
|
733
|
-
styleClass
|
|
679
|
+
styleClass = input(undefined, /* @ts-ignore */
|
|
680
|
+
...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
734
681
|
/**
|
|
735
682
|
* The breakpoint to define the maximum width boundary.
|
|
736
683
|
* @group Props
|
|
737
684
|
*/
|
|
738
|
-
breakpoint = '960px'
|
|
685
|
+
breakpoint = input('960px', /* @ts-ignore */
|
|
686
|
+
...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
|
|
739
687
|
/**
|
|
740
688
|
* Whether to automatically manage layering.
|
|
741
689
|
* @group Props
|
|
742
690
|
*/
|
|
743
|
-
autoZIndex = true;
|
|
691
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
744
692
|
/**
|
|
745
693
|
* Base zIndex value to use in layering.
|
|
746
694
|
* @group Props
|
|
747
695
|
*/
|
|
748
|
-
baseZIndex = 0;
|
|
696
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
749
697
|
/**
|
|
750
698
|
* Whether to show a root submenu on mouse over.
|
|
751
699
|
* @defaultValue true
|
|
752
700
|
* @group Props
|
|
753
701
|
*/
|
|
754
|
-
autoDisplay = true;
|
|
755
|
-
/**
|
|
756
|
-
* Transition options of the show animation.
|
|
757
|
-
* @group Props
|
|
758
|
-
* @deprecated since v21.0.0, use `motionOptions` instead.
|
|
759
|
-
*/
|
|
760
|
-
showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
|
|
761
|
-
/**
|
|
762
|
-
* Transition options of the hide animation.
|
|
763
|
-
* @group Props
|
|
764
|
-
* @deprecated since v21.0.0, use `motionOptions` instead.
|
|
765
|
-
*/
|
|
766
|
-
hideTransitionOptions = '.1s linear';
|
|
702
|
+
autoDisplay = input(true, { ...(ngDevMode ? { debugName: "autoDisplay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
767
703
|
/**
|
|
768
704
|
* Current id state as a string.
|
|
769
705
|
* @group Props
|
|
770
706
|
*/
|
|
771
|
-
id
|
|
707
|
+
id = input(undefined, /* @ts-ignore */
|
|
708
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
709
|
+
_id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
|
|
710
|
+
...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
|
|
772
711
|
/**
|
|
773
712
|
* Defines a string value that labels an interactive element.
|
|
774
713
|
* @group Props
|
|
775
714
|
*/
|
|
776
|
-
ariaLabel
|
|
715
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
716
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
777
717
|
/**
|
|
778
718
|
* Identifier of the underlying input element.
|
|
779
719
|
* @group Props
|
|
780
720
|
*/
|
|
781
|
-
ariaLabelledBy
|
|
721
|
+
ariaLabelledBy = input(undefined, /* @ts-ignore */
|
|
722
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
782
723
|
/**
|
|
783
724
|
* When present, it specifies that the component should be disabled.
|
|
784
725
|
* @group Props
|
|
785
726
|
*/
|
|
786
|
-
disabled = false;
|
|
727
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
787
728
|
/**
|
|
788
729
|
* Index of the element in tabbing order.
|
|
789
730
|
* @group Props
|
|
790
731
|
*/
|
|
791
|
-
tabindex = 0;
|
|
732
|
+
tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
792
733
|
/**
|
|
793
734
|
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
794
735
|
* @defaultValue 'self'
|
|
@@ -841,47 +782,60 @@ class TieredMenu extends BaseComponent {
|
|
|
841
782
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
842
783
|
render = signal(false, /* @ts-ignore */
|
|
843
784
|
...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
|
|
844
|
-
container
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
785
|
+
container = signal(undefined, /* @ts-ignore */
|
|
786
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
787
|
+
outsideClickListener = signal(undefined, /* @ts-ignore */
|
|
788
|
+
...(ngDevMode ? [{ debugName: "outsideClickListener" }] : /* istanbul ignore next */ []));
|
|
789
|
+
resizeListener = signal(undefined, /* @ts-ignore */
|
|
790
|
+
...(ngDevMode ? [{ debugName: "resizeListener" }] : /* istanbul ignore next */ []));
|
|
791
|
+
scrollHandler = signal(undefined, /* @ts-ignore */
|
|
792
|
+
...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
|
|
793
|
+
target = signal(undefined, /* @ts-ignore */
|
|
794
|
+
...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
|
|
795
|
+
relatedTarget = signal(undefined, /* @ts-ignore */
|
|
796
|
+
...(ngDevMode ? [{ debugName: "relatedTarget" }] : /* istanbul ignore next */ []));
|
|
797
|
+
visible = signal(undefined, /* @ts-ignore */
|
|
798
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
799
|
+
dirty = signal(false, /* @ts-ignore */
|
|
800
|
+
...(ngDevMode ? [{ debugName: "dirty" }] : /* istanbul ignore next */ []));
|
|
801
|
+
focused = signal(false, /* @ts-ignore */
|
|
802
|
+
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
853
803
|
activeItemPath = signal([], /* @ts-ignore */
|
|
854
804
|
...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
|
|
855
|
-
number = signal(0, /* @ts-ignore */
|
|
856
|
-
...(ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []));
|
|
857
805
|
focusedItemInfo = signal({ index: -1, level: 0, parentKey: '', item: null }, /* @ts-ignore */
|
|
858
806
|
...(ngDevMode ? [{ debugName: "focusedItemInfo" }] : /* istanbul ignore next */ []));
|
|
859
|
-
searchValue = ''
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
807
|
+
searchValue = signal('', /* @ts-ignore */
|
|
808
|
+
...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
|
|
809
|
+
searchTimeout = signal(undefined, /* @ts-ignore */
|
|
810
|
+
...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
|
|
863
811
|
_componentStyle = inject(TieredMenuStyle);
|
|
864
812
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
865
|
-
matchMediaListener
|
|
866
|
-
|
|
813
|
+
matchMediaListener = signal(undefined, /* @ts-ignore */
|
|
814
|
+
...(ngDevMode ? [{ debugName: "matchMediaListener" }] : /* istanbul ignore next */ []));
|
|
815
|
+
query = signal(undefined, /* @ts-ignore */
|
|
816
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
867
817
|
queryMatches = signal(false, /* @ts-ignore */
|
|
868
818
|
...(ngDevMode ? [{ debugName: "queryMatches" }] : /* istanbul ignore next */ []));
|
|
869
|
-
_submenuIconTemplate
|
|
870
|
-
|
|
871
|
-
|
|
819
|
+
_submenuIconTemplate = computed(() => this.templates()
|
|
820
|
+
.filter((item) => item.getType() === 'submenuicon')
|
|
821
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
822
|
+
...(ngDevMode ? [{ debugName: "_submenuIconTemplate" }] : /* istanbul ignore next */ []));
|
|
823
|
+
_itemTemplate = computed(() => this.templates()
|
|
824
|
+
.filter((item) => item.getType() !== 'submenuicon')
|
|
825
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
826
|
+
...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
|
|
827
|
+
visibleItems = computed(() => {
|
|
872
828
|
const processedItem = this.activeItemPath().find((p) => p.key === this.focusedItemInfo().parentKey);
|
|
873
|
-
return processedItem ? processedItem.items : this.processedItems;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
return this._processedItems;
|
|
880
|
-
}
|
|
881
|
-
get focusedItemId() {
|
|
829
|
+
return processedItem ? processedItem.items : this.processedItems();
|
|
830
|
+
}, /* @ts-ignore */
|
|
831
|
+
...(ngDevMode ? [{ debugName: "visibleItems" }] : /* istanbul ignore next */ []));
|
|
832
|
+
processedItems = computed(() => this.createProcessedItems(this.model() || []), /* @ts-ignore */
|
|
833
|
+
...(ngDevMode ? [{ debugName: "processedItems" }] : /* istanbul ignore next */ []));
|
|
834
|
+
focusedItemId = computed(() => {
|
|
882
835
|
const focusedItemInfo = this.focusedItemInfo();
|
|
883
|
-
return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this.
|
|
884
|
-
}
|
|
836
|
+
return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this._id()}${isNotEmpty(focusedItemInfo.parentKey) ? '_' + focusedItemInfo.parentKey : ''}_${focusedItemInfo.index}` : null;
|
|
837
|
+
}, /* @ts-ignore */
|
|
838
|
+
...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
|
|
885
839
|
constructor() {
|
|
886
840
|
super();
|
|
887
841
|
effect(() => {
|
|
@@ -895,46 +849,29 @@ class TieredMenu extends BaseComponent {
|
|
|
895
849
|
this.unbindResizeListener();
|
|
896
850
|
}
|
|
897
851
|
});
|
|
898
|
-
|
|
899
|
-
onAfterViewChecked() {
|
|
900
|
-
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
852
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
901
853
|
}
|
|
902
854
|
onInit() {
|
|
903
855
|
this.bindMatchMediaListener();
|
|
904
|
-
this.id = this.id || uuid('pn_id_');
|
|
905
|
-
}
|
|
906
|
-
onAfterContentInit() {
|
|
907
|
-
this.templates()?.forEach((item) => {
|
|
908
|
-
switch (item.getType()) {
|
|
909
|
-
case 'submenuicon':
|
|
910
|
-
this._submenuIconTemplate = item.template;
|
|
911
|
-
break;
|
|
912
|
-
case 'item':
|
|
913
|
-
this._itemTemplate = item.template;
|
|
914
|
-
break;
|
|
915
|
-
default:
|
|
916
|
-
this._itemTemplate = item.template;
|
|
917
|
-
break;
|
|
918
|
-
}
|
|
919
|
-
});
|
|
920
856
|
}
|
|
921
857
|
bindMatchMediaListener() {
|
|
922
858
|
if (isPlatformBrowser(this.platformId)) {
|
|
923
|
-
if (!this.matchMediaListener) {
|
|
924
|
-
const query = window.matchMedia(`(max-width: ${this.breakpoint})`);
|
|
925
|
-
this.query
|
|
859
|
+
if (!this.matchMediaListener()) {
|
|
860
|
+
const query = window.matchMedia(`(max-width: ${this.breakpoint()})`);
|
|
861
|
+
this.query.set(query);
|
|
926
862
|
this.queryMatches.set(query.matches);
|
|
927
|
-
this.matchMediaListener
|
|
863
|
+
this.matchMediaListener.set(() => {
|
|
928
864
|
this.queryMatches.set(query.matches);
|
|
929
|
-
};
|
|
930
|
-
query.addEventListener('change', this.matchMediaListener);
|
|
865
|
+
});
|
|
866
|
+
query.addEventListener('change', this.matchMediaListener());
|
|
931
867
|
}
|
|
932
868
|
}
|
|
933
869
|
}
|
|
934
870
|
unbindMatchMediaListener() {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
this.matchMediaListener
|
|
871
|
+
const matchMediaListener = this.matchMediaListener();
|
|
872
|
+
if (matchMediaListener) {
|
|
873
|
+
this.query()?.removeEventListener('change', matchMediaListener);
|
|
874
|
+
this.matchMediaListener.set(null);
|
|
938
875
|
}
|
|
939
876
|
}
|
|
940
877
|
createProcessedItems(items, level = 0, parent = {}, parentKey = '') {
|
|
@@ -986,13 +923,13 @@ class TieredMenu extends BaseComponent {
|
|
|
986
923
|
return this.getItemProp(item, 'separator');
|
|
987
924
|
}
|
|
988
925
|
isItemMatched(processedItem) {
|
|
989
|
-
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
|
|
926
|
+
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue().toLocaleLowerCase());
|
|
990
927
|
}
|
|
991
928
|
isProccessedItemGroup(processedItem) {
|
|
992
929
|
return processedItem && isNotEmpty(processedItem.items);
|
|
993
930
|
}
|
|
994
931
|
onOverlayClick(event) {
|
|
995
|
-
if (this.popup) {
|
|
932
|
+
if (this.popup()) {
|
|
996
933
|
this.overlayService.add({
|
|
997
934
|
originalEvent: event,
|
|
998
935
|
target: this.el.nativeElement
|
|
@@ -1008,7 +945,7 @@ class TieredMenu extends BaseComponent {
|
|
|
1008
945
|
const { index, key, level, parentKey, item } = processedItem;
|
|
1009
946
|
this.activeItemPath.set(this.activeItemPath().filter((p) => key !== p.key && key.startsWith(p.key)));
|
|
1010
947
|
this.focusedItemInfo.set({ index, level, parentKey, item });
|
|
1011
|
-
this.dirty
|
|
948
|
+
this.dirty.set(true);
|
|
1012
949
|
focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
1013
950
|
}
|
|
1014
951
|
else {
|
|
@@ -1025,12 +962,12 @@ class TieredMenu extends BaseComponent {
|
|
|
1025
962
|
}
|
|
1026
963
|
onItemMouseEnter(event) {
|
|
1027
964
|
if (!isTouchDevice()) {
|
|
1028
|
-
if (this.dirty) {
|
|
965
|
+
if (this.dirty()) {
|
|
1029
966
|
this.onItemChange(event, 'hover');
|
|
1030
967
|
}
|
|
1031
968
|
}
|
|
1032
969
|
else {
|
|
1033
|
-
this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay }, 'hover');
|
|
970
|
+
this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay() }, 'hover');
|
|
1034
971
|
}
|
|
1035
972
|
}
|
|
1036
973
|
onKeyDown(event) {
|
|
@@ -1086,13 +1023,13 @@ class TieredMenu extends BaseComponent {
|
|
|
1086
1023
|
event.preventDefault();
|
|
1087
1024
|
}
|
|
1088
1025
|
onArrowRightKey(event) {
|
|
1089
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1026
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1090
1027
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1091
1028
|
const item = processedItem?.item;
|
|
1092
1029
|
if (grouped) {
|
|
1093
1030
|
this.onItemChange({ originalEvent: event, processedItem });
|
|
1094
1031
|
this.focusedItemInfo.set({ index: -1, parentKey: processedItem.key, item });
|
|
1095
|
-
this.searchValue
|
|
1032
|
+
this.searchValue.set('');
|
|
1096
1033
|
this.onArrowDownKey(event);
|
|
1097
1034
|
}
|
|
1098
1035
|
event.preventDefault();
|
|
@@ -1100,11 +1037,11 @@ class TieredMenu extends BaseComponent {
|
|
|
1100
1037
|
onArrowUpKey(event) {
|
|
1101
1038
|
if (event.altKey) {
|
|
1102
1039
|
if (this.focusedItemInfo().index !== -1) {
|
|
1103
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1040
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1104
1041
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1105
1042
|
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
1106
1043
|
}
|
|
1107
|
-
this.popup && this.hide(event, true);
|
|
1044
|
+
this.popup() && this.hide(event, true);
|
|
1108
1045
|
event.preventDefault();
|
|
1109
1046
|
}
|
|
1110
1047
|
else {
|
|
@@ -1114,7 +1051,7 @@ class TieredMenu extends BaseComponent {
|
|
|
1114
1051
|
}
|
|
1115
1052
|
}
|
|
1116
1053
|
onArrowLeftKey(event) {
|
|
1117
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1054
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1118
1055
|
if (!processedItem) {
|
|
1119
1056
|
event.preventDefault();
|
|
1120
1057
|
return;
|
|
@@ -1123,7 +1060,7 @@ class TieredMenu extends BaseComponent {
|
|
|
1123
1060
|
const root = isEmpty(processedItem.parent);
|
|
1124
1061
|
if (!root) {
|
|
1125
1062
|
this.focusedItemInfo.set({ index: -1, parentKey: parentItem ? parentItem.parentKey : '', item: processedItem.item });
|
|
1126
|
-
this.searchValue
|
|
1063
|
+
this.searchValue.set('');
|
|
1127
1064
|
this.onArrowDownKey(event);
|
|
1128
1065
|
}
|
|
1129
1066
|
const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== this.focusedItemInfo().parentKey);
|
|
@@ -1143,12 +1080,12 @@ class TieredMenu extends BaseComponent {
|
|
|
1143
1080
|
}
|
|
1144
1081
|
onEscapeKey(event) {
|
|
1145
1082
|
this.hide(event, true);
|
|
1146
|
-
this.focusedItemInfo()
|
|
1083
|
+
this.focusedItemInfo.update((focusedItemInfo) => ({ ...focusedItemInfo, index: this.findFirstFocusedItemIndex() }));
|
|
1147
1084
|
event.preventDefault();
|
|
1148
1085
|
}
|
|
1149
1086
|
onTabKey(event) {
|
|
1150
1087
|
if (this.focusedItemInfo().index !== -1) {
|
|
1151
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1088
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1152
1089
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1153
1090
|
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
1154
1091
|
}
|
|
@@ -1156,13 +1093,13 @@ class TieredMenu extends BaseComponent {
|
|
|
1156
1093
|
}
|
|
1157
1094
|
onEnterKey(event) {
|
|
1158
1095
|
if (this.focusedItemInfo().index !== -1) {
|
|
1159
|
-
const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId}`}"]`);
|
|
1096
|
+
const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId()}`}"]`);
|
|
1160
1097
|
const anchorElement = element && (findSingle(element, '[data-pc-section="itemlink"]') || findSingle(element, 'a,button'));
|
|
1161
1098
|
anchorElement ? anchorElement.click() : element && element.click();
|
|
1162
|
-
if (!this.popup) {
|
|
1163
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1099
|
+
if (!this.popup()) {
|
|
1100
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1164
1101
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1165
|
-
!grouped &&
|
|
1102
|
+
!grouped && this.focusedItemInfo.update((focusedItemInfo) => ({ ...focusedItemInfo, index: this.findFirstFocusedItemIndex() }));
|
|
1166
1103
|
}
|
|
1167
1104
|
}
|
|
1168
1105
|
event.preventDefault();
|
|
@@ -1176,7 +1113,7 @@ class TieredMenu extends BaseComponent {
|
|
|
1176
1113
|
const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== parentKey && p.parentKey !== key);
|
|
1177
1114
|
grouped && activeItemPath.push(processedItem);
|
|
1178
1115
|
this.focusedItemInfo.set({ index, level, parentKey, item });
|
|
1179
|
-
grouped &&
|
|
1116
|
+
grouped && this.dirty.set(true);
|
|
1180
1117
|
isFocus && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
1181
1118
|
if (type === 'hover' && this.queryMatches()) {
|
|
1182
1119
|
return;
|
|
@@ -1184,30 +1121,30 @@ class TieredMenu extends BaseComponent {
|
|
|
1184
1121
|
this.activeItemPath.set(activeItemPath);
|
|
1185
1122
|
}
|
|
1186
1123
|
onMenuFocus(event) {
|
|
1187
|
-
this.focused
|
|
1188
|
-
if (this.focusedItemInfo().index === -1 && !this.popup) {
|
|
1124
|
+
this.focused.set(true);
|
|
1125
|
+
if (this.focusedItemInfo().index === -1 && !this.popup()) {
|
|
1189
1126
|
// this.onArrowDownKey(event);
|
|
1190
1127
|
}
|
|
1191
1128
|
}
|
|
1192
1129
|
onMenuBlur(event) {
|
|
1193
|
-
this.focused
|
|
1130
|
+
this.focused.set(false);
|
|
1194
1131
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
|
|
1195
|
-
this.searchValue
|
|
1196
|
-
this.dirty
|
|
1132
|
+
this.searchValue.set('');
|
|
1133
|
+
this.dirty.set(false);
|
|
1197
1134
|
}
|
|
1198
1135
|
onOverlayBeforeEnter(event) {
|
|
1199
|
-
if (this.popup) {
|
|
1200
|
-
this.container
|
|
1201
|
-
addStyle(this.container, { position: 'absolute' });
|
|
1136
|
+
if (this.popup()) {
|
|
1137
|
+
this.container.set(event.element);
|
|
1138
|
+
addStyle(this.container(), { position: 'absolute' });
|
|
1202
1139
|
this.moveOnTop();
|
|
1203
1140
|
this.onShow.emit({});
|
|
1204
|
-
this.$attrSelector && this.container?.setAttribute(this.$attrSelector, '');
|
|
1141
|
+
this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
|
|
1205
1142
|
this.appendOverlay();
|
|
1206
1143
|
this.alignOverlay();
|
|
1207
1144
|
}
|
|
1208
1145
|
}
|
|
1209
1146
|
onOverlayAfterEnter() {
|
|
1210
|
-
if (this.popup) {
|
|
1147
|
+
if (this.popup()) {
|
|
1211
1148
|
this.bindOutsideClickListener();
|
|
1212
1149
|
this.bindResizeListener();
|
|
1213
1150
|
this.bindScrollListener();
|
|
@@ -1221,37 +1158,41 @@ class TieredMenu extends BaseComponent {
|
|
|
1221
1158
|
this.render.set(false);
|
|
1222
1159
|
this.onHide.emit({});
|
|
1223
1160
|
}
|
|
1224
|
-
relativeAlign = false
|
|
1161
|
+
relativeAlign = signal(false, /* @ts-ignore */
|
|
1162
|
+
...(ngDevMode ? [{ debugName: "relativeAlign" }] : /* istanbul ignore next */ []));
|
|
1225
1163
|
alignOverlay() {
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1164
|
+
const container = this.container();
|
|
1165
|
+
const target = this.target();
|
|
1166
|
+
if (container && target) {
|
|
1167
|
+
if (this.relativeAlign())
|
|
1168
|
+
relativePosition(container, target);
|
|
1229
1169
|
else
|
|
1230
|
-
absolutePosition(
|
|
1231
|
-
const targetWidth = getOuterWidth(
|
|
1232
|
-
if (targetWidth > getOuterWidth(
|
|
1233
|
-
|
|
1170
|
+
absolutePosition(container, target);
|
|
1171
|
+
const targetWidth = getOuterWidth(target);
|
|
1172
|
+
if (targetWidth > getOuterWidth(container)) {
|
|
1173
|
+
container.style.minWidth = getOuterWidth(target) + 'px';
|
|
1234
1174
|
}
|
|
1235
1175
|
}
|
|
1236
1176
|
}
|
|
1237
1177
|
appendOverlay() {
|
|
1238
1178
|
if (this.$appendTo() && this.$appendTo() !== 'self') {
|
|
1239
1179
|
if (this.$appendTo() === 'body') {
|
|
1240
|
-
appendChild(this.document.body, this.container);
|
|
1180
|
+
appendChild(this.document.body, this.container());
|
|
1241
1181
|
}
|
|
1242
1182
|
else {
|
|
1243
|
-
appendChild(this.$appendTo(), this.container);
|
|
1183
|
+
appendChild(this.$appendTo(), this.container());
|
|
1244
1184
|
}
|
|
1245
1185
|
}
|
|
1246
1186
|
}
|
|
1247
1187
|
restoreOverlayAppend() {
|
|
1248
|
-
|
|
1249
|
-
|
|
1188
|
+
const container = this.container();
|
|
1189
|
+
if (container && this.$appendTo() !== 'self') {
|
|
1190
|
+
appendChild(this.el.nativeElement, container);
|
|
1250
1191
|
}
|
|
1251
1192
|
}
|
|
1252
1193
|
moveOnTop() {
|
|
1253
|
-
if (this.autoZIndex) {
|
|
1254
|
-
ZIndexUtils.set('menu', this.container, this.baseZIndex + this.config.zIndex.menu);
|
|
1194
|
+
if (this.autoZIndex()) {
|
|
1195
|
+
ZIndexUtils.set('menu', this.container(), this.baseZIndex() + this.config.zIndex.menu);
|
|
1255
1196
|
}
|
|
1256
1197
|
}
|
|
1257
1198
|
/**
|
|
@@ -1259,14 +1200,14 @@ class TieredMenu extends BaseComponent {
|
|
|
1259
1200
|
* @group Method
|
|
1260
1201
|
*/
|
|
1261
1202
|
hide(event, isFocus) {
|
|
1262
|
-
if (this.popup) {
|
|
1203
|
+
if (this.popup()) {
|
|
1263
1204
|
this.onHide.emit({});
|
|
1264
|
-
this.visible
|
|
1205
|
+
this.visible.set(false);
|
|
1265
1206
|
}
|
|
1266
1207
|
this.activeItemPath.set([]);
|
|
1267
1208
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
|
|
1268
|
-
isFocus && focus(this.relatedTarget || this.target || this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
1269
|
-
this.dirty
|
|
1209
|
+
isFocus && focus(this.relatedTarget() || this.target() || this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
1210
|
+
this.dirty.set(false);
|
|
1270
1211
|
}
|
|
1271
1212
|
/**
|
|
1272
1213
|
* Toggles the visibility of the popup menu.
|
|
@@ -1274,7 +1215,7 @@ class TieredMenu extends BaseComponent {
|
|
|
1274
1215
|
* @group Method
|
|
1275
1216
|
*/
|
|
1276
1217
|
toggle(event) {
|
|
1277
|
-
this.visible ? this.hide(event, true) : this.show(event);
|
|
1218
|
+
this.visible() ? this.hide(event, true) : this.show(event);
|
|
1278
1219
|
}
|
|
1279
1220
|
/**
|
|
1280
1221
|
* Displays the popup menu.
|
|
@@ -1282,27 +1223,33 @@ class TieredMenu extends BaseComponent {
|
|
|
1282
1223
|
* @group Method
|
|
1283
1224
|
*/
|
|
1284
1225
|
show(event, isFocus) {
|
|
1285
|
-
if (this.popup) {
|
|
1286
|
-
this.visible
|
|
1287
|
-
this.target
|
|
1288
|
-
this.relatedTarget
|
|
1289
|
-
this.relativeAlign
|
|
1226
|
+
if (this.popup()) {
|
|
1227
|
+
this.visible.set(true);
|
|
1228
|
+
this.target.set(this.target() || event.currentTarget);
|
|
1229
|
+
this.relatedTarget.set(event.relatedTarget || null);
|
|
1230
|
+
this.relativeAlign.set(event?.relativeAlign || null);
|
|
1290
1231
|
}
|
|
1291
1232
|
this.render.set(true);
|
|
1292
1233
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
|
|
1293
1234
|
isFocus && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
1294
|
-
this.cd.markForCheck();
|
|
1295
1235
|
}
|
|
1296
1236
|
searchItems(event, char) {
|
|
1297
|
-
this.searchValue
|
|
1237
|
+
this.searchValue.set((this.searchValue() || '') + char);
|
|
1298
1238
|
let itemIndex = -1;
|
|
1299
1239
|
let matched = false;
|
|
1300
1240
|
if (this.focusedItemInfo().index !== -1) {
|
|
1301
|
-
itemIndex = this.visibleItems
|
|
1302
|
-
|
|
1241
|
+
itemIndex = this.visibleItems()
|
|
1242
|
+
.slice(this.focusedItemInfo().index)
|
|
1243
|
+
.findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
1244
|
+
itemIndex =
|
|
1245
|
+
itemIndex === -1
|
|
1246
|
+
? this.visibleItems()
|
|
1247
|
+
.slice(0, this.focusedItemInfo().index)
|
|
1248
|
+
.findIndex((processedItem) => this.isItemMatched(processedItem))
|
|
1249
|
+
: itemIndex + this.focusedItemInfo().index;
|
|
1303
1250
|
}
|
|
1304
1251
|
else {
|
|
1305
|
-
itemIndex = this.visibleItems.findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
1252
|
+
itemIndex = this.visibleItems().findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
1306
1253
|
}
|
|
1307
1254
|
if (itemIndex !== -1) {
|
|
1308
1255
|
matched = true;
|
|
@@ -1313,13 +1260,13 @@ class TieredMenu extends BaseComponent {
|
|
|
1313
1260
|
if (itemIndex !== -1) {
|
|
1314
1261
|
this.changeFocusedItemIndex(event, itemIndex);
|
|
1315
1262
|
}
|
|
1316
|
-
if (this.searchTimeout) {
|
|
1317
|
-
clearTimeout(this.searchTimeout);
|
|
1263
|
+
if (this.searchTimeout()) {
|
|
1264
|
+
clearTimeout(this.searchTimeout());
|
|
1318
1265
|
}
|
|
1319
|
-
this.searchTimeout
|
|
1320
|
-
this.searchValue
|
|
1321
|
-
this.searchTimeout
|
|
1322
|
-
}, 500);
|
|
1266
|
+
this.searchTimeout.set(setTimeout(() => {
|
|
1267
|
+
this.searchValue.set('');
|
|
1268
|
+
this.searchTimeout.set(null);
|
|
1269
|
+
}, 500));
|
|
1323
1270
|
return matched;
|
|
1324
1271
|
}
|
|
1325
1272
|
findLastFocusedItemIndex() {
|
|
@@ -1327,14 +1274,18 @@ class TieredMenu extends BaseComponent {
|
|
|
1327
1274
|
return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
|
|
1328
1275
|
}
|
|
1329
1276
|
findLastItemIndex() {
|
|
1330
|
-
return findLastIndex(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
|
|
1277
|
+
return findLastIndex(this.visibleItems(), (processedItem) => this.isValidItem(processedItem));
|
|
1331
1278
|
}
|
|
1332
1279
|
findPrevItemIndex(index) {
|
|
1333
|
-
const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
|
|
1280
|
+
const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems().slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
|
|
1334
1281
|
return matchedItemIndex > -1 ? matchedItemIndex : index;
|
|
1335
1282
|
}
|
|
1336
1283
|
findNextItemIndex(index) {
|
|
1337
|
-
const matchedItemIndex = index < this.visibleItems.length - 1
|
|
1284
|
+
const matchedItemIndex = index < this.visibleItems().length - 1
|
|
1285
|
+
? this.visibleItems()
|
|
1286
|
+
.slice(index + 1)
|
|
1287
|
+
.findIndex((processedItem) => this.isValidItem(processedItem))
|
|
1288
|
+
: -1;
|
|
1338
1289
|
return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
|
|
1339
1290
|
}
|
|
1340
1291
|
findFirstFocusedItemIndex() {
|
|
@@ -1342,76 +1293,80 @@ class TieredMenu extends BaseComponent {
|
|
|
1342
1293
|
return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
|
|
1343
1294
|
}
|
|
1344
1295
|
findFirstItemIndex() {
|
|
1345
|
-
return this.visibleItems.findIndex((processedItem) => this.isValidItem(processedItem));
|
|
1296
|
+
return this.visibleItems().findIndex((processedItem) => this.isValidItem(processedItem));
|
|
1346
1297
|
}
|
|
1347
1298
|
findSelectedItemIndex() {
|
|
1348
|
-
return this.visibleItems.findIndex((processedItem) => this.isValidSelectedItem(processedItem));
|
|
1299
|
+
return this.visibleItems().findIndex((processedItem) => this.isValidSelectedItem(processedItem));
|
|
1349
1300
|
}
|
|
1350
1301
|
changeFocusedItemIndex(event, index) {
|
|
1351
1302
|
if (this.focusedItemInfo().index !== index) {
|
|
1352
1303
|
const focusedItemInfo = this.focusedItemInfo();
|
|
1353
|
-
this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems[index].item, index });
|
|
1304
|
+
this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems()[index].item, index });
|
|
1354
1305
|
this.scrollInView();
|
|
1355
1306
|
}
|
|
1356
1307
|
}
|
|
1357
1308
|
scrollInView(index = -1) {
|
|
1358
|
-
const id = index !== -1 ? `${this.
|
|
1309
|
+
const id = index !== -1 ? `${this._id()}_${index}` : this.focusedItemId();
|
|
1359
1310
|
const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${id}"]`);
|
|
1360
1311
|
if (element) {
|
|
1361
1312
|
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
1362
1313
|
}
|
|
1363
1314
|
}
|
|
1364
1315
|
bindScrollListener() {
|
|
1365
|
-
if (!this.scrollHandler) {
|
|
1366
|
-
this.scrollHandler
|
|
1367
|
-
if (this.visible) {
|
|
1316
|
+
if (!this.scrollHandler()) {
|
|
1317
|
+
this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.target(), (event) => {
|
|
1318
|
+
if (this.visible()) {
|
|
1368
1319
|
this.hide(event, true);
|
|
1369
1320
|
}
|
|
1370
|
-
});
|
|
1321
|
+
}));
|
|
1371
1322
|
}
|
|
1372
|
-
this.scrollHandler
|
|
1323
|
+
this.scrollHandler()?.bindScrollListener();
|
|
1373
1324
|
}
|
|
1374
1325
|
unbindScrollListener() {
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1326
|
+
const scrollHandler = this.scrollHandler();
|
|
1327
|
+
if (scrollHandler) {
|
|
1328
|
+
scrollHandler.unbindScrollListener();
|
|
1329
|
+
this.scrollHandler.set(null);
|
|
1378
1330
|
}
|
|
1379
1331
|
}
|
|
1380
1332
|
bindResizeListener() {
|
|
1381
1333
|
if (isPlatformBrowser(this.platformId)) {
|
|
1382
|
-
if (!this.resizeListener) {
|
|
1383
|
-
this.resizeListener
|
|
1334
|
+
if (!this.resizeListener()) {
|
|
1335
|
+
this.resizeListener.set(this.renderer.listen(this.document.defaultView, 'resize', (event) => {
|
|
1384
1336
|
if (!isTouchDevice()) {
|
|
1385
1337
|
this.hide(event, true);
|
|
1386
1338
|
}
|
|
1387
|
-
});
|
|
1339
|
+
}));
|
|
1388
1340
|
}
|
|
1389
1341
|
}
|
|
1390
1342
|
}
|
|
1391
1343
|
bindOutsideClickListener() {
|
|
1392
1344
|
if (isPlatformBrowser(this.platformId)) {
|
|
1393
|
-
if (!this.outsideClickListener) {
|
|
1394
|
-
this.outsideClickListener
|
|
1345
|
+
if (!this.outsideClickListener()) {
|
|
1346
|
+
this.outsideClickListener.set(this.renderer.listen(this.document, 'click', (event) => {
|
|
1395
1347
|
const containerViewChild = this.containerViewChild();
|
|
1348
|
+
const target = this.target();
|
|
1396
1349
|
const isOutsideContainer = containerViewChild && !containerViewChild.nativeElement.contains(event.target);
|
|
1397
|
-
const isOutsideTarget = this.popup ? !(
|
|
1350
|
+
const isOutsideTarget = this.popup() ? !(target && (target === event.target || target.contains(event.target))) : true;
|
|
1398
1351
|
if (isOutsideContainer && isOutsideTarget) {
|
|
1399
1352
|
this.hide();
|
|
1400
1353
|
}
|
|
1401
|
-
});
|
|
1354
|
+
}));
|
|
1402
1355
|
}
|
|
1403
1356
|
}
|
|
1404
1357
|
}
|
|
1405
1358
|
unbindOutsideClickListener() {
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1359
|
+
const outsideClickListener = this.outsideClickListener();
|
|
1360
|
+
if (outsideClickListener) {
|
|
1361
|
+
outsideClickListener();
|
|
1362
|
+
this.outsideClickListener.set(null);
|
|
1409
1363
|
}
|
|
1410
1364
|
}
|
|
1411
1365
|
unbindResizeListener() {
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1366
|
+
const resizeListener = this.resizeListener();
|
|
1367
|
+
if (resizeListener) {
|
|
1368
|
+
resizeListener();
|
|
1369
|
+
this.resizeListener.set(null);
|
|
1415
1370
|
}
|
|
1416
1371
|
}
|
|
1417
1372
|
onOverlayHide() {
|
|
@@ -1419,17 +1374,19 @@ class TieredMenu extends BaseComponent {
|
|
|
1419
1374
|
this.unbindResizeListener();
|
|
1420
1375
|
this.unbindScrollListener();
|
|
1421
1376
|
if (!this.cd.destroyed) {
|
|
1422
|
-
this.target
|
|
1377
|
+
this.target.set(null);
|
|
1423
1378
|
}
|
|
1424
|
-
|
|
1425
|
-
|
|
1379
|
+
const container = this.container();
|
|
1380
|
+
if (container && this.autoZIndex()) {
|
|
1381
|
+
ZIndexUtils.clear(container);
|
|
1426
1382
|
}
|
|
1427
1383
|
}
|
|
1428
1384
|
onDestroy() {
|
|
1429
|
-
if (this.popup) {
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1385
|
+
if (this.popup()) {
|
|
1386
|
+
const scrollHandler = this.scrollHandler();
|
|
1387
|
+
if (scrollHandler) {
|
|
1388
|
+
scrollHandler.destroy();
|
|
1389
|
+
this.scrollHandler.set(null);
|
|
1433
1390
|
}
|
|
1434
1391
|
this.restoreOverlayAppend();
|
|
1435
1392
|
this.onOverlayHide();
|
|
@@ -1437,19 +1394,19 @@ class TieredMenu extends BaseComponent {
|
|
|
1437
1394
|
this.unbindMatchMediaListener();
|
|
1438
1395
|
}
|
|
1439
1396
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1440
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal:
|
|
1441
|
-
@if (render() || !popup) {
|
|
1397
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true, isSignal: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
1398
|
+
@if (render() || !popup()) {
|
|
1442
1399
|
<div
|
|
1443
1400
|
#container
|
|
1444
|
-
[id]="
|
|
1445
|
-
[class]="cn(cx('root'), styleClass)"
|
|
1446
|
-
[ngStyle]="style"
|
|
1401
|
+
[id]="_id()"
|
|
1402
|
+
[class]="cn(cx('root'), styleClass())"
|
|
1403
|
+
[ngStyle]="style()"
|
|
1447
1404
|
[pBind]="ptm('root')"
|
|
1448
1405
|
(click)="onOverlayClick($event)"
|
|
1449
|
-
[pMotion]="visible || !popup"
|
|
1406
|
+
[pMotion]="visible() || !popup()"
|
|
1450
1407
|
[pMotionName]="'p-anchored-overlay'"
|
|
1451
1408
|
[pMotionAppear]="true"
|
|
1452
|
-
[pMotionDisabled]="!popup"
|
|
1409
|
+
[pMotionDisabled]="!popup()"
|
|
1453
1410
|
[pMotionOptions]="computedMotionOptions()"
|
|
1454
1411
|
(pMotionOnBeforeEnter)="onOverlayBeforeEnter($event)"
|
|
1455
1412
|
(pMotionOnAfterEnter)="onOverlayAfterEnter()"
|
|
@@ -1459,17 +1416,14 @@ class TieredMenu extends BaseComponent {
|
|
|
1459
1416
|
#rootmenu
|
|
1460
1417
|
[root]="true"
|
|
1461
1418
|
[visible]="true"
|
|
1462
|
-
[items]="processedItems"
|
|
1463
|
-
[itemTemplate]="itemTemplate() || _itemTemplate"
|
|
1464
|
-
[menuId]="
|
|
1465
|
-
[tabindex]="!disabled ? tabindex : -1"
|
|
1466
|
-
[ariaLabel]="ariaLabel"
|
|
1467
|
-
[ariaLabelledBy]="ariaLabelledBy"
|
|
1468
|
-
[
|
|
1469
|
-
[
|
|
1470
|
-
[autoDisplay]="autoDisplay"
|
|
1471
|
-
[popup]="popup"
|
|
1472
|
-
[focusedItemId]="focused ? focusedItemId : undefined"
|
|
1419
|
+
[items]="processedItems()"
|
|
1420
|
+
[itemTemplate]="itemTemplate() || _itemTemplate()"
|
|
1421
|
+
[menuId]="_id()"
|
|
1422
|
+
[tabindex]="!disabled() ? tabindex() : -1"
|
|
1423
|
+
[ariaLabel]="ariaLabel()"
|
|
1424
|
+
[ariaLabelledBy]="ariaLabelledBy()"
|
|
1425
|
+
[autoDisplay]="autoDisplay()"
|
|
1426
|
+
[focusedItemId]="focused() ? focusedItemId() : undefined"
|
|
1473
1427
|
[activeItemPath]="activeItemPath()"
|
|
1474
1428
|
(itemClick)="onItemClick($event)"
|
|
1475
1429
|
(menuFocus)="onMenuFocus($event)"
|
|
@@ -1482,27 +1436,26 @@ class TieredMenu extends BaseComponent {
|
|
|
1482
1436
|
></p-tieredMenuSub>
|
|
1483
1437
|
</div>
|
|
1484
1438
|
}
|
|
1485
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "
|
|
1439
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1486
1440
|
}
|
|
1487
1441
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenu, decorators: [{
|
|
1488
1442
|
type: Component,
|
|
1489
1443
|
args: [{
|
|
1490
1444
|
selector: 'p-tieredMenu, p-tieredmenu, p-tiered-menu',
|
|
1491
|
-
standalone: true,
|
|
1492
1445
|
imports: [CommonModule, TieredMenuSub, RouterModule, TooltipModule, SharedModule, BindModule, MotionModule],
|
|
1493
1446
|
template: `
|
|
1494
|
-
@if (render() || !popup) {
|
|
1447
|
+
@if (render() || !popup()) {
|
|
1495
1448
|
<div
|
|
1496
1449
|
#container
|
|
1497
|
-
[id]="
|
|
1498
|
-
[class]="cn(cx('root'), styleClass)"
|
|
1499
|
-
[ngStyle]="style"
|
|
1450
|
+
[id]="_id()"
|
|
1451
|
+
[class]="cn(cx('root'), styleClass())"
|
|
1452
|
+
[ngStyle]="style()"
|
|
1500
1453
|
[pBind]="ptm('root')"
|
|
1501
1454
|
(click)="onOverlayClick($event)"
|
|
1502
|
-
[pMotion]="visible || !popup"
|
|
1455
|
+
[pMotion]="visible() || !popup()"
|
|
1503
1456
|
[pMotionName]="'p-anchored-overlay'"
|
|
1504
1457
|
[pMotionAppear]="true"
|
|
1505
|
-
[pMotionDisabled]="!popup"
|
|
1458
|
+
[pMotionDisabled]="!popup()"
|
|
1506
1459
|
[pMotionOptions]="computedMotionOptions()"
|
|
1507
1460
|
(pMotionOnBeforeEnter)="onOverlayBeforeEnter($event)"
|
|
1508
1461
|
(pMotionOnAfterEnter)="onOverlayAfterEnter()"
|
|
@@ -1512,17 +1465,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1512
1465
|
#rootmenu
|
|
1513
1466
|
[root]="true"
|
|
1514
1467
|
[visible]="true"
|
|
1515
|
-
[items]="processedItems"
|
|
1516
|
-
[itemTemplate]="itemTemplate() || _itemTemplate"
|
|
1517
|
-
[menuId]="
|
|
1518
|
-
[tabindex]="!disabled ? tabindex : -1"
|
|
1519
|
-
[ariaLabel]="ariaLabel"
|
|
1520
|
-
[ariaLabelledBy]="ariaLabelledBy"
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1523
|
-
[autoDisplay]="autoDisplay"
|
|
1524
|
-
[popup]="popup"
|
|
1525
|
-
[focusedItemId]="focused ? focusedItemId : undefined"
|
|
1468
|
+
[items]="processedItems()"
|
|
1469
|
+
[itemTemplate]="itemTemplate() || _itemTemplate()"
|
|
1470
|
+
[menuId]="_id()"
|
|
1471
|
+
[tabindex]="!disabled() ? tabindex() : -1"
|
|
1472
|
+
[ariaLabel]="ariaLabel()"
|
|
1473
|
+
[ariaLabelledBy]="ariaLabelledBy()"
|
|
1474
|
+
[autoDisplay]="autoDisplay()"
|
|
1475
|
+
[focusedItemId]="focused() ? focusedItemId() : undefined"
|
|
1526
1476
|
[activeItemPath]="activeItemPath()"
|
|
1527
1477
|
(itemClick)="onItemClick($event)"
|
|
1528
1478
|
(menuFocus)="onMenuFocus($event)"
|
|
@@ -1541,43 +1491,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1541
1491
|
providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }],
|
|
1542
1492
|
hostDirectives: [Bind]
|
|
1543
1493
|
}]
|
|
1544
|
-
}], ctorParameters: () => [], propDecorators: { model: [{
|
|
1545
|
-
type: Input
|
|
1546
|
-
}], popup: [{
|
|
1547
|
-
type: Input,
|
|
1548
|
-
args: [{ transform: booleanAttribute }]
|
|
1549
|
-
}], style: [{
|
|
1550
|
-
type: Input
|
|
1551
|
-
}], styleClass: [{
|
|
1552
|
-
type: Input
|
|
1553
|
-
}], breakpoint: [{
|
|
1554
|
-
type: Input
|
|
1555
|
-
}], autoZIndex: [{
|
|
1556
|
-
type: Input,
|
|
1557
|
-
args: [{ transform: booleanAttribute }]
|
|
1558
|
-
}], baseZIndex: [{
|
|
1559
|
-
type: Input,
|
|
1560
|
-
args: [{ transform: numberAttribute }]
|
|
1561
|
-
}], autoDisplay: [{
|
|
1562
|
-
type: Input,
|
|
1563
|
-
args: [{ transform: booleanAttribute }]
|
|
1564
|
-
}], showTransitionOptions: [{
|
|
1565
|
-
type: Input
|
|
1566
|
-
}], hideTransitionOptions: [{
|
|
1567
|
-
type: Input
|
|
1568
|
-
}], id: [{
|
|
1569
|
-
type: Input
|
|
1570
|
-
}], ariaLabel: [{
|
|
1571
|
-
type: Input
|
|
1572
|
-
}], ariaLabelledBy: [{
|
|
1573
|
-
type: Input
|
|
1574
|
-
}], disabled: [{
|
|
1575
|
-
type: Input,
|
|
1576
|
-
args: [{ transform: booleanAttribute }]
|
|
1577
|
-
}], tabindex: [{
|
|
1578
|
-
type: Input,
|
|
1579
|
-
args: [{ transform: numberAttribute }]
|
|
1580
|
-
}], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], rootmenu: [{ type: i0.ViewChild, args: ['rootmenu', { isSignal: true }] }], containerViewChild: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
1494
|
+
}], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], autoDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisplay", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], rootmenu: [{ type: i0.ViewChild, args: ['rootmenu', { isSignal: true }] }], containerViewChild: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
1581
1495
|
class TieredMenuModule {
|
|
1582
1496
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1583
1497
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule], exports: [TieredMenu, SharedModule] });
|