primeng 19.0.5 → 19.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/badge.d.ts +2 -2
- package/base/style/basestyle.d.ts +4 -6
- package/config/primeng.d.ts +3 -0
- package/dataview/dataview.interface.d.ts +9 -19
- package/datepicker/datepicker.d.ts +1 -0
- package/datepicker/style/datepickerstyle.d.ts +1 -0
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog-config.d.ts +1 -1
- package/dynamicdialog/dynamicdialog.d.ts +2 -1
- package/fesm2022/primeng-accordion.mjs +347 -560
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +37 -40
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +79 -89
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +507 -788
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +26 -27
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +72 -120
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +44 -54
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +62 -71
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +14 -8
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +17 -17
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +66 -87
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +175 -386
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +223 -328
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +36 -40
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +727 -1127
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +89 -193
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +227 -410
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +393 -577
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +57 -63
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +133 -185
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +92 -188
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +142 -167
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +18 -16
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +220 -347
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +161 -251
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +336 -450
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +249 -352
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +751 -1144
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-defer.mjs +25 -31
- package/fesm2022/primeng-defer.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +277 -478
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +68 -77
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +138 -167
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +85 -79
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +172 -269
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +531 -869
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +163 -304
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +118 -156
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +153 -247
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +370 -690
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +38 -46
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +33 -41
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +23 -24
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +529 -761
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +42 -51
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +17 -19
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +17 -19
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +17 -19
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +17 -19
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +19 -19
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +26 -26
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +24 -26
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +19 -19
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +28 -33
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +14 -16
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +17 -19
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +17 -19
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +17 -19
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +17 -19
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +17 -19
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +17 -19
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +19 -19
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +24 -26
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterslash.mjs +26 -26
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +26 -26
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +26 -26
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +17 -19
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +24 -26
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +24 -26
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +26 -26
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +26 -26
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +26 -26
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +26 -26
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +30 -26
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +24 -26
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +24 -26
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +24 -26
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +26 -26
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +17 -19
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +26 -26
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +26 -26
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +26 -26
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +26 -26
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +32 -38
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +189 -370
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +57 -86
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +108 -206
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +40 -50
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +39 -48
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +157 -182
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +303 -420
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +99 -123
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputswitch.mjs +87 -92
- package/fesm2022/primeng-inputswitch.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +56 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +51 -56
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +44 -47
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +105 -111
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +511 -791
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +377 -611
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +291 -473
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +357 -549
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +160 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +162 -278
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +135 -264
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +660 -1135
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +228 -330
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +161 -311
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +135 -147
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +50 -58
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +134 -154
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +212 -447
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +219 -317
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +439 -783
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +271 -410
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +564 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +129 -148
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +81 -121
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +48 -58
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +117 -108
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +134 -218
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +28 -29
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +167 -295
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +96 -116
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +106 -150
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +581 -957
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +106 -133
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +151 -239
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +46 -54
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +186 -182
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +192 -254
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +211 -231
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +126 -159
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +235 -341
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +117 -170
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +50 -53
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +1869 -2628
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +173 -319
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +193 -308
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +263 -435
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +63 -110
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +60 -104
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +59 -64
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +338 -457
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +90 -156
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +260 -365
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +117 -150
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +98 -121
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +62 -121
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +74 -75
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +455 -729
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +344 -533
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1027 -1584
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fesm2022/primeng-utils.mjs +3 -1
- package/fesm2022/primeng-utils.mjs.map +1 -1
- package/listbox/listbox.d.ts +17 -3
- package/message/message.d.ts +1 -0
- package/overlaybadge/overlaybadge.d.ts +1 -1
- package/package.json +189 -190
- package/password/password.d.ts +8 -1
- package/password/style/passwordstyle.d.ts +1 -0
- package/picklist/picklist.d.ts +11 -1
- package/stepper/stepper.d.ts +2 -1
- package/table/table.d.ts +1 -1
- package/table/table.interface.d.ts +2 -2
- package/tabs/tablist.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/tree/tree.d.ts +10 -2
- package/tree/tree.interface.d.ts +8 -0
- package/utils/zindexutils.d.ts +2 -0
@@ -2,7 +2,7 @@ import { trigger, transition, style, animate } from '@angular/animations';
|
|
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, EventEmitter, forwardRef, booleanAttribute,
|
5
|
+
import { Injectable, EventEmitter, forwardRef, numberAttribute, booleanAttribute, ViewChild, Output, Input, Inject, ViewEncapsulation, Component, signal, inject, effect, ContentChildren, ContentChild, ChangeDetectionStrategy, 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, removeChild } from '@primeuix/utils';
|
@@ -199,12 +199,12 @@ class ContextMenuStyle extends BaseStyle {
|
|
199
199
|
name = 'contextmenu';
|
200
200
|
theme = theme;
|
201
201
|
classes = classes;
|
202
|
-
static ɵfac =
|
203
|
-
static ɵprov =
|
202
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
203
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuStyle });
|
204
204
|
}
|
205
|
-
(
|
206
|
-
|
207
|
-
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuStyle, decorators: [{
|
206
|
+
type: Injectable
|
207
|
+
}] });
|
208
208
|
/**
|
209
209
|
*
|
210
210
|
* ContextMenu displays an overlay menu on right click of its target. Note that components like DataTable has special integration with ContextMenu.
|
@@ -259,278 +259,6 @@ var ContextMenuClasses;
|
|
259
259
|
ContextMenuClasses["separator"] = "p-contextmenu-separator";
|
260
260
|
})(ContextMenuClasses || (ContextMenuClasses = {}));
|
261
261
|
|
262
|
-
const _c0 = ["sublist"];
|
263
|
-
const _c1 = (a0, a1) => ({ "p-contextmenu-submenu": a0, "p-contextmenu-root-list": a1 });
|
264
|
-
const _c2 = () => ({ "p-contextmenu-item-link": true });
|
265
|
-
const _c3 = () => ({ class: "p-contextmenu-submenu-icon" });
|
266
|
-
const _c4 = () => ({ exact: false });
|
267
|
-
const _c5 = a0 => ({ "p-contextmenu-item-link": true, "p-disabled": a0 });
|
268
|
-
const _c6 = a0 => ({ $implicit: a0 });
|
269
|
-
function ContextMenuSub_ul_0_ng_template_2_li_0_Template(rf, ctx) { if (rf & 1) {
|
270
|
-
i0.ɵɵelement(0, "li", 8);
|
271
|
-
} if (rf & 2) {
|
272
|
-
const processedItem_r4 = i0.ɵɵnextContext().$implicit;
|
273
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
274
|
-
i0.ɵɵstyleMap(ctx_r2.getItemProp(processedItem_r4, "style"));
|
275
|
-
i0.ɵɵproperty("ngClass", ctx_r2.getSeparatorItemClass(processedItem_r4));
|
276
|
-
i0.ɵɵattribute("id", ctx_r2.getItemId(processedItem_r4))("data-pc-section", "separator");
|
277
|
-
} }
|
278
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
279
|
-
i0.ɵɵelement(0, "span", 19);
|
280
|
-
} if (rf & 2) {
|
281
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
282
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
283
|
-
i0.ɵɵproperty("ngClass", ctx_r2.getItemProp(processedItem_r4, "icon"))("ngStyle", ctx_r2.getItemProp(processedItem_r4, "iconStyle"));
|
284
|
-
i0.ɵɵattribute("data-pc-section", "icon")("aria-hidden", true)("tabindex", -1);
|
285
|
-
} }
|
286
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
287
|
-
i0.ɵɵelementStart(0, "span", 20);
|
288
|
-
i0.ɵɵtext(1);
|
289
|
-
i0.ɵɵelementEnd();
|
290
|
-
} if (rf & 2) {
|
291
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
292
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
293
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
294
|
-
i0.ɵɵadvance();
|
295
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.getItemLabel(processedItem_r4), " ");
|
296
|
-
} }
|
297
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
298
|
-
i0.ɵɵelement(0, "span", 21);
|
299
|
-
} if (rf & 2) {
|
300
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
301
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
302
|
-
i0.ɵɵproperty("innerHTML", ctx_r2.getItemLabel(processedItem_r4), i0.ɵɵsanitizeHtml);
|
303
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
304
|
-
} }
|
305
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_p_badge_5_Template(rf, ctx) { if (rf & 1) {
|
306
|
-
i0.ɵɵelement(0, "p-badge", 22);
|
307
|
-
} if (rf & 2) {
|
308
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
309
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
310
|
-
i0.ɵɵproperty("styleClass", ctx_r2.getItemProp(processedItem_r4, "badgeStyleClass"))("value", ctx_r2.getItemProp(processedItem_r4, "badge"));
|
311
|
-
} }
|
312
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_AngleRightIcon_1_Template(rf, ctx) { if (rf & 1) {
|
313
|
-
i0.ɵɵelement(0, "AngleRightIcon");
|
314
|
-
} if (rf & 2) {
|
315
|
-
i0.ɵɵclassMap("p-contextmenu-submenu-icon");
|
316
|
-
i0.ɵɵattribute("data-pc-section", "submenuicon")("aria-hidden", true);
|
317
|
-
} }
|
318
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template(rf, ctx) { }
|
319
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_Template(rf, ctx) { if (rf & 1) {
|
320
|
-
i0.ɵɵtemplate(0, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template, 0, 0, "ng-template", 25);
|
321
|
-
} if (rf & 2) {
|
322
|
-
i0.ɵɵproperty("data-pc-section", "submenuicon")("aria-hidden", true);
|
323
|
-
} }
|
324
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
325
|
-
i0.ɵɵelementContainerStart(0);
|
326
|
-
i0.ɵɵtemplate(1, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_AngleRightIcon_1_Template, 1, 4, "AngleRightIcon", 23)(2, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_2_Template, 1, 2, null, 24);
|
327
|
-
i0.ɵɵelementContainerEnd();
|
328
|
-
} if (rf & 2) {
|
329
|
-
const ctx_r2 = i0.ɵɵnextContext(6);
|
330
|
-
i0.ɵɵadvance();
|
331
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.contextMenu.submenuIconTemplate && !ctx_r2.contextMenu._submenuIconTemplate);
|
332
|
-
i0.ɵɵadvance();
|
333
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.contextMenu.submenuIconTemplate || ctx_r2.contextMenu._submenuIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c3));
|
334
|
-
} }
|
335
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_Template(rf, ctx) { if (rf & 1) {
|
336
|
-
i0.ɵɵelementStart(0, "a", 15);
|
337
|
-
i0.ɵɵtemplate(1, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_1_Template, 1, 5, "span", 16)(2, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_span_2_Template, 2, 2, "span", 17)(3, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_template_3_Template, 1, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(5, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_p_badge_5_Template, 1, 2, "p-badge", 18)(6, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_ng_container_6_Template, 3, 4, "ng-container", 11);
|
338
|
-
i0.ɵɵelementEnd();
|
339
|
-
} if (rf & 2) {
|
340
|
-
const htmlLabel_r6 = i0.ɵɵreference(4);
|
341
|
-
const processedItem_r4 = i0.ɵɵnextContext(3).$implicit;
|
342
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
343
|
-
i0.ɵɵproperty("target", ctx_r2.getItemProp(processedItem_r4, "target"))("ngClass", i0.ɵɵpureFunction0(12, _c2));
|
344
|
-
i0.ɵɵattribute("href", ctx_r2.getItemProp(processedItem_r4, "url"), i0.ɵɵsanitizeUrl)("aria-hidden", true)("data-automationid", ctx_r2.getItemProp(processedItem_r4, "automationId"))("data-pc-section", "action")("tabindex", -1);
|
345
|
-
i0.ɵɵadvance();
|
346
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "icon"));
|
347
|
-
i0.ɵɵadvance();
|
348
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "escape"))("ngIfElse", htmlLabel_r6);
|
349
|
-
i0.ɵɵadvance(3);
|
350
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "badge"));
|
351
|
-
i0.ɵɵadvance();
|
352
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isItemGroup(processedItem_r4));
|
353
|
-
} }
|
354
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
355
|
-
i0.ɵɵelement(0, "span", 19);
|
356
|
-
} if (rf & 2) {
|
357
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
358
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
359
|
-
i0.ɵɵproperty("ngClass", ctx_r2.getItemProp(processedItem_r4, "icon"))("ngStyle", ctx_r2.getItemProp(processedItem_r4, "iconStyle"));
|
360
|
-
i0.ɵɵattribute("data-pc-section", "icon")("aria-hidden", true)("tabindex", -1);
|
361
|
-
} }
|
362
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
363
|
-
i0.ɵɵelementStart(0, "span", 20);
|
364
|
-
i0.ɵɵtext(1);
|
365
|
-
i0.ɵɵelementEnd();
|
366
|
-
} if (rf & 2) {
|
367
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
368
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
369
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
370
|
-
i0.ɵɵadvance();
|
371
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.getItemLabel(processedItem_r4), " ");
|
372
|
-
} }
|
373
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
374
|
-
i0.ɵɵelement(0, "span", 21);
|
375
|
-
} if (rf & 2) {
|
376
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
377
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
378
|
-
i0.ɵɵproperty("innerHTML", ctx_r2.getItemLabel(processedItem_r4), i0.ɵɵsanitizeHtml);
|
379
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
380
|
-
} }
|
381
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_p_badge_5_Template(rf, ctx) { if (rf & 1) {
|
382
|
-
i0.ɵɵelement(0, "p-badge", 22);
|
383
|
-
} if (rf & 2) {
|
384
|
-
const processedItem_r4 = i0.ɵɵnextContext(4).$implicit;
|
385
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
386
|
-
i0.ɵɵproperty("styleClass", ctx_r2.getItemProp(processedItem_r4, "badgeStyleClass"))("value", ctx_r2.getItemProp(processedItem_r4, "badge"));
|
387
|
-
} }
|
388
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_AngleRightIcon_1_Template(rf, ctx) { if (rf & 1) {
|
389
|
-
i0.ɵɵelement(0, "AngleRightIcon");
|
390
|
-
} if (rf & 2) {
|
391
|
-
i0.ɵɵclassMap("p-contextmenu-submenu-icon");
|
392
|
-
i0.ɵɵattribute("data-pc-section", "submenuicon")("aria-hidden", true);
|
393
|
-
} }
|
394
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template(rf, ctx) { }
|
395
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_Template(rf, ctx) { if (rf & 1) {
|
396
|
-
i0.ɵɵtemplate(0, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template, 0, 0, "ng-template", 25);
|
397
|
-
} if (rf & 2) {
|
398
|
-
i0.ɵɵproperty("data-pc-section", "submenuicon")("aria-hidden", true);
|
399
|
-
} }
|
400
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
401
|
-
i0.ɵɵelementContainerStart(0);
|
402
|
-
i0.ɵɵtemplate(1, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_AngleRightIcon_1_Template, 1, 4, "AngleRightIcon", 23)(2, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_2_Template, 1, 2, null, 24);
|
403
|
-
i0.ɵɵelementContainerEnd();
|
404
|
-
} if (rf & 2) {
|
405
|
-
const ctx_r2 = i0.ɵɵnextContext(6);
|
406
|
-
i0.ɵɵadvance();
|
407
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.contextMenu.submenuIconTemplate && !ctx_r2.contextMenu._submenuIconTemplate);
|
408
|
-
i0.ɵɵadvance();
|
409
|
-
i0.ɵɵproperty("ngTemplateOutlet", !ctx_r2.contextMenu.submenuIconTemplate || !ctx_r2.contextMenu._submenuIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c3));
|
410
|
-
} }
|
411
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_Template(rf, ctx) { if (rf & 1) {
|
412
|
-
i0.ɵɵelementStart(0, "a", 26);
|
413
|
-
i0.ɵɵtemplate(1, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_1_Template, 1, 5, "span", 16)(2, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_span_2_Template, 2, 2, "span", 17)(3, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_template_3_Template, 1, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(5, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_p_badge_5_Template, 1, 2, "p-badge", 18)(6, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_ng_container_6_Template, 3, 4, "ng-container", 11);
|
414
|
-
i0.ɵɵelementEnd();
|
415
|
-
} if (rf & 2) {
|
416
|
-
const htmlLabel_r7 = i0.ɵɵreference(4);
|
417
|
-
const processedItem_r4 = i0.ɵɵnextContext(3).$implicit;
|
418
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
419
|
-
i0.ɵɵproperty("routerLink", ctx_r2.getItemProp(processedItem_r4, "routerLink"))("queryParams", ctx_r2.getItemProp(processedItem_r4, "queryParams"))("routerLinkActiveOptions", ctx_r2.getItemProp(processedItem_r4, "routerLinkActiveOptions") || i0.ɵɵpureFunction0(20, _c4))("target", ctx_r2.getItemProp(processedItem_r4, "target"))("ngClass", i0.ɵɵpureFunction1(21, _c5, ctx_r2.getItemProp(processedItem_r4, "disabled")))("fragment", ctx_r2.getItemProp(processedItem_r4, "fragment"))("queryParamsHandling", ctx_r2.getItemProp(processedItem_r4, "queryParamsHandling"))("preserveFragment", ctx_r2.getItemProp(processedItem_r4, "preserveFragment"))("skipLocationChange", ctx_r2.getItemProp(processedItem_r4, "skipLocationChange"))("replaceUrl", ctx_r2.getItemProp(processedItem_r4, "replaceUrl"))("state", ctx_r2.getItemProp(processedItem_r4, "state"));
|
420
|
-
i0.ɵɵattribute("data-automationid", ctx_r2.getItemProp(processedItem_r4, "automationId"))("tabindex", -1)("aria-hidden", true)("data-pc-section", "action");
|
421
|
-
i0.ɵɵadvance();
|
422
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "icon"));
|
423
|
-
i0.ɵɵadvance();
|
424
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "escape"))("ngIfElse", htmlLabel_r7);
|
425
|
-
i0.ɵɵadvance(3);
|
426
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "badge"));
|
427
|
-
i0.ɵɵadvance();
|
428
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isItemGroup(processedItem_r4));
|
429
|
-
} }
|
430
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
431
|
-
i0.ɵɵelementContainerStart(0);
|
432
|
-
i0.ɵɵtemplate(1, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_1_Template, 7, 13, "a", 13)(2, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_a_2_Template, 7, 23, "a", 14);
|
433
|
-
i0.ɵɵelementContainerEnd();
|
434
|
-
} if (rf & 2) {
|
435
|
-
const processedItem_r4 = i0.ɵɵnextContext(2).$implicit;
|
436
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
437
|
-
i0.ɵɵadvance();
|
438
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.getItemProp(processedItem_r4, "routerLink"));
|
439
|
-
i0.ɵɵadvance();
|
440
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getItemProp(processedItem_r4, "routerLink"));
|
441
|
-
} }
|
442
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_ng_template_0_Template(rf, ctx) { }
|
443
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_Template(rf, ctx) { if (rf & 1) {
|
444
|
-
i0.ɵɵtemplate(0, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_ng_template_0_Template, 0, 0, "ng-template");
|
445
|
-
} }
|
446
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
447
|
-
i0.ɵɵelementContainerStart(0);
|
448
|
-
i0.ɵɵtemplate(1, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_1_Template, 1, 0, null, 24);
|
449
|
-
i0.ɵɵelementContainerEnd();
|
450
|
-
} if (rf & 2) {
|
451
|
-
const processedItem_r4 = i0.ɵɵnextContext(2).$implicit;
|
452
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
453
|
-
i0.ɵɵadvance();
|
454
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c6, processedItem_r4.item));
|
455
|
-
} }
|
456
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_p_contextmenu_sub_5_Template(rf, ctx) { if (rf & 1) {
|
457
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
458
|
-
i0.ɵɵelementStart(0, "p-contextmenu-sub", 27);
|
459
|
-
i0.ɵɵlistener("itemClick", function ContextMenuSub_ul_0_ng_template_2_li_1_p_contextmenu_sub_5_Template_p_contextmenu_sub_itemClick_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.itemClick.emit($event)); })("itemMouseEnter", function ContextMenuSub_ul_0_ng_template_2_li_1_p_contextmenu_sub_5_Template_p_contextmenu_sub_itemMouseEnter_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r2.onItemMouseEnter($event)); });
|
460
|
-
i0.ɵɵelementEnd();
|
461
|
-
} if (rf & 2) {
|
462
|
-
const processedItem_r4 = i0.ɵɵnextContext(2).$implicit;
|
463
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
464
|
-
i0.ɵɵproperty("items", processedItem_r4.items)("itemTemplate", ctx_r2.itemTemplate)("menuId", ctx_r2.menuId)("visible", ctx_r2.isItemActive(processedItem_r4) && ctx_r2.isItemGroup(processedItem_r4))("activeItemPath", ctx_r2.activeItemPath)("focusedItemId", ctx_r2.focusedItemId)("level", ctx_r2.level + 1);
|
465
|
-
} }
|
466
|
-
function ContextMenuSub_ul_0_ng_template_2_li_1_Template(rf, ctx) { if (rf & 1) {
|
467
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
468
|
-
i0.ɵɵelementStart(0, "li", 9, 1)(2, "div", 10);
|
469
|
-
i0.ɵɵlistener("click", function ContextMenuSub_ul_0_ng_template_2_li_1_Template_div_click_2_listener($event) { i0.ɵɵrestoreView(_r5); const processedItem_r4 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onItemClick($event, processedItem_r4)); })("mouseenter", function ContextMenuSub_ul_0_ng_template_2_li_1_Template_div_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r5); const processedItem_r4 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onItemMouseEnter({ $event: $event, processedItem: processedItem_r4 })); });
|
470
|
-
i0.ɵɵtemplate(3, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_3_Template, 3, 2, "ng-container", 11)(4, ContextMenuSub_ul_0_ng_template_2_li_1_ng_container_4_Template, 2, 4, "ng-container", 11);
|
471
|
-
i0.ɵɵelementEnd();
|
472
|
-
i0.ɵɵtemplate(5, ContextMenuSub_ul_0_ng_template_2_li_1_p_contextmenu_sub_5_Template, 1, 7, "p-contextmenu-sub", 12);
|
473
|
-
i0.ɵɵelementEnd();
|
474
|
-
} if (rf & 2) {
|
475
|
-
const ctx_r8 = i0.ɵɵnextContext();
|
476
|
-
const processedItem_r4 = ctx_r8.$implicit;
|
477
|
-
const index_r10 = ctx_r8.index;
|
478
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
479
|
-
i0.ɵɵclassMap(ctx_r2.getItemProp(processedItem_r4, "styleClass"));
|
480
|
-
i0.ɵɵproperty("ngStyle", ctx_r2.getItemProp(processedItem_r4, "style"))("ngClass", ctx_r2.getItemClass(processedItem_r4))("tooltipOptions", ctx_r2.getItemProp(processedItem_r4, "tooltipOptions"));
|
481
|
-
i0.ɵɵattribute("id", ctx_r2.getItemId(processedItem_r4))("data-pc-section", "menuitem")("data-p-highlight", ctx_r2.isItemActive(processedItem_r4))("data-p-focused", ctx_r2.isItemFocused(processedItem_r4))("data-p-disabled", ctx_r2.isItemDisabled(processedItem_r4))("aria-label", ctx_r2.getItemLabel(processedItem_r4))("aria-disabled", ctx_r2.isItemDisabled(processedItem_r4) || undefined)("aria-haspopup", ctx_r2.isItemGroup(processedItem_r4) && !ctx_r2.getItemProp(processedItem_r4, "to") ? "menu" : undefined)("aria-expanded", ctx_r2.isItemGroup(processedItem_r4) ? ctx_r2.isItemActive(processedItem_r4) : undefined)("aria-level", ctx_r2.level + 1)("aria-setsize", ctx_r2.getAriaSetSize())("aria-posinset", ctx_r2.getAriaPosInset(index_r10));
|
482
|
-
i0.ɵɵadvance(2);
|
483
|
-
i0.ɵɵattribute("data-pc-section", "content");
|
484
|
-
i0.ɵɵadvance();
|
485
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.itemTemplate);
|
486
|
-
i0.ɵɵadvance();
|
487
|
-
i0.ɵɵproperty("ngIf", ctx_r2.itemTemplate);
|
488
|
-
i0.ɵɵadvance();
|
489
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isItemVisible(processedItem_r4) && ctx_r2.isItemGroup(processedItem_r4));
|
490
|
-
} }
|
491
|
-
function ContextMenuSub_ul_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
492
|
-
i0.ɵɵtemplate(0, ContextMenuSub_ul_0_ng_template_2_li_0_Template, 1, 5, "li", 6)(1, ContextMenuSub_ul_0_ng_template_2_li_1_Template, 6, 21, "li", 7);
|
493
|
-
} if (rf & 2) {
|
494
|
-
const processedItem_r4 = ctx.$implicit;
|
495
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
496
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isItemVisible(processedItem_r4) && ctx_r2.getItemProp(processedItem_r4, "separator"));
|
497
|
-
i0.ɵɵadvance();
|
498
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isItemVisible(processedItem_r4) && !ctx_r2.getItemProp(processedItem_r4, "separator"));
|
499
|
-
} }
|
500
|
-
function ContextMenuSub_ul_0_Template(rf, ctx) { if (rf & 1) {
|
501
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
502
|
-
i0.ɵɵelementStart(0, "ul", 4, 0);
|
503
|
-
i0.ɵɵlistener("@overlayAnimation.start", function ContextMenuSub_ul_0_Template_ul_animation_overlayAnimation_start_0_listener($event) { i0.ɵɵrestoreView(_r1); const sublist_r2 = i0.ɵɵreference(1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onEnter($event, sublist_r2)); })("keydown", function ContextMenuSub_ul_0_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.menuKeydown.emit($event)); })("focus", function ContextMenuSub_ul_0_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.menuFocus.emit($event)); })("blur", function ContextMenuSub_ul_0_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.menuBlur.emit($event)); });
|
504
|
-
i0.ɵɵtemplate(2, ContextMenuSub_ul_0_ng_template_2_Template, 2, 2, "ng-template", 5);
|
505
|
-
i0.ɵɵelementEnd();
|
506
|
-
} if (rf & 2) {
|
507
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
508
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(10, _c1, !ctx_r2.root, ctx_r2.root))("@overlayAnimation", ctx_r2.visible)("tabindex", ctx_r2.tabindex);
|
509
|
-
i0.ɵɵattribute("id", ctx_r2.menuId + "_list")("aria-label", ctx_r2.ariaLabel)("aria-labelledBy", ctx_r2.ariaLabelledBy)("aria-activedescendant", ctx_r2.focusedItemId)("aria-orientation", "vertical")("data-pc-section", "menu");
|
510
|
-
i0.ɵɵadvance(2);
|
511
|
-
i0.ɵɵproperty("ngForOf", ctx_r2.items);
|
512
|
-
} }
|
513
|
-
const _c7 = ["item"];
|
514
|
-
const _c8 = ["submenuicon"];
|
515
|
-
const _c9 = ["rootmenu"];
|
516
|
-
const _c10 = ["container"];
|
517
|
-
const _c11 = a0 => ({ "p-contextmenu p-component": true, "p-contextmenu-mobile": a0 });
|
518
|
-
const _c12 = () => ({ value: "visible" });
|
519
|
-
function ContextMenu_div_0_Template(rf, ctx) { if (rf & 1) {
|
520
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
521
|
-
i0.ɵɵelementStart(0, "div", 3, 0);
|
522
|
-
i0.ɵɵlistener("@overlayAnimation.start", function ContextMenu_div_0_Template_div_animation_overlayAnimation_start_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationStart($event)); })("@overlayAnimation.done", function ContextMenu_div_0_Template_div_animation_overlayAnimation_done_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationEnd($event)); });
|
523
|
-
i0.ɵɵelementStart(2, "p-contextmenu-sub", 4, 1);
|
524
|
-
i0.ɵɵlistener("itemClick", function ContextMenu_div_0_Template_p_contextmenu_sub_itemClick_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onItemClick($event)); })("menuFocus", function ContextMenu_div_0_Template_p_contextmenu_sub_menuFocus_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onMenuFocus($event)); })("menuBlur", function ContextMenu_div_0_Template_p_contextmenu_sub_menuBlur_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onMenuBlur($event)); })("menuKeydown", function ContextMenu_div_0_Template_p_contextmenu_sub_menuKeydown_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onKeyDown($event)); })("itemMouseEnter", function ContextMenu_div_0_Template_p_contextmenu_sub_itemMouseEnter_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onItemMouseEnter($event)); });
|
525
|
-
i0.ɵɵelementEnd()();
|
526
|
-
} if (rf & 2) {
|
527
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
528
|
-
i0.ɵɵclassMap(ctx_r1.styleClass);
|
529
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c11, ctx_r1.queryMatches))("ngStyle", ctx_r1.style)("@overlayAnimation", i0.ɵɵpureFunction0(22, _c12));
|
530
|
-
i0.ɵɵattribute("data-pc-section", "root")("data-pc-name", "contextmenu")("id", ctx_r1.id);
|
531
|
-
i0.ɵɵadvance(2);
|
532
|
-
i0.ɵɵproperty("root", true)("items", ctx_r1.processedItems)("itemTemplate", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("menuId", ctx_r1.id)("tabindex", !ctx_r1.disabled ? ctx_r1.tabindex : -1)("ariaLabel", ctx_r1.ariaLabel)("ariaLabelledBy", ctx_r1.ariaLabelledBy)("baseZIndex", ctx_r1.baseZIndex)("autoZIndex", ctx_r1.autoZIndex)("visible", ctx_r1.submenuVisible())("focusedItemId", ctx_r1.focused ? ctx_r1.focusedItemId : undefined)("activeItemPath", ctx_r1.activeItemPath());
|
533
|
-
} }
|
534
262
|
class ContextMenuSub extends BaseComponent {
|
535
263
|
contextMenu;
|
536
264
|
visible = false;
|
@@ -635,25 +363,171 @@ class ContextMenuSub extends BaseComponent {
|
|
635
363
|
sublist.style.left = itemOuterWidth + 'px';
|
636
364
|
}
|
637
365
|
}
|
638
|
-
static ɵfac =
|
639
|
-
static ɵcmp =
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
366
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuSub, deps: [{ token: forwardRef(() => ContextMenu) }], target: i0.ɵɵFactoryTarget.Component });
|
367
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: ContextMenuSub, isStandalone: true, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: { visible: ["visible", "visible", booleanAttribute], items: "items", itemTemplate: "itemTemplate", root: ["root", "root", booleanAttribute], autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], popup: ["popup", "popup", booleanAttribute], menuId: "menuId", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", level: ["level", "level", numberAttribute], focusedItemId: "focusedItemId", activeItemPath: "activeItemPath", tabindex: ["tabindex", "tabindex", numberAttribute] }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
368
|
+
<ul
|
369
|
+
*ngIf="root ? true : visible"
|
370
|
+
#sublist
|
371
|
+
role="menu"
|
372
|
+
[ngClass]="{ 'p-contextmenu-submenu': !root, 'p-contextmenu-root-list': root }"
|
373
|
+
[@overlayAnimation]="visible"
|
374
|
+
(@overlayAnimation.start)="onEnter($event, sublist)"
|
375
|
+
[attr.id]="menuId + '_list'"
|
376
|
+
[tabindex]="tabindex"
|
377
|
+
[attr.aria-label]="ariaLabel"
|
378
|
+
[attr.aria-labelledBy]="ariaLabelledBy"
|
379
|
+
[attr.aria-activedescendant]="focusedItemId"
|
380
|
+
[attr.aria-orientation]="'vertical'"
|
381
|
+
[attr.data-pc-section]="'menu'"
|
382
|
+
(keydown)="menuKeydown.emit($event)"
|
383
|
+
(focus)="menuFocus.emit($event)"
|
384
|
+
(blur)="menuBlur.emit($event)"
|
385
|
+
>
|
386
|
+
<ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
|
387
|
+
<li
|
388
|
+
*ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
|
389
|
+
[attr.id]="getItemId(processedItem)"
|
390
|
+
[style]="getItemProp(processedItem, 'style')"
|
391
|
+
[ngClass]="getSeparatorItemClass(processedItem)"
|
392
|
+
role="separator"
|
393
|
+
[attr.data-pc-section]="'separator'"
|
394
|
+
></li>
|
395
|
+
<li
|
396
|
+
#listItem
|
397
|
+
*ngIf="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
|
398
|
+
role="menuitem"
|
399
|
+
[attr.id]="getItemId(processedItem)"
|
400
|
+
[attr.data-pc-section]="'menuitem'"
|
401
|
+
[attr.data-p-highlight]="isItemActive(processedItem)"
|
402
|
+
[attr.data-p-focused]="isItemFocused(processedItem)"
|
403
|
+
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
404
|
+
[attr.aria-label]="getItemLabel(processedItem)"
|
405
|
+
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
406
|
+
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
407
|
+
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
408
|
+
[attr.aria-level]="level + 1"
|
409
|
+
[attr.aria-setsize]="getAriaSetSize()"
|
410
|
+
[attr.aria-posinset]="getAriaPosInset(index)"
|
411
|
+
[ngStyle]="getItemProp(processedItem, 'style')"
|
412
|
+
[ngClass]="getItemClass(processedItem)"
|
413
|
+
[class]="getItemProp(processedItem, 'styleClass')"
|
414
|
+
pTooltip
|
415
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
416
|
+
>
|
417
|
+
<div [attr.data-pc-section]="'content'" class="p-contextmenu-item-content" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
|
418
|
+
<ng-container *ngIf="!itemTemplate">
|
419
|
+
<a
|
420
|
+
*ngIf="!getItemProp(processedItem, 'routerLink')"
|
421
|
+
[attr.href]="getItemProp(processedItem, 'url')"
|
422
|
+
[attr.aria-hidden]="true"
|
423
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
424
|
+
[attr.data-pc-section]="'action'"
|
425
|
+
[target]="getItemProp(processedItem, 'target')"
|
426
|
+
[ngClass]="{ 'p-contextmenu-item-link': true }"
|
427
|
+
[attr.tabindex]="-1"
|
428
|
+
pRipple
|
429
|
+
>
|
430
|
+
<span
|
431
|
+
*ngIf="getItemProp(processedItem, 'icon')"
|
432
|
+
class="p-contextmenu-item-icon"
|
433
|
+
[ngClass]="getItemProp(processedItem, 'icon')"
|
434
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
435
|
+
[attr.data-pc-section]="'icon'"
|
436
|
+
[attr.aria-hidden]="true"
|
437
|
+
[attr.tabindex]="-1"
|
438
|
+
>
|
439
|
+
</span>
|
440
|
+
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-contextmenu-item-label" [attr.data-pc-section]="'label'">
|
441
|
+
{{ getItemLabel(processedItem) }}
|
442
|
+
</span>
|
443
|
+
<ng-template #htmlLabel>
|
444
|
+
<span class="p-contextmenu-item-label" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
445
|
+
</ng-template>
|
446
|
+
<p-badge *ngIf="getItemProp(processedItem, 'badge')" [styleClass]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" />
|
447
|
+
<ng-container *ngIf="isItemGroup(processedItem)">
|
448
|
+
<AngleRightIcon *ngIf="!contextMenu.submenuIconTemplate && !contextMenu._submenuIconTemplate" [class]="'p-contextmenu-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
449
|
+
<ng-template
|
450
|
+
*ngTemplateOutlet="contextMenu.submenuIconTemplate || contextMenu._submenuIconTemplate; context: { class: 'p-contextmenu-submenu-icon' }"
|
451
|
+
[attr.data-pc-section]="'submenuicon'"
|
452
|
+
[attr.aria-hidden]="true"
|
453
|
+
></ng-template>
|
454
|
+
</ng-container>
|
455
|
+
</a>
|
456
|
+
<a
|
457
|
+
*ngIf="getItemProp(processedItem, 'routerLink')"
|
458
|
+
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
459
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
460
|
+
[attr.tabindex]="-1"
|
461
|
+
[attr.aria-hidden]="true"
|
462
|
+
[attr.data-pc-section]="'action'"
|
463
|
+
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
464
|
+
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
465
|
+
[target]="getItemProp(processedItem, 'target')"
|
466
|
+
[ngClass]="{ 'p-contextmenu-item-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
467
|
+
[fragment]="getItemProp(processedItem, 'fragment')"
|
468
|
+
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
469
|
+
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
470
|
+
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
471
|
+
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
472
|
+
[state]="getItemProp(processedItem, 'state')"
|
473
|
+
pRipple
|
474
|
+
>
|
475
|
+
<span
|
476
|
+
*ngIf="getItemProp(processedItem, 'icon')"
|
477
|
+
class="p-contextmenu-item-icon"
|
478
|
+
[ngClass]="getItemProp(processedItem, 'icon')"
|
479
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
480
|
+
[attr.data-pc-section]="'icon'"
|
481
|
+
[attr.aria-hidden]="true"
|
482
|
+
[attr.tabindex]="-1"
|
483
|
+
>
|
484
|
+
</span>
|
485
|
+
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-contextmenu-item-label" [attr.data-pc-section]="'label'">
|
486
|
+
{{ getItemLabel(processedItem) }}
|
487
|
+
</span>
|
488
|
+
<ng-template #htmlLabel>
|
489
|
+
<span class="p-contextmenu-item-label" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
490
|
+
</ng-template>
|
491
|
+
<p-badge *ngIf="getItemProp(processedItem, 'badge')" [styleClass]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" />
|
492
|
+
<ng-container *ngIf="isItemGroup(processedItem)">
|
493
|
+
<AngleRightIcon *ngIf="!contextMenu.submenuIconTemplate && !contextMenu._submenuIconTemplate" [class]="'p-contextmenu-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
494
|
+
<ng-template
|
495
|
+
*ngTemplateOutlet="!contextMenu.submenuIconTemplate || !contextMenu._submenuIconTemplate; context: { class: 'p-contextmenu-submenu-icon' }"
|
496
|
+
[attr.data-pc-section]="'submenuicon'"
|
497
|
+
[attr.aria-hidden]="true"
|
498
|
+
></ng-template>
|
499
|
+
</ng-container>
|
500
|
+
</a>
|
501
|
+
</ng-container>
|
502
|
+
<ng-container *ngIf="itemTemplate">
|
503
|
+
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item }"></ng-template>
|
504
|
+
</ng-container>
|
505
|
+
</div>
|
506
|
+
|
507
|
+
<p-contextmenu-sub
|
508
|
+
*ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
|
509
|
+
[items]="processedItem.items"
|
510
|
+
[itemTemplate]="itemTemplate"
|
511
|
+
[menuId]="menuId"
|
512
|
+
[visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
|
513
|
+
[activeItemPath]="activeItemPath"
|
514
|
+
[focusedItemId]="focusedItemId"
|
515
|
+
[level]="level + 1"
|
516
|
+
(itemClick)="itemClick.emit($event)"
|
517
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
518
|
+
/>
|
519
|
+
</li>
|
520
|
+
</ng-template>
|
521
|
+
</ul>
|
522
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ContextMenuSub, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: ["visible", "items", "itemTemplate", "root", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "tabindex"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: AngleRightIcon, selector: "AngleRightIcon" }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i4.Badge, selector: "p-badge", inputs: ["styleClass", "style", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0 })]), transition(':leave', [style({ opacity: 0 })])])], encapsulation: i0.ViewEncapsulation.None });
|
649
523
|
}
|
650
|
-
(
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuSub, decorators: [{
|
525
|
+
type: Component,
|
526
|
+
args: [{
|
527
|
+
selector: 'p-contextMenuSub, p-contextmenu-sub',
|
528
|
+
standalone: true,
|
529
|
+
imports: [CommonModule, RouterModule, Ripple, TooltipModule, AngleRightIcon, BadgeModule, SharedModule],
|
530
|
+
template: `
|
657
531
|
<ul
|
658
532
|
*ngIf="root ? true : visible"
|
659
533
|
#sublist
|
@@ -809,62 +683,61 @@ class ContextMenuSub extends BaseComponent {
|
|
809
683
|
</ng-template>
|
810
684
|
</ul>
|
811
685
|
`,
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ContextMenuSub, { className: "ContextMenuSub", filePath: "contextmenu.ts", lineNumber: 223 }); })();
|
686
|
+
animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0 })]), transition(':leave', [style({ opacity: 0 })])])],
|
687
|
+
encapsulation: ViewEncapsulation.None
|
688
|
+
}]
|
689
|
+
}], ctorParameters: () => [{ type: ContextMenu, decorators: [{
|
690
|
+
type: Inject,
|
691
|
+
args: [forwardRef(() => ContextMenu)]
|
692
|
+
}] }], propDecorators: { visible: [{
|
693
|
+
type: Input,
|
694
|
+
args: [{ transform: booleanAttribute }]
|
695
|
+
}], items: [{
|
696
|
+
type: Input
|
697
|
+
}], itemTemplate: [{
|
698
|
+
type: Input
|
699
|
+
}], root: [{
|
700
|
+
type: Input,
|
701
|
+
args: [{ transform: booleanAttribute }]
|
702
|
+
}], autoZIndex: [{
|
703
|
+
type: Input,
|
704
|
+
args: [{ transform: booleanAttribute }]
|
705
|
+
}], baseZIndex: [{
|
706
|
+
type: Input,
|
707
|
+
args: [{ transform: numberAttribute }]
|
708
|
+
}], popup: [{
|
709
|
+
type: Input,
|
710
|
+
args: [{ transform: booleanAttribute }]
|
711
|
+
}], menuId: [{
|
712
|
+
type: Input
|
713
|
+
}], ariaLabel: [{
|
714
|
+
type: Input
|
715
|
+
}], ariaLabelledBy: [{
|
716
|
+
type: Input
|
717
|
+
}], level: [{
|
718
|
+
type: Input,
|
719
|
+
args: [{ transform: numberAttribute }]
|
720
|
+
}], focusedItemId: [{
|
721
|
+
type: Input
|
722
|
+
}], activeItemPath: [{
|
723
|
+
type: Input
|
724
|
+
}], tabindex: [{
|
725
|
+
type: Input,
|
726
|
+
args: [{ transform: numberAttribute }]
|
727
|
+
}], itemClick: [{
|
728
|
+
type: Output
|
729
|
+
}], itemMouseEnter: [{
|
730
|
+
type: Output
|
731
|
+
}], menuFocus: [{
|
732
|
+
type: Output
|
733
|
+
}], menuBlur: [{
|
734
|
+
type: Output
|
735
|
+
}], menuKeydown: [{
|
736
|
+
type: Output
|
737
|
+
}], sublistViewChild: [{
|
738
|
+
type: ViewChild,
|
739
|
+
args: ['sublist']
|
740
|
+
}] } });
|
868
741
|
/**
|
869
742
|
* ContextMenu displays an overlay menu on right click of its target. Note that components like Table has special integration with ContextMenu.
|
870
743
|
* @group Components
|
@@ -1570,36 +1443,51 @@ class ContextMenu extends BaseComponent {
|
|
1570
1443
|
this.removeAppendedElements();
|
1571
1444
|
super.ngOnDestroy();
|
1572
1445
|
}
|
1573
|
-
static ɵfac =
|
1574
|
-
static ɵcmp =
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1446
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenu, deps: [{ token: i5.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
1447
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: ContextMenu, isStandalone: true, selector: "p-contextMenu, p-contextmenu, p-context-menu", inputs: { model: "model", triggerEvent: "triggerEvent", target: "target", global: ["global", "global", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], id: "id", breakpoint: "breakpoint", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", pressDelay: ["pressDelay", "pressDelay", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [ContextMenuStyle], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
1448
|
+
<div
|
1449
|
+
#container
|
1450
|
+
[attr.data-pc-section]="'root'"
|
1451
|
+
[attr.data-pc-name]="'contextmenu'"
|
1452
|
+
[attr.id]="id"
|
1453
|
+
[ngClass]="{ 'p-contextmenu p-component': true, 'p-contextmenu-mobile': queryMatches }"
|
1454
|
+
[class]="styleClass"
|
1455
|
+
[ngStyle]="style"
|
1456
|
+
[@overlayAnimation]="{ value: 'visible' }"
|
1457
|
+
(@overlayAnimation.start)="onOverlayAnimationStart($event)"
|
1458
|
+
(@overlayAnimation.done)="onOverlayAnimationEnd($event)"
|
1459
|
+
*ngIf="visible()"
|
1460
|
+
>
|
1461
|
+
<p-contextmenu-sub
|
1462
|
+
#rootmenu
|
1463
|
+
[root]="true"
|
1464
|
+
[items]="processedItems"
|
1465
|
+
[itemTemplate]="itemTemplate || _itemTemplate"
|
1466
|
+
[menuId]="id"
|
1467
|
+
[tabindex]="!disabled ? tabindex : -1"
|
1468
|
+
[ariaLabel]="ariaLabel"
|
1469
|
+
[ariaLabelledBy]="ariaLabelledBy"
|
1470
|
+
[baseZIndex]="baseZIndex"
|
1471
|
+
[autoZIndex]="autoZIndex"
|
1472
|
+
[visible]="submenuVisible()"
|
1473
|
+
[focusedItemId]="focused ? focusedItemId : undefined"
|
1474
|
+
[activeItemPath]="activeItemPath()"
|
1475
|
+
(itemClick)="onItemClick($event)"
|
1476
|
+
(menuFocus)="onMenuFocus($event)"
|
1477
|
+
(menuBlur)="onMenuBlur($event)"
|
1478
|
+
(menuKeydown)="onKeyDown($event)"
|
1479
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
1480
|
+
/>
|
1481
|
+
</div>
|
1482
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ContextMenuSub, selector: "p-contextMenuSub, p-contextmenu-sub", inputs: ["visible", "items", "itemTemplate", "root", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "tabindex"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: BadgeModule }, { kind: "ngmodule", type: SharedModule }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0 }), animate('250ms')]), transition(':leave', [animate('.1s linear', style({ opacity: 0 }))])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1595
1483
|
}
|
1596
|
-
(
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenu, decorators: [{
|
1485
|
+
type: Component,
|
1486
|
+
args: [{
|
1487
|
+
selector: 'p-contextMenu, p-contextmenu, p-context-menu',
|
1488
|
+
standalone: true,
|
1489
|
+
imports: [CommonModule, ContextMenuSub, RouterModule, TooltipModule, BadgeModule, SharedModule],
|
1490
|
+
template: `
|
1603
1491
|
<div
|
1604
1492
|
#container
|
1605
1493
|
[attr.data-pc-section]="'root'"
|
@@ -1635,77 +1523,75 @@ class ContextMenu extends BaseComponent {
|
|
1635
1523
|
/>
|
1636
1524
|
</div>
|
1637
1525
|
`,
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
1684
|
-
|
1685
|
-
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ContextMenu, { className: "ContextMenu", filePath: "contextmenu.ts", lineNumber: 413 }); })();
|
1526
|
+
animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0 }), animate('250ms')]), transition(':leave', [animate('.1s linear', style({ opacity: 0 }))])])],
|
1527
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1528
|
+
encapsulation: ViewEncapsulation.None,
|
1529
|
+
providers: [ContextMenuStyle]
|
1530
|
+
}]
|
1531
|
+
}], ctorParameters: () => [{ type: i5.OverlayService }], propDecorators: { model: [{
|
1532
|
+
type: Input
|
1533
|
+
}], triggerEvent: [{
|
1534
|
+
type: Input
|
1535
|
+
}], target: [{
|
1536
|
+
type: Input
|
1537
|
+
}], global: [{
|
1538
|
+
type: Input,
|
1539
|
+
args: [{ transform: booleanAttribute }]
|
1540
|
+
}], style: [{
|
1541
|
+
type: Input
|
1542
|
+
}], styleClass: [{
|
1543
|
+
type: Input
|
1544
|
+
}], appendTo: [{
|
1545
|
+
type: Input
|
1546
|
+
}], autoZIndex: [{
|
1547
|
+
type: Input,
|
1548
|
+
args: [{ transform: booleanAttribute }]
|
1549
|
+
}], baseZIndex: [{
|
1550
|
+
type: Input,
|
1551
|
+
args: [{ transform: numberAttribute }]
|
1552
|
+
}], id: [{
|
1553
|
+
type: Input
|
1554
|
+
}], breakpoint: [{
|
1555
|
+
type: Input
|
1556
|
+
}], ariaLabel: [{
|
1557
|
+
type: Input
|
1558
|
+
}], ariaLabelledBy: [{
|
1559
|
+
type: Input
|
1560
|
+
}], pressDelay: [{
|
1561
|
+
type: Input,
|
1562
|
+
args: [{ transform: numberAttribute }]
|
1563
|
+
}], onShow: [{
|
1564
|
+
type: Output
|
1565
|
+
}], onHide: [{
|
1566
|
+
type: Output
|
1567
|
+
}], rootmenu: [{
|
1568
|
+
type: ViewChild,
|
1569
|
+
args: ['rootmenu']
|
1570
|
+
}], containerViewChild: [{
|
1571
|
+
type: ViewChild,
|
1572
|
+
args: ['container']
|
1573
|
+
}], itemTemplate: [{
|
1574
|
+
type: ContentChild,
|
1575
|
+
args: ['item', { descendants: false }]
|
1576
|
+
}], submenuIconTemplate: [{
|
1577
|
+
type: ContentChild,
|
1578
|
+
args: ['submenuicon', { descendants: false }]
|
1579
|
+
}], templates: [{
|
1580
|
+
type: ContentChildren,
|
1581
|
+
args: [PrimeTemplate]
|
1582
|
+
}] } });
|
1696
1583
|
class ContextMenuModule {
|
1697
|
-
static ɵfac =
|
1698
|
-
static ɵmod =
|
1699
|
-
static ɵinj =
|
1584
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1585
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuModule, imports: [ContextMenu, SharedModule], exports: [ContextMenu, SharedModule] });
|
1586
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuModule, imports: [ContextMenu, SharedModule, SharedModule] });
|
1700
1587
|
}
|
1701
|
-
(
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
|
1706
|
-
|
1707
|
-
|
1708
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ContextMenuModule, { imports: [ContextMenu, SharedModule], exports: [ContextMenu, SharedModule] }); })();
|
1588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ContextMenuModule, decorators: [{
|
1589
|
+
type: NgModule,
|
1590
|
+
args: [{
|
1591
|
+
imports: [ContextMenu, SharedModule],
|
1592
|
+
exports: [ContextMenu, SharedModule]
|
1593
|
+
}]
|
1594
|
+
}] });
|
1709
1595
|
|
1710
1596
|
/**
|
1711
1597
|
* Generated bundle index. Do not edit.
|