primeng 19.0.6 → 19.0.8
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/accordion/accordion.d.ts +1 -1
- package/basecomponent/basecomponent.d.ts +1 -0
- package/confirmdialog/confirmdialog.d.ts +2 -1
- package/dataview/dataview.interface.d.ts +9 -19
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog.d.ts +1 -1
- package/fesm2022/primeng-accordion.mjs +358 -561
- 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 +505 -786
- 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 +70 -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 +6 -6
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +19 -16
- 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 +88 -192
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +218 -405
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +392 -576
- 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 +131 -183
- 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 +12 -12
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +232 -350
- 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 +740 -1136
- 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 +171 -268
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +529 -867
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +152 -301
- 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 -687
- 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 +34 -40
- 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 +156 -181
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +299 -416
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +97 -121
- 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 +51 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +50 -55
- 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 +473 -790
- 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 +289 -460
- 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 +158 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +163 -279
- 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 +687 -1162
- 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 +138 -156
- 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 +268 -408
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +560 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +133 -150
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +83 -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 +115 -106
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +120 -208
- 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 +580 -955
- 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 +227 -342
- 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 +1808 -2584
- 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 +185 -300
- 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 +56 -61
- 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 +251 -358
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +113 -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 +73 -74
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +441 -730
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +342 -531
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1026 -1583
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/listbox/listbox.d.ts +2 -2
- package/multiselect/multiselect.d.ts +4 -2
- package/package.json +139 -140
- package/password/password.d.ts +7 -1
- package/picklist/picklist.d.ts +11 -1
@@ -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,298 +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) => ({ "p-focus": a0, "p-disabled": a1 });
|
308
|
-
function Menu_div_0_div_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
309
|
-
i0.ɵɵelementContainer(0);
|
310
|
-
} }
|
311
|
-
function Menu_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
312
|
-
i0.ɵɵelementStart(0, "div", 9);
|
313
|
-
i0.ɵɵtemplate(1, Menu_div_0_div_2_ng_container_1_Template, 1, 0, "ng-container", 10);
|
314
|
-
i0.ɵɵelementEnd();
|
315
|
-
} if (rf & 2) {
|
316
|
-
let tmp_5_0;
|
317
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
318
|
-
i0.ɵɵattribute("data-pc-section", "start");
|
319
|
-
i0.ɵɵadvance();
|
320
|
-
i0.ɵɵproperty("ngTemplateOutlet", (tmp_5_0 = ctx_r1.startTemplate) !== null && tmp_5_0 !== undefined ? tmp_5_0 : ctx_r1._startTemplate);
|
321
|
-
} }
|
322
|
-
function Menu_div_0_5_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
323
|
-
i0.ɵɵelement(0, "li", 14);
|
324
|
-
} }
|
325
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
326
|
-
i0.ɵɵelementStart(0, "span");
|
327
|
-
i0.ɵɵtext(1);
|
328
|
-
i0.ɵɵelementEnd();
|
329
|
-
} if (rf & 2) {
|
330
|
-
const submenu_r3 = i0.ɵɵnextContext(3).$implicit;
|
331
|
-
i0.ɵɵadvance();
|
332
|
-
i0.ɵɵtextInterpolate(submenu_r3.label);
|
333
|
-
} }
|
334
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
335
|
-
i0.ɵɵelement(0, "span", 18);
|
336
|
-
i0.ɵɵpipe(1, "safeHtml");
|
337
|
-
} if (rf & 2) {
|
338
|
-
const submenu_r3 = i0.ɵɵnextContext(3).$implicit;
|
339
|
-
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(1, 1, submenu_r3.label), i0.ɵɵsanitizeHtml);
|
340
|
-
} }
|
341
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
342
|
-
i0.ɵɵelementContainerStart(0);
|
343
|
-
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);
|
344
|
-
i0.ɵɵelementContainerEnd();
|
345
|
-
} if (rf & 2) {
|
346
|
-
const htmlSubmenuLabel_r4 = i0.ɵɵreference(3);
|
347
|
-
const submenu_r3 = i0.ɵɵnextContext(2).$implicit;
|
348
|
-
i0.ɵɵadvance();
|
349
|
-
i0.ɵɵproperty("ngIf", submenu_r3.escape !== false)("ngIfElse", htmlSubmenuLabel_r4);
|
350
|
-
} }
|
351
|
-
function Menu_div_0_5_ng_template_0_li_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
352
|
-
i0.ɵɵelementContainer(0);
|
353
|
-
} }
|
354
|
-
function Menu_div_0_5_ng_template_0_li_1_Template(rf, ctx) { if (rf & 1) {
|
355
|
-
i0.ɵɵelementStart(0, "li", 15);
|
356
|
-
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);
|
357
|
-
i0.ɵɵelementEnd();
|
358
|
-
} if (rf & 2) {
|
359
|
-
let tmp_13_0;
|
360
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
361
|
-
const submenu_r3 = ctx_r4.$implicit;
|
362
|
-
const i_r6 = ctx_r4.index;
|
363
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
364
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c14, submenu_r3.visible === false, submenu_r3.visible))("tooltipOptions", submenu_r3.tooltipOptions);
|
365
|
-
i0.ɵɵattribute("data-automationid", submenu_r3.automationId)("id", ctx_r1.menuitemId(submenu_r3, ctx_r1.id, i_r6));
|
366
|
-
i0.ɵɵadvance();
|
367
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.submenuHeaderTemplate && !ctx_r1._submenuHeaderTemplate);
|
368
|
-
i0.ɵɵadvance();
|
369
|
-
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));
|
370
|
-
} }
|
371
|
-
function Menu_div_0_5_ng_template_0_ng_template_2_li_0_Template(rf, ctx) { if (rf & 1) {
|
372
|
-
i0.ɵɵelement(0, "li", 14);
|
373
|
-
} }
|
374
|
-
function Menu_div_0_5_ng_template_0_ng_template_2_li_1_Template(rf, ctx) { if (rf & 1) {
|
375
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
376
|
-
i0.ɵɵelementStart(0, "li", 20);
|
377
|
-
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))); });
|
378
|
-
i0.ɵɵelementEnd();
|
379
|
-
} if (rf & 2) {
|
380
|
-
let tmp_13_0;
|
381
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
382
|
-
const item_r9 = ctx_r7.$implicit;
|
383
|
-
const j_r10 = ctx_r7.index;
|
384
|
-
const i_r6 = i0.ɵɵnextContext().index;
|
385
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
386
|
-
i0.ɵɵclassMap(item_r9.styleClass);
|
387
|
-
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.ɵɵpureFunction2(13, _c15, 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);
|
388
|
-
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));
|
389
|
-
} }
|
390
|
-
function Menu_div_0_5_ng_template_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
391
|
-
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, 16, "li", 19);
|
392
|
-
} if (rf & 2) {
|
393
|
-
const item_r9 = ctx.$implicit;
|
394
|
-
const submenu_r3 = i0.ɵɵnextContext().$implicit;
|
395
|
-
i0.ɵɵproperty("ngIf", item_r9.separator && (item_r9.visible !== false || submenu_r3.visible !== false));
|
396
|
-
i0.ɵɵadvance();
|
397
|
-
i0.ɵɵproperty("ngIf", !item_r9.separator && item_r9.visible !== false && (item_r9.visible !== undefined || submenu_r3.visible !== false));
|
398
|
-
} }
|
399
|
-
function Menu_div_0_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
400
|
-
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);
|
401
|
-
} if (rf & 2) {
|
402
|
-
const submenu_r3 = ctx.$implicit;
|
403
|
-
i0.ɵɵproperty("ngIf", submenu_r3.separator && submenu_r3.visible !== false);
|
404
|
-
i0.ɵɵadvance();
|
405
|
-
i0.ɵɵproperty("ngIf", !submenu_r3.separator);
|
406
|
-
i0.ɵɵadvance();
|
407
|
-
i0.ɵɵproperty("ngForOf", submenu_r3.items);
|
408
|
-
} }
|
409
|
-
function Menu_div_0_5_Template(rf, ctx) { if (rf & 1) {
|
410
|
-
i0.ɵɵtemplate(0, Menu_div_0_5_ng_template_0_Template, 3, 3, "ng-template", 11);
|
411
|
-
} if (rf & 2) {
|
412
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
413
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.model);
|
414
|
-
} }
|
415
|
-
function Menu_div_0_6_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
416
|
-
i0.ɵɵelement(0, "li", 14);
|
417
|
-
} }
|
418
|
-
function Menu_div_0_6_ng_template_0_li_1_Template(rf, ctx) { if (rf & 1) {
|
419
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
420
|
-
i0.ɵɵelementStart(0, "li", 20);
|
421
|
-
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))); });
|
422
|
-
i0.ɵɵelementEnd();
|
423
|
-
} if (rf & 2) {
|
424
|
-
let tmp_10_0;
|
425
|
-
const ctx_r11 = i0.ɵɵnextContext();
|
426
|
-
const item_r13 = ctx_r11.$implicit;
|
427
|
-
const i_r14 = ctx_r11.index;
|
428
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
429
|
-
i0.ɵɵclassMap(item_r13.styleClass);
|
430
|
-
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, _c15, 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);
|
431
|
-
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));
|
432
|
-
} }
|
433
|
-
function Menu_div_0_6_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
434
|
-
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);
|
435
|
-
} if (rf & 2) {
|
436
|
-
const item_r13 = ctx.$implicit;
|
437
|
-
i0.ɵɵproperty("ngIf", item_r13.separator && item_r13.visible !== false);
|
438
|
-
i0.ɵɵadvance();
|
439
|
-
i0.ɵɵproperty("ngIf", !item_r13.separator && item_r13.visible !== false);
|
440
|
-
} }
|
441
|
-
function Menu_div_0_6_Template(rf, ctx) { if (rf & 1) {
|
442
|
-
i0.ɵɵtemplate(0, Menu_div_0_6_ng_template_0_Template, 2, 2, "ng-template", 11);
|
443
|
-
} if (rf & 2) {
|
444
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
445
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.model);
|
446
|
-
} }
|
447
|
-
function Menu_div_0_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
448
|
-
i0.ɵɵelementContainer(0);
|
449
|
-
} }
|
450
|
-
function Menu_div_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
451
|
-
i0.ɵɵelementStart(0, "div", 21);
|
452
|
-
i0.ɵɵtemplate(1, Menu_div_0_div_7_ng_container_1_Template, 1, 0, "ng-container", 10);
|
453
|
-
i0.ɵɵelementEnd();
|
454
|
-
} if (rf & 2) {
|
455
|
-
let tmp_5_0;
|
456
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
457
|
-
i0.ɵɵattribute("data-pc-section", "end");
|
458
|
-
i0.ɵɵadvance();
|
459
|
-
i0.ɵɵproperty("ngTemplateOutlet", (tmp_5_0 = ctx_r1.endTemplate) !== null && tmp_5_0 !== undefined ? tmp_5_0 : ctx_r1._endTemplate);
|
460
|
-
} }
|
461
|
-
function Menu_div_0_Template(rf, ctx) { if (rf & 1) {
|
462
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
463
|
-
i0.ɵɵelementStart(0, "div", 4, 0);
|
464
|
-
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)); });
|
465
|
-
i0.ɵɵtemplate(2, Menu_div_0_div_2_Template, 2, 2, "div", 5);
|
466
|
-
i0.ɵɵelementStart(3, "ul", 6, 1);
|
467
|
-
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)); });
|
468
|
-
i0.ɵɵtemplate(5, Menu_div_0_5_Template, 1, 1, null, 7)(6, Menu_div_0_6_Template, 1, 1, null, 7);
|
469
|
-
i0.ɵɵelementEnd();
|
470
|
-
i0.ɵɵtemplate(7, Menu_div_0_div_7_Template, 2, 2, "div", 8);
|
471
|
-
i0.ɵɵelementEnd();
|
472
|
-
} if (rf & 2) {
|
473
|
-
let tmp_10_0;
|
474
|
-
let tmp_19_0;
|
475
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
476
|
-
i0.ɵɵclassMap(ctx_r1.styleClass);
|
477
|
-
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);
|
478
|
-
i0.ɵɵattribute("data-pc-name", "menu")("id", ctx_r1.id);
|
479
|
-
i0.ɵɵadvance(2);
|
480
|
-
i0.ɵɵproperty("ngIf", (tmp_10_0 = ctx_r1.startTemplate) !== null && tmp_10_0 !== undefined ? tmp_10_0 : ctx_r1._startTemplate);
|
481
|
-
i0.ɵɵadvance();
|
482
|
-
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);
|
483
|
-
i0.ɵɵadvance(2);
|
484
|
-
i0.ɵɵproperty("ngIf", ctx_r1.hasSubMenu());
|
485
|
-
i0.ɵɵadvance();
|
486
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.hasSubMenu());
|
487
|
-
i0.ɵɵadvance();
|
488
|
-
i0.ɵɵproperty("ngIf", (tmp_19_0 = ctx_r1.endTemplate) !== null && tmp_19_0 !== undefined ? tmp_19_0 : ctx_r1._endTemplate);
|
489
|
-
} }
|
490
198
|
class SafeHtmlPipe {
|
491
199
|
platformId;
|
492
200
|
sanitizer;
|
@@ -500,19 +208,19 @@ class SafeHtmlPipe {
|
|
500
208
|
}
|
501
209
|
return this.sanitizer.bypassSecurityTrustHtml(value);
|
502
210
|
}
|
503
|
-
static ɵfac =
|
504
|
-
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" });
|
505
213
|
}
|
506
|
-
(
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
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 }] });
|
516
224
|
class MenuItemContent {
|
517
225
|
item;
|
518
226
|
itemTemplate;
|
@@ -524,28 +232,69 @@ class MenuItemContent {
|
|
524
232
|
onItemClick(event, item) {
|
525
233
|
this.onMenuItemClick.emit({ originalEvent: event, item });
|
526
234
|
}
|
527
|
-
static ɵfac =
|
528
|
-
static ɵcmp =
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
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 });
|
541
290
|
}
|
542
|
-
(
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
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: `
|
549
298
|
<div [attr.data-pc-section]="'content'" class="p-menu-item-content" (click)="onItemClick($event, item)">
|
550
299
|
<ng-container *ngIf="!itemTemplate">
|
551
300
|
<a
|
@@ -599,20 +348,19 @@ class MenuItemContent {
|
|
599
348
|
</ng-template>
|
600
349
|
</div>
|
601
350
|
`,
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
(() => { (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
|
+
}] } });
|
616
364
|
/**
|
617
365
|
* Menu is a navigation / command component that supports dynamic and static positioning.
|
618
366
|
* @group Components
|
@@ -1119,42 +867,125 @@ class Menu extends BaseComponent {
|
|
1119
867
|
}
|
1120
868
|
return item.visible === false;
|
1121
869
|
}
|
1122
|
-
static ɵfac =
|
1123
|
-
static ɵcmp =
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
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 });
|
1150
981
|
}
|
1151
|
-
(
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
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: `
|
1158
989
|
<div
|
1159
990
|
#container
|
1160
991
|
[ngClass]="{ 'p-menu p-component': true, 'p-menu-overlay': popup }"
|
@@ -1264,88 +1095,86 @@ class Menu extends BaseComponent {
|
|
1264
1095
|
</div>
|
1265
1096
|
</div>
|
1266
1097
|
`,
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
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
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Menu, { className: "Menu", filePath: "menu.ts", lineNumber: 263 }); })();
|
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
|
+
}] } });
|
1336
1166
|
class MenuModule {
|
1337
|
-
static ɵfac =
|
1338
|
-
static ɵmod =
|
1339
|
-
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] });
|
1340
1170
|
}
|
1341
|
-
(
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
(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
|
+
}] });
|
1349
1178
|
|
1350
1179
|
/**
|
1351
1180
|
* Generated bundle index. Do not edit.
|