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 i2 from '@angular/common';
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, PLATFORM_ID,
|
5
|
+
import { Injectable, PLATFORM_ID, Inject, Pipe, EventEmitter, forwardRef, Output, Input, ViewEncapsulation, Component, computed, signal, inject, numberAttribute, booleanAttribute, ContentChildren, ContentChild, ViewChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
6
6
|
import * as i3 from '@angular/router';
|
7
7
|
import { RouterModule } from '@angular/router';
|
8
8
|
import { uuid, focus, relativePosition, absolutePosition, appendChild, isTouchDevice, find, findSingle } from '@primeuix/utils';
|
@@ -132,12 +132,12 @@ class MenuStyle extends BaseStyle {
|
|
132
132
|
name = 'menu';
|
133
133
|
theme = theme;
|
134
134
|
classes = classes;
|
135
|
-
static ɵfac =
|
136
|
-
static ɵprov =
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
136
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuStyle });
|
137
137
|
}
|
138
|
-
(
|
139
|
-
|
140
|
-
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuStyle, decorators: [{
|
139
|
+
type: Injectable
|
140
|
+
}] });
|
141
141
|
/**
|
142
142
|
*
|
143
143
|
* Menu is a navigation / command component that supports dynamic and static positioning.
|
@@ -195,301 +195,6 @@ var MenuClasses;
|
|
195
195
|
MenuClasses["itemLabel"] = "p-menu-item-label";
|
196
196
|
})(MenuClasses || (MenuClasses = {}));
|
197
197
|
|
198
|
-
const _c0 = ["pMenuItemContent", ""];
|
199
|
-
const _c1 = a0 => ({ "p-disabled": a0 });
|
200
|
-
const _c2 = a0 => ({ $implicit: a0 });
|
201
|
-
const _c3 = () => ({ exact: false });
|
202
|
-
function MenuItemContent_ng_container_1_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
203
|
-
i0.ɵɵelementContainer(0);
|
204
|
-
} }
|
205
|
-
function MenuItemContent_ng_container_1_a_1_Template(rf, ctx) { if (rf & 1) {
|
206
|
-
i0.ɵɵelementStart(0, "a", 6);
|
207
|
-
i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_a_1_ng_container_1_Template, 1, 0, "ng-container", 7);
|
208
|
-
i0.ɵɵelementEnd();
|
209
|
-
} if (rf & 2) {
|
210
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
211
|
-
const itemContent_r3 = i0.ɵɵreference(4);
|
212
|
-
i0.ɵɵproperty("target", ctx_r1.item.target)("ngClass", i0.ɵɵpureFunction1(9, _c1, ctx_r1.item.disabled));
|
213
|
-
i0.ɵɵattribute("title", ctx_r1.item.title)("href", ctx_r1.item.url || null, i0.ɵɵsanitizeUrl)("data-automationid", ctx_r1.item.automationId)("tabindex", -1)("data-pc-section", "action");
|
214
|
-
i0.ɵɵadvance();
|
215
|
-
i0.ɵɵproperty("ngTemplateOutlet", itemContent_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(11, _c2, ctx_r1.item));
|
216
|
-
} }
|
217
|
-
function MenuItemContent_ng_container_1_a_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
218
|
-
i0.ɵɵelementContainer(0);
|
219
|
-
} }
|
220
|
-
function MenuItemContent_ng_container_1_a_2_Template(rf, ctx) { if (rf & 1) {
|
221
|
-
i0.ɵɵelementStart(0, "a", 8);
|
222
|
-
i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_a_2_ng_container_1_Template, 1, 0, "ng-container", 7);
|
223
|
-
i0.ɵɵelementEnd();
|
224
|
-
} if (rf & 2) {
|
225
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
226
|
-
const itemContent_r3 = i0.ɵɵreference(4);
|
227
|
-
i0.ɵɵproperty("routerLink", ctx_r1.item.routerLink)("queryParams", ctx_r1.item.queryParams)("routerLinkActiveOptions", ctx_r1.item.routerLinkActiveOptions || i0.ɵɵpureFunction0(17, _c3))("target", ctx_r1.item.target)("ngClass", i0.ɵɵpureFunction1(18, _c1, ctx_r1.item.disabled))("fragment", ctx_r1.item.fragment)("queryParamsHandling", ctx_r1.item.queryParamsHandling)("preserveFragment", ctx_r1.item.preserveFragment)("skipLocationChange", ctx_r1.item.skipLocationChange)("replaceUrl", ctx_r1.item.replaceUrl)("state", ctx_r1.item.state);
|
228
|
-
i0.ɵɵattribute("data-automationid", ctx_r1.item.automationId)("tabindex", -1)("data-pc-section", "action")("title", ctx_r1.item.title);
|
229
|
-
i0.ɵɵadvance();
|
230
|
-
i0.ɵɵproperty("ngTemplateOutlet", itemContent_r3)("ngTemplateOutletContext", i0.ɵɵpureFunction1(20, _c2, ctx_r1.item));
|
231
|
-
} }
|
232
|
-
function MenuItemContent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
233
|
-
i0.ɵɵelementContainerStart(0);
|
234
|
-
i0.ɵɵtemplate(1, MenuItemContent_ng_container_1_a_1_Template, 2, 13, "a", 4)(2, MenuItemContent_ng_container_1_a_2_Template, 2, 22, "a", 5);
|
235
|
-
i0.ɵɵelementContainerEnd();
|
236
|
-
} if (rf & 2) {
|
237
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
238
|
-
i0.ɵɵadvance();
|
239
|
-
i0.ɵɵproperty("ngIf", !(ctx_r1.item == null ? null : ctx_r1.item.routerLink));
|
240
|
-
i0.ɵɵadvance();
|
241
|
-
i0.ɵɵproperty("ngIf", ctx_r1.item == null ? null : ctx_r1.item.routerLink);
|
242
|
-
} }
|
243
|
-
function MenuItemContent_ng_container_2_1_ng_template_0_Template(rf, ctx) { }
|
244
|
-
function MenuItemContent_ng_container_2_1_Template(rf, ctx) { if (rf & 1) {
|
245
|
-
i0.ɵɵtemplate(0, MenuItemContent_ng_container_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
246
|
-
} }
|
247
|
-
function MenuItemContent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
248
|
-
i0.ɵɵelementContainerStart(0);
|
249
|
-
i0.ɵɵtemplate(1, MenuItemContent_ng_container_2_1_Template, 1, 0, null, 7);
|
250
|
-
i0.ɵɵelementContainerEnd();
|
251
|
-
} if (rf & 2) {
|
252
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
253
|
-
i0.ɵɵadvance();
|
254
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r1.item));
|
255
|
-
} }
|
256
|
-
function MenuItemContent_ng_template_3_span_0_Template(rf, ctx) { if (rf & 1) {
|
257
|
-
i0.ɵɵelement(0, "span", 12);
|
258
|
-
} if (rf & 2) {
|
259
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
260
|
-
i0.ɵɵclassMap(ctx_r1.item.iconClass);
|
261
|
-
i0.ɵɵproperty("ngClass", ctx_r1.item.icon)("ngStyle", ctx_r1.item.iconStyle);
|
262
|
-
} }
|
263
|
-
function MenuItemContent_ng_template_3_span_1_Template(rf, ctx) { if (rf & 1) {
|
264
|
-
i0.ɵɵelementStart(0, "span", 13);
|
265
|
-
i0.ɵɵtext(1);
|
266
|
-
i0.ɵɵelementEnd();
|
267
|
-
} if (rf & 2) {
|
268
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
269
|
-
i0.ɵɵadvance();
|
270
|
-
i0.ɵɵtextInterpolate(ctx_r1.item.label);
|
271
|
-
} }
|
272
|
-
function MenuItemContent_ng_template_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
273
|
-
i0.ɵɵelement(0, "span", 14);
|
274
|
-
i0.ɵɵpipe(1, "safeHtml");
|
275
|
-
} if (rf & 2) {
|
276
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
277
|
-
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, ctx_r1.item.label), i0.ɵɵsanitizeHtml);
|
278
|
-
} }
|
279
|
-
function MenuItemContent_ng_template_3_p_badge_4_Template(rf, ctx) { if (rf & 1) {
|
280
|
-
i0.ɵɵelement(0, "p-badge", 15);
|
281
|
-
} if (rf & 2) {
|
282
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
283
|
-
i0.ɵɵproperty("styleClass", ctx_r1.item.badgeStyleClass)("value", ctx_r1.item.badge);
|
284
|
-
} }
|
285
|
-
function MenuItemContent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
286
|
-
i0.ɵɵtemplate(0, MenuItemContent_ng_template_3_span_0_Template, 1, 4, "span", 9)(1, MenuItemContent_ng_template_3_span_1_Template, 2, 1, "span", 10)(2, MenuItemContent_ng_template_3_ng_template_2_Template, 2, 3, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(4, MenuItemContent_ng_template_3_p_badge_4_Template, 1, 2, "p-badge", 11);
|
287
|
-
} if (rf & 2) {
|
288
|
-
const htmlLabel_r4 = i0.ɵɵreference(3);
|
289
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
290
|
-
i0.ɵɵproperty("ngIf", ctx_r1.item.icon);
|
291
|
-
i0.ɵɵadvance();
|
292
|
-
i0.ɵɵproperty("ngIf", ctx_r1.item.escape !== false)("ngIfElse", htmlLabel_r4);
|
293
|
-
i0.ɵɵadvance(3);
|
294
|
-
i0.ɵɵproperty("ngIf", ctx_r1.item.badge);
|
295
|
-
} }
|
296
|
-
const _c4 = ["start"];
|
297
|
-
const _c5 = ["end"];
|
298
|
-
const _c6 = ["header"];
|
299
|
-
const _c7 = ["item"];
|
300
|
-
const _c8 = ["submenuheader"];
|
301
|
-
const _c9 = ["list"];
|
302
|
-
const _c10 = ["container"];
|
303
|
-
const _c11 = a0 => ({ "p-menu p-component": true, "p-menu-overlay": a0 });
|
304
|
-
const _c12 = (a0, a1) => ({ showTransitionParams: a0, hideTransitionParams: a1 });
|
305
|
-
const _c13 = a0 => ({ value: "visible", params: a0 });
|
306
|
-
const _c14 = (a0, a1) => ({ "p-hidden": a0, flex: a1 });
|
307
|
-
const _c15 = (a0, a1, a2) => ({ "p-hidden": a0, "p-focus": a1, "p-disabled": a2 });
|
308
|
-
const _c16 = (a0, a1) => ({ "p-focus": a0, "p-disabled": a1 });
|
309
|
-
function Menu_div_0_div_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
310
|
-
i0.ɵɵelementContainer(0);
|
311
|
-
} }
|
312
|
-
function Menu_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
313
|
-
i0.ɵɵelementStart(0, "div", 9);
|
314
|
-
i0.ɵɵtemplate(1, Menu_div_0_div_2_ng_container_1_Template, 1, 0, "ng-container", 10);
|
315
|
-
i0.ɵɵelementEnd();
|
316
|
-
} if (rf & 2) {
|
317
|
-
let tmp_5_0;
|
318
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
319
|
-
i0.ɵɵattribute("data-pc-section", "start");
|
320
|
-
i0.ɵɵadvance();
|
321
|
-
i0.ɵɵproperty("ngTemplateOutlet", (tmp_5_0 = ctx_r1.startTemplate) !== null && tmp_5_0 !== undefined ? tmp_5_0 : ctx_r1._startTemplate);
|
322
|
-
} }
|
323
|
-
function Menu_div_0_5_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
324
|
-
i0.ɵɵelement(0, "li", 14);
|
325
|
-
} }
|
326
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
327
|
-
i0.ɵɵelementStart(0, "span");
|
328
|
-
i0.ɵɵtext(1);
|
329
|
-
i0.ɵɵelementEnd();
|
330
|
-
} if (rf & 2) {
|
331
|
-
const submenu_r3 = i0.ɵɵnextContext(3).$implicit;
|
332
|
-
i0.ɵɵadvance();
|
333
|
-
i0.ɵɵtextInterpolate(submenu_r3.label);
|
334
|
-
} }
|
335
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
336
|
-
i0.ɵɵelement(0, "span", 18);
|
337
|
-
i0.ɵɵpipe(1, "safeHtml");
|
338
|
-
} if (rf & 2) {
|
339
|
-
const submenu_r3 = i0.ɵɵnextContext(3).$implicit;
|
340
|
-
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, submenu_r3.label), i0.ɵɵsanitizeHtml);
|
341
|
-
} }
|
342
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
343
|
-
i0.ɵɵelementContainerStart(0);
|
344
|
-
i0.ɵɵtemplate(1, Menu_div_0_5_ng_template_0_li_1_ng_container_1_span_1_Template, 2, 1, "span", 17)(2, Menu_div_0_5_ng_template_0_li_1_ng_container_1_ng_template_2_Template, 2, 3, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
345
|
-
i0.ɵɵelementContainerEnd();
|
346
|
-
} if (rf & 2) {
|
347
|
-
const htmlSubmenuLabel_r4 = i0.ɵɵreference(3);
|
348
|
-
const submenu_r3 = i0.ɵɵnextContext(2).$implicit;
|
349
|
-
i0.ɵɵadvance();
|
350
|
-
i0.ɵɵproperty("ngIf", submenu_r3.escape !== false)("ngIfElse", htmlSubmenuLabel_r4);
|
351
|
-
} }
|
352
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
353
|
-
i0.ɵɵelementContainer(0);
|
354
|
-
} }
|
355
|
-
function Menu_div_0_5_ng_template_0_li_1_Template(rf, ctx) { if (rf & 1) {
|
356
|
-
i0.ɵɵelementStart(0, "li", 15);
|
357
|
-
i0.ɵɵtemplate(1, Menu_div_0_5_ng_template_0_li_1_ng_container_1_Template, 4, 2, "ng-container", 7)(2, Menu_div_0_5_ng_template_0_li_1_ng_container_2_Template, 1, 0, "ng-container", 16);
|
358
|
-
i0.ɵɵelementEnd();
|
359
|
-
} if (rf & 2) {
|
360
|
-
let tmp_13_0;
|
361
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
362
|
-
const submenu_r3 = ctx_r4.$implicit;
|
363
|
-
const i_r6 = ctx_r4.index;
|
364
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
365
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c14, submenu_r3.visible === false, submenu_r3.visible))("tooltipOptions", submenu_r3.tooltipOptions);
|
366
|
-
i0.ɵɵattribute("data-automationid", submenu_r3.automationId)("id", ctx_r1.menuitemId(submenu_r3, ctx_r1.id, i_r6));
|
367
|
-
i0.ɵɵadvance();
|
368
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.submenuHeaderTemplate && !ctx_r1._submenuHeaderTemplate);
|
369
|
-
i0.ɵɵadvance();
|
370
|
-
i0.ɵɵproperty("ngTemplateOutlet", (tmp_13_0 = ctx_r1.submenuHeaderTemplate) !== null && tmp_13_0 !== undefined ? tmp_13_0 : ctx_r1._submenuHeaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c2, submenu_r3));
|
371
|
-
} }
|
372
|
-
function Menu_div_0_5_ng_template_0_ng_template_2_li_0_Template(rf, ctx) { if (rf & 1) {
|
373
|
-
i0.ɵɵelement(0, "li", 14);
|
374
|
-
} }
|
375
|
-
function Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template(rf, ctx) { if (rf & 1) {
|
376
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
377
|
-
i0.ɵɵelementStart(0, "li", 20);
|
378
|
-
i0.ɵɵlistener("onMenuItemClick", function Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template_li_onMenuItemClick_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r7 = i0.ɵɵnextContext(); const item_r9 = ctx_r7.$implicit; const j_r10 = ctx_r7.index; const i_r6 = i0.ɵɵnextContext().index; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.itemClick($event, ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10))); });
|
379
|
-
i0.ɵɵelementEnd();
|
380
|
-
} if (rf & 2) {
|
381
|
-
let tmp_13_0;
|
382
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
383
|
-
const item_r9 = ctx_r7.$implicit;
|
384
|
-
const j_r10 = ctx_r7.index;
|
385
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
386
|
-
const submenu_r3 = ctx_r4.$implicit;
|
387
|
-
const i_r6 = ctx_r4.index;
|
388
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
389
|
-
i0.ɵɵclassMap(item_r9.styleClass);
|
390
|
-
i0.ɵɵproperty("pMenuItemContent", item_r9)("itemTemplate", (tmp_13_0 = ctx_r1.itemTemplate) !== null && tmp_13_0 !== undefined ? tmp_13_0 : ctx_r1._itemTemplate)("ngClass", i0.ɵɵpureFunction3(13, _c15, item_r9.visible === false || submenu_r3.visible === false, ctx_r1.focusedOptionId() && ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10) === ctx_r1.focusedOptionId(), ctx_r1.disabled(item_r9.disabled)))("ngStyle", item_r9.style)("tooltipOptions", item_r9.tooltipOptions);
|
391
|
-
i0.ɵɵattribute("data-pc-section", "menuitem")("aria-label", ctx_r1.label(item_r9.label))("data-p-focused", ctx_r1.isItemFocused(ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10)))("data-p-disabled", ctx_r1.disabled(item_r9.disabled))("aria-disabled", ctx_r1.disabled(item_r9.disabled))("id", ctx_r1.menuitemId(item_r9, ctx_r1.id, i_r6, j_r10));
|
392
|
-
} }
|
393
|
-
function Menu_div_0_5_ng_template_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
394
|
-
i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_ng_template_2_li_0_Template, 1, 0, "li", 12)(1, Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template, 1, 17, "li", 19);
|
395
|
-
} if (rf & 2) {
|
396
|
-
const item_r9 = ctx.$implicit;
|
397
|
-
const submenu_r3 = i0.ɵɵnextContext().$implicit;
|
398
|
-
i0.ɵɵproperty("ngIf", item_r9.separator && (item_r9.visible !== false || submenu_r3.visible !== false));
|
399
|
-
i0.ɵɵadvance();
|
400
|
-
i0.ɵɵproperty("ngIf", !item_r9.separator && (item_r9.visible !== false || submenu_r3.visible !== false));
|
401
|
-
} }
|
402
|
-
function Menu_div_0_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
403
|
-
i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_li_0_Template, 1, 0, "li", 12)(1, Menu_div_0_5_ng_template_0_li_1_Template, 3, 12, "li", 13)(2, Menu_div_0_5_ng_template_0_ng_template_2_Template, 2, 2, "ng-template", 11);
|
404
|
-
} if (rf & 2) {
|
405
|
-
const submenu_r3 = ctx.$implicit;
|
406
|
-
i0.ɵɵproperty("ngIf", submenu_r3.separator && submenu_r3.visible !== false);
|
407
|
-
i0.ɵɵadvance();
|
408
|
-
i0.ɵɵproperty("ngIf", !submenu_r3.separator);
|
409
|
-
i0.ɵɵadvance();
|
410
|
-
i0.ɵɵproperty("ngForOf", submenu_r3.items);
|
411
|
-
} }
|
412
|
-
function Menu_div_0_5_Template(rf, ctx) { if (rf & 1) {
|
413
|
-
i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_Template, 3, 3, "ng-template", 11);
|
414
|
-
} if (rf & 2) {
|
415
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
416
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.model);
|
417
|
-
} }
|
418
|
-
function Menu_div_0_6_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
419
|
-
i0.ɵɵelement(0, "li", 14);
|
420
|
-
} }
|
421
|
-
function Menu_div_0_6_ng_template_0_li_1_Template(rf, ctx) { if (rf & 1) {
|
422
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
423
|
-
i0.ɵɵelementStart(0, "li", 20);
|
424
|
-
i0.ɵɵlistener("onMenuItemClick", function Menu_div_0_6_ng_template_0_li_1_Template_li_onMenuItemClick_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r11 = i0.ɵɵnextContext(); const item_r13 = ctx_r11.$implicit; const i_r14 = ctx_r11.index; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.itemClick($event, ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14))); });
|
425
|
-
i0.ɵɵelementEnd();
|
426
|
-
} if (rf & 2) {
|
427
|
-
let tmp_10_0;
|
428
|
-
const ctx_r11 = i0.ɵɵnextContext();
|
429
|
-
const item_r13 = ctx_r11.$implicit;
|
430
|
-
const i_r14 = ctx_r11.index;
|
431
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
432
|
-
i0.ɵɵclassMap(item_r13.styleClass);
|
433
|
-
i0.ɵɵproperty("pMenuItemContent", item_r13)("itemTemplate", (tmp_10_0 = ctx_r1.itemTemplate) !== null && tmp_10_0 !== undefined ? tmp_10_0 : ctx_r1._itemTemplate)("ngClass", i0.ɵɵpureFunction2(13, _c16, ctx_r1.focusedOptionId() && ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14) === ctx_r1.focusedOptionId(), ctx_r1.disabled(item_r13.disabled)))("ngStyle", item_r13.style)("tooltipOptions", item_r13.tooltipOptions);
|
434
|
-
i0.ɵɵattribute("data-pc-section", "menuitem")("aria-label", ctx_r1.label(item_r13.label))("data-p-focused", ctx_r1.isItemFocused(ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14)))("data-p-disabled", ctx_r1.disabled(item_r13.disabled))("aria-disabled", ctx_r1.disabled(item_r13.disabled))("id", ctx_r1.menuitemId(item_r13, ctx_r1.id, i_r14));
|
435
|
-
} }
|
436
|
-
function Menu_div_0_6_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
437
|
-
i0.ɵɵtemplate(0, Menu_div_0_6_ng_template_0_li_0_Template, 1, 0, "li", 12)(1, Menu_div_0_6_ng_template_0_li_1_Template, 1, 16, "li", 19);
|
438
|
-
} if (rf & 2) {
|
439
|
-
const item_r13 = ctx.$implicit;
|
440
|
-
i0.ɵɵproperty("ngIf", item_r13.separator && item_r13.visible !== false);
|
441
|
-
i0.ɵɵadvance();
|
442
|
-
i0.ɵɵproperty("ngIf", !item_r13.separator && item_r13.visible !== false);
|
443
|
-
} }
|
444
|
-
function Menu_div_0_6_Template(rf, ctx) { if (rf & 1) {
|
445
|
-
i0.ɵɵtemplate(0, Menu_div_0_6_ng_template_0_Template, 2, 2, "ng-template", 11);
|
446
|
-
} if (rf & 2) {
|
447
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
448
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.model);
|
449
|
-
} }
|
450
|
-
function Menu_div_0_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
451
|
-
i0.ɵɵelementContainer(0);
|
452
|
-
} }
|
453
|
-
function Menu_div_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
454
|
-
i0.ɵɵelementStart(0, "div", 21);
|
455
|
-
i0.ɵɵtemplate(1, Menu_div_0_div_7_ng_container_1_Template, 1, 0, "ng-container", 10);
|
456
|
-
i0.ɵɵelementEnd();
|
457
|
-
} if (rf & 2) {
|
458
|
-
let tmp_5_0;
|
459
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
460
|
-
i0.ɵɵattribute("data-pc-section", "end");
|
461
|
-
i0.ɵɵadvance();
|
462
|
-
i0.ɵɵproperty("ngTemplateOutlet", (tmp_5_0 = ctx_r1.endTemplate) !== null && tmp_5_0 !== undefined ? tmp_5_0 : ctx_r1._endTemplate);
|
463
|
-
} }
|
464
|
-
function Menu_div_0_Template(rf, ctx) { if (rf & 1) {
|
465
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
466
|
-
i0.ɵɵelementStart(0, "div", 4, 0);
|
467
|
-
i0.ɵɵlistener("click", function Menu_div_0_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayClick($event)); })("@overlayAnimation.start", function Menu_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 Menu_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)); });
|
468
|
-
i0.ɵɵtemplate(2, Menu_div_0_div_2_Template, 2, 2, "div", 5);
|
469
|
-
i0.ɵɵelementStart(3, "ul", 6, 1);
|
470
|
-
i0.ɵɵlistener("focus", function Menu_div_0_Template_ul_focus_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListFocus($event)); })("blur", function Menu_div_0_Template_ul_blur_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListBlur($event)); })("keydown", function Menu_div_0_Template_ul_keydown_3_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListKeyDown($event)); });
|
471
|
-
i0.ɵɵtemplate(5, Menu_div_0_5_Template, 1, 1, null, 7)(6, Menu_div_0_6_Template, 1, 1, null, 7);
|
472
|
-
i0.ɵɵelementEnd();
|
473
|
-
i0.ɵɵtemplate(7, Menu_div_0_div_7_Template, 2, 2, "div", 8);
|
474
|
-
i0.ɵɵelementEnd();
|
475
|
-
} if (rf & 2) {
|
476
|
-
let tmp_10_0;
|
477
|
-
let tmp_19_0;
|
478
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
479
|
-
i0.ɵɵclassMap(ctx_r1.styleClass);
|
480
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c11, ctx_r1.popup))("ngStyle", ctx_r1.style)("@overlayAnimation", i0.ɵɵpureFunction1(23, _c13, i0.ɵɵpureFunction2(20, _c12, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)))("@.disabled", ctx_r1.popup !== true);
|
481
|
-
i0.ɵɵattribute("data-pc-name", "menu")("id", ctx_r1.id);
|
482
|
-
i0.ɵɵadvance(2);
|
483
|
-
i0.ɵɵproperty("ngIf", (tmp_10_0 = ctx_r1.startTemplate) !== null && tmp_10_0 !== undefined ? tmp_10_0 : ctx_r1._startTemplate);
|
484
|
-
i0.ɵɵadvance();
|
485
|
-
i0.ɵɵattribute("id", ctx_r1.id + "_list")("tabindex", ctx_r1.getTabIndexValue())("data-pc-section", "menu")("aria-activedescendant", ctx_r1.activedescendant())("aria-label", ctx_r1.ariaLabel)("aria-labelledBy", ctx_r1.ariaLabelledBy);
|
486
|
-
i0.ɵɵadvance(2);
|
487
|
-
i0.ɵɵproperty("ngIf", ctx_r1.hasSubMenu());
|
488
|
-
i0.ɵɵadvance();
|
489
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.hasSubMenu());
|
490
|
-
i0.ɵɵadvance();
|
491
|
-
i0.ɵɵproperty("ngIf", (tmp_19_0 = ctx_r1.endTemplate) !== null && tmp_19_0 !== undefined ? tmp_19_0 : ctx_r1._endTemplate);
|
492
|
-
} }
|
493
198
|
class SafeHtmlPipe {
|
494
199
|
platformId;
|
495
200
|
sanitizer;
|
@@ -503,19 +208,19 @@ class SafeHtmlPipe {
|
|
503
208
|
}
|
504
209
|
return this.sanitizer.bypassSecurityTrustHtml(value);
|
505
210
|
}
|
506
|
-
static ɵfac =
|
507
|
-
static ɵpipe =
|
211
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: PLATFORM_ID }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
212
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safeHtml" });
|
508
213
|
}
|
509
|
-
(
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
215
|
+
type: Pipe,
|
216
|
+
args: [{
|
217
|
+
name: 'safeHtml',
|
218
|
+
standalone: true
|
219
|
+
}]
|
220
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
221
|
+
type: Inject,
|
222
|
+
args: [PLATFORM_ID]
|
223
|
+
}] }, { type: i1.DomSanitizer }] });
|
519
224
|
class MenuItemContent {
|
520
225
|
item;
|
521
226
|
itemTemplate;
|
@@ -527,28 +232,69 @@ class MenuItemContent {
|
|
527
232
|
onItemClick(event, item) {
|
528
233
|
this.onMenuItemClick.emit({ originalEvent: event, item });
|
529
234
|
}
|
530
|
-
static ɵfac =
|
531
|
-
static ɵcmp =
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuItemContent, deps: [{ token: forwardRef(() => Menu) }], target: i0.ɵɵFactoryTarget.Component });
|
236
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.7", type: MenuItemContent, isStandalone: true, selector: "[pMenuItemContent]", inputs: { item: ["pMenuItemContent", "item"], itemTemplate: "itemTemplate" }, outputs: { onMenuItemClick: "onMenuItemClick" }, ngImport: i0, template: `
|
237
|
+
<div [attr.data-pc-section]="'content'" class="p-menu-item-content" (click)="onItemClick($event, item)">
|
238
|
+
<ng-container *ngIf="!itemTemplate">
|
239
|
+
<a
|
240
|
+
*ngIf="!item?.routerLink"
|
241
|
+
[attr.title]="item.title"
|
242
|
+
[attr.href]="item.url || null"
|
243
|
+
[attr.data-automationid]="item.automationId"
|
244
|
+
[attr.tabindex]="-1"
|
245
|
+
[attr.data-pc-section]="'action'"
|
246
|
+
class="p-menu-item-link"
|
247
|
+
[target]="item.target"
|
248
|
+
[ngClass]="{ 'p-disabled': item.disabled }"
|
249
|
+
pRipple
|
250
|
+
>
|
251
|
+
<ng-container *ngTemplateOutlet="itemContent; context: { $implicit: item }"></ng-container>
|
252
|
+
</a>
|
253
|
+
<a
|
254
|
+
*ngIf="item?.routerLink"
|
255
|
+
[routerLink]="item.routerLink"
|
256
|
+
[attr.data-automationid]="item.automationId"
|
257
|
+
[attr.tabindex]="-1"
|
258
|
+
[attr.data-pc-section]="'action'"
|
259
|
+
[attr.title]="item.title"
|
260
|
+
[queryParams]="item.queryParams"
|
261
|
+
routerLinkActive="p-menu-item-link-active"
|
262
|
+
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { exact: false }"
|
263
|
+
class="p-menu-item-link"
|
264
|
+
[target]="item.target"
|
265
|
+
[ngClass]="{ 'p-disabled': item.disabled }"
|
266
|
+
[fragment]="item.fragment"
|
267
|
+
[queryParamsHandling]="item.queryParamsHandling"
|
268
|
+
[preserveFragment]="item.preserveFragment"
|
269
|
+
[skipLocationChange]="item.skipLocationChange"
|
270
|
+
[replaceUrl]="item.replaceUrl"
|
271
|
+
[state]="item.state"
|
272
|
+
pRipple
|
273
|
+
>
|
274
|
+
<ng-container *ngTemplateOutlet="itemContent; context: { $implicit: item }"></ng-container>
|
275
|
+
</a>
|
276
|
+
</ng-container>
|
277
|
+
|
278
|
+
<ng-container *ngIf="itemTemplate">
|
279
|
+
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: item }"></ng-template>
|
280
|
+
</ng-container>
|
281
|
+
|
282
|
+
<ng-template #itemContent>
|
283
|
+
<span class="p-menu-item-icon" *ngIf="item.icon" [ngClass]="item.icon" [class]="item.iconClass" [ngStyle]="item.iconStyle"></span>
|
284
|
+
<span class="p-menu-item-label" *ngIf="item.escape !== false; else htmlLabel">{{ item.label }}</span>
|
285
|
+
<ng-template #htmlLabel><span class="p-menu-item-label" [innerHTML]="item.label | safeHtml"></span></ng-template>
|
286
|
+
<p-badge *ngIf="item.badge" [styleClass]="item.badgeStyleClass" [value]="item.badge" />
|
287
|
+
</ng-template>
|
288
|
+
</div>
|
289
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i4.Badge, selector: "p-badge", inputs: ["styleClass", "style", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], encapsulation: i0.ViewEncapsulation.None });
|
544
290
|
}
|
545
|
-
(
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuItemContent, decorators: [{
|
292
|
+
type: Component,
|
293
|
+
args: [{
|
294
|
+
selector: '[pMenuItemContent]',
|
295
|
+
standalone: true,
|
296
|
+
imports: [CommonModule, RouterModule, Ripple, TooltipModule, BadgeModule, SharedModule, SafeHtmlPipe],
|
297
|
+
template: `
|
552
298
|
<div [attr.data-pc-section]="'content'" class="p-menu-item-content" (click)="onItemClick($event, item)">
|
553
299
|
<ng-container *ngIf="!itemTemplate">
|
554
300
|
<a
|
@@ -602,20 +348,19 @@ class MenuItemContent {
|
|
602
348
|
</ng-template>
|
603
349
|
</div>
|
604
350
|
`,
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuItemContent, { className: "MenuItemContent", filePath: "menu.ts", lineNumber: 123 }); })();
|
351
|
+
encapsulation: ViewEncapsulation.None
|
352
|
+
}]
|
353
|
+
}], ctorParameters: () => [{ type: Menu, decorators: [{
|
354
|
+
type: Inject,
|
355
|
+
args: [forwardRef(() => Menu)]
|
356
|
+
}] }], propDecorators: { item: [{
|
357
|
+
type: Input,
|
358
|
+
args: ['pMenuItemContent']
|
359
|
+
}], itemTemplate: [{
|
360
|
+
type: Input
|
361
|
+
}], onMenuItemClick: [{
|
362
|
+
type: Output
|
363
|
+
}] } });
|
619
364
|
/**
|
620
365
|
* Menu is a navigation / command component that supports dynamic and static positioning.
|
621
366
|
* @group Components
|
@@ -1114,14 +859,7 @@ class Menu extends BaseComponent {
|
|
1114
859
|
super.ngOnDestroy();
|
1115
860
|
}
|
1116
861
|
hasSubMenu() {
|
1117
|
-
|
1118
|
-
for (var item of this.model) {
|
1119
|
-
if (item.items) {
|
1120
|
-
return true;
|
1121
|
-
}
|
1122
|
-
}
|
1123
|
-
}
|
1124
|
-
return false;
|
862
|
+
return this.model?.some((item) => item.items) ?? false;
|
1125
863
|
}
|
1126
864
|
isItemHidden(item) {
|
1127
865
|
if (item.separator) {
|
@@ -1129,42 +867,125 @@ class Menu extends BaseComponent {
|
|
1129
867
|
}
|
1130
868
|
return item.visible === false;
|
1131
869
|
}
|
1132
|
-
static ɵfac =
|
1133
|
-
static ɵcmp =
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
870
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Menu, deps: [{ token: i5.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
871
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: Menu, isStandalone: true, selector: "p-menu", inputs: { model: "model", popup: ["popup", "popup", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", id: "id", tabindex: ["tabindex", "tabindex", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide", onBlur: "onBlur", onFocus: "onFocus" }, providers: [MenuStyle], queries: [{ propertyName: "startTemplate", first: true, predicate: ["start"] }, { propertyName: "endTemplate", first: true, predicate: ["end"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "submenuHeaderTemplate", first: true, predicate: ["submenuheader"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "listViewChild", first: true, predicate: ["list"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
872
|
+
<div
|
873
|
+
#container
|
874
|
+
[ngClass]="{ 'p-menu p-component': true, 'p-menu-overlay': popup }"
|
875
|
+
[class]="styleClass"
|
876
|
+
[ngStyle]="style"
|
877
|
+
*ngIf="!popup || visible"
|
878
|
+
(click)="onOverlayClick($event)"
|
879
|
+
[@overlayAnimation]="{
|
880
|
+
value: 'visible',
|
881
|
+
params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }
|
882
|
+
}"
|
883
|
+
[@.disabled]="popup !== true"
|
884
|
+
(@overlayAnimation.start)="onOverlayAnimationStart($event)"
|
885
|
+
(@overlayAnimation.done)="onOverlayAnimationEnd($event)"
|
886
|
+
[attr.data-pc-name]="'menu'"
|
887
|
+
[attr.id]="id"
|
888
|
+
>
|
889
|
+
<div *ngIf="startTemplate ?? _startTemplate" class="p-menu-start" [attr.data-pc-section]="'start'">
|
890
|
+
<ng-container *ngTemplateOutlet="startTemplate ?? _startTemplate"></ng-container>
|
891
|
+
</div>
|
892
|
+
<ul
|
893
|
+
#list
|
894
|
+
class="p-menu-list p-reset"
|
895
|
+
role="menu"
|
896
|
+
[attr.id]="id + '_list'"
|
897
|
+
[attr.tabindex]="getTabIndexValue()"
|
898
|
+
[attr.data-pc-section]="'menu'"
|
899
|
+
[attr.aria-activedescendant]="activedescendant()"
|
900
|
+
[attr.aria-label]="ariaLabel"
|
901
|
+
[attr.aria-labelledBy]="ariaLabelledBy"
|
902
|
+
(focus)="onListFocus($event)"
|
903
|
+
(blur)="onListBlur($event)"
|
904
|
+
(keydown)="onListKeyDown($event)"
|
905
|
+
>
|
906
|
+
<ng-template ngFor let-submenu let-i="index" [ngForOf]="model" *ngIf="hasSubMenu()">
|
907
|
+
<li class="p-menu-separator" *ngIf="submenu.separator && submenu.visible !== false" role="separator"></li>
|
908
|
+
<li
|
909
|
+
class="p-menu-submenu-label"
|
910
|
+
[attr.data-automationid]="submenu.automationId"
|
911
|
+
*ngIf="!submenu.separator"
|
912
|
+
[ngClass]="{ 'p-hidden': submenu.visible === false, flex: submenu.visible }"
|
913
|
+
pTooltip
|
914
|
+
[tooltipOptions]="submenu.tooltipOptions"
|
915
|
+
role="none"
|
916
|
+
[attr.id]="menuitemId(submenu, id, i)"
|
917
|
+
>
|
918
|
+
<ng-container *ngIf="!submenuHeaderTemplate && !_submenuHeaderTemplate">
|
919
|
+
<span *ngIf="submenu.escape !== false; else htmlSubmenuLabel">{{ submenu.label }}</span>
|
920
|
+
<ng-template #htmlSubmenuLabel><span [innerHTML]="submenu.label | safeHtml"></span></ng-template>
|
921
|
+
</ng-container>
|
922
|
+
<ng-container *ngTemplateOutlet="submenuHeaderTemplate ?? _submenuHeaderTemplate; context: { $implicit: submenu }"></ng-container>
|
923
|
+
</li>
|
924
|
+
<ng-template ngFor let-item let-j="index" [ngForOf]="submenu.items">
|
925
|
+
<li class="p-menu-separator" *ngIf="item.separator && (item.visible !== false || submenu.visible !== false)" role="separator"></li>
|
926
|
+
<li
|
927
|
+
class="p-menu-item"
|
928
|
+
*ngIf="!item.separator && item.visible !== false && (item.visible !== undefined || submenu.visible !== false)"
|
929
|
+
[pMenuItemContent]="item"
|
930
|
+
[itemTemplate]="itemTemplate ?? _itemTemplate"
|
931
|
+
[ngClass]="{
|
932
|
+
'p-focus': focusedOptionId() && menuitemId(item, id, i, j) === focusedOptionId(),
|
933
|
+
'p-disabled': disabled(item.disabled)
|
934
|
+
}"
|
935
|
+
[ngStyle]="item.style"
|
936
|
+
[class]="item.styleClass"
|
937
|
+
(onMenuItemClick)="itemClick($event, menuitemId(item, id, i, j))"
|
938
|
+
pTooltip
|
939
|
+
[tooltipOptions]="item.tooltipOptions"
|
940
|
+
role="menuitem"
|
941
|
+
[attr.data-pc-section]="'menuitem'"
|
942
|
+
[attr.aria-label]="label(item.label)"
|
943
|
+
[attr.data-p-focused]="isItemFocused(menuitemId(item, id, i, j))"
|
944
|
+
[attr.data-p-disabled]="disabled(item.disabled)"
|
945
|
+
[attr.aria-disabled]="disabled(item.disabled)"
|
946
|
+
[attr.id]="menuitemId(item, id, i, j)"
|
947
|
+
></li>
|
948
|
+
</ng-template>
|
949
|
+
</ng-template>
|
950
|
+
<ng-template ngFor let-item let-i="index" [ngForOf]="model" *ngIf="!hasSubMenu()">
|
951
|
+
<li class="p-menu-separator" *ngIf="item.separator && item.visible !== false" role="separator"></li>
|
952
|
+
<li
|
953
|
+
class="p-menu-item"
|
954
|
+
*ngIf="!item.separator && item.visible !== false"
|
955
|
+
[pMenuItemContent]="item"
|
956
|
+
[itemTemplate]="itemTemplate ?? _itemTemplate"
|
957
|
+
[ngClass]="{
|
958
|
+
'p-focus': focusedOptionId() && menuitemId(item, id, i) === focusedOptionId(),
|
959
|
+
'p-disabled': disabled(item.disabled)
|
960
|
+
}"
|
961
|
+
[ngStyle]="item.style"
|
962
|
+
[class]="item.styleClass"
|
963
|
+
(onMenuItemClick)="itemClick($event, menuitemId(item, id, i))"
|
964
|
+
pTooltip
|
965
|
+
[tooltipOptions]="item.tooltipOptions"
|
966
|
+
role="menuitem"
|
967
|
+
[attr.data-pc-section]="'menuitem'"
|
968
|
+
[attr.aria-label]="label(item.label)"
|
969
|
+
[attr.data-p-focused]="isItemFocused(menuitemId(item, id, i))"
|
970
|
+
[attr.data-p-disabled]="disabled(item.disabled)"
|
971
|
+
[attr.aria-disabled]="disabled(item.disabled)"
|
972
|
+
[attr.id]="menuitemId(item, id, i)"
|
973
|
+
></li>
|
974
|
+
</ng-template>
|
975
|
+
</ul>
|
976
|
+
<div *ngIf="endTemplate ?? _endTemplate" class="p-menu-end" [attr.data-pc-section]="'end'">
|
977
|
+
<ng-container *ngTemplateOutlet="endTemplate ?? _endTemplate"></ng-container>
|
978
|
+
</div>
|
979
|
+
</div>
|
980
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "component", type: MenuItemContent, selector: "[pMenuItemContent]", inputs: ["pMenuItemContent", "itemTemplate"], outputs: ["onMenuItemClick"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "ngmodule", type: SharedModule }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1160
981
|
}
|
1161
|
-
(
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Menu, decorators: [{
|
983
|
+
type: Component,
|
984
|
+
args: [{
|
985
|
+
selector: 'p-menu',
|
986
|
+
standalone: true,
|
987
|
+
imports: [CommonModule, RouterModule, MenuItemContent, TooltipModule, BadgeModule, SharedModule, SafeHtmlPipe],
|
988
|
+
template: `
|
1168
989
|
<div
|
1169
990
|
#container
|
1170
991
|
[ngClass]="{ 'p-menu p-component': true, 'p-menu-overlay': popup }"
|
@@ -1221,11 +1042,10 @@ class Menu extends BaseComponent {
|
|
1221
1042
|
<li class="p-menu-separator" *ngIf="item.separator && (item.visible !== false || submenu.visible !== false)" role="separator"></li>
|
1222
1043
|
<li
|
1223
1044
|
class="p-menu-item"
|
1224
|
-
*ngIf="!item.separator &&
|
1045
|
+
*ngIf="!item.separator && item.visible !== false && (item.visible !== undefined || submenu.visible !== false)"
|
1225
1046
|
[pMenuItemContent]="item"
|
1226
1047
|
[itemTemplate]="itemTemplate ?? _itemTemplate"
|
1227
1048
|
[ngClass]="{
|
1228
|
-
'p-hidden': item.visible === false || submenu.visible === false,
|
1229
1049
|
'p-focus': focusedOptionId() && menuitemId(item, id, i, j) === focusedOptionId(),
|
1230
1050
|
'p-disabled': disabled(item.disabled)
|
1231
1051
|
}"
|
@@ -1275,88 +1095,86 @@ class Menu extends BaseComponent {
|
|
1275
1095
|
</div>
|
1276
1096
|
</div>
|
1277
1097
|
`,
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Menu, { className: "Menu", filePath: "menu.ts", lineNumber: 264 }); })();
|
1098
|
+
animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])],
|
1099
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1100
|
+
encapsulation: ViewEncapsulation.None,
|
1101
|
+
providers: [MenuStyle]
|
1102
|
+
}]
|
1103
|
+
}], ctorParameters: () => [{ type: i5.OverlayService }], propDecorators: { model: [{
|
1104
|
+
type: Input
|
1105
|
+
}], popup: [{
|
1106
|
+
type: Input,
|
1107
|
+
args: [{ transform: booleanAttribute }]
|
1108
|
+
}], style: [{
|
1109
|
+
type: Input
|
1110
|
+
}], styleClass: [{
|
1111
|
+
type: Input
|
1112
|
+
}], appendTo: [{
|
1113
|
+
type: Input
|
1114
|
+
}], autoZIndex: [{
|
1115
|
+
type: Input,
|
1116
|
+
args: [{ transform: booleanAttribute }]
|
1117
|
+
}], baseZIndex: [{
|
1118
|
+
type: Input,
|
1119
|
+
args: [{ transform: numberAttribute }]
|
1120
|
+
}], showTransitionOptions: [{
|
1121
|
+
type: Input
|
1122
|
+
}], hideTransitionOptions: [{
|
1123
|
+
type: Input
|
1124
|
+
}], ariaLabel: [{
|
1125
|
+
type: Input
|
1126
|
+
}], ariaLabelledBy: [{
|
1127
|
+
type: Input
|
1128
|
+
}], id: [{
|
1129
|
+
type: Input
|
1130
|
+
}], tabindex: [{
|
1131
|
+
type: Input,
|
1132
|
+
args: [{ transform: numberAttribute }]
|
1133
|
+
}], onShow: [{
|
1134
|
+
type: Output
|
1135
|
+
}], onHide: [{
|
1136
|
+
type: Output
|
1137
|
+
}], onBlur: [{
|
1138
|
+
type: Output
|
1139
|
+
}], onFocus: [{
|
1140
|
+
type: Output
|
1141
|
+
}], listViewChild: [{
|
1142
|
+
type: ViewChild,
|
1143
|
+
args: ['list']
|
1144
|
+
}], containerViewChild: [{
|
1145
|
+
type: ViewChild,
|
1146
|
+
args: ['container']
|
1147
|
+
}], startTemplate: [{
|
1148
|
+
type: ContentChild,
|
1149
|
+
args: ['start', { descendants: false }]
|
1150
|
+
}], endTemplate: [{
|
1151
|
+
type: ContentChild,
|
1152
|
+
args: ['end', { descendants: false }]
|
1153
|
+
}], headerTemplate: [{
|
1154
|
+
type: ContentChild,
|
1155
|
+
args: ['header', { descendants: false }]
|
1156
|
+
}], itemTemplate: [{
|
1157
|
+
type: ContentChild,
|
1158
|
+
args: ['item', { descendants: false }]
|
1159
|
+
}], submenuHeaderTemplate: [{
|
1160
|
+
type: ContentChild,
|
1161
|
+
args: ['submenuheader', { descendants: false }]
|
1162
|
+
}], templates: [{
|
1163
|
+
type: ContentChildren,
|
1164
|
+
args: [PrimeTemplate]
|
1165
|
+
}] } });
|
1347
1166
|
class MenuModule {
|
1348
|
-
static ɵfac =
|
1349
|
-
static ɵmod =
|
1350
|
-
static ɵinj =
|
1167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1168
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, imports: [Menu, SharedModule, SafeHtmlPipe], exports: [Menu, SharedModule, SafeHtmlPipe] });
|
1169
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, imports: [Menu, SharedModule, SharedModule] });
|
1351
1170
|
}
|
1352
|
-
(
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MenuModule, { imports: [Menu, SharedModule, SafeHtmlPipe], exports: [Menu, SharedModule, SafeHtmlPipe] }); })();
|
1171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MenuModule, decorators: [{
|
1172
|
+
type: NgModule,
|
1173
|
+
args: [{
|
1174
|
+
imports: [Menu, SharedModule, SafeHtmlPipe],
|
1175
|
+
exports: [Menu, SharedModule, SafeHtmlPipe]
|
1176
|
+
}]
|
1177
|
+
}] });
|
1360
1178
|
|
1361
1179
|
/**
|
1362
1180
|
* Generated bundle index. Do not edit.
|