@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
|
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/contextmenu';
|
|
|
2
2
|
import * as i1 from '@angular/common';
|
|
3
3
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, InjectionToken, inject, ElementRef, Renderer2,
|
|
5
|
+
import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, output, viewChild, linkedSignal, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, signal, effect, contentChild, contentChildren, NgModule } from '@angular/core';
|
|
6
6
|
import * as i2 from '@angular/router';
|
|
7
7
|
import { RouterModule } from '@angular/router';
|
|
8
8
|
import { resolve, isNotEmpty, getOffset, getViewport, getHiddenElementOuterWidth, getOuterWidth, calculateScrollbarWidth, uuid, isIOS, isAndroid, focus, isPrintableCharacter, isEmpty, findSingle, appendChild, getHiddenElementOuterHeight, findLastIndex } from '@exhaustive-ui/utils';
|
|
@@ -26,15 +26,19 @@ const inlineStyles = {
|
|
|
26
26
|
root: { position: 'absolute' }
|
|
27
27
|
};
|
|
28
28
|
const classes = {
|
|
29
|
-
root: () => [
|
|
29
|
+
root: ({ instance }) => [
|
|
30
|
+
'p-contextmenu p-component',
|
|
31
|
+
{
|
|
32
|
+
'p-contextmenu-mobile': instance.queryMatches()
|
|
33
|
+
}
|
|
34
|
+
],
|
|
30
35
|
rootList: 'p-contextmenu-root-list',
|
|
31
36
|
item: ({ instance, processedItem }) => [
|
|
32
37
|
'p-contextmenu-item',
|
|
33
38
|
{
|
|
34
39
|
'p-contextmenu-item-active': instance.isItemActive(processedItem),
|
|
35
40
|
'p-focus': instance.isItemFocused(processedItem),
|
|
36
|
-
'p-disabled': instance.isItemDisabled(processedItem)
|
|
37
|
-
'p-contextmenu-mobile': instance.queryMatches
|
|
41
|
+
'p-disabled': instance.isItemDisabled(processedItem)
|
|
38
42
|
}
|
|
39
43
|
],
|
|
40
44
|
itemContent: 'p-contextmenu-item-content',
|
|
@@ -116,29 +120,27 @@ class ContextMenuSub extends BaseComponent {
|
|
|
116
120
|
el = inject(ElementRef);
|
|
117
121
|
renderer = inject(Renderer2);
|
|
118
122
|
contextMenu = inject(ContextMenu);
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
motionOptions;
|
|
141
|
-
tabindex = 0;
|
|
123
|
+
visible = input(false, /* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
125
|
+
items = input.required(/* @ts-ignore */
|
|
126
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
127
|
+
itemTemplate = input(undefined, /* @ts-ignore */
|
|
128
|
+
...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
|
|
129
|
+
root = input(false, { ...(ngDevMode ? { debugName: "root" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
130
|
+
menuId = input(undefined, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "menuId" }] : /* istanbul ignore next */ []));
|
|
132
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
133
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
134
|
+
ariaLabelledBy = input(undefined, /* @ts-ignore */
|
|
135
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
136
|
+
level = input(0, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
137
|
+
focusedItemId = input(undefined, /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
|
|
139
|
+
activeItemPath = input(/* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [undefined, { debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
|
|
141
|
+
motionOptions = input(undefined, /* @ts-ignore */
|
|
142
|
+
...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
|
|
143
|
+
tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
142
144
|
itemClick = output();
|
|
143
145
|
itemMouseEnter = output();
|
|
144
146
|
menuFocus = output();
|
|
@@ -146,26 +148,25 @@ class ContextMenuSub extends BaseComponent {
|
|
|
146
148
|
menuKeydown = output();
|
|
147
149
|
sublistViewChild = viewChild('sublist', /* @ts-ignore */
|
|
148
150
|
...(ngDevMode ? [{ debugName: "sublistViewChild" }] : /* istanbul ignore next */ []));
|
|
149
|
-
render =
|
|
150
|
-
|
|
151
|
+
render = linkedSignal({ ...(ngDevMode ? { debugName: "render" } : /* istanbul ignore next */ {}), source: () => this.visible() || this.root(),
|
|
152
|
+
computation: (show, previous) => !!show || (previous?.value ?? false) });
|
|
151
153
|
hostName = 'ContextMenu';
|
|
152
154
|
_componentStyle = inject(ContextMenuStyle);
|
|
153
155
|
$pcContextMenu = inject(CONTEXTMENU_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
154
156
|
$pcContextMenuSub = inject(CONTEXTMENUSUB_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
155
|
-
_visible = false;
|
|
156
157
|
constructor() {
|
|
157
158
|
super();
|
|
158
|
-
this.contextMenu.handleSubmenuAfterLeave
|
|
159
|
-
if (this.root) {
|
|
159
|
+
this.contextMenu.handleSubmenuAfterLeave.set(() => {
|
|
160
|
+
if (this.root()) {
|
|
160
161
|
this.onAfterLeave();
|
|
161
162
|
}
|
|
162
|
-
};
|
|
163
|
+
});
|
|
163
164
|
}
|
|
164
165
|
getItemProp(processedItem, name, params = null) {
|
|
165
166
|
return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;
|
|
166
167
|
}
|
|
167
168
|
getItemId(processedItem) {
|
|
168
|
-
return processedItem.item && processedItem.item?.id ? processedItem.item.id : `${this.menuId}_${processedItem.key}`;
|
|
169
|
+
return processedItem.item && processedItem.item?.id ? processedItem.item.id : `${this.menuId()}_${processedItem.key}`;
|
|
169
170
|
}
|
|
170
171
|
getItemKey(processedItem) {
|
|
171
172
|
return this.getItemId(processedItem);
|
|
@@ -174,24 +175,29 @@ class ContextMenuSub extends BaseComponent {
|
|
|
174
175
|
return this.getItemProp(processedItem, 'label');
|
|
175
176
|
}
|
|
176
177
|
getAriaSetSize() {
|
|
177
|
-
return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
178
|
+
return this.items().filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
178
179
|
}
|
|
179
180
|
getAriaPosInset(index) {
|
|
180
|
-
return index -
|
|
181
|
+
return (index -
|
|
182
|
+
this.items()
|
|
183
|
+
.slice(0, index)
|
|
184
|
+
.filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator')).length +
|
|
185
|
+
1);
|
|
181
186
|
}
|
|
182
187
|
isItemVisible(processedItem) {
|
|
183
188
|
return this.getItemProp(processedItem, 'visible') !== false;
|
|
184
189
|
}
|
|
185
190
|
isItemActive(processedItem) {
|
|
186
|
-
|
|
187
|
-
|
|
191
|
+
const activeItemPath = this.activeItemPath();
|
|
192
|
+
if (activeItemPath) {
|
|
193
|
+
return activeItemPath.some((path) => path.key === processedItem.key);
|
|
188
194
|
}
|
|
189
195
|
}
|
|
190
196
|
isItemDisabled(processedItem) {
|
|
191
197
|
return this.getItemProp(processedItem, 'disabled');
|
|
192
198
|
}
|
|
193
199
|
isItemFocused(processedItem) {
|
|
194
|
-
return this.focusedItemId === this.getItemId(processedItem);
|
|
200
|
+
return this.focusedItemId() === this.getItemId(processedItem);
|
|
195
201
|
}
|
|
196
202
|
isItemGroup(processedItem) {
|
|
197
203
|
return isNotEmpty(processedItem.items);
|
|
@@ -240,430 +246,371 @@ class ContextMenuSub extends BaseComponent {
|
|
|
240
246
|
}
|
|
241
247
|
}
|
|
242
248
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ContextMenuSub, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ContextMenuSub, isStandalone: true, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: { visible: "visible",
|
|
249
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ContextMenuSub, isStandalone: true, selector: "p-contextMenuSub, p-contextmenu-sub", 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 }, 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 } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [ContextMenuStyle, { provide: CONTEXTMENUSUB_INSTANCE, useExisting: ContextMenuSub }, { provide: PARENT_INSTANCE, useExisting: ContextMenuSub }], viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
244
250
|
@if (render()) {
|
|
245
251
|
<ul
|
|
246
252
|
#sublist
|
|
247
253
|
role="menu"
|
|
248
|
-
[class]="root ? cx('rootList') : cx('submenu')"
|
|
249
|
-
[pBind]="_ptm(root ? 'rootList' : 'submenu')"
|
|
250
|
-
[attr.id]="menuId + '_list'"
|
|
251
|
-
[tabindex]="tabindex"
|
|
252
|
-
[attr.aria-label]="ariaLabel"
|
|
253
|
-
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
254
|
-
[attr.aria-activedescendant]="focusedItemId"
|
|
254
|
+
[class]="root() ? cx('rootList') : cx('submenu')"
|
|
255
|
+
[pBind]="_ptm(root() ? 'rootList' : 'submenu')"
|
|
256
|
+
[attr.id]="menuId() + '_list'"
|
|
257
|
+
[tabindex]="tabindex()"
|
|
258
|
+
[attr.aria-label]="ariaLabel()"
|
|
259
|
+
[attr.aria-labelledBy]="ariaLabelledBy()"
|
|
260
|
+
[attr.aria-activedescendant]="focusedItemId()"
|
|
255
261
|
[attr.aria-orientation]="'vertical'"
|
|
256
262
|
(keydown)="menuKeydown.emit($event)"
|
|
257
263
|
(focus)="menuFocus.emit($event)"
|
|
258
264
|
(blur)="menuBlur.emit($event)"
|
|
259
|
-
[pMotion]="root ? true : visible"
|
|
265
|
+
[pMotion]="root() ? true : visible()"
|
|
260
266
|
[pMotionAppear]="true"
|
|
261
267
|
[pMotionName]="'p-anchored-overlay'"
|
|
262
|
-
[pMotionOptions]="motionOptions"
|
|
268
|
+
[pMotionOptions]="motionOptions()"
|
|
263
269
|
(pMotionOnBeforeEnter)="onBeforeEnter($event)"
|
|
264
270
|
(pMotionOnAfterLeave)="onAfterLeave()"
|
|
265
271
|
>
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
[
|
|
342
|
-
[
|
|
343
|
-
[attr.
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
<ng-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
*ngIf="!contextMenu.submenuIconTemplate() && !contextMenu._submenuIconTemplate"
|
|
398
|
-
[class]="cx('submenuIcon')"
|
|
399
|
-
[pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
|
|
400
|
-
[attr.aria-hidden]="true"
|
|
401
|
-
/>
|
|
402
|
-
<ng-template *ngTemplateOutlet="contextMenu.submenuIconTemplate() || contextMenu._submenuIconTemplate; context: { class: 'p-contextmenu-submenu-icon' }" [attr.aria-hidden]="true"></ng-template>
|
|
403
|
-
</ng-container>
|
|
404
|
-
</a>
|
|
405
|
-
</ng-container>
|
|
406
|
-
<ng-container *ngIf="itemTemplate">
|
|
407
|
-
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item }"></ng-template>
|
|
408
|
-
</ng-container>
|
|
409
|
-
</div>
|
|
272
|
+
@for (processedItem of items(); track processedItem.key; let index = $index) {
|
|
273
|
+
@if (isItemVisible(processedItem) && getItemProp(processedItem, 'separator')) {
|
|
274
|
+
<li [attr.id]="getItemId(processedItem)" [style]="getItemProp(processedItem, 'style')" [class]="cn(cx('separator'), getItemProp(processedItem, 'styleClass'))" role="separator" [pBind]="_ptm('separator')"></li>
|
|
275
|
+
}
|
|
276
|
+
@if (isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')) {
|
|
277
|
+
<li
|
|
278
|
+
#listItem
|
|
279
|
+
role="menuitem"
|
|
280
|
+
[attr.id]="getItemId(processedItem)"
|
|
281
|
+
[attr.data-p-highlight]="isItemActive(processedItem)"
|
|
282
|
+
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
283
|
+
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
284
|
+
[attr.aria-label]="getItemLabel(processedItem)"
|
|
285
|
+
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
|
286
|
+
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
|
287
|
+
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
|
288
|
+
[attr.aria-level]="level() + 1"
|
|
289
|
+
[attr.aria-setsize]="getAriaSetSize()"
|
|
290
|
+
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
291
|
+
[style]="getItemProp(processedItem, 'style')"
|
|
292
|
+
[class]="cn(cx('item', { instance: this, processedItem }), getItemProp(processedItem, 'styleClass'))"
|
|
293
|
+
[pBind]="getPTOptions(processedItem, index, 'item')"
|
|
294
|
+
pTooltip
|
|
295
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
296
|
+
[pTooltipUnstyled]="unstyled()"
|
|
297
|
+
>
|
|
298
|
+
<div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
|
|
299
|
+
@if (!itemTemplate()) {
|
|
300
|
+
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
301
|
+
<a
|
|
302
|
+
[attr.href]="getItemProp(processedItem, 'url')"
|
|
303
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
304
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
305
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
306
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
307
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
308
|
+
[attr.tabindex]="-1"
|
|
309
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
310
|
+
pRipple
|
|
311
|
+
>
|
|
312
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
313
|
+
<span
|
|
314
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
315
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
316
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
317
|
+
[attr.aria-hidden]="true"
|
|
318
|
+
[attr.tabindex]="-1"
|
|
319
|
+
>
|
|
320
|
+
</span>
|
|
321
|
+
}
|
|
322
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
323
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
324
|
+
{{ getItemLabel(processedItem) }}
|
|
325
|
+
</span>
|
|
326
|
+
} @else {
|
|
327
|
+
<span
|
|
328
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
329
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
330
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
331
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
332
|
+
></span>
|
|
333
|
+
}
|
|
334
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
335
|
+
<p-badge [class]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" [unstyled]="unstyled()" />
|
|
336
|
+
}
|
|
337
|
+
@if (isItemGroup(processedItem)) {
|
|
338
|
+
@if (!contextMenu.submenuIconTemplate() && !contextMenu._submenuIconTemplate()) {
|
|
339
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
340
|
+
}
|
|
341
|
+
<ng-template *ngTemplateOutlet="contextMenu.submenuIconTemplate() || contextMenu._submenuIconTemplate(); context: { class: 'p-contextmenu-submenu-icon' }" [attr.aria-hidden]="true"></ng-template>
|
|
342
|
+
}
|
|
343
|
+
</a>
|
|
344
|
+
}
|
|
345
|
+
@if (getItemProp(processedItem, 'routerLink')) {
|
|
346
|
+
<a
|
|
347
|
+
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
|
348
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
349
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
350
|
+
[attr.tabindex]="-1"
|
|
351
|
+
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
|
352
|
+
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
|
353
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
354
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
355
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
356
|
+
[fragment]="getItemProp(processedItem, 'fragment')"
|
|
357
|
+
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
|
358
|
+
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
|
359
|
+
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
|
360
|
+
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
|
361
|
+
[state]="getItemProp(processedItem, 'state')"
|
|
362
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
363
|
+
pRipple
|
|
364
|
+
>
|
|
365
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
366
|
+
<span
|
|
367
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
368
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
369
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
370
|
+
[attr.aria-hidden]="true"
|
|
371
|
+
[attr.tabindex]="-1"
|
|
372
|
+
>
|
|
373
|
+
</span>
|
|
374
|
+
}
|
|
375
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
376
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
377
|
+
{{ getItemLabel(processedItem) }}
|
|
378
|
+
</span>
|
|
379
|
+
} @else {
|
|
380
|
+
<span
|
|
381
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
382
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
383
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
384
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
385
|
+
></span>
|
|
386
|
+
}
|
|
387
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
388
|
+
<p-badge [class]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" [unstyled]="unstyled()" />
|
|
389
|
+
}
|
|
390
|
+
@if (isItemGroup(processedItem)) {
|
|
391
|
+
@if (!contextMenu.submenuIconTemplate() && !contextMenu._submenuIconTemplate()) {
|
|
392
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
393
|
+
}
|
|
394
|
+
<ng-template *ngTemplateOutlet="contextMenu.submenuIconTemplate() || contextMenu._submenuIconTemplate(); context: { class: 'p-contextmenu-submenu-icon' }" [attr.aria-hidden]="true"></ng-template>
|
|
395
|
+
}
|
|
396
|
+
</a>
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
@if (itemTemplate()) {
|
|
400
|
+
<ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item }"></ng-template>
|
|
401
|
+
}
|
|
402
|
+
</div>
|
|
410
403
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
404
|
+
@if (isItemVisible(processedItem) && isItemGroup(processedItem)) {
|
|
405
|
+
<p-contextmenu-sub
|
|
406
|
+
[items]="processedItem.items"
|
|
407
|
+
[itemTemplate]="itemTemplate()"
|
|
408
|
+
[menuId]="menuId()"
|
|
409
|
+
[visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
|
|
410
|
+
[activeItemPath]="activeItemPath()"
|
|
411
|
+
[focusedItemId]="focusedItemId()"
|
|
412
|
+
[level]="level() + 1"
|
|
413
|
+
(itemClick)="itemClick.emit($event)"
|
|
414
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
415
|
+
[pt]="pt()"
|
|
416
|
+
[motionOptions]="motionOptions()"
|
|
417
|
+
[unstyled]="unstyled()"
|
|
418
|
+
/>
|
|
419
|
+
}
|
|
420
|
+
</li>
|
|
421
|
+
}
|
|
422
|
+
}
|
|
428
423
|
</ul>
|
|
429
424
|
}
|
|
430
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ContextMenuSub, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: ["visible", "items", "itemTemplate", "root", "
|
|
425
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ContextMenuSub, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: ["visible", "items", "itemTemplate", "root", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.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: i4.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i5.Badge, selector: "p-badge", inputs: ["badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i6.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 });
|
|
431
426
|
}
|
|
432
427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ContextMenuSub, decorators: [{
|
|
433
428
|
type: Component,
|
|
434
429
|
args: [{
|
|
435
|
-
changeDetection: ChangeDetectionStrategy.
|
|
430
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
436
431
|
selector: 'p-contextMenuSub, p-contextmenu-sub',
|
|
437
|
-
standalone: true,
|
|
438
432
|
imports: [CommonModule, RouterModule, Ripple, TooltipModule, AngleRightIcon, BadgeModule, SharedModule, BindModule, MotionModule],
|
|
439
433
|
template: `
|
|
440
434
|
@if (render()) {
|
|
441
435
|
<ul
|
|
442
436
|
#sublist
|
|
443
437
|
role="menu"
|
|
444
|
-
[class]="root ? cx('rootList') : cx('submenu')"
|
|
445
|
-
[pBind]="_ptm(root ? 'rootList' : 'submenu')"
|
|
446
|
-
[attr.id]="menuId + '_list'"
|
|
447
|
-
[tabindex]="tabindex"
|
|
448
|
-
[attr.aria-label]="ariaLabel"
|
|
449
|
-
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
450
|
-
[attr.aria-activedescendant]="focusedItemId"
|
|
438
|
+
[class]="root() ? cx('rootList') : cx('submenu')"
|
|
439
|
+
[pBind]="_ptm(root() ? 'rootList' : 'submenu')"
|
|
440
|
+
[attr.id]="menuId() + '_list'"
|
|
441
|
+
[tabindex]="tabindex()"
|
|
442
|
+
[attr.aria-label]="ariaLabel()"
|
|
443
|
+
[attr.aria-labelledBy]="ariaLabelledBy()"
|
|
444
|
+
[attr.aria-activedescendant]="focusedItemId()"
|
|
451
445
|
[attr.aria-orientation]="'vertical'"
|
|
452
446
|
(keydown)="menuKeydown.emit($event)"
|
|
453
447
|
(focus)="menuFocus.emit($event)"
|
|
454
448
|
(blur)="menuBlur.emit($event)"
|
|
455
|
-
[pMotion]="root ? true : visible"
|
|
449
|
+
[pMotion]="root() ? true : visible()"
|
|
456
450
|
[pMotionAppear]="true"
|
|
457
451
|
[pMotionName]="'p-anchored-overlay'"
|
|
458
|
-
[pMotionOptions]="motionOptions"
|
|
452
|
+
[pMotionOptions]="motionOptions()"
|
|
459
453
|
(pMotionOnBeforeEnter)="onBeforeEnter($event)"
|
|
460
454
|
(pMotionOnAfterLeave)="onAfterLeave()"
|
|
461
455
|
>
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
[
|
|
538
|
-
[
|
|
539
|
-
[attr.
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
<ng-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
*ngIf="!contextMenu.submenuIconTemplate() && !contextMenu._submenuIconTemplate"
|
|
594
|
-
[class]="cx('submenuIcon')"
|
|
595
|
-
[pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
|
|
596
|
-
[attr.aria-hidden]="true"
|
|
597
|
-
/>
|
|
598
|
-
<ng-template *ngTemplateOutlet="contextMenu.submenuIconTemplate() || contextMenu._submenuIconTemplate; context: { class: 'p-contextmenu-submenu-icon' }" [attr.aria-hidden]="true"></ng-template>
|
|
599
|
-
</ng-container>
|
|
600
|
-
</a>
|
|
601
|
-
</ng-container>
|
|
602
|
-
<ng-container *ngIf="itemTemplate">
|
|
603
|
-
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item }"></ng-template>
|
|
604
|
-
</ng-container>
|
|
605
|
-
</div>
|
|
456
|
+
@for (processedItem of items(); track processedItem.key; let index = $index) {
|
|
457
|
+
@if (isItemVisible(processedItem) && getItemProp(processedItem, 'separator')) {
|
|
458
|
+
<li [attr.id]="getItemId(processedItem)" [style]="getItemProp(processedItem, 'style')" [class]="cn(cx('separator'), getItemProp(processedItem, 'styleClass'))" role="separator" [pBind]="_ptm('separator')"></li>
|
|
459
|
+
}
|
|
460
|
+
@if (isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')) {
|
|
461
|
+
<li
|
|
462
|
+
#listItem
|
|
463
|
+
role="menuitem"
|
|
464
|
+
[attr.id]="getItemId(processedItem)"
|
|
465
|
+
[attr.data-p-highlight]="isItemActive(processedItem)"
|
|
466
|
+
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
467
|
+
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
468
|
+
[attr.aria-label]="getItemLabel(processedItem)"
|
|
469
|
+
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
|
470
|
+
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
|
471
|
+
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
|
472
|
+
[attr.aria-level]="level() + 1"
|
|
473
|
+
[attr.aria-setsize]="getAriaSetSize()"
|
|
474
|
+
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
475
|
+
[style]="getItemProp(processedItem, 'style')"
|
|
476
|
+
[class]="cn(cx('item', { instance: this, processedItem }), getItemProp(processedItem, 'styleClass'))"
|
|
477
|
+
[pBind]="getPTOptions(processedItem, index, 'item')"
|
|
478
|
+
pTooltip
|
|
479
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
480
|
+
[pTooltipUnstyled]="unstyled()"
|
|
481
|
+
>
|
|
482
|
+
<div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
|
|
483
|
+
@if (!itemTemplate()) {
|
|
484
|
+
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
485
|
+
<a
|
|
486
|
+
[attr.href]="getItemProp(processedItem, 'url')"
|
|
487
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
488
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
489
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
490
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
491
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
492
|
+
[attr.tabindex]="-1"
|
|
493
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
494
|
+
pRipple
|
|
495
|
+
>
|
|
496
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
497
|
+
<span
|
|
498
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
499
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
500
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
501
|
+
[attr.aria-hidden]="true"
|
|
502
|
+
[attr.tabindex]="-1"
|
|
503
|
+
>
|
|
504
|
+
</span>
|
|
505
|
+
}
|
|
506
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
507
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
508
|
+
{{ getItemLabel(processedItem) }}
|
|
509
|
+
</span>
|
|
510
|
+
} @else {
|
|
511
|
+
<span
|
|
512
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
513
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
514
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
515
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
516
|
+
></span>
|
|
517
|
+
}
|
|
518
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
519
|
+
<p-badge [class]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" [unstyled]="unstyled()" />
|
|
520
|
+
}
|
|
521
|
+
@if (isItemGroup(processedItem)) {
|
|
522
|
+
@if (!contextMenu.submenuIconTemplate() && !contextMenu._submenuIconTemplate()) {
|
|
523
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
524
|
+
}
|
|
525
|
+
<ng-template *ngTemplateOutlet="contextMenu.submenuIconTemplate() || contextMenu._submenuIconTemplate(); context: { class: 'p-contextmenu-submenu-icon' }" [attr.aria-hidden]="true"></ng-template>
|
|
526
|
+
}
|
|
527
|
+
</a>
|
|
528
|
+
}
|
|
529
|
+
@if (getItemProp(processedItem, 'routerLink')) {
|
|
530
|
+
<a
|
|
531
|
+
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
|
532
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
533
|
+
[attr.title]="getItemProp(processedItem, 'title')"
|
|
534
|
+
[attr.tabindex]="-1"
|
|
535
|
+
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
|
536
|
+
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
|
537
|
+
[target]="getItemProp(processedItem, 'target')"
|
|
538
|
+
[class]="cn(cx('itemLink'), getItemProp(processedItem, 'linkClass'))"
|
|
539
|
+
[ngStyle]="getItemProp(processedItem, 'linkStyle')"
|
|
540
|
+
[fragment]="getItemProp(processedItem, 'fragment')"
|
|
541
|
+
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
|
542
|
+
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
|
543
|
+
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
|
544
|
+
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
|
545
|
+
[state]="getItemProp(processedItem, 'state')"
|
|
546
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
547
|
+
pRipple
|
|
548
|
+
>
|
|
549
|
+
@if (getItemProp(processedItem, 'icon')) {
|
|
550
|
+
<span
|
|
551
|
+
[class]="cn(cx('itemIcon'), getItemProp(processedItem, 'icon'), getItemProp(processedItem, 'iconClass'))"
|
|
552
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
553
|
+
[pBind]="getPTOptions(processedItem, index, 'itemIcon')"
|
|
554
|
+
[attr.aria-hidden]="true"
|
|
555
|
+
[attr.tabindex]="-1"
|
|
556
|
+
>
|
|
557
|
+
</span>
|
|
558
|
+
}
|
|
559
|
+
@if (getItemProp(processedItem, 'escape')) {
|
|
560
|
+
<span [class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))" [ngStyle]="getItemProp(processedItem, 'labelStyle')" [pBind]="getPTOptions(processedItem, index, 'itemLabel')">
|
|
561
|
+
{{ getItemLabel(processedItem) }}
|
|
562
|
+
</span>
|
|
563
|
+
} @else {
|
|
564
|
+
<span
|
|
565
|
+
[class]="cn(cx('itemLabel'), getItemProp(processedItem, 'labelClass'))"
|
|
566
|
+
[ngStyle]="getItemProp(processedItem, 'labelStyle')"
|
|
567
|
+
[innerHTML]="getItemLabel(processedItem)"
|
|
568
|
+
[pBind]="getPTOptions(processedItem, index, 'itemLabel')"
|
|
569
|
+
></span>
|
|
570
|
+
}
|
|
571
|
+
@if (getItemProp(processedItem, 'badge')) {
|
|
572
|
+
<p-badge [class]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" [unstyled]="unstyled()" />
|
|
573
|
+
}
|
|
574
|
+
@if (isItemGroup(processedItem)) {
|
|
575
|
+
@if (!contextMenu.submenuIconTemplate() && !contextMenu._submenuIconTemplate()) {
|
|
576
|
+
<svg data-p-icon="angle-right" [class]="cx('submenuIcon')" [pBind]="getPTOptions(processedItem, index, 'submenuIcon')" [attr.aria-hidden]="true" />
|
|
577
|
+
}
|
|
578
|
+
<ng-template *ngTemplateOutlet="contextMenu.submenuIconTemplate() || contextMenu._submenuIconTemplate(); context: { class: 'p-contextmenu-submenu-icon' }" [attr.aria-hidden]="true"></ng-template>
|
|
579
|
+
}
|
|
580
|
+
</a>
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
@if (itemTemplate()) {
|
|
584
|
+
<ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item }"></ng-template>
|
|
585
|
+
}
|
|
586
|
+
</div>
|
|
606
587
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
588
|
+
@if (isItemVisible(processedItem) && isItemGroup(processedItem)) {
|
|
589
|
+
<p-contextmenu-sub
|
|
590
|
+
[items]="processedItem.items"
|
|
591
|
+
[itemTemplate]="itemTemplate()"
|
|
592
|
+
[menuId]="menuId()"
|
|
593
|
+
[visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
|
|
594
|
+
[activeItemPath]="activeItemPath()"
|
|
595
|
+
[focusedItemId]="focusedItemId()"
|
|
596
|
+
[level]="level() + 1"
|
|
597
|
+
(itemClick)="itemClick.emit($event)"
|
|
598
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
599
|
+
[pt]="pt()"
|
|
600
|
+
[motionOptions]="motionOptions()"
|
|
601
|
+
[unstyled]="unstyled()"
|
|
602
|
+
/>
|
|
603
|
+
}
|
|
604
|
+
</li>
|
|
605
|
+
}
|
|
606
|
+
}
|
|
624
607
|
</ul>
|
|
625
608
|
}
|
|
626
609
|
`,
|
|
627
610
|
encapsulation: ViewEncapsulation.None,
|
|
628
611
|
providers: [ContextMenuStyle, { provide: CONTEXTMENUSUB_INSTANCE, useExisting: ContextMenuSub }, { provide: PARENT_INSTANCE, useExisting: ContextMenuSub }]
|
|
629
612
|
}]
|
|
630
|
-
}], ctorParameters: () => [], propDecorators: { visible: [{
|
|
631
|
-
type: Input
|
|
632
|
-
}], items: [{
|
|
633
|
-
type: Input
|
|
634
|
-
}], itemTemplate: [{
|
|
635
|
-
type: Input
|
|
636
|
-
}], root: [{
|
|
637
|
-
type: Input,
|
|
638
|
-
args: [{ transform: booleanAttribute }]
|
|
639
|
-
}], autoZIndex: [{
|
|
640
|
-
type: Input,
|
|
641
|
-
args: [{ transform: booleanAttribute }]
|
|
642
|
-
}], baseZIndex: [{
|
|
643
|
-
type: Input,
|
|
644
|
-
args: [{ transform: numberAttribute }]
|
|
645
|
-
}], popup: [{
|
|
646
|
-
type: Input,
|
|
647
|
-
args: [{ transform: booleanAttribute }]
|
|
648
|
-
}], menuId: [{
|
|
649
|
-
type: Input
|
|
650
|
-
}], ariaLabel: [{
|
|
651
|
-
type: Input
|
|
652
|
-
}], ariaLabelledBy: [{
|
|
653
|
-
type: Input
|
|
654
|
-
}], level: [{
|
|
655
|
-
type: Input,
|
|
656
|
-
args: [{ transform: numberAttribute }]
|
|
657
|
-
}], focusedItemId: [{
|
|
658
|
-
type: Input
|
|
659
|
-
}], activeItemPath: [{
|
|
660
|
-
type: Input
|
|
661
|
-
}], motionOptions: [{
|
|
662
|
-
type: Input
|
|
663
|
-
}], tabindex: [{
|
|
664
|
-
type: Input,
|
|
665
|
-
args: [{ transform: numberAttribute }]
|
|
666
|
-
}], 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 }] }] } });
|
|
613
|
+
}], 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 }] }], 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 }] }], 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 }] }] } });
|
|
667
614
|
/**
|
|
668
615
|
* ContextMenu displays an overlay menu on right click of its target. Note that components like Table has special integration with ContextMenu.
|
|
669
616
|
* @group Components
|
|
@@ -675,73 +622,78 @@ class ContextMenu extends BaseComponent {
|
|
|
675
622
|
* An array of menuitems.
|
|
676
623
|
* @group Props
|
|
677
624
|
*/
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
this._processedItems = this.createProcessedItems(this._model || []);
|
|
681
|
-
}
|
|
682
|
-
get model() {
|
|
683
|
-
return this._model;
|
|
684
|
-
}
|
|
625
|
+
model = input(undefined, /* @ts-ignore */
|
|
626
|
+
...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
|
|
685
627
|
/**
|
|
686
628
|
* Event for which the menu must be displayed.
|
|
687
629
|
* @group Props
|
|
688
630
|
*/
|
|
689
|
-
triggerEvent = 'contextmenu'
|
|
631
|
+
triggerEvent = input('contextmenu', /* @ts-ignore */
|
|
632
|
+
...(ngDevMode ? [{ debugName: "triggerEvent" }] : /* istanbul ignore next */ []));
|
|
690
633
|
/**
|
|
691
634
|
* Local template variable name of the element to attach the context menu.
|
|
692
635
|
* @group Props
|
|
693
636
|
*/
|
|
694
|
-
target
|
|
637
|
+
target = input(undefined, /* @ts-ignore */
|
|
638
|
+
...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
|
|
695
639
|
/**
|
|
696
640
|
* Attaches the menu to document instead of a particular item.
|
|
697
641
|
* @group Props
|
|
698
642
|
*/
|
|
699
|
-
global;
|
|
643
|
+
global = input(undefined, { ...(ngDevMode ? { debugName: "global" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
700
644
|
/**
|
|
701
645
|
* Inline style of the component.
|
|
702
646
|
* @group Props
|
|
703
647
|
*/
|
|
704
|
-
style
|
|
648
|
+
style = input(undefined, /* @ts-ignore */
|
|
649
|
+
...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
705
650
|
/**
|
|
706
651
|
* Style class of the component.
|
|
707
652
|
* @group Props
|
|
708
653
|
*/
|
|
709
|
-
styleClass
|
|
654
|
+
styleClass = input(undefined, /* @ts-ignore */
|
|
655
|
+
...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
710
656
|
/**
|
|
711
657
|
* Whether to automatically manage layering.
|
|
712
658
|
* @group Props
|
|
713
659
|
*/
|
|
714
|
-
autoZIndex = true;
|
|
660
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
715
661
|
/**
|
|
716
662
|
* Base zIndex value to use in layering.
|
|
717
663
|
* @group Props
|
|
718
664
|
*/
|
|
719
|
-
baseZIndex = 0;
|
|
665
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
720
666
|
/**
|
|
721
667
|
* Current id state as a string.
|
|
722
668
|
* @group Props
|
|
723
669
|
*/
|
|
724
|
-
id
|
|
670
|
+
id = input(undefined, /* @ts-ignore */
|
|
671
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
672
|
+
_id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
|
|
673
|
+
...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
|
|
725
674
|
/**
|
|
726
675
|
* The breakpoint to define the maximum width boundary.
|
|
727
676
|
* @group Props
|
|
728
677
|
*/
|
|
729
|
-
breakpoint = '960px'
|
|
678
|
+
breakpoint = input('960px', /* @ts-ignore */
|
|
679
|
+
...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
|
|
730
680
|
/**
|
|
731
681
|
* Defines a string value that labels an interactive element.
|
|
732
682
|
* @group Props
|
|
733
683
|
*/
|
|
734
|
-
ariaLabel
|
|
684
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
685
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
735
686
|
/**
|
|
736
687
|
* Identifier of the underlying input element.
|
|
737
688
|
* @group Props
|
|
738
689
|
*/
|
|
739
|
-
ariaLabelledBy
|
|
690
|
+
ariaLabelledBy = input(undefined, /* @ts-ignore */
|
|
691
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
740
692
|
/**
|
|
741
693
|
* Press delay in touch devices as miliseconds.
|
|
742
694
|
* @group Props
|
|
743
695
|
*/
|
|
744
|
-
pressDelay = 500;
|
|
696
|
+
pressDelay = input(500, { ...(ngDevMode ? { debugName: "pressDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
745
697
|
/**
|
|
746
698
|
* 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).
|
|
747
699
|
* @defaultValue 'self'
|
|
@@ -774,21 +726,28 @@ class ContextMenu extends BaseComponent {
|
|
|
774
726
|
onHide = output();
|
|
775
727
|
rootmenu = viewChild('rootmenu', /* @ts-ignore */
|
|
776
728
|
...(ngDevMode ? [{ debugName: "rootmenu" }] : /* istanbul ignore next */ []));
|
|
777
|
-
container
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
729
|
+
container = signal(undefined, /* @ts-ignore */
|
|
730
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
731
|
+
handleSubmenuAfterLeave = signal(null, /* @ts-ignore */
|
|
732
|
+
...(ngDevMode ? [{ debugName: "handleSubmenuAfterLeave" }] : /* istanbul ignore next */ []));
|
|
733
|
+
resizeListener = signal(undefined, /* @ts-ignore */
|
|
734
|
+
...(ngDevMode ? [{ debugName: "resizeListener" }] : /* istanbul ignore next */ []));
|
|
735
|
+
triggerEventListener = signal(undefined, /* @ts-ignore */
|
|
736
|
+
...(ngDevMode ? [{ debugName: "triggerEventListener" }] : /* istanbul ignore next */ []));
|
|
737
|
+
documentClickListener = signal(undefined, /* @ts-ignore */
|
|
738
|
+
...(ngDevMode ? [{ debugName: "documentClickListener" }] : /* istanbul ignore next */ []));
|
|
739
|
+
touchEndListener = signal(undefined, /* @ts-ignore */
|
|
740
|
+
...(ngDevMode ? [{ debugName: "touchEndListener" }] : /* istanbul ignore next */ []));
|
|
741
|
+
pageX = signal(undefined, /* @ts-ignore */
|
|
742
|
+
...(ngDevMode ? [{ debugName: "pageX" }] : /* istanbul ignore next */ []));
|
|
743
|
+
pageY = signal(undefined, /* @ts-ignore */
|
|
744
|
+
...(ngDevMode ? [{ debugName: "pageY" }] : /* istanbul ignore next */ []));
|
|
787
745
|
visible = signal(false, /* @ts-ignore */
|
|
788
746
|
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
789
747
|
render = signal(false, /* @ts-ignore */
|
|
790
748
|
...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
|
|
791
|
-
focused = false
|
|
749
|
+
focused = signal(false, /* @ts-ignore */
|
|
750
|
+
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
792
751
|
activeItemPath = signal([], /* @ts-ignore */
|
|
793
752
|
...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
|
|
794
753
|
focusedItemInfo = signal({ index: -1, level: 0, parentKey: '', item: null }, /* @ts-ignore */
|
|
@@ -797,31 +756,33 @@ class ContextMenu extends BaseComponent {
|
|
|
797
756
|
...(ngDevMode ? [{ debugName: "submenuVisible" }] : /* istanbul ignore next */ []));
|
|
798
757
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
799
758
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
800
|
-
searchValue = ''
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
pressTimer
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
759
|
+
searchValue = signal('', /* @ts-ignore */
|
|
760
|
+
...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
|
|
761
|
+
searchTimeout = signal(undefined, /* @ts-ignore */
|
|
762
|
+
...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
|
|
763
|
+
pressTimer = signal(undefined, /* @ts-ignore */
|
|
764
|
+
...(ngDevMode ? [{ debugName: "pressTimer" }] : /* istanbul ignore next */ []));
|
|
765
|
+
hideCallback = signal(undefined, /* @ts-ignore */
|
|
766
|
+
...(ngDevMode ? [{ debugName: "hideCallback" }] : /* istanbul ignore next */ []));
|
|
767
|
+
matchMediaListener = signal(undefined, /* @ts-ignore */
|
|
768
|
+
...(ngDevMode ? [{ debugName: "matchMediaListener" }] : /* istanbul ignore next */ []));
|
|
769
|
+
query = signal(undefined, /* @ts-ignore */
|
|
770
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
808
771
|
queryMatches = signal(false, /* @ts-ignore */
|
|
809
772
|
...(ngDevMode ? [{ debugName: "queryMatches" }] : /* istanbul ignore next */ []));
|
|
810
773
|
_componentStyle = inject(ContextMenuStyle);
|
|
811
|
-
|
|
774
|
+
visibleItems = computed(() => {
|
|
812
775
|
const processedItem = this.activeItemPath().find((p) => p.key === this.focusedItemInfo().parentKey);
|
|
813
|
-
return processedItem ? processedItem.items : this.processedItems;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
return this._processedItems;
|
|
820
|
-
}
|
|
821
|
-
get focusedItemId() {
|
|
776
|
+
return processedItem ? processedItem.items : this.processedItems();
|
|
777
|
+
}, /* @ts-ignore */
|
|
778
|
+
...(ngDevMode ? [{ debugName: "visibleItems" }] : /* istanbul ignore next */ []));
|
|
779
|
+
processedItems = computed(() => this.createProcessedItems(this.model() || []), /* @ts-ignore */
|
|
780
|
+
...(ngDevMode ? [{ debugName: "processedItems" }] : /* istanbul ignore next */ []));
|
|
781
|
+
focusedItemId = computed(() => {
|
|
822
782
|
const focusedItem = this.focusedItemInfo();
|
|
823
|
-
return focusedItem.item && focusedItem.item?.id ? focusedItem.item.id : focusedItem.index !== -1 ? `${this.
|
|
824
|
-
}
|
|
783
|
+
return focusedItem.item && focusedItem.item?.id ? focusedItem.item.id : focusedItem.index !== -1 ? `${this._id()}${isNotEmpty(focusedItem.parentKey) ? '_' + focusedItem.parentKey : ''}_${focusedItem.index}` : null;
|
|
784
|
+
}, /* @ts-ignore */
|
|
785
|
+
...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
|
|
825
786
|
constructor() {
|
|
826
787
|
super();
|
|
827
788
|
effect(() => {
|
|
@@ -835,7 +796,6 @@ class ContextMenu extends BaseComponent {
|
|
|
835
796
|
});
|
|
836
797
|
}
|
|
837
798
|
onInit() {
|
|
838
|
-
this.id = this.id || uuid('pn_id_');
|
|
839
799
|
this.bindMatchMediaListener();
|
|
840
800
|
this.bindTriggerEventListener();
|
|
841
801
|
}
|
|
@@ -844,27 +804,28 @@ class ContextMenu extends BaseComponent {
|
|
|
844
804
|
}
|
|
845
805
|
bindTriggerEventListener() {
|
|
846
806
|
if (isPlatformBrowser(this.platformId)) {
|
|
847
|
-
if (!this.triggerEventListener) {
|
|
807
|
+
if (!this.triggerEventListener()) {
|
|
808
|
+
const target = this.target();
|
|
848
809
|
if (!this.isMobile()) {
|
|
849
|
-
if (this.global) {
|
|
850
|
-
this.triggerEventListener
|
|
810
|
+
if (this.global()) {
|
|
811
|
+
this.triggerEventListener.set(this.renderer.listen(this.document, this.triggerEvent(), (event) => {
|
|
851
812
|
this.show(event);
|
|
852
|
-
});
|
|
813
|
+
}));
|
|
853
814
|
}
|
|
854
|
-
else if (
|
|
855
|
-
this.triggerEventListener
|
|
815
|
+
else if (target) {
|
|
816
|
+
this.triggerEventListener.set(this.renderer.listen(target, this.triggerEvent(), (event) => {
|
|
856
817
|
this.show(event);
|
|
857
|
-
});
|
|
818
|
+
}));
|
|
858
819
|
}
|
|
859
820
|
}
|
|
860
821
|
else {
|
|
861
|
-
if (this.global) {
|
|
862
|
-
this.triggerEventListener
|
|
863
|
-
this.touchEndListener
|
|
822
|
+
if (this.global()) {
|
|
823
|
+
this.triggerEventListener.set(this.renderer.listen(this.document, 'touchstart', this.onTouchStart.bind(this)));
|
|
824
|
+
this.touchEndListener.set(this.renderer.listen(this.document, 'touchend', this.onTouchEnd.bind(this)));
|
|
864
825
|
}
|
|
865
|
-
else if (
|
|
866
|
-
this.triggerEventListener
|
|
867
|
-
this.touchEndListener
|
|
826
|
+
else if (target) {
|
|
827
|
+
this.triggerEventListener.set(this.renderer.listen(target, 'touchstart', this.onTouchStart.bind(this)));
|
|
828
|
+
this.touchEndListener.set(this.renderer.listen(target, 'touchend', this.onTouchEnd.bind(this)));
|
|
868
829
|
}
|
|
869
830
|
}
|
|
870
831
|
}
|
|
@@ -872,18 +833,18 @@ class ContextMenu extends BaseComponent {
|
|
|
872
833
|
}
|
|
873
834
|
bindGlobalListeners() {
|
|
874
835
|
if (isPlatformBrowser(this.platformId)) {
|
|
875
|
-
if (!this.documentClickListener) {
|
|
836
|
+
if (!this.documentClickListener()) {
|
|
876
837
|
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
|
|
877
|
-
this.documentClickListener
|
|
878
|
-
if (this.container?.offsetParent && this.isOutsideClicked(event) && !event.ctrlKey && event.button !== 2) {
|
|
838
|
+
this.documentClickListener.set(this.renderer.listen(documentTarget, 'click', (event) => {
|
|
839
|
+
if (this.container()?.offsetParent && this.isOutsideClicked(event) && !event.ctrlKey && event.button !== 2) {
|
|
879
840
|
this.hide();
|
|
880
841
|
}
|
|
881
|
-
});
|
|
842
|
+
}));
|
|
882
843
|
}
|
|
883
|
-
if (!this.resizeListener) {
|
|
884
|
-
this.resizeListener
|
|
844
|
+
if (!this.resizeListener()) {
|
|
845
|
+
this.resizeListener.set(this.renderer.listen(this.document.defaultView, 'resize', (event) => {
|
|
885
846
|
this.hide();
|
|
886
|
-
});
|
|
847
|
+
}));
|
|
887
848
|
}
|
|
888
849
|
}
|
|
889
850
|
}
|
|
@@ -899,23 +860,14 @@ class ContextMenu extends BaseComponent {
|
|
|
899
860
|
submenuIconTemplate = contentChild('submenuicon', { ...(ngDevMode ? { debugName: "submenuIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
900
861
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
901
862
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
902
|
-
_submenuIconTemplate
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
case 'item':
|
|
911
|
-
this._itemTemplate = item.template;
|
|
912
|
-
break;
|
|
913
|
-
default:
|
|
914
|
-
this._itemTemplate = item.template;
|
|
915
|
-
break;
|
|
916
|
-
}
|
|
917
|
-
});
|
|
918
|
-
}
|
|
863
|
+
_submenuIconTemplate = computed(() => this.templates()
|
|
864
|
+
.filter((item) => item.getType() === 'submenuicon')
|
|
865
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
866
|
+
...(ngDevMode ? [{ debugName: "_submenuIconTemplate" }] : /* istanbul ignore next */ []));
|
|
867
|
+
_itemTemplate = computed(() => this.templates()
|
|
868
|
+
.filter((item) => item.getType() !== 'submenuicon')
|
|
869
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
870
|
+
...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
|
|
919
871
|
getPTOptions(key, item, index, id) {
|
|
920
872
|
return this.ptm(key, {
|
|
921
873
|
context: {
|
|
@@ -949,22 +901,23 @@ class ContextMenu extends BaseComponent {
|
|
|
949
901
|
}
|
|
950
902
|
bindMatchMediaListener() {
|
|
951
903
|
if (isPlatformBrowser(this.platformId)) {
|
|
952
|
-
if (!this.matchMediaListener) {
|
|
953
|
-
const query = window.matchMedia(`(max-width: ${this.breakpoint})`);
|
|
954
|
-
this.query
|
|
904
|
+
if (!this.matchMediaListener()) {
|
|
905
|
+
const query = window.matchMedia(`(max-width: ${this.breakpoint()})`);
|
|
906
|
+
this.query.set(query);
|
|
955
907
|
this.queryMatches.set(query.matches);
|
|
956
|
-
|
|
908
|
+
const matchMediaListener = () => {
|
|
957
909
|
this.queryMatches.set(query.matches);
|
|
958
|
-
this.cd.markForCheck();
|
|
959
910
|
};
|
|
960
|
-
|
|
911
|
+
this.matchMediaListener.set(matchMediaListener);
|
|
912
|
+
query.addEventListener('change', matchMediaListener);
|
|
961
913
|
}
|
|
962
914
|
}
|
|
963
915
|
}
|
|
964
916
|
unbindMatchMediaListener() {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
this.matchMediaListener
|
|
917
|
+
const matchMediaListener = this.matchMediaListener();
|
|
918
|
+
if (matchMediaListener) {
|
|
919
|
+
this.query()?.removeEventListener('change', matchMediaListener);
|
|
920
|
+
this.matchMediaListener.set(null);
|
|
968
921
|
}
|
|
969
922
|
}
|
|
970
923
|
getItemProp(item, name) {
|
|
@@ -995,7 +948,7 @@ class ContextMenu extends BaseComponent {
|
|
|
995
948
|
return this.getItemProp(item, 'separator');
|
|
996
949
|
}
|
|
997
950
|
isItemMatched(processedItem) {
|
|
998
|
-
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
|
|
951
|
+
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue().toLocaleLowerCase());
|
|
999
952
|
}
|
|
1000
953
|
isProccessedItemGroup(processedItem) {
|
|
1001
954
|
return processedItem && isNotEmpty(processedItem.items);
|
|
@@ -1070,12 +1023,12 @@ class ContextMenu extends BaseComponent {
|
|
|
1070
1023
|
event.preventDefault();
|
|
1071
1024
|
}
|
|
1072
1025
|
onArrowRightKey(event) {
|
|
1073
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1026
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1074
1027
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1075
1028
|
if (grouped) {
|
|
1076
1029
|
this.onItemChange({ originalEvent: event, processedItem });
|
|
1077
1030
|
this.focusedItemInfo.set({ index: -1, parentKey: processedItem.key, item: processedItem.item });
|
|
1078
|
-
this.searchValue
|
|
1031
|
+
this.searchValue.set('');
|
|
1079
1032
|
this.onArrowDownKey(event);
|
|
1080
1033
|
}
|
|
1081
1034
|
event.preventDefault();
|
|
@@ -1083,7 +1036,7 @@ class ContextMenu extends BaseComponent {
|
|
|
1083
1036
|
onArrowUpKey(event) {
|
|
1084
1037
|
if (event.altKey) {
|
|
1085
1038
|
if (this.focusedItemInfo().index !== -1) {
|
|
1086
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1039
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1087
1040
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1088
1041
|
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
1089
1042
|
}
|
|
@@ -1097,12 +1050,12 @@ class ContextMenu extends BaseComponent {
|
|
|
1097
1050
|
}
|
|
1098
1051
|
}
|
|
1099
1052
|
onArrowLeftKey(event) {
|
|
1100
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1053
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1101
1054
|
const parentItem = this.activeItemPath().find((p) => p.key === processedItem.parentKey);
|
|
1102
1055
|
const root = isEmpty(processedItem.parent);
|
|
1103
1056
|
if (!root) {
|
|
1104
1057
|
this.focusedItemInfo.set({ index: -1, parentKey: parentItem ? parentItem.parentKey : '', item: processedItem.item });
|
|
1105
|
-
this.searchValue
|
|
1058
|
+
this.searchValue.set('');
|
|
1106
1059
|
this.onArrowDownKey(event);
|
|
1107
1060
|
}
|
|
1108
1061
|
const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== this.focusedItemInfo().parentKey);
|
|
@@ -1129,7 +1082,7 @@ class ContextMenu extends BaseComponent {
|
|
|
1129
1082
|
}
|
|
1130
1083
|
onTabKey(event) {
|
|
1131
1084
|
if (this.focusedItemInfo().index !== -1) {
|
|
1132
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1085
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1133
1086
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1134
1087
|
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
1135
1088
|
}
|
|
@@ -1137,10 +1090,10 @@ class ContextMenu extends BaseComponent {
|
|
|
1137
1090
|
}
|
|
1138
1091
|
onEnterKey(event) {
|
|
1139
1092
|
if (this.focusedItemInfo().index !== -1) {
|
|
1140
|
-
const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId}`}"]`);
|
|
1093
|
+
const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId()}`}"]`);
|
|
1141
1094
|
const anchorElement = element && (findSingle(element, '[data-pc-section="itemlink"]') || findSingle(element, 'a,button'));
|
|
1142
1095
|
anchorElement ? anchorElement.click() : element && element.click();
|
|
1143
|
-
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
1096
|
+
const processedItem = this.visibleItems()[this.focusedItemInfo().index];
|
|
1144
1097
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
1145
1098
|
if (!grouped) {
|
|
1146
1099
|
const focusedItemInfo = this.focusedItemInfo();
|
|
@@ -1168,21 +1121,21 @@ class ContextMenu extends BaseComponent {
|
|
|
1168
1121
|
this.activeItemPath.set(activeItemPath);
|
|
1169
1122
|
}
|
|
1170
1123
|
onMenuFocus(event) {
|
|
1171
|
-
this.focused
|
|
1124
|
+
this.focused.set(true);
|
|
1172
1125
|
const focusedItemInfo = this.focusedItemInfo().index !== -1 ? this.focusedItemInfo() : { index: -1, level: 0, parentKey: '', item: null };
|
|
1173
1126
|
this.focusedItemInfo.set(focusedItemInfo);
|
|
1174
1127
|
}
|
|
1175
1128
|
onMenuBlur(event) {
|
|
1176
|
-
this.focused
|
|
1129
|
+
this.focused.set(false);
|
|
1177
1130
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
|
|
1178
|
-
this.searchValue
|
|
1131
|
+
this.searchValue.set('');
|
|
1179
1132
|
}
|
|
1180
1133
|
onBeforeEnter(event) {
|
|
1181
|
-
this.container
|
|
1134
|
+
this.container.set(event.element);
|
|
1182
1135
|
this.appendOverlay();
|
|
1183
1136
|
this.moveOnTop();
|
|
1184
1137
|
this.position();
|
|
1185
|
-
this.$attrSelector && this.container?.setAttribute(this.$attrSelector, '');
|
|
1138
|
+
this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
|
|
1186
1139
|
}
|
|
1187
1140
|
onAfterEnter() {
|
|
1188
1141
|
this.bindGlobalListeners();
|
|
@@ -1191,51 +1144,51 @@ class ContextMenu extends BaseComponent {
|
|
|
1191
1144
|
onAfterLeave() {
|
|
1192
1145
|
this.restoreOverlayAppend();
|
|
1193
1146
|
this.onOverlayHide();
|
|
1194
|
-
this.handleSubmenuAfterLeave?.();
|
|
1147
|
+
this.handleSubmenuAfterLeave()?.();
|
|
1195
1148
|
this.render.set(false);
|
|
1196
1149
|
}
|
|
1197
1150
|
appendOverlay() {
|
|
1198
1151
|
if (this.$appendTo() && this.$appendTo() !== 'self') {
|
|
1199
1152
|
if (this.$appendTo() === 'body') {
|
|
1200
|
-
appendChild(this.document.body, this.container);
|
|
1153
|
+
appendChild(this.document.body, this.container());
|
|
1201
1154
|
}
|
|
1202
1155
|
else {
|
|
1203
|
-
appendChild(this.$appendTo(), this.container);
|
|
1156
|
+
appendChild(this.$appendTo(), this.container());
|
|
1204
1157
|
}
|
|
1205
1158
|
}
|
|
1206
1159
|
}
|
|
1207
1160
|
restoreOverlayAppend() {
|
|
1208
|
-
|
|
1209
|
-
|
|
1161
|
+
const container = this.container();
|
|
1162
|
+
if (container && this.$appendTo() !== 'self') {
|
|
1163
|
+
this.el.nativeElement.appendChild(container);
|
|
1210
1164
|
}
|
|
1211
1165
|
}
|
|
1212
1166
|
moveOnTop() {
|
|
1213
|
-
|
|
1214
|
-
|
|
1167
|
+
const container = this.container();
|
|
1168
|
+
if (this.autoZIndex() && container) {
|
|
1169
|
+
ZIndexUtils.set('menu', container, this.baseZIndex() + this.config.zIndex.menu);
|
|
1215
1170
|
}
|
|
1216
1171
|
}
|
|
1217
1172
|
onOverlayHide() {
|
|
1218
1173
|
this.unbindGlobalListeners();
|
|
1219
|
-
|
|
1220
|
-
|
|
1174
|
+
const container = this.container();
|
|
1175
|
+
if (container && this.autoZIndex()) {
|
|
1176
|
+
ZIndexUtils.clear(container);
|
|
1221
1177
|
}
|
|
1222
|
-
|
|
1223
|
-
ZIndexUtils.clear(this.container);
|
|
1224
|
-
}
|
|
1225
|
-
this.container = null;
|
|
1178
|
+
this.container.set(null);
|
|
1226
1179
|
}
|
|
1227
1180
|
onTouchStart(event) {
|
|
1228
|
-
this.pressTimer
|
|
1181
|
+
this.pressTimer.set(setTimeout(() => {
|
|
1229
1182
|
this.show(event);
|
|
1230
|
-
}, this.pressDelay);
|
|
1183
|
+
}, this.pressDelay()));
|
|
1231
1184
|
}
|
|
1232
1185
|
onTouchEnd() {
|
|
1233
|
-
clearTimeout(this.pressTimer);
|
|
1186
|
+
clearTimeout(this.pressTimer());
|
|
1234
1187
|
}
|
|
1235
1188
|
hide() {
|
|
1236
1189
|
this.visible.set(false);
|
|
1237
1190
|
this.onHide.emit();
|
|
1238
|
-
this.hideCallback?.();
|
|
1191
|
+
this.hideCallback()?.();
|
|
1239
1192
|
this.activeItemPath.set([]);
|
|
1240
1193
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
|
|
1241
1194
|
}
|
|
@@ -1246,8 +1199,8 @@ class ContextMenu extends BaseComponent {
|
|
|
1246
1199
|
this.activeItemPath.set([]);
|
|
1247
1200
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
|
|
1248
1201
|
focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
|
|
1249
|
-
this.pageX
|
|
1250
|
-
this.pageY
|
|
1202
|
+
this.pageX.set(event.pageX);
|
|
1203
|
+
this.pageY.set(event.pageY);
|
|
1251
1204
|
this.onShow.emit();
|
|
1252
1205
|
this.visible() ? this.position() : this.visible.set(true);
|
|
1253
1206
|
this.render.set(true);
|
|
@@ -1255,12 +1208,13 @@ class ContextMenu extends BaseComponent {
|
|
|
1255
1208
|
event.preventDefault();
|
|
1256
1209
|
}
|
|
1257
1210
|
position() {
|
|
1258
|
-
|
|
1211
|
+
const container = this.container();
|
|
1212
|
+
if (!this.document.scrollingElement || !container)
|
|
1259
1213
|
return;
|
|
1260
|
-
let left = this.pageX + 1;
|
|
1261
|
-
let top = this.pageY + 1;
|
|
1262
|
-
let width =
|
|
1263
|
-
let height =
|
|
1214
|
+
let left = this.pageX() + 1;
|
|
1215
|
+
let top = this.pageY() + 1;
|
|
1216
|
+
let width = container.offsetParent ? container.offsetWidth : getHiddenElementOuterWidth(container);
|
|
1217
|
+
let height = container.offsetParent ? container.offsetHeight : getHiddenElementOuterHeight(container);
|
|
1264
1218
|
let viewport = getViewport();
|
|
1265
1219
|
//flip
|
|
1266
1220
|
if (left + width - this.document.scrollingElement.scrollLeft > viewport.width) {
|
|
@@ -1278,19 +1232,26 @@ class ContextMenu extends BaseComponent {
|
|
|
1278
1232
|
if (top < this.document.scrollingElement.scrollTop) {
|
|
1279
1233
|
top = this.document.scrollingElement.scrollTop;
|
|
1280
1234
|
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1235
|
+
container.style.left = left + 'px';
|
|
1236
|
+
container.style.top = top + 'px';
|
|
1283
1237
|
}
|
|
1284
1238
|
searchItems(event, char) {
|
|
1285
|
-
this.searchValue
|
|
1239
|
+
this.searchValue.set((this.searchValue() || '') + char);
|
|
1286
1240
|
let itemIndex = -1;
|
|
1287
1241
|
let matched = false;
|
|
1288
1242
|
if (this.focusedItemInfo().index !== -1) {
|
|
1289
|
-
itemIndex = this.visibleItems
|
|
1290
|
-
|
|
1243
|
+
itemIndex = this.visibleItems()
|
|
1244
|
+
.slice(this.focusedItemInfo().index)
|
|
1245
|
+
.findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
1246
|
+
itemIndex =
|
|
1247
|
+
itemIndex === -1
|
|
1248
|
+
? this.visibleItems()
|
|
1249
|
+
.slice(0, this.focusedItemInfo().index)
|
|
1250
|
+
.findIndex((processedItem) => this.isItemMatched(processedItem))
|
|
1251
|
+
: itemIndex + this.focusedItemInfo().index;
|
|
1291
1252
|
}
|
|
1292
1253
|
else {
|
|
1293
|
-
itemIndex = this.visibleItems.findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
1254
|
+
itemIndex = this.visibleItems().findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
1294
1255
|
}
|
|
1295
1256
|
if (itemIndex !== -1) {
|
|
1296
1257
|
matched = true;
|
|
@@ -1301,31 +1262,35 @@ class ContextMenu extends BaseComponent {
|
|
|
1301
1262
|
if (itemIndex !== -1) {
|
|
1302
1263
|
this.changeFocusedItemIndex(event, itemIndex);
|
|
1303
1264
|
}
|
|
1304
|
-
if (this.searchTimeout) {
|
|
1305
|
-
clearTimeout(this.searchTimeout);
|
|
1265
|
+
if (this.searchTimeout()) {
|
|
1266
|
+
clearTimeout(this.searchTimeout());
|
|
1306
1267
|
}
|
|
1307
|
-
this.searchTimeout
|
|
1308
|
-
this.searchValue
|
|
1309
|
-
this.searchTimeout
|
|
1310
|
-
}, 500);
|
|
1268
|
+
this.searchTimeout.set(setTimeout(() => {
|
|
1269
|
+
this.searchValue.set('');
|
|
1270
|
+
this.searchTimeout.set(null);
|
|
1271
|
+
}, 500));
|
|
1311
1272
|
return matched;
|
|
1312
1273
|
}
|
|
1313
1274
|
findVisibleItem(index) {
|
|
1314
|
-
return isNotEmpty(this.visibleItems) ? this.visibleItems[index] : null;
|
|
1275
|
+
return isNotEmpty(this.visibleItems()) ? this.visibleItems()[index] : null;
|
|
1315
1276
|
}
|
|
1316
1277
|
findLastFocusedItemIndex() {
|
|
1317
1278
|
const selectedIndex = this.findSelectedItemIndex();
|
|
1318
1279
|
return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
|
|
1319
1280
|
}
|
|
1320
1281
|
findLastItemIndex() {
|
|
1321
|
-
return findLastIndex(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
|
|
1282
|
+
return findLastIndex(this.visibleItems(), (processedItem) => this.isValidItem(processedItem));
|
|
1322
1283
|
}
|
|
1323
1284
|
findPrevItemIndex(index) {
|
|
1324
|
-
const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
|
|
1285
|
+
const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems().slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
|
|
1325
1286
|
return matchedItemIndex > -1 ? matchedItemIndex : index;
|
|
1326
1287
|
}
|
|
1327
1288
|
findNextItemIndex(index) {
|
|
1328
|
-
const matchedItemIndex = index < this.visibleItems.length - 1
|
|
1289
|
+
const matchedItemIndex = index < this.visibleItems().length - 1
|
|
1290
|
+
? this.visibleItems()
|
|
1291
|
+
.slice(index + 1)
|
|
1292
|
+
.findIndex((processedItem) => this.isValidItem(processedItem))
|
|
1293
|
+
: -1;
|
|
1329
1294
|
return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
|
|
1330
1295
|
}
|
|
1331
1296
|
findFirstFocusedItemIndex() {
|
|
@@ -1333,10 +1298,10 @@ class ContextMenu extends BaseComponent {
|
|
|
1333
1298
|
return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
|
|
1334
1299
|
}
|
|
1335
1300
|
findFirstItemIndex() {
|
|
1336
|
-
return this.visibleItems.findIndex((processedItem) => this.isValidItem(processedItem));
|
|
1301
|
+
return this.visibleItems().findIndex((processedItem) => this.isValidItem(processedItem));
|
|
1337
1302
|
}
|
|
1338
1303
|
findSelectedItemIndex() {
|
|
1339
|
-
return this.visibleItems.findIndex((processedItem) => this.isValidSelectedItem(processedItem));
|
|
1304
|
+
return this.visibleItems().findIndex((processedItem) => this.isValidSelectedItem(processedItem));
|
|
1340
1305
|
}
|
|
1341
1306
|
changeFocusedItemIndex(event, index) {
|
|
1342
1307
|
const processedItem = this.findVisibleItem(index);
|
|
@@ -1347,7 +1312,7 @@ class ContextMenu extends BaseComponent {
|
|
|
1347
1312
|
}
|
|
1348
1313
|
}
|
|
1349
1314
|
scrollInView(index = -1) {
|
|
1350
|
-
const id = index !== -1 ? `${this.
|
|
1315
|
+
const id = index !== -1 ? `${this._id()}_${index}` : this.focusedItemId();
|
|
1351
1316
|
const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${id}"]`);
|
|
1352
1317
|
if (element) {
|
|
1353
1318
|
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
@@ -1355,44 +1320,46 @@ class ContextMenu extends BaseComponent {
|
|
|
1355
1320
|
}
|
|
1356
1321
|
bindResizeListener() {
|
|
1357
1322
|
if (isPlatformBrowser(this.platformId)) {
|
|
1358
|
-
if (!this.resizeListener) {
|
|
1359
|
-
this.resizeListener
|
|
1323
|
+
if (!this.resizeListener()) {
|
|
1324
|
+
this.resizeListener.set(this.renderer.listen(this.document.defaultView, 'resize', (event) => {
|
|
1360
1325
|
this.hide();
|
|
1361
|
-
});
|
|
1326
|
+
}));
|
|
1362
1327
|
}
|
|
1363
1328
|
}
|
|
1364
1329
|
}
|
|
1365
1330
|
isOutsideClicked(event) {
|
|
1366
|
-
|
|
1331
|
+
const container = this.container();
|
|
1332
|
+
return !(container?.isSameNode(event.target) || container?.contains(event.target));
|
|
1367
1333
|
}
|
|
1368
1334
|
unbindResizeListener() {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1335
|
+
const resizeListener = this.resizeListener();
|
|
1336
|
+
if (resizeListener) {
|
|
1337
|
+
resizeListener();
|
|
1338
|
+
this.resizeListener.set(null);
|
|
1372
1339
|
}
|
|
1373
1340
|
}
|
|
1374
1341
|
unbindGlobalListeners() {
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
if (this.documentTriggerListener) {
|
|
1380
|
-
this.documentTriggerListener();
|
|
1381
|
-
this.documentTriggerListener = null;
|
|
1342
|
+
const documentClickListener = this.documentClickListener();
|
|
1343
|
+
if (documentClickListener) {
|
|
1344
|
+
documentClickListener();
|
|
1345
|
+
this.documentClickListener.set(null);
|
|
1382
1346
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1347
|
+
const resizeListener = this.resizeListener();
|
|
1348
|
+
if (resizeListener) {
|
|
1349
|
+
resizeListener();
|
|
1350
|
+
this.resizeListener.set(null);
|
|
1386
1351
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1352
|
+
const touchEndListener = this.touchEndListener();
|
|
1353
|
+
if (touchEndListener) {
|
|
1354
|
+
touchEndListener();
|
|
1355
|
+
this.touchEndListener.set(null);
|
|
1390
1356
|
}
|
|
1391
1357
|
}
|
|
1392
1358
|
unbindTriggerEventListener() {
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1359
|
+
const triggerEventListener = this.triggerEventListener();
|
|
1360
|
+
if (triggerEventListener) {
|
|
1361
|
+
triggerEventListener();
|
|
1362
|
+
this.triggerEventListener.set(null);
|
|
1396
1363
|
}
|
|
1397
1364
|
}
|
|
1398
1365
|
onDestroy() {
|
|
@@ -1403,14 +1370,14 @@ class ContextMenu extends BaseComponent {
|
|
|
1403
1370
|
this.onOverlayHide();
|
|
1404
1371
|
}
|
|
1405
1372
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1406
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ContextMenu, isStandalone: true, selector: "p-contextMenu, p-contextmenu, p-context-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal:
|
|
1373
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ContextMenu, isStandalone: true, selector: "p-contextMenu, p-contextmenu, p-context-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, triggerEvent: { classPropertyName: "triggerEvent", publicName: "triggerEvent", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, global: { classPropertyName: "global", publicName: "global", 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 }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", 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 }, pressDelay: { classPropertyName: "pressDelay", publicName: "pressDelay", 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: [ContextMenuStyle, { provide: CONTEXTMENU_INSTANCE, useExisting: ContextMenu }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1407
1374
|
@if (render()) {
|
|
1408
1375
|
<div
|
|
1409
1376
|
#container
|
|
1410
|
-
[attr.id]="
|
|
1411
|
-
[class]="cn(cx('root'), styleClass)"
|
|
1377
|
+
[attr.id]="_id()"
|
|
1378
|
+
[class]="cn(cx('root'), styleClass())"
|
|
1412
1379
|
[style]="sx('root')"
|
|
1413
|
-
[ngStyle]="style"
|
|
1380
|
+
[ngStyle]="style()"
|
|
1414
1381
|
[pBind]="ptm('root')"
|
|
1415
1382
|
[pMotion]="visible()"
|
|
1416
1383
|
[pMotionName]="'p-anchored-overlay'"
|
|
@@ -1423,15 +1390,13 @@ class ContextMenu extends BaseComponent {
|
|
|
1423
1390
|
<p-contextmenu-sub
|
|
1424
1391
|
#rootmenu
|
|
1425
1392
|
[root]="true"
|
|
1426
|
-
[items]="processedItems"
|
|
1427
|
-
[itemTemplate]="itemTemplate() || _itemTemplate"
|
|
1428
|
-
[menuId]="
|
|
1429
|
-
[ariaLabel]="ariaLabel"
|
|
1430
|
-
[ariaLabelledBy]="ariaLabelledBy"
|
|
1431
|
-
[baseZIndex]="baseZIndex"
|
|
1432
|
-
[autoZIndex]="autoZIndex"
|
|
1393
|
+
[items]="processedItems()"
|
|
1394
|
+
[itemTemplate]="itemTemplate() || _itemTemplate()"
|
|
1395
|
+
[menuId]="_id()"
|
|
1396
|
+
[ariaLabel]="ariaLabel()"
|
|
1397
|
+
[ariaLabelledBy]="ariaLabelledBy()"
|
|
1433
1398
|
[visible]="submenuVisible()"
|
|
1434
|
-
[focusedItemId]="focused ? focusedItemId : undefined"
|
|
1399
|
+
[focusedItemId]="focused() ? focusedItemId() : undefined"
|
|
1435
1400
|
[activeItemPath]="activeItemPath()"
|
|
1436
1401
|
(itemClick)="onItemClick($event)"
|
|
1437
1402
|
(menuFocus)="onMenuFocus($event)"
|
|
@@ -1444,22 +1409,21 @@ class ContextMenu extends BaseComponent {
|
|
|
1444
1409
|
/>
|
|
1445
1410
|
</div>
|
|
1446
1411
|
}
|
|
1447
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ContextMenuSub, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: ["visible", "items", "itemTemplate", "root", "
|
|
1412
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ContextMenuSub, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: ["visible", "items", "itemTemplate", "root", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i6.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 });
|
|
1448
1413
|
}
|
|
1449
1414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ContextMenu, decorators: [{
|
|
1450
1415
|
type: Component,
|
|
1451
1416
|
args: [{
|
|
1452
1417
|
selector: 'p-contextMenu, p-contextmenu, p-context-menu',
|
|
1453
|
-
standalone: true,
|
|
1454
1418
|
imports: [CommonModule, ContextMenuSub, RouterModule, TooltipModule, BadgeModule, SharedModule, BindModule, MotionModule],
|
|
1455
1419
|
template: `
|
|
1456
1420
|
@if (render()) {
|
|
1457
1421
|
<div
|
|
1458
1422
|
#container
|
|
1459
|
-
[attr.id]="
|
|
1460
|
-
[class]="cn(cx('root'), styleClass)"
|
|
1423
|
+
[attr.id]="_id()"
|
|
1424
|
+
[class]="cn(cx('root'), styleClass())"
|
|
1461
1425
|
[style]="sx('root')"
|
|
1462
|
-
[ngStyle]="style"
|
|
1426
|
+
[ngStyle]="style()"
|
|
1463
1427
|
[pBind]="ptm('root')"
|
|
1464
1428
|
[pMotion]="visible()"
|
|
1465
1429
|
[pMotionName]="'p-anchored-overlay'"
|
|
@@ -1472,15 +1436,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1472
1436
|
<p-contextmenu-sub
|
|
1473
1437
|
#rootmenu
|
|
1474
1438
|
[root]="true"
|
|
1475
|
-
[items]="processedItems"
|
|
1476
|
-
[itemTemplate]="itemTemplate() || _itemTemplate"
|
|
1477
|
-
[menuId]="
|
|
1478
|
-
[ariaLabel]="ariaLabel"
|
|
1479
|
-
[ariaLabelledBy]="ariaLabelledBy"
|
|
1480
|
-
[baseZIndex]="baseZIndex"
|
|
1481
|
-
[autoZIndex]="autoZIndex"
|
|
1439
|
+
[items]="processedItems()"
|
|
1440
|
+
[itemTemplate]="itemTemplate() || _itemTemplate()"
|
|
1441
|
+
[menuId]="_id()"
|
|
1442
|
+
[ariaLabel]="ariaLabel()"
|
|
1443
|
+
[ariaLabelledBy]="ariaLabelledBy()"
|
|
1482
1444
|
[visible]="submenuVisible()"
|
|
1483
|
-
[focusedItemId]="focused ? focusedItemId : undefined"
|
|
1445
|
+
[focusedItemId]="focused() ? focusedItemId() : undefined"
|
|
1484
1446
|
[activeItemPath]="activeItemPath()"
|
|
1485
1447
|
(itemClick)="onItemClick($event)"
|
|
1486
1448
|
(menuFocus)="onMenuFocus($event)"
|
|
@@ -1498,37 +1460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1498
1460
|
encapsulation: ViewEncapsulation.None,
|
|
1499
1461
|
providers: [ContextMenuStyle, { provide: CONTEXTMENU_INSTANCE, useExisting: ContextMenu }]
|
|
1500
1462
|
}]
|
|
1501
|
-
}], ctorParameters: () => [], propDecorators: { model: [{
|
|
1502
|
-
type: Input
|
|
1503
|
-
}], triggerEvent: [{
|
|
1504
|
-
type: Input
|
|
1505
|
-
}], target: [{
|
|
1506
|
-
type: Input
|
|
1507
|
-
}], global: [{
|
|
1508
|
-
type: Input,
|
|
1509
|
-
args: [{ transform: booleanAttribute }]
|
|
1510
|
-
}], style: [{
|
|
1511
|
-
type: Input
|
|
1512
|
-
}], styleClass: [{
|
|
1513
|
-
type: Input
|
|
1514
|
-
}], autoZIndex: [{
|
|
1515
|
-
type: Input,
|
|
1516
|
-
args: [{ transform: booleanAttribute }]
|
|
1517
|
-
}], baseZIndex: [{
|
|
1518
|
-
type: Input,
|
|
1519
|
-
args: [{ transform: numberAttribute }]
|
|
1520
|
-
}], id: [{
|
|
1521
|
-
type: Input
|
|
1522
|
-
}], breakpoint: [{
|
|
1523
|
-
type: Input
|
|
1524
|
-
}], ariaLabel: [{
|
|
1525
|
-
type: Input
|
|
1526
|
-
}], ariaLabelledBy: [{
|
|
1527
|
-
type: Input
|
|
1528
|
-
}], pressDelay: [{
|
|
1529
|
-
type: Input,
|
|
1530
|
-
args: [{ transform: numberAttribute }]
|
|
1531
|
-
}], 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 }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
1463
|
+
}], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], triggerEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerEvent", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], global: [{ type: i0.Input, args: [{ isSignal: true, alias: "global", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], pressDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressDelay", 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 }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
1532
1464
|
class ContextMenuModule {
|
|
1533
1465
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1534
1466
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ContextMenuModule, imports: [ContextMenu, SharedModule], exports: [ContextMenu, SharedModule] });
|