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
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, EventEmitter, inject, forwardRef,
|
4
|
+
import { Injectable, EventEmitter, inject, forwardRef, booleanAttribute, numberAttribute, ViewChild, Output, Input, ViewEncapsulation, Component, signal, effect, ContentChildren, ContentChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
5
5
|
import * as i2 from '@angular/router';
|
6
6
|
import { RouterModule } from '@angular/router';
|
7
7
|
import { resolve, isNotEmpty, uuid, isEmpty, focus, findSingle, isPrintableCharacter, findLastIndex, isTouchDevice } from '@primeuix/utils';
|
@@ -413,12 +413,12 @@ class MegaMenuStyle extends BaseStyle {
|
|
413
413
|
name = 'megamenu';
|
414
414
|
theme = theme;
|
415
415
|
classes = classes;
|
416
|
-
static ɵfac =
|
417
|
-
static ɵprov =
|
416
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
417
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuStyle });
|
418
418
|
}
|
419
|
-
(
|
420
|
-
|
421
|
-
|
419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuStyle, decorators: [{
|
420
|
+
type: Injectable
|
421
|
+
}] });
|
422
422
|
/**
|
423
423
|
*
|
424
424
|
* MegaMenu is navigation component that displays submenus together.
|
@@ -500,400 +500,6 @@ var MegaMenuClasses;
|
|
500
500
|
MegaMenuClasses["end"] = "p-megamenu-end";
|
501
501
|
})(MegaMenuClasses || (MegaMenuClasses = {}));
|
502
502
|
|
503
|
-
const _c0 = ["menubar"];
|
504
|
-
const _c1 = a0 => ({ "max-height": a0, overflow: "auto" });
|
505
|
-
const _c2 = (a0, a1) => ({ "p-megamenu-root-list": a0, "p-megamenu-submenu": a1 });
|
506
|
-
const _c3 = a0 => ({ "p-megamenu-item-link": true, "p-disabled": a0 });
|
507
|
-
const _c4 = () => ({ exact: false });
|
508
|
-
const _c5 = a0 => ({ $implicit: a0 });
|
509
|
-
function MegaMenuSub_ul_0_li_2_Template(rf, ctx) { if (rf & 1) {
|
510
|
-
i0.ɵɵelementStart(0, "li", 8);
|
511
|
-
i0.ɵɵtext(1);
|
512
|
-
i0.ɵɵelementEnd();
|
513
|
-
} if (rf & 2) {
|
514
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
515
|
-
i0.ɵɵstyleMap(ctx_r1.getItemProp(ctx_r1.submenu, "style"));
|
516
|
-
i0.ɵɵproperty("ngClass", ctx_r1.getSubmenuHeaderClass(ctx_r1.submenu));
|
517
|
-
i0.ɵɵadvance();
|
518
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.getItemLabel(ctx_r1.submenu), " ");
|
519
|
-
} }
|
520
|
-
function MegaMenuSub_ul_0_ng_template_3_li_0_Template(rf, ctx) { if (rf & 1) {
|
521
|
-
i0.ɵɵelement(0, "li", 11);
|
522
|
-
} if (rf & 2) {
|
523
|
-
const processedItem_r3 = i0.ɵɵnextContext().$implicit;
|
524
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
525
|
-
i0.ɵɵstyleMap(ctx_r1.getItemProp(processedItem_r3, "style"));
|
526
|
-
i0.ɵɵproperty("ngClass", ctx_r1.getSeparatorItemClass(processedItem_r3));
|
527
|
-
i0.ɵɵattribute("id", ctx_r1.getItemId(processedItem_r3))("data-pc-section", "separator");
|
528
|
-
} }
|
529
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
530
|
-
i0.ɵɵelement(0, "span", 22);
|
531
|
-
} if (rf & 2) {
|
532
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
533
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
534
|
-
i0.ɵɵproperty("ngClass", ctx_r1.getItemProp(processedItem_r3, "icon"))("ngStyle", ctx_r1.getItemProp(processedItem_r3, "iconStyle"));
|
535
|
-
i0.ɵɵattribute("data-pc-section", "icon")("tabindex", -1);
|
536
|
-
} }
|
537
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
538
|
-
i0.ɵɵelementStart(0, "span", 23);
|
539
|
-
i0.ɵɵtext(1);
|
540
|
-
i0.ɵɵelementEnd();
|
541
|
-
} if (rf & 2) {
|
542
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
543
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
544
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
545
|
-
i0.ɵɵadvance();
|
546
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.getItemLabel(processedItem_r3), " ");
|
547
|
-
} }
|
548
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
549
|
-
i0.ɵɵelement(0, "span", 24);
|
550
|
-
} if (rf & 2) {
|
551
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
552
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
553
|
-
i0.ɵɵproperty("innerHTML", ctx_r1.getItemLabel(processedItem_r3), i0.ɵɵsanitizeHtml);
|
554
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
555
|
-
} }
|
556
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_p_badge_5_Template(rf, ctx) { if (rf & 1) {
|
557
|
-
i0.ɵɵelement(0, "p-badge", 25);
|
558
|
-
} if (rf & 2) {
|
559
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
560
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
561
|
-
i0.ɵɵproperty("styleClass", ctx_r1.getItemProp(processedItem_r3, "badgeStyleClass"))("value", ctx_r1.getItemProp(processedItem_r3, "badge"));
|
562
|
-
} }
|
563
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
564
|
-
i0.ɵɵelement(0, "AngleDownIcon", 27);
|
565
|
-
} if (rf & 2) {
|
566
|
-
i0.ɵɵproperty("ngClass", "p-megamenu-submenu-icon");
|
567
|
-
i0.ɵɵattribute("data-pc-section", "submenuicon")("aria-hidden", true);
|
568
|
-
} }
|
569
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Conditional_2_AngleRightIcon_0_Template(rf, ctx) { if (rf & 1) {
|
570
|
-
i0.ɵɵelement(0, "AngleRightIcon", 27);
|
571
|
-
} if (rf & 2) {
|
572
|
-
i0.ɵɵproperty("ngClass", "p-megamenu-submenu-icon");
|
573
|
-
i0.ɵɵattribute("data-pc-section", "submenuicon")("aria-hidden", true);
|
574
|
-
} }
|
575
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
576
|
-
i0.ɵɵtemplate(0, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Conditional_2_AngleRightIcon_0_Template, 1, 3, "AngleRightIcon", 28);
|
577
|
-
} if (rf & 2) {
|
578
|
-
const ctx_r1 = i0.ɵɵnextContext(8);
|
579
|
-
i0.ɵɵproperty("ngIf", ctx_r1.orientation === "vertical");
|
580
|
-
} }
|
581
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
582
|
-
i0.ɵɵelementContainerStart(0);
|
583
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Conditional_1_Template, 1, 3, "AngleDownIcon", 27)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Conditional_2_Template, 1, 1, "AngleRightIcon", 27);
|
584
|
-
i0.ɵɵelementContainerEnd();
|
585
|
-
} if (rf & 2) {
|
586
|
-
const ctx_r1 = i0.ɵɵnextContext(7);
|
587
|
-
i0.ɵɵadvance();
|
588
|
-
i0.ɵɵconditional(ctx_r1.orientation === "horizontal" || ctx_r1.mobileActive ? 1 : 2);
|
589
|
-
} }
|
590
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template(rf, ctx) { }
|
591
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_2_Template(rf, ctx) { if (rf & 1) {
|
592
|
-
i0.ɵɵtemplate(0, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_2_ng_template_0_Template, 0, 0, "ng-template", 29);
|
593
|
-
} if (rf & 2) {
|
594
|
-
i0.ɵɵproperty("data-pc-section", "submenuicon")("aria-hidden", true);
|
595
|
-
} }
|
596
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
597
|
-
i0.ɵɵelementContainerStart(0);
|
598
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_ng_container_1_Template, 3, 1, "ng-container", 14)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_2_Template, 1, 2, null, 26);
|
599
|
-
i0.ɵɵelementContainerEnd();
|
600
|
-
} if (rf & 2) {
|
601
|
-
const ctx_r1 = i0.ɵɵnextContext(6);
|
602
|
-
i0.ɵɵadvance();
|
603
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.megaMenu.submenuIconTemplate && !ctx_r1.megaMenu._submenuIconTemplate);
|
604
|
-
i0.ɵɵadvance();
|
605
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.megaMenu.submenuIconTemplate || ctx_r1.megaMenu._submenuIconTemplate);
|
606
|
-
} }
|
607
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_Template(rf, ctx) { if (rf & 1) {
|
608
|
-
i0.ɵɵelementStart(0, "a", 18);
|
609
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_span_1_Template, 1, 4, "span", 19)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_span_2_Template, 2, 2, "span", 20)(3, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_template_3_Template, 1, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(5, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_p_badge_5_Template, 1, 2, "p-badge", 21)(6, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_ng_container_6_Template, 3, 2, "ng-container", 14);
|
610
|
-
i0.ɵɵelementEnd();
|
611
|
-
} if (rf & 2) {
|
612
|
-
const htmlLabel_r5 = i0.ɵɵreference(4);
|
613
|
-
const processedItem_r3 = i0.ɵɵnextContext(3).$implicit;
|
614
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
615
|
-
i0.ɵɵproperty("target", ctx_r1.getItemProp(processedItem_r3, "target"))("ngClass", i0.ɵɵpureFunction1(11, _c3, ctx_r1.getItemProp(processedItem_r3, "disabled")));
|
616
|
-
i0.ɵɵattribute("href", ctx_r1.getItemProp(processedItem_r3, "url"), i0.ɵɵsanitizeUrl)("data-automationid", ctx_r1.getItemProp(processedItem_r3, "automationId"))("data-pc-section", "action")("tabindex", -1);
|
617
|
-
i0.ɵɵadvance();
|
618
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "icon"));
|
619
|
-
i0.ɵɵadvance();
|
620
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "escape"))("ngIfElse", htmlLabel_r5);
|
621
|
-
i0.ɵɵadvance(3);
|
622
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "badge"));
|
623
|
-
i0.ɵɵadvance();
|
624
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isItemGroup(processedItem_r3));
|
625
|
-
} }
|
626
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
627
|
-
i0.ɵɵelement(0, "span", 22);
|
628
|
-
} if (rf & 2) {
|
629
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
630
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
631
|
-
i0.ɵɵproperty("ngClass", ctx_r1.getItemProp(processedItem_r3, "icon"))("ngStyle", ctx_r1.getItemProp(processedItem_r3, "iconStyle"));
|
632
|
-
i0.ɵɵattribute("data-pc-section", "icon")("aria-hidden", true)("tabindex", -1);
|
633
|
-
} }
|
634
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
635
|
-
i0.ɵɵelementStart(0, "span", 23);
|
636
|
-
i0.ɵɵtext(1);
|
637
|
-
i0.ɵɵelementEnd();
|
638
|
-
} if (rf & 2) {
|
639
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
640
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
641
|
-
i0.ɵɵadvance();
|
642
|
-
i0.ɵɵtextInterpolate(ctx_r1.getItemLabel(processedItem_r3));
|
643
|
-
} }
|
644
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
645
|
-
i0.ɵɵelement(0, "span", 24);
|
646
|
-
} if (rf & 2) {
|
647
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
648
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
649
|
-
i0.ɵɵproperty("innerHTML", ctx_r1.getItemLabel(processedItem_r3), i0.ɵɵsanitizeHtml);
|
650
|
-
i0.ɵɵattribute("data-pc-section", "label");
|
651
|
-
} }
|
652
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_p_badge_5_Template(rf, ctx) { if (rf & 1) {
|
653
|
-
i0.ɵɵelement(0, "p-badge", 25);
|
654
|
-
} if (rf & 2) {
|
655
|
-
const processedItem_r3 = i0.ɵɵnextContext(4).$implicit;
|
656
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
657
|
-
i0.ɵɵproperty("styleClass", ctx_r1.getItemProp(processedItem_r3, "badgeStyleClass"))("value", ctx_r1.getItemProp(processedItem_r3, "badge"));
|
658
|
-
} }
|
659
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_ng_container_1_AngleDownIcon_1_Template(rf, ctx) { if (rf & 1) {
|
660
|
-
i0.ɵɵelement(0, "AngleDownIcon", 32);
|
661
|
-
} if (rf & 2) {
|
662
|
-
i0.ɵɵproperty("styleClass", "p-megamenu-submenu-icon");
|
663
|
-
i0.ɵɵattribute("data-pc-section", "submenuicon")("aria-hidden", true);
|
664
|
-
} }
|
665
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_ng_container_1_AngleRightIcon_2_Template(rf, ctx) { if (rf & 1) {
|
666
|
-
i0.ɵɵelement(0, "AngleRightIcon", 32);
|
667
|
-
} if (rf & 2) {
|
668
|
-
i0.ɵɵproperty("styleClass", "p-megamenu-submenu-icon");
|
669
|
-
i0.ɵɵattribute("data-pc-section", "submenuicon")("aria-hidden", true);
|
670
|
-
} }
|
671
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
672
|
-
i0.ɵɵelementContainerStart(0);
|
673
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_ng_container_1_AngleDownIcon_1_Template, 1, 3, "AngleDownIcon", 31)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_ng_container_1_AngleRightIcon_2_Template, 1, 3, "AngleRightIcon", 31);
|
674
|
-
i0.ɵɵelementContainerEnd();
|
675
|
-
} if (rf & 2) {
|
676
|
-
const ctx_r1 = i0.ɵɵnextContext(7);
|
677
|
-
i0.ɵɵadvance();
|
678
|
-
i0.ɵɵproperty("ngIf", ctx_r1.orientation === "horizontal");
|
679
|
-
i0.ɵɵadvance();
|
680
|
-
i0.ɵɵproperty("ngIf", ctx_r1.orientation === "vertical");
|
681
|
-
} }
|
682
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template(rf, ctx) { }
|
683
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_2_Template(rf, ctx) { if (rf & 1) {
|
684
|
-
i0.ɵɵtemplate(0, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_2_ng_template_0_Template, 0, 0, "ng-template", 29);
|
685
|
-
} if (rf & 2) {
|
686
|
-
i0.ɵɵproperty("data-pc-section", "submenuicon")("aria-hidden", true);
|
687
|
-
} }
|
688
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
689
|
-
i0.ɵɵelementContainerStart(0);
|
690
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_ng_container_1_Template, 3, 2, "ng-container", 14)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_2_Template, 1, 2, null, 26);
|
691
|
-
i0.ɵɵelementContainerEnd();
|
692
|
-
} if (rf & 2) {
|
693
|
-
const ctx_r1 = i0.ɵɵnextContext(6);
|
694
|
-
i0.ɵɵadvance();
|
695
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.megaMenu.submenuIconTemplate && !ctx_r1.megaMenu._submenuIconTemplate);
|
696
|
-
i0.ɵɵadvance();
|
697
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.megaMenu.submenuIconTemplate || ctx_r1.megaMenu._submenuIconTemplate);
|
698
|
-
} }
|
699
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_Template(rf, ctx) { if (rf & 1) {
|
700
|
-
i0.ɵɵelementStart(0, "a", 30);
|
701
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_span_1_Template, 1, 5, "span", 19)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_span_2_Template, 2, 1, "span", 20)(3, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_template_3_Template, 1, 2, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(5, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_p_badge_5_Template, 1, 2, "p-badge", 21)(6, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_ng_container_6_Template, 3, 2, "ng-container", 14);
|
702
|
-
i0.ɵɵelementEnd();
|
703
|
-
} if (rf & 2) {
|
704
|
-
const htmlRouteLabel_r6 = i0.ɵɵreference(4);
|
705
|
-
const processedItem_r3 = i0.ɵɵnextContext(3).$implicit;
|
706
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
707
|
-
i0.ɵɵproperty("routerLink", ctx_r1.getItemProp(processedItem_r3, "routerLink"))("queryParams", ctx_r1.getItemProp(processedItem_r3, "queryParams"))("routerLinkActive", "p-megamenu-item-link-active")("routerLinkActiveOptions", ctx_r1.getItemProp(processedItem_r3, "routerLinkActiveOptions") || i0.ɵɵpureFunction0(21, _c4))("target", ctx_r1.getItemProp(processedItem_r3, "target"))("ngClass", i0.ɵɵpureFunction1(22, _c3, ctx_r1.getItemProp(processedItem_r3, "disabled")))("fragment", ctx_r1.getItemProp(processedItem_r3, "fragment"))("queryParamsHandling", ctx_r1.getItemProp(processedItem_r3, "queryParamsHandling"))("preserveFragment", ctx_r1.getItemProp(processedItem_r3, "preserveFragment"))("skipLocationChange", ctx_r1.getItemProp(processedItem_r3, "skipLocationChange"))("replaceUrl", ctx_r1.getItemProp(processedItem_r3, "replaceUrl"))("state", ctx_r1.getItemProp(processedItem_r3, "state"));
|
708
|
-
i0.ɵɵattribute("data-automationid", ctx_r1.getItemProp(processedItem_r3, "automationId"))("tabindex", -1)("aria-hidden", true)("data-pc-section", "action");
|
709
|
-
i0.ɵɵadvance();
|
710
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "icon"));
|
711
|
-
i0.ɵɵadvance();
|
712
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "escape"))("ngIfElse", htmlRouteLabel_r6);
|
713
|
-
i0.ɵɵadvance(3);
|
714
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "badge"));
|
715
|
-
i0.ɵɵadvance();
|
716
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isItemGroup(processedItem_r3));
|
717
|
-
} }
|
718
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
719
|
-
i0.ɵɵelementContainerStart(0);
|
720
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_1_Template, 7, 13, "a", 16)(2, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_a_2_Template, 7, 24, "a", 17);
|
721
|
-
i0.ɵɵelementContainerEnd();
|
722
|
-
} if (rf & 2) {
|
723
|
-
const processedItem_r3 = i0.ɵɵnextContext(2).$implicit;
|
724
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
725
|
-
i0.ɵɵadvance();
|
726
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.getItemProp(processedItem_r3, "routerLink"));
|
727
|
-
i0.ɵɵadvance();
|
728
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getItemProp(processedItem_r3, "routerLink"));
|
729
|
-
} }
|
730
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_4_1_ng_template_0_Template(rf, ctx) { }
|
731
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_4_1_Template(rf, ctx) { if (rf & 1) {
|
732
|
-
i0.ɵɵtemplate(0, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_4_1_ng_template_0_Template, 0, 0, "ng-template");
|
733
|
-
} }
|
734
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
735
|
-
i0.ɵɵelementContainerStart(0);
|
736
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_4_1_Template, 1, 0, null, 33);
|
737
|
-
i0.ɵɵelementContainerEnd();
|
738
|
-
} if (rf & 2) {
|
739
|
-
const processedItem_r3 = i0.ɵɵnextContext(2).$implicit;
|
740
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
741
|
-
i0.ɵɵadvance();
|
742
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5, processedItem_r3.item));
|
743
|
-
} }
|
744
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_div_5_div_2_p_megamenu_sub_1_Template(rf, ctx) { if (rf & 1) {
|
745
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
746
|
-
i0.ɵɵelementStart(0, "p-megamenu-sub", 38);
|
747
|
-
i0.ɵɵlistener("itemClick", function MegaMenuSub_ul_0_ng_template_3_li_1_div_5_div_2_p_megamenu_sub_1_Template_p_megamenu_sub_itemClick_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.itemClick.emit($event)); })("itemMouseEnter", function MegaMenuSub_ul_0_ng_template_3_li_1_div_5_div_2_p_megamenu_sub_1_Template_p_megamenu_sub_itemMouseEnter_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.onItemMouseEnter($event)); });
|
748
|
-
i0.ɵɵelementEnd();
|
749
|
-
} if (rf & 2) {
|
750
|
-
const submenu_r8 = ctx.$implicit;
|
751
|
-
const ctx_r1 = i0.ɵɵnextContext(6);
|
752
|
-
i0.ɵɵproperty("id", ctx_r1.getSubListId(submenu_r8))("submenu", submenu_r8)("items", submenu_r8.items)("itemTemplate", ctx_r1.itemTemplate)("mobileActive", ctx_r1.mobileActive)("menuId", ctx_r1.menuId)("focusedItemId", ctx_r1.focusedItemId)("level", ctx_r1.level + 1)("root", false);
|
753
|
-
} }
|
754
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_div_5_div_2_Template(rf, ctx) { if (rf & 1) {
|
755
|
-
i0.ɵɵelementStart(0, "div", 27);
|
756
|
-
i0.ɵɵtemplate(1, MegaMenuSub_ul_0_ng_template_3_li_1_div_5_div_2_p_megamenu_sub_1_Template, 1, 9, "p-megamenu-sub", 37);
|
757
|
-
i0.ɵɵelementEnd();
|
758
|
-
} if (rf & 2) {
|
759
|
-
const col_r9 = ctx.$implicit;
|
760
|
-
const processedItem_r3 = i0.ɵɵnextContext(3).$implicit;
|
761
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
762
|
-
i0.ɵɵproperty("ngClass", ctx_r1.getColumnClass(processedItem_r3));
|
763
|
-
i0.ɵɵadvance();
|
764
|
-
i0.ɵɵproperty("ngForOf", col_r9);
|
765
|
-
} }
|
766
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
767
|
-
i0.ɵɵelementStart(0, "div", 34)(1, "div", 35);
|
768
|
-
i0.ɵɵtemplate(2, MegaMenuSub_ul_0_ng_template_3_li_1_div_5_div_2_Template, 2, 2, "div", 36);
|
769
|
-
i0.ɵɵelementEnd()();
|
770
|
-
} if (rf & 2) {
|
771
|
-
const processedItem_r3 = i0.ɵɵnextContext(2).$implicit;
|
772
|
-
i0.ɵɵattribute("data-pc-section", "panel");
|
773
|
-
i0.ɵɵadvance();
|
774
|
-
i0.ɵɵattribute("data-pc-section", "grid");
|
775
|
-
i0.ɵɵadvance();
|
776
|
-
i0.ɵɵproperty("ngForOf", processedItem_r3.items);
|
777
|
-
} }
|
778
|
-
function MegaMenuSub_ul_0_ng_template_3_li_1_Template(rf, ctx) { if (rf & 1) {
|
779
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
780
|
-
i0.ɵɵelementStart(0, "li", 12, 1)(2, "div", 13);
|
781
|
-
i0.ɵɵlistener("click", function MegaMenuSub_ul_0_ng_template_3_li_1_Template_div_click_2_listener($event) { i0.ɵɵrestoreView(_r4); const processedItem_r3 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onItemClick($event, processedItem_r3)); })("mouseenter", function MegaMenuSub_ul_0_ng_template_3_li_1_Template_div_mouseenter_2_listener($event) { i0.ɵɵrestoreView(_r4); const processedItem_r3 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onItemMouseEnter({ $event: $event, processedItem: processedItem_r3 })); });
|
782
|
-
i0.ɵɵtemplate(3, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_3_Template, 3, 2, "ng-container", 14)(4, MegaMenuSub_ul_0_ng_template_3_li_1_ng_container_4_Template, 2, 4, "ng-container", 14);
|
783
|
-
i0.ɵɵelementEnd();
|
784
|
-
i0.ɵɵtemplate(5, MegaMenuSub_ul_0_ng_template_3_li_1_div_5_Template, 3, 3, "div", 15);
|
785
|
-
i0.ɵɵelementEnd();
|
786
|
-
} if (rf & 2) {
|
787
|
-
const ctx_r9 = i0.ɵɵnextContext();
|
788
|
-
const processedItem_r3 = ctx_r9.$implicit;
|
789
|
-
const index_r11 = ctx_r9.index;
|
790
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
791
|
-
i0.ɵɵclassMap(ctx_r1.getItemProp(processedItem_r3, "styleClass"));
|
792
|
-
i0.ɵɵproperty("ngStyle", ctx_r1.getItemProp(processedItem_r3, "style"))("ngClass", ctx_r1.getItemClass(processedItem_r3))("tooltipOptions", ctx_r1.getItemProp(processedItem_r3, "tooltipOptions"));
|
793
|
-
i0.ɵɵattribute("id", ctx_r1.getItemId(processedItem_r3))("data-pc-section", "menuitem")("data-p-highlight", ctx_r1.isItemActive(processedItem_r3))("data-p-focused", ctx_r1.isItemFocused(processedItem_r3))("data-p-disabled", ctx_r1.isItemDisabled(processedItem_r3))("aria-label", ctx_r1.getItemLabel(processedItem_r3))("aria-disabled", ctx_r1.isItemDisabled(processedItem_r3) || undefined)("aria-haspopup", ctx_r1.isItemGroup(processedItem_r3) && !ctx_r1.getItemProp(processedItem_r3, "to") ? "menu" : undefined)("aria-expanded", ctx_r1.isItemGroup(processedItem_r3) ? ctx_r1.isItemActive(processedItem_r3) : undefined)("aria-level", ctx_r1.level + 1)("aria-setsize", ctx_r1.getAriaSetSize())("aria-posinset", ctx_r1.getAriaPosInset(index_r11));
|
794
|
-
i0.ɵɵadvance(2);
|
795
|
-
i0.ɵɵattribute("data-pc-section", "content");
|
796
|
-
i0.ɵɵadvance();
|
797
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.itemTemplate);
|
798
|
-
i0.ɵɵadvance();
|
799
|
-
i0.ɵɵproperty("ngIf", ctx_r1.itemTemplate);
|
800
|
-
i0.ɵɵadvance();
|
801
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isItemVisible(processedItem_r3) && ctx_r1.isItemGroup(processedItem_r3));
|
802
|
-
} }
|
803
|
-
function MegaMenuSub_ul_0_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
804
|
-
i0.ɵɵtemplate(0, MegaMenuSub_ul_0_ng_template_3_li_0_Template, 1, 5, "li", 9)(1, MegaMenuSub_ul_0_ng_template_3_li_1_Template, 6, 21, "li", 10);
|
805
|
-
} if (rf & 2) {
|
806
|
-
const processedItem_r3 = ctx.$implicit;
|
807
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
808
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isItemVisible(processedItem_r3) && ctx_r1.getItemProp(processedItem_r3, "separator"));
|
809
|
-
i0.ɵɵadvance();
|
810
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isItemVisible(processedItem_r3) && !ctx_r1.getItemProp(processedItem_r3, "separator"));
|
811
|
-
} }
|
812
|
-
function MegaMenuSub_ul_0_Template(rf, ctx) { if (rf & 1) {
|
813
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
814
|
-
i0.ɵɵelementStart(0, "ul", 5, 0);
|
815
|
-
i0.ɵɵlistener("keydown", function MegaMenuSub_ul_0_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.menuKeydown.emit($event)); })("focus", function MegaMenuSub_ul_0_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.menuFocus.emit($event)); })("blur", function MegaMenuSub_ul_0_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.menuBlur.emit($event)); });
|
816
|
-
i0.ɵɵtemplate(2, MegaMenuSub_ul_0_li_2_Template, 2, 4, "li", 6)(3, MegaMenuSub_ul_0_ng_template_3_Template, 2, 2, "ng-template", 7);
|
817
|
-
i0.ɵɵelementEnd();
|
818
|
-
} if (rf & 2) {
|
819
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
820
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(11, _c1, ctx_r1.scrollHeight));
|
821
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(13, _c2, ctx_r1.root, !ctx_r1.root))("tabindex", ctx_r1.tabindex);
|
822
|
-
i0.ɵɵattribute("role", ctx_r1.root ? "menubar" : "menu")("id", ctx_r1.id)("aria-orientation", ctx_r1.orientation)("aria-activedescendant", ctx_r1.focusedItemId)("data-pc-section", ctx_r1.root ? "root" : "submenu");
|
823
|
-
i0.ɵɵadvance(2);
|
824
|
-
i0.ɵɵproperty("ngIf", ctx_r1.submenu);
|
825
|
-
i0.ɵɵadvance();
|
826
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.items);
|
827
|
-
} }
|
828
|
-
const _c6 = ["start"];
|
829
|
-
const _c7 = ["end"];
|
830
|
-
const _c8 = ["menuicon"];
|
831
|
-
const _c9 = ["submenuicon"];
|
832
|
-
const _c10 = ["item"];
|
833
|
-
const _c11 = ["button"];
|
834
|
-
const _c12 = ["buttonicon"];
|
835
|
-
const _c13 = ["menubutton"];
|
836
|
-
const _c14 = ["rootmenu"];
|
837
|
-
const _c15 = ["container"];
|
838
|
-
const _c16 = a0 => ({ flexDirection: a0 });
|
839
|
-
const _c17 = (a0, a1, a2, a3) => ({ "p-megamenu p-component": true, "p-megamenu-mobile": a0, "p-megamenu-mobile-active": a1, "p-megamenu-horizontal": a2, "p-megamenu-vertical": a3 });
|
840
|
-
function MegaMenu_div_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
841
|
-
i0.ɵɵelementContainer(0);
|
842
|
-
} }
|
843
|
-
function MegaMenu_div_2_Template(rf, ctx) { if (rf & 1) {
|
844
|
-
i0.ɵɵelementStart(0, "div", 9);
|
845
|
-
i0.ɵɵtemplate(1, MegaMenu_div_2_ng_container_1_Template, 1, 0, "ng-container", 6);
|
846
|
-
i0.ɵɵelementEnd();
|
847
|
-
} if (rf & 2) {
|
848
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
849
|
-
i0.ɵɵadvance();
|
850
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.startTemplate || ctx_r1._startTemplate);
|
851
|
-
} }
|
852
|
-
function MegaMenu_ng_container_3_a_1_BarsIcon_2_Template(rf, ctx) { if (rf & 1) {
|
853
|
-
i0.ɵɵelement(0, "BarsIcon");
|
854
|
-
} }
|
855
|
-
function MegaMenu_ng_container_3_a_1_3_ng_template_0_Template(rf, ctx) { }
|
856
|
-
function MegaMenu_ng_container_3_a_1_3_Template(rf, ctx) { if (rf & 1) {
|
857
|
-
i0.ɵɵtemplate(0, MegaMenu_ng_container_3_a_1_3_ng_template_0_Template, 0, 0, "ng-template");
|
858
|
-
} }
|
859
|
-
function MegaMenu_ng_container_3_a_1_Template(rf, ctx) { if (rf & 1) {
|
860
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
861
|
-
i0.ɵɵelementStart(0, "a", 11, 2);
|
862
|
-
i0.ɵɵlistener("click", function MegaMenu_ng_container_3_a_1_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.menuButtonClick($event)); })("keydown", function MegaMenu_ng_container_3_a_1_Template_a_keydown_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.menuButtonKeydown($event)); });
|
863
|
-
i0.ɵɵtemplate(2, MegaMenu_ng_container_3_a_1_BarsIcon_2_Template, 1, 0, "BarsIcon", 5)(3, MegaMenu_ng_container_3_a_1_3_Template, 1, 0, null, 6);
|
864
|
-
i0.ɵɵelementEnd();
|
865
|
-
} if (rf & 2) {
|
866
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
867
|
-
i0.ɵɵattribute("aria-haspopup", ctx_r1.model.length && ctx_r1.model.length > 0 ? true : false)("aria-expanded", ctx_r1.mobileActive)("aria-controls", ctx_r1.id)("aria-label", ctx_r1.config.translation.aria.navigation);
|
868
|
-
i0.ɵɵadvance(2);
|
869
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.buttonIconTemplate && !ctx_r1._buttonIconTemplate);
|
870
|
-
i0.ɵɵadvance();
|
871
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.buttonIconTemplate || ctx_r1._buttonIconTemplate);
|
872
|
-
} }
|
873
|
-
function MegaMenu_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
874
|
-
i0.ɵɵelementContainerStart(0);
|
875
|
-
i0.ɵɵtemplate(1, MegaMenu_ng_container_3_a_1_Template, 4, 6, "a", 10);
|
876
|
-
i0.ɵɵelementContainerEnd();
|
877
|
-
} if (rf & 2) {
|
878
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
879
|
-
i0.ɵɵadvance();
|
880
|
-
i0.ɵɵproperty("ngIf", ctx_r1.model && ctx_r1.model.length > 0);
|
881
|
-
} }
|
882
|
-
function MegaMenu_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
883
|
-
i0.ɵɵelementContainer(0);
|
884
|
-
} }
|
885
|
-
function MegaMenu_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
886
|
-
i0.ɵɵelementContainer(0);
|
887
|
-
} }
|
888
|
-
function MegaMenu_div_7_Template(rf, ctx) { if (rf & 1) {
|
889
|
-
i0.ɵɵelementStart(0, "div", 12);
|
890
|
-
i0.ɵɵtemplate(1, MegaMenu_div_7_ng_container_1_Template, 1, 0, "ng-container", 6);
|
891
|
-
i0.ɵɵelementEnd();
|
892
|
-
} if (rf & 2) {
|
893
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
894
|
-
i0.ɵɵadvance();
|
895
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.endTemplate || ctx_r1._endTemplate);
|
896
|
-
} }
|
897
503
|
class MegaMenuSub extends BaseComponent {
|
898
504
|
id;
|
899
505
|
items;
|
@@ -1016,25 +622,174 @@ class MegaMenuSub extends BaseComponent {
|
|
1016
622
|
const { event, processedItem } = param;
|
1017
623
|
this.itemMouseEnter.emit({ originalEvent: event, processedItem });
|
1018
624
|
}
|
1019
|
-
static ɵfac =
|
1020
|
-
static ɵcmp =
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
625
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuSub, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
626
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: MegaMenuSub, isStandalone: true, selector: "p-megaMenuSub, p-megamenu-sub", inputs: { id: "id", items: "items", itemTemplate: "itemTemplate", menuId: "menuId", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", level: ["level", "level", numberAttribute], focusedItemId: "focusedItemId", disabled: ["disabled", "disabled", booleanAttribute], orientation: "orientation", activeItem: "activeItem", submenu: "submenu", queryMatches: ["queryMatches", "queryMatches", booleanAttribute], mobileActive: ["mobileActive", "mobileActive", booleanAttribute], scrollHeight: "scrollHeight", tabindex: ["tabindex", "tabindex", numberAttribute], root: ["root", "root", booleanAttribute] }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, viewQueries: [{ propertyName: "menubarViewChild", first: true, predicate: ["menubar"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
627
|
+
<ul
|
628
|
+
*ngIf="isSubmenuVisible(submenu)"
|
629
|
+
#menubar
|
630
|
+
[ngClass]="{ 'p-megamenu-root-list': root, 'p-megamenu-submenu': !root }"
|
631
|
+
[style]="{ 'max-height': scrollHeight, overflow: 'auto' }"
|
632
|
+
[attr.role]="root ? 'menubar' : 'menu'"
|
633
|
+
[attr.id]="id"
|
634
|
+
[attr.aria-orientation]="orientation"
|
635
|
+
[tabindex]="tabindex"
|
636
|
+
[attr.aria-activedescendant]="focusedItemId"
|
637
|
+
[attr.data-pc-section]="root ? 'root' : 'submenu'"
|
638
|
+
(keydown)="menuKeydown.emit($event)"
|
639
|
+
(focus)="menuFocus.emit($event)"
|
640
|
+
(blur)="menuBlur.emit($event)"
|
641
|
+
>
|
642
|
+
<li *ngIf="submenu" [ngClass]="getSubmenuHeaderClass(submenu)" [style]="getItemProp(submenu, 'style')" role="presentation">
|
643
|
+
{{ getItemLabel(submenu) }}
|
644
|
+
</li>
|
645
|
+
<ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
|
646
|
+
<li
|
647
|
+
*ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
|
648
|
+
[attr.id]="getItemId(processedItem)"
|
649
|
+
[style]="getItemProp(processedItem, 'style')"
|
650
|
+
[ngClass]="getSeparatorItemClass(processedItem)"
|
651
|
+
role="separator"
|
652
|
+
[attr.data-pc-section]="'separator'"
|
653
|
+
></li>
|
654
|
+
<li
|
655
|
+
#listItem
|
656
|
+
*ngIf="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
|
657
|
+
role="menuitem"
|
658
|
+
[attr.id]="getItemId(processedItem)"
|
659
|
+
[attr.data-pc-section]="'menuitem'"
|
660
|
+
[attr.data-p-highlight]="isItemActive(processedItem)"
|
661
|
+
[attr.data-p-focused]="isItemFocused(processedItem)"
|
662
|
+
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
663
|
+
[attr.aria-label]="getItemLabel(processedItem)"
|
664
|
+
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
665
|
+
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
666
|
+
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
667
|
+
[attr.aria-level]="level + 1"
|
668
|
+
[attr.aria-setsize]="getAriaSetSize()"
|
669
|
+
[attr.aria-posinset]="getAriaPosInset(index)"
|
670
|
+
[ngStyle]="getItemProp(processedItem, 'style')"
|
671
|
+
[ngClass]="getItemClass(processedItem)"
|
672
|
+
[class]="getItemProp(processedItem, 'styleClass')"
|
673
|
+
pTooltip
|
674
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
675
|
+
>
|
676
|
+
<div class="p-megamenu-item-content" [attr.data-pc-section]="'content'" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
|
677
|
+
<ng-container *ngIf="!itemTemplate">
|
678
|
+
<a
|
679
|
+
*ngIf="!getItemProp(processedItem, 'routerLink')"
|
680
|
+
[attr.href]="getItemProp(processedItem, 'url')"
|
681
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
682
|
+
[attr.data-pc-section]="'action'"
|
683
|
+
[target]="getItemProp(processedItem, 'target')"
|
684
|
+
[ngClass]="{ 'p-megamenu-item-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
685
|
+
[attr.tabindex]="-1"
|
686
|
+
pRipple
|
687
|
+
>
|
688
|
+
<span
|
689
|
+
*ngIf="getItemProp(processedItem, 'icon')"
|
690
|
+
class="p-megamenu-item-icon"
|
691
|
+
[ngClass]="getItemProp(processedItem, 'icon')"
|
692
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
693
|
+
[attr.data-pc-section]="'icon'"
|
694
|
+
[attr.tabindex]="-1"
|
695
|
+
>
|
696
|
+
</span>
|
697
|
+
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-megamenu-item-label" [attr.data-pc-section]="'label'">
|
698
|
+
{{ getItemLabel(processedItem) }}
|
699
|
+
</span>
|
700
|
+
<ng-template #htmlLabel>
|
701
|
+
<span class="p-megamenu-item-label" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
702
|
+
</ng-template>
|
703
|
+
<p-badge *ngIf="getItemProp(processedItem, 'badge')" [styleClass]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" />
|
704
|
+
<ng-container *ngIf="isItemGroup(processedItem)">
|
705
|
+
<ng-container *ngIf="!megaMenu.submenuIconTemplate && !megaMenu._submenuIconTemplate">
|
706
|
+
@if (orientation === 'horizontal' || mobileActive) {
|
707
|
+
<AngleDownIcon [ngClass]="'p-megamenu-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
708
|
+
} @else {
|
709
|
+
<AngleRightIcon [ngClass]="'p-megamenu-submenu-icon'" [attr.data-pc-section]="'submenuicon'" *ngIf="orientation === 'vertical'" [attr.aria-hidden]="true" />
|
710
|
+
}
|
711
|
+
</ng-container>
|
712
|
+
<ng-template *ngTemplateOutlet="megaMenu.submenuIconTemplate || megaMenu._submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
|
713
|
+
</ng-container>
|
714
|
+
</a>
|
715
|
+
<a
|
716
|
+
*ngIf="getItemProp(processedItem, 'routerLink')"
|
717
|
+
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
718
|
+
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
719
|
+
[attr.tabindex]="-1"
|
720
|
+
[attr.aria-hidden]="true"
|
721
|
+
[attr.data-pc-section]="'action'"
|
722
|
+
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
723
|
+
[routerLinkActive]="'p-megamenu-item-link-active'"
|
724
|
+
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
725
|
+
[target]="getItemProp(processedItem, 'target')"
|
726
|
+
[ngClass]="{ 'p-megamenu-item-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
727
|
+
[fragment]="getItemProp(processedItem, 'fragment')"
|
728
|
+
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
729
|
+
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
730
|
+
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
731
|
+
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
732
|
+
[state]="getItemProp(processedItem, 'state')"
|
733
|
+
pRipple
|
734
|
+
>
|
735
|
+
<span
|
736
|
+
class="p-megamenu-item-icon"
|
737
|
+
*ngIf="getItemProp(processedItem, 'icon')"
|
738
|
+
[ngClass]="getItemProp(processedItem, 'icon')"
|
739
|
+
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
740
|
+
[attr.data-pc-section]="'icon'"
|
741
|
+
[attr.aria-hidden]="true"
|
742
|
+
[attr.tabindex]="-1"
|
743
|
+
></span>
|
744
|
+
<span class="p-megamenu-item-label" *ngIf="getItemProp(processedItem, 'escape'); else htmlRouteLabel">{{ getItemLabel(processedItem) }}</span>
|
745
|
+
<ng-template #htmlRouteLabel><span class="p-megamenu-item-label" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span></ng-template>
|
746
|
+
<p-badge *ngIf="getItemProp(processedItem, 'badge')" [styleClass]="getItemProp(processedItem, 'badgeStyleClass')" [value]="getItemProp(processedItem, 'badge')" />
|
747
|
+
<ng-container *ngIf="isItemGroup(processedItem)">
|
748
|
+
<ng-container *ngIf="!megaMenu.submenuIconTemplate && !megaMenu._submenuIconTemplate">
|
749
|
+
<AngleDownIcon [styleClass]="'p-megamenu-submenu-icon'" [attr.data-pc-section]="'submenuicon'" *ngIf="orientation === 'horizontal'" [attr.aria-hidden]="true" />
|
750
|
+
<AngleRightIcon [styleClass]="'p-megamenu-submenu-icon'" [attr.data-pc-section]="'submenuicon'" *ngIf="orientation === 'vertical'" [attr.aria-hidden]="true" />
|
751
|
+
</ng-container>
|
752
|
+
<ng-template *ngTemplateOutlet="megaMenu.submenuIconTemplate || megaMenu._submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
|
753
|
+
</ng-container>
|
754
|
+
</a>
|
755
|
+
</ng-container>
|
756
|
+
<ng-container *ngIf="itemTemplate">
|
757
|
+
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item }"></ng-template>
|
758
|
+
</ng-container>
|
759
|
+
</div>
|
760
|
+
<div *ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)" class="p-megamenu-overlay" [attr.data-pc-section]="'panel'">
|
761
|
+
<div class="p-megamenu-grid" [attr.data-pc-section]="'grid'">
|
762
|
+
<div *ngFor="let col of processedItem.items" [ngClass]="getColumnClass(processedItem)">
|
763
|
+
<p-megamenu-sub
|
764
|
+
*ngFor="let submenu of col"
|
765
|
+
[id]="getSubListId(submenu)"
|
766
|
+
[submenu]="submenu"
|
767
|
+
[items]="submenu.items"
|
768
|
+
[itemTemplate]="itemTemplate"
|
769
|
+
[mobileActive]="mobileActive"
|
770
|
+
[menuId]="menuId"
|
771
|
+
[focusedItemId]="focusedItemId"
|
772
|
+
[level]="level + 1"
|
773
|
+
[root]="false"
|
774
|
+
(itemClick)="itemClick.emit($event)"
|
775
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
776
|
+
>
|
777
|
+
</p-megamenu-sub>
|
778
|
+
</div>
|
779
|
+
</div>
|
780
|
+
</div>
|
781
|
+
</li>
|
782
|
+
</ng-template>
|
783
|
+
</ul>
|
784
|
+
`, isInline: true, dependencies: [{ kind: "component", type: MegaMenuSub, selector: "p-megaMenuSub, p-megamenu-sub", inputs: ["id", "items", "itemTemplate", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "disabled", "orientation", "activeItem", "submenu", "queryMatches", "mobileActive", "scrollHeight", "tabindex", "root"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: AngleDownIcon, selector: "AngleDownIcon" }, { kind: "component", type: AngleRightIcon, selector: "AngleRightIcon" }, { kind: "ngmodule", type: BadgeModule }, { kind: "component", type: i4.Badge, selector: "p-badge", inputs: ["styleClass", "style", "badgeSize", "size", "severity", "value", "badgeDisabled"] }, { kind: "ngmodule", type: SharedModule }], encapsulation: i0.ViewEncapsulation.None });
|
1030
785
|
}
|
1031
|
-
(
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuSub, decorators: [{
|
787
|
+
type: Component,
|
788
|
+
args: [{
|
789
|
+
selector: 'p-megaMenuSub, p-megamenu-sub',
|
790
|
+
standalone: true,
|
791
|
+
imports: [CommonModule, RouterModule, Ripple, TooltipModule, AngleDownIcon, AngleRightIcon, BadgeModule, SharedModule],
|
792
|
+
template: `
|
1038
793
|
<ul
|
1039
794
|
*ngIf="isSubmenuVisible(submenu)"
|
1040
795
|
#menubar
|
@@ -1193,63 +948,62 @@ class MegaMenuSub extends BaseComponent {
|
|
1193
948
|
</ng-template>
|
1194
949
|
</ul>
|
1195
950
|
`,
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MegaMenuSub, { className: "MegaMenuSub", filePath: "megamenu.ts", lineNumber: 203 }); })();
|
951
|
+
encapsulation: ViewEncapsulation.None
|
952
|
+
}]
|
953
|
+
}], propDecorators: { id: [{
|
954
|
+
type: Input
|
955
|
+
}], items: [{
|
956
|
+
type: Input
|
957
|
+
}], itemTemplate: [{
|
958
|
+
type: Input
|
959
|
+
}], menuId: [{
|
960
|
+
type: Input
|
961
|
+
}], ariaLabel: [{
|
962
|
+
type: Input
|
963
|
+
}], ariaLabelledBy: [{
|
964
|
+
type: Input
|
965
|
+
}], level: [{
|
966
|
+
type: Input,
|
967
|
+
args: [{ transform: numberAttribute }]
|
968
|
+
}], focusedItemId: [{
|
969
|
+
type: Input
|
970
|
+
}], disabled: [{
|
971
|
+
type: Input,
|
972
|
+
args: [{ transform: booleanAttribute }]
|
973
|
+
}], orientation: [{
|
974
|
+
type: Input
|
975
|
+
}], activeItem: [{
|
976
|
+
type: Input
|
977
|
+
}], submenu: [{
|
978
|
+
type: Input
|
979
|
+
}], queryMatches: [{
|
980
|
+
type: Input,
|
981
|
+
args: [{ transform: booleanAttribute }]
|
982
|
+
}], mobileActive: [{
|
983
|
+
type: Input,
|
984
|
+
args: [{ transform: booleanAttribute }]
|
985
|
+
}], scrollHeight: [{
|
986
|
+
type: Input
|
987
|
+
}], tabindex: [{
|
988
|
+
type: Input,
|
989
|
+
args: [{ transform: numberAttribute }]
|
990
|
+
}], root: [{
|
991
|
+
type: Input,
|
992
|
+
args: [{ transform: booleanAttribute }]
|
993
|
+
}], itemClick: [{
|
994
|
+
type: Output
|
995
|
+
}], itemMouseEnter: [{
|
996
|
+
type: Output
|
997
|
+
}], menuFocus: [{
|
998
|
+
type: Output
|
999
|
+
}], menuBlur: [{
|
1000
|
+
type: Output
|
1001
|
+
}], menuKeydown: [{
|
1002
|
+
type: Output
|
1003
|
+
}], menubarViewChild: [{
|
1004
|
+
type: ViewChild,
|
1005
|
+
args: ['menubar', { static: true }]
|
1006
|
+
}] } });
|
1253
1007
|
/**
|
1254
1008
|
* MegaMenu is navigation component that displays submenus together.
|
1255
1009
|
* @group Components
|
@@ -1929,69 +1683,83 @@ class MegaMenu extends BaseComponent {
|
|
1929
1683
|
this.unbindMatchMediaListener();
|
1930
1684
|
super.ngOnDestroy();
|
1931
1685
|
}
|
1932
|
-
static ɵfac =
|
1933
|
-
static ɵcmp =
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1686
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
1687
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: MegaMenu, isStandalone: true, selector: "p-megaMenu, p-megamenu, p-mega-menu", inputs: { model: "model", style: "style", styleClass: "styleClass", orientation: "orientation", id: "id", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", breakpoint: "breakpoint", scrollHeight: "scrollHeight", disabled: ["disabled", "disabled", booleanAttribute], tabindex: ["tabindex", "tabindex", numberAttribute] }, providers: [MegaMenuStyle], queries: [{ propertyName: "startTemplate", first: true, predicate: ["start"] }, { propertyName: "endTemplate", first: true, predicate: ["end"] }, { propertyName: "menuIconTemplate", first: true, predicate: ["menuicon"] }, { propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"] }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "buttonTemplate", first: true, predicate: ["button"] }, { propertyName: "buttonIconTemplate", first: true, predicate: ["buttonicon"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "menubuttonViewChild", first: true, predicate: ["menubutton"], descendants: true }, { propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
1688
|
+
<div
|
1689
|
+
[ngClass]="{
|
1690
|
+
'p-megamenu p-component': true,
|
1691
|
+
'p-megamenu-mobile': queryMatches,
|
1692
|
+
'p-megamenu-mobile-active': mobileActive,
|
1693
|
+
'p-megamenu-horizontal': orientation == 'horizontal',
|
1694
|
+
'p-megamenu-vertical': orientation == 'vertical'
|
1695
|
+
}"
|
1696
|
+
[class]="styleClass"
|
1697
|
+
[style]="{ flexDirection: orientation == 'vertical' && queryMatches ? 'row' : '' }"
|
1698
|
+
[ngStyle]="style"
|
1699
|
+
[attr.data-pc-section]="'root'"
|
1700
|
+
[attr.data-pc-name]="'megamenu'"
|
1701
|
+
[attr.id]="id"
|
1702
|
+
#container
|
1703
|
+
>
|
1704
|
+
<div class="p-megamenu-start" *ngIf="startTemplate || _startTemplate">
|
1705
|
+
<ng-container *ngTemplateOutlet="startTemplate || _startTemplate"></ng-container>
|
1706
|
+
</div>
|
1707
|
+
<ng-container *ngIf="!buttonTemplate && !_buttonTemplate">
|
1708
|
+
<a
|
1709
|
+
*ngIf="model && model.length > 0"
|
1710
|
+
#menubutton
|
1711
|
+
role="button"
|
1712
|
+
tabindex="0"
|
1713
|
+
class="p-megamenu-button"
|
1714
|
+
[attr.aria-haspopup]="model.length && model.length > 0 ? true : false"
|
1715
|
+
[attr.aria-expanded]="mobileActive"
|
1716
|
+
[attr.aria-controls]="id"
|
1717
|
+
[attr.aria-label]="config.translation.aria.navigation"
|
1718
|
+
(click)="menuButtonClick($event)"
|
1719
|
+
(keydown)="menuButtonKeydown($event)"
|
1720
|
+
>
|
1721
|
+
<BarsIcon *ngIf="!buttonIconTemplate && !_buttonIconTemplate" />
|
1722
|
+
<ng-template *ngTemplateOutlet="buttonIconTemplate || _buttonIconTemplate"></ng-template>
|
1723
|
+
</a>
|
1724
|
+
</ng-container>
|
1725
|
+
<ng-container *ngTemplateOutlet="buttonTemplate || _buttonTemplate"></ng-container>
|
1726
|
+
<p-megamenu-sub
|
1727
|
+
#rootmenu
|
1728
|
+
[itemTemplate]="itemTemplate || _itemTemplate"
|
1729
|
+
[items]="processedItems"
|
1730
|
+
[attr.id]="id + '_list'"
|
1731
|
+
[menuId]="id"
|
1732
|
+
[root]="true"
|
1733
|
+
[orientation]="orientation"
|
1734
|
+
[ariaLabel]="ariaLabel"
|
1735
|
+
[disabled]="disabled"
|
1736
|
+
[tabindex]="!disabled ? tabindex : -1"
|
1737
|
+
[activeItem]="activeItem()"
|
1738
|
+
[level]="0"
|
1739
|
+
[ariaLabelledBy]="ariaLabelledBy"
|
1740
|
+
[focusedItemId]="focused ? focusedItemId : undefined"
|
1741
|
+
[mobileActive]="mobileActive"
|
1742
|
+
(itemClick)="onItemClick($event)"
|
1743
|
+
(menuFocus)="onMenuFocus($event)"
|
1744
|
+
(menuBlur)="onMenuBlur($event)"
|
1745
|
+
(menuKeydown)="onKeyDown($event)"
|
1746
|
+
(itemMouseEnter)="onItemMouseEnter($event)"
|
1747
|
+
[queryMatches]="queryMatches"
|
1748
|
+
[scrollHeight]="scrollHeight"
|
1749
|
+
></p-megamenu-sub>
|
1750
|
+
<div class="p-megamenu-end" *ngIf="endTemplate || _endTemplate">
|
1751
|
+
<ng-container *ngTemplateOutlet="endTemplate || _endTemplate"></ng-container>
|
1752
|
+
</div>
|
1753
|
+
</div>
|
1754
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "component", type: MegaMenuSub, selector: "p-megaMenuSub, p-megamenu-sub", inputs: ["id", "items", "itemTemplate", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "disabled", "orientation", "activeItem", "submenu", "queryMatches", "mobileActive", "scrollHeight", "tabindex", "root"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "component", type: BarsIcon, selector: "BarsIcon" }, { kind: "ngmodule", type: BadgeModule }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1987
1755
|
}
|
1988
|
-
(
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenu, decorators: [{
|
1757
|
+
type: Component,
|
1758
|
+
args: [{
|
1759
|
+
selector: 'p-megaMenu, p-megamenu, p-mega-menu',
|
1760
|
+
standalone: true,
|
1761
|
+
imports: [CommonModule, RouterModule, MegaMenuSub, TooltipModule, BarsIcon, BadgeModule, SharedModule],
|
1762
|
+
template: `
|
1995
1763
|
<div
|
1996
1764
|
[ngClass]="{
|
1997
1765
|
'p-megamenu p-component': true,
|
@@ -2059,82 +1827,80 @@ class MegaMenu extends BaseComponent {
|
|
2059
1827
|
</div>
|
2060
1828
|
</div>
|
2061
1829
|
`,
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
2102
|
-
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
2122
|
-
|
2123
|
-
|
2124
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MegaMenu, { className: "MegaMenu", filePath: "megamenu.ts", lineNumber: 452 }); })();
|
1830
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1831
|
+
encapsulation: ViewEncapsulation.None,
|
1832
|
+
providers: [MegaMenuStyle]
|
1833
|
+
}]
|
1834
|
+
}], ctorParameters: () => [], propDecorators: { model: [{
|
1835
|
+
type: Input
|
1836
|
+
}], style: [{
|
1837
|
+
type: Input
|
1838
|
+
}], styleClass: [{
|
1839
|
+
type: Input
|
1840
|
+
}], orientation: [{
|
1841
|
+
type: Input
|
1842
|
+
}], id: [{
|
1843
|
+
type: Input
|
1844
|
+
}], ariaLabel: [{
|
1845
|
+
type: Input
|
1846
|
+
}], ariaLabelledBy: [{
|
1847
|
+
type: Input
|
1848
|
+
}], breakpoint: [{
|
1849
|
+
type: Input
|
1850
|
+
}], scrollHeight: [{
|
1851
|
+
type: Input
|
1852
|
+
}], disabled: [{
|
1853
|
+
type: Input,
|
1854
|
+
args: [{ transform: booleanAttribute }]
|
1855
|
+
}], tabindex: [{
|
1856
|
+
type: Input,
|
1857
|
+
args: [{ transform: numberAttribute }]
|
1858
|
+
}], startTemplate: [{
|
1859
|
+
type: ContentChild,
|
1860
|
+
args: ['start', { descendants: false }]
|
1861
|
+
}], endTemplate: [{
|
1862
|
+
type: ContentChild,
|
1863
|
+
args: ['end', { descendants: false }]
|
1864
|
+
}], menuIconTemplate: [{
|
1865
|
+
type: ContentChild,
|
1866
|
+
args: ['menuicon', { descendants: false }]
|
1867
|
+
}], submenuIconTemplate: [{
|
1868
|
+
type: ContentChild,
|
1869
|
+
args: ['submenuicon', { descendants: false }]
|
1870
|
+
}], itemTemplate: [{
|
1871
|
+
type: ContentChild,
|
1872
|
+
args: ['item', { descendants: false }]
|
1873
|
+
}], buttonTemplate: [{
|
1874
|
+
type: ContentChild,
|
1875
|
+
args: ['button', { descendants: false }]
|
1876
|
+
}], buttonIconTemplate: [{
|
1877
|
+
type: ContentChild,
|
1878
|
+
args: ['buttonicon', { descendants: false }]
|
1879
|
+
}], templates: [{
|
1880
|
+
type: ContentChildren,
|
1881
|
+
args: [PrimeTemplate]
|
1882
|
+
}], menubuttonViewChild: [{
|
1883
|
+
type: ViewChild,
|
1884
|
+
args: ['menubutton']
|
1885
|
+
}], rootmenu: [{
|
1886
|
+
type: ViewChild,
|
1887
|
+
args: ['rootmenu']
|
1888
|
+
}], container: [{
|
1889
|
+
type: ViewChild,
|
1890
|
+
args: ['container']
|
1891
|
+
}] } });
|
2125
1892
|
class MegaMenuModule {
|
2126
|
-
static ɵfac =
|
2127
|
-
static ɵmod =
|
2128
|
-
static ɵinj =
|
1893
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1894
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuModule, imports: [MegaMenu, SharedModule], exports: [MegaMenu, SharedModule] });
|
1895
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuModule, imports: [MegaMenu, SharedModule, SharedModule] });
|
2129
1896
|
}
|
2130
|
-
(
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MegaMenuModule, { imports: [MegaMenu, SharedModule], exports: [MegaMenu, SharedModule] }); })();
|
1897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MegaMenuModule, decorators: [{
|
1898
|
+
type: NgModule,
|
1899
|
+
args: [{
|
1900
|
+
imports: [MegaMenu, SharedModule],
|
1901
|
+
exports: [MegaMenu, SharedModule]
|
1902
|
+
}]
|
1903
|
+
}] });
|
2138
1904
|
|
2139
1905
|
/**
|
2140
1906
|
* Generated bundle index. Do not edit.
|