primevue 2.4.2 → 2.7.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.vue +8 -1
- package/accordion/accordion.common.js +9 -3
- package/accordion/accordion.umd.js +9 -3
- package/accordion/accordion.umd.min.js +1 -1
- package/accordiontab/AccordionTab.vue +2 -2
- package/accordiontab/accordiontab.common.js +9 -4
- package/accordiontab/accordiontab.umd.js +9 -4
- package/accordiontab/accordiontab.umd.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +1 -0
- package/autocomplete/AutoComplete.vue +8 -0
- package/autocomplete/autocomplete.common.js +21 -3
- package/autocomplete/autocomplete.umd.js +21 -3
- 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 +5 -0
- package/badgedirective/badgedirective.umd.js +5 -0
- package/badgedirective/badgedirective.umd.min.js +1 -1
- package/blockui/BlockUI.vue +6 -16
- package/blockui/blockui.common.js +16 -16
- package/blockui/blockui.umd.js +16 -16
- package/blockui/blockui.umd.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +1 -0
- package/breadcrumb/Breadcrumb.vue +11 -3
- package/breadcrumb/BreadcrumbItem.vue +30 -11
- package/breadcrumb/breadcrumb.common.js +45 -17
- package/breadcrumb/breadcrumb.umd.js +45 -17
- 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 +6 -1
- package/button/button.umd.js +6 -1
- package/button/button.umd.min.js +1 -1
- package/calendar/Calendar.d.ts +5 -0
- package/calendar/Calendar.vue +321 -69
- package/calendar/calendar.common.js +340 -42
- package/calendar/calendar.umd.js +340 -42
- 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 +8 -3
- package/carousel/carousel.umd.js +8 -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 +15 -4
- package/cascadeselect/cascadeselect.umd.js +15 -4
- package/cascadeselect/cascadeselect.umd.min.js +1 -1
- package/cascadeselect/cascadeselectsub.common.js +10 -1
- package/cascadeselect/cascadeselectsub.umd.js +10 -1
- package/cascadeselect/cascadeselectsub.umd.min.js +1 -1
- package/cascadeselect/demo.html +3 -4
- package/chart/Chart.vue +22 -13
- package/chart/chart.common.1.js +12825 -0
- package/chart/chart.common.js +1040 -37026
- package/chart/chart.umd.1.js +12825 -0
- package/chart/chart.umd.js +1040 -37026
- package/chart/chart.umd.min.1.js +7 -0
- package/chart/chart.umd.min.js +1 -278
- package/checkbox/Checkbox.css +1 -0
- package/checkbox/Checkbox.d.ts +2 -0
- package/checkbox/Checkbox.vue +11 -3
- package/checkbox/checkbox.common.js +17 -5
- package/checkbox/checkbox.umd.js +17 -5
- 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 +6 -1
- package/colorpicker/colorpicker.umd.js +6 -1
- package/colorpicker/colorpicker.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.common.js +4 -0
- package/config/primevue.umd.js +4 -0
- 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 +437 -38
- package/confirmdialog/confirmdialog.umd.js +437 -38
- 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 +513 -13
- package/confirmpopup/confirmpopup.umd.js +513 -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 +46 -14
- package/contextmenu/contextmenu.umd.js +46 -14
- package/contextmenu/contextmenu.umd.min.js +1 -1
- package/contextmenu/contextmenusub.common.js +36 -8
- package/contextmenu/contextmenusub.umd.js +36 -8
- package/contextmenu/contextmenusub.umd.min.js +1 -1
- package/contextmenu/demo.html +4 -3
- package/datatable/BodyCell.vue +9 -5
- package/datatable/DataTable.d.ts +10 -9
- package/datatable/DataTable.vue +27 -19
- package/datatable/TableBody.vue +18 -5
- package/datatable/bodycell.common.js +21 -9
- package/datatable/bodycell.umd.js +21 -9
- package/datatable/bodycell.umd.min.js +1 -1
- package/datatable/datatable.common.js +1993 -89
- package/datatable/datatable.umd.js +1993 -89
- package/datatable/datatable.umd.min.js +1 -1
- 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/scrollableview.common.js +7 -2
- package/datatable/scrollableview.umd.js +7 -2
- package/datatable/scrollableview.umd.min.js +1 -1
- package/datatable/tablebody.common.js +44 -15
- package/datatable/tablebody.umd.js +44 -15
- package/datatable/tablebody.umd.min.js +1 -1
- package/datatable/tablefooter.common.js +1 -1
- package/datatable/tablefooter.umd.js +1 -1
- package/datatable/tableheader.common.js +7 -2
- package/datatable/tableheader.umd.js +7 -2
- package/datatable/tableheader.umd.min.js +1 -1
- package/datatable/tableloadingbody.common.js +1 -1
- package/datatable/tableloadingbody.umd.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +10 -10
- package/dataview/dataview.common.js +1937 -65
- package/dataview/dataview.umd.js +1937 -65
- 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.vue +1 -7
- package/deferredcontent/deferredcontent.common.js +2 -2
- package/deferredcontent/deferredcontent.umd.js +2 -2
- package/dialog/Dialog.vue +35 -21
- package/dialog/dialog.common.js +42 -18
- package/dialog/dialog.umd.js +42 -18
- 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 +15 -0
- package/dock/Dock.vue +173 -0
- package/dock/DockSub.vue +132 -0
- package/dock/demo.html +17 -0
- package/dock/dock.common.js +917 -0
- package/dock/dock.umd.js +927 -0
- package/dock/dock.umd.min.js +1 -0
- package/dock/docksub.common.js +428 -0
- package/dock/docksub.umd.js +438 -0
- package/dock/docksub.umd.min.js +1 -0
- package/dock/index.d.ts +1 -0
- package/dock/index.js +2 -0
- package/dock/plugin.js +4 -0
- package/dropdown/Dropdown.d.ts +5 -3
- package/dropdown/Dropdown.vue +31 -5
- package/dropdown/dropdown.common.js +44 -6
- package/dropdown/dropdown.umd.js +44 -6
- 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 +6 -1
- package/fieldset/fieldset.umd.js +6 -1
- package/fieldset/fieldset.umd.min.js +1 -1
- package/fileupload/FileUpload.d.ts +2 -0
- package/fileupload/FileUpload.vue +12 -7
- package/fileupload/fileupload.common.js +42 -23
- package/fileupload/fileupload.umd.js +42 -23
- package/fileupload/fileupload.umd.min.js +1 -1
- package/fullcalendar/fullcalendar.common.js +1573 -777
- package/fullcalendar/fullcalendar.umd.js +1573 -777
- package/fullcalendar/fullcalendar.umd.min.js +5 -5
- package/galleria/Galleria.vue +3 -8
- package/galleria/GalleriaContent.vue +9 -0
- package/galleria/galleria.common.js +31 -13
- package/galleria/galleria.umd.js +31 -13
- package/galleria/galleria.umd.min.js +1 -1
- package/galleria/galleriacontent.common.js +18 -4
- package/galleria/galleriacontent.umd.js +18 -4
- package/galleria/galleriacontent.umd.min.js +1 -1
- package/galleria/galleriaitem.common.js +6 -1
- package/galleria/galleriaitem.umd.js +6 -1
- package/galleria/galleriaitem.umd.min.js +1 -1
- package/galleria/galleriathumbnails.common.js +6 -1
- package/galleria/galleriathumbnails.umd.js +6 -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/imagepreview/imagepreview.common.js +4083 -0
- package/imagepreview/imagepreview.umd.js +4093 -0
- 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 +7 -2
- package/inplace/inplace.umd.js +7 -2
- package/inplace/inplace.umd.min.js +1 -1
- package/inputmask/InputMask.vue +7 -5
- package/inputmask/inputmask.common.js +19 -6
- package/inputmask/inputmask.umd.js +19 -6
- package/inputmask/inputmask.umd.min.js +1 -1
- package/inputnumber/InputNumber.vue +183 -62
- package/inputnumber/inputnumber.common.js +228 -104
- package/inputnumber/inputnumber.umd.js +228 -104
- 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 +5 -1
- package/inputtext/inputtext.umd.js +5 -1
- 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 +10 -1
- package/listbox/listbox.umd.js +10 -1
- 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 +52 -10
- package/megamenu/megamenu.umd.js +52 -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 +46 -17
- package/menu/menu.umd.js +46 -17
- package/menu/menu.umd.min.js +1 -1
- package/menu/menuitem.common.js +33 -11
- package/menu/menuitem.umd.js +33 -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 +46 -14
- package/menubar/menubar.umd.js +46 -14
- package/menubar/menubar.umd.min.js +1 -1
- package/menubar/menubarsub.common.js +36 -8
- package/menubar/menubarsub.umd.js +36 -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 +12 -3
- package/message/message.umd.js +12 -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 +20 -5
- package/multiselect/multiselect.umd.js +20 -5
- 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 +15 -4
- package/orderlist/orderlist.umd.js +15 -4
- package/orderlist/orderlist.umd.min.js +1 -1
- package/organizationchart/organizationchart.common.js +11 -2
- package/organizationchart/organizationchart.umd.js +11 -2
- package/organizationchart/organizationchart.umd.min.js +1 -1
- package/organizationchart/organizationchartnode.common.js +6 -1
- package/organizationchart/organizationchartnode.umd.js +6 -1
- package/organizationchart/organizationchartnode.umd.min.js +1 -1
- package/overlaypanel/overlaypanel.common.js +6 -1
- package/overlaypanel/overlaypanel.umd.js +6 -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 +6 -1
- package/paginator/firstpagelink.umd.js +6 -1
- package/paginator/firstpagelink.umd.min.js +1 -1
- package/paginator/jumptopagedropdown.common.js +6476 -0
- package/paginator/jumptopagedropdown.umd.js +6486 -0
- package/paginator/jumptopagedropdown.umd.min.js +1 -0
- package/paginator/jumptopageinput.common.js +7421 -0
- package/paginator/jumptopageinput.umd.js +7431 -0
- package/paginator/jumptopageinput.umd.min.js +1 -0
- package/paginator/lastpagelink.common.js +6 -1
- package/paginator/lastpagelink.umd.js +6 -1
- package/paginator/lastpagelink.umd.min.js +1 -1
- package/paginator/nextpagelink.common.js +6 -1
- package/paginator/nextpagelink.umd.js +6 -1
- package/paginator/nextpagelink.umd.min.js +1 -1
- package/paginator/pagelinks.common.js +6 -1
- package/paginator/pagelinks.umd.js +6 -1
- package/paginator/pagelinks.umd.min.js +1 -1
- package/paginator/paginator.common.js +2264 -125
- package/paginator/paginator.umd.js +2264 -125
- package/paginator/paginator.umd.min.js +1 -1
- package/paginator/prevpagelink.common.js +6 -1
- package/paginator/prevpagelink.umd.js +6 -1
- package/paginator/prevpagelink.umd.min.js +1 -1
- package/paginator/rowsperpagedropdown.common.js +52 -13
- package/paginator/rowsperpagedropdown.umd.js +52 -13
- 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 +7 -2
- package/panel/panel.umd.js +7 -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 +11 -2
- package/password/password.umd.js +11 -2
- package/password/password.umd.min.js +1 -1
- package/picklist/PickList.d.ts +8 -0
- package/picklist/PickList.vue +13 -4
- package/picklist/picklist.common.js +22 -4
- package/picklist/picklist.umd.js +22 -4
- package/picklist/picklist.umd.min.js +1 -1
- package/progressbar/ProgressBar.vue +20 -13
- package/progressbar/progressbar.common.js +11 -6
- package/progressbar/progressbar.umd.js +11 -6
- 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 +5 -1
- package/radiobutton/radiobutton.umd.js +5 -1
- 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 +503 -83
- package/resources/themes/arya-green/theme.css +503 -83
- package/resources/themes/arya-orange/theme.css +503 -83
- package/resources/themes/arya-purple/theme.css +503 -83
- package/resources/themes/bootstrap4-dark-blue/theme.css +500 -87
- package/resources/themes/bootstrap4-dark-purple/theme.css +500 -87
- package/resources/themes/bootstrap4-light-blue/theme.css +490 -77
- package/resources/themes/bootstrap4-light-purple/theme.css +490 -77
- package/resources/themes/fluent-light/theme.css +497 -77
- 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 +500 -87
- package/resources/themes/luna-blue/theme.css +500 -87
- package/resources/themes/luna-green/theme.css +500 -87
- package/resources/themes/luna-pink/theme.css +500 -87
- package/resources/themes/md-dark-deeppurple/theme.css +801 -128
- package/resources/themes/md-dark-indigo/theme.css +801 -128
- package/resources/themes/md-light-deeppurple/theme.css +791 -118
- package/resources/themes/md-light-indigo/theme.css +791 -118
- package/resources/themes/mdc-dark-deeppurple/theme.css +1087 -414
- package/resources/themes/mdc-dark-indigo/theme.css +1035 -362
- package/resources/themes/mdc-light-deeppurple/theme.css +791 -118
- package/resources/themes/mdc-light-indigo/theme.css +791 -118
- package/resources/themes/nova/theme.css +490 -77
- package/resources/themes/nova-accent/theme.css +490 -77
- package/resources/themes/nova-alt/theme.css +490 -77
- package/resources/themes/nova-vue/theme.css +490 -77
- package/resources/themes/rhea/theme.css +490 -77
- package/resources/themes/saga-blue/theme.css +493 -73
- package/resources/themes/saga-green/theme.css +493 -73
- package/resources/themes/saga-orange/theme.css +493 -73
- package/resources/themes/saga-purple/theme.css +493 -73
- 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 +503 -83
- package/resources/themes/vela-green/theme.css +503 -83
- package/resources/themes/vela-orange/theme.css +503 -83
- package/resources/themes/vela-purple/theme.css +503 -83
- package/ripple/ripple.common.js +5 -0
- package/ripple/ripple.umd.js +5 -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 +6 -1
- package/scrollpanel/scrollpanel.umd.js +6 -1
- package/scrollpanel/scrollpanel.umd.min.js +1 -1
- package/scrolltop/scrolltop.common.js +6 -1
- package/scrolltop/scrolltop.umd.js +6 -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 +17 -3
- package/selectbutton/selectbutton.umd.js +17 -3
- package/selectbutton/selectbutton.umd.min.js +1 -1
- package/sidebar/Sidebar.vue +3 -16
- package/sidebar/sidebar.common.js +15 -15
- package/sidebar/sidebar.umd.js +15 -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.common.js +6 -1
- package/slider/slider.umd.js +6 -1
- package/slider/slider.umd.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +31 -0
- package/speeddial/SpeedDial.vue +341 -0
- package/speeddial/demo.html +17 -0
- package/speeddial/index.d.ts +1 -0
- package/speeddial/index.js +2 -0
- package/speeddial/plugin.js +4 -0
- package/speeddial/speeddial.common.js +4741 -0
- package/speeddial/speeddial.umd.js +4751 -0
- package/speeddial/speeddial.umd.min.js +1 -0
- package/splitbutton/splitbutton.common.js +51 -22
- package/splitbutton/splitbutton.umd.js +51 -22
- package/splitbutton/splitbutton.umd.min.js +1 -1
- package/splitter/splitter.common.js +5 -0
- package/splitter/splitter.umd.js +5 -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.d.ts +5 -0
- package/styleclass/StyleClass.js +179 -0
- package/styleclass/demo.html +8 -0
- package/styleclass/index.d.ts +1 -0
- package/styleclass/index.js +2 -0
- package/styleclass/plugin.js +4 -0
- package/styleclass/styleclass.common.js +3576 -0
- package/styleclass/styleclass.umd.js +3586 -0
- package/styleclass/styleclass.umd.min.js +1 -0
- package/tabmenu/TabMenu.d.ts +1 -0
- package/tabmenu/TabMenu.vue +44 -11
- package/tabmenu/tabmenu.common.js +171 -9
- package/tabmenu/tabmenu.umd.js +171 -9
- 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 +86 -5
- package/tabview/tabview.umd.js +86 -5
- 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 +5 -1
- package/textarea/textarea.umd.js +5 -1
- 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 +4 -3
- package/tieredmenu/tieredmenu.common.js +41 -13
- package/tieredmenu/tieredmenu.umd.js +41 -13
- package/tieredmenu/tieredmenu.umd.min.js +1 -1
- package/tieredmenu/tieredmenusub.common.js +31 -7
- package/tieredmenu/tieredmenusub.umd.js +31 -7
- package/tieredmenu/tieredmenusub.umd.min.js +1 -1
- package/timeline/timeline.common.js +5 -1
- package/timeline/timeline.umd.js +5 -1
- package/timeline/timeline.umd.min.js +1 -1
- package/toast/Toast.d.ts +7 -1
- package/toast/Toast.vue +51 -4
- package/toast/ToastMessage.vue +44 -10
- package/toast/toast.common.js +103 -14
- package/toast/toast.umd.js +103 -14
- package/toast/toast.umd.min.js +1 -1
- package/toast/toastmessage.common.js +44 -7
- package/toast/toastmessage.umd.js +44 -7
- package/toast/toastmessage.umd.min.js +1 -1
- package/togglebutton/togglebutton.common.js +6 -1
- package/togglebutton/togglebutton.umd.js +6 -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 +59 -6
- package/tooltip/tooltip.common.js +1763 -70
- package/tooltip/tooltip.umd.js +1763 -70
- package/tooltip/tooltip.umd.min.js +1 -1
- package/tree/TreeNode.vue +5 -1
- package/tree/tree.common.js +23 -8
- package/tree/tree.umd.js +23 -8
- package/tree/tree.umd.min.js +1 -1
- package/tree/treenode.common.js +16 -3
- package/tree/treenode.umd.js +16 -3
- package/tree/treenode.umd.min.js +1 -1
- package/treetable/TreeTable.d.ts +2 -2
- package/treetable/TreeTable.vue +8 -8
- package/treetable/treetable.common.js +1900 -90
- package/treetable/treetable.umd.js +1900 -90
- package/treetable/treetable.umd.min.js +1 -1
- package/treetable/treetablerow.common.js +11 -1
- package/treetable/treetablerow.umd.js +11 -1
- package/treetable/treetablerow.umd.min.js +1 -1
- package/treetable/treetablerowloader.common.js +12 -1
- package/treetable/treetablerowloader.umd.js +12 -1
- package/treetable/treetablerowloader.umd.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.common.js +1 -1
- package/tristatecheckbox/tristatecheckbox.umd.js +1 -1
- package/utils/DomHandler.js +5 -0
- package/utils/EventBus.js +33 -0
- package/utils/connectedoverlayscrollhandler.common.js +5 -0
- package/utils/connectedoverlayscrollhandler.umd.js +5 -0
- package/utils/connectedoverlayscrollhandler.umd.min.js +1 -1
- package/utils/domhandler.common.js +5 -0
- package/utils/domhandler.umd.js +5 -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/filterutils.common.js +4 -0
- package/utils/filterutils.umd.js +4 -0
- package/utils/filterutils.umd.min.js +1 -1
- package/utils/objectutils.common.js +4 -0
- package/utils/objectutils.umd.js +4 -0
- package/utils/objectutils.umd.min.js +1 -1
- package/vetur-attributes.json +236 -16
- package/vetur-tags.json +88 -18
- package/web-types.json +2042 -1266
- package/confirmationservice/confirmationeventbus.common.js +0 -174
- package/confirmationservice/confirmationeventbus.umd.js +0 -184
- package/confirmationservice/confirmationeventbus.umd.min.js +0 -1
package/tabview/TabView.vue
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
<div :class="contentClasses">
|
|
3
|
+
<div class="p-tabview-nav-container">
|
|
4
|
+
<button v-if="scrollable && !backwardIsDisabled" ref="prevBtn" :class="prevButtonClasses" :disabled="backwardIsDisabled" @click="navBackward" type="button" v-ripple>
|
|
5
|
+
<span class="pi pi-chevron-left"></span>
|
|
6
|
+
</button>
|
|
7
|
+
<div ref="content" class="p-tabview-nav-content" @scroll="onScroll">
|
|
8
|
+
<ul ref="nav" class="p-tabview-nav" role="tablist">
|
|
9
|
+
<li role="presentation" v-for="(tab, i) of tabs" :key="getKey(tab, i)" :class="[{'p-highlight': (d_activeIndex === i), 'p-disabled': isTabDisabled(tab)}]">
|
|
10
|
+
<a role="tab" class="p-tabview-nav-link" @click="onTabClick($event, i)" @keydown="onTabKeydown($event, i)" :tabindex="isTabDisabled(tab) ? null : '0'" :aria-selected="d_activeIndex" v-ripple>
|
|
11
|
+
<span class="p-tabview-title" v-if="tab.header">{{tab.header}}</span>
|
|
12
|
+
<TabPanelHeaderSlot :tab="tab" v-if="tab.$scopedSlots.header"/>
|
|
13
|
+
</a>
|
|
14
|
+
</li>
|
|
15
|
+
<li ref="inkbar" class="p-tabview-ink-bar"></li>
|
|
16
|
+
</ul>
|
|
17
|
+
</div>
|
|
18
|
+
<button v-if="scrollable && !forwardIsDisabled" ref="nextBtn" :class="nextButtonClasses" :disabled="forwardIsDisabled" @click="navForward" type="button" v-ripple>
|
|
19
|
+
<span class="pi pi-chevron-right"></span>
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
12
22
|
<div class="p-tabview-panels">
|
|
13
23
|
<slot></slot>
|
|
14
24
|
</div>
|
|
@@ -38,17 +48,25 @@ export default {
|
|
|
38
48
|
activeIndex: {
|
|
39
49
|
type: Number,
|
|
40
50
|
default: 0
|
|
51
|
+
},
|
|
52
|
+
scrollable: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: false
|
|
41
55
|
}
|
|
42
56
|
},
|
|
43
57
|
data() {
|
|
44
58
|
return {
|
|
45
59
|
allChildren: [],
|
|
46
60
|
d_activeIndex: this.activeIndex,
|
|
61
|
+
backwardIsDisabled: true,
|
|
62
|
+
forwardIsDisabled: false
|
|
47
63
|
};
|
|
48
64
|
},
|
|
49
65
|
watch: {
|
|
50
66
|
activeIndex(newValue) {
|
|
51
67
|
this.d_activeIndex = newValue;
|
|
68
|
+
|
|
69
|
+
this.updateScrollBar(newValue);
|
|
52
70
|
}
|
|
53
71
|
},
|
|
54
72
|
mounted() {
|
|
@@ -68,6 +86,8 @@ export default {
|
|
|
68
86
|
originalEvent: event,
|
|
69
87
|
index: i
|
|
70
88
|
});
|
|
89
|
+
|
|
90
|
+
this.updateScrollBar(i);
|
|
71
91
|
}
|
|
72
92
|
|
|
73
93
|
this.$emit('tab-click', {
|
|
@@ -87,14 +107,55 @@ export default {
|
|
|
87
107
|
this.$refs.inkbar.style.left = DomHandler.getOffset(tabHeader).left - DomHandler.getOffset(this.$refs.nav).left + 'px';
|
|
88
108
|
}
|
|
89
109
|
},
|
|
110
|
+
updateScrollBar(index) {
|
|
111
|
+
let tabHeader = this.$refs.nav.children[index];
|
|
112
|
+
tabHeader.scrollIntoView({ block: 'nearest' });
|
|
113
|
+
},
|
|
114
|
+
updateButtonState() {
|
|
115
|
+
const content = this.$refs.content;
|
|
116
|
+
const { scrollLeft, scrollWidth } = content;
|
|
117
|
+
const width = DomHandler.getWidth(content);
|
|
118
|
+
this.backwardIsDisabled = scrollLeft === 0;
|
|
119
|
+
this.forwardIsDisabled = scrollLeft === scrollWidth - width;
|
|
120
|
+
},
|
|
90
121
|
getKey(tab, index) {
|
|
91
122
|
return tab.header ? ObjectUtils.resolveFieldData(tab, tab.header) : index;
|
|
92
123
|
},
|
|
93
124
|
isTabDisabled(tab) {
|
|
94
125
|
return tab.disabled;
|
|
95
126
|
},
|
|
127
|
+
onScroll(event) {
|
|
128
|
+
this.scrollable && this.updateButtonState();
|
|
129
|
+
event.preventDefault();
|
|
130
|
+
},
|
|
131
|
+
getVisibleButtonWidths() {
|
|
132
|
+
const { prevBtn, nextBtn } = this.$refs;
|
|
133
|
+
return [prevBtn, nextBtn].reduce((acc, el) => el ? acc + DomHandler.getWidth(el) : acc, 0);
|
|
134
|
+
},
|
|
135
|
+
navBackward() {
|
|
136
|
+
const content = this.$refs.content;
|
|
137
|
+
const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();
|
|
138
|
+
const pos = content.scrollLeft - width;
|
|
139
|
+
content.scrollLeft = pos <= 0 ? 0 : pos;
|
|
140
|
+
},
|
|
141
|
+
navForward() {
|
|
142
|
+
const content = this.$refs.content;
|
|
143
|
+
const width = DomHandler.getWidth(content) - this.getVisibleButtonWidths();
|
|
144
|
+
const pos = content.scrollLeft + width;
|
|
145
|
+
const lastPos = content.scrollWidth - width;
|
|
146
|
+
content.scrollLeft = pos >= lastPos ? lastPos : pos;
|
|
147
|
+
}
|
|
96
148
|
},
|
|
97
149
|
computed: {
|
|
150
|
+
contentClasses() {
|
|
151
|
+
return ['p-tabview p-component', {'p-tabview-scrollable': this.scrollable}];
|
|
152
|
+
},
|
|
153
|
+
prevButtonClasses() {
|
|
154
|
+
return ['p-tabview-nav-prev p-tabview-nav-btn p-link', {'p-disabled': this.backwardIsDisabled}]
|
|
155
|
+
},
|
|
156
|
+
nextButtonClasses() {
|
|
157
|
+
return ['p-tabview-nav-next p-tabview-nav-btn p-link', {'p-disabled': this.forwardIsDisabled}]
|
|
158
|
+
},
|
|
98
159
|
tabs() {
|
|
99
160
|
let tabs = [];
|
|
100
161
|
|
|
@@ -115,12 +176,28 @@ export default {
|
|
|
115
176
|
</script>
|
|
116
177
|
|
|
117
178
|
<style>
|
|
179
|
+
.p-tabview-nav-container {
|
|
180
|
+
position: relative;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.p-tabview-scrollable .p-tabview-nav-container {
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.p-tabview-nav-content {
|
|
188
|
+
overflow-x: auto;
|
|
189
|
+
overflow-y: hidden;
|
|
190
|
+
scroll-behavior: smooth;
|
|
191
|
+
scrollbar-width: none;
|
|
192
|
+
overscroll-behavior: contain auto;
|
|
193
|
+
}
|
|
194
|
+
|
|
118
195
|
.p-tabview-nav {
|
|
119
196
|
display: flex;
|
|
120
197
|
margin: 0;
|
|
121
198
|
padding: 0;
|
|
122
199
|
list-style-type: none;
|
|
123
|
-
flex
|
|
200
|
+
flex: 1 1 auto;
|
|
124
201
|
}
|
|
125
202
|
|
|
126
203
|
.p-tabview-nav-link {
|
|
@@ -144,5 +221,28 @@ export default {
|
|
|
144
221
|
|
|
145
222
|
.p-tabview-title {
|
|
146
223
|
line-height: 1;
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.p-tabview-nav-btn {
|
|
228
|
+
position: absolute;
|
|
229
|
+
top: 0;
|
|
230
|
+
z-index: 2;
|
|
231
|
+
height: 100%;
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.p-tabview-nav-prev {
|
|
238
|
+
left: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.p-tabview-nav-next {
|
|
242
|
+
right: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.p-tabview-nav-content::-webkit-scrollbar {
|
|
246
|
+
display: none;
|
|
147
247
|
}
|
|
148
248
|
</style>
|
|
@@ -1034,7 +1034,7 @@ exports = module.exports = __webpack_require__("2350")(false);
|
|
|
1034
1034
|
|
|
1035
1035
|
|
|
1036
1036
|
// module
|
|
1037
|
-
exports.push([module.i, ".p-tabview-nav{margin:0;padding:0;list-style-type:none;-ms-flex
|
|
1037
|
+
exports.push([module.i, ".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-scroll-chaining:contain auto;overscroll-behavior:contain auto}.p-tabview-nav{margin:0;padding:0;list-style-type:none;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.p-tabview-nav,.p-tabview-nav-link{display:-webkit-box;display:-ms-flexbox;display:flex}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;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}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}", ""]);
|
|
1038
1038
|
|
|
1039
1039
|
// exports
|
|
1040
1040
|
|
|
@@ -4608,12 +4608,12 @@ if (typeof window !== 'undefined') {
|
|
|
4608
4608
|
// Indicate to webpack that this file can be concatenated
|
|
4609
4609
|
/* harmony default export */ var setPublicPath = (null);
|
|
4610
4610
|
|
|
4611
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4612
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"p-tabview p-
|
|
4611
|
+
// 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/tabview/TabView.vue?vue&type=template&id=170704d5&
|
|
4612
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.contentClasses},[_c('div',{staticClass:"p-tabview-nav-container"},[(_vm.scrollable && !_vm.backwardIsDisabled)?_c('button',{directives:[{name:"ripple",rawName:"v-ripple"}],ref:"prevBtn",class:_vm.prevButtonClasses,attrs:{"disabled":_vm.backwardIsDisabled,"type":"button"},on:{"click":_vm.navBackward}},[_c('span',{staticClass:"pi pi-chevron-left"})]):_vm._e(),_c('div',{ref:"content",staticClass:"p-tabview-nav-content",on:{"scroll":_vm.onScroll}},[_c('ul',{ref:"nav",staticClass:"p-tabview-nav",attrs:{"role":"tablist"}},[_vm._l((_vm.tabs),function(tab,i){return _c('li',{key:_vm.getKey(tab, i),class:[{'p-highlight': (_vm.d_activeIndex === i), 'p-disabled': _vm.isTabDisabled(tab)}],attrs:{"role":"presentation"}},[_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"p-tabview-nav-link",attrs:{"role":"tab","tabindex":_vm.isTabDisabled(tab) ? null : '0',"aria-selected":_vm.d_activeIndex},on:{"click":function($event){return _vm.onTabClick($event, i)},"keydown":function($event){return _vm.onTabKeydown($event, i)}}},[(tab.header)?_c('span',{staticClass:"p-tabview-title"},[_vm._v(_vm._s(tab.header))]):_vm._e(),(tab.$scopedSlots.header)?_c('TabPanelHeaderSlot',{attrs:{"tab":tab}}):_vm._e()],1)])}),_c('li',{ref:"inkbar",staticClass:"p-tabview-ink-bar"})],2)]),(_vm.scrollable && !_vm.forwardIsDisabled)?_c('button',{directives:[{name:"ripple",rawName:"v-ripple"}],ref:"nextBtn",class:_vm.nextButtonClasses,attrs:{"disabled":_vm.forwardIsDisabled,"type":"button"},on:{"click":_vm.navForward}},[_c('span',{staticClass:"pi pi-chevron-right"})]):_vm._e()]),_c('div',{staticClass:"p-tabview-panels"},[_vm._t("default")],2)])}
|
|
4613
4613
|
var staticRenderFns = []
|
|
4614
4614
|
|
|
4615
4615
|
|
|
4616
|
-
// CONCATENATED MODULE: ./src/components/tabview/TabView.vue?vue&type=template&id=
|
|
4616
|
+
// CONCATENATED MODULE: ./src/components/tabview/TabView.vue?vue&type=template&id=170704d5&
|
|
4617
4617
|
|
|
4618
4618
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
|
|
4619
4619
|
var es6_number_constructor = __webpack_require__("c5f6");
|
|
@@ -5224,6 +5224,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5224
5224
|
value: function isAndroid() {
|
|
5225
5225
|
return /(android)/i.test(navigator.userAgent);
|
|
5226
5226
|
}
|
|
5227
|
+
}, {
|
|
5228
|
+
key: "isTouchDevice",
|
|
5229
|
+
value: function isTouchDevice() {
|
|
5230
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5231
|
+
}
|
|
5227
5232
|
}]);
|
|
5228
5233
|
|
|
5229
5234
|
return DomHandler;
|
|
@@ -5236,6 +5241,9 @@ var es6_regexp_search = __webpack_require__("386d");
|
|
|
5236
5241
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
|
|
5237
5242
|
var web_dom_iterable = __webpack_require__("ac6a");
|
|
5238
5243
|
|
|
5244
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
|
|
5245
|
+
var es6_array_iterator = __webpack_require__("cadf");
|
|
5246
|
+
|
|
5239
5247
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
|
|
5240
5248
|
var es6_object_keys = __webpack_require__("456d");
|
|
5241
5249
|
|
|
@@ -5282,6 +5290,7 @@ function typeof_typeof(obj) {
|
|
|
5282
5290
|
|
|
5283
5291
|
|
|
5284
5292
|
|
|
5293
|
+
|
|
5285
5294
|
function ObjectUtils_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = ObjectUtils_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
5286
5295
|
|
|
5287
5296
|
function ObjectUtils_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ObjectUtils_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ObjectUtils_arrayLikeToArray(o, minLen); }
|
|
@@ -5608,6 +5617,16 @@ var Ripple = {
|
|
|
5608
5617
|
//
|
|
5609
5618
|
//
|
|
5610
5619
|
//
|
|
5620
|
+
//
|
|
5621
|
+
//
|
|
5622
|
+
//
|
|
5623
|
+
//
|
|
5624
|
+
//
|
|
5625
|
+
//
|
|
5626
|
+
//
|
|
5627
|
+
//
|
|
5628
|
+
//
|
|
5629
|
+
//
|
|
5611
5630
|
|
|
5612
5631
|
|
|
5613
5632
|
|
|
@@ -5628,17 +5647,24 @@ var TabPanelHeaderSlot = {
|
|
|
5628
5647
|
activeIndex: {
|
|
5629
5648
|
type: Number,
|
|
5630
5649
|
default: 0
|
|
5650
|
+
},
|
|
5651
|
+
scrollable: {
|
|
5652
|
+
type: Boolean,
|
|
5653
|
+
default: false
|
|
5631
5654
|
}
|
|
5632
5655
|
},
|
|
5633
5656
|
data: function data() {
|
|
5634
5657
|
return {
|
|
5635
5658
|
allChildren: [],
|
|
5636
|
-
d_activeIndex: this.activeIndex
|
|
5659
|
+
d_activeIndex: this.activeIndex,
|
|
5660
|
+
backwardIsDisabled: true,
|
|
5661
|
+
forwardIsDisabled: false
|
|
5637
5662
|
};
|
|
5638
5663
|
},
|
|
5639
5664
|
watch: {
|
|
5640
5665
|
activeIndex: function activeIndex(newValue) {
|
|
5641
5666
|
this.d_activeIndex = newValue;
|
|
5667
|
+
this.updateScrollBar(newValue);
|
|
5642
5668
|
}
|
|
5643
5669
|
},
|
|
5644
5670
|
mounted: function mounted() {
|
|
@@ -5657,6 +5683,7 @@ var TabPanelHeaderSlot = {
|
|
|
5657
5683
|
originalEvent: event,
|
|
5658
5684
|
index: i
|
|
5659
5685
|
});
|
|
5686
|
+
this.updateScrollBar(i);
|
|
5660
5687
|
}
|
|
5661
5688
|
|
|
5662
5689
|
this.$emit('tab-click', {
|
|
@@ -5676,14 +5703,68 @@ var TabPanelHeaderSlot = {
|
|
|
5676
5703
|
this.$refs.inkbar.style.left = DomHandler_DomHandler.getOffset(tabHeader).left - DomHandler_DomHandler.getOffset(this.$refs.nav).left + 'px';
|
|
5677
5704
|
}
|
|
5678
5705
|
},
|
|
5706
|
+
updateScrollBar: function updateScrollBar(index) {
|
|
5707
|
+
var tabHeader = this.$refs.nav.children[index];
|
|
5708
|
+
tabHeader.scrollIntoView({
|
|
5709
|
+
block: 'nearest'
|
|
5710
|
+
});
|
|
5711
|
+
},
|
|
5712
|
+
updateButtonState: function updateButtonState() {
|
|
5713
|
+
var content = this.$refs.content;
|
|
5714
|
+
var scrollLeft = content.scrollLeft,
|
|
5715
|
+
scrollWidth = content.scrollWidth;
|
|
5716
|
+
var width = DomHandler_DomHandler.getWidth(content);
|
|
5717
|
+
this.backwardIsDisabled = scrollLeft === 0;
|
|
5718
|
+
this.forwardIsDisabled = scrollLeft === scrollWidth - width;
|
|
5719
|
+
},
|
|
5679
5720
|
getKey: function getKey(tab, index) {
|
|
5680
5721
|
return tab.header ? ObjectUtils_ObjectUtils.resolveFieldData(tab, tab.header) : index;
|
|
5681
5722
|
},
|
|
5682
5723
|
isTabDisabled: function isTabDisabled(tab) {
|
|
5683
5724
|
return tab.disabled;
|
|
5725
|
+
},
|
|
5726
|
+
onScroll: function onScroll(event) {
|
|
5727
|
+
this.scrollable && this.updateButtonState();
|
|
5728
|
+
event.preventDefault();
|
|
5729
|
+
},
|
|
5730
|
+
getVisibleButtonWidths: function getVisibleButtonWidths() {
|
|
5731
|
+
var _this$$refs = this.$refs,
|
|
5732
|
+
prevBtn = _this$$refs.prevBtn,
|
|
5733
|
+
nextBtn = _this$$refs.nextBtn;
|
|
5734
|
+
return [prevBtn, nextBtn].reduce(function (acc, el) {
|
|
5735
|
+
return el ? acc + DomHandler_DomHandler.getWidth(el) : acc;
|
|
5736
|
+
}, 0);
|
|
5737
|
+
},
|
|
5738
|
+
navBackward: function navBackward() {
|
|
5739
|
+
var content = this.$refs.content;
|
|
5740
|
+
var width = DomHandler_DomHandler.getWidth(content) - this.getVisibleButtonWidths();
|
|
5741
|
+
var pos = content.scrollLeft - width;
|
|
5742
|
+
content.scrollLeft = pos <= 0 ? 0 : pos;
|
|
5743
|
+
},
|
|
5744
|
+
navForward: function navForward() {
|
|
5745
|
+
var content = this.$refs.content;
|
|
5746
|
+
var width = DomHandler_DomHandler.getWidth(content) - this.getVisibleButtonWidths();
|
|
5747
|
+
var pos = content.scrollLeft + width;
|
|
5748
|
+
var lastPos = content.scrollWidth - width;
|
|
5749
|
+
content.scrollLeft = pos >= lastPos ? lastPos : pos;
|
|
5684
5750
|
}
|
|
5685
5751
|
},
|
|
5686
5752
|
computed: {
|
|
5753
|
+
contentClasses: function contentClasses() {
|
|
5754
|
+
return ['p-tabview p-component', {
|
|
5755
|
+
'p-tabview-scrollable': this.scrollable
|
|
5756
|
+
}];
|
|
5757
|
+
},
|
|
5758
|
+
prevButtonClasses: function prevButtonClasses() {
|
|
5759
|
+
return ['p-tabview-nav-prev p-tabview-nav-btn p-link', {
|
|
5760
|
+
'p-disabled': this.backwardIsDisabled
|
|
5761
|
+
}];
|
|
5762
|
+
},
|
|
5763
|
+
nextButtonClasses: function nextButtonClasses() {
|
|
5764
|
+
return ['p-tabview-nav-next p-tabview-nav-btn p-link', {
|
|
5765
|
+
'p-disabled': this.forwardIsDisabled
|
|
5766
|
+
}];
|
|
5767
|
+
},
|
|
5687
5768
|
tabs: function tabs() {
|
|
5688
5769
|
var tabs = [];
|
|
5689
5770
|
|
package/tabview/tabview.umd.js
CHANGED
|
@@ -1043,7 +1043,7 @@ exports = module.exports = __webpack_require__("2350")(false);
|
|
|
1043
1043
|
|
|
1044
1044
|
|
|
1045
1045
|
// module
|
|
1046
|
-
exports.push([module.i, ".p-tabview-nav{margin:0;padding:0;list-style-type:none;-ms-flex
|
|
1046
|
+
exports.push([module.i, ".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-scroll-chaining:contain auto;overscroll-behavior:contain auto}.p-tabview-nav{margin:0;padding:0;list-style-type:none;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.p-tabview-nav,.p-tabview-nav-link{display:-webkit-box;display:-ms-flexbox;display:flex}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;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}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}", ""]);
|
|
1047
1047
|
|
|
1048
1048
|
// exports
|
|
1049
1049
|
|
|
@@ -4617,12 +4617,12 @@ if (typeof window !== 'undefined') {
|
|
|
4617
4617
|
// Indicate to webpack that this file can be concatenated
|
|
4618
4618
|
/* harmony default export */ var setPublicPath = (null);
|
|
4619
4619
|
|
|
4620
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4621
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"p-tabview p-
|
|
4620
|
+
// 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/tabview/TabView.vue?vue&type=template&id=170704d5&
|
|
4621
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.contentClasses},[_c('div',{staticClass:"p-tabview-nav-container"},[(_vm.scrollable && !_vm.backwardIsDisabled)?_c('button',{directives:[{name:"ripple",rawName:"v-ripple"}],ref:"prevBtn",class:_vm.prevButtonClasses,attrs:{"disabled":_vm.backwardIsDisabled,"type":"button"},on:{"click":_vm.navBackward}},[_c('span',{staticClass:"pi pi-chevron-left"})]):_vm._e(),_c('div',{ref:"content",staticClass:"p-tabview-nav-content",on:{"scroll":_vm.onScroll}},[_c('ul',{ref:"nav",staticClass:"p-tabview-nav",attrs:{"role":"tablist"}},[_vm._l((_vm.tabs),function(tab,i){return _c('li',{key:_vm.getKey(tab, i),class:[{'p-highlight': (_vm.d_activeIndex === i), 'p-disabled': _vm.isTabDisabled(tab)}],attrs:{"role":"presentation"}},[_c('a',{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"p-tabview-nav-link",attrs:{"role":"tab","tabindex":_vm.isTabDisabled(tab) ? null : '0',"aria-selected":_vm.d_activeIndex},on:{"click":function($event){return _vm.onTabClick($event, i)},"keydown":function($event){return _vm.onTabKeydown($event, i)}}},[(tab.header)?_c('span',{staticClass:"p-tabview-title"},[_vm._v(_vm._s(tab.header))]):_vm._e(),(tab.$scopedSlots.header)?_c('TabPanelHeaderSlot',{attrs:{"tab":tab}}):_vm._e()],1)])}),_c('li',{ref:"inkbar",staticClass:"p-tabview-ink-bar"})],2)]),(_vm.scrollable && !_vm.forwardIsDisabled)?_c('button',{directives:[{name:"ripple",rawName:"v-ripple"}],ref:"nextBtn",class:_vm.nextButtonClasses,attrs:{"disabled":_vm.forwardIsDisabled,"type":"button"},on:{"click":_vm.navForward}},[_c('span',{staticClass:"pi pi-chevron-right"})]):_vm._e()]),_c('div',{staticClass:"p-tabview-panels"},[_vm._t("default")],2)])}
|
|
4622
4622
|
var staticRenderFns = []
|
|
4623
4623
|
|
|
4624
4624
|
|
|
4625
|
-
// CONCATENATED MODULE: ./src/components/tabview/TabView.vue?vue&type=template&id=
|
|
4625
|
+
// CONCATENATED MODULE: ./src/components/tabview/TabView.vue?vue&type=template&id=170704d5&
|
|
4626
4626
|
|
|
4627
4627
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
|
|
4628
4628
|
var es6_number_constructor = __webpack_require__("c5f6");
|
|
@@ -5233,6 +5233,11 @@ var DomHandler_DomHandler = /*#__PURE__*/function () {
|
|
|
5233
5233
|
value: function isAndroid() {
|
|
5234
5234
|
return /(android)/i.test(navigator.userAgent);
|
|
5235
5235
|
}
|
|
5236
|
+
}, {
|
|
5237
|
+
key: "isTouchDevice",
|
|
5238
|
+
value: function isTouchDevice() {
|
|
5239
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
5240
|
+
}
|
|
5236
5241
|
}]);
|
|
5237
5242
|
|
|
5238
5243
|
return DomHandler;
|
|
@@ -5245,6 +5250,9 @@ var es6_regexp_search = __webpack_require__("386d");
|
|
|
5245
5250
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
|
|
5246
5251
|
var web_dom_iterable = __webpack_require__("ac6a");
|
|
5247
5252
|
|
|
5253
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
|
|
5254
|
+
var es6_array_iterator = __webpack_require__("cadf");
|
|
5255
|
+
|
|
5248
5256
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
|
|
5249
5257
|
var es6_object_keys = __webpack_require__("456d");
|
|
5250
5258
|
|
|
@@ -5291,6 +5299,7 @@ function typeof_typeof(obj) {
|
|
|
5291
5299
|
|
|
5292
5300
|
|
|
5293
5301
|
|
|
5302
|
+
|
|
5294
5303
|
function ObjectUtils_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = ObjectUtils_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
5295
5304
|
|
|
5296
5305
|
function ObjectUtils_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return ObjectUtils_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ObjectUtils_arrayLikeToArray(o, minLen); }
|
|
@@ -5617,6 +5626,16 @@ var Ripple = {
|
|
|
5617
5626
|
//
|
|
5618
5627
|
//
|
|
5619
5628
|
//
|
|
5629
|
+
//
|
|
5630
|
+
//
|
|
5631
|
+
//
|
|
5632
|
+
//
|
|
5633
|
+
//
|
|
5634
|
+
//
|
|
5635
|
+
//
|
|
5636
|
+
//
|
|
5637
|
+
//
|
|
5638
|
+
//
|
|
5620
5639
|
|
|
5621
5640
|
|
|
5622
5641
|
|
|
@@ -5637,17 +5656,24 @@ var TabPanelHeaderSlot = {
|
|
|
5637
5656
|
activeIndex: {
|
|
5638
5657
|
type: Number,
|
|
5639
5658
|
default: 0
|
|
5659
|
+
},
|
|
5660
|
+
scrollable: {
|
|
5661
|
+
type: Boolean,
|
|
5662
|
+
default: false
|
|
5640
5663
|
}
|
|
5641
5664
|
},
|
|
5642
5665
|
data: function data() {
|
|
5643
5666
|
return {
|
|
5644
5667
|
allChildren: [],
|
|
5645
|
-
d_activeIndex: this.activeIndex
|
|
5668
|
+
d_activeIndex: this.activeIndex,
|
|
5669
|
+
backwardIsDisabled: true,
|
|
5670
|
+
forwardIsDisabled: false
|
|
5646
5671
|
};
|
|
5647
5672
|
},
|
|
5648
5673
|
watch: {
|
|
5649
5674
|
activeIndex: function activeIndex(newValue) {
|
|
5650
5675
|
this.d_activeIndex = newValue;
|
|
5676
|
+
this.updateScrollBar(newValue);
|
|
5651
5677
|
}
|
|
5652
5678
|
},
|
|
5653
5679
|
mounted: function mounted() {
|
|
@@ -5666,6 +5692,7 @@ var TabPanelHeaderSlot = {
|
|
|
5666
5692
|
originalEvent: event,
|
|
5667
5693
|
index: i
|
|
5668
5694
|
});
|
|
5695
|
+
this.updateScrollBar(i);
|
|
5669
5696
|
}
|
|
5670
5697
|
|
|
5671
5698
|
this.$emit('tab-click', {
|
|
@@ -5685,14 +5712,68 @@ var TabPanelHeaderSlot = {
|
|
|
5685
5712
|
this.$refs.inkbar.style.left = DomHandler_DomHandler.getOffset(tabHeader).left - DomHandler_DomHandler.getOffset(this.$refs.nav).left + 'px';
|
|
5686
5713
|
}
|
|
5687
5714
|
},
|
|
5715
|
+
updateScrollBar: function updateScrollBar(index) {
|
|
5716
|
+
var tabHeader = this.$refs.nav.children[index];
|
|
5717
|
+
tabHeader.scrollIntoView({
|
|
5718
|
+
block: 'nearest'
|
|
5719
|
+
});
|
|
5720
|
+
},
|
|
5721
|
+
updateButtonState: function updateButtonState() {
|
|
5722
|
+
var content = this.$refs.content;
|
|
5723
|
+
var scrollLeft = content.scrollLeft,
|
|
5724
|
+
scrollWidth = content.scrollWidth;
|
|
5725
|
+
var width = DomHandler_DomHandler.getWidth(content);
|
|
5726
|
+
this.backwardIsDisabled = scrollLeft === 0;
|
|
5727
|
+
this.forwardIsDisabled = scrollLeft === scrollWidth - width;
|
|
5728
|
+
},
|
|
5688
5729
|
getKey: function getKey(tab, index) {
|
|
5689
5730
|
return tab.header ? ObjectUtils_ObjectUtils.resolveFieldData(tab, tab.header) : index;
|
|
5690
5731
|
},
|
|
5691
5732
|
isTabDisabled: function isTabDisabled(tab) {
|
|
5692
5733
|
return tab.disabled;
|
|
5734
|
+
},
|
|
5735
|
+
onScroll: function onScroll(event) {
|
|
5736
|
+
this.scrollable && this.updateButtonState();
|
|
5737
|
+
event.preventDefault();
|
|
5738
|
+
},
|
|
5739
|
+
getVisibleButtonWidths: function getVisibleButtonWidths() {
|
|
5740
|
+
var _this$$refs = this.$refs,
|
|
5741
|
+
prevBtn = _this$$refs.prevBtn,
|
|
5742
|
+
nextBtn = _this$$refs.nextBtn;
|
|
5743
|
+
return [prevBtn, nextBtn].reduce(function (acc, el) {
|
|
5744
|
+
return el ? acc + DomHandler_DomHandler.getWidth(el) : acc;
|
|
5745
|
+
}, 0);
|
|
5746
|
+
},
|
|
5747
|
+
navBackward: function navBackward() {
|
|
5748
|
+
var content = this.$refs.content;
|
|
5749
|
+
var width = DomHandler_DomHandler.getWidth(content) - this.getVisibleButtonWidths();
|
|
5750
|
+
var pos = content.scrollLeft - width;
|
|
5751
|
+
content.scrollLeft = pos <= 0 ? 0 : pos;
|
|
5752
|
+
},
|
|
5753
|
+
navForward: function navForward() {
|
|
5754
|
+
var content = this.$refs.content;
|
|
5755
|
+
var width = DomHandler_DomHandler.getWidth(content) - this.getVisibleButtonWidths();
|
|
5756
|
+
var pos = content.scrollLeft + width;
|
|
5757
|
+
var lastPos = content.scrollWidth - width;
|
|
5758
|
+
content.scrollLeft = pos >= lastPos ? lastPos : pos;
|
|
5693
5759
|
}
|
|
5694
5760
|
},
|
|
5695
5761
|
computed: {
|
|
5762
|
+
contentClasses: function contentClasses() {
|
|
5763
|
+
return ['p-tabview p-component', {
|
|
5764
|
+
'p-tabview-scrollable': this.scrollable
|
|
5765
|
+
}];
|
|
5766
|
+
},
|
|
5767
|
+
prevButtonClasses: function prevButtonClasses() {
|
|
5768
|
+
return ['p-tabview-nav-prev p-tabview-nav-btn p-link', {
|
|
5769
|
+
'p-disabled': this.backwardIsDisabled
|
|
5770
|
+
}];
|
|
5771
|
+
},
|
|
5772
|
+
nextButtonClasses: function nextButtonClasses() {
|
|
5773
|
+
return ['p-tabview-nav-next p-tabview-nav-btn p-link', {
|
|
5774
|
+
'p-disabled': this.forwardIsDisabled
|
|
5775
|
+
}];
|
|
5776
|
+
},
|
|
5696
5777
|
tabs: function tabs() {
|
|
5697
5778
|
var tabs = [];
|
|
5698
5779
|
|