primevue 2.5.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.common.js +1 -1
- package/accordion/accordion.umd.js +1 -1
- package/accordiontab/accordiontab.common.js +28 -1
- package/accordiontab/accordiontab.umd.js +28 -1
- package/accordiontab/accordiontab.umd.min.js +1 -1
- package/api/Api.d.ts +296 -0
- package/api/Api.js +47 -0
- package/api/FilterMatchMode.js +26 -0
- package/api/FilterOperator.js +12 -0
- package/api/FilterService.js +260 -0
- package/api/PrimeIcons.js +246 -0
- package/api/ToastSeverity.js +14 -0
- package/api/api.common.js +4889 -0
- package/api/api.umd.js +4899 -0
- package/api/api.umd.min.js +1 -0
- package/api/demo.html +8 -0
- package/api/filtermatchmode.common.js +186 -0
- package/api/filtermatchmode.umd.js +196 -0
- package/api/filtermatchmode.umd.min.js +1 -0
- package/api/filteroperator.common.js +172 -0
- package/api/filteroperator.umd.js +182 -0
- package/api/filteroperator.umd.min.js +1 -0
- package/{utils/filterutils.common.js → api/filterservice.common.js} +207 -110
- package/{utils/filterutils.umd.js → api/filterservice.umd.js} +209 -112
- package/api/filterservice.umd.min.js +1 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +2 -0
- package/api/primeicons.common.js +406 -0
- package/api/primeicons.umd.js +416 -0
- package/api/primeicons.umd.min.js +1 -0
- package/{confirmationservice/confirmationeventbus.common.js → api/toastseverity.common.js} +9 -9
- package/{confirmationservice/confirmationeventbus.umd.js → api/toastseverity.umd.js} +11 -11
- package/api/toastseverity.umd.min.js +1 -0
- package/autocomplete/AutoComplete.d.ts +1 -0
- package/autocomplete/AutoComplete.vue +8 -0
- package/autocomplete/autocomplete.common.js +61 -24
- package/autocomplete/autocomplete.umd.js +61 -24
- package/autocomplete/autocomplete.umd.min.js +1 -1
- package/avatar/avatar.common.js +1 -1
- package/avatar/avatar.umd.js +1 -1
- package/avatargroup/avatargroup.common.js +1 -1
- package/avatargroup/avatargroup.umd.js +1 -1
- package/badge/badge.common.js +1 -1
- package/badge/badge.umd.js +1 -1
- package/badgedirective/badgedirective.common.js +27 -0
- package/badgedirective/badgedirective.umd.js +27 -0
- package/badgedirective/badgedirective.umd.min.js +1 -1
- package/blockui/BlockUI.vue +6 -16
- package/blockui/blockui.common.js +38 -16
- package/blockui/blockui.umd.js +38 -16
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -0
- package/breadcrumb/Breadcrumb.vue +6 -2
- package/breadcrumb/BreadcrumbItem.vue +30 -11
- package/breadcrumb/breadcrumb.common.js +44 -16
- package/breadcrumb/breadcrumb.umd.js +44 -16
- package/breadcrumb/breadcrumb.umd.min.js +1 -1
- package/breadcrumb/breadcrumbitem.common.js +34 -10
- package/breadcrumb/breadcrumbitem.umd.js +34 -10
- package/breadcrumb/breadcrumbitem.umd.min.js +1 -1
- package/button/button.common.js +28 -1
- package/button/button.umd.js +28 -1
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.d.ts +5 -0
- package/calendar/Calendar.vue +339 -70
- package/calendar/calendar.common.js +400 -73
- package/calendar/calendar.umd.js +400 -73
- package/calendar/calendar.umd.min.js +1 -1
- package/card/card.common.js +1 -1
- package/card/card.umd.js +1 -1
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.common.js +30 -3
- package/carousel/carousel.umd.js +30 -3
- package/carousel/carousel.umd.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +6 -4
- package/cascadeselect/CascadeSelect.vue +3 -1
- package/cascadeselect/cascadeselect.common.js +53 -21
- package/cascadeselect/cascadeselect.umd.js +53 -21
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +48 -18
- package/cascadeselect/cascadeselectsub.umd.js +48 -18
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/chart/Chart.vue +27 -11
- package/chart/chart.common.js +30 -12
- package/chart/chart.umd.js +30 -12
- package/chart/chart.umd.min.js +1 -1
- package/checkbox/Checkbox.css +1 -0
- package/checkbox/Checkbox.d.ts +2 -0
- package/checkbox/Checkbox.vue +11 -3
- package/checkbox/checkbox.common.js +38 -22
- package/checkbox/checkbox.umd.js +38 -22
- package/checkbox/checkbox.umd.min.js +1 -1
- package/chip/chip.common.js +1 -1
- package/chip/chip.umd.js +1 -1
- package/chips/chips.common.js +1 -1
- package/chips/chips.umd.js +1 -1
- package/colorpicker/colorpicker.common.js +28 -1
- package/colorpicker/colorpicker.umd.js +28 -1
- package/colorpicker/colorpicker.umd.min.js +1 -1
- package/column/Column.vue +72 -12
- package/column/column.common.js +71 -11
- package/column/column.umd.js +71 -11
- package/column/column.umd.min.js +1 -1
- package/columngroup/columngroup.common.js +1 -1
- package/columngroup/columngroup.umd.js +1 -1
- package/common/Common.css +13 -4
- package/config/PrimeVue.d.ts +24 -2
- package/config/PrimeVue.js +34 -4
- package/config/primevue.common.js +3584 -133
- package/config/primevue.umd.js +3584 -133
- package/config/primevue.umd.min.js +1 -1
- package/{confirmationservice → confirmationeventbus}/ConfirmationEventBus.js +3 -3
- package/confirmationeventbus/confirmationeventbus.common.js +1773 -0
- package/confirmationeventbus/confirmationeventbus.umd.js +1783 -0
- package/confirmationeventbus/confirmationeventbus.umd.min.js +1 -0
- package/confirmationeventbus/demo.html +8 -0
- package/confirmationeventbus/index.d.ts +1 -0
- package/confirmationeventbus/index.js +2 -0
- package/confirmationservice/ConfirmationService.js +1 -1
- package/confirmationservice/confirmationservice.common.js +1605 -6
- package/confirmationservice/confirmationservice.umd.js +1605 -6
- package/confirmationservice/confirmationservice.umd.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +9 -3
- package/confirmdialog/confirmdialog.common.js +456 -44
- package/confirmdialog/confirmdialog.umd.js +456 -44
- package/confirmdialog/confirmdialog.umd.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +4 -1
- package/confirmpopup/ConfirmPopup.vue +9 -6
- package/confirmpopup/confirmpopup.common.js +531 -13
- package/confirmpopup/confirmpopup.umd.js +531 -13
- package/confirmpopup/confirmpopup.umd.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +1 -0
- package/contextmenu/ContextMenu.vue +5 -1
- package/contextmenu/ContextMenuSub.vue +33 -13
- package/contextmenu/contextmenu.common.js +68 -14
- package/contextmenu/contextmenu.umd.js +68 -14
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +58 -8
- package/contextmenu/contextmenusub.umd.js +58 -8
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/datatable/BodyCell.vue +118 -34
- package/datatable/ColumnFilter.vue +558 -0
- package/datatable/ColumnSlot.vue +21 -1
- package/datatable/DataTable.d.ts +41 -15
- package/datatable/DataTable.vue +582 -391
- package/datatable/FooterCell.vue +82 -0
- package/datatable/HeaderCell.vue +246 -0
- package/datatable/TableBody.vue +92 -23
- package/datatable/TableFooter.vue +34 -18
- package/datatable/TableHeader.vue +79 -134
- package/datatable/bodycell.common.js +578 -56
- package/datatable/bodycell.umd.js +578 -56
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +7610 -0
- package/datatable/columnfilter.umd.js +7620 -0
- package/datatable/columnfilter.umd.min.js +1 -0
- package/datatable/columnslot.common.js +21 -1
- package/datatable/columnslot.umd.js +21 -1
- package/datatable/columnslot.umd.min.js +1 -1
- package/datatable/datatable.common.js +4340 -1384
- package/datatable/datatable.umd.js +4340 -1384
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -4
- package/datatable/footercell.common.js +5453 -0
- package/datatable/footercell.umd.js +5463 -0
- package/datatable/footercell.umd.min.js +1 -0
- package/datatable/headercell.common.js +8058 -0
- package/datatable/headercell.umd.js +8068 -0
- package/datatable/headercell.umd.min.js +1 -0
- package/datatable/headercheckbox.common.js +1 -1
- package/datatable/headercheckbox.umd.js +1 -1
- package/datatable/rowcheckbox.common.js +1 -1
- package/datatable/rowcheckbox.umd.js +1 -1
- package/datatable/rowradiobutton.common.js +1 -1
- package/datatable/rowradiobutton.umd.js +1 -1
- package/datatable/tablebody.common.js +1066 -473
- package/datatable/tablebody.umd.js +1066 -473
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +3785 -105
- package/datatable/tablefooter.umd.js +3785 -105
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +6633 -2138
- package/datatable/tableheader.umd.js +6633 -2138
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +22 -2
- package/datatable/tableloadingbody.umd.js +22 -2
- package/datatable/tableloadingbody.umd.min.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +10 -10
- package/dataview/dataview.common.js +1971 -80
- package/dataview/dataview.umd.js +1971 -80
- package/dataview/dataview.umd.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.common.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.umd.js +1 -1
- package/deferredcontent/deferredcontent.common.js +1 -1
- package/deferredcontent/deferredcontent.umd.js +1 -1
- package/dialog/Dialog.vue +35 -21
- package/dialog/dialog.common.js +62 -24
- package/dialog/dialog.umd.js +62 -24
- package/dialog/dialog.umd.min.js +1 -1
- package/divider/divider.common.js +1 -1
- package/divider/divider.umd.js +1 -1
- package/dock/Dock.d.ts +2 -0
- package/dock/Dock.vue +12 -2
- package/dock/DockSub.vue +45 -21
- package/dock/dock.common.js +44 -15
- package/dock/dock.umd.js +44 -15
- package/dock/dock.umd.min.js +1 -1
- package/dock/docksub.common.js +31 -7
- package/dock/docksub.umd.js +31 -7
- package/dock/docksub.umd.min.js +1 -1
- package/dropdown/Dropdown.d.ts +5 -3
- package/dropdown/Dropdown.vue +33 -5
- package/dropdown/dropdown.common.js +83 -24
- package/dropdown/dropdown.umd.js +83 -24
- package/dropdown/dropdown.umd.min.js +1 -1
- package/editor/editor.common.js +1 -1
- package/editor/editor.umd.js +1 -1
- package/fieldset/fieldset.common.js +28 -1
- package/fieldset/fieldset.umd.js +28 -1
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/FileUpload.vue +5 -2
- package/fileupload/fileupload.common.js +55 -19
- package/fileupload/fileupload.umd.js +55 -19
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +342 -136
- package/fullcalendar/fullcalendar.umd.js +342 -136
- package/fullcalendar/fullcalendar.umd.min.js +4 -4
- package/galleria/Galleria.vue +3 -8
- package/galleria/GalleriaContent.vue +9 -0
- package/galleria/galleria.common.js +49 -17
- package/galleria/galleria.umd.js +49 -17
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +40 -4
- package/galleria/galleriacontent.umd.js +40 -4
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +28 -1
- package/galleria/galleriaitem.umd.js +28 -1
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriathumbnails.common.js +28 -1
- package/galleria/galleriathumbnails.umd.js +28 -1
- package/galleria/galleriathumbnails.umd.min.js +1 -1
- package/imagepreview/ImagePreview.d.ts +10 -0
- package/imagepreview/ImagePreview.vue +205 -0
- package/imagepreview/demo.html +17 -0
- package/{datatable/scrollableview.common.js → imagepreview/imagepreview.common.js} +570 -463
- package/{datatable/scrollableview.umd.js → imagepreview/imagepreview.umd.js} +572 -465
- package/imagepreview/imagepreview.umd.min.js +1 -0
- package/imagepreview/index.d.ts +1 -0
- package/imagepreview/index.js +2 -0
- package/imagepreview/plugin.js +4 -0
- package/inlinemessage/inlinemessage.common.js +1 -1
- package/inlinemessage/inlinemessage.umd.js +1 -1
- package/inplace/inplace.common.js +29 -2
- package/inplace/inplace.umd.js +29 -2
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/InputMask.vue +7 -5
- package/inputmask/inputmask.common.js +39 -12
- package/inputmask/inputmask.umd.js +39 -12
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +183 -62
- package/inputnumber/inputnumber.common.js +249 -113
- package/inputnumber/inputnumber.umd.js +249 -113
- package/inputnumber/inputnumber.umd.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +2 -0
- package/inputswitch/InputSwitch.vue +15 -3
- package/inputswitch/inputswitch.common.js +17 -5
- package/inputswitch/inputswitch.umd.js +17 -5
- package/inputswitch/inputswitch.umd.min.js +1 -1
- package/inputtext/inputtext.common.js +3 -7
- package/inputtext/inputtext.umd.js +3 -7
- package/inputtext/inputtext.umd.min.js +1 -1
- package/knob/knob.common.js +1 -1
- package/knob/knob.umd.js +1 -1
- package/listbox/Listbox.d.ts +3 -3
- package/listbox/listbox.common.js +48 -18
- package/listbox/listbox.umd.js +48 -18
- package/listbox/listbox.umd.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +6 -1
- package/megamenu/MegaMenu.vue +51 -22
- package/megamenu/megamenu.common.js +74 -10
- package/megamenu/megamenu.umd.js +74 -10
- package/megamenu/megamenu.umd.min.js +1 -1
- package/menu/Menu.d.ts +1 -0
- package/menu/Menu.vue +11 -4
- package/menu/Menuitem.vue +25 -11
- package/menu/menu.common.js +68 -17
- package/menu/menu.umd.js +68 -17
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +55 -11
- package/menu/menuitem.umd.js +55 -11
- package/menu/menuitem.umd.min.js +1 -1
- package/menubar/Menubar.d.ts +1 -0
- package/menubar/Menubar.vue +5 -1
- package/menubar/MenubarSub.vue +34 -14
- package/menubar/menubar.common.js +68 -14
- package/menubar/menubar.umd.js +68 -14
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +58 -8
- package/menubar/menubarsub.umd.js +58 -8
- package/menubar/menubarsub.umd.min.js +1 -1
- package/message/Message.d.ts +1 -0
- package/message/Message.vue +5 -1
- package/message/message.common.js +34 -3
- package/message/message.umd.js +34 -3
- package/message/message.umd.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +4 -3
- package/multiselect/MultiSelect.vue +8 -1
- package/multiselect/multiselect.common.js +58 -22
- package/multiselect/multiselect.umd.js +58 -22
- package/multiselect/multiselect.umd.min.js +1 -1
- package/orderlist/OrderList.d.ts +2 -0
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.common.js +53 -21
- package/orderlist/orderlist.umd.js +53 -21
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +31 -8
- package/organizationchart/organizationchart.umd.js +31 -8
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +28 -1
- package/organizationchart/organizationchartnode.umd.js +28 -1
- package/organizationchart/organizationchartnode.umd.min.js +1 -1
- package/overlayeventbus/OverlayEventBus.js +14 -0
- package/overlayeventbus/demo.html +8 -0
- package/overlayeventbus/index.d.ts +1 -0
- package/overlayeventbus/index.js +2 -0
- package/overlayeventbus/overlayeventbus.common.js +1773 -0
- package/overlayeventbus/overlayeventbus.umd.js +1783 -0
- package/overlayeventbus/overlayeventbus.umd.min.js +1 -0
- package/overlaypanel/overlaypanel.common.js +28 -1
- package/overlaypanel/overlaypanel.umd.js +28 -1
- package/overlaypanel/overlaypanel.umd.min.js +1 -1
- package/package.json +5 -1
- package/paginator/CurrentPageReport.vue +6 -2
- package/paginator/JumpToPageDropdown.vue +33 -0
- package/paginator/JumpToPageInput.vue +25 -0
- package/paginator/Paginator.d.ts +2 -2
- package/paginator/Paginator.vue +24 -11
- package/paginator/RowsPerPageDropdown.vue +3 -2
- package/paginator/currentpagereport.common.js +7 -3
- package/paginator/currentpagereport.umd.js +7 -3
- package/paginator/currentpagereport.umd.min.js +1 -1
- package/paginator/demo.html +3 -3
- package/paginator/firstpagelink.common.js +28 -1
- package/paginator/firstpagelink.umd.js +28 -1
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +6501 -0
- package/paginator/jumptopagedropdown.umd.js +6511 -0
- package/paginator/jumptopagedropdown.umd.min.js +1 -0
- package/paginator/jumptopageinput.common.js +7438 -0
- package/paginator/jumptopageinput.umd.js +7448 -0
- package/paginator/jumptopageinput.umd.min.js +1 -0
- package/paginator/lastpagelink.common.js +28 -1
- package/paginator/lastpagelink.umd.js +28 -1
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +28 -1
- package/paginator/nextpagelink.umd.js +28 -1
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +28 -1
- package/paginator/pagelinks.umd.js +28 -1
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +2277 -119
- package/paginator/paginator.umd.js +2277 -119
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +28 -1
- package/paginator/prevpagelink.umd.js +28 -1
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +91 -31
- package/paginator/rowsperpagedropdown.umd.js +91 -31
- package/paginator/rowsperpagedropdown.umd.min.js +1 -1
- package/panel/Panel.d.ts +1 -0
- package/panel/Panel.vue +1 -1
- package/panel/panel.common.js +29 -2
- package/panel/panel.umd.js +29 -2
- package/panel/panel.umd.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +1 -0
- package/panelmenu/PanelMenu.vue +32 -6
- package/panelmenu/PanelMenuSub.vue +32 -13
- package/panelmenu/panelmenu.common.js +69 -16
- package/panelmenu/panelmenu.umd.js +69 -16
- package/panelmenu/panelmenu.umd.min.js +1 -1
- package/panelmenu/panelmenusub.common.js +29 -7
- package/panelmenu/panelmenusub.umd.js +29 -7
- package/panelmenu/panelmenusub.umd.min.js +1 -1
- package/password/password.common.js +31 -8
- package/password/password.umd.js +31 -8
- package/password/password.umd.min.js +1 -1
- package/picklist/PickList.d.ts +8 -0
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.common.js +57 -21
- package/picklist/picklist.umd.js +57 -21
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/ProgressBar.vue +18 -14
- package/progressbar/progressbar.common.js +7 -5
- package/progressbar/progressbar.umd.js +7 -5
- package/progressbar/progressbar.umd.min.js +1 -1
- package/progressspinner/progressspinner.common.js +1 -1
- package/progressspinner/progressspinner.umd.js +1 -1
- package/radiobutton/radiobutton.common.js +26 -18
- package/radiobutton/radiobutton.umd.js +26 -18
- package/radiobutton/radiobutton.umd.min.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.common.js +3 -3
- package/rating/rating.umd.js +3 -3
- package/rating/rating.umd.min.js +1 -1
- package/resources/primevue.css +15 -4
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +178 -42
- package/resources/themes/arya-green/theme.css +178 -42
- package/resources/themes/arya-orange/theme.css +178 -42
- package/resources/themes/arya-purple/theme.css +178 -42
- package/resources/themes/bootstrap4-dark-blue/theme.css +175 -46
- package/resources/themes/bootstrap4-dark-purple/theme.css +175 -46
- package/resources/themes/bootstrap4-light-blue/theme.css +175 -46
- package/resources/themes/bootstrap4-light-purple/theme.css +175 -46
- package/resources/themes/fluent-light/theme.css +182 -46
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5418 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +5418 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +5418 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +5418 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +5418 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +5418 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +5418 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +5418 -0
- package/resources/themes/luna-amber/theme.css +175 -46
- package/resources/themes/luna-blue/theme.css +175 -46
- package/resources/themes/luna-green/theme.css +175 -46
- package/resources/themes/luna-pink/theme.css +175 -46
- package/resources/themes/md-dark-deeppurple/theme.css +379 -87
- package/resources/themes/md-dark-indigo/theme.css +379 -87
- package/resources/themes/md-light-deeppurple/theme.css +379 -87
- package/resources/themes/md-light-indigo/theme.css +379 -87
- package/resources/themes/mdc-dark-deeppurple/theme.css +379 -87
- package/resources/themes/mdc-dark-indigo/theme.css +379 -87
- package/resources/themes/mdc-light-deeppurple/theme.css +379 -87
- package/resources/themes/mdc-light-indigo/theme.css +379 -87
- package/resources/themes/nova/theme.css +175 -46
- package/resources/themes/nova-accent/theme.css +175 -46
- package/resources/themes/nova-alt/theme.css +175 -46
- package/resources/themes/nova-vue/theme.css +175 -46
- package/resources/themes/rhea/theme.css +175 -46
- package/resources/themes/saga-blue/theme.css +178 -42
- package/resources/themes/saga-green/theme.css +178 -42
- package/resources/themes/saga-orange/theme.css +178 -42
- package/resources/themes/saga-purple/theme.css +178 -42
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/tailwind-light/theme.css +5493 -0
- package/resources/themes/vela-blue/theme.css +178 -42
- package/resources/themes/vela-green/theme.css +178 -42
- package/resources/themes/vela-orange/theme.css +178 -42
- package/resources/themes/vela-purple/theme.css +178 -42
- package/ripple/ripple.common.js +27 -0
- package/ripple/ripple.umd.js +27 -0
- package/ripple/ripple.umd.min.js +1 -1
- package/row/row.common.js +1 -1
- package/row/row.umd.js +1 -1
- package/scrollpanel/scrollpanel.common.js +28 -1
- package/scrollpanel/scrollpanel.umd.js +28 -1
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +28 -1
- package/scrolltop/scrolltop.umd.js +28 -1
- package/scrolltop/scrolltop.umd.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +3 -3
- package/selectbutton/SelectButton.vue +6 -1
- package/selectbutton/selectbutton.common.js +55 -20
- package/selectbutton/selectbutton.umd.js +55 -20
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.vue +3 -16
- package/sidebar/sidebar.common.js +37 -15
- package/sidebar/sidebar.umd.js +37 -15
- package/sidebar/sidebar.umd.min.js +1 -1
- package/skeleton/skeleton.common.js +1 -1
- package/skeleton/skeleton.umd.js +1 -1
- package/slider/Slider.vue +20 -12
- package/slider/slider.common.js +41 -9
- package/slider/slider.umd.js +41 -9
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +1 -0
- package/speeddial/SpeedDial.vue +10 -9
- package/speeddial/speeddial.common.js +40 -16
- package/speeddial/speeddial.umd.js +40 -16
- package/speeddial/speeddial.umd.min.js +1 -1
- package/splitbutton/splitbutton.common.js +73 -22
- package/splitbutton/splitbutton.umd.js +73 -22
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +27 -0
- package/splitter/splitter.umd.js +27 -0
- package/splitter/splitter.umd.min.js +1 -1
- package/steps/Steps.d.ts +1 -0
- package/steps/Steps.vue +30 -8
- package/steps/steps.common.js +33 -6
- package/steps/steps.umd.js +33 -6
- package/steps/steps.umd.min.js +1 -1
- package/styleclass/StyleClass.js +4 -1
- package/styleclass/styleclass.common.js +31 -1
- package/styleclass/styleclass.umd.js +31 -1
- package/styleclass/styleclass.umd.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +1 -0
- package/tabmenu/TabMenu.vue +39 -10
- package/tabmenu/tabmenu.common.js +192 -8
- package/tabmenu/tabmenu.umd.js +192 -8
- package/tabmenu/tabmenu.umd.min.js +1 -1
- package/tabpanel/tabpanel.common.js +1 -1
- package/tabpanel/tabpanel.umd.js +1 -1
- package/tabview/TabView.d.ts +1 -0
- package/tabview/TabView.vue +111 -11
- package/tabview/tabview.common.js +124 -22
- package/tabview/tabview.umd.js +124 -22
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/tag.common.js +1 -1
- package/tag/tag.umd.js +1 -1
- package/terminal/terminal.common.js +1 -1
- package/terminal/terminal.umd.js +1 -1
- package/textarea/textarea.common.js +3 -7
- package/textarea/textarea.umd.js +3 -7
- package/textarea/textarea.umd.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +1 -0
- package/tieredmenu/TieredMenu.vue +5 -1
- package/tieredmenu/TieredMenuSub.vue +30 -14
- package/tieredmenu/demo.html +3 -4
- package/tieredmenu/tieredmenu.common.js +63 -13
- package/tieredmenu/tieredmenu.umd.js +63 -13
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +53 -7
- package/tieredmenu/tieredmenusub.umd.js +53 -7
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +26 -18
- package/timeline/timeline.umd.js +26 -18
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/Toast.d.ts +4 -1
- package/toast/Toast.vue +1 -1
- package/toast/toast.common.js +30 -5
- package/toast/toast.umd.js +30 -5
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +28 -1
- package/toast/toastmessage.umd.js +28 -1
- package/toast/toastmessage.umd.min.js +1 -1
- package/togglebutton/togglebutton.common.js +28 -1
- package/togglebutton/togglebutton.umd.js +28 -1
- package/togglebutton/togglebutton.umd.min.js +1 -1
- package/toolbar/Toolbar.d.ts +1 -1
- package/toolbar/Toolbar.vue +2 -2
- package/toolbar/toolbar.common.js +3 -3
- package/toolbar/toolbar.umd.js +3 -3
- package/toolbar/toolbar.umd.min.js +1 -1
- package/tooltip/Tooltip.css +1 -0
- package/tooltip/Tooltip.js +37 -2
- package/tooltip/tooltip.common.js +1711 -24
- package/tooltip/tooltip.umd.js +1711 -24
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/TreeNode.vue +5 -1
- package/tree/tree.common.js +63 -31
- package/tree/tree.umd.js +63 -31
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +36 -9
- package/tree/treenode.umd.js +36 -9
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/BodyCell.vue +162 -0
- package/treetable/FooterCell.vue +81 -0
- package/treetable/HeaderCell.vue +183 -0
- package/treetable/TreeTable.d.ts +2 -2
- package/treetable/TreeTable.vue +93 -116
- package/treetable/bodycell.common.js +5596 -0
- package/treetable/bodycell.umd.js +5606 -0
- package/treetable/bodycell.umd.min.js +1 -0
- package/treetable/demo.html +3 -3
- package/treetable/footercell.common.js +5300 -0
- package/treetable/footercell.umd.js +5310 -0
- package/treetable/footercell.umd.min.js +1 -0
- package/treetable/headercell.common.js +5529 -0
- package/treetable/headercell.umd.js +5539 -0
- package/treetable/headercell.umd.min.js +1 -0
- package/treetable/treetable.common.js +3801 -1562
- package/treetable/treetable.umd.js +3801 -1562
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +50 -21
- package/treetable/treetablerow.umd.js +50 -21
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +52 -24
- package/treetable/treetablerowloader.umd.js +52 -24
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +1 -1
- package/tristatecheckbox/tristatecheckbox.umd.js +1 -1
- package/utils/ConnectedOverlayScrollHandler.js +1 -1
- package/utils/DomHandler.js +23 -1
- package/utils/EventBus.js +33 -0
- package/utils/ObjectUtils.js +15 -2
- package/utils/Utils.d.ts +73 -0
- package/utils/Utils.js +47 -0
- package/utils/connectedoverlayscrollhandler.common.js +27 -0
- package/utils/connectedoverlayscrollhandler.umd.js +27 -0
- package/utils/connectedoverlayscrollhandler.umd.min.js +1 -1
- package/utils/demo.html +3 -3
- package/utils/domhandler.common.js +27 -0
- package/utils/domhandler.umd.js +27 -0
- package/utils/domhandler.umd.min.js +1 -1
- package/utils/eventbus.common.js +1770 -0
- package/utils/eventbus.umd.js +1780 -0
- package/utils/eventbus.umd.min.js +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +2 -0
- package/utils/objectutils.common.js +25 -17
- package/utils/objectutils.umd.js +25 -17
- package/utils/objectutils.umd.min.js +1 -1
- package/utils/utils.common.js +5481 -0
- package/utils/utils.umd.js +5491 -0
- package/utils/utils.umd.min.js +1 -0
- package/vetur-attributes.json +148 -20
- package/vetur-tags.json +57 -20
- package/web-types.json +477 -33
- package/confirmationservice/confirmationeventbus.umd.min.js +0 -1
- package/datatable/ScrollableView.vue +0 -223
- package/datatable/scrollableview.umd.min.js +0 -1
- package/utils/FilterUtils.js +0 -176
- package/utils/filterutils.umd.min.js +0 -1
package/megamenu/MegaMenu.vue
CHANGED
|
@@ -1,29 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="containerClass">
|
|
3
|
+
<div class="p-megamenu-start" v-if="$slots.start">
|
|
4
|
+
<slot name="start"></slot>
|
|
5
|
+
</div>
|
|
3
6
|
<ul class="p-megamenu-root-list" role="menubar">
|
|
4
7
|
<template v-for="(category,index) of model">
|
|
5
|
-
<li v-if="visible(category)" :key="category
|
|
8
|
+
<li v-if="visible(category)" :key="label(category) + '_' + index" :class="getCategoryClass(category)" :style="category.style"
|
|
6
9
|
@mouseenter="onCategoryMouseEnter($event, category)" role="none">
|
|
7
|
-
<
|
|
8
|
-
|
|
10
|
+
<router-link v-if="category.to && !disabled(category)" :to="category.to" custom v-slot="{navigate, href, isActive, isExactActive}">
|
|
11
|
+
<a :href="href" :class="linkClass(category, {isActive, isExactActive})" @click="onCategoryClick($event, category, navigate)" @keydown="onCategoryKeydown($event, category)" role="menuitem" v-ripple>
|
|
12
|
+
<span v-if="category.icon" :class="getCategoryIcon(category)"></span>
|
|
13
|
+
<span class="p-menuitem-text">{{label(category)}}</span>
|
|
14
|
+
</a>
|
|
15
|
+
</router-link>
|
|
16
|
+
<a v-else :href="category.url" :class="linkClass(category)" :target="category.target" @click="onCategoryClick($event, category)" @keydown="onCategoryKeydown($event, category)"
|
|
17
|
+
role="menuitem" :aria-haspopup="category.items != null" :aria-expanded="category === activeItem" :tabindex="disabled(category) ? null : '0'" v-ripple>
|
|
9
18
|
<span v-if="category.icon" :class="getCategoryIcon(category)"></span>
|
|
10
|
-
<span class="p-menuitem-text">{{category
|
|
19
|
+
<span class="p-menuitem-text">{{label(category)}}</span>
|
|
11
20
|
<span v-if="category.items" :class="getCategorySubMenuIcon()"></span>
|
|
12
21
|
</a>
|
|
13
22
|
<div class="p-megamenu-panel" v-if="category.items">
|
|
14
23
|
<div class="p-megamenu-grid">
|
|
15
|
-
<div v-for="(column,columnIndex) of category.items" :key="category
|
|
16
|
-
<ul v-for="(submenu,submenuIndex) of column" class="p-megamenu-submenu" :key="submenu
|
|
17
|
-
<li :class="getSubmenuHeaderClass(submenu)" :style="submenu.style" role="presentation">{{submenu
|
|
24
|
+
<div v-for="(column,columnIndex) of category.items" :key="label(category) + '_column_' + columnIndex" :class="getColumnClassName(category)">
|
|
25
|
+
<ul v-for="(submenu,submenuIndex) of column" class="p-megamenu-submenu" :key="label(submenu) + '_submenu_' + submenuIndex" role="menu">
|
|
26
|
+
<li :class="getSubmenuHeaderClass(submenu)" :style="submenu.style" role="presentation">{{label(submenu)}}</li>
|
|
18
27
|
<template v-for="(item, i) of submenu.items">
|
|
19
|
-
<li role="none" :class="getSubmenuItemClass(item)" :style="item.style" v-if="visible(item) && !item.separator" :key="item
|
|
20
|
-
<router-link v-if="item.to && !item
|
|
21
|
-
<
|
|
22
|
-
|
|
28
|
+
<li role="none" :class="getSubmenuItemClass(item)" :style="item.style" v-if="visible(item) && !item.separator" :key="label(item) + i">
|
|
29
|
+
<router-link v-if="item.to && !disabled(item)" :to="item.to" custom v-slot="{navigate, href, isActive, isExactActive}" >
|
|
30
|
+
<a :href="href" :class="linkClass(item, {isActive, isExactActive})" @click.native="onLeafClick($event, item, navigate)" role="menuitem" v-ripple>
|
|
31
|
+
<span v-if="item.icon" :class="['p-menuitem-icon', item.icon]"></span>
|
|
32
|
+
<span class="p-menuitem-text">{{label(item)}}</span>
|
|
33
|
+
</a>
|
|
23
34
|
</router-link>
|
|
24
|
-
<a v-else :href="item.url" :class="
|
|
35
|
+
<a v-else :href="item.url" :class="linkClass(item)" :target="item.target" @click="onLeafClick($event, item, navigate)" role="menuitem" :tabindex="disabled(item) ? null : '0'" v-ripple>
|
|
25
36
|
<span v-if="item.icon" :class="['p-menuitem-icon', item.icon]"></span>
|
|
26
|
-
<span class="p-menuitem-text">{{item
|
|
37
|
+
<span class="p-menuitem-text">{{label(item)}}</span>
|
|
27
38
|
<span :class="getSubmenuIcon()" v-if="item.items"></span>
|
|
28
39
|
</a>
|
|
29
40
|
</li>
|
|
@@ -36,8 +47,8 @@
|
|
|
36
47
|
</li>
|
|
37
48
|
</template>
|
|
38
49
|
</ul>
|
|
39
|
-
<div class="p-megamenu-
|
|
40
|
-
<slot></slot>
|
|
50
|
+
<div class="p-megamenu-end" v-if="$slots.end">
|
|
51
|
+
<slot name="end"></slot>
|
|
41
52
|
</div>
|
|
42
53
|
</div>
|
|
43
54
|
</template>
|
|
@@ -55,6 +66,10 @@ export default {
|
|
|
55
66
|
orientation: {
|
|
56
67
|
type: String,
|
|
57
68
|
default: 'horizontal'
|
|
69
|
+
},
|
|
70
|
+
exact: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: true
|
|
58
73
|
}
|
|
59
74
|
},
|
|
60
75
|
documentClickListener: null,
|
|
@@ -67,8 +82,8 @@ export default {
|
|
|
67
82
|
this.unbindDocumentClickListener();
|
|
68
83
|
},
|
|
69
84
|
methods: {
|
|
70
|
-
onLeafClick(event, item) {
|
|
71
|
-
if (
|
|
85
|
+
onLeafClick(event, item, navigate) {
|
|
86
|
+
if (this.disabled(item)) {
|
|
72
87
|
event.preventDefault();
|
|
73
88
|
return;
|
|
74
89
|
}
|
|
@@ -84,10 +99,14 @@ export default {
|
|
|
84
99
|
});
|
|
85
100
|
}
|
|
86
101
|
|
|
102
|
+
if (item.to && navigate) {
|
|
103
|
+
navigate(event);
|
|
104
|
+
}
|
|
105
|
+
|
|
87
106
|
this.activeItem = null;
|
|
88
107
|
},
|
|
89
108
|
onCategoryMouseEnter(event, category) {
|
|
90
|
-
if (
|
|
109
|
+
if (this.disabled(category)) {
|
|
91
110
|
event.preventDefault();
|
|
92
111
|
return;
|
|
93
112
|
}
|
|
@@ -97,7 +116,7 @@ export default {
|
|
|
97
116
|
}
|
|
98
117
|
},
|
|
99
118
|
onCategoryClick(event, category) {
|
|
100
|
-
if (
|
|
119
|
+
if (this.disabled(category)) {
|
|
101
120
|
event.preventDefault();
|
|
102
121
|
return;
|
|
103
122
|
}
|
|
@@ -251,13 +270,17 @@ export default {
|
|
|
251
270
|
return columnClass;
|
|
252
271
|
},
|
|
253
272
|
getSubmenuHeaderClass(submenu) {
|
|
254
|
-
return ['p-megamenu-submenu-header', submenu.class, {'p-disabled':
|
|
273
|
+
return ['p-megamenu-submenu-header', submenu.class, {'p-disabled': this.disabled(submenu)}];
|
|
255
274
|
},
|
|
256
275
|
getSubmenuItemClass(item) {
|
|
257
276
|
return ['p-menuitem', item.class];
|
|
258
277
|
},
|
|
259
|
-
|
|
260
|
-
return ['p-menuitem-link', {
|
|
278
|
+
linkClass(item, routerProps) {
|
|
279
|
+
return ['p-menuitem-link', {
|
|
280
|
+
'p-disabled': this.disabled(item),
|
|
281
|
+
'router-link-active': routerProps && routerProps.isActive,
|
|
282
|
+
'router-link-active-exact': this.exact && routerProps && routerProps.isExactActive
|
|
283
|
+
}];
|
|
261
284
|
},
|
|
262
285
|
bindDocumentClickListener() {
|
|
263
286
|
if (!this.documentClickListener) {
|
|
@@ -279,6 +302,12 @@ export default {
|
|
|
279
302
|
},
|
|
280
303
|
visible(item) {
|
|
281
304
|
return (typeof item.visible === 'function' ? item.visible() : item.visible !== false);
|
|
305
|
+
},
|
|
306
|
+
disabled(item) {
|
|
307
|
+
return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
|
|
308
|
+
},
|
|
309
|
+
label(item) {
|
|
310
|
+
return (typeof item.label === 'function' ? item.label() : item.label);
|
|
282
311
|
}
|
|
283
312
|
},
|
|
284
313
|
computed: {
|
|
@@ -3173,12 +3173,22 @@ if (typeof window !== 'undefined') {
|
|
|
3173
3173
|
// Indicate to webpack that this file can be concatenated
|
|
3174
3174
|
/* harmony default export */ var setPublicPath = (null);
|
|
3175
3175
|
|
|
3176
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3177
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.containerClass},[
|
|
3176
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9d50adc0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/megamenu/MegaMenu.vue?vue&type=template&id=7ba247e8&
|
|
3177
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.containerClass},[(_vm.$slots.start)?_c('div',{staticClass:"p-megamenu-start"},[_vm._t("start")],2):_vm._e(),_c('ul',{staticClass:"p-megamenu-root-list",attrs:{"role":"menubar"}},[_vm._l((_vm.model),function(category,index){return [(_vm.visible(category))?_c('li',{key:_vm.label(category) + '_' + index,class:_vm.getCategoryClass(category),style:(category.style),attrs:{"role":"none"},on:{"mouseenter":function($event){return _vm.onCategoryMouseEnter($event, category)}}},[(category.to && !_vm.disabled(category))?_c('router-link',{attrs:{"to":category.to,"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
3178
|
+
var navigate = ref.navigate;
|
|
3179
|
+
var href = ref.href;
|
|
3180
|
+
var isActive = ref.isActive;
|
|
3181
|
+
var isExactActive = ref.isExactActive;
|
|
3182
|
+
return [_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(category, {isActive: isActive, isExactActive: isExactActive}),attrs:{"href":href,"role":"menuitem"},on:{"click":function($event){return _vm.onCategoryClick($event, category, navigate)},"keydown":function($event){return _vm.onCategoryKeydown($event, category)}}},[(category.icon)?_c('span',{class:_vm.getCategoryIcon(category)}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(category)))])])]}}],null,true)}):_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(category),attrs:{"href":category.url,"target":category.target,"role":"menuitem","aria-haspopup":category.items != null,"aria-expanded":category === _vm.activeItem,"tabindex":_vm.disabled(category) ? null : '0'},on:{"click":function($event){return _vm.onCategoryClick($event, category)},"keydown":function($event){return _vm.onCategoryKeydown($event, category)}}},[(category.icon)?_c('span',{class:_vm.getCategoryIcon(category)}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(category)))]),(category.items)?_c('span',{class:_vm.getCategorySubMenuIcon()}):_vm._e()]),(category.items)?_c('div',{staticClass:"p-megamenu-panel"},[_c('div',{staticClass:"p-megamenu-grid"},_vm._l((category.items),function(column,columnIndex){return _c('div',{key:_vm.label(category) + '_column_' + columnIndex,class:_vm.getColumnClassName(category)},_vm._l((column),function(submenu,submenuIndex){return _c('ul',{key:_vm.label(submenu) + '_submenu_' + submenuIndex,staticClass:"p-megamenu-submenu",attrs:{"role":"menu"}},[_c('li',{class:_vm.getSubmenuHeaderClass(submenu),style:(submenu.style),attrs:{"role":"presentation"}},[_vm._v(_vm._s(_vm.label(submenu)))]),_vm._l((submenu.items),function(item,i){return [(_vm.visible(item) && !item.separator)?_c('li',{key:_vm.label(item) + i,class:_vm.getSubmenuItemClass(item),style:(item.style),attrs:{"role":"none"}},[(item.to && !_vm.disabled(item))?_c('router-link',{attrs:{"to":item.to,"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
3183
|
+
var navigate = ref.navigate;
|
|
3184
|
+
var href = ref.href;
|
|
3185
|
+
var isActive = ref.isActive;
|
|
3186
|
+
var isExactActive = ref.isExactActive;
|
|
3187
|
+
return [_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(item, {isActive: isActive, isExactActive: isExactActive}),attrs:{"href":href,"role":"menuitem"},nativeOn:{"click":function($event){return _vm.onLeafClick($event, item, navigate)}}},[(item.icon)?_c('span',{class:['p-menuitem-icon', item.icon]}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(item)))])])]}}],null,true)}):_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(item),attrs:{"href":item.url,"target":item.target,"role":"menuitem","tabindex":_vm.disabled(item) ? null : '0'},on:{"click":function($event){return _vm.onLeafClick($event, item, _vm.navigate)}}},[(item.icon)?_c('span',{class:['p-menuitem-icon', item.icon]}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(item)))]),(item.items)?_c('span',{class:_vm.getSubmenuIcon()}):_vm._e()])],1):_vm._e(),(_vm.visible(item) && item.separator)?_c('li',{key:'separator' + i,class:['p-menu-separator', item.class],style:(item.style),attrs:{"role":"separator"}}):_vm._e()]})],2)}),0)}),0)]):_vm._e()],1):_vm._e()]})],2),(_vm.$slots.end)?_c('div',{staticClass:"p-megamenu-end"},[_vm._t("end")],2):_vm._e()])}
|
|
3178
3188
|
var staticRenderFns = []
|
|
3179
3189
|
|
|
3180
3190
|
|
|
3181
|
-
// CONCATENATED MODULE: ./src/components/megamenu/MegaMenu.vue?vue&type=template&id=
|
|
3191
|
+
// CONCATENATED MODULE: ./src/components/megamenu/MegaMenu.vue?vue&type=template&id=7ba247e8&
|
|
3182
3192
|
|
|
3183
3193
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.symbol.async-iterator.js
|
|
3184
3194
|
var es7_symbol_async_iterator = __webpack_require__("ac4d");
|
|
@@ -3237,6 +3247,11 @@ function _defineProperties(target, props) {
|
|
|
3237
3247
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3238
3248
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3239
3249
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3250
|
+
|
|
3251
|
+
define_property_default()(Constructor, "prototype", {
|
|
3252
|
+
writable: false
|
|
3253
|
+
});
|
|
3254
|
+
|
|
3240
3255
|
return Constructor;
|
|
3241
3256
|
}
|
|
3242
3257
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3769,6 +3784,12 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3769
3784
|
|
|
3770
3785
|
return visibleFocusableElements;
|
|
3771
3786
|
}
|
|
3787
|
+
}, {
|
|
3788
|
+
key: "getFirstFocusableElement",
|
|
3789
|
+
value: function getFirstFocusableElement(element) {
|
|
3790
|
+
var focusableElements = this.getFocusableElements(element);
|
|
3791
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
3792
|
+
}
|
|
3772
3793
|
}, {
|
|
3773
3794
|
key: "isClickable",
|
|
3774
3795
|
value: function isClickable(element) {
|
|
@@ -3776,6 +3797,17 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3776
3797
|
var parentNode = element.parentElement && element.parentElement.nodeName;
|
|
3777
3798
|
return targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' || parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' || this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') || this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton');
|
|
3778
3799
|
}
|
|
3800
|
+
}, {
|
|
3801
|
+
key: "applyStyle",
|
|
3802
|
+
value: function applyStyle(element, style) {
|
|
3803
|
+
if (typeof style === 'string') {
|
|
3804
|
+
element.style.cssText = this.style;
|
|
3805
|
+
} else {
|
|
3806
|
+
for (var prop in this.style) {
|
|
3807
|
+
element.style[prop] = style[prop];
|
|
3808
|
+
}
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3779
3811
|
}, {
|
|
3780
3812
|
key: "isIOS",
|
|
3781
3813
|
value: function isIOS() {
|
|
@@ -3786,6 +3818,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3786
3818
|
value: function isAndroid() {
|
|
3787
3819
|
return /(android)/i.test(navigator.userAgent);
|
|
3788
3820
|
}
|
|
3821
|
+
}, {
|
|
3822
|
+
key: "isTouchDevice",
|
|
3823
|
+
value: function isTouchDevice() {
|
|
3824
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3825
|
+
}
|
|
3789
3826
|
}]);
|
|
3790
3827
|
|
|
3791
3828
|
return DomHandler;
|
|
@@ -3915,6 +3952,17 @@ var Ripple = {
|
|
|
3915
3952
|
//
|
|
3916
3953
|
//
|
|
3917
3954
|
//
|
|
3955
|
+
//
|
|
3956
|
+
//
|
|
3957
|
+
//
|
|
3958
|
+
//
|
|
3959
|
+
//
|
|
3960
|
+
//
|
|
3961
|
+
//
|
|
3962
|
+
//
|
|
3963
|
+
//
|
|
3964
|
+
//
|
|
3965
|
+
//
|
|
3918
3966
|
|
|
3919
3967
|
|
|
3920
3968
|
/* harmony default export */ var MegaMenuvue_type_script_lang_js_ = ({
|
|
@@ -3926,6 +3974,10 @@ var Ripple = {
|
|
|
3926
3974
|
orientation: {
|
|
3927
3975
|
type: String,
|
|
3928
3976
|
default: 'horizontal'
|
|
3977
|
+
},
|
|
3978
|
+
exact: {
|
|
3979
|
+
type: Boolean,
|
|
3980
|
+
default: true
|
|
3929
3981
|
}
|
|
3930
3982
|
},
|
|
3931
3983
|
documentClickListener: null,
|
|
@@ -3938,8 +3990,8 @@ var Ripple = {
|
|
|
3938
3990
|
this.unbindDocumentClickListener();
|
|
3939
3991
|
},
|
|
3940
3992
|
methods: {
|
|
3941
|
-
onLeafClick: function onLeafClick(event, item) {
|
|
3942
|
-
if (
|
|
3993
|
+
onLeafClick: function onLeafClick(event, item, navigate) {
|
|
3994
|
+
if (this.disabled(item)) {
|
|
3943
3995
|
event.preventDefault();
|
|
3944
3996
|
return;
|
|
3945
3997
|
}
|
|
@@ -3955,10 +4007,14 @@ var Ripple = {
|
|
|
3955
4007
|
});
|
|
3956
4008
|
}
|
|
3957
4009
|
|
|
4010
|
+
if (item.to && navigate) {
|
|
4011
|
+
navigate(event);
|
|
4012
|
+
}
|
|
4013
|
+
|
|
3958
4014
|
this.activeItem = null;
|
|
3959
4015
|
},
|
|
3960
4016
|
onCategoryMouseEnter: function onCategoryMouseEnter(event, category) {
|
|
3961
|
-
if (
|
|
4017
|
+
if (this.disabled(category)) {
|
|
3962
4018
|
event.preventDefault();
|
|
3963
4019
|
return;
|
|
3964
4020
|
}
|
|
@@ -3968,7 +4024,7 @@ var Ripple = {
|
|
|
3968
4024
|
}
|
|
3969
4025
|
},
|
|
3970
4026
|
onCategoryClick: function onCategoryClick(event, category) {
|
|
3971
|
-
if (
|
|
4027
|
+
if (this.disabled(category)) {
|
|
3972
4028
|
event.preventDefault();
|
|
3973
4029
|
return;
|
|
3974
4030
|
}
|
|
@@ -4100,15 +4156,17 @@ var Ripple = {
|
|
|
4100
4156
|
},
|
|
4101
4157
|
getSubmenuHeaderClass: function getSubmenuHeaderClass(submenu) {
|
|
4102
4158
|
return ['p-megamenu-submenu-header', submenu.class, {
|
|
4103
|
-
'p-disabled':
|
|
4159
|
+
'p-disabled': this.disabled(submenu)
|
|
4104
4160
|
}];
|
|
4105
4161
|
},
|
|
4106
4162
|
getSubmenuItemClass: function getSubmenuItemClass(item) {
|
|
4107
4163
|
return ['p-menuitem', item.class];
|
|
4108
4164
|
},
|
|
4109
|
-
|
|
4165
|
+
linkClass: function linkClass(item, routerProps) {
|
|
4110
4166
|
return ['p-menuitem-link', {
|
|
4111
|
-
'p-disabled':
|
|
4167
|
+
'p-disabled': this.disabled(item),
|
|
4168
|
+
'router-link-active': routerProps && routerProps.isActive,
|
|
4169
|
+
'router-link-active-exact': this.exact && routerProps && routerProps.isExactActive
|
|
4112
4170
|
}];
|
|
4113
4171
|
},
|
|
4114
4172
|
bindDocumentClickListener: function bindDocumentClickListener() {
|
|
@@ -4134,6 +4192,12 @@ var Ripple = {
|
|
|
4134
4192
|
},
|
|
4135
4193
|
visible: function visible(item) {
|
|
4136
4194
|
return typeof item.visible === 'function' ? item.visible() : item.visible !== false;
|
|
4195
|
+
},
|
|
4196
|
+
disabled: function disabled(item) {
|
|
4197
|
+
return typeof item.disabled === 'function' ? item.disabled() : item.disabled;
|
|
4198
|
+
},
|
|
4199
|
+
label: function label(item) {
|
|
4200
|
+
return typeof item.label === 'function' ? item.label() : item.label;
|
|
4137
4201
|
}
|
|
4138
4202
|
},
|
|
4139
4203
|
computed: {
|
package/megamenu/megamenu.umd.js
CHANGED
|
@@ -3182,12 +3182,22 @@ if (typeof window !== 'undefined') {
|
|
|
3182
3182
|
// Indicate to webpack that this file can be concatenated
|
|
3183
3183
|
/* harmony default export */ var setPublicPath = (null);
|
|
3184
3184
|
|
|
3185
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
3186
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.containerClass},[
|
|
3185
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9d50adc0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/megamenu/MegaMenu.vue?vue&type=template&id=7ba247e8&
|
|
3186
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.containerClass},[(_vm.$slots.start)?_c('div',{staticClass:"p-megamenu-start"},[_vm._t("start")],2):_vm._e(),_c('ul',{staticClass:"p-megamenu-root-list",attrs:{"role":"menubar"}},[_vm._l((_vm.model),function(category,index){return [(_vm.visible(category))?_c('li',{key:_vm.label(category) + '_' + index,class:_vm.getCategoryClass(category),style:(category.style),attrs:{"role":"none"},on:{"mouseenter":function($event){return _vm.onCategoryMouseEnter($event, category)}}},[(category.to && !_vm.disabled(category))?_c('router-link',{attrs:{"to":category.to,"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
3187
|
+
var navigate = ref.navigate;
|
|
3188
|
+
var href = ref.href;
|
|
3189
|
+
var isActive = ref.isActive;
|
|
3190
|
+
var isExactActive = ref.isExactActive;
|
|
3191
|
+
return [_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(category, {isActive: isActive, isExactActive: isExactActive}),attrs:{"href":href,"role":"menuitem"},on:{"click":function($event){return _vm.onCategoryClick($event, category, navigate)},"keydown":function($event){return _vm.onCategoryKeydown($event, category)}}},[(category.icon)?_c('span',{class:_vm.getCategoryIcon(category)}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(category)))])])]}}],null,true)}):_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(category),attrs:{"href":category.url,"target":category.target,"role":"menuitem","aria-haspopup":category.items != null,"aria-expanded":category === _vm.activeItem,"tabindex":_vm.disabled(category) ? null : '0'},on:{"click":function($event){return _vm.onCategoryClick($event, category)},"keydown":function($event){return _vm.onCategoryKeydown($event, category)}}},[(category.icon)?_c('span',{class:_vm.getCategoryIcon(category)}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(category)))]),(category.items)?_c('span',{class:_vm.getCategorySubMenuIcon()}):_vm._e()]),(category.items)?_c('div',{staticClass:"p-megamenu-panel"},[_c('div',{staticClass:"p-megamenu-grid"},_vm._l((category.items),function(column,columnIndex){return _c('div',{key:_vm.label(category) + '_column_' + columnIndex,class:_vm.getColumnClassName(category)},_vm._l((column),function(submenu,submenuIndex){return _c('ul',{key:_vm.label(submenu) + '_submenu_' + submenuIndex,staticClass:"p-megamenu-submenu",attrs:{"role":"menu"}},[_c('li',{class:_vm.getSubmenuHeaderClass(submenu),style:(submenu.style),attrs:{"role":"presentation"}},[_vm._v(_vm._s(_vm.label(submenu)))]),_vm._l((submenu.items),function(item,i){return [(_vm.visible(item) && !item.separator)?_c('li',{key:_vm.label(item) + i,class:_vm.getSubmenuItemClass(item),style:(item.style),attrs:{"role":"none"}},[(item.to && !_vm.disabled(item))?_c('router-link',{attrs:{"to":item.to,"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
3192
|
+
var navigate = ref.navigate;
|
|
3193
|
+
var href = ref.href;
|
|
3194
|
+
var isActive = ref.isActive;
|
|
3195
|
+
var isExactActive = ref.isExactActive;
|
|
3196
|
+
return [_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(item, {isActive: isActive, isExactActive: isExactActive}),attrs:{"href":href,"role":"menuitem"},nativeOn:{"click":function($event){return _vm.onLeafClick($event, item, navigate)}}},[(item.icon)?_c('span',{class:['p-menuitem-icon', item.icon]}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(item)))])])]}}],null,true)}):_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],class:_vm.linkClass(item),attrs:{"href":item.url,"target":item.target,"role":"menuitem","tabindex":_vm.disabled(item) ? null : '0'},on:{"click":function($event){return _vm.onLeafClick($event, item, _vm.navigate)}}},[(item.icon)?_c('span',{class:['p-menuitem-icon', item.icon]}):_vm._e(),_c('span',{staticClass:"p-menuitem-text"},[_vm._v(_vm._s(_vm.label(item)))]),(item.items)?_c('span',{class:_vm.getSubmenuIcon()}):_vm._e()])],1):_vm._e(),(_vm.visible(item) && item.separator)?_c('li',{key:'separator' + i,class:['p-menu-separator', item.class],style:(item.style),attrs:{"role":"separator"}}):_vm._e()]})],2)}),0)}),0)]):_vm._e()],1):_vm._e()]})],2),(_vm.$slots.end)?_c('div',{staticClass:"p-megamenu-end"},[_vm._t("end")],2):_vm._e()])}
|
|
3187
3197
|
var staticRenderFns = []
|
|
3188
3198
|
|
|
3189
3199
|
|
|
3190
|
-
// CONCATENATED MODULE: ./src/components/megamenu/MegaMenu.vue?vue&type=template&id=
|
|
3200
|
+
// CONCATENATED MODULE: ./src/components/megamenu/MegaMenu.vue?vue&type=template&id=7ba247e8&
|
|
3191
3201
|
|
|
3192
3202
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.symbol.async-iterator.js
|
|
3193
3203
|
var es7_symbol_async_iterator = __webpack_require__("ac4d");
|
|
@@ -3246,6 +3256,11 @@ function _defineProperties(target, props) {
|
|
|
3246
3256
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
3247
3257
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3248
3258
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3259
|
+
|
|
3260
|
+
define_property_default()(Constructor, "prototype", {
|
|
3261
|
+
writable: false
|
|
3262
|
+
});
|
|
3263
|
+
|
|
3249
3264
|
return Constructor;
|
|
3250
3265
|
}
|
|
3251
3266
|
// CONCATENATED MODULE: ./src/components/utils/DomHandler.js
|
|
@@ -3778,6 +3793,12 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3778
3793
|
|
|
3779
3794
|
return visibleFocusableElements;
|
|
3780
3795
|
}
|
|
3796
|
+
}, {
|
|
3797
|
+
key: "getFirstFocusableElement",
|
|
3798
|
+
value: function getFirstFocusableElement(element) {
|
|
3799
|
+
var focusableElements = this.getFocusableElements(element);
|
|
3800
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
3801
|
+
}
|
|
3781
3802
|
}, {
|
|
3782
3803
|
key: "isClickable",
|
|
3783
3804
|
value: function isClickable(element) {
|
|
@@ -3785,6 +3806,17 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3785
3806
|
var parentNode = element.parentElement && element.parentElement.nodeName;
|
|
3786
3807
|
return targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' || parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' || this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') || this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton');
|
|
3787
3808
|
}
|
|
3809
|
+
}, {
|
|
3810
|
+
key: "applyStyle",
|
|
3811
|
+
value: function applyStyle(element, style) {
|
|
3812
|
+
if (typeof style === 'string') {
|
|
3813
|
+
element.style.cssText = this.style;
|
|
3814
|
+
} else {
|
|
3815
|
+
for (var prop in this.style) {
|
|
3816
|
+
element.style[prop] = style[prop];
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3788
3820
|
}, {
|
|
3789
3821
|
key: "isIOS",
|
|
3790
3822
|
value: function isIOS() {
|
|
@@ -3795,6 +3827,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
3795
3827
|
value: function isAndroid() {
|
|
3796
3828
|
return /(android)/i.test(navigator.userAgent);
|
|
3797
3829
|
}
|
|
3830
|
+
}, {
|
|
3831
|
+
key: "isTouchDevice",
|
|
3832
|
+
value: function isTouchDevice() {
|
|
3833
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
3834
|
+
}
|
|
3798
3835
|
}]);
|
|
3799
3836
|
|
|
3800
3837
|
return DomHandler;
|
|
@@ -3924,6 +3961,17 @@ var Ripple = {
|
|
|
3924
3961
|
//
|
|
3925
3962
|
//
|
|
3926
3963
|
//
|
|
3964
|
+
//
|
|
3965
|
+
//
|
|
3966
|
+
//
|
|
3967
|
+
//
|
|
3968
|
+
//
|
|
3969
|
+
//
|
|
3970
|
+
//
|
|
3971
|
+
//
|
|
3972
|
+
//
|
|
3973
|
+
//
|
|
3974
|
+
//
|
|
3927
3975
|
|
|
3928
3976
|
|
|
3929
3977
|
/* harmony default export */ var MegaMenuvue_type_script_lang_js_ = ({
|
|
@@ -3935,6 +3983,10 @@ var Ripple = {
|
|
|
3935
3983
|
orientation: {
|
|
3936
3984
|
type: String,
|
|
3937
3985
|
default: 'horizontal'
|
|
3986
|
+
},
|
|
3987
|
+
exact: {
|
|
3988
|
+
type: Boolean,
|
|
3989
|
+
default: true
|
|
3938
3990
|
}
|
|
3939
3991
|
},
|
|
3940
3992
|
documentClickListener: null,
|
|
@@ -3947,8 +3999,8 @@ var Ripple = {
|
|
|
3947
3999
|
this.unbindDocumentClickListener();
|
|
3948
4000
|
},
|
|
3949
4001
|
methods: {
|
|
3950
|
-
onLeafClick: function onLeafClick(event, item) {
|
|
3951
|
-
if (
|
|
4002
|
+
onLeafClick: function onLeafClick(event, item, navigate) {
|
|
4003
|
+
if (this.disabled(item)) {
|
|
3952
4004
|
event.preventDefault();
|
|
3953
4005
|
return;
|
|
3954
4006
|
}
|
|
@@ -3964,10 +4016,14 @@ var Ripple = {
|
|
|
3964
4016
|
});
|
|
3965
4017
|
}
|
|
3966
4018
|
|
|
4019
|
+
if (item.to && navigate) {
|
|
4020
|
+
navigate(event);
|
|
4021
|
+
}
|
|
4022
|
+
|
|
3967
4023
|
this.activeItem = null;
|
|
3968
4024
|
},
|
|
3969
4025
|
onCategoryMouseEnter: function onCategoryMouseEnter(event, category) {
|
|
3970
|
-
if (
|
|
4026
|
+
if (this.disabled(category)) {
|
|
3971
4027
|
event.preventDefault();
|
|
3972
4028
|
return;
|
|
3973
4029
|
}
|
|
@@ -3977,7 +4033,7 @@ var Ripple = {
|
|
|
3977
4033
|
}
|
|
3978
4034
|
},
|
|
3979
4035
|
onCategoryClick: function onCategoryClick(event, category) {
|
|
3980
|
-
if (
|
|
4036
|
+
if (this.disabled(category)) {
|
|
3981
4037
|
event.preventDefault();
|
|
3982
4038
|
return;
|
|
3983
4039
|
}
|
|
@@ -4109,15 +4165,17 @@ var Ripple = {
|
|
|
4109
4165
|
},
|
|
4110
4166
|
getSubmenuHeaderClass: function getSubmenuHeaderClass(submenu) {
|
|
4111
4167
|
return ['p-megamenu-submenu-header', submenu.class, {
|
|
4112
|
-
'p-disabled':
|
|
4168
|
+
'p-disabled': this.disabled(submenu)
|
|
4113
4169
|
}];
|
|
4114
4170
|
},
|
|
4115
4171
|
getSubmenuItemClass: function getSubmenuItemClass(item) {
|
|
4116
4172
|
return ['p-menuitem', item.class];
|
|
4117
4173
|
},
|
|
4118
|
-
|
|
4174
|
+
linkClass: function linkClass(item, routerProps) {
|
|
4119
4175
|
return ['p-menuitem-link', {
|
|
4120
|
-
'p-disabled':
|
|
4176
|
+
'p-disabled': this.disabled(item),
|
|
4177
|
+
'router-link-active': routerProps && routerProps.isActive,
|
|
4178
|
+
'router-link-active-exact': this.exact && routerProps && routerProps.isExactActive
|
|
4121
4179
|
}];
|
|
4122
4180
|
},
|
|
4123
4181
|
bindDocumentClickListener: function bindDocumentClickListener() {
|
|
@@ -4143,6 +4201,12 @@ var Ripple = {
|
|
|
4143
4201
|
},
|
|
4144
4202
|
visible: function visible(item) {
|
|
4145
4203
|
return typeof item.visible === 'function' ? item.visible() : item.visible !== false;
|
|
4204
|
+
},
|
|
4205
|
+
disabled: function disabled(item) {
|
|
4206
|
+
return typeof item.disabled === 'function' ? item.disabled() : item.disabled;
|
|
4207
|
+
},
|
|
4208
|
+
label: function label(item) {
|
|
4209
|
+
return typeof item.label === 'function' ? item.label() : item.label;
|
|
4146
4210
|
}
|
|
4147
4211
|
},
|
|
4148
4212
|
computed: {
|