primevue 2.5.1 → 2.9.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 +4893 -0
- package/api/api.umd.js +4903 -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 -106
- package/{utils/filterutils.umd.js → api/filterservice.umd.js} +209 -108
- 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 +64 -23
- package/autocomplete/autocomplete.umd.js +64 -23
- 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 +342 -70
- package/calendar/calendar.common.js +403 -73
- package/calendar/calendar.umd.js +403 -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 -17
- package/cascadeselect/cascadeselect.umd.js +53 -17
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +48 -14
- package/cascadeselect/cascadeselectsub.umd.js +48 -14
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/cascadeselect/demo.html +4 -3
- 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 -18
- package/checkbox/checkbox.umd.js +38 -18
- 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 +3589 -130
- package/config/primevue.umd.js +3589 -130
- package/config/primevue.umd.min.js +1 -1
- package/{confirmationservice → confirmationeventbus}/ConfirmationEventBus.js +3 -3
- package/confirmationeventbus/confirmationeventbus.common.js +1777 -0
- package/confirmationeventbus/confirmationeventbus.umd.js +1787 -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 +1609 -6
- package/confirmationservice/confirmationservice.umd.js +1609 -6
- package/confirmationservice/confirmationservice.umd.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +9 -3
- package/confirmdialog/confirmdialog.common.js +465 -46
- package/confirmdialog/confirmdialog.umd.js +465 -46
- 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 +535 -13
- package/confirmpopup/confirmpopup.umd.js +535 -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 +43 -15
- package/datatable/DataTable.vue +606 -398
- package/datatable/FooterCell.vue +82 -0
- package/datatable/HeaderCell.vue +246 -0
- package/datatable/HeaderCheckbox.vue +7 -4
- package/datatable/RowCheckbox.vue +2 -2
- package/datatable/RowRadioButton.vue +1 -1
- package/datatable/TableBody.vue +92 -23
- package/datatable/TableFooter.vue +34 -18
- package/datatable/TableHeader.vue +79 -134
- package/datatable/bodycell.common.js +592 -65
- package/datatable/bodycell.umd.js +592 -65
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/columnfilter.common.js +7615 -0
- package/datatable/columnfilter.umd.js +7625 -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 +4384 -1399
- package/datatable/datatable.umd.js +4384 -1399
- package/datatable/datatable.umd.min.js +1 -1
- package/datatable/demo.html +3 -3
- package/datatable/footercell.common.js +5457 -0
- package/datatable/footercell.umd.js +5467 -0
- package/datatable/footercell.umd.min.js +1 -0
- package/datatable/headercell.common.js +8066 -0
- package/datatable/headercell.umd.js +8076 -0
- package/datatable/headercell.umd.min.js +1 -0
- package/datatable/headercheckbox.common.js +8 -5
- package/datatable/headercheckbox.umd.js +8 -5
- package/datatable/headercheckbox.umd.min.js +1 -1
- package/datatable/rowcheckbox.common.js +3 -3
- package/datatable/rowcheckbox.umd.js +3 -3
- package/datatable/rowcheckbox.umd.min.js +1 -1
- package/datatable/rowradiobutton.common.js +3 -3
- package/datatable/rowradiobutton.umd.js +3 -3
- package/datatable/rowradiobutton.umd.min.js +1 -1
- package/datatable/tablebody.common.js +1041 -443
- package/datatable/tablebody.umd.js +1041 -443
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +3789 -105
- package/datatable/tablefooter.umd.js +3789 -105
- package/datatable/tablefooter.umd.min.js +1 -1
- package/datatable/tableheader.common.js +6635 -2132
- package/datatable/tableheader.umd.js +6635 -2132
- 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 +8 -8
- package/dataview/dataview.common.js +1974 -79
- package/dataview/dataview.umd.js +1974 -79
- 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.d.ts +1 -0
- package/dialog/Dialog.vue +41 -24
- package/dialog/dialog.common.js +68 -27
- package/dialog/dialog.umd.js +68 -27
- 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 +34 -6
- package/dropdown/dropdown.common.js +84 -21
- package/dropdown/dropdown.umd.js +84 -21
- 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 -14
- package/listbox/listbox.umd.js +48 -14
- 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/demo.html +3 -4
- 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 -18
- package/multiselect/multiselect.umd.js +58 -18
- 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 -17
- package/orderlist/orderlist.umd.js +53 -17
- 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 +1777 -0
- package/overlayeventbus/overlayeventbus.umd.js +1787 -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 +6505 -0
- package/paginator/jumptopagedropdown.umd.js +6515 -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 +2280 -118
- package/paginator/paginator.umd.js +2280 -118
- 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 +92 -28
- package/paginator/rowsperpagedropdown.umd.js +92 -28
- 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 -17
- package/picklist/picklist.umd.js +57 -17
- 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 -14
- package/radiobutton/radiobutton.umd.js +26 -14
- 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 +198 -59
- package/resources/themes/arya-green/theme.css +198 -59
- package/resources/themes/arya-orange/theme.css +198 -59
- package/resources/themes/arya-purple/theme.css +198 -59
- package/resources/themes/bootstrap4-dark-blue/theme.css +179 -47
- package/resources/themes/bootstrap4-dark-purple/theme.css +179 -47
- package/resources/themes/bootstrap4-light-blue/theme.css +179 -47
- package/resources/themes/bootstrap4-light-purple/theme.css +179 -47
- package/resources/themes/fluent-light/theme.css +202 -63
- 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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -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 +5421 -0
- package/resources/themes/luna-amber/theme.css +195 -63
- package/resources/themes/luna-blue/theme.css +195 -63
- package/resources/themes/luna-green/theme.css +195 -63
- package/resources/themes/luna-pink/theme.css +195 -63
- package/resources/themes/md-dark-deeppurple/theme.css +382 -87
- package/resources/themes/md-dark-indigo/theme.css +382 -87
- package/resources/themes/md-light-deeppurple/theme.css +382 -87
- package/resources/themes/md-light-indigo/theme.css +382 -87
- package/resources/themes/mdc-dark-deeppurple/theme.css +382 -87
- package/resources/themes/mdc-dark-indigo/theme.css +382 -87
- package/resources/themes/mdc-light-deeppurple/theme.css +382 -87
- package/resources/themes/mdc-light-indigo/theme.css +382 -87
- package/resources/themes/nova/theme.css +195 -63
- package/resources/themes/nova-accent/theme.css +195 -63
- package/resources/themes/nova-alt/theme.css +195 -63
- package/resources/themes/nova-vue/theme.css +195 -63
- package/resources/themes/rhea/theme.css +195 -63
- package/resources/themes/saga-blue/theme.css +182 -43
- package/resources/themes/saga-green/theme.css +182 -43
- package/resources/themes/saga-orange/theme.css +182 -43
- package/resources/themes/saga-purple/theme.css +182 -43
- 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 +5496 -0
- package/resources/themes/vela-blue/theme.css +198 -59
- package/resources/themes/vela-green/theme.css +198 -59
- package/resources/themes/vela-orange/theme.css +198 -59
- package/resources/themes/vela-purple/theme.css +198 -59
- 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 -16
- package/selectbutton/selectbutton.umd.js +55 -16
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.vue +5 -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.common.js +27 -0
- package/styleclass/styleclass.umd.js +27 -0
- 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 -18
- package/tabview/tabview.umd.js +124 -18
- package/tabview/tabview.umd.min.js +1 -1
- package/tag/Tag.vue +1 -1
- package/tag/tag.common.js +3 -3
- package/tag/tag.umd.js +3 -3
- package/tag/tag.umd.min.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/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 -14
- package/timeline/timeline.umd.js +26 -14
- 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 +1760 -69
- package/tooltip/tooltip.umd.js +1760 -69
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/Tree.vue +1 -0
- package/tree/TreeNode.vue +5 -1
- package/tree/tree.common.js +68 -32
- package/tree/tree.umd.js +68 -32
- 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/FooterCell.vue +81 -0
- package/treetable/HeaderCell.vue +183 -0
- package/treetable/TreeTable.d.ts +3 -2
- package/treetable/TreeTable.vue +73 -114
- package/treetable/TreeTableRow.vue +7 -4
- package/treetable/footercell.common.js +5304 -0
- package/treetable/footercell.umd.js +5314 -0
- package/treetable/footercell.umd.min.js +1 -0
- package/treetable/headercell.common.js +5533 -0
- package/treetable/headercell.umd.js +5543 -0
- package/treetable/headercell.umd.min.js +1 -0
- package/treetable/treetable.common.js +3795 -1558
- package/treetable/treetable.umd.js +3795 -1558
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +58 -22
- package/treetable/treetablerow.umd.js +58 -22
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +61 -26
- package/treetable/treetablerowloader.umd.js +61 -26
- 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 +1774 -0
- package/utils/eventbus.umd.js +1784 -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 -13
- package/utils/objectutils.umd.js +25 -13
- package/utils/objectutils.umd.min.js +1 -1
- package/utils/utils.common.js +5486 -0
- package/utils/utils.umd.js +5496 -0
- package/utils/utils.umd.min.js +1 -0
- package/vetur-attributes.json +156 -20
- package/vetur-tags.json +60 -21
- package/web-types.json +497 -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/dock/docksub.umd.js
CHANGED
|
@@ -163,14 +163,17 @@ if (typeof window !== 'undefined') {
|
|
|
163
163
|
// Indicate to webpack that this file can be concatenated
|
|
164
164
|
/* harmony default export */ var setPublicPath = (null);
|
|
165
165
|
|
|
166
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
167
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{ref:"list",staticClass:"p-dock-list",attrs:{"role":"menu"},on:{"mouseleave":_vm.onListMouseLeave}},_vm._l((_vm.model),function(item,index){return _c('li',{key:index,class:_vm.itemClass(index),attrs:{"role":"none"},on:{"mouseenter":function($event){return _vm.onItemMouseEnter(index)}}},[(_vm.templates['item'])?_c('DockSubTemplate',{attrs:{"item":item,"template":_vm.templates['item']}}):[(item.to && !
|
|
166
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b9fe9a72-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/dock/DockSub.vue?vue&type=template&id=77d6d77e&
|
|
167
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"p-dock-list-container"},[_c('ul',{ref:"list",staticClass:"p-dock-list",attrs:{"role":"menu"},on:{"mouseleave":_vm.onListMouseLeave}},_vm._l((_vm.model),function(item,index){return _c('li',{key:index,class:_vm.itemClass(index),attrs:{"role":"none"},on:{"mouseenter":function($event){return _vm.onItemMouseEnter(index)}}},[(_vm.templates['item'])?_c('DockSubTemplate',{attrs:{"item":item,"template":_vm.templates['item']}}):[(item.to && !_vm.disabled(item))?_c('router-link',{attrs:{"to":item.to,"custom":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
168
|
+
var navigate = ref.navigate;
|
|
168
169
|
var href = ref.href;
|
|
169
|
-
|
|
170
|
+
var isActive = ref.isActive;
|
|
171
|
+
var isExactActive = ref.isExactActive;
|
|
172
|
+
return [_c('a',{directives:[{name:"tooltip",rawName:"v-tooltip:[tooltipOptions]",value:({value: item.label, disabled: !_vm.tooltipOptions}),expression:"{value: item.label, disabled: !tooltipOptions}",arg:_vm.tooltipOptions}],class:_vm.linkClass(item, {isActive: isActive, isExactActive: isExactActive}),attrs:{"href":href,"role":"menuitem","target":item.target},on:{"click":function($event){return _vm.onItemClick($event, item, navigate)}}},[(typeof item.icon === 'string')?[_c('span',{directives:[{name:"ripple",rawName:"v-ripple"}],class:['p-dock-action-icon', item.icon]})]:_c('DockSubIconTemplate',{attrs:{"icon":item.icon}})],2)]}}],null,true)}):_c('a',{directives:[{name:"tooltip",rawName:"v-tooltip:[tooltipOptions]",value:({value: item.label, disabled: !_vm.tooltipOptions}),expression:"{value: item.label, disabled: !tooltipOptions}",arg:_vm.tooltipOptions}],class:_vm.linkClass(item),attrs:{"href":item.url,"role":"menuitem","target":item.target,"tabindex":_vm.disabled(item) ? null : '0'},on:{"click":function($event){return _vm.onItemClick($event, item)}}},[(typeof item.icon === 'string')?[_c('span',{directives:[{name:"ripple",rawName:"v-ripple"}],class:['p-dock-action-icon', item.icon]})]:_c('DockSubIconTemplate',{attrs:{"icon":item.icon}})],2)]],2)}),0)])}
|
|
170
173
|
var staticRenderFns = []
|
|
171
174
|
|
|
172
175
|
|
|
173
|
-
// CONCATENATED MODULE: ./src/components/dock/DockSub.vue?vue&type=template&id=
|
|
176
|
+
// CONCATENATED MODULE: ./src/components/dock/DockSub.vue?vue&type=template&id=77d6d77e&
|
|
174
177
|
|
|
175
178
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dock/DockSub.vue?vue&type=script&lang=js&
|
|
176
179
|
//
|
|
@@ -199,6 +202,8 @@ var staticRenderFns = []
|
|
|
199
202
|
//
|
|
200
203
|
//
|
|
201
204
|
//
|
|
205
|
+
//
|
|
206
|
+
//
|
|
202
207
|
var DockSubIconTemplate = {
|
|
203
208
|
functional: true,
|
|
204
209
|
props: {
|
|
@@ -240,6 +245,11 @@ var DockSubTemplate = {
|
|
|
240
245
|
templates: {
|
|
241
246
|
type: null,
|
|
242
247
|
default: null
|
|
248
|
+
},
|
|
249
|
+
tooltipOptions: null,
|
|
250
|
+
exact: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
default: true
|
|
243
253
|
}
|
|
244
254
|
},
|
|
245
255
|
data: function data() {
|
|
@@ -254,15 +264,19 @@ var DockSubTemplate = {
|
|
|
254
264
|
onItemMouseEnter: function onItemMouseEnter(index) {
|
|
255
265
|
this.currentIndex = index;
|
|
256
266
|
},
|
|
257
|
-
onItemClick: function onItemClick(
|
|
267
|
+
onItemClick: function onItemClick(event, item) {
|
|
268
|
+
if (this.disabled(item)) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
|
|
258
272
|
if (item.command) {
|
|
259
273
|
item.command({
|
|
260
|
-
originalEvent:
|
|
274
|
+
originalEvent: event,
|
|
261
275
|
item: item
|
|
262
276
|
});
|
|
263
277
|
}
|
|
264
278
|
|
|
265
|
-
|
|
279
|
+
event.preventDefault();
|
|
266
280
|
},
|
|
267
281
|
itemClass: function itemClass(index) {
|
|
268
282
|
return ['p-dock-item', {
|
|
@@ -272,6 +286,16 @@ var DockSubTemplate = {
|
|
|
272
286
|
'p-dock-item-next': this.currentIndex + 1 === index,
|
|
273
287
|
'p-dock-item-second-next': this.currentIndex + 2 === index
|
|
274
288
|
}];
|
|
289
|
+
},
|
|
290
|
+
linkClass: function linkClass(item, routerProps) {
|
|
291
|
+
return ['p-dock-action', {
|
|
292
|
+
'p-disabled': this.disabled(item),
|
|
293
|
+
'router-link-active': routerProps && routerProps.isActive,
|
|
294
|
+
'router-link-active-exact': this.exact && routerProps && routerProps.isExactActive
|
|
295
|
+
}];
|
|
296
|
+
},
|
|
297
|
+
disabled: function disabled(item) {
|
|
298
|
+
return typeof item.disabled === 'function' ? item.disabled() : item.disabled;
|
|
275
299
|
}
|
|
276
300
|
},
|
|
277
301
|
components: {
|
package/dock/docksub.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["docksub"]=t():e["docksub"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["docksub"]=t():e["docksub"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(o){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},fb15:function(e,t,n){"use strict";var o;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1]));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-dock-list-container"},[n("ul",{ref:"list",staticClass:"p-dock-list",attrs:{role:"menu"},on:{mouseleave:e.onListMouseLeave}},e._l(e.model,(function(t,o){return n("li",{key:o,class:e.itemClass(o),attrs:{role:"none"},on:{mouseenter:function(t){return e.onItemMouseEnter(o)}}},[e.templates["item"]?n("DockSubTemplate",{attrs:{item:t,template:e.templates["item"]}}):[t.to&&!e.disabled(t)?n("router-link",{attrs:{to:t.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(o){var i=o.navigate,r=o.href,l=o.isActive,a=o.isExactActive;return[n("a",{directives:[{name:"tooltip",rawName:"v-tooltip:[tooltipOptions]",value:{value:t.label,disabled:!e.tooltipOptions},expression:"{value: item.label, disabled: !tooltipOptions}",arg:e.tooltipOptions}],class:e.linkClass(t,{isActive:l,isExactActive:a}),attrs:{href:r,role:"menuitem",target:t.target},on:{click:function(n){return e.onItemClick(n,t,i)}}},["string"===typeof t.icon?[n("span",{directives:[{name:"ripple",rawName:"v-ripple"}],class:["p-dock-action-icon",t.icon]})]:n("DockSubIconTemplate",{attrs:{icon:t.icon}})],2)]}}],null,!0)}):n("a",{directives:[{name:"tooltip",rawName:"v-tooltip:[tooltipOptions]",value:{value:t.label,disabled:!e.tooltipOptions},expression:"{value: item.label, disabled: !tooltipOptions}",arg:e.tooltipOptions}],class:e.linkClass(t),attrs:{href:t.url,role:"menuitem",target:t.target,tabindex:e.disabled(t)?null:"0"},on:{click:function(n){return e.onItemClick(n,t)}}},["string"===typeof t.icon?[n("span",{directives:[{name:"ripple",rawName:"v-ripple"}],class:["p-dock-action-icon",t.icon]})]:n("DockSubIconTemplate",{attrs:{icon:t.icon}})],2)]],2)})),0)])},r=[],l={functional:!0,props:{icon:{type:null,default:null}},render:function(e,t){return[t.props["icon"]()]}},a={functional:!0,props:{item:{type:null,default:null},template:{type:null,default:null}},render:function(e,t){var n=t.props.template({item:t.props.item});return[n]}},s={name:"DockSub",props:{model:{type:Array,default:null},templates:{type:null,default:null},tooltipOptions:null,exact:{type:Boolean,default:!0}},data:function(){return{currentIndex:-3}},methods:{onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(e){this.currentIndex=e},onItemClick:function(e,t){this.disabled(t)||(t.command&&t.command({originalEvent:e,item:t}),e.preventDefault())},itemClass:function(e){return["p-dock-item",{"p-dock-item-second-prev":this.currentIndex-2===e,"p-dock-item-prev":this.currentIndex-1===e,"p-dock-item-current":this.currentIndex===e,"p-dock-item-next":this.currentIndex+1===e,"p-dock-item-second-next":this.currentIndex+2===e}]},linkClass:function(e,t){return["p-dock-action",{"p-disabled":this.disabled(e),"router-link-active":t&&t.isActive,"router-link-active-exact":this.exact&&t&&t.isExactActive}]},disabled:function(e){return"function"===typeof e.disabled?e.disabled():e.disabled}},components:{DockSubIconTemplate:l,DockSubTemplate:a}},c=s;function u(e,t,n,o,i,r,l,a){var s,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),l?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},c._ssrRegister=s):i&&(s=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var u=c.render;c.render=function(e,t){return s.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,s):[s]}return{exports:e,options:c}}var p=u(c,i,r,!1,null,null,null),d=p.exports;t["default"]=d}})["default"]}));
|
package/dropdown/Dropdown.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import Vue, { VNode } from 'vue';
|
|
|
3
3
|
declare class Dropdown extends Vue {
|
|
4
4
|
value?: any;
|
|
5
5
|
options?: any[];
|
|
6
|
-
optionLabel?: string;
|
|
7
|
-
optionValue?: any;
|
|
8
|
-
optionDisabled?: boolean;
|
|
6
|
+
optionLabel?: string | ((data: any) => string) | undefined;
|
|
7
|
+
optionValue?: string | ((data: any) => any) | undefined;
|
|
8
|
+
optionDisabled?: string | ((data: any) => boolean) | undefined;
|
|
9
9
|
scrollHeight?: string;
|
|
10
10
|
filter?: boolean;
|
|
11
11
|
filterPlaceholder?: string;
|
|
@@ -29,6 +29,8 @@ declare class Dropdown extends Vue {
|
|
|
29
29
|
$emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this;
|
|
30
30
|
$slot: {
|
|
31
31
|
option: VNode[];
|
|
32
|
+
value: VNode[];
|
|
33
|
+
indicator: VNode[];
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
|
package/dropdown/Dropdown.vue
CHANGED
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
</span>
|
|
14
14
|
<i v-if="showClear && value != null" class="p-dropdown-clear-icon pi pi-times" @click="onClearClick($event)"></i>
|
|
15
15
|
<div class="p-dropdown-trigger" role="button" aria-haspopup="listbox" :aria-expanded="overlayVisible">
|
|
16
|
-
<
|
|
16
|
+
<slot name="indicator">
|
|
17
|
+
<span class="p-dropdown-trigger-icon pi pi-chevron-down"></span>
|
|
18
|
+
</slot>
|
|
17
19
|
</div>
|
|
18
20
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave">
|
|
19
21
|
<div ref="overlay" class="p-dropdown-panel p-component" v-if="overlayVisible">
|
|
20
22
|
<div class="p-dropdown-header" v-if="filter">
|
|
21
|
-
<div
|
|
23
|
+
<div class="p-dropdown-filter-container">
|
|
22
24
|
<input type="text" ref="filterInput" v-model="filterValue" autoComplete="off" class="p-dropdown-filter p-inputtext p-component" :placeholder="filterPlaceholder" @keydown="onFilterKeyDown" @input="onFilterChange"/>
|
|
23
25
|
<span class="p-dropdown-filter-icon pi pi-search"></span>
|
|
24
26
|
</div>
|
|
@@ -83,6 +85,11 @@ export default {
|
|
|
83
85
|
overlayVisible: false
|
|
84
86
|
};
|
|
85
87
|
},
|
|
88
|
+
watch: {
|
|
89
|
+
value() {
|
|
90
|
+
this.isModelValueChanged = true;
|
|
91
|
+
}
|
|
92
|
+
},
|
|
86
93
|
outsideClickListener: null,
|
|
87
94
|
scrollHandler: null,
|
|
88
95
|
resizeListener: null,
|
|
@@ -90,6 +97,15 @@ export default {
|
|
|
90
97
|
currentSearchChar: null,
|
|
91
98
|
previousSearchChar: null,
|
|
92
99
|
searchValue: null,
|
|
100
|
+
isValueChanged: false,
|
|
101
|
+
updated() {
|
|
102
|
+
if (this.overlayVisible && this.isModelValueChanged) {
|
|
103
|
+
this.scrollValueInView();
|
|
104
|
+
}
|
|
105
|
+
this.isModelValueChanged = false;
|
|
106
|
+
|
|
107
|
+
this.onFilterUpdated();
|
|
108
|
+
},
|
|
93
109
|
beforeDestroy() {
|
|
94
110
|
this.restoreAppend();
|
|
95
111
|
this.unbindOutsideClickListener();
|
|
@@ -371,7 +387,7 @@ export default {
|
|
|
371
387
|
bindResizeListener() {
|
|
372
388
|
if (!this.resizeListener) {
|
|
373
389
|
this.resizeListener = () => {
|
|
374
|
-
if (this.overlayVisible && !DomHandler.
|
|
390
|
+
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
375
391
|
this.hide();
|
|
376
392
|
}
|
|
377
393
|
};
|
|
@@ -393,7 +409,7 @@ export default {
|
|
|
393
409
|
clearTimeout(this.searchTimeout);
|
|
394
410
|
}
|
|
395
411
|
|
|
396
|
-
const char =
|
|
412
|
+
const char = event.key;
|
|
397
413
|
this.previousSearchChar = this.currentSearchChar;
|
|
398
414
|
this.currentSearchChar = char;
|
|
399
415
|
|
|
@@ -455,10 +471,20 @@ export default {
|
|
|
455
471
|
},
|
|
456
472
|
onFilterChange(event) {
|
|
457
473
|
this.$emit('filter', {originalEvent: event, value: event.target.value});
|
|
474
|
+
},
|
|
475
|
+
onFilterUpdated() {
|
|
458
476
|
if (this.overlayVisible) {
|
|
459
477
|
this.alignOverlay();
|
|
460
478
|
}
|
|
461
|
-
}
|
|
479
|
+
},
|
|
480
|
+
scrollValueInView() {
|
|
481
|
+
if (this.$refs.overlay) {
|
|
482
|
+
let selectedItem = DomHandler.findSingle(this.$refs.overlay, 'li.p-highlight');
|
|
483
|
+
if (selectedItem) {
|
|
484
|
+
selectedItem.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
},
|
|
462
488
|
},
|
|
463
489
|
computed: {
|
|
464
490
|
visibleOptions() {
|
|
@@ -497,7 +523,7 @@ export default {
|
|
|
497
523
|
},
|
|
498
524
|
editableInputValue() {
|
|
499
525
|
let selectedOption = this.getSelectedOption();
|
|
500
|
-
if (selectedOption)
|
|
526
|
+
if (selectedOption != null)
|
|
501
527
|
return this.getOptionLabel(selectedOption);
|
|
502
528
|
else
|
|
503
529
|
return this.value;
|
|
@@ -558,6 +584,8 @@ input.p-dropdown-label {
|
|
|
558
584
|
|
|
559
585
|
.p-dropdown-panel {
|
|
560
586
|
position: absolute;
|
|
587
|
+
top: 0;
|
|
588
|
+
left: 0;
|
|
561
589
|
}
|
|
562
590
|
|
|
563
591
|
.p-dropdown-items-wrapper {
|
|
@@ -4399,7 +4399,7 @@ exports = module.exports = __webpack_require__("2350")(false);
|
|
|
4399
4399
|
|
|
4400
4400
|
|
|
4401
4401
|
// module
|
|
4402
|
-
exports.push([module.i, ".p-dropdown{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:-webkit-box;display:-ms-flexbox;display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}", ""]);
|
|
4402
|
+
exports.push([module.i, ".p-dropdown{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:-webkit-box;display:-ms-flexbox;display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}", ""]);
|
|
4403
4403
|
|
|
4404
4404
|
// exports
|
|
4405
4405
|
|
|
@@ -4554,12 +4554,12 @@ if (typeof window !== 'undefined') {
|
|
|
4554
4554
|
// Indicate to webpack that this file can be concatenated
|
|
4555
4555
|
/* harmony default export */ var setPublicPath = (null);
|
|
4556
4556
|
|
|
4557
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4558
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",class:_vm.containerClass,on:{"click":function($event){return _vm.onClick($event)}}},[_c('div',{staticClass:"p-hidden-accessible"},[_c('input',{ref:"focusInput",attrs:{"type":"text","id":_vm.inputId,"readonly":"","disabled":_vm.disabled,"tabindex":_vm.tabindex,"aria-haspopup":"listbox","aria-expanded":_vm.overlayVisible,"aria-labelledby":_vm.ariaLabelledBy},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"keydown":_vm.onKeyDown}})]),(_vm.editable)?_c('input',{staticClass:"p-dropdown-label p-inputtext",attrs:{"type":"text","disabled":_vm.disabled,"placeholder":_vm.placeholder,"aria-haspopup":"listbox","aria-expanded":_vm.overlayVisible},domProps:{"value":_vm.editableInputValue},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"input":_vm.onEditableInput}}):_vm._e(),(!_vm.editable)?_c('span',{class:_vm.labelClass},[_vm._t("value",function(){return [_vm._v("\n "+_vm._s(_vm.label)+"\n ")]},{"value":_vm.value,"placeholder":_vm.placeholder})],2):_vm._e(),(_vm.showClear && _vm.value != null)?_c('i',{staticClass:"p-dropdown-clear-icon pi pi-times",on:{"click":function($event){return _vm.onClearClick($event)}}}):_vm._e(),_c('div',{staticClass:"p-dropdown-trigger",attrs:{"role":"button","aria-haspopup":"listbox","aria-expanded":_vm.overlayVisible}},[_c('span',{staticClass:"p-dropdown-trigger-icon pi pi-chevron-down"})]),_c('transition',{attrs:{"name":"p-connected-overlay"},on:{"enter":_vm.onOverlayEnter,"leave":_vm.onOverlayLeave}},[(_vm.overlayVisible)?_c('div',{ref:"overlay",staticClass:"p-dropdown-panel p-component"},[(_vm.filter)?_c('div',{staticClass:"p-dropdown-header"},[_c('div',{staticClass:"p-dropdown-filter-container"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.filterValue),expression:"filterValue"}],ref:"filterInput",staticClass:"p-dropdown-filter p-inputtext p-component",attrs:{"type":"text","autoComplete":"off","placeholder":_vm.filterPlaceholder},domProps:{"value":(_vm.filterValue)},on:{"keydown":_vm.onFilterKeyDown,"input":[function($event){if($event.target.composing){ return; }_vm.filterValue=$event.target.value},_vm.onFilterChange]}}),_c('span',{staticClass:"p-dropdown-filter-icon pi pi-search"})])]):_vm._e(),_c('div',{ref:"itemsWrapper",staticClass:"p-dropdown-items-wrapper",style:({'max-height': _vm.scrollHeight})},[_c('ul',{staticClass:"p-dropdown-items",attrs:{"role":"listbox"}},[_vm._l((_vm.visibleOptions),function(option,i){return _c('li',{directives:[{name:"ripple",rawName:"v-ripple"}],key:_vm.getOptionRenderKey(option),class:['p-dropdown-item', {'p-highlight': _vm.isSelected(option), 'p-disabled': _vm.isOptionDisabled(option)}],attrs:{"aria-label":_vm.getOptionLabel(option),"role":"option","aria-selected":_vm.isSelected(option)},on:{"click":function($event){return _vm.onOptionSelect($event, option)}}},[_vm._t("option",function(){return [_vm._v("\n "+_vm._s(_vm.getOptionLabel(option))+"\n ")]},{"option":option,"index":i})],2)}),(_vm.filterValue && (!_vm.visibleOptions || (_vm.visibleOptions && _vm.visibleOptions.length === 0)))?_c('li',{staticClass:"p-dropdown-empty-message"},[_vm._v(_vm._s(_vm.emptyFilterMessage))]):_vm._e()],2)])]):_vm._e()])],1)}
|
|
4557
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b9fe9a72-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/dropdown/Dropdown.vue?vue&type=template&id=10b464ad&
|
|
4558
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"container",class:_vm.containerClass,on:{"click":function($event){return _vm.onClick($event)}}},[_c('div',{staticClass:"p-hidden-accessible"},[_c('input',{ref:"focusInput",attrs:{"type":"text","id":_vm.inputId,"readonly":"","disabled":_vm.disabled,"tabindex":_vm.tabindex,"aria-haspopup":"listbox","aria-expanded":_vm.overlayVisible,"aria-labelledby":_vm.ariaLabelledBy},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"keydown":_vm.onKeyDown}})]),(_vm.editable)?_c('input',{staticClass:"p-dropdown-label p-inputtext",attrs:{"type":"text","disabled":_vm.disabled,"placeholder":_vm.placeholder,"aria-haspopup":"listbox","aria-expanded":_vm.overlayVisible},domProps:{"value":_vm.editableInputValue},on:{"focus":_vm.onFocus,"blur":_vm.onBlur,"input":_vm.onEditableInput}}):_vm._e(),(!_vm.editable)?_c('span',{class:_vm.labelClass},[_vm._t("value",function(){return [_vm._v("\n "+_vm._s(_vm.label)+"\n ")]},{"value":_vm.value,"placeholder":_vm.placeholder})],2):_vm._e(),(_vm.showClear && _vm.value != null)?_c('i',{staticClass:"p-dropdown-clear-icon pi pi-times",on:{"click":function($event){return _vm.onClearClick($event)}}}):_vm._e(),_c('div',{staticClass:"p-dropdown-trigger",attrs:{"role":"button","aria-haspopup":"listbox","aria-expanded":_vm.overlayVisible}},[_vm._t("indicator",function(){return [_c('span',{staticClass:"p-dropdown-trigger-icon pi pi-chevron-down"})]})],2),_c('transition',{attrs:{"name":"p-connected-overlay"},on:{"enter":_vm.onOverlayEnter,"leave":_vm.onOverlayLeave}},[(_vm.overlayVisible)?_c('div',{ref:"overlay",staticClass:"p-dropdown-panel p-component"},[(_vm.filter)?_c('div',{staticClass:"p-dropdown-header"},[_c('div',{staticClass:"p-dropdown-filter-container"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.filterValue),expression:"filterValue"}],ref:"filterInput",staticClass:"p-dropdown-filter p-inputtext p-component",attrs:{"type":"text","autoComplete":"off","placeholder":_vm.filterPlaceholder},domProps:{"value":(_vm.filterValue)},on:{"keydown":_vm.onFilterKeyDown,"input":[function($event){if($event.target.composing){ return; }_vm.filterValue=$event.target.value},_vm.onFilterChange]}}),_c('span',{staticClass:"p-dropdown-filter-icon pi pi-search"})])]):_vm._e(),_c('div',{ref:"itemsWrapper",staticClass:"p-dropdown-items-wrapper",style:({'max-height': _vm.scrollHeight})},[_c('ul',{staticClass:"p-dropdown-items",attrs:{"role":"listbox"}},[_vm._l((_vm.visibleOptions),function(option,i){return _c('li',{directives:[{name:"ripple",rawName:"v-ripple"}],key:_vm.getOptionRenderKey(option),class:['p-dropdown-item', {'p-highlight': _vm.isSelected(option), 'p-disabled': _vm.isOptionDisabled(option)}],attrs:{"aria-label":_vm.getOptionLabel(option),"role":"option","aria-selected":_vm.isSelected(option)},on:{"click":function($event){return _vm.onOptionSelect($event, option)}}},[_vm._t("option",function(){return [_vm._v("\n "+_vm._s(_vm.getOptionLabel(option))+"\n ")]},{"option":option,"index":i})],2)}),(_vm.filterValue && (!_vm.visibleOptions || (_vm.visibleOptions && _vm.visibleOptions.length === 0)))?_c('li',{staticClass:"p-dropdown-empty-message"},[_vm._v(_vm._s(_vm.emptyFilterMessage))]):_vm._e()],2)])]):_vm._e()])],1)}
|
|
4559
4559
|
var staticRenderFns = []
|
|
4560
4560
|
|
|
4561
4561
|
|
|
4562
|
-
// CONCATENATED MODULE: ./src/components/dropdown/Dropdown.vue?vue&type=template&id=
|
|
4562
|
+
// CONCATENATED MODULE: ./src/components/dropdown/Dropdown.vue?vue&type=template&id=10b464ad&
|
|
4563
4563
|
|
|
4564
4564
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.symbol.async-iterator.js
|
|
4565
4565
|
var es7_symbol_async_iterator = __webpack_require__("ac4d");
|
|
@@ -4612,6 +4612,11 @@ function _defineProperties(target, props) {
|
|
|
4612
4612
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
4613
4613
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
4614
4614
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
4615
|
+
|
|
4616
|
+
define_property_default()(Constructor, "prototype", {
|
|
4617
|
+
writable: false
|
|
4618
|
+
});
|
|
4619
|
+
|
|
4615
4620
|
return Constructor;
|
|
4616
4621
|
}
|
|
4617
4622
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.find.js
|
|
@@ -5156,6 +5161,12 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5156
5161
|
|
|
5157
5162
|
return visibleFocusableElements;
|
|
5158
5163
|
}
|
|
5164
|
+
}, {
|
|
5165
|
+
key: "getFirstFocusableElement",
|
|
5166
|
+
value: function getFirstFocusableElement(element) {
|
|
5167
|
+
var focusableElements = this.getFocusableElements(element);
|
|
5168
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
5169
|
+
}
|
|
5159
5170
|
}, {
|
|
5160
5171
|
key: "isClickable",
|
|
5161
5172
|
value: function isClickable(element) {
|
|
@@ -5163,6 +5174,17 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5163
5174
|
var parentNode = element.parentElement && element.parentElement.nodeName;
|
|
5164
5175
|
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');
|
|
5165
5176
|
}
|
|
5177
|
+
}, {
|
|
5178
|
+
key: "applyStyle",
|
|
5179
|
+
value: function applyStyle(element, style) {
|
|
5180
|
+
if (typeof style === 'string') {
|
|
5181
|
+
element.style.cssText = style;
|
|
5182
|
+
} else {
|
|
5183
|
+
for (var prop in style) {
|
|
5184
|
+
element.style[prop] = style[prop];
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5166
5188
|
}, {
|
|
5167
5189
|
key: "isIOS",
|
|
5168
5190
|
value: function isIOS() {
|
|
@@ -5173,6 +5195,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5173
5195
|
value: function isAndroid() {
|
|
5174
5196
|
return /(android)/i.test(navigator.userAgent);
|
|
5175
5197
|
}
|
|
5198
|
+
}, {
|
|
5199
|
+
key: "isTouchDevice",
|
|
5200
|
+
value: function isTouchDevice() {
|
|
5201
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5202
|
+
}
|
|
5176
5203
|
}]);
|
|
5177
5204
|
|
|
5178
5205
|
return DomHandler;
|
|
@@ -5246,20 +5273,14 @@ var iterator_default = /*#__PURE__*/__webpack_require__.n(iterator);
|
|
|
5246
5273
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/typeof.js
|
|
5247
5274
|
|
|
5248
5275
|
|
|
5249
|
-
function
|
|
5276
|
+
function _typeof(obj) {
|
|
5250
5277
|
"@babel/helpers - typeof";
|
|
5251
5278
|
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
}
|
|
5257
|
-
typeof_typeof = function _typeof(obj) {
|
|
5258
|
-
return obj && typeof symbol_default.a === "function" && obj.constructor === symbol_default.a && obj !== symbol_default.a.prototype ? "symbol" : typeof obj;
|
|
5259
|
-
};
|
|
5260
|
-
}
|
|
5261
|
-
|
|
5262
|
-
return typeof_typeof(obj);
|
|
5279
|
+
return _typeof = "function" == typeof symbol_default.a && "symbol" == typeof iterator_default.a ? function (obj) {
|
|
5280
|
+
return typeof obj;
|
|
5281
|
+
} : function (obj) {
|
|
5282
|
+
return obj && "function" == typeof symbol_default.a && obj.constructor === symbol_default.a && obj !== symbol_default.a.prototype ? "symbol" : typeof obj;
|
|
5283
|
+
}, _typeof(obj);
|
|
5263
5284
|
}
|
|
5264
5285
|
// CONCATENATED MODULE: ./src/components/utils/ObjectUtils.js
|
|
5265
5286
|
|
|
@@ -5300,7 +5321,7 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5300
5321
|
value: function deepEquals(a, b) {
|
|
5301
5322
|
if (a === b) return true;
|
|
5302
5323
|
|
|
5303
|
-
if (a && b &&
|
|
5324
|
+
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
5304
5325
|
var arrA = Array.isArray(a),
|
|
5305
5326
|
arrB = Array.isArray(b),
|
|
5306
5327
|
i,
|
|
@@ -5502,6 +5523,19 @@ var ObjectUtils_ObjectUtils = /*#__PURE__*/function () {
|
|
|
5502
5523
|
|
|
5503
5524
|
return str;
|
|
5504
5525
|
}
|
|
5526
|
+
}, {
|
|
5527
|
+
key: "getVNodeProp",
|
|
5528
|
+
value: function getVNodeProp(vnode, prop) {
|
|
5529
|
+
var props = vnode._props;
|
|
5530
|
+
|
|
5531
|
+
if (props) {
|
|
5532
|
+
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
5533
|
+
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
5534
|
+
return props[propName];
|
|
5535
|
+
}
|
|
5536
|
+
|
|
5537
|
+
return null;
|
|
5538
|
+
}
|
|
5505
5539
|
}]);
|
|
5506
5540
|
|
|
5507
5541
|
return ObjectUtils;
|
|
@@ -5643,6 +5677,8 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5643
5677
|
//
|
|
5644
5678
|
//
|
|
5645
5679
|
//
|
|
5680
|
+
//
|
|
5681
|
+
//
|
|
5646
5682
|
|
|
5647
5683
|
|
|
5648
5684
|
|
|
@@ -5685,6 +5721,11 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5685
5721
|
overlayVisible: false
|
|
5686
5722
|
};
|
|
5687
5723
|
},
|
|
5724
|
+
watch: {
|
|
5725
|
+
value: function value() {
|
|
5726
|
+
this.isModelValueChanged = true;
|
|
5727
|
+
}
|
|
5728
|
+
},
|
|
5688
5729
|
outsideClickListener: null,
|
|
5689
5730
|
scrollHandler: null,
|
|
5690
5731
|
resizeListener: null,
|
|
@@ -5692,6 +5733,15 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5692
5733
|
currentSearchChar: null,
|
|
5693
5734
|
previousSearchChar: null,
|
|
5694
5735
|
searchValue: null,
|
|
5736
|
+
isValueChanged: false,
|
|
5737
|
+
updated: function updated() {
|
|
5738
|
+
if (this.overlayVisible && this.isModelValueChanged) {
|
|
5739
|
+
this.scrollValueInView();
|
|
5740
|
+
}
|
|
5741
|
+
|
|
5742
|
+
this.isModelValueChanged = false;
|
|
5743
|
+
this.onFilterUpdated();
|
|
5744
|
+
},
|
|
5695
5745
|
beforeDestroy: function beforeDestroy() {
|
|
5696
5746
|
this.restoreAppend();
|
|
5697
5747
|
this.unbindOutsideClickListener();
|
|
@@ -5986,7 +6036,7 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
5986
6036
|
|
|
5987
6037
|
if (!this.resizeListener) {
|
|
5988
6038
|
this.resizeListener = function () {
|
|
5989
|
-
if (_this4.overlayVisible && !DomHandler_DomHandler.
|
|
6039
|
+
if (_this4.overlayVisible && !DomHandler_DomHandler.isTouchDevice()) {
|
|
5990
6040
|
_this4.hide();
|
|
5991
6041
|
}
|
|
5992
6042
|
};
|
|
@@ -6011,7 +6061,7 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6011
6061
|
clearTimeout(this.searchTimeout);
|
|
6012
6062
|
}
|
|
6013
6063
|
|
|
6014
|
-
var char =
|
|
6064
|
+
var char = event.key;
|
|
6015
6065
|
this.previousSearchChar = this.currentSearchChar;
|
|
6016
6066
|
this.currentSearchChar = char;
|
|
6017
6067
|
if (this.previousSearchChar === this.currentSearchChar) this.searchValue = this.currentSearchChar;else this.searchValue = this.searchValue ? this.searchValue + char : char;
|
|
@@ -6066,10 +6116,23 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6066
6116
|
originalEvent: event,
|
|
6067
6117
|
value: event.target.value
|
|
6068
6118
|
});
|
|
6069
|
-
|
|
6119
|
+
},
|
|
6120
|
+
onFilterUpdated: function onFilterUpdated() {
|
|
6070
6121
|
if (this.overlayVisible) {
|
|
6071
6122
|
this.alignOverlay();
|
|
6072
6123
|
}
|
|
6124
|
+
},
|
|
6125
|
+
scrollValueInView: function scrollValueInView() {
|
|
6126
|
+
if (this.$refs.overlay) {
|
|
6127
|
+
var selectedItem = DomHandler_DomHandler.findSingle(this.$refs.overlay, 'li.p-highlight');
|
|
6128
|
+
|
|
6129
|
+
if (selectedItem) {
|
|
6130
|
+
selectedItem.scrollIntoView({
|
|
6131
|
+
block: 'nearest',
|
|
6132
|
+
inline: 'start'
|
|
6133
|
+
});
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6073
6136
|
}
|
|
6074
6137
|
},
|
|
6075
6138
|
computed: {
|
|
@@ -6101,7 +6164,7 @@ function Dropdownvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len ==
|
|
|
6101
6164
|
},
|
|
6102
6165
|
editableInputValue: function editableInputValue() {
|
|
6103
6166
|
var selectedOption = this.getSelectedOption();
|
|
6104
|
-
if (selectedOption) return this.getOptionLabel(selectedOption);else return this.value;
|
|
6167
|
+
if (selectedOption != null) return this.getOptionLabel(selectedOption);else return this.value;
|
|
6105
6168
|
},
|
|
6106
6169
|
equalityKey: function equalityKey() {
|
|
6107
6170
|
return this.optionValue ? null : this.dataKey;
|