primevue 3.47.2 → 3.48.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/README.md +1 -1
- package/accordion/style/accordionstyle.cjs.js +0 -2
- package/accordion/style/accordionstyle.cjs.min.js +1 -1
- package/accordion/style/accordionstyle.esm.js +0 -2
- package/accordion/style/accordionstyle.esm.min.js +1 -1
- package/accordion/style/accordionstyle.js +0 -2
- package/accordion/style/accordionstyle.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +10 -0
- package/autocomplete/AutoComplete.vue +2 -14
- package/autocomplete/BaseAutoComplete.vue +8 -0
- package/autocomplete/autocomplete.cjs.js +10 -5
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +10 -5
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +10 -5
- package/autocomplete/autocomplete.min.js +1 -1
- package/autocomplete/style/autocompletestyle.cjs.js +23 -16
- package/autocomplete/style/autocompletestyle.cjs.min.js +1 -1
- package/autocomplete/style/autocompletestyle.esm.js +23 -16
- package/autocomplete/style/autocompletestyle.esm.min.js +1 -1
- package/autocomplete/style/autocompletestyle.js +23 -16
- package/autocomplete/style/autocompletestyle.min.js +1 -1
- package/avatar/Avatar.vue +1 -1
- package/avatar/avatar.cjs.js +1 -3
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +1 -3
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +1 -3
- package/avatar/avatar.min.js +1 -1
- package/avatar/style/avatarstyle.cjs.js +0 -2
- package/avatar/style/avatarstyle.cjs.min.js +1 -1
- package/avatar/style/avatarstyle.esm.js +0 -2
- package/avatar/style/avatarstyle.esm.min.js +1 -1
- package/avatar/style/avatarstyle.js +0 -2
- package/avatar/style/avatarstyle.min.js +1 -1
- package/avatargroup/AvatarGroup.vue +1 -1
- package/avatargroup/avatargroup.cjs.js +1 -3
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +1 -3
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +1 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/avatargroup/style/avatargroupstyle.cjs.js +0 -2
- package/avatargroup/style/avatargroupstyle.cjs.min.js +1 -1
- package/avatargroup/style/avatargroupstyle.esm.js +0 -2
- package/avatargroup/style/avatargroupstyle.esm.min.js +1 -1
- package/avatargroup/style/avatargroupstyle.js +0 -2
- package/avatargroup/style/avatargroupstyle.min.js +1 -1
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.vue +1 -1
- package/badge/badge.cjs.js +1 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +1 -3
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +1 -3
- package/badge/badge.min.js +1 -1
- package/badge/style/badgestyle.cjs.js +3 -3
- package/badge/style/badgestyle.cjs.min.js +1 -1
- package/badge/style/badgestyle.esm.js +3 -3
- package/badge/style/badgestyle.esm.min.js +1 -1
- package/badge/style/badgestyle.js +3 -3
- package/badge/style/badgestyle.min.js +1 -1
- package/badgedirective/style/badgedirectivestyle.cjs.js +0 -2
- package/badgedirective/style/badgedirectivestyle.cjs.min.js +1 -1
- package/badgedirective/style/badgedirectivestyle.esm.js +0 -2
- package/badgedirective/style/badgedirectivestyle.esm.min.js +1 -1
- package/badgedirective/style/badgedirectivestyle.js +0 -2
- package/badgedirective/style/badgedirectivestyle.min.js +1 -1
- package/basecomponent/BaseComponent.vue +20 -7
- package/basecomponent/basecomponent.cjs.js +16 -8
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +16 -8
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +16 -8
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +0 -4
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +0 -4
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +0 -4
- package/basecomponent/style/basecomponentstyle.min.js +1 -1
- package/basedirective/basedirective.cjs.js +16 -4
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +16 -4
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +16 -4
- package/basedirective/basedirective.min.js +1 -1
- package/baseicon/BaseIcon.vue +1 -6
- package/baseicon/baseicon.cjs.js +0 -5
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +1 -6
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +0 -5
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BlockUI.vue +0 -2
- package/blockui/blockui.cjs.js +0 -2
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +0 -2
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +0 -2
- package/blockui/blockui.min.js +1 -1
- package/blockui/style/blockuistyle.cjs.js +0 -2
- package/blockui/style/blockuistyle.cjs.min.js +1 -1
- package/blockui/style/blockuistyle.esm.js +0 -2
- package/blockui/style/blockuistyle.esm.min.js +1 -1
- package/blockui/style/blockuistyle.js +0 -2
- package/blockui/style/blockuistyle.min.js +1 -1
- package/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/breadcrumb.cjs.js +1 -3
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +1 -3
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +1 -3
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/breadcrumb/style/breadcrumbstyle.cjs.js +0 -2
- package/breadcrumb/style/breadcrumbstyle.cjs.min.js +1 -1
- package/breadcrumb/style/breadcrumbstyle.esm.js +0 -2
- package/breadcrumb/style/breadcrumbstyle.esm.min.js +1 -1
- package/breadcrumb/style/breadcrumbstyle.js +0 -2
- package/breadcrumb/style/breadcrumbstyle.min.js +1 -1
- package/button/Button.d.ts +2 -2
- package/button/Button.vue +1 -1
- package/button/button.cjs.js +0 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +0 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +0 -1
- package/button/button.min.js +1 -1
- package/calendar/BaseCalendar.vue +8 -0
- package/calendar/Calendar.d.ts +10 -0
- package/calendar/Calendar.vue +13 -8
- package/calendar/calendar.cjs.js +23 -11
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +24 -12
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +23 -11
- package/calendar/calendar.min.js +1 -1
- package/calendar/style/calendarstyle.cjs.js +24 -20
- package/calendar/style/calendarstyle.cjs.min.js +1 -1
- package/calendar/style/calendarstyle.esm.js +24 -20
- package/calendar/style/calendarstyle.esm.min.js +1 -1
- package/calendar/style/calendarstyle.js +24 -20
- package/calendar/style/calendarstyle.min.js +1 -1
- package/card/Card.vue +1 -1
- package/card/card.cjs.js +1 -3
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +1 -3
- package/card/card.esm.min.js +1 -1
- package/card/card.js +1 -3
- package/card/card.min.js +1 -1
- package/carousel/style/carouselstyle.cjs.js +0 -2
- package/carousel/style/carouselstyle.cjs.min.js +1 -1
- package/carousel/style/carouselstyle.esm.js +0 -2
- package/carousel/style/carouselstyle.esm.min.js +1 -1
- package/carousel/style/carouselstyle.js +0 -2
- package/carousel/style/carouselstyle.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +8 -0
- package/cascadeselect/CascadeSelect.d.ts +10 -0
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/cascadeselect.cjs.js +9 -3
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +9 -3
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +9 -3
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.cjs.js +4 -4
- package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.esm.js +4 -4
- package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.js +4 -4
- package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
- package/chart/Chart.vue +1 -1
- package/chart/chart.cjs.js +1 -3
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +1 -3
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +1 -3
- package/chart/chart.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +8 -0
- package/checkbox/Checkbox.d.ts +10 -0
- package/checkbox/Checkbox.vue +1 -1
- package/checkbox/checkbox.cjs.js +8 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +8 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +8 -1
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/style/checkboxstyle.cjs.js +3 -3
- package/checkbox/style/checkboxstyle.cjs.min.js +1 -1
- package/checkbox/style/checkboxstyle.esm.js +3 -3
- package/checkbox/style/checkboxstyle.esm.min.js +1 -1
- package/checkbox/style/checkboxstyle.js +3 -3
- package/checkbox/style/checkboxstyle.min.js +1 -1
- package/chip/Chip.vue +1 -1
- package/chip/chip.cjs.js +1 -3
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +1 -3
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +1 -3
- package/chip/chip.min.js +1 -1
- package/chip/style/chipstyle.cjs.js +0 -2
- package/chip/style/chipstyle.cjs.min.js +1 -1
- package/chip/style/chipstyle.esm.js +0 -2
- package/chip/style/chipstyle.esm.min.js +1 -1
- package/chip/style/chipstyle.js +0 -2
- package/chip/style/chipstyle.min.js +1 -1
- package/chips/BaseChips.vue +8 -0
- package/chips/Chips.d.ts +11 -0
- package/chips/Chips.vue +10 -2
- package/chips/chips.cjs.js +18 -4
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +18 -4
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +18 -4
- package/chips/chips.min.js +1 -1
- package/chips/style/chipsstyle.cjs.js +11 -6
- package/chips/style/chipsstyle.cjs.min.js +1 -1
- package/chips/style/chipsstyle.esm.js +11 -6
- package/chips/style/chipsstyle.esm.min.js +1 -1
- package/chips/style/chipsstyle.js +11 -6
- package/chips/style/chipsstyle.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/colorpicker/ColorPicker.vue +11 -8
- package/colorpicker/colorpicker.cjs.js +12 -14
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +12 -14
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +12 -14
- package/colorpicker/colorpicker.min.js +1 -1
- package/colorpicker/style/colorpickerstyle.cjs.js +0 -3
- package/colorpicker/style/colorpickerstyle.cjs.min.js +1 -1
- package/colorpicker/style/colorpickerstyle.esm.js +0 -3
- package/colorpicker/style/colorpickerstyle.esm.min.js +1 -1
- package/colorpicker/style/colorpickerstyle.js +0 -3
- package/colorpicker/style/colorpickerstyle.min.js +1 -1
- package/config/PrimeVue.d.ts +1 -1
- package/config/config.cjs.js +1 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +1 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +1 -1
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.vue +4 -4
- package/confirmdialog/confirmdialog.cjs.js +4 -6
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +4 -6
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +4 -6
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.vue +4 -22
- package/confirmpopup/confirmpopup.cjs.js +4 -6
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +4 -6
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +4 -6
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.cjs.js +0 -3
- package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.esm.js +0 -3
- package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.js +0 -3
- package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
- package/contextmenu/ContextMenu.vue +1 -1
- package/contextmenu/contextmenu.cjs.js +1 -3
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -3
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -3
- package/contextmenu/contextmenu.min.js +1 -1
- package/contextmenu/style/contextmenustyle.cjs.js +0 -3
- package/contextmenu/style/contextmenustyle.cjs.min.js +1 -1
- package/contextmenu/style/contextmenustyle.esm.js +0 -3
- package/contextmenu/style/contextmenustyle.esm.min.js +1 -1
- package/contextmenu/style/contextmenustyle.js +0 -3
- package/contextmenu/style/contextmenustyle.min.js +1 -1
- package/core/core.js +370 -760
- package/core/core.min.js +126 -126
- package/datatable/BodyRow.vue +13 -1
- package/datatable/ColumnFilter.vue +10 -17
- package/datatable/DataTable.vue +2 -2
- package/datatable/HeaderCell.vue +1 -1
- package/datatable/TableBody.vue +5 -2
- package/datatable/datatable.cjs.js +45 -22
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +45 -22
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +45 -22
- package/datatable/datatable.min.js +1 -1
- package/datatable/style/datatablestyle.cjs.js +3 -5
- package/datatable/style/datatablestyle.cjs.min.js +1 -1
- package/datatable/style/datatablestyle.esm.js +3 -5
- package/datatable/style/datatablestyle.esm.min.js +1 -1
- package/datatable/style/datatablestyle.js +3 -5
- package/datatable/style/datatablestyle.min.js +1 -1
- package/dataview/DataView.vue +1 -1
- package/dataview/dataview.cjs.js +1 -3
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +1 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +1 -3
- package/dataview/dataview.min.js +1 -1
- package/dialog/Dialog.vue +11 -5
- package/dialog/dialog.cjs.js +10 -4
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +11 -5
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +10 -4
- package/dialog/dialog.min.js +1 -1
- package/dialog/style/dialogstyle.cjs.js +0 -4
- package/dialog/style/dialogstyle.cjs.min.js +1 -1
- package/dialog/style/dialogstyle.esm.js +0 -4
- package/dialog/style/dialogstyle.esm.min.js +1 -1
- package/dialog/style/dialogstyle.js +0 -4
- package/dialog/style/dialogstyle.min.js +1 -1
- package/divider/Divider.vue +1 -1
- package/divider/divider.cjs.js +1 -3
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +1 -3
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -3
- package/divider/divider.min.js +1 -1
- package/divider/style/dividerstyle.cjs.js +0 -3
- package/divider/style/dividerstyle.cjs.min.js +1 -1
- package/divider/style/dividerstyle.esm.js +0 -3
- package/divider/style/dividerstyle.esm.min.js +1 -1
- package/divider/style/dividerstyle.js +0 -3
- package/divider/style/dividerstyle.min.js +1 -1
- package/dock/Dock.vue +1 -1
- package/dock/dock.cjs.js +1 -3
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +1 -3
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +1 -3
- package/dock/dock.min.js +1 -1
- package/dock/style/dockstyle.cjs.js +0 -2
- package/dock/style/dockstyle.cjs.min.js +1 -1
- package/dock/style/dockstyle.esm.js +0 -2
- package/dock/style/dockstyle.esm.min.js +1 -1
- package/dock/style/dockstyle.js +0 -2
- package/dock/style/dockstyle.min.js +1 -1
- package/dropdown/BaseDropdown.vue +8 -0
- package/dropdown/Dropdown.d.ts +10 -0
- package/dropdown/Dropdown.vue +4 -4
- package/dropdown/dropdown.cjs.js +13 -7
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +12 -6
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +14 -8
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.js +17 -11
- package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
- package/dropdown/style/dropdownstyle.esm.js +17 -11
- package/dropdown/style/dropdownstyle.esm.min.js +1 -1
- package/dropdown/style/dropdownstyle.js +17 -11
- package/dropdown/style/dropdownstyle.min.js +1 -1
- package/editor/Editor.vue +1 -1
- package/editor/editor.cjs.js +1 -3
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +1 -3
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +1 -3
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.vue +12 -8
- package/fieldset/fieldset.cjs.js +13 -11
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +13 -11
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +13 -11
- package/fieldset/fieldset.min.js +1 -1
- package/fieldset/style/fieldsetstyle.cjs.js +0 -2
- package/fieldset/style/fieldsetstyle.cjs.min.js +1 -1
- package/fieldset/style/fieldsetstyle.esm.js +0 -2
- package/fieldset/style/fieldsetstyle.esm.min.js +1 -1
- package/fieldset/style/fieldsetstyle.js +0 -2
- package/fieldset/style/fieldsetstyle.min.js +1 -1
- package/fileupload/FileUpload.vue +4 -4
- package/fileupload/fileupload.cjs.js +4 -10
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +4 -10
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +4 -10
- package/fileupload/fileupload.min.js +1 -1
- package/fileupload/style/fileuploadstyle.cjs.js +0 -2
- package/fileupload/style/fileuploadstyle.cjs.min.js +1 -1
- package/fileupload/style/fileuploadstyle.esm.js +0 -2
- package/fileupload/style/fileuploadstyle.esm.min.js +1 -1
- package/fileupload/style/fileuploadstyle.js +0 -2
- package/fileupload/style/fileuploadstyle.min.js +1 -1
- package/floatlabel/BaseFloatLabel.vue +16 -0
- package/floatlabel/FloatLabel.d.ts +128 -0
- package/floatlabel/FloatLabel.vue +14 -0
- package/floatlabel/floatlabel.cjs.js +37 -0
- package/floatlabel/floatlabel.cjs.min.js +1 -0
- package/floatlabel/floatlabel.esm.js +30 -0
- package/floatlabel/floatlabel.esm.min.js +1 -0
- package/floatlabel/floatlabel.js +37 -0
- package/floatlabel/floatlabel.min.js +1 -0
- package/floatlabel/package.json +9 -0
- package/floatlabel/style/FloatLabelStyle.d.ts +3 -0
- package/floatlabel/style/floatlabelstyle.cjs.js +17 -0
- package/floatlabel/style/floatlabelstyle.cjs.min.js +1 -0
- package/floatlabel/style/floatlabelstyle.esm.js +11 -0
- package/floatlabel/style/floatlabelstyle.esm.min.js +1 -0
- package/floatlabel/style/floatlabelstyle.js +20 -0
- package/floatlabel/style/floatlabelstyle.min.js +1 -0
- package/floatlabel/style/package.json +6 -0
- package/galleria/GalleriaContent.vue +7 -2
- package/galleria/galleria.cjs.js +8 -4
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +8 -4
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +8 -4
- package/galleria/galleria.min.js +1 -1
- package/galleria/style/galleriastyle.cjs.js +0 -3
- package/galleria/style/galleriastyle.cjs.min.js +1 -1
- package/galleria/style/galleriastyle.esm.js +0 -3
- package/galleria/style/galleriastyle.esm.min.js +1 -1
- package/galleria/style/galleriastyle.js +0 -3
- package/galleria/style/galleriastyle.min.js +1 -1
- package/iconfield/BaseIconField.vue +21 -0
- package/iconfield/IconField.d.ts +127 -0
- package/iconfield/IconField.vue +14 -0
- package/iconfield/iconfield.cjs.js +42 -0
- package/iconfield/iconfield.cjs.min.js +1 -0
- package/iconfield/iconfield.esm.js +35 -0
- package/iconfield/iconfield.esm.min.js +1 -0
- package/iconfield/iconfield.js +42 -0
- package/iconfield/iconfield.min.js +1 -0
- package/iconfield/package.json +9 -0
- package/iconfield/style/IconField.d.ts +3 -0
- package/iconfield/style/iconfieldstyle.cjs.js +23 -0
- package/iconfield/style/iconfieldstyle.cjs.min.js +1 -0
- package/iconfield/style/iconfieldstyle.esm.js +17 -0
- package/iconfield/style/iconfieldstyle.esm.min.js +1 -0
- package/iconfield/style/iconfieldstyle.js +26 -0
- package/iconfield/style/iconfieldstyle.min.js +1 -0
- package/iconfield/style/package.json +6 -0
- package/icons/arrowdown/index.cjs.js +3 -15
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +3 -15
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +3 -15
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +6 -13
- package/icons/arrowup/index.cjs.js +3 -15
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +3 -15
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +3 -15
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +6 -13
- package/icons/ban/index.cjs.js +3 -15
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +3 -15
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +3 -15
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +4 -11
- package/icons/exclamationtriangle/index.cjs.js +5 -17
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +5 -17
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +5 -17
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +12 -19
- package/icons/eyeslash/index.cjs.js +3 -15
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +3 -15
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +3 -15
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +6 -13
- package/icons/filter/index.cjs.js +3 -15
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +3 -15
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +3 -15
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +4 -11
- package/icons/filterslash/index.cjs.js +3 -15
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +3 -15
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +3 -15
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +6 -13
- package/icons/infocircle/index.cjs.js +3 -15
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +3 -15
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +3 -15
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +6 -13
- package/icons/pencil/index.cjs.js +3 -15
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +3 -15
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +3 -15
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +4 -11
- package/icons/plus/index.cjs.js +3 -15
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +3 -15
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +3 -15
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +4 -11
- package/icons/refresh/index.cjs.js +3 -15
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +3 -15
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +3 -15
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +6 -13
- package/icons/search/index.cjs.js +3 -15
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +3 -15
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +3 -15
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +6 -13
- package/icons/searchminus/index.cjs.js +3 -15
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +3 -15
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +3 -15
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +6 -13
- package/icons/searchplus/index.cjs.js +3 -15
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +3 -15
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +3 -15
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +6 -13
- package/icons/sortalt/index.cjs.js +6 -18
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -18
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -18
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +10 -17
- package/icons/sortamountdown/index.cjs.js +3 -15
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +3 -15
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +3 -15
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +4 -11
- package/icons/sortamountupalt/index.cjs.js +3 -15
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +3 -15
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +3 -15
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +4 -11
- package/icons/spinner/index.cjs.js +3 -15
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +3 -15
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +3 -15
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +4 -11
- package/icons/star/index.cjs.js +3 -15
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +3 -15
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +3 -15
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +4 -11
- package/icons/starfill/index.cjs.js +3 -15
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +3 -15
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +3 -15
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +4 -11
- package/icons/thlarge/index.cjs.js +3 -15
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +3 -15
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +3 -15
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +6 -13
- package/icons/timescircle/index.cjs.js +3 -15
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +3 -15
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +3 -15
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +6 -13
- package/icons/trash/index.cjs.js +3 -15
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +3 -15
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +3 -15
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +6 -13
- package/icons/undo/index.cjs.js +3 -15
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +3 -15
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +3 -15
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +6 -13
- package/icons/upload/index.cjs.js +3 -15
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +3 -15
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +3 -15
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +6 -13
- package/icons/windowmaximize/index.cjs.js +3 -15
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +3 -15
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +3 -15
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +6 -13
- package/icons/windowminimize/index.cjs.js +3 -15
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +3 -15
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +3 -15
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +6 -13
- package/image/Image.vue +1 -1
- package/image/image.cjs.js +1 -3
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +1 -3
- package/image/image.esm.min.js +1 -1
- package/image/image.js +1 -3
- package/image/image.min.js +1 -1
- package/image/style/imagestyle.cjs.js +0 -2
- package/image/style/imagestyle.cjs.min.js +1 -1
- package/image/style/imagestyle.esm.js +0 -2
- package/image/style/imagestyle.esm.min.js +1 -1
- package/image/style/imagestyle.js +0 -2
- package/image/style/imagestyle.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +1 -1
- package/inlinemessage/style/inlinemessagestyle.cjs.js +0 -2
- package/inlinemessage/style/inlinemessagestyle.cjs.min.js +1 -1
- package/inlinemessage/style/inlinemessagestyle.esm.js +0 -2
- package/inlinemessage/style/inlinemessagestyle.esm.min.js +1 -1
- package/inlinemessage/style/inlinemessagestyle.js +0 -2
- package/inlinemessage/style/inlinemessagestyle.min.js +1 -1
- package/inplace/Inplace.vue +1 -1
- package/inplace/inplace.cjs.js +1 -3
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +1 -3
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +1 -3
- package/inplace/inplace.min.js +1 -1
- package/inplace/style/inplacestyle.cjs.js +0 -2
- package/inplace/style/inplacestyle.cjs.min.js +1 -1
- package/inplace/style/inplacestyle.esm.js +0 -2
- package/inplace/style/inplacestyle.esm.min.js +1 -1
- package/inplace/style/inplacestyle.js +0 -2
- package/inplace/style/inplacestyle.min.js +1 -1
- package/inputgroup/InputGroup.vue +1 -1
- package/inputgroup/inputgroup.cjs.js +1 -3
- package/inputgroup/inputgroup.cjs.min.js +1 -1
- package/inputgroup/inputgroup.esm.js +1 -3
- package/inputgroup/inputgroup.esm.min.js +1 -1
- package/inputgroup/inputgroup.js +1 -3
- package/inputgroup/inputgroup.min.js +1 -1
- package/inputgroupaddon/InputGroupAddon.vue +1 -1
- package/inputgroupaddon/inputgroupaddon.cjs.js +1 -3
- package/inputgroupaddon/inputgroupaddon.cjs.min.js +1 -1
- package/inputgroupaddon/inputgroupaddon.esm.js +1 -3
- package/inputgroupaddon/inputgroupaddon.esm.min.js +1 -1
- package/inputgroupaddon/inputgroupaddon.js +1 -3
- package/inputgroupaddon/inputgroupaddon.min.js +1 -1
- package/inputicon/BaseInputIcon.vue +15 -0
- package/inputicon/InputIcon.d.ts +117 -0
- package/inputicon/InputIcon.vue +12 -0
- package/inputicon/inputicon.cjs.js +34 -0
- package/inputicon/inputicon.cjs.min.js +1 -0
- package/inputicon/inputicon.esm.js +27 -0
- package/inputicon/inputicon.esm.min.js +1 -0
- package/inputicon/inputicon.js +34 -0
- package/inputicon/inputicon.min.js +1 -0
- package/inputicon/package.json +9 -0
- package/inputicon/style/InputIcoonStyle.d.ts +3 -0
- package/inputicon/style/inputiconstyle.cjs.js +5 -0
- package/inputicon/style/inputiconstyle.cjs.min.js +1 -0
- package/inputicon/style/inputiconstyle.esm.js +3 -0
- package/inputicon/style/inputiconstyle.esm.min.js +1 -0
- package/inputicon/style/inputiconstyle.js +10 -0
- package/inputicon/style/inputiconstyle.min.js +1 -0
- package/inputicon/style/package.json +6 -0
- package/inputmask/BaseInputMask.vue +8 -0
- package/inputmask/InputMask.d.ts +10 -0
- package/inputmask/InputMask.vue +1 -1
- package/inputmask/inputmask.cjs.js +9 -3
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +9 -3
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +9 -3
- package/inputmask/inputmask.min.js +1 -1
- package/inputmask/style/inputmaskstyle.cjs.js +5 -2
- package/inputmask/style/inputmaskstyle.cjs.min.js +1 -1
- package/inputmask/style/inputmaskstyle.esm.js +5 -2
- package/inputmask/style/inputmaskstyle.esm.min.js +1 -1
- package/inputmask/style/inputmaskstyle.js +5 -2
- package/inputmask/style/inputmaskstyle.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +8 -0
- package/inputnumber/InputNumber.d.ts +10 -0
- package/inputnumber/InputNumber.vue +3 -26
- package/inputnumber/inputnumber.cjs.js +14 -13
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +14 -13
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +14 -13
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputnumber/style/inputnumberstyle.cjs.js +15 -10
- package/inputnumber/style/inputnumberstyle.cjs.min.js +1 -1
- package/inputnumber/style/inputnumberstyle.esm.js +15 -10
- package/inputnumber/style/inputnumberstyle.esm.min.js +1 -1
- package/inputnumber/style/inputnumberstyle.js +15 -10
- package/inputnumber/style/inputnumberstyle.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +4 -0
- package/inputswitch/InputSwitch.d.ts +5 -0
- package/inputswitch/InputSwitch.vue +1 -1
- package/inputswitch/inputswitch.cjs.js +4 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +4 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +4 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.cjs.js +2 -3
- package/inputswitch/style/inputswitchstyle.cjs.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.esm.js +2 -3
- package/inputswitch/style/inputswitchstyle.esm.min.js +1 -1
- package/inputswitch/style/inputswitchstyle.js +2 -3
- package/inputswitch/style/inputswitchstyle.min.js +1 -1
- package/inputtext/BaseInputText.vue +8 -0
- package/inputtext/InputText.d.ts +10 -0
- package/inputtext/InputText.vue +1 -1
- package/inputtext/inputtext.cjs.js +9 -3
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +9 -3
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +9 -3
- package/inputtext/inputtext.min.js +1 -1
- package/inputtext/style/inputtextstyle.cjs.js +3 -1
- package/inputtext/style/inputtextstyle.cjs.min.js +1 -1
- package/inputtext/style/inputtextstyle.esm.js +3 -1
- package/inputtext/style/inputtextstyle.esm.min.js +1 -1
- package/inputtext/style/inputtextstyle.js +3 -1
- package/inputtext/style/inputtextstyle.min.js +1 -1
- package/knob/Knob.vue +11 -8
- package/knob/knob.cjs.js +10 -10
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +10 -10
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +10 -10
- package/knob/knob.min.js +1 -1
- package/knob/style/knobstyle.cjs.js +0 -2
- package/knob/style/knobstyle.cjs.min.js +1 -1
- package/knob/style/knobstyle.esm.js +0 -2
- package/knob/style/knobstyle.esm.min.js +1 -1
- package/knob/style/knobstyle.js +0 -2
- package/knob/style/knobstyle.min.js +1 -1
- package/listbox/BaseListbox.vue +4 -0
- package/listbox/Listbox.d.ts +5 -0
- package/listbox/Listbox.vue +1 -1
- package/listbox/listbox.cjs.js +5 -3
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +5 -3
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +5 -3
- package/listbox/listbox.min.js +1 -1
- package/listbox/style/listboxstyle.cjs.js +2 -3
- package/listbox/style/listboxstyle.cjs.min.js +1 -1
- package/listbox/style/listboxstyle.esm.js +2 -3
- package/listbox/style/listboxstyle.esm.min.js +1 -1
- package/listbox/style/listboxstyle.js +2 -3
- package/listbox/style/listboxstyle.min.js +1 -1
- package/megamenu/MegaMenu.vue +1 -1
- package/megamenu/megamenu.cjs.js +1 -3
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1 -3
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1 -3
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/style/megamenustyle.cjs.js +0 -2
- package/megamenu/style/megamenustyle.cjs.min.js +1 -1
- package/megamenu/style/megamenustyle.esm.js +0 -2
- package/megamenu/style/megamenustyle.esm.min.js +1 -1
- package/megamenu/style/megamenustyle.js +0 -2
- package/megamenu/style/megamenustyle.min.js +1 -1
- package/menu/Menu.vue +1 -1
- package/menu/menu.cjs.js +1 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +1 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +1 -3
- package/menu/menu.min.js +1 -1
- package/menu/style/menustyle.cjs.js +0 -3
- package/menu/style/menustyle.cjs.min.js +1 -1
- package/menu/style/menustyle.esm.js +0 -3
- package/menu/style/menustyle.esm.min.js +1 -1
- package/menu/style/menustyle.js +0 -3
- package/menu/style/menustyle.min.js +1 -1
- package/menubar/style/menubarstyle.cjs.js +0 -2
- package/menubar/style/menubarstyle.cjs.min.js +1 -1
- package/menubar/style/menubarstyle.esm.js +0 -2
- package/menubar/style/menubarstyle.esm.min.js +1 -1
- package/menubar/style/menubarstyle.js +0 -2
- package/menubar/style/menubarstyle.min.js +1 -1
- package/message/Message.d.ts +1 -1
- package/message/Message.vue +1 -1
- package/message/message.cjs.js +1 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +1 -3
- package/message/message.esm.min.js +1 -1
- package/message/message.js +1 -3
- package/message/message.min.js +1 -1
- package/message/style/messagestyle.cjs.js +0 -2
- package/message/style/messagestyle.cjs.min.js +1 -1
- package/message/style/messagestyle.esm.js +0 -2
- package/message/style/messagestyle.esm.min.js +1 -1
- package/message/style/messagestyle.js +0 -2
- package/message/style/messagestyle.min.js +1 -1
- package/metergroup/MeterGroup.vue +1 -1
- package/metergroup/metergroup.cjs.js +1 -3
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +1 -3
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +1 -3
- package/metergroup/metergroup.min.js +1 -1
- package/metergroup/style/metergroupstyle.cjs.js +7 -11
- package/metergroup/style/metergroupstyle.cjs.min.js +1 -1
- package/metergroup/style/metergroupstyle.esm.js +7 -11
- package/metergroup/style/metergroupstyle.esm.min.js +1 -1
- package/metergroup/style/metergroupstyle.js +7 -11
- package/metergroup/style/metergroupstyle.min.js +1 -1
- package/multiselect/BaseMultiSelect.vue +8 -0
- package/multiselect/MultiSelect.d.ts +10 -0
- package/multiselect/MultiSelect.vue +3 -2
- package/multiselect/multiselect.cjs.js +13 -5
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +13 -5
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +13 -5
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/style/multiselectstyle.cjs.js +17 -11
- package/multiselect/style/multiselectstyle.cjs.min.js +1 -1
- package/multiselect/style/multiselectstyle.esm.js +17 -11
- package/multiselect/style/multiselectstyle.esm.min.js +1 -1
- package/multiselect/style/multiselectstyle.js +17 -11
- package/multiselect/style/multiselectstyle.min.js +1 -1
- package/orderlist/OrderList.vue +4 -4
- package/orderlist/orderlist.cjs.js +4 -8
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +4 -8
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +4 -8
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/style/orderliststyle.cjs.js +0 -2
- package/orderlist/style/orderliststyle.cjs.min.js +1 -1
- package/orderlist/style/orderliststyle.esm.js +0 -2
- package/orderlist/style/orderliststyle.esm.min.js +1 -1
- package/orderlist/style/orderliststyle.js +0 -2
- package/orderlist/style/orderliststyle.min.js +1 -1
- package/organizationchart/style/organizationchartstyle.cjs.js +0 -2
- package/organizationchart/style/organizationchartstyle.cjs.min.js +1 -1
- package/organizationchart/style/organizationchartstyle.esm.js +0 -2
- package/organizationchart/style/organizationchartstyle.esm.min.js +1 -1
- package/organizationchart/style/organizationchartstyle.js +0 -2
- package/organizationchart/style/organizationchartstyle.min.js +1 -1
- package/overlaypanel/style/overlaypanelstyle.cjs.js +0 -3
- package/overlaypanel/style/overlaypanelstyle.cjs.min.js +1 -1
- package/overlaypanel/style/overlaypanelstyle.esm.js +0 -3
- package/overlaypanel/style/overlaypanelstyle.esm.min.js +1 -1
- package/overlaypanel/style/overlaypanelstyle.js +0 -3
- package/overlaypanel/style/overlaypanelstyle.min.js +1 -1
- package/package.json +1 -1
- package/paginator/JumpToPageDropdown.vue +0 -1
- package/paginator/JumpToPageInput.vue +1 -11
- package/paginator/Paginator.vue +1 -1
- package/paginator/RowsPerPageDropdown.vue +0 -1
- package/paginator/paginator.cjs.js +2 -7
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +2 -7
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -7
- package/paginator/paginator.min.js +1 -1
- package/paginator/style/paginatorstyle.cjs.js +0 -2
- package/paginator/style/paginatorstyle.cjs.min.js +1 -1
- package/paginator/style/paginatorstyle.esm.js +0 -2
- package/paginator/style/paginatorstyle.esm.min.js +1 -1
- package/paginator/style/paginatorstyle.js +0 -2
- package/paginator/style/paginatorstyle.min.js +1 -1
- package/panel/Panel.vue +13 -9
- package/panel/panel.cjs.js +14 -12
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +14 -12
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +14 -12
- package/panel/panel.min.js +1 -1
- package/panel/style/panelstyle.cjs.js +0 -2
- package/panel/style/panelstyle.cjs.min.js +1 -1
- package/panel/style/panelstyle.esm.js +0 -2
- package/panel/style/panelstyle.esm.min.js +1 -1
- package/panel/style/panelstyle.js +0 -2
- package/panel/style/panelstyle.min.js +1 -1
- package/panelmenu/PanelMenu.vue +1 -1
- package/panelmenu/panelmenu.cjs.js +1 -3
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +1 -3
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +1 -3
- package/panelmenu/panelmenu.min.js +1 -1
- package/panelmenu/style/panelmenustyle.cjs.js +0 -2
- package/panelmenu/style/panelmenustyle.cjs.min.js +1 -1
- package/panelmenu/style/panelmenustyle.esm.js +0 -2
- package/panelmenu/style/panelmenustyle.esm.min.js +1 -1
- package/panelmenu/style/panelmenustyle.js +0 -2
- package/panelmenu/style/panelmenustyle.min.js +1 -1
- package/passthrough/index.d.ts +3 -1
- package/password/BasePassword.vue +8 -0
- package/password/Password.d.ts +10 -0
- package/password/Password.vue +11 -2
- package/password/password.cjs.js +20 -5
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +21 -6
- package/password/password.esm.min.js +1 -1
- package/password/password.js +20 -5
- package/password/password.min.js +1 -1
- package/password/style/passwordstyle.cjs.js +2 -4
- package/password/style/passwordstyle.cjs.min.js +1 -1
- package/password/style/passwordstyle.esm.js +2 -4
- package/password/style/passwordstyle.esm.min.js +1 -1
- package/password/style/passwordstyle.js +2 -4
- package/password/style/passwordstyle.min.js +1 -1
- package/picklist/PickList.vue +12 -48
- package/picklist/picklist.cjs.js +11 -23
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +11 -23
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +11 -23
- package/picklist/picklist.min.js +1 -1
- package/picklist/style/pickliststyle.cjs.js +0 -2
- package/picklist/style/pickliststyle.cjs.min.js +1 -1
- package/picklist/style/pickliststyle.esm.js +0 -2
- package/picklist/style/pickliststyle.esm.min.js +1 -1
- package/picklist/style/pickliststyle.js +0 -2
- package/picklist/style/pickliststyle.min.js +1 -1
- package/progressbar/ProgressBar.vue +1 -1
- package/progressbar/progressbar.cjs.js +1 -3
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +1 -3
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +1 -3
- package/progressbar/progressbar.min.js +1 -1
- package/progressbar/style/progressbarstyle.cjs.js +0 -2
- package/progressbar/style/progressbarstyle.cjs.min.js +1 -1
- package/progressbar/style/progressbarstyle.esm.js +0 -2
- package/progressbar/style/progressbarstyle.esm.min.js +1 -1
- package/progressbar/style/progressbarstyle.js +0 -2
- package/progressbar/style/progressbarstyle.min.js +1 -1
- package/progressspinner/ProgressSpinner.vue +1 -1
- package/progressspinner/progressspinner.cjs.js +1 -3
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +1 -3
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +1 -3
- package/progressspinner/progressspinner.min.js +1 -1
- package/progressspinner/style/progressspinnerstyle.cjs.js +0 -2
- package/progressspinner/style/progressspinnerstyle.cjs.min.js +1 -1
- package/progressspinner/style/progressspinnerstyle.esm.js +0 -2
- package/progressspinner/style/progressspinnerstyle.esm.min.js +1 -1
- package/progressspinner/style/progressspinnerstyle.js +0 -2
- package/progressspinner/style/progressspinnerstyle.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +8 -0
- package/radiobutton/RadioButton.d.ts +10 -0
- package/radiobutton/RadioButton.vue +1 -1
- package/radiobutton/radiobutton.cjs.js +8 -1
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +8 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +8 -1
- package/radiobutton/radiobutton.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.cjs.js +3 -3
- package/radiobutton/style/radiobuttonstyle.cjs.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.esm.js +3 -3
- package/radiobutton/style/radiobuttonstyle.esm.min.js +1 -1
- package/radiobutton/style/radiobuttonstyle.js +3 -3
- package/radiobutton/style/radiobuttonstyle.min.js +1 -1
- package/rating/Rating.vue +1 -1
- package/rating/rating.cjs.js +1 -3
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +1 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +1 -3
- package/rating/rating.min.js +1 -1
- package/rating/style/ratingstyle.cjs.js +0 -2
- package/rating/style/ratingstyle.cjs.min.js +1 -1
- package/rating/style/ratingstyle.esm.js +0 -2
- package/rating/style/ratingstyle.esm.min.js +1 -1
- package/rating/style/ratingstyle.js +0 -2
- package/rating/style/ratingstyle.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4899 -231
- package/resources/themes/arya-green/theme.css +4899 -231
- package/resources/themes/arya-orange/theme.css +4899 -231
- package/resources/themes/arya-purple/theme.css +4899 -231
- package/resources/themes/aura-dark-amber/theme.css +5255 -375
- package/resources/themes/aura-dark-blue/theme.css +5255 -375
- package/resources/themes/aura-dark-cyan/theme.css +5255 -375
- package/resources/themes/aura-dark-green/theme.css +5255 -375
- package/resources/themes/aura-dark-indigo/theme.css +5255 -375
- package/resources/themes/aura-dark-lime/theme.css +5255 -375
- package/resources/themes/aura-dark-noir/theme.css +5255 -375
- package/resources/themes/aura-dark-pink/theme.css +5255 -375
- package/resources/themes/aura-dark-purple/theme.css +5255 -375
- package/resources/themes/aura-dark-teal/theme.css +5255 -375
- package/resources/themes/aura-light-amber/theme.css +5268 -389
- package/resources/themes/aura-light-blue/theme.css +5268 -389
- package/resources/themes/aura-light-cyan/theme.css +5268 -389
- package/resources/themes/aura-light-green/theme.css +5268 -389
- package/resources/themes/aura-light-indigo/theme.css +5268 -389
- package/resources/themes/aura-light-lime/theme.css +5268 -389
- package/resources/themes/aura-light-noir/theme.css +5269 -390
- package/resources/themes/aura-light-pink/theme.css +5268 -389
- package/resources/themes/aura-light-purple/theme.css +5268 -389
- package/resources/themes/aura-light-teal/theme.css +5268 -389
- package/resources/themes/bootstrap4-dark-blue/theme.css +4876 -208
- package/resources/themes/bootstrap4-dark-purple/theme.css +4876 -208
- package/resources/themes/bootstrap4-light-blue/theme.css +4876 -208
- package/resources/themes/bootstrap4-light-purple/theme.css +4876 -208
- package/resources/themes/fluent-light/theme.css +4881 -213
- package/resources/themes/lara-dark-amber/theme.css +4999 -253
- package/resources/themes/lara-dark-blue/theme.css +4999 -253
- package/resources/themes/lara-dark-cyan/theme.css +4999 -253
- package/resources/themes/lara-dark-green/theme.css +4999 -253
- package/resources/themes/lara-dark-indigo/theme.css +4999 -253
- package/resources/themes/lara-dark-pink/theme.css +4999 -253
- package/resources/themes/lara-dark-purple/theme.css +4999 -253
- package/resources/themes/lara-dark-teal/theme.css +4999 -253
- package/resources/themes/lara-light-amber/theme.css +4980 -234
- package/resources/themes/lara-light-blue/theme.css +4980 -234
- package/resources/themes/lara-light-cyan/theme.css +4980 -234
- package/resources/themes/lara-light-green/theme.css +4980 -234
- package/resources/themes/lara-light-indigo/theme.css +4980 -234
- package/resources/themes/lara-light-pink/theme.css +4980 -234
- package/resources/themes/lara-light-purple/theme.css +4980 -234
- package/resources/themes/lara-light-teal/theme.css +4980 -234
- package/resources/themes/luna-amber/theme.css +4898 -230
- package/resources/themes/luna-blue/theme.css +4898 -230
- package/resources/themes/luna-green/theme.css +4898 -230
- package/resources/themes/luna-pink/theme.css +4898 -230
- package/resources/themes/md-dark-deeppurple/theme.css +5371 -588
- package/resources/themes/md-dark-indigo/theme.css +5363 -580
- package/resources/themes/md-light-deeppurple/theme.css +5210 -428
- package/resources/themes/md-light-indigo/theme.css +5210 -428
- package/resources/themes/mdc-dark-deeppurple/theme.css +5370 -587
- package/resources/themes/mdc-dark-indigo/theme.css +5315 -532
- package/resources/themes/mdc-light-deeppurple/theme.css +5257 -475
- package/resources/themes/mdc-light-indigo/theme.css +5257 -475
- package/resources/themes/mira/theme.css +4899 -231
- package/resources/themes/nano/theme.css +4902 -234
- package/resources/themes/nova/theme.css +4899 -231
- package/resources/themes/nova-accent/theme.css +4899 -231
- package/resources/themes/nova-alt/theme.css +4899 -231
- package/resources/themes/nova-vue/theme.css +4899 -231
- package/resources/themes/rhea/theme.css +4899 -231
- package/resources/themes/saga-blue/theme.css +4899 -231
- package/resources/themes/saga-green/theme.css +4899 -231
- package/resources/themes/saga-orange/theme.css +4899 -231
- package/resources/themes/saga-purple/theme.css +4899 -231
- package/resources/themes/soho-dark/theme.css +4900 -232
- package/resources/themes/soho-light/theme.css +4900 -232
- package/resources/themes/tailwind-light/theme.css +4899 -231
- package/resources/themes/vela-blue/theme.css +4899 -231
- package/resources/themes/vela-green/theme.css +4899 -231
- package/resources/themes/vela-orange/theme.css +4899 -231
- package/resources/themes/vela-purple/theme.css +4899 -231
- package/resources/themes/viva-dark/theme.css +4900 -232
- package/resources/themes/viva-light/theme.css +4900 -232
- package/ripple/style/ripplestyle.cjs.js +0 -2
- package/ripple/style/ripplestyle.cjs.min.js +1 -1
- package/ripple/style/ripplestyle.esm.js +0 -2
- package/ripple/style/ripplestyle.esm.min.js +1 -1
- package/ripple/style/ripplestyle.js +0 -2
- package/ripple/style/ripplestyle.min.js +1 -1
- package/scrollpanel/ScrollPanel.vue +10 -3
- package/scrollpanel/scrollpanel.cjs.js +9 -5
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +9 -5
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +9 -5
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrollpanel/style/scrollpanelstyle.cjs.js +0 -2
- package/scrollpanel/style/scrollpanelstyle.cjs.min.js +1 -1
- package/scrollpanel/style/scrollpanelstyle.esm.js +0 -2
- package/scrollpanel/style/scrollpanelstyle.esm.min.js +1 -1
- package/scrollpanel/style/scrollpanelstyle.js +0 -2
- package/scrollpanel/style/scrollpanelstyle.min.js +1 -1
- package/scrolltop/ScrollTop.vue +1 -1
- package/scrolltop/scrolltop.cjs.js +1 -3
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +1 -3
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +1 -3
- package/scrolltop/scrolltop.min.js +1 -1
- package/scrolltop/style/scrolltopstyle.cjs.js +0 -2
- package/scrolltop/style/scrolltopstyle.cjs.min.js +1 -1
- package/scrolltop/style/scrolltopstyle.esm.js +0 -2
- package/scrolltop/style/scrolltopstyle.esm.min.js +1 -1
- package/scrolltop/style/scrolltopstyle.js +0 -2
- package/scrolltop/style/scrolltopstyle.min.js +1 -1
- package/selectbutton/BaseSelectButton.vue +4 -0
- package/selectbutton/SelectButton.d.ts +5 -0
- package/selectbutton/SelectButton.vue +1 -1
- package/selectbutton/selectbutton.cjs.js +5 -3
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +5 -3
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +5 -3
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectbutton/style/selectbuttonstyle.cjs.js +2 -1
- package/selectbutton/style/selectbuttonstyle.cjs.min.js +1 -1
- package/selectbutton/style/selectbuttonstyle.esm.js +2 -1
- package/selectbutton/style/selectbuttonstyle.esm.min.js +1 -1
- package/selectbutton/style/selectbuttonstyle.js +2 -1
- package/selectbutton/style/selectbuttonstyle.min.js +1 -1
- package/sidebar/style/sidebarstyle.cjs.js +0 -3
- package/sidebar/style/sidebarstyle.cjs.min.js +1 -1
- package/sidebar/style/sidebarstyle.esm.js +0 -3
- package/sidebar/style/sidebarstyle.esm.min.js +1 -1
- package/sidebar/style/sidebarstyle.js +0 -3
- package/sidebar/style/sidebarstyle.min.js +1 -1
- package/skeleton/Skeleton.vue +1 -1
- package/skeleton/skeleton.cjs.js +1 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +1 -3
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -3
- package/skeleton/skeleton.min.js +1 -1
- package/skeleton/style/skeletonstyle.cjs.js +0 -2
- package/skeleton/style/skeletonstyle.cjs.min.js +1 -1
- package/skeleton/style/skeletonstyle.esm.js +0 -2
- package/skeleton/style/skeletonstyle.esm.min.js +1 -1
- package/skeleton/style/skeletonstyle.js +0 -2
- package/skeleton/style/skeletonstyle.min.js +1 -1
- package/slider/Slider.vue +1 -1
- package/slider/slider.cjs.js +1 -2
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +1 -2
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -2
- package/slider/slider.min.js +1 -1
- package/slider/style/sliderstyle.cjs.js +0 -2
- package/slider/style/sliderstyle.cjs.min.js +1 -1
- package/slider/style/sliderstyle.esm.js +0 -2
- package/slider/style/sliderstyle.esm.min.js +1 -1
- package/slider/style/sliderstyle.js +0 -2
- package/slider/style/sliderstyle.min.js +1 -1
- package/speeddial/SpeedDial.vue +1 -1
- package/speeddial/speeddial.cjs.js +1 -3
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -3
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -3
- package/speeddial/speeddial.min.js +1 -1
- package/speeddial/style/speeddialstyle.cjs.js +0 -2
- package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
- package/speeddial/style/speeddialstyle.esm.js +0 -2
- package/speeddial/style/speeddialstyle.esm.min.js +1 -1
- package/speeddial/style/speeddialstyle.js +0 -2
- package/speeddial/style/speeddialstyle.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +1 -1
- package/splitbutton/SplitButton.vue +35 -34
- package/splitbutton/splitbutton.cjs.js +44 -42
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +45 -43
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +44 -42
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.cjs.js +0 -2
- package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.js +0 -2
- package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.js +0 -2
- package/splitbutton/style/splitbuttonstyle.min.js +1 -1
- package/splitter/Splitter.vue +1 -1
- package/splitter/splitter.cjs.js +1 -3
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -3
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -3
- package/splitter/splitter.min.js +1 -1
- package/splitter/style/splitterstyle.cjs.js +0 -2
- package/splitter/style/splitterstyle.cjs.min.js +1 -1
- package/splitter/style/splitterstyle.esm.js +0 -2
- package/splitter/style/splitterstyle.esm.min.js +1 -1
- package/splitter/style/splitterstyle.js +0 -2
- package/splitter/style/splitterstyle.min.js +1 -1
- package/splitterpanel/SplitterPanel.vue +1 -1
- package/splitterpanel/splitterpanel.cjs.js +1 -3
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +1 -3
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +1 -3
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.cjs.js +0 -2
- package/splitterpanel/style/splitterpanelstyle.cjs.min.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.esm.js +0 -2
- package/splitterpanel/style/splitterpanelstyle.esm.min.js +1 -1
- package/splitterpanel/style/splitterpanelstyle.js +0 -2
- package/splitterpanel/style/splitterpanelstyle.min.js +1 -1
- package/step/BaseStep.vue +18 -0
- package/step/Step.vue +12 -0
- package/step/step.cjs.js +37 -0
- package/step/step.cjs.min.js +1 -0
- package/step/step.esm.js +30 -0
- package/step/step.esm.min.js +1 -0
- package/step/step.js +37 -0
- package/step/step.min.js +1 -0
- package/step/style/stepstyle.cjs.js +5 -0
- package/step/style/stepstyle.cjs.min.js +1 -0
- package/step/style/stepstyle.esm.js +3 -0
- package/step/style/stepstyle.esm.min.js +1 -0
- package/step/style/stepstyle.js +10 -0
- package/step/style/stepstyle.min.js +1 -0
- package/stepper/BaseStepper.vue +25 -0
- package/stepper/Stepper.vue +234 -0
- package/stepper/stepper.cjs.js +271 -0
- package/stepper/stepper.cjs.min.js +1 -0
- package/stepper/stepper.esm.js +264 -0
- package/stepper/stepper.esm.min.js +1 -0
- package/stepper/stepper.js +270 -0
- package/stepper/stepper.min.js +1 -0
- package/stepper/style/stepperstyle.cjs.js +50 -0
- package/stepper/style/stepperstyle.cjs.min.js +1 -0
- package/stepper/style/stepperstyle.esm.js +44 -0
- package/stepper/style/stepperstyle.esm.min.js +1 -0
- package/stepper/style/stepperstyle.js +53 -0
- package/stepper/style/stepperstyle.min.js +1 -0
- package/steps/Steps.vue +1 -1
- package/steps/steps.cjs.js +1 -3
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -3
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -3
- package/steps/steps.min.js +1 -1
- package/steps/style/stepsstyle.cjs.js +0 -2
- package/steps/style/stepsstyle.cjs.min.js +1 -1
- package/steps/style/stepsstyle.esm.js +0 -2
- package/steps/style/stepsstyle.esm.min.js +1 -1
- package/steps/style/stepsstyle.js +0 -2
- package/steps/style/stepsstyle.min.js +1 -1
- package/tabmenu/TabMenu.vue +1 -1
- package/tabmenu/style/tabmenustyle.cjs.js +0 -2
- package/tabmenu/style/tabmenustyle.cjs.min.js +1 -1
- package/tabmenu/style/tabmenustyle.esm.js +0 -2
- package/tabmenu/style/tabmenustyle.esm.min.js +1 -1
- package/tabmenu/style/tabmenustyle.js +0 -2
- package/tabmenu/style/tabmenustyle.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +1 -3
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -3
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/TabView.vue +2 -1
- package/tabview/style/tabviewstyle.cjs.js +0 -2
- package/tabview/style/tabviewstyle.cjs.min.js +1 -1
- package/tabview/style/tabviewstyle.esm.js +0 -2
- package/tabview/style/tabviewstyle.esm.min.js +1 -1
- package/tabview/style/tabviewstyle.js +0 -2
- package/tabview/style/tabviewstyle.min.js +1 -1
- package/tabview/tabview.cjs.js +2 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +2 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +2 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +1 -1
- package/tag/Tag.vue +1 -1
- package/tag/style/tagstyle.cjs.js +2 -2
- package/tag/style/tagstyle.cjs.min.js +1 -1
- package/tag/style/tagstyle.esm.js +2 -2
- package/tag/style/tagstyle.esm.min.js +1 -1
- package/tag/style/tagstyle.js +2 -2
- package/tag/style/tagstyle.min.js +1 -1
- package/tag/tag.cjs.js +1 -3
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +1 -3
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +1 -3
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.vue +1 -1
- package/terminal/style/terminalstyle.cjs.js +0 -2
- package/terminal/style/terminalstyle.cjs.min.js +1 -1
- package/terminal/style/terminalstyle.esm.js +0 -2
- package/terminal/style/terminalstyle.esm.min.js +1 -1
- package/terminal/style/terminalstyle.js +0 -2
- package/terminal/style/terminalstyle.min.js +1 -1
- package/terminal/terminal.cjs.js +1 -3
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +1 -3
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +1 -3
- package/terminal/terminal.min.js +1 -1
- package/textarea/BaseTextarea.vue +9 -1
- package/textarea/Textarea.d.ts +10 -0
- package/textarea/Textarea.vue +1 -1
- package/textarea/style/textareastyle.cjs.js +3 -3
- package/textarea/style/textareastyle.cjs.min.js +1 -1
- package/textarea/style/textareastyle.esm.js +3 -3
- package/textarea/style/textareastyle.esm.min.js +1 -1
- package/textarea/style/textareastyle.js +3 -3
- package/textarea/style/textareastyle.min.js +1 -1
- package/textarea/textarea.cjs.js +10 -4
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +10 -4
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +10 -4
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/style/tieredmenustyle.cjs.js +0 -3
- package/tieredmenu/style/tieredmenustyle.cjs.min.js +1 -1
- package/tieredmenu/style/tieredmenustyle.esm.js +0 -3
- package/tieredmenu/style/tieredmenustyle.esm.min.js +1 -1
- package/tieredmenu/style/tieredmenustyle.js +0 -3
- package/tieredmenu/style/tieredmenustyle.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +1 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +1 -3
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +1 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.vue +1 -1
- package/timeline/style/timelinestyle.cjs.js +0 -2
- package/timeline/style/timelinestyle.cjs.min.js +1 -1
- package/timeline/style/timelinestyle.esm.js +0 -2
- package/timeline/style/timelinestyle.esm.min.js +1 -1
- package/timeline/style/timelinestyle.js +0 -2
- package/timeline/style/timelinestyle.min.js +1 -1
- package/timeline/timeline.cjs.js +1 -3
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +1 -3
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +1 -3
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.d.ts +1 -1
- package/toast/style/toaststyle.cjs.js +3 -4
- package/toast/style/toaststyle.cjs.min.js +1 -1
- package/toast/style/toaststyle.esm.js +3 -4
- package/toast/style/toaststyle.esm.min.js +1 -1
- package/toast/style/toaststyle.js +3 -4
- package/toast/style/toaststyle.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +4 -0
- package/togglebutton/ToggleButton.d.ts +5 -0
- package/togglebutton/ToggleButton.vue +1 -1
- package/togglebutton/style/togglebuttonstyle.cjs.js +2 -3
- package/togglebutton/style/togglebuttonstyle.cjs.min.js +1 -1
- package/togglebutton/style/togglebuttonstyle.esm.js +2 -3
- package/togglebutton/style/togglebuttonstyle.esm.min.js +1 -1
- package/togglebutton/style/togglebuttonstyle.js +2 -3
- package/togglebutton/style/togglebuttonstyle.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +4 -1
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +4 -1
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +4 -1
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.vue +1 -1
- package/toolbar/style/toolbarstyle.cjs.js +0 -2
- package/toolbar/style/toolbarstyle.cjs.min.js +1 -1
- package/toolbar/style/toolbarstyle.esm.js +0 -2
- package/toolbar/style/toolbarstyle.esm.min.js +1 -1
- package/toolbar/style/toolbarstyle.js +0 -2
- package/toolbar/style/toolbarstyle.min.js +1 -1
- package/toolbar/toolbar.cjs.js +1 -3
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +1 -3
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +1 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.js +0 -2
- package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
- package/tooltip/style/tooltipstyle.esm.js +0 -2
- package/tooltip/style/tooltipstyle.esm.min.js +1 -1
- package/tooltip/style/tooltipstyle.js +0 -2
- package/tooltip/style/tooltipstyle.min.js +1 -1
- package/tree/Tree.vue +1 -1
- package/tree/style/treestyle.cjs.js +0 -2
- package/tree/style/treestyle.cjs.min.js +1 -1
- package/tree/style/treestyle.esm.js +0 -2
- package/tree/style/treestyle.esm.min.js +1 -1
- package/tree/style/treestyle.js +0 -2
- package/tree/style/treestyle.min.js +1 -1
- package/tree/tree.cjs.js +1 -3
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +1 -3
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +1 -3
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +8 -0
- package/treeselect/TreeSelect.d.ts +10 -0
- package/treeselect/TreeSelect.vue +7 -3
- package/treeselect/style/treeselectstyle.cjs.js +4 -4
- package/treeselect/style/treeselectstyle.cjs.min.js +1 -1
- package/treeselect/style/treeselectstyle.esm.js +4 -4
- package/treeselect/style/treeselectstyle.esm.min.js +1 -1
- package/treeselect/style/treeselectstyle.js +4 -4
- package/treeselect/style/treeselectstyle.min.js +1 -1
- package/treeselect/treeselect.cjs.js +16 -6
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +17 -7
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +16 -6
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/HeaderCell.vue +1 -1
- package/treetable/TreeTable.vue +2 -4
- package/treetable/style/treetablestyle.cjs.js +0 -2
- package/treetable/style/treetablestyle.cjs.min.js +1 -1
- package/treetable/style/treetablestyle.esm.js +0 -2
- package/treetable/style/treetablestyle.esm.min.js +1 -1
- package/treetable/style/treetablestyle.js +0 -2
- package/treetable/style/treetablestyle.min.js +1 -1
- package/treetable/treetable.cjs.js +4 -9
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +4 -9
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +4 -9
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +8 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +10 -0
- package/tristatecheckbox/TriStateCheckbox.vue +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.cjs.js +3 -3
- package/tristatecheckbox/style/tristatecheckboxstyle.cjs.min.js +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.esm.js +3 -3
- package/tristatecheckbox/style/tristatecheckboxstyle.esm.min.js +1 -1
- package/tristatecheckbox/style/tristatecheckboxstyle.js +3 -3
- package/tristatecheckbox/style/tristatecheckboxstyle.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +8 -1
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +8 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +8 -1
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/vetur-attributes.json +138 -6
- package/vetur-tags.json +33 -0
- package/virtualscroller/VirtualScroller.vue +8 -7
- package/virtualscroller/virtualscroller.cjs.js +17 -15
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +17 -15
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +17 -15
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +337 -7
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import BaseStyle from 'primevue/base/style';
|
|
2
2
|
|
|
3
|
-
var css = "\n@layer primevue {\n .p-steps {\n position: relative;\n }\n\n .p-steps .p-steps-list {\n padding: 0;\n margin: 0;\n list-style-type: none;\n display: flex;\n }\n\n .p-steps-item {\n position: relative;\n display: flex;\n justify-content: center;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .p-steps-item .p-menuitem-link {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n text-decoration: none;\n cursor: pointer;\n }\n\n .p-steps.p-steps-readonly .p-steps-item {\n cursor: auto;\n }\n\n .p-steps-item.p-steps-current .p-menuitem-link {\n cursor: default;\n }\n\n .p-steps-title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n }\n\n .p-steps-number {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-steps-title {\n display: block;\n }\n}\n";
|
|
4
3
|
var classes = {
|
|
5
4
|
root: function root(_ref) {
|
|
6
5
|
var props = _ref.props;
|
|
@@ -24,7 +23,6 @@ var classes = {
|
|
|
24
23
|
};
|
|
25
24
|
var StepsStyle = BaseStyle.extend({
|
|
26
25
|
name: 'steps',
|
|
27
|
-
css: css,
|
|
28
26
|
classes: classes
|
|
29
27
|
});
|
|
30
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/base/style";var
|
|
1
|
+
import e from"primevue/base/style";var t=e.extend({name:"steps",classes:{root:function(e){return["p-steps p-component",{"p-readonly":e.props.readonly}]},menu:"p-steps-list",menuitem:function(e){var t=e.instance,s=e.item,p=e.index;return["p-steps-item",{"p-highlight p-steps-current":t.isActive(p),"p-disabled":t.isItemDisabled(s,p)}]},action:"p-menuitem-link",step:"p-steps-number",label:"p-steps-title"}});export{t as default};
|
|
@@ -7,7 +7,6 @@ this.primevue.steps.style = (function (BaseStyle) {
|
|
|
7
7
|
|
|
8
8
|
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
9
9
|
|
|
10
|
-
var css = "\n@layer primevue {\n .p-steps {\n position: relative;\n }\n\n .p-steps .p-steps-list {\n padding: 0;\n margin: 0;\n list-style-type: none;\n display: flex;\n }\n\n .p-steps-item {\n position: relative;\n display: flex;\n justify-content: center;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .p-steps-item .p-menuitem-link {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n text-decoration: none;\n cursor: pointer;\n }\n\n .p-steps.p-steps-readonly .p-steps-item {\n cursor: auto;\n }\n\n .p-steps-item.p-steps-current .p-menuitem-link {\n cursor: default;\n }\n\n .p-steps-title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 100%;\n }\n\n .p-steps-number {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-steps-title {\n display: block;\n }\n}\n";
|
|
11
10
|
var classes = {
|
|
12
11
|
root: function root(_ref) {
|
|
13
12
|
var props = _ref.props;
|
|
@@ -31,7 +30,6 @@ this.primevue.steps.style = (function (BaseStyle) {
|
|
|
31
30
|
};
|
|
32
31
|
var StepsStyle = BaseStyle__default["default"].extend({
|
|
33
32
|
name: 'steps',
|
|
34
|
-
css: css,
|
|
35
33
|
classes: classes
|
|
36
34
|
});
|
|
37
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.steps=this.primevue.steps||{},this.primevue.steps.style=function(e){"use strict";function
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.steps=this.primevue.steps||{},this.primevue.steps.style=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}return t(primevue.base.style).default.extend({name:"steps",classes:{root:function(e){return["p-steps p-component",{"p-readonly":e.props.readonly}]},menu:"p-steps-list",menuitem:function(e){var t=e.instance,s=e.item,i=e.index;return["p-steps-item",{"p-highlight p-steps-current":t.isActive(i),"p-disabled":t.isItemDisabled(s,i)}]},action:"p-menuitem-link",step:"p-steps-number",label:"p-steps-title"}})}();
|
package/tabmenu/TabMenu.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="cx('root')" v-bind="ptm('root')"
|
|
2
|
+
<div :class="cx('root')" v-bind="ptm('root')">
|
|
3
3
|
<ul ref="nav" :class="cx('menu')" role="menubar" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('menu')">
|
|
4
4
|
<template v-for="(item, i) of model" :key="label(item) + '_' + i.toString()">
|
|
5
5
|
<li
|
|
@@ -6,7 +6,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
6
6
|
|
|
7
7
|
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
8
8
|
|
|
9
|
-
var css = "\n@layer primevue {\n .p-tabmenu {\n overflow-x: auto;\n }\n\n .p-tabmenu-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-wrap: nowrap;\n }\n\n .p-tabmenu-nav a {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n text-decoration: none;\n overflow: hidden;\n }\n\n .p-tabmenu-nav a:focus {\n z-index: 1;\n }\n\n .p-tabmenu-nav .p-menuitem-text {\n line-height: 1;\n }\n\n .p-tabmenu-ink-bar {\n display: none;\n z-index: 1;\n }\n\n .p-tabmenu::-webkit-scrollbar {\n display: none;\n }\n}\n";
|
|
10
9
|
var classes = {
|
|
11
10
|
root: 'p-tabmenu p-component',
|
|
12
11
|
menu: 'p-tabmenu-nav p-reset',
|
|
@@ -26,7 +25,6 @@ var classes = {
|
|
|
26
25
|
};
|
|
27
26
|
var TabMenuStyle = BaseStyle__default["default"].extend({
|
|
28
27
|
name: 'tabmenu',
|
|
29
|
-
css: css,
|
|
30
28
|
classes: classes
|
|
31
29
|
});
|
|
32
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("primevue/base/style")).default.extend({name:"tabmenu",classes:{root:"p-tabmenu p-component",menu:"p-tabmenu-nav p-reset",menuitem:function(e){var t=e.instance;return["p-tabmenuitem",{"p-highlight":t.d_activeIndex===e.index,"p-disabled":t.disabled(e.item)}]},action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",inkbar:"p-tabmenu-ink-bar"}});module.exports=t;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import BaseStyle from 'primevue/base/style';
|
|
2
2
|
|
|
3
|
-
var css = "\n@layer primevue {\n .p-tabmenu {\n overflow-x: auto;\n }\n\n .p-tabmenu-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-wrap: nowrap;\n }\n\n .p-tabmenu-nav a {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n text-decoration: none;\n overflow: hidden;\n }\n\n .p-tabmenu-nav a:focus {\n z-index: 1;\n }\n\n .p-tabmenu-nav .p-menuitem-text {\n line-height: 1;\n }\n\n .p-tabmenu-ink-bar {\n display: none;\n z-index: 1;\n }\n\n .p-tabmenu::-webkit-scrollbar {\n display: none;\n }\n}\n";
|
|
4
3
|
var classes = {
|
|
5
4
|
root: 'p-tabmenu p-component',
|
|
6
5
|
menu: 'p-tabmenu-nav p-reset',
|
|
@@ -20,7 +19,6 @@ var classes = {
|
|
|
20
19
|
};
|
|
21
20
|
var TabMenuStyle = BaseStyle.extend({
|
|
22
21
|
name: 'tabmenu',
|
|
23
|
-
css: css,
|
|
24
22
|
classes: classes
|
|
25
23
|
});
|
|
26
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"primevue/base/style";var n=e.extend({name:"tabmenu",classes:{root:"p-tabmenu p-component",menu:"p-tabmenu-nav p-reset",menuitem:function(e){var n=e.instance;return["p-tabmenuitem",{"p-highlight":n.d_activeIndex===e.index,"p-disabled":n.disabled(e.item)}]},action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",inkbar:"p-tabmenu-ink-bar"}});export{n as default};
|
|
@@ -7,7 +7,6 @@ this.primevue.tabmenu.style = (function (BaseStyle) {
|
|
|
7
7
|
|
|
8
8
|
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
9
9
|
|
|
10
|
-
var css = "\n@layer primevue {\n .p-tabmenu {\n overflow-x: auto;\n }\n\n .p-tabmenu-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-wrap: nowrap;\n }\n\n .p-tabmenu-nav a {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n text-decoration: none;\n overflow: hidden;\n }\n\n .p-tabmenu-nav a:focus {\n z-index: 1;\n }\n\n .p-tabmenu-nav .p-menuitem-text {\n line-height: 1;\n }\n\n .p-tabmenu-ink-bar {\n display: none;\n z-index: 1;\n }\n\n .p-tabmenu::-webkit-scrollbar {\n display: none;\n }\n}\n";
|
|
11
10
|
var classes = {
|
|
12
11
|
root: 'p-tabmenu p-component',
|
|
13
12
|
menu: 'p-tabmenu-nav p-reset',
|
|
@@ -27,7 +26,6 @@ this.primevue.tabmenu.style = (function (BaseStyle) {
|
|
|
27
26
|
};
|
|
28
27
|
var TabMenuStyle = BaseStyle__default["default"].extend({
|
|
29
28
|
name: 'tabmenu',
|
|
30
|
-
css: css,
|
|
31
29
|
classes: classes
|
|
32
30
|
});
|
|
33
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.tabmenu=this.primevue.tabmenu||{},this.primevue.tabmenu.style=function(
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.tabmenu=this.primevue.tabmenu||{},this.primevue.tabmenu.style=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}return t(primevue.base.style).default.extend({name:"tabmenu",classes:{root:"p-tabmenu p-component",menu:"p-tabmenu-nav p-reset",menuitem:function(e){var t=e.instance;return["p-tabmenuitem",{"p-highlight":t.d_activeIndex===e.index,"p-disabled":t.disabled(e.item)}]},action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",inkbar:"p-tabmenu-ink-bar"}})}();
|
package/tabmenu/tabmenu.cjs.js
CHANGED
|
@@ -245,9 +245,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
245
245
|
var _directive_ripple = vue.resolveDirective("ripple");
|
|
246
246
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
247
247
|
"class": _ctx.cx('root')
|
|
248
|
-
}, _ctx.ptm('root'), {
|
|
249
|
-
"data-pc-name": "tabmenu"
|
|
250
|
-
}), [vue.createElementVNode("ul", vue.mergeProps({
|
|
248
|
+
}, _ctx.ptm('root')), [vue.createElementVNode("ul", vue.mergeProps({
|
|
251
249
|
ref: "nav",
|
|
252
250
|
"class": _ctx.cx('menu'),
|
|
253
251
|
role: "menubar",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/ripple"),t=require("primevue/utils"),n=require("vue"),i=require("primevue/basecomponent"),a=require("primevue/tabmenu/style");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),o={name:"TabMenu",extends:{name:"BaseTabMenu",extends:r(i).default,props:{model:{type:Array,default:null},activeIndex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r(a).default,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change"],timeout:null,data:function(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex:function(e){this.d_activeIndex=e}},mounted:function(){this.updateInkBar();var e=this.findActiveItem();e&&(e.tabIndex="0")},updated:function(){this.updateInkBar()},beforeUnmount:function(){clearTimeout(this.timeout)},methods:{getPTOptions:function(e,t,n){return this.ptm(e,{context:{item:t,index:n}})},onItemClick:function(e,t,n){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem:function(e,t,n){switch(e.code){case"ArrowRight":this.navigateToNextItem(e.target),e.preventDefault();break;case"ArrowLeft":this.navigateToPrevItem(e.target),e.preventDefault();break;case"Home":this.navigateToFirstItem(e.target),e.preventDefault();break;case"End":this.navigateToLastItem(e.target),e.preventDefault();break;case"Space":case"NumpadEnter":case"Enter":this.onItemClick(e,t,n),e.preventDefault();break;case"Tab":this.onTabKey()}},navigateToNextItem:function(e){var t=this.findNextItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToPrevItem:function(e){var t=this.findPrevItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToFirstItem:function(e){var t=this.findFirstItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToLastItem:function(e){var t=this.findLastItem(e);t&&this.setFocusToMenuitem(e,t)},findNextItem:function(e){var n=e.parentElement.nextElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findNextItem(n.children[0]):n.children[0]:null},findPrevItem:function(e){var n=e.parentElement.previousElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findPrevItem(n.children[0]):n.children[0]:null},findFirstItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e.children[0]:null},findLastItem:function(){var e=t.DomHandler.find(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e[e.length-1].children[0]:null},findActiveItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]');return e?e.children[0]:null},setFocusToMenuitem:function(e,t){e.tabIndex="-1",t.tabIndex="0",t.focus()},onTabKey:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]'),n=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="action"][tabindex="0"]');n!==e.children[0]&&(e&&(e.children[0].tabIndex="0"),n.tabIndex="-1")},visible:function(e){return"function"==typeof e.visible?e.visible():!1!==e.visible},disabled:function(e){return"function"==typeof e.disabled?e.disabled():!0===e.disabled},label:function(e){return"function"==typeof e.label?e.label():e.label},updateInkBar:function(){for(var e=this.$refs.nav.children,n=!1,i=0;i<e.length;i++){var a=e[i];t.DomHandler.getAttribute(a,"data-p-highlight")&&(this.$refs.inkbar.style.width=t.DomHandler.getWidth(a)+"px",this.$refs.inkbar.style.left=t.DomHandler.getOffset(a).left-t.DomHandler.getOffset(this.$refs.nav).left+"px",n=!0)}n||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")},getMenuItemProps:function(e,t){var i=this;return{action:n.mergeProps({class:this.cx("action"),tabindex:-1,onClick:function(n){return i.onItemClick(n,e,t)},onKeyDown:function(n){return i.onKeydownItem(n,e,t)}},this.getPTOptions("action",e,t)),icon:n.mergeProps({class:[this.cx("icon"),e.icon]},this.getPTOptions("icon",e,t)),label:n.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t))}}},directives:{ripple:l.default}},s=["aria-labelledby","aria-label"],c=["onClick","onKeydown","data-p-highlight","data-p-disabled"],d=["href","target","aria-label","aria-disabled"];o.render=function(e,t,i,a,r,l){var o=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:e.cx("root")},e.ptm("root")
|
|
1
|
+
"use strict";var e=require("primevue/ripple"),t=require("primevue/utils"),n=require("vue"),i=require("primevue/basecomponent"),a=require("primevue/tabmenu/style");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),o={name:"TabMenu",extends:{name:"BaseTabMenu",extends:r(i).default,props:{model:{type:Array,default:null},activeIndex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r(a).default,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change"],timeout:null,data:function(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex:function(e){this.d_activeIndex=e}},mounted:function(){this.updateInkBar();var e=this.findActiveItem();e&&(e.tabIndex="0")},updated:function(){this.updateInkBar()},beforeUnmount:function(){clearTimeout(this.timeout)},methods:{getPTOptions:function(e,t,n){return this.ptm(e,{context:{item:t,index:n}})},onItemClick:function(e,t,n){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem:function(e,t,n){switch(e.code){case"ArrowRight":this.navigateToNextItem(e.target),e.preventDefault();break;case"ArrowLeft":this.navigateToPrevItem(e.target),e.preventDefault();break;case"Home":this.navigateToFirstItem(e.target),e.preventDefault();break;case"End":this.navigateToLastItem(e.target),e.preventDefault();break;case"Space":case"NumpadEnter":case"Enter":this.onItemClick(e,t,n),e.preventDefault();break;case"Tab":this.onTabKey()}},navigateToNextItem:function(e){var t=this.findNextItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToPrevItem:function(e){var t=this.findPrevItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToFirstItem:function(e){var t=this.findFirstItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToLastItem:function(e){var t=this.findLastItem(e);t&&this.setFocusToMenuitem(e,t)},findNextItem:function(e){var n=e.parentElement.nextElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findNextItem(n.children[0]):n.children[0]:null},findPrevItem:function(e){var n=e.parentElement.previousElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findPrevItem(n.children[0]):n.children[0]:null},findFirstItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e.children[0]:null},findLastItem:function(){var e=t.DomHandler.find(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e[e.length-1].children[0]:null},findActiveItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]');return e?e.children[0]:null},setFocusToMenuitem:function(e,t){e.tabIndex="-1",t.tabIndex="0",t.focus()},onTabKey:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]'),n=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="action"][tabindex="0"]');n!==e.children[0]&&(e&&(e.children[0].tabIndex="0"),n.tabIndex="-1")},visible:function(e){return"function"==typeof e.visible?e.visible():!1!==e.visible},disabled:function(e){return"function"==typeof e.disabled?e.disabled():!0===e.disabled},label:function(e){return"function"==typeof e.label?e.label():e.label},updateInkBar:function(){for(var e=this.$refs.nav.children,n=!1,i=0;i<e.length;i++){var a=e[i];t.DomHandler.getAttribute(a,"data-p-highlight")&&(this.$refs.inkbar.style.width=t.DomHandler.getWidth(a)+"px",this.$refs.inkbar.style.left=t.DomHandler.getOffset(a).left-t.DomHandler.getOffset(this.$refs.nav).left+"px",n=!0)}n||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")},getMenuItemProps:function(e,t){var i=this;return{action:n.mergeProps({class:this.cx("action"),tabindex:-1,onClick:function(n){return i.onItemClick(n,e,t)},onKeyDown:function(n){return i.onKeydownItem(n,e,t)}},this.getPTOptions("action",e,t)),icon:n.mergeProps({class:[this.cx("icon"),e.icon]},this.getPTOptions("icon",e,t)),label:n.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t))}}},directives:{ripple:l.default}},s=["aria-labelledby","aria-label"],c=["onClick","onKeydown","data-p-highlight","data-p-disabled"],d=["href","target","aria-label","aria-disabled"];o.render=function(e,t,i,a,r,l){var o=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:e.cx("root")},e.ptm("root")),[n.createElementVNode("ul",n.mergeProps({ref:"nav",class:e.cx("menu"),role:"menubar","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("menu")),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.model,(function(t,i){return n.openBlock(),n.createElementBlock(n.Fragment,{key:l.label(t)+"_"+i.toString()},[l.visible(t)?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,ref_for:!0,ref:"tab",class:[e.cx("menuitem",{item:t,index:i}),t.class],role:"presentation",onClick:function(e){return l.onItemClick(e,t,i)},onKeydown:function(e){return l.onKeydownItem(e,t,i)}},l.getPTOptions("menuitem",t,i),{"data-p-highlight":r.d_activeIndex===i,"data-p-disabled":l.disabled(t)}),[e.$slots.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:i,active:i===r.d_activeIndex,label:l.label(t),props:l.getMenuItemProps(t,i)},null,8,["item","index","active","label","props"])):n.withDirectives((n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:t.url,class:e.cx("action"),target:t.target,"aria-label":l.label(t),"aria-disabled":l.disabled(t),tabindex:-1},l.getPTOptions("action",t,i)),[e.$slots.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:n.normalizeClass([e.cx("icon"),t.icon])},null,8,["item","class"])):t.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:[e.cx("icon"),t.icon]},l.getPTOptions("icon",t,i)),null,16)):n.createCommentVNode("",!0),n.createElementVNode("span",n.mergeProps({class:e.cx("label")},l.getPTOptions("label",t,i)),n.toDisplayString(l.label(t)),17)],16,d)),[[o]])],16,c)):n.createCommentVNode("",!0)],64)})),128)),n.createElementVNode("li",n.mergeProps({ref:"inkbar",role:"none",class:e.cx("inkbar")},e.ptm("inkbar")),null,16)],16,s)],16)},module.exports=o;
|
package/tabmenu/tabmenu.esm.js
CHANGED
|
@@ -237,9 +237,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
237
237
|
var _directive_ripple = resolveDirective("ripple");
|
|
238
238
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
239
239
|
"class": _ctx.cx('root')
|
|
240
|
-
}, _ctx.ptm('root'), {
|
|
241
|
-
"data-pc-name": "tabmenu"
|
|
242
|
-
}), [createElementVNode("ul", mergeProps({
|
|
240
|
+
}, _ctx.ptm('root')), [createElementVNode("ul", mergeProps({
|
|
243
241
|
ref: "nav",
|
|
244
242
|
"class": _ctx.cx('menu'),
|
|
245
243
|
role: "menubar",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/ripple";import{DomHandler as t}from"primevue/utils";import{mergeProps as i,resolveDirective as n,openBlock as a,createElementBlock as r,createElementVNode as l,Fragment as s,renderList as o,withDirectives as d,createBlock as c,resolveDynamicComponent as u,normalizeClass as
|
|
1
|
+
import e from"primevue/ripple";import{DomHandler as t}from"primevue/utils";import{mergeProps as i,resolveDirective as n,openBlock as a,createElementBlock as r,createElementVNode as l,Fragment as s,renderList as o,withDirectives as d,createBlock as c,resolveDynamicComponent as u,normalizeClass as f,createCommentVNode as m,toDisplayString as b}from"vue";import p from"primevue/basecomponent";import h from"primevue/tabmenu/style";var v={name:"TabMenu",extends:{name:"BaseTabMenu",extends:p,props:{model:{type:Array,default:null},activeIndex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change"],timeout:null,data:function(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex:function(e){this.d_activeIndex=e}},mounted:function(){this.updateInkBar();var e=this.findActiveItem();e&&(e.tabIndex="0")},updated:function(){this.updateInkBar()},beforeUnmount:function(){clearTimeout(this.timeout)},methods:{getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,index:i}})},onItemClick:function(e,t,i){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),i!==this.d_activeIndex&&(this.d_activeIndex=i,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:i}))},onKeydownItem:function(e,t,i){switch(e.code){case"ArrowRight":this.navigateToNextItem(e.target),e.preventDefault();break;case"ArrowLeft":this.navigateToPrevItem(e.target),e.preventDefault();break;case"Home":this.navigateToFirstItem(e.target),e.preventDefault();break;case"End":this.navigateToLastItem(e.target),e.preventDefault();break;case"Space":case"NumpadEnter":case"Enter":this.onItemClick(e,t,i),e.preventDefault();break;case"Tab":this.onTabKey()}},navigateToNextItem:function(e){var t=this.findNextItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToPrevItem:function(e){var t=this.findPrevItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToFirstItem:function(e){var t=this.findFirstItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToLastItem:function(e){var t=this.findLastItem(e);t&&this.setFocusToMenuitem(e,t)},findNextItem:function(e){var i=e.parentElement.nextElementSibling;return i?!0===t.getAttribute(i,"data-p-disabled")?this.findNextItem(i.children[0]):i.children[0]:null},findPrevItem:function(e){var i=e.parentElement.previousElementSibling;return i?!0===t.getAttribute(i,"data-p-disabled")?this.findPrevItem(i.children[0]):i.children[0]:null},findFirstItem:function(){var e=t.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e.children[0]:null},findLastItem:function(){var e=t.find(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e[e.length-1].children[0]:null},findActiveItem:function(){var e=t.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]');return e?e.children[0]:null},setFocusToMenuitem:function(e,t){e.tabIndex="-1",t.tabIndex="0",t.focus()},onTabKey:function(){var e=t.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]'),i=t.findSingle(this.$refs.nav,'[data-pc-section="action"][tabindex="0"]');i!==e.children[0]&&(e&&(e.children[0].tabIndex="0"),i.tabIndex="-1")},visible:function(e){return"function"==typeof e.visible?e.visible():!1!==e.visible},disabled:function(e){return"function"==typeof e.disabled?e.disabled():!0===e.disabled},label:function(e){return"function"==typeof e.label?e.label():e.label},updateInkBar:function(){for(var e=this.$refs.nav.children,i=!1,n=0;n<e.length;n++){var a=e[n];t.getAttribute(a,"data-p-highlight")&&(this.$refs.inkbar.style.width=t.getWidth(a)+"px",this.$refs.inkbar.style.left=t.getOffset(a).left-t.getOffset(this.$refs.nav).left+"px",i=!0)}i||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")},getMenuItemProps:function(e,t){var n=this;return{action:i({class:this.cx("action"),tabindex:-1,onClick:function(i){return n.onItemClick(i,e,t)},onKeyDown:function(i){return n.onKeydownItem(i,e,t)}},this.getPTOptions("action",e,t)),icon:i({class:[this.cx("icon"),e.icon]},this.getPTOptions("icon",e,t)),label:i({class:this.cx("label")},this.getPTOptions("label",e,t))}}},directives:{ripple:e}},g=["aria-labelledby","aria-label"],x=["onClick","onKeydown","data-p-highlight","data-p-disabled"],I=["href","target","aria-label","aria-disabled"];v.render=function(e,t,p,h,v,y){var k=n("ripple");return a(),r("div",i({class:e.cx("root")},e.ptm("root")),[l("ul",i({ref:"nav",class:e.cx("menu"),role:"menubar","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("menu")),[(a(!0),r(s,null,o(e.model,(function(t,n){return a(),r(s,{key:y.label(t)+"_"+n.toString()},[y.visible(t)?(a(),r("li",i({key:0,ref_for:!0,ref:"tab",class:[e.cx("menuitem",{item:t,index:n}),t.class],role:"presentation",onClick:function(e){return y.onItemClick(e,t,n)},onKeydown:function(e){return y.onKeydownItem(e,t,n)}},y.getPTOptions("menuitem",t,n),{"data-p-highlight":v.d_activeIndex===n,"data-p-disabled":y.disabled(t)}),[e.$slots.item?(a(),c(u(e.$slots.item),{key:1,item:t,index:n,active:n===v.d_activeIndex,label:y.label(t),props:y.getMenuItemProps(t,n)},null,8,["item","index","active","label","props"])):d((a(),r("a",i({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:t.url,class:e.cx("action"),target:t.target,"aria-label":y.label(t),"aria-disabled":y.disabled(t),tabindex:-1},y.getPTOptions("action",t,n)),[e.$slots.itemicon?(a(),c(u(e.$slots.itemicon),{key:0,item:t,class:f([e.cx("icon"),t.icon])},null,8,["item","class"])):t.icon?(a(),r("span",i({key:1,class:[e.cx("icon"),t.icon]},y.getPTOptions("icon",t,n)),null,16)):m("",!0),l("span",i({class:e.cx("label")},y.getPTOptions("label",t,n)),b(y.label(t)),17)],16,I)),[[k]])],16,x)):m("",!0)],64)})),128)),l("li",i({ref:"inkbar",role:"none",class:e.cx("inkbar")},e.ptm("inkbar")),null,16)],16,g)],16)};export{v as default};
|
package/tabmenu/tabmenu.js
CHANGED
|
@@ -241,9 +241,7 @@ this.primevue.tabmenu = (function (Ripple, utils, vue, BaseComponent, TabMenuSty
|
|
|
241
241
|
var _directive_ripple = vue.resolveDirective("ripple");
|
|
242
242
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
243
243
|
"class": _ctx.cx('root')
|
|
244
|
-
}, _ctx.ptm('root'), {
|
|
245
|
-
"data-pc-name": "tabmenu"
|
|
246
|
-
}), [vue.createElementVNode("ul", vue.mergeProps({
|
|
244
|
+
}, _ctx.ptm('root')), [vue.createElementVNode("ul", vue.mergeProps({
|
|
247
245
|
ref: "nav",
|
|
248
246
|
"class": _ctx.cx('menu'),
|
|
249
247
|
role: "menubar",
|
package/tabmenu/tabmenu.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.tabmenu=function(e,t,n,i,a){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),o={name:"TabMenu",extends:{name:"BaseTabMenu",extends:r(i).default,props:{model:{type:Array,default:null},activeIndex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r(a).default,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change"],timeout:null,data:function(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex:function(e){this.d_activeIndex=e}},mounted:function(){this.updateInkBar();var e=this.findActiveItem();e&&(e.tabIndex="0")},updated:function(){this.updateInkBar()},beforeUnmount:function(){clearTimeout(this.timeout)},methods:{getPTOptions:function(e,t,n){return this.ptm(e,{context:{item:t,index:n}})},onItemClick:function(e,t,n){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem:function(e,t,n){switch(e.code){case"ArrowRight":this.navigateToNextItem(e.target),e.preventDefault();break;case"ArrowLeft":this.navigateToPrevItem(e.target),e.preventDefault();break;case"Home":this.navigateToFirstItem(e.target),e.preventDefault();break;case"End":this.navigateToLastItem(e.target),e.preventDefault();break;case"Space":case"NumpadEnter":case"Enter":this.onItemClick(e,t,n),e.preventDefault();break;case"Tab":this.onTabKey()}},navigateToNextItem:function(e){var t=this.findNextItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToPrevItem:function(e){var t=this.findPrevItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToFirstItem:function(e){var t=this.findFirstItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToLastItem:function(e){var t=this.findLastItem(e);t&&this.setFocusToMenuitem(e,t)},findNextItem:function(e){var n=e.parentElement.nextElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findNextItem(n.children[0]):n.children[0]:null},findPrevItem:function(e){var n=e.parentElement.previousElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findPrevItem(n.children[0]):n.children[0]:null},findFirstItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e.children[0]:null},findLastItem:function(){var e=t.DomHandler.find(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e[e.length-1].children[0]:null},findActiveItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]');return e?e.children[0]:null},setFocusToMenuitem:function(e,t){e.tabIndex="-1",t.tabIndex="0",t.focus()},onTabKey:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]'),n=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="action"][tabindex="0"]');n!==e.children[0]&&(e&&(e.children[0].tabIndex="0"),n.tabIndex="-1")},visible:function(e){return"function"==typeof e.visible?e.visible():!1!==e.visible},disabled:function(e){return"function"==typeof e.disabled?e.disabled():!0===e.disabled},label:function(e){return"function"==typeof e.label?e.label():e.label},updateInkBar:function(){for(var e=this.$refs.nav.children,n=!1,i=0;i<e.length;i++){var a=e[i];t.DomHandler.getAttribute(a,"data-p-highlight")&&(this.$refs.inkbar.style.width=t.DomHandler.getWidth(a)+"px",this.$refs.inkbar.style.left=t.DomHandler.getOffset(a).left-t.DomHandler.getOffset(this.$refs.nav).left+"px",n=!0)}n||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")},getMenuItemProps:function(e,t){var i=this;return{action:n.mergeProps({class:this.cx("action"),tabindex:-1,onClick:function(n){return i.onItemClick(n,e,t)},onKeyDown:function(n){return i.onKeydownItem(n,e,t)}},this.getPTOptions("action",e,t)),icon:n.mergeProps({class:[this.cx("icon"),e.icon]},this.getPTOptions("icon",e,t)),label:n.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t))}}},directives:{ripple:l.default}},s=["aria-labelledby","aria-label"],c=["onClick","onKeydown","data-p-highlight","data-p-disabled"],d=["href","target","aria-label","aria-disabled"];return o.render=function(e,t,i,a,r,l){var o=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:e.cx("root")},e.ptm("root")
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.tabmenu=function(e,t,n,i,a){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),o={name:"TabMenu",extends:{name:"BaseTabMenu",extends:r(i).default,props:{model:{type:Array,default:null},activeIndex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r(a).default,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change"],timeout:null,data:function(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex:function(e){this.d_activeIndex=e}},mounted:function(){this.updateInkBar();var e=this.findActiveItem();e&&(e.tabIndex="0")},updated:function(){this.updateInkBar()},beforeUnmount:function(){clearTimeout(this.timeout)},methods:{getPTOptions:function(e,t,n){return this.ptm(e,{context:{item:t,index:n}})},onItemClick:function(e,t,n){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem:function(e,t,n){switch(e.code){case"ArrowRight":this.navigateToNextItem(e.target),e.preventDefault();break;case"ArrowLeft":this.navigateToPrevItem(e.target),e.preventDefault();break;case"Home":this.navigateToFirstItem(e.target),e.preventDefault();break;case"End":this.navigateToLastItem(e.target),e.preventDefault();break;case"Space":case"NumpadEnter":case"Enter":this.onItemClick(e,t,n),e.preventDefault();break;case"Tab":this.onTabKey()}},navigateToNextItem:function(e){var t=this.findNextItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToPrevItem:function(e){var t=this.findPrevItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToFirstItem:function(e){var t=this.findFirstItem(e);t&&this.setFocusToMenuitem(e,t)},navigateToLastItem:function(e){var t=this.findLastItem(e);t&&this.setFocusToMenuitem(e,t)},findNextItem:function(e){var n=e.parentElement.nextElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findNextItem(n.children[0]):n.children[0]:null},findPrevItem:function(e){var n=e.parentElement.previousElementSibling;return n?!0===t.DomHandler.getAttribute(n,"data-p-disabled")?this.findPrevItem(n.children[0]):n.children[0]:null},findFirstItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e.children[0]:null},findLastItem:function(){var e=t.DomHandler.find(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"]');return e?e[e.length-1].children[0]:null},findActiveItem:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]');return e?e.children[0]:null},setFocusToMenuitem:function(e,t){e.tabIndex="-1",t.tabIndex="0",t.focus()},onTabKey:function(){var e=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="menuitem"][data-p-disabled="false"][data-p-highlight="true"]'),n=t.DomHandler.findSingle(this.$refs.nav,'[data-pc-section="action"][tabindex="0"]');n!==e.children[0]&&(e&&(e.children[0].tabIndex="0"),n.tabIndex="-1")},visible:function(e){return"function"==typeof e.visible?e.visible():!1!==e.visible},disabled:function(e){return"function"==typeof e.disabled?e.disabled():!0===e.disabled},label:function(e){return"function"==typeof e.label?e.label():e.label},updateInkBar:function(){for(var e=this.$refs.nav.children,n=!1,i=0;i<e.length;i++){var a=e[i];t.DomHandler.getAttribute(a,"data-p-highlight")&&(this.$refs.inkbar.style.width=t.DomHandler.getWidth(a)+"px",this.$refs.inkbar.style.left=t.DomHandler.getOffset(a).left-t.DomHandler.getOffset(this.$refs.nav).left+"px",n=!0)}n||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")},getMenuItemProps:function(e,t){var i=this;return{action:n.mergeProps({class:this.cx("action"),tabindex:-1,onClick:function(n){return i.onItemClick(n,e,t)},onKeyDown:function(n){return i.onKeydownItem(n,e,t)}},this.getPTOptions("action",e,t)),icon:n.mergeProps({class:[this.cx("icon"),e.icon]},this.getPTOptions("icon",e,t)),label:n.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t))}}},directives:{ripple:l.default}},s=["aria-labelledby","aria-label"],c=["onClick","onKeydown","data-p-highlight","data-p-disabled"],d=["href","target","aria-label","aria-disabled"];return o.render=function(e,t,i,a,r,l){var o=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:e.cx("root")},e.ptm("root")),[n.createElementVNode("ul",n.mergeProps({ref:"nav",class:e.cx("menu"),role:"menubar","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("menu")),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.model,(function(t,i){return n.openBlock(),n.createElementBlock(n.Fragment,{key:l.label(t)+"_"+i.toString()},[l.visible(t)?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,ref_for:!0,ref:"tab",class:[e.cx("menuitem",{item:t,index:i}),t.class],role:"presentation",onClick:function(e){return l.onItemClick(e,t,i)},onKeydown:function(e){return l.onKeydownItem(e,t,i)}},l.getPTOptions("menuitem",t,i),{"data-p-highlight":r.d_activeIndex===i,"data-p-disabled":l.disabled(t)}),[e.$slots.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:i,active:i===r.d_activeIndex,label:l.label(t),props:l.getMenuItemProps(t,i)},null,8,["item","index","active","label","props"])):n.withDirectives((n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:t.url,class:e.cx("action"),target:t.target,"aria-label":l.label(t),"aria-disabled":l.disabled(t),tabindex:-1},l.getPTOptions("action",t,i)),[e.$slots.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:n.normalizeClass([e.cx("icon"),t.icon])},null,8,["item","class"])):t.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:[e.cx("icon"),t.icon]},l.getPTOptions("icon",t,i)),null,16)):n.createCommentVNode("",!0),n.createElementVNode("span",n.mergeProps({class:e.cx("label")},l.getPTOptions("label",t,i)),n.toDisplayString(l.label(t)),17)],16,d)),[[o]])],16,c)):n.createCommentVNode("",!0)],64)})),128)),n.createElementVNode("li",n.mergeProps({ref:"inkbar",role:"none",class:e.cx("inkbar")},e.ptm("inkbar")),null,16)],16,s)],16)},o}(primevue.ripple,primevue.utils,Vue,primevue.basecomponent,primevue.tabmenu.style);
|
package/tabview/TabView.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="cx('root')" role="tablist" v-bind="ptm('root')"
|
|
2
|
+
<div :class="cx('root')" role="tablist" v-bind="ptm('root')">
|
|
3
3
|
<div :class="cx('navContainer')" v-bind="ptm('navContainer')">
|
|
4
4
|
<button
|
|
5
5
|
v-if="scrollable && !isPrevButtonDisabled"
|
|
@@ -128,6 +128,7 @@ export default {
|
|
|
128
128
|
},
|
|
129
129
|
updated() {
|
|
130
130
|
this.updateInkBar();
|
|
131
|
+
this.scrollable && this.updateButtonState();
|
|
131
132
|
},
|
|
132
133
|
methods: {
|
|
133
134
|
isTabPanel(child) {
|
|
@@ -6,7 +6,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
6
6
|
|
|
7
7
|
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
8
8
|
|
|
9
|
-
var css = "\n@layer primevue {\n .p-tabview-nav-container {\n position: relative;\n }\n\n .p-tabview-scrollable .p-tabview-nav-container {\n overflow: hidden;\n }\n\n .p-tabview-nav-content {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scrollbar-width: none;\n overscroll-behavior: contain auto;\n }\n\n .p-tabview-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex: 1 1 auto;\n }\n\n .p-tabview-header-action {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n overflow: hidden;\n }\n\n .p-tabview-ink-bar {\n display: none;\n z-index: 1;\n }\n\n .p-tabview-header-action:focus {\n z-index: 1;\n }\n\n .p-tabview-title {\n line-height: 1;\n white-space: nowrap;\n }\n\n .p-tabview-nav-btn {\n position: absolute;\n top: 0;\n z-index: 2;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-tabview-nav-prev {\n left: 0;\n }\n\n .p-tabview-nav-next {\n right: 0;\n }\n\n .p-tabview-nav-content::-webkit-scrollbar {\n display: none;\n }\n}\n";
|
|
10
9
|
var classes = {
|
|
11
10
|
root: function root(_ref) {
|
|
12
11
|
var props = _ref.props;
|
|
@@ -42,7 +41,6 @@ var classes = {
|
|
|
42
41
|
};
|
|
43
42
|
var TabViewStyle = BaseStyle__default["default"].extend({
|
|
44
43
|
name: 'tabview',
|
|
45
|
-
css: css,
|
|
46
44
|
classes: classes
|
|
47
45
|
});
|
|
48
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("primevue/base/style")).default.extend({name:"tabview",classes:{root:function(e){return["p-tabview p-component",{"p-tabview-scrollable":e.props.scrollable}]},navContainer:"p-tabview-nav-container",previousButton:"p-tabview-nav-prev p-tabview-nav-btn p-link",navContent:"p-tabview-nav-content",nav:"p-tabview-nav",tab:{header:function(e){var t=e.instance,a=e.tab,n=e.index;return["p-tabview-header",t.getTabProp(a,"headerClass"),{"p-highlight":t.d_activeIndex===n,"p-disabled":t.getTabProp(a,"disabled")}]},headerAction:"p-tabview-nav-link p-tabview-header-action",headerTitle:"p-tabview-title",content:function(e){return["p-tabview-panel",e.instance.getTabProp(e.tab,"contentClass")]}},inkbar:"p-tabview-ink-bar",nextButton:"p-tabview-nav-next p-tabview-nav-btn p-link",panelContainer:"p-tabview-panels"}});module.exports=t;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import BaseStyle from 'primevue/base/style';
|
|
2
2
|
|
|
3
|
-
var css = "\n@layer primevue {\n .p-tabview-nav-container {\n position: relative;\n }\n\n .p-tabview-scrollable .p-tabview-nav-container {\n overflow: hidden;\n }\n\n .p-tabview-nav-content {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scrollbar-width: none;\n overscroll-behavior: contain auto;\n }\n\n .p-tabview-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex: 1 1 auto;\n }\n\n .p-tabview-header-action {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n overflow: hidden;\n }\n\n .p-tabview-ink-bar {\n display: none;\n z-index: 1;\n }\n\n .p-tabview-header-action:focus {\n z-index: 1;\n }\n\n .p-tabview-title {\n line-height: 1;\n white-space: nowrap;\n }\n\n .p-tabview-nav-btn {\n position: absolute;\n top: 0;\n z-index: 2;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-tabview-nav-prev {\n left: 0;\n }\n\n .p-tabview-nav-next {\n right: 0;\n }\n\n .p-tabview-nav-content::-webkit-scrollbar {\n display: none;\n }\n}\n";
|
|
4
3
|
var classes = {
|
|
5
4
|
root: function root(_ref) {
|
|
6
5
|
var props = _ref.props;
|
|
@@ -36,7 +35,6 @@ var classes = {
|
|
|
36
35
|
};
|
|
37
36
|
var TabViewStyle = BaseStyle.extend({
|
|
38
37
|
name: 'tabview',
|
|
39
|
-
css: css,
|
|
40
38
|
classes: classes
|
|
41
39
|
});
|
|
42
40
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"primevue/base/style";var a=e.extend({name:"tabview",classes:{root:function(e){return["p-tabview p-component",{"p-tabview-scrollable":e.props.scrollable}]},navContainer:"p-tabview-nav-container",previousButton:"p-tabview-nav-prev p-tabview-nav-btn p-link",navContent:"p-tabview-nav-content",nav:"p-tabview-nav",tab:{header:function(e){var a=e.instance,t=e.tab,n=e.index;return["p-tabview-header",a.getTabProp(t,"headerClass"),{"p-highlight":a.d_activeIndex===n,"p-disabled":a.getTabProp(t,"disabled")}]},headerAction:"p-tabview-nav-link p-tabview-header-action",headerTitle:"p-tabview-title",content:function(e){return["p-tabview-panel",e.instance.getTabProp(e.tab,"contentClass")]}},inkbar:"p-tabview-ink-bar",nextButton:"p-tabview-nav-next p-tabview-nav-btn p-link",panelContainer:"p-tabview-panels"}});export{a as default};
|
|
@@ -7,7 +7,6 @@ this.primevue.tabview.style = (function (BaseStyle) {
|
|
|
7
7
|
|
|
8
8
|
var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
9
9
|
|
|
10
|
-
var css = "\n@layer primevue {\n .p-tabview-nav-container {\n position: relative;\n }\n\n .p-tabview-scrollable .p-tabview-nav-container {\n overflow: hidden;\n }\n\n .p-tabview-nav-content {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scrollbar-width: none;\n overscroll-behavior: contain auto;\n }\n\n .p-tabview-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex: 1 1 auto;\n }\n\n .p-tabview-header-action {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n overflow: hidden;\n }\n\n .p-tabview-ink-bar {\n display: none;\n z-index: 1;\n }\n\n .p-tabview-header-action:focus {\n z-index: 1;\n }\n\n .p-tabview-title {\n line-height: 1;\n white-space: nowrap;\n }\n\n .p-tabview-nav-btn {\n position: absolute;\n top: 0;\n z-index: 2;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .p-tabview-nav-prev {\n left: 0;\n }\n\n .p-tabview-nav-next {\n right: 0;\n }\n\n .p-tabview-nav-content::-webkit-scrollbar {\n display: none;\n }\n}\n";
|
|
11
10
|
var classes = {
|
|
12
11
|
root: function root(_ref) {
|
|
13
12
|
var props = _ref.props;
|
|
@@ -43,7 +42,6 @@ this.primevue.tabview.style = (function (BaseStyle) {
|
|
|
43
42
|
};
|
|
44
43
|
var TabViewStyle = BaseStyle__default["default"].extend({
|
|
45
44
|
name: 'tabview',
|
|
46
|
-
css: css,
|
|
47
45
|
classes: classes
|
|
48
46
|
});
|
|
49
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.tabview=this.primevue.tabview||{},this.primevue.tabview.style=function(
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.tabview=this.primevue.tabview||{},this.primevue.tabview.style=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}return t(primevue.base.style).default.extend({name:"tabview",classes:{root:function(e){return["p-tabview p-component",{"p-tabview-scrollable":e.props.scrollable}]},navContainer:"p-tabview-nav-container",previousButton:"p-tabview-nav-prev p-tabview-nav-btn p-link",navContent:"p-tabview-nav-content",nav:"p-tabview-nav",tab:{header:function(e){var t=e.instance,a=e.tab,n=e.index;return["p-tabview-header",t.getTabProp(a,"headerClass"),{"p-highlight":t.d_activeIndex===n,"p-disabled":t.getTabProp(a,"disabled")}]},headerAction:"p-tabview-nav-link p-tabview-header-action",headerTitle:"p-tabview-title",content:function(e){return["p-tabview-panel",e.instance.getTabProp(e.tab,"contentClass")]}},inkbar:"p-tabview-ink-bar",nextButton:"p-tabview-nav-next p-tabview-nav-btn p-link",panelContainer:"p-tabview-panels"}})}();
|
package/tabview/tabview.cjs.js
CHANGED
|
@@ -95,6 +95,7 @@ var script = {
|
|
|
95
95
|
},
|
|
96
96
|
updated: function updated() {
|
|
97
97
|
this.updateInkBar();
|
|
98
|
+
this.scrollable && this.updateButtonState();
|
|
98
99
|
},
|
|
99
100
|
methods: {
|
|
100
101
|
isTabPanel: function isTabPanel(child) {
|
|
@@ -348,9 +349,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
348
349
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
349
350
|
"class": _ctx.cx('root'),
|
|
350
351
|
role: "tablist"
|
|
351
|
-
}, _ctx.ptm('root'), {
|
|
352
|
-
"data-pc-name": "tabview"
|
|
353
|
-
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
352
|
+
}, _ctx.ptm('root')), [vue.createElementVNode("div", vue.mergeProps({
|
|
354
353
|
"class": _ctx.cx('navContainer')
|
|
355
354
|
}, _ctx.ptm('navContainer')), [_ctx.scrollable && !$data.isPrevButtonDisabled ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
356
355
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/icons/chevronleft"),t=require("primevue/icons/chevronright"),n=require("primevue/ripple"),a=require("primevue/utils"),r=require("vue"),i=require("primevue/basecomponent"),o=require("primevue/tabview/style");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),s=c(t),d=c(n),u={name:"TabView",extends:{name:"BaseTabView",extends:c(i).default,props:{activeIndex:{type:Number,default:0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1},previousButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0}},style:c(o).default,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex,isPrevButtonDisabled:!0,isNextButtonDisabled:!1}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},activeIndex:function(e){this.d_activeIndex=e,this.scrollInView({index:e})}},mounted:function(){this.id=this.id||a.UniqueComponentId(),this.updateInkBar(),this.scrollable&&this.updateButtonState()},updated:function(){this.updateInkBar()},methods:{isTabPanel:function(e){return"TabPanel"===e.type.name},isTabActive:function(e){return this.d_activeIndex===e},getTabProp:function(e,t){return e.props?e.props[t]:void 0},getKey:function(e,t){return this.getTabProp(e,"header")||t},getTabHeaderActionId:function(e){return"".concat(this.id,"_").concat(e,"_header_action")},getTabContentId:function(e){return"".concat(this.id,"_").concat(e,"_content")},getTabPT:function(e,t,n){var a=this.tabs.length,i={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:a,first:0===n,last:n===a-1,active:this.isTabActive(n)}};return r.mergeProps(this.ptm("tab.".concat(t),{tab:i}),this.ptm("tabpanel.".concat(t),{tabpanel:i}),this.ptm("tabpanel.".concat(t),i),this.ptmo(this.getTabProp(e,"pt"),t,i))},onScroll:function(e){this.scrollable&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,t=a.DomHandler.getWidth(e),n=e.scrollLeft-t;e.scrollLeft=n<=0?0:n},onNextButtonClick:function(){var e=this.$refs.content,t=a.DomHandler.getWidth(e)-this.getVisibleButtonWidths(),n=e.scrollLeft+t,r=e.scrollWidth-t;e.scrollLeft=n>=r?r:n},onTabClick:function(e,t,n){this.changeActiveIndex(e,t,n),this.$emit("tab-click",{originalEvent:e,index:n})},onTabKeyDown:function(e,t,n){switch(e.code){case"ArrowLeft":this.onTabArrowLeftKey(e);break;case"ArrowRight":this.onTabArrowRightKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(e,t,n)}},onTabArrowRightKey:function(e){var t=this.findNextHeaderAction(e.target.parentElement);t?this.changeFocusedTab(e,t):this.onTabHomeKey(e),e.preventDefault()},onTabArrowLeftKey:function(e){var t=this.findPrevHeaderAction(e.target.parentElement);t?this.changeFocusedTab(e,t):this.onTabEndKey(e),e.preventDefault()},onTabHomeKey:function(e){var t=this.findFirstHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEndKey:function(e){var t=this.findLastHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onPageDownKey:function(e){this.scrollInView({index:this.$refs.nav.children.length-2}),e.preventDefault()},onPageUpKey:function(e){this.scrollInView({index:0}),e.preventDefault()},onTabEnterKey:function(e,t,n){this.changeActiveIndex(e,t,n),e.preventDefault()},findNextHeaderAction:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling;return t?a.DomHandler.getAttribute(t,"data-p-disabled")||"inkbar"===a.DomHandler.getAttribute(t,"data-pc-section")?this.findNextHeaderAction(t):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling;return t?a.DomHandler.getAttribute(t,"data-p-disabled")||"inkbar"===a.DomHandler.getAttribute(t,"data-pc-section")?this.findPrevHeaderAction(t):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$refs.nav.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$refs.nav.lastElementChild,!0)},changeActiveIndex:function(e,t,n){this.getTabProp(t,"disabled")||this.d_activeIndex===n||(this.d_activeIndex=n,this.$emit("update:activeIndex",n),this.$emit("tab-change",{originalEvent:e,index:n}),this.scrollInView({index:n}))},changeFocusedTab:function(e,t){if(t&&(a.DomHandler.focus(t),this.scrollInView({element:t}),this.selectOnFocus)){var n=parseInt(t.parentElement.dataset.index,10);this.changeActiveIndex(e,this.tabs[n],n)}},scrollInView:function(e){var t=e.index,n=e.element||this.$refs.nav.children[void 0===t?-1:t];n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest"})},updateInkBar:function(){var e=this.$refs.nav.children[this.d_activeIndex];this.$refs.inkbar.style.width=a.DomHandler.getWidth(e)+"px",this.$refs.inkbar.style.left=a.DomHandler.getOffset(e).left-a.DomHandler.getOffset(this.$refs.nav).left+"px"},updateButtonState:function(){var e=this.$refs.content,t=e.scrollLeft,n=e.scrollWidth,r=a.DomHandler.getWidth(e);this.isPrevButtonDisabled=0===t,this.isNextButtonDisabled=parseInt(t)===n-r},getVisibleButtonWidths:function(){var e=this.$refs;return[e.prevBtn,e.nextBtn].reduce((function(e,t){return t?e+a.DomHandler.getWidth(t):e}),0)}},computed:{tabs:function(){var e=this;return this.$slots.default().reduce((function(t,n){return e.isTabPanel(n)?t.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){e.isTabPanel(n)&&t.push(n)})),t}),[])},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0}},directives:{ripple:d.default},components:{ChevronLeftIcon:l.default,ChevronRightIcon:s.default}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){var a;return(t="symbol"==p(a=v(t,"string"))?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=p(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m=["tabindex","aria-label"],g=["data-p-highlight","data-p-disabled","data-pc-index","data-p-active"],y=["id","tabindex","aria-disabled","aria-selected","aria-controls","onClick","onKeydown"],x=["tabindex","aria-label"],P=["id","aria-labelledby","data-pc-index","data-p-active"];u.render=function(e,t,n,a,i,o){var c=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),role:"tablist"},e.ptm("root"),{"data-pc-name":"tabview"}),[r.createElementVNode("div",r.mergeProps({class:e.cx("navContainer")},e.ptm("navContainer")),[e.scrollable&&!i.isPrevButtonDisabled?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,ref:"prevBtn",type:"button",class:e.cx("previousButton"),tabindex:e.tabindex,"aria-label":o.prevButtonAriaLabel,onClick:t[0]||(t[0]=function(){return o.onPrevButtonClick&&o.onPrevButtonClick.apply(o,arguments)})},h(h({},e.previousButtonProps),e.ptm("previousButton")),{"data-pc-group-section":"navbutton"}),[r.renderSlot(e.$slots,"previcon",{},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.prevIcon?"span":"ChevronLeftIcon"),r.mergeProps({"aria-hidden":"true",class:e.prevIcon},e.ptm("previousIcon")),null,16,["class"]))]}))],16,m)),[[c]]):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({ref:"content",class:e.cx("navContent"),onScroll:t[1]||(t[1]=function(){return o.onScroll&&o.onScroll.apply(o,arguments)})},e.ptm("navContent")),[r.createElementVNode("ul",r.mergeProps({ref:"nav",class:e.cx("nav")},e.ptm("nav")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,(function(t,n){return r.openBlock(),r.createElementBlock("li",r.mergeProps({key:o.getKey(t,n),style:o.getTabProp(t,"headerStyle"),class:e.cx("tab.header",{tab:t,index:n}),role:"presentation"},h(h(h({},o.getTabProp(t,"headerProps")),o.getTabPT(t,"root",n)),o.getTabPT(t,"header",n)),{"data-pc-name":"tabpanel","data-p-highlight":i.d_activeIndex===n,"data-p-disabled":o.getTabProp(t,"disabled"),"data-pc-index":n,"data-p-active":i.d_activeIndex===n}),[r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({id:o.getTabHeaderActionId(n),class:e.cx("tab.headerAction"),tabindex:o.getTabProp(t,"disabled")||!o.isTabActive(n)?-1:e.tabindex,role:"tab","aria-disabled":o.getTabProp(t,"disabled"),"aria-selected":o.isTabActive(n),"aria-controls":o.getTabContentId(n),onClick:function(e){return o.onTabClick(e,t,n)},onKeydown:function(e){return o.onTabKeyDown(e,t,n)}},h(h({},o.getTabProp(t,"headerActionProps")),o.getTabPT(t,"headerAction",n))),[t.props&&t.props.header?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:e.cx("tab.headerTitle")},o.getTabPT(t,"headerTitle",n)),r.toDisplayString(t.props.header),17)):r.createCommentVNode("",!0),t.children&&t.children.header?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.children.header),{key:1})):r.createCommentVNode("",!0)],16,y)),[[c]])],16,g)})),128)),r.createElementVNode("li",r.mergeProps({ref:"inkbar",class:e.cx("inkbar"),role:"presentation","aria-hidden":"true"},e.ptm("inkbar")),null,16)],16)],16),e.scrollable&&!i.isNextButtonDisabled?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:1,ref:"nextBtn",type:"button",class:e.cx("nextButton"),tabindex:e.tabindex,"aria-label":o.nextButtonAriaLabel,onClick:t[2]||(t[2]=function(){return o.onNextButtonClick&&o.onNextButtonClick.apply(o,arguments)})},h(h({},e.nextButtonProps),e.ptm("nextButton")),{"data-pc-group-section":"navbutton"}),[r.renderSlot(e.$slots,"nexticon",{},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.nextIcon?"span":"ChevronRightIcon"),r.mergeProps({"aria-hidden":"true",class:e.nextIcon},e.ptm("nextIcon")),null,16,["class"]))]}))],16,x)),[[c]]):r.createCommentVNode("",!0)],16),r.createElementVNode("div",r.mergeProps({class:e.cx("panelContainer")},e.ptm("panelContainer")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,(function(t,n){return r.openBlock(),r.createElementBlock(r.Fragment,{key:o.getKey(t,n)},[!e.lazy||o.isTabActive(n)?r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,id:o.getTabContentId(n),style:o.getTabProp(t,"contentStyle"),class:e.cx("tab.content",{tab:t}),role:"tabpanel","aria-labelledby":o.getTabHeaderActionId(n)},h(h(h({},o.getTabProp(t,"contentProps")),o.getTabPT(t,"root",n)),o.getTabPT(t,"content",n)),{"data-pc-name":"tabpanel","data-pc-index":n,"data-p-active":i.d_activeIndex===n}),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t)))],16,P)),[[r.vShow,!!e.lazy||o.isTabActive(n)]]):r.createCommentVNode("",!0)],64)})),128))],16)],16)},module.exports=u;
|
|
1
|
+
"use strict";var e=require("primevue/icons/chevronleft"),t=require("primevue/icons/chevronright"),n=require("primevue/ripple"),a=require("primevue/utils"),r=require("vue"),i=require("primevue/basecomponent"),o=require("primevue/tabview/style");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),s=c(t),d=c(n),u={name:"TabView",extends:{name:"BaseTabView",extends:c(i).default,props:{activeIndex:{type:Number,default:0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1},previousButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0}},style:c(o).default,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex,isPrevButtonDisabled:!0,isNextButtonDisabled:!1}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},activeIndex:function(e){this.d_activeIndex=e,this.scrollInView({index:e})}},mounted:function(){this.id=this.id||a.UniqueComponentId(),this.updateInkBar(),this.scrollable&&this.updateButtonState()},updated:function(){this.updateInkBar(),this.scrollable&&this.updateButtonState()},methods:{isTabPanel:function(e){return"TabPanel"===e.type.name},isTabActive:function(e){return this.d_activeIndex===e},getTabProp:function(e,t){return e.props?e.props[t]:void 0},getKey:function(e,t){return this.getTabProp(e,"header")||t},getTabHeaderActionId:function(e){return"".concat(this.id,"_").concat(e,"_header_action")},getTabContentId:function(e){return"".concat(this.id,"_").concat(e,"_content")},getTabPT:function(e,t,n){var a=this.tabs.length,i={props:e.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:a,first:0===n,last:n===a-1,active:this.isTabActive(n)}};return r.mergeProps(this.ptm("tab.".concat(t),{tab:i}),this.ptm("tabpanel.".concat(t),{tabpanel:i}),this.ptm("tabpanel.".concat(t),i),this.ptmo(this.getTabProp(e,"pt"),t,i))},onScroll:function(e){this.scrollable&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,t=a.DomHandler.getWidth(e),n=e.scrollLeft-t;e.scrollLeft=n<=0?0:n},onNextButtonClick:function(){var e=this.$refs.content,t=a.DomHandler.getWidth(e)-this.getVisibleButtonWidths(),n=e.scrollLeft+t,r=e.scrollWidth-t;e.scrollLeft=n>=r?r:n},onTabClick:function(e,t,n){this.changeActiveIndex(e,t,n),this.$emit("tab-click",{originalEvent:e,index:n})},onTabKeyDown:function(e,t,n){switch(e.code){case"ArrowLeft":this.onTabArrowLeftKey(e);break;case"ArrowRight":this.onTabArrowRightKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(e,t,n)}},onTabArrowRightKey:function(e){var t=this.findNextHeaderAction(e.target.parentElement);t?this.changeFocusedTab(e,t):this.onTabHomeKey(e),e.preventDefault()},onTabArrowLeftKey:function(e){var t=this.findPrevHeaderAction(e.target.parentElement);t?this.changeFocusedTab(e,t):this.onTabEndKey(e),e.preventDefault()},onTabHomeKey:function(e){var t=this.findFirstHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onTabEndKey:function(e){var t=this.findLastHeaderAction();this.changeFocusedTab(e,t),e.preventDefault()},onPageDownKey:function(e){this.scrollInView({index:this.$refs.nav.children.length-2}),e.preventDefault()},onPageUpKey:function(e){this.scrollInView({index:0}),e.preventDefault()},onTabEnterKey:function(e,t,n){this.changeActiveIndex(e,t,n),e.preventDefault()},findNextHeaderAction:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling;return t?a.DomHandler.getAttribute(t,"data-p-disabled")||"inkbar"===a.DomHandler.getAttribute(t,"data-pc-section")?this.findNextHeaderAction(t):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling;return t?a.DomHandler.getAttribute(t,"data-p-disabled")||"inkbar"===a.DomHandler.getAttribute(t,"data-pc-section")?this.findPrevHeaderAction(t):a.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$refs.nav.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$refs.nav.lastElementChild,!0)},changeActiveIndex:function(e,t,n){this.getTabProp(t,"disabled")||this.d_activeIndex===n||(this.d_activeIndex=n,this.$emit("update:activeIndex",n),this.$emit("tab-change",{originalEvent:e,index:n}),this.scrollInView({index:n}))},changeFocusedTab:function(e,t){if(t&&(a.DomHandler.focus(t),this.scrollInView({element:t}),this.selectOnFocus)){var n=parseInt(t.parentElement.dataset.index,10);this.changeActiveIndex(e,this.tabs[n],n)}},scrollInView:function(e){var t=e.index,n=e.element||this.$refs.nav.children[void 0===t?-1:t];n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest"})},updateInkBar:function(){var e=this.$refs.nav.children[this.d_activeIndex];this.$refs.inkbar.style.width=a.DomHandler.getWidth(e)+"px",this.$refs.inkbar.style.left=a.DomHandler.getOffset(e).left-a.DomHandler.getOffset(this.$refs.nav).left+"px"},updateButtonState:function(){var e=this.$refs.content,t=e.scrollLeft,n=e.scrollWidth,r=a.DomHandler.getWidth(e);this.isPrevButtonDisabled=0===t,this.isNextButtonDisabled=parseInt(t)===n-r},getVisibleButtonWidths:function(){var e=this.$refs;return[e.prevBtn,e.nextBtn].reduce((function(e,t){return t?e+a.DomHandler.getWidth(t):e}),0)}},computed:{tabs:function(){var e=this;return this.$slots.default().reduce((function(t,n){return e.isTabPanel(n)?t.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){e.isTabPanel(n)&&t.push(n)})),t}),[])},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0}},directives:{ripple:d.default},components:{ChevronLeftIcon:l.default,ChevronRightIcon:s.default}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){var a;return(t="symbol"==p(a=v(t,"string"))?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=p(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m=["tabindex","aria-label"],g=["data-p-highlight","data-p-disabled","data-pc-index","data-p-active"],y=["id","tabindex","aria-disabled","aria-selected","aria-controls","onClick","onKeydown"],x=["tabindex","aria-label"],P=["id","aria-labelledby","data-pc-index","data-p-active"];u.render=function(e,t,n,a,i,o){var c=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),role:"tablist"},e.ptm("root")),[r.createElementVNode("div",r.mergeProps({class:e.cx("navContainer")},e.ptm("navContainer")),[e.scrollable&&!i.isPrevButtonDisabled?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,ref:"prevBtn",type:"button",class:e.cx("previousButton"),tabindex:e.tabindex,"aria-label":o.prevButtonAriaLabel,onClick:t[0]||(t[0]=function(){return o.onPrevButtonClick&&o.onPrevButtonClick.apply(o,arguments)})},h(h({},e.previousButtonProps),e.ptm("previousButton")),{"data-pc-group-section":"navbutton"}),[r.renderSlot(e.$slots,"previcon",{},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.prevIcon?"span":"ChevronLeftIcon"),r.mergeProps({"aria-hidden":"true",class:e.prevIcon},e.ptm("previousIcon")),null,16,["class"]))]}))],16,m)),[[c]]):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({ref:"content",class:e.cx("navContent"),onScroll:t[1]||(t[1]=function(){return o.onScroll&&o.onScroll.apply(o,arguments)})},e.ptm("navContent")),[r.createElementVNode("ul",r.mergeProps({ref:"nav",class:e.cx("nav")},e.ptm("nav")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,(function(t,n){return r.openBlock(),r.createElementBlock("li",r.mergeProps({key:o.getKey(t,n),style:o.getTabProp(t,"headerStyle"),class:e.cx("tab.header",{tab:t,index:n}),role:"presentation"},h(h(h({},o.getTabProp(t,"headerProps")),o.getTabPT(t,"root",n)),o.getTabPT(t,"header",n)),{"data-pc-name":"tabpanel","data-p-highlight":i.d_activeIndex===n,"data-p-disabled":o.getTabProp(t,"disabled"),"data-pc-index":n,"data-p-active":i.d_activeIndex===n}),[r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({id:o.getTabHeaderActionId(n),class:e.cx("tab.headerAction"),tabindex:o.getTabProp(t,"disabled")||!o.isTabActive(n)?-1:e.tabindex,role:"tab","aria-disabled":o.getTabProp(t,"disabled"),"aria-selected":o.isTabActive(n),"aria-controls":o.getTabContentId(n),onClick:function(e){return o.onTabClick(e,t,n)},onKeydown:function(e){return o.onTabKeyDown(e,t,n)}},h(h({},o.getTabProp(t,"headerActionProps")),o.getTabPT(t,"headerAction",n))),[t.props&&t.props.header?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:e.cx("tab.headerTitle")},o.getTabPT(t,"headerTitle",n)),r.toDisplayString(t.props.header),17)):r.createCommentVNode("",!0),t.children&&t.children.header?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.children.header),{key:1})):r.createCommentVNode("",!0)],16,y)),[[c]])],16,g)})),128)),r.createElementVNode("li",r.mergeProps({ref:"inkbar",class:e.cx("inkbar"),role:"presentation","aria-hidden":"true"},e.ptm("inkbar")),null,16)],16)],16),e.scrollable&&!i.isNextButtonDisabled?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:1,ref:"nextBtn",type:"button",class:e.cx("nextButton"),tabindex:e.tabindex,"aria-label":o.nextButtonAriaLabel,onClick:t[2]||(t[2]=function(){return o.onNextButtonClick&&o.onNextButtonClick.apply(o,arguments)})},h(h({},e.nextButtonProps),e.ptm("nextButton")),{"data-pc-group-section":"navbutton"}),[r.renderSlot(e.$slots,"nexticon",{},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.nextIcon?"span":"ChevronRightIcon"),r.mergeProps({"aria-hidden":"true",class:e.nextIcon},e.ptm("nextIcon")),null,16,["class"]))]}))],16,x)),[[c]]):r.createCommentVNode("",!0)],16),r.createElementVNode("div",r.mergeProps({class:e.cx("panelContainer")},e.ptm("panelContainer")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.tabs,(function(t,n){return r.openBlock(),r.createElementBlock(r.Fragment,{key:o.getKey(t,n)},[!e.lazy||o.isTabActive(n)?r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,id:o.getTabContentId(n),style:o.getTabProp(t,"contentStyle"),class:e.cx("tab.content",{tab:t}),role:"tabpanel","aria-labelledby":o.getTabHeaderActionId(n)},h(h(h({},o.getTabProp(t,"contentProps")),o.getTabPT(t,"root",n)),o.getTabPT(t,"content",n)),{"data-pc-name":"tabpanel","data-pc-index":n,"data-p-active":i.d_activeIndex===n}),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t)))],16,P)),[[r.vShow,!!e.lazy||o.isTabActive(n)]]):r.createCommentVNode("",!0)],64)})),128))],16)],16)},module.exports=u;
|
package/tabview/tabview.esm.js
CHANGED
|
@@ -85,6 +85,7 @@ var script = {
|
|
|
85
85
|
},
|
|
86
86
|
updated: function updated() {
|
|
87
87
|
this.updateInkBar();
|
|
88
|
+
this.scrollable && this.updateButtonState();
|
|
88
89
|
},
|
|
89
90
|
methods: {
|
|
90
91
|
isTabPanel: function isTabPanel(child) {
|
|
@@ -338,9 +339,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
338
339
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
339
340
|
"class": _ctx.cx('root'),
|
|
340
341
|
role: "tablist"
|
|
341
|
-
}, _ctx.ptm('root'), {
|
|
342
|
-
"data-pc-name": "tabview"
|
|
343
|
-
}), [createElementVNode("div", mergeProps({
|
|
342
|
+
}, _ctx.ptm('root')), [createElementVNode("div", mergeProps({
|
|
344
343
|
"class": _ctx.cx('navContainer')
|
|
345
344
|
}, _ctx.ptm('navContainer')), [_ctx.scrollable && !$data.isPrevButtonDisabled ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
346
345
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"primevue/icons/chevronleft";import e from"primevue/icons/chevronright";import n from"primevue/ripple";import{UniqueComponentId as i,DomHandler as a}from"primevue/utils";import{mergeProps as r,resolveDirective as o,openBlock as c,createElementBlock as s,createElementVNode as l,withDirectives as d,renderSlot as u,createBlock as p,resolveDynamicComponent as b,createCommentVNode as h,Fragment as f,renderList as v,toDisplayString as g,vShow as m}from"vue";import y from"primevue/basecomponent";import x from"primevue/tabview/style";var T={name:"TabView",extends:{name:"BaseTabView",extends:y,props:{activeIndex:{type:Number,default:0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1},previousButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0}},style:x,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex,isPrevButtonDisabled:!0,isNextButtonDisabled:!1}},watch:{"$attrs.id":function(t){this.id=t||i()},activeIndex:function(t){this.d_activeIndex=t,this.scrollInView({index:t})}},mounted:function(){this.id=this.id||i(),this.updateInkBar(),this.scrollable&&this.updateButtonState()},updated:function(){this.updateInkBar()},methods:{isTabPanel:function(t){return"TabPanel"===t.type.name},isTabActive:function(t){return this.d_activeIndex===t},getTabProp:function(t,e){return t.props?t.props[e]:void 0},getKey:function(t,e){return this.getTabProp(t,"header")||e},getTabHeaderActionId:function(t){return"".concat(this.id,"_").concat(t,"_header_action")},getTabContentId:function(t){return"".concat(this.id,"_").concat(t,"_content")},getTabPT:function(t,e,n){var i=this.tabs.length,a={props:t.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:i,first:0===n,last:n===i-1,active:this.isTabActive(n)}};return r(this.ptm("tab.".concat(e),{tab:a}),this.ptm("tabpanel.".concat(e),{tabpanel:a}),this.ptm("tabpanel.".concat(e),a),this.ptmo(this.getTabProp(t,"pt"),e,a))},onScroll:function(t){this.scrollable&&this.updateButtonState(),t.preventDefault()},onPrevButtonClick:function(){var t=this.$refs.content,e=a.getWidth(t),n=t.scrollLeft-e;t.scrollLeft=n<=0?0:n},onNextButtonClick:function(){var t=this.$refs.content,e=a.getWidth(t)-this.getVisibleButtonWidths(),n=t.scrollLeft+e,i=t.scrollWidth-e;t.scrollLeft=n>=i?i:n},onTabClick:function(t,e,n){this.changeActiveIndex(t,e,n),this.$emit("tab-click",{originalEvent:t,index:n})},onTabKeyDown:function(t,e,n){switch(t.code){case"ArrowLeft":this.onTabArrowLeftKey(t);break;case"ArrowRight":this.onTabArrowRightKey(t);break;case"Home":this.onTabHomeKey(t);break;case"End":this.onTabEndKey(t);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(t,e,n)}},onTabArrowRightKey:function(t){var e=this.findNextHeaderAction(t.target.parentElement);e?this.changeFocusedTab(t,e):this.onTabHomeKey(t),t.preventDefault()},onTabArrowLeftKey:function(t){var e=this.findPrevHeaderAction(t.target.parentElement);e?this.changeFocusedTab(t,e):this.onTabEndKey(t),t.preventDefault()},onTabHomeKey:function(t){var e=this.findFirstHeaderAction();this.changeFocusedTab(t,e),t.preventDefault()},onTabEndKey:function(t){var e=this.findLastHeaderAction();this.changeFocusedTab(t,e),t.preventDefault()},onPageDownKey:function(t){this.scrollInView({index:this.$refs.nav.children.length-2}),t.preventDefault()},onPageUpKey:function(t){this.scrollInView({index:0}),t.preventDefault()},onTabEnterKey:function(t,e,n){this.changeActiveIndex(t,e,n),t.preventDefault()},findNextHeaderAction:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t:t.nextElementSibling;return e?a.getAttribute(e,"data-p-disabled")||"inkbar"===a.getAttribute(e,"data-pc-section")?this.findNextHeaderAction(e):a.findSingle(e,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t:t.previousElementSibling;return e?a.getAttribute(e,"data-p-disabled")||"inkbar"===a.getAttribute(e,"data-pc-section")?this.findPrevHeaderAction(e):a.findSingle(e,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$refs.nav.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$refs.nav.lastElementChild,!0)},changeActiveIndex:function(t,e,n){this.getTabProp(e,"disabled")||this.d_activeIndex===n||(this.d_activeIndex=n,this.$emit("update:activeIndex",n),this.$emit("tab-change",{originalEvent:t,index:n}),this.scrollInView({index:n}))},changeFocusedTab:function(t,e){if(e&&(a.focus(e),this.scrollInView({element:e}),this.selectOnFocus)){var n=parseInt(e.parentElement.dataset.index,10);this.changeActiveIndex(t,this.tabs[n],n)}},scrollInView:function(t){var e=t.index,n=t.element||this.$refs.nav.children[void 0===e?-1:e];n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest"})},updateInkBar:function(){var t=this.$refs.nav.children[this.d_activeIndex];this.$refs.inkbar.style.width=a.getWidth(t)+"px",this.$refs.inkbar.style.left=a.getOffset(t).left-a.getOffset(this.$refs.nav).left+"px"},updateButtonState:function(){var t=this.$refs.content,e=t.scrollLeft,n=t.scrollWidth,i=a.getWidth(t);this.isPrevButtonDisabled=0===e,this.isNextButtonDisabled=parseInt(e)===n-i},getVisibleButtonWidths:function(){var t=this.$refs;return[t.prevBtn,t.nextBtn].reduce((function(t,e){return e?t+a.getWidth(e):t}),0)}},computed:{tabs:function(){var t=this;return this.$slots.default().reduce((function(e,n){return t.isTabPanel(n)?e.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){t.isTabPanel(n)&&e.push(n)})),e}),[])},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0}},directives:{ripple:n},components:{ChevronLeftIcon:t,ChevronRightIcon:e}};function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){B(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function B(t,e,n){var i;return(e="symbol"==P(i=k(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t,e){if("object"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=P(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var w=["tabindex","aria-label"],C=["data-p-highlight","data-p-disabled","data-pc-index","data-p-active"],$=["id","tabindex","aria-disabled","aria-selected","aria-controls","onClick","onKeydown"],S=["tabindex","aria-label"],D=["id","aria-labelledby","data-pc-index","data-p-active"];T.render=function(t,e,n,i,a,y){var x=o("ripple");return c(),s("div",r({class:t.cx("root"),role:"tablist"},t.ptm("root"),{"data-pc-name":"tabview"}),[l("div",r({class:t.cx("navContainer")},t.ptm("navContainer")),[t.scrollable&&!a.isPrevButtonDisabled?d((c(),s("button",r({key:0,ref:"prevBtn",type:"button",class:t.cx("previousButton"),tabindex:t.tabindex,"aria-label":y.prevButtonAriaLabel,onClick:e[0]||(e[0]=function(){return y.onPrevButtonClick&&y.onPrevButtonClick.apply(y,arguments)})},A(A({},t.previousButtonProps),t.ptm("previousButton")),{"data-pc-group-section":"navbutton"}),[u(t.$slots,"previcon",{},(function(){return[(c(),p(b(t.prevIcon?"span":"ChevronLeftIcon"),r({"aria-hidden":"true",class:t.prevIcon},t.ptm("previousIcon")),null,16,["class"]))]}))],16,w)),[[x]]):h("",!0),l("div",r({ref:"content",class:t.cx("navContent"),onScroll:e[1]||(e[1]=function(){return y.onScroll&&y.onScroll.apply(y,arguments)})},t.ptm("navContent")),[l("ul",r({ref:"nav",class:t.cx("nav")},t.ptm("nav")),[(c(!0),s(f,null,v(y.tabs,(function(e,n){return c(),s("li",r({key:y.getKey(e,n),style:y.getTabProp(e,"headerStyle"),class:t.cx("tab.header",{tab:e,index:n}),role:"presentation"},A(A(A({},y.getTabProp(e,"headerProps")),y.getTabPT(e,"root",n)),y.getTabPT(e,"header",n)),{"data-pc-name":"tabpanel","data-p-highlight":a.d_activeIndex===n,"data-p-disabled":y.getTabProp(e,"disabled"),"data-pc-index":n,"data-p-active":a.d_activeIndex===n}),[d((c(),s("a",r({id:y.getTabHeaderActionId(n),class:t.cx("tab.headerAction"),tabindex:y.getTabProp(e,"disabled")||!y.isTabActive(n)?-1:t.tabindex,role:"tab","aria-disabled":y.getTabProp(e,"disabled"),"aria-selected":y.isTabActive(n),"aria-controls":y.getTabContentId(n),onClick:function(t){return y.onTabClick(t,e,n)},onKeydown:function(t){return y.onTabKeyDown(t,e,n)}},A(A({},y.getTabProp(e,"headerActionProps")),y.getTabPT(e,"headerAction",n))),[e.props&&e.props.header?(c(),s("span",r({key:0,class:t.cx("tab.headerTitle")},y.getTabPT(e,"headerTitle",n)),g(e.props.header),17)):h("",!0),e.children&&e.children.header?(c(),p(b(e.children.header),{key:1})):h("",!0)],16,$)),[[x]])],16,C)})),128)),l("li",r({ref:"inkbar",class:t.cx("inkbar"),role:"presentation","aria-hidden":"true"},t.ptm("inkbar")),null,16)],16)],16),t.scrollable&&!a.isNextButtonDisabled?d((c(),s("button",r({key:1,ref:"nextBtn",type:"button",class:t.cx("nextButton"),tabindex:t.tabindex,"aria-label":y.nextButtonAriaLabel,onClick:e[2]||(e[2]=function(){return y.onNextButtonClick&&y.onNextButtonClick.apply(y,arguments)})},A(A({},t.nextButtonProps),t.ptm("nextButton")),{"data-pc-group-section":"navbutton"}),[u(t.$slots,"nexticon",{},(function(){return[(c(),p(b(t.nextIcon?"span":"ChevronRightIcon"),r({"aria-hidden":"true",class:t.nextIcon},t.ptm("nextIcon")),null,16,["class"]))]}))],16,S)),[[x]]):h("",!0)],16),l("div",r({class:t.cx("panelContainer")},t.ptm("panelContainer")),[(c(!0),s(f,null,v(y.tabs,(function(e,n){return c(),s(f,{key:y.getKey(e,n)},[!t.lazy||y.isTabActive(n)?d((c(),s("div",r({key:0,id:y.getTabContentId(n),style:y.getTabProp(e,"contentStyle"),class:t.cx("tab.content",{tab:e}),role:"tabpanel","aria-labelledby":y.getTabHeaderActionId(n)},A(A(A({},y.getTabProp(e,"contentProps")),y.getTabPT(e,"root",n)),y.getTabPT(e,"content",n)),{"data-pc-name":"tabpanel","data-pc-index":n,"data-p-active":a.d_activeIndex===n}),[(c(),p(b(e)))],16,D)),[[m,!!t.lazy||y.isTabActive(n)]]):h("",!0)],64)})),128))],16)],16)};export{T as default};
|
|
1
|
+
import t from"primevue/icons/chevronleft";import e from"primevue/icons/chevronright";import n from"primevue/ripple";import{UniqueComponentId as i,DomHandler as a}from"primevue/utils";import{mergeProps as r,resolveDirective as o,openBlock as c,createElementBlock as s,createElementVNode as l,withDirectives as d,renderSlot as u,createBlock as p,resolveDynamicComponent as b,createCommentVNode as h,Fragment as f,renderList as v,toDisplayString as g,vShow as y}from"vue";import m from"primevue/basecomponent";import x from"primevue/tabview/style";var T={name:"TabView",extends:{name:"BaseTabView",extends:m,props:{activeIndex:{type:Number,default:0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1},previousButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0}},style:x,provide:function(){return{$parentInstance:this}}},emits:["update:activeIndex","tab-change","tab-click"],data:function(){return{id:this.$attrs.id,d_activeIndex:this.activeIndex,isPrevButtonDisabled:!0,isNextButtonDisabled:!1}},watch:{"$attrs.id":function(t){this.id=t||i()},activeIndex:function(t){this.d_activeIndex=t,this.scrollInView({index:t})}},mounted:function(){this.id=this.id||i(),this.updateInkBar(),this.scrollable&&this.updateButtonState()},updated:function(){this.updateInkBar(),this.scrollable&&this.updateButtonState()},methods:{isTabPanel:function(t){return"TabPanel"===t.type.name},isTabActive:function(t){return this.d_activeIndex===t},getTabProp:function(t,e){return t.props?t.props[e]:void 0},getKey:function(t,e){return this.getTabProp(t,"header")||e},getTabHeaderActionId:function(t){return"".concat(this.id,"_").concat(t,"_header_action")},getTabContentId:function(t){return"".concat(this.id,"_").concat(t,"_content")},getTabPT:function(t,e,n){var i=this.tabs.length,a={props:t.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:n,count:i,first:0===n,last:n===i-1,active:this.isTabActive(n)}};return r(this.ptm("tab.".concat(e),{tab:a}),this.ptm("tabpanel.".concat(e),{tabpanel:a}),this.ptm("tabpanel.".concat(e),a),this.ptmo(this.getTabProp(t,"pt"),e,a))},onScroll:function(t){this.scrollable&&this.updateButtonState(),t.preventDefault()},onPrevButtonClick:function(){var t=this.$refs.content,e=a.getWidth(t),n=t.scrollLeft-e;t.scrollLeft=n<=0?0:n},onNextButtonClick:function(){var t=this.$refs.content,e=a.getWidth(t)-this.getVisibleButtonWidths(),n=t.scrollLeft+e,i=t.scrollWidth-e;t.scrollLeft=n>=i?i:n},onTabClick:function(t,e,n){this.changeActiveIndex(t,e,n),this.$emit("tab-click",{originalEvent:t,index:n})},onTabKeyDown:function(t,e,n){switch(t.code){case"ArrowLeft":this.onTabArrowLeftKey(t);break;case"ArrowRight":this.onTabArrowRightKey(t);break;case"Home":this.onTabHomeKey(t);break;case"End":this.onTabEndKey(t);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Enter":case"NumpadEnter":case"Space":this.onTabEnterKey(t,e,n)}},onTabArrowRightKey:function(t){var e=this.findNextHeaderAction(t.target.parentElement);e?this.changeFocusedTab(t,e):this.onTabHomeKey(t),t.preventDefault()},onTabArrowLeftKey:function(t){var e=this.findPrevHeaderAction(t.target.parentElement);e?this.changeFocusedTab(t,e):this.onTabEndKey(t),t.preventDefault()},onTabHomeKey:function(t){var e=this.findFirstHeaderAction();this.changeFocusedTab(t,e),t.preventDefault()},onTabEndKey:function(t){var e=this.findLastHeaderAction();this.changeFocusedTab(t,e),t.preventDefault()},onPageDownKey:function(t){this.scrollInView({index:this.$refs.nav.children.length-2}),t.preventDefault()},onPageUpKey:function(t){this.scrollInView({index:0}),t.preventDefault()},onTabEnterKey:function(t,e,n){this.changeActiveIndex(t,e,n),t.preventDefault()},findNextHeaderAction:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t:t.nextElementSibling;return e?a.getAttribute(e,"data-p-disabled")||"inkbar"===a.getAttribute(e,"data-pc-section")?this.findNextHeaderAction(e):a.findSingle(e,'[data-pc-section="headeraction"]'):null},findPrevHeaderAction:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t:t.previousElementSibling;return e?a.getAttribute(e,"data-p-disabled")||"inkbar"===a.getAttribute(e,"data-pc-section")?this.findPrevHeaderAction(e):a.findSingle(e,'[data-pc-section="headeraction"]'):null},findFirstHeaderAction:function(){return this.findNextHeaderAction(this.$refs.nav.firstElementChild,!0)},findLastHeaderAction:function(){return this.findPrevHeaderAction(this.$refs.nav.lastElementChild,!0)},changeActiveIndex:function(t,e,n){this.getTabProp(e,"disabled")||this.d_activeIndex===n||(this.d_activeIndex=n,this.$emit("update:activeIndex",n),this.$emit("tab-change",{originalEvent:t,index:n}),this.scrollInView({index:n}))},changeFocusedTab:function(t,e){if(e&&(a.focus(e),this.scrollInView({element:e}),this.selectOnFocus)){var n=parseInt(e.parentElement.dataset.index,10);this.changeActiveIndex(t,this.tabs[n],n)}},scrollInView:function(t){var e=t.index,n=t.element||this.$refs.nav.children[void 0===e?-1:e];n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest"})},updateInkBar:function(){var t=this.$refs.nav.children[this.d_activeIndex];this.$refs.inkbar.style.width=a.getWidth(t)+"px",this.$refs.inkbar.style.left=a.getOffset(t).left-a.getOffset(this.$refs.nav).left+"px"},updateButtonState:function(){var t=this.$refs.content,e=t.scrollLeft,n=t.scrollWidth,i=a.getWidth(t);this.isPrevButtonDisabled=0===e,this.isNextButtonDisabled=parseInt(e)===n-i},getVisibleButtonWidths:function(){var t=this.$refs;return[t.prevBtn,t.nextBtn].reduce((function(t,e){return e?t+a.getWidth(e):t}),0)}},computed:{tabs:function(){var t=this;return this.$slots.default().reduce((function(e,n){return t.isTabPanel(n)?e.push(n):n.children&&n.children instanceof Array&&n.children.forEach((function(n){t.isTabPanel(n)&&e.push(n)})),e}),[])},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0}},directives:{ripple:n},components:{ChevronLeftIcon:t,ChevronRightIcon:e}};function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){B(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function B(t,e,n){var i;return(e="symbol"==P(i=k(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t,e){if("object"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=P(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var w=["tabindex","aria-label"],C=["data-p-highlight","data-p-disabled","data-pc-index","data-p-active"],S=["id","tabindex","aria-disabled","aria-selected","aria-controls","onClick","onKeydown"],$=["tabindex","aria-label"],D=["id","aria-labelledby","data-pc-index","data-p-active"];T.render=function(t,e,n,i,a,m){var x=o("ripple");return c(),s("div",r({class:t.cx("root"),role:"tablist"},t.ptm("root")),[l("div",r({class:t.cx("navContainer")},t.ptm("navContainer")),[t.scrollable&&!a.isPrevButtonDisabled?d((c(),s("button",r({key:0,ref:"prevBtn",type:"button",class:t.cx("previousButton"),tabindex:t.tabindex,"aria-label":m.prevButtonAriaLabel,onClick:e[0]||(e[0]=function(){return m.onPrevButtonClick&&m.onPrevButtonClick.apply(m,arguments)})},A(A({},t.previousButtonProps),t.ptm("previousButton")),{"data-pc-group-section":"navbutton"}),[u(t.$slots,"previcon",{},(function(){return[(c(),p(b(t.prevIcon?"span":"ChevronLeftIcon"),r({"aria-hidden":"true",class:t.prevIcon},t.ptm("previousIcon")),null,16,["class"]))]}))],16,w)),[[x]]):h("",!0),l("div",r({ref:"content",class:t.cx("navContent"),onScroll:e[1]||(e[1]=function(){return m.onScroll&&m.onScroll.apply(m,arguments)})},t.ptm("navContent")),[l("ul",r({ref:"nav",class:t.cx("nav")},t.ptm("nav")),[(c(!0),s(f,null,v(m.tabs,(function(e,n){return c(),s("li",r({key:m.getKey(e,n),style:m.getTabProp(e,"headerStyle"),class:t.cx("tab.header",{tab:e,index:n}),role:"presentation"},A(A(A({},m.getTabProp(e,"headerProps")),m.getTabPT(e,"root",n)),m.getTabPT(e,"header",n)),{"data-pc-name":"tabpanel","data-p-highlight":a.d_activeIndex===n,"data-p-disabled":m.getTabProp(e,"disabled"),"data-pc-index":n,"data-p-active":a.d_activeIndex===n}),[d((c(),s("a",r({id:m.getTabHeaderActionId(n),class:t.cx("tab.headerAction"),tabindex:m.getTabProp(e,"disabled")||!m.isTabActive(n)?-1:t.tabindex,role:"tab","aria-disabled":m.getTabProp(e,"disabled"),"aria-selected":m.isTabActive(n),"aria-controls":m.getTabContentId(n),onClick:function(t){return m.onTabClick(t,e,n)},onKeydown:function(t){return m.onTabKeyDown(t,e,n)}},A(A({},m.getTabProp(e,"headerActionProps")),m.getTabPT(e,"headerAction",n))),[e.props&&e.props.header?(c(),s("span",r({key:0,class:t.cx("tab.headerTitle")},m.getTabPT(e,"headerTitle",n)),g(e.props.header),17)):h("",!0),e.children&&e.children.header?(c(),p(b(e.children.header),{key:1})):h("",!0)],16,S)),[[x]])],16,C)})),128)),l("li",r({ref:"inkbar",class:t.cx("inkbar"),role:"presentation","aria-hidden":"true"},t.ptm("inkbar")),null,16)],16)],16),t.scrollable&&!a.isNextButtonDisabled?d((c(),s("button",r({key:1,ref:"nextBtn",type:"button",class:t.cx("nextButton"),tabindex:t.tabindex,"aria-label":m.nextButtonAriaLabel,onClick:e[2]||(e[2]=function(){return m.onNextButtonClick&&m.onNextButtonClick.apply(m,arguments)})},A(A({},t.nextButtonProps),t.ptm("nextButton")),{"data-pc-group-section":"navbutton"}),[u(t.$slots,"nexticon",{},(function(){return[(c(),p(b(t.nextIcon?"span":"ChevronRightIcon"),r({"aria-hidden":"true",class:t.nextIcon},t.ptm("nextIcon")),null,16,["class"]))]}))],16,$)),[[x]]):h("",!0)],16),l("div",r({class:t.cx("panelContainer")},t.ptm("panelContainer")),[(c(!0),s(f,null,v(m.tabs,(function(e,n){return c(),s(f,{key:m.getKey(e,n)},[!t.lazy||m.isTabActive(n)?d((c(),s("div",r({key:0,id:m.getTabContentId(n),style:m.getTabProp(e,"contentStyle"),class:t.cx("tab.content",{tab:e}),role:"tabpanel","aria-labelledby":m.getTabHeaderActionId(n)},A(A(A({},m.getTabProp(e,"contentProps")),m.getTabPT(e,"root",n)),m.getTabPT(e,"content",n)),{"data-pc-name":"tabpanel","data-pc-index":n,"data-p-active":a.d_activeIndex===n}),[(c(),p(b(e)))],16,D)),[[y,!!t.lazy||m.isTabActive(n)]]):h("",!0)],64)})),128))],16)],16)};export{T as default};
|
package/tabview/tabview.js
CHANGED
|
@@ -89,6 +89,7 @@ this.primevue.tabview = (function (ChevronLeftIcon, ChevronRightIcon, Ripple, ut
|
|
|
89
89
|
},
|
|
90
90
|
updated: function updated() {
|
|
91
91
|
this.updateInkBar();
|
|
92
|
+
this.scrollable && this.updateButtonState();
|
|
92
93
|
},
|
|
93
94
|
methods: {
|
|
94
95
|
isTabPanel: function isTabPanel(child) {
|
|
@@ -342,9 +343,7 @@ this.primevue.tabview = (function (ChevronLeftIcon, ChevronRightIcon, Ripple, ut
|
|
|
342
343
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
343
344
|
"class": _ctx.cx('root'),
|
|
344
345
|
role: "tablist"
|
|
345
|
-
}, _ctx.ptm('root'), {
|
|
346
|
-
"data-pc-name": "tabview"
|
|
347
|
-
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
346
|
+
}, _ctx.ptm('root')), [vue.createElementVNode("div", vue.mergeProps({
|
|
348
347
|
"class": _ctx.cx('navContainer')
|
|
349
348
|
}, _ctx.ptm('navContainer')), [_ctx.scrollable && !$data.isPrevButtonDisabled ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
350
349
|
key: 0,
|