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
package/tree/tree.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/icons/search"),t=require("primevue/icons/spinner"),n=require("primevue/utils"),o=require("primevue/basecomponent"),r=require("primevue/tree/style"),i=require("primevue/checkbox"),l=require("primevue/icons/check"),c=require("primevue/icons/chevrondown"),a=require("primevue/icons/chevronright"),s=require("primevue/icons/minus"),d=require("primevue/ripple"),u=require("vue");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=h(e),f=h(t),y=h(o),g=h(r),m=h(i),b=h(l),k={name:"BaseTree",extends:y.default,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:String,default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:g.default,provide:function(){return{$parentInstance:this}}};function v(e){return v="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},v(e)}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var o;return(t="symbol"==v(o=K(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){return M(e)||B(e)||I(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function B(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e){if(Array.isArray(e))return O(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var E={name:"TreeNode",hostName:"Tree",extends:y.default,emits:["node-toggle","node-click","checkbox-change"],props:{node:{type:null,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},index:null},nodeTouched:!1,toggleClicked:!1,mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return"function"==typeof e.label?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{index:this.index,expanded:this.expanded,selected:this.selected,checked:this.checked,leaf:this.leaf}})},onClick:function(e){this.toggleClicked||n.DomHandler.getAttribute(e.target,'[data-pc-section="toggler"]')||n.DomHandler.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')?this.toggleClicked=!1:(this.isCheckboxSelectionMode()?this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1)},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}},onArrowDown:function(e){var t="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,n=t.children[1];if(n)this.focusRowChange(t,n.children[0]);else if(t.nextElementSibling)this.focusRowChange(t,t.nextElementSibling);else{var o=this.findNextSiblingOfAncestor(t);o&&this.focusRowChange(t,o)}e.preventDefault()},onArrowUp:function(e){var t=e.target;if(t.previousElementSibling)this.focusRowChange(t,t.previousElementSibling,this.findLastVisibleDescendant(t.previousElementSibling));else{var n=this.getParentNodeElement(t);n&&this.focusRowChange(t,n)}e.preventDefault()},onArrowRight:function(e){var t=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick((function(){t.onArrowDown(e)})))},onArrowLeft:function(e){var t=n.DomHandler.findSingle(e.currentTarget,'[data-pc-section="toggler"]');if(0===this.level&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return t.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},setAllNodesTabIndexes:function(){var e=n.DomHandler.find(this.$refs.currentNode.closest('[data-pc-section="container"]'),'[role="treeitem"]'),t=N(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));(N(e).forEach((function(e){e.tabIndex=-1})),t)?N(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}))[0].tabIndex=0:N(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,t){if(null!==this.selectionMode){var o=N(n.DomHandler.find(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=!1===t?-1:0,o.every((function(e){return-1===e.tabIndex}))&&(o[0].tabIndex=0)}},focusRowChange:function(e,t,n){e.tabIndex="-1",t.tabIndex="0",this.focusNode(n||t)},findBeforeClickableNode:function(e){var t=e.closest("ul").closest("li");if(t){var o=n.DomHandler.findSingle(t,"button");return o&&"hidden"!==o.style.visibility?t:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?S({},this.selectionKeys):{},t=!this.checked;this.propagateDown(this.node,t,e),this.$emit("checkbox-change",{node:this.node,check:t,selectionKeys:e})},propagateDown:function(e,t,n){if(t?n[e.key]={checked:!0,partialChecked:!1}:delete n[e.key],e.children&&e.children.length){var o,r=x(e.children);try{for(r.s();!(o=r.n()).done;){this.propagateDown(o.value,t,n)}}catch(e){r.e(e)}finally{r.f()}}},propagateUp:function(e){var t,n=e.check,o=S({},e.selectionKeys),r=0,i=!1,l=x(this.node.children);try{for(l.s();!(t=l.n()).done;){var c=t.value;o[c.key]&&o[c.key].checked?r++:o[c.key]&&o[c.key].partialChecked&&(i=!0)}}catch(e){l.e(e)}finally{l.f()}n&&r===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],i||r>0&&r!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var t=this.getParentNodeElement(e);return t?t.nextElementSibling?t.nextElementSibling:this.findNextSiblingOfAncestor(t):null},findLastVisibleDescendant:function(e){var t=e.children[1];return t?this.findLastVisibleDescendant(t.children[t.children.length-1]):e},getParentNodeElement:function(e){var t=e.parentElement.parentElement;return"treeitem"===n.DomHandler.getAttribute(t,"role")?t:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return"checkbox"===this.selectionMode},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&!0===this.expandedKeys[this.node.key]},leaf:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},selectable:function(){return!1!==this.node.selectable&&null!=this.selectionMode},selected:function(){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.node.key]},checkboxMode:function(){return"checkbox"===this.selectionMode&&!1!==this.node.selectable},checked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked)},partialChecked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked)},ariaChecked:function(){return"single"===this.selectionMode||"multiple"===this.selectionMode?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0}},components:{Checkbox:m.default,ChevronDownIcon:h(c).default,ChevronRightIcon:h(a).default,CheckIcon:b.default,MinusIcon:h(s).default,SpinnerIcon:f.default},directives:{ripple:h(d).default}},P=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],D=["data-p-highlight","data-p-selectable"];function A(e){return A="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},A(e)}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function $(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function F(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function L(e){if(Array.isArray(e))return R(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){var o;return(t="symbol"==A(o=U(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=A(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}E.render=function(e,t,n,o,r,i){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("Checkbox"),a=u.resolveComponent("TreeNode",!0),s=u.resolveDirective("ripple");return u.openBlock(),u.createElementBlock("li",u.mergeProps({ref:"currentNode",class:e.cx("node"),role:"treeitem","aria-label":i.label(n.node),"aria-selected":i.ariaSelected,"aria-expanded":i.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":i.ariaChecked,tabindex:0===n.index?0:-1,onKeydown:t[4]||(t[4]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},1===n.level?i.getPTOptions("node"):e.ptm("subgroup")),[u.createElementVNode("div",u.mergeProps({class:e.cx("content"),onClick:t[2]||(t[2]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),onTouchend:t[3]||(t[3]=function(){return i.onTouchEnd&&i.onTouchEnd.apply(i,arguments)}),style:n.node.style},i.getPTOptions("content"),{"data-p-highlight":i.checkboxMode?i.checked:i.selected,"data-p-selectable":i.selectable}),[u.withDirectives((u.openBlock(),u.createElementBlock("button",u.mergeProps({type:"button",class:e.cx("toggler"),onClick:t[0]||(t[0]=function(){return i.toggle&&i.toggle.apply(i,arguments)}),tabindex:"-1","aria-hidden":"true"},i.getPTOptions("toggler")),[n.node.loading&&"icon"===n.loadingMode?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[n.templates.nodetogglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.nodetogglericon),{key:0,class:u.normalizeClass(e.cx("nodetogglericon"))},null,8,["class"])):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("nodetogglericon")},e.ptm("nodetogglericon")),null,16,["class"]))],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[n.templates.togglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.togglericon),{key:0,node:n.node,expanded:i.expanded,class:u.normalizeClass(e.cx("togglerIcon"))},null,8,["node","expanded","class"])):i.expanded?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.expandedIcon?"span":"ChevronDownIcon"),u.mergeProps({key:1,class:e.cx("togglerIcon")},i.getPTOptions("togglerIcon")),null,16,["class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.collapsedIcon?"span":"ChevronRightIcon"),u.mergeProps({key:2,class:e.cx("togglerIcon")},i.getPTOptions("togglerIcon")),null,16,["class"]))],64))],16)),[[s]]),i.checkboxMode?(u.openBlock(),u.createBlock(c,{key:0,modelValue:i.checked,binary:!0,class:u.normalizeClass(e.cx("nodeCheckbox")),tabindex:-1,unstyled:e.unstyled,pt:i.getPTOptions("nodeCheckbox"),"data-p-checked":i.checked,"data-p-partialchecked":i.partialChecked},{icon:u.withCtx((function(e){return[n.templates.checkboxicon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.checkboxicon),{key:0,checked:e.checked,partialChecked:i.partialChecked,class:u.normalizeClass(e.class)},null,8,["checked","partialChecked","class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.checked?"CheckIcon":i.partialChecked?"MinusIcon":null),u.mergeProps({key:1,class:e.class},i.getPTOptions("nodeCheckbox.icon")),null,16,["class"]))]})),_:1},8,["modelValue","class","unstyled","pt","data-p-checked","data-p-partialchecked"])):u.createCommentVNode("",!0),u.createElementVNode("span",u.mergeProps({class:[e.cx("nodeIcon"),n.node.icon]},i.getPTOptions("nodeIcon")),null,16),u.createElementVNode("span",u.mergeProps({class:e.cx("label")},i.getPTOptions("label"),{onKeydown:t[1]||(t[1]=u.withModifiers((function(){}),["stop"]))}),[n.templates[n.node.type]||n.templates.default?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node},null,8,["node"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(i.label(n.node)),1)],64))],16)],16,D),i.hasChildren&&i.expanded?(u.openBlock(),u.createElementBlock("ul",u.mergeProps({key:0,class:e.cx("subgroup"),role:"group"},e.ptm("subgroup")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.node.children,(function(t){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:n.templates,level:n.level+1,expandedKeys:n.expandedKeys,onNodeToggle:i.onChildNodeToggle,onNodeClick:i.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:i.propagateUp,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","unstyled","pt"])})),128))],16)):u.createCommentVNode("",!0)],16,P)};var z={name:"Tree",extends:k,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null}},watch:{expandedKeys:function(e){this.d_expandedKeys=e}},methods:{onNodeToggle:function(e){var t=e.key;this.d_expandedKeys[t]?(delete this.d_expandedKeys[t],this.$emit("node-collapse",e)):(this.d_expandedKeys[t]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=H({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(null!=this.selectionMode&&!1!==e.node.selectable){var t=!e.nodeTouched&&this.metaKeySelection?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",t)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),this.$emit(e.check?"node-select":"node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var t,n=e.originalEvent,o=e.node,r=n.metaKey||n.ctrlKey;return this.isNodeSelected(o)&&r?(this.isSingleSelectionMode()?t={}:delete(t=H({},this.selectionKeys))[o.key],this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?t={}:this.isMultipleSelectionMode()&&(t=r&&this.selectionKeys?H({},this.selectionKeys):{}),t[o.key]=!0,this.$emit("node-select",o)),t},handleSelectionWithoutMetaKey:function(e){var t,n=e.node,o=this.isNodeSelected(n);return this.isSingleSelectionMode()?o?(t={},this.$emit("node-unselect",n)):((t={})[n.key]=!0,this.$emit("node-select",n)):o?(delete(t=H({},this.selectionKeys))[n.key],this.$emit("node-unselect",n)):((t=this.selectionKeys?H({},this.selectionKeys):{})[n.key]=!0,this.$emit("node-select",n)),t},isSingleSelectionMode:function(){return"single"===this.selectionMode},isMultipleSelectionMode:function(){return"multiple"===this.selectionMode},isNodeSelected:function(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[e.key]},isChecked:function(e){return!!this.selectionKeys&&(this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked)},isNodeLeaf:function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},onFilterKeydown:function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code||e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value})},findFilteredNodes:function(e,t){if(e){var n=!1;if(e.children){var o=L(c=e.children)||F(c)||V(c)||$();e.children=[];var r,i=j(o);try{for(i.s();!(r=i.n()).done;){var l=H({},r.value);this.isFilterMatched(l,t)&&(n=!0,e.children.push(l))}}catch(e){i.e(e)}finally{i.f()}}if(n)return!0}var c},isFilterMatched:function(e,t){var o,r=t.searchFields,i=t.filterText,l=t.strict,c=!1,a=j(r);try{for(a.s();!(o=a.n()).done;){String(n.ObjectUtils.resolveFieldData(e,o.value)).toLocaleLowerCase(this.filterLocale).indexOf(i)>-1&&(c=!0)}}catch(e){a.e(e)}finally{a.f()}return(!c||l&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{searchFields:r,filterText:i,strict:l})||c),c}},computed:{filteredValue:function(){var e,t=[],n=this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),r="strict"===this.filterMode,i=j(this.value);try{for(i.s();!(e=i.n()).done;){var l=H({},e.value),c={searchFields:n,filterText:o,strict:r};(r&&(this.findFilteredNodes(l,c)||this.isFilterMatched(l,c))||!r&&(this.isFilterMatched(l,c)||this.findFilteredNodes(l,c)))&&t.push(l)}}catch(e){i.e(e)}finally{i.f()}return t},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value}},components:{TreeNode:E,SearchIcon:p.default,SpinnerIcon:f.default}},W=["placeholder"],G=["aria-labelledby","aria-label"];z.render=function(e,t,n,o,r,i){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("SearchIcon"),a=u.resolveComponent("TreeNode");return u.openBlock(),u.createElementBlock("div",u.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"tree"}),[e.loading&&"mask"===e.loadingMode?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:0,class:e.cx("loadingOverlay")},e.ptm("loadingOverlay")),[u.renderSlot(e.$slots,"loadingicon",{class:u.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(u.openBlock(),u.createElementBlock("i",u.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("loadingIcon")},e.ptm("loadingIcon")),null,16,["class"]))]}))],16)):u.createCommentVNode("",!0),e.filter?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[u.withDirectives(u.createElementVNode("input",u.mergeProps({"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.filterValue=e}),type:"text",autocomplete:"off",class:e.cx("input"),placeholder:e.filterPlaceholder,onKeydown:t[1]||(t[1]=function(){return i.onFilterKeydown&&i.onFilterKeydown.apply(i,arguments)})},e.ptm("input")),null,16,W),[[u.vModelText,r.filterValue]]),u.renderSlot(e.$slots,"searchicon",{class:u.normalizeClass(e.cx("searchIcon"))},(function(){return[u.createVNode(c,u.mergeProps({class:e.cx("searchIcon")},e.ptm("searchIcon")),null,16,["class"])]}))],16)):u.createCommentVNode("",!0),u.createElementVNode("div",u.mergeProps({class:e.cx("wrapper"),style:{maxHeight:e.scrollHeight}},e.ptm("wrapper")),[u.createElementVNode("ul",u.mergeProps({class:e.cx("container"),role:"tree","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("container")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.valueToRender,(function(t,n){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:e.$slots,level:e.level+1,index:n,expandedKeys:r.d_expandedKeys,onNodeToggle:i.onNodeToggle,onNodeClick:i.onNodeClick,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onCheckboxChange:i.onCheckboxChange,loadingMode:e.loadingMode,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","unstyled","pt"])})),128))],16,G)],16)],16)},module.exports=z;
|
|
1
|
+
"use strict";var e=require("primevue/icons/search"),t=require("primevue/icons/spinner"),n=require("primevue/utils"),o=require("primevue/basecomponent"),r=require("primevue/tree/style"),i=require("primevue/checkbox"),l=require("primevue/icons/check"),c=require("primevue/icons/chevrondown"),a=require("primevue/icons/chevronright"),s=require("primevue/icons/minus"),d=require("primevue/ripple"),u=require("vue");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=h(e),f=h(t),y=h(o),g=h(r),m=h(i),b=h(l),k={name:"BaseTree",extends:y.default,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:String,default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:g.default,provide:function(){return{$parentInstance:this}}};function v(e){return v="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},v(e)}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var o;return(t="symbol"==v(o=K(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){return M(e)||B(e)||I(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function B(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e){if(Array.isArray(e))return O(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var E={name:"TreeNode",hostName:"Tree",extends:y.default,emits:["node-toggle","node-click","checkbox-change"],props:{node:{type:null,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},index:null},nodeTouched:!1,toggleClicked:!1,mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return"function"==typeof e.label?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{index:this.index,expanded:this.expanded,selected:this.selected,checked:this.checked,leaf:this.leaf}})},onClick:function(e){this.toggleClicked||n.DomHandler.getAttribute(e.target,'[data-pc-section="toggler"]')||n.DomHandler.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')?this.toggleClicked=!1:(this.isCheckboxSelectionMode()?this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1)},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}},onArrowDown:function(e){var t="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,n=t.children[1];if(n)this.focusRowChange(t,n.children[0]);else if(t.nextElementSibling)this.focusRowChange(t,t.nextElementSibling);else{var o=this.findNextSiblingOfAncestor(t);o&&this.focusRowChange(t,o)}e.preventDefault()},onArrowUp:function(e){var t=e.target;if(t.previousElementSibling)this.focusRowChange(t,t.previousElementSibling,this.findLastVisibleDescendant(t.previousElementSibling));else{var n=this.getParentNodeElement(t);n&&this.focusRowChange(t,n)}e.preventDefault()},onArrowRight:function(e){var t=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick((function(){t.onArrowDown(e)})))},onArrowLeft:function(e){var t=n.DomHandler.findSingle(e.currentTarget,'[data-pc-section="toggler"]');if(0===this.level&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return t.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},setAllNodesTabIndexes:function(){var e=n.DomHandler.find(this.$refs.currentNode.closest('[data-pc-section="container"]'),'[role="treeitem"]'),t=N(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));(N(e).forEach((function(e){e.tabIndex=-1})),t)?N(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}))[0].tabIndex=0:N(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,t){if(null!==this.selectionMode){var o=N(n.DomHandler.find(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=!1===t?-1:0,o.every((function(e){return-1===e.tabIndex}))&&(o[0].tabIndex=0)}},focusRowChange:function(e,t,n){e.tabIndex="-1",t.tabIndex="0",this.focusNode(n||t)},findBeforeClickableNode:function(e){var t=e.closest("ul").closest("li");if(t){var o=n.DomHandler.findSingle(t,"button");return o&&"hidden"!==o.style.visibility?t:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?S({},this.selectionKeys):{},t=!this.checked;this.propagateDown(this.node,t,e),this.$emit("checkbox-change",{node:this.node,check:t,selectionKeys:e})},propagateDown:function(e,t,n){if(t?n[e.key]={checked:!0,partialChecked:!1}:delete n[e.key],e.children&&e.children.length){var o,r=x(e.children);try{for(r.s();!(o=r.n()).done;){this.propagateDown(o.value,t,n)}}catch(e){r.e(e)}finally{r.f()}}},propagateUp:function(e){var t,n=e.check,o=S({},e.selectionKeys),r=0,i=!1,l=x(this.node.children);try{for(l.s();!(t=l.n()).done;){var c=t.value;o[c.key]&&o[c.key].checked?r++:o[c.key]&&o[c.key].partialChecked&&(i=!0)}}catch(e){l.e(e)}finally{l.f()}n&&r===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],i||r>0&&r!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var t=this.getParentNodeElement(e);return t?t.nextElementSibling?t.nextElementSibling:this.findNextSiblingOfAncestor(t):null},findLastVisibleDescendant:function(e){var t=e.children[1];return t?this.findLastVisibleDescendant(t.children[t.children.length-1]):e},getParentNodeElement:function(e){var t=e.parentElement.parentElement;return"treeitem"===n.DomHandler.getAttribute(t,"role")?t:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return"checkbox"===this.selectionMode},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&!0===this.expandedKeys[this.node.key]},leaf:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},selectable:function(){return!1!==this.node.selectable&&null!=this.selectionMode},selected:function(){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.node.key]},checkboxMode:function(){return"checkbox"===this.selectionMode&&!1!==this.node.selectable},checked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked)},partialChecked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked)},ariaChecked:function(){return"single"===this.selectionMode||"multiple"===this.selectionMode?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0}},components:{Checkbox:m.default,ChevronDownIcon:h(c).default,ChevronRightIcon:h(a).default,CheckIcon:b.default,MinusIcon:h(s).default,SpinnerIcon:f.default},directives:{ripple:h(d).default}},P=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],D=["data-p-highlight","data-p-selectable"];function A(e){return A="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},A(e)}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function $(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function F(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function L(e){if(Array.isArray(e))return R(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){var o;return(t="symbol"==A(o=U(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=A(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}E.render=function(e,t,n,o,r,i){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("Checkbox"),a=u.resolveComponent("TreeNode",!0),s=u.resolveDirective("ripple");return u.openBlock(),u.createElementBlock("li",u.mergeProps({ref:"currentNode",class:e.cx("node"),role:"treeitem","aria-label":i.label(n.node),"aria-selected":i.ariaSelected,"aria-expanded":i.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":i.ariaChecked,tabindex:0===n.index?0:-1,onKeydown:t[4]||(t[4]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},1===n.level?i.getPTOptions("node"):e.ptm("subgroup")),[u.createElementVNode("div",u.mergeProps({class:e.cx("content"),onClick:t[2]||(t[2]=function(){return i.onClick&&i.onClick.apply(i,arguments)}),onTouchend:t[3]||(t[3]=function(){return i.onTouchEnd&&i.onTouchEnd.apply(i,arguments)}),style:n.node.style},i.getPTOptions("content"),{"data-p-highlight":i.checkboxMode?i.checked:i.selected,"data-p-selectable":i.selectable}),[u.withDirectives((u.openBlock(),u.createElementBlock("button",u.mergeProps({type:"button",class:e.cx("toggler"),onClick:t[0]||(t[0]=function(){return i.toggle&&i.toggle.apply(i,arguments)}),tabindex:"-1","aria-hidden":"true"},i.getPTOptions("toggler")),[n.node.loading&&"icon"===n.loadingMode?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[n.templates.nodetogglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.nodetogglericon),{key:0,class:u.normalizeClass(e.cx("nodetogglericon"))},null,8,["class"])):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("nodetogglericon")},e.ptm("nodetogglericon")),null,16,["class"]))],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[n.templates.togglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.togglericon),{key:0,node:n.node,expanded:i.expanded,class:u.normalizeClass(e.cx("togglerIcon"))},null,8,["node","expanded","class"])):i.expanded?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.expandedIcon?"span":"ChevronDownIcon"),u.mergeProps({key:1,class:e.cx("togglerIcon")},i.getPTOptions("togglerIcon")),null,16,["class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.collapsedIcon?"span":"ChevronRightIcon"),u.mergeProps({key:2,class:e.cx("togglerIcon")},i.getPTOptions("togglerIcon")),null,16,["class"]))],64))],16)),[[s]]),i.checkboxMode?(u.openBlock(),u.createBlock(c,{key:0,modelValue:i.checked,binary:!0,class:u.normalizeClass(e.cx("nodeCheckbox")),tabindex:-1,unstyled:e.unstyled,pt:i.getPTOptions("nodeCheckbox"),"data-p-checked":i.checked,"data-p-partialchecked":i.partialChecked},{icon:u.withCtx((function(e){return[n.templates.checkboxicon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.checkboxicon),{key:0,checked:e.checked,partialChecked:i.partialChecked,class:u.normalizeClass(e.class)},null,8,["checked","partialChecked","class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(i.checked?"CheckIcon":i.partialChecked?"MinusIcon":null),u.mergeProps({key:1,class:e.class},i.getPTOptions("nodeCheckbox.icon")),null,16,["class"]))]})),_:1},8,["modelValue","class","unstyled","pt","data-p-checked","data-p-partialchecked"])):u.createCommentVNode("",!0),u.createElementVNode("span",u.mergeProps({class:[e.cx("nodeIcon"),n.node.icon]},i.getPTOptions("nodeIcon")),null,16),u.createElementVNode("span",u.mergeProps({class:e.cx("label")},i.getPTOptions("label"),{onKeydown:t[1]||(t[1]=u.withModifiers((function(){}),["stop"]))}),[n.templates[n.node.type]||n.templates.default?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node},null,8,["node"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(i.label(n.node)),1)],64))],16)],16,D),i.hasChildren&&i.expanded?(u.openBlock(),u.createElementBlock("ul",u.mergeProps({key:0,class:e.cx("subgroup"),role:"group"},e.ptm("subgroup")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.node.children,(function(t){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:n.templates,level:n.level+1,expandedKeys:n.expandedKeys,onNodeToggle:i.onChildNodeToggle,onNodeClick:i.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:i.propagateUp,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","unstyled","pt"])})),128))],16)):u.createCommentVNode("",!0)],16,P)};var z={name:"Tree",extends:k,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null}},watch:{expandedKeys:function(e){this.d_expandedKeys=e}},methods:{onNodeToggle:function(e){var t=e.key;this.d_expandedKeys[t]?(delete this.d_expandedKeys[t],this.$emit("node-collapse",e)):(this.d_expandedKeys[t]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=H({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(null!=this.selectionMode&&!1!==e.node.selectable){var t=!e.nodeTouched&&this.metaKeySelection?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",t)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),this.$emit(e.check?"node-select":"node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var t,n=e.originalEvent,o=e.node,r=n.metaKey||n.ctrlKey;return this.isNodeSelected(o)&&r?(this.isSingleSelectionMode()?t={}:delete(t=H({},this.selectionKeys))[o.key],this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?t={}:this.isMultipleSelectionMode()&&(t=r&&this.selectionKeys?H({},this.selectionKeys):{}),t[o.key]=!0,this.$emit("node-select",o)),t},handleSelectionWithoutMetaKey:function(e){var t,n=e.node,o=this.isNodeSelected(n);return this.isSingleSelectionMode()?o?(t={},this.$emit("node-unselect",n)):((t={})[n.key]=!0,this.$emit("node-select",n)):o?(delete(t=H({},this.selectionKeys))[n.key],this.$emit("node-unselect",n)):((t=this.selectionKeys?H({},this.selectionKeys):{})[n.key]=!0,this.$emit("node-select",n)),t},isSingleSelectionMode:function(){return"single"===this.selectionMode},isMultipleSelectionMode:function(){return"multiple"===this.selectionMode},isNodeSelected:function(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[e.key]},isChecked:function(e){return!!this.selectionKeys&&(this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked)},isNodeLeaf:function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},onFilterKeydown:function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code||e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value})},findFilteredNodes:function(e,t){if(e){var n=!1;if(e.children){var o=L(c=e.children)||F(c)||V(c)||$();e.children=[];var r,i=j(o);try{for(i.s();!(r=i.n()).done;){var l=H({},r.value);this.isFilterMatched(l,t)&&(n=!0,e.children.push(l))}}catch(e){i.e(e)}finally{i.f()}}if(n)return!0}var c},isFilterMatched:function(e,t){var o,r=t.searchFields,i=t.filterText,l=t.strict,c=!1,a=j(r);try{for(a.s();!(o=a.n()).done;){String(n.ObjectUtils.resolveFieldData(e,o.value)).toLocaleLowerCase(this.filterLocale).indexOf(i)>-1&&(c=!0)}}catch(e){a.e(e)}finally{a.f()}return(!c||l&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{searchFields:r,filterText:i,strict:l})||c),c}},computed:{filteredValue:function(){var e,t=[],n=this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),r="strict"===this.filterMode,i=j(this.value);try{for(i.s();!(e=i.n()).done;){var l=H({},e.value),c={searchFields:n,filterText:o,strict:r};(r&&(this.findFilteredNodes(l,c)||this.isFilterMatched(l,c))||!r&&(this.isFilterMatched(l,c)||this.findFilteredNodes(l,c)))&&t.push(l)}}catch(e){i.e(e)}finally{i.f()}return t},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value}},components:{TreeNode:E,SearchIcon:p.default,SpinnerIcon:f.default}},W=["placeholder"],G=["aria-labelledby","aria-label"];z.render=function(e,t,n,o,r,i){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("SearchIcon"),a=u.resolveComponent("TreeNode");return u.openBlock(),u.createElementBlock("div",u.mergeProps({class:e.cx("root")},e.ptm("root")),[e.loading&&"mask"===e.loadingMode?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:0,class:e.cx("loadingOverlay")},e.ptm("loadingOverlay")),[u.renderSlot(e.$slots,"loadingicon",{class:u.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(u.openBlock(),u.createElementBlock("i",u.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("loadingIcon")},e.ptm("loadingIcon")),null,16,["class"]))]}))],16)):u.createCommentVNode("",!0),e.filter?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[u.withDirectives(u.createElementVNode("input",u.mergeProps({"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.filterValue=e}),type:"text",autocomplete:"off",class:e.cx("input"),placeholder:e.filterPlaceholder,onKeydown:t[1]||(t[1]=function(){return i.onFilterKeydown&&i.onFilterKeydown.apply(i,arguments)})},e.ptm("input")),null,16,W),[[u.vModelText,r.filterValue]]),u.renderSlot(e.$slots,"searchicon",{class:u.normalizeClass(e.cx("searchIcon"))},(function(){return[u.createVNode(c,u.mergeProps({class:e.cx("searchIcon")},e.ptm("searchIcon")),null,16,["class"])]}))],16)):u.createCommentVNode("",!0),u.createElementVNode("div",u.mergeProps({class:e.cx("wrapper"),style:{maxHeight:e.scrollHeight}},e.ptm("wrapper")),[u.createElementVNode("ul",u.mergeProps({class:e.cx("container"),role:"tree","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("container")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.valueToRender,(function(t,n){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:e.$slots,level:e.level+1,index:n,expandedKeys:r.d_expandedKeys,onNodeToggle:i.onNodeToggle,onNodeClick:i.onNodeClick,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onCheckboxChange:i.onCheckboxChange,loadingMode:e.loadingMode,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","unstyled","pt"])})),128))],16,G)],16)],16)},module.exports=z;
|
package/tree/tree.esm.js
CHANGED
|
@@ -823,9 +823,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
823
823
|
var _component_TreeNode = resolveComponent("TreeNode");
|
|
824
824
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
825
825
|
"class": _ctx.cx('root')
|
|
826
|
-
}, _ctx.ptm('root'), {
|
|
827
|
-
"data-pc-name": "tree"
|
|
828
|
-
}), [_ctx.loading && _ctx.loadingMode === 'mask' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
826
|
+
}, _ctx.ptm('root')), [_ctx.loading && _ctx.loadingMode === 'mask' ? (openBlock(), createElementBlock("div", mergeProps({
|
|
829
827
|
key: 0,
|
|
830
828
|
"class": _ctx.cx('loadingOverlay')
|
|
831
829
|
}, _ctx.ptm('loadingOverlay')), [renderSlot(_ctx.$slots, "loadingicon", {
|
package/tree/tree.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/icons/search";import t from"primevue/icons/spinner";import{DomHandler as n,ObjectUtils as o}from"primevue/utils";import i from"primevue/basecomponent";import r from"primevue/tree/style";import l from"primevue/checkbox";import c from"primevue/icons/check";import a from"primevue/icons/chevrondown";import s from"primevue/icons/chevronright";import d from"primevue/icons/minus";import u from"primevue/ripple";import{resolveComponent as h,resolveDirective as f,openBlock as p,createElementBlock as y,mergeProps as g,createElementVNode as m,withDirectives as b,Fragment as k,createBlock as v,resolveDynamicComponent as x,normalizeClass as S,withCtx as C,createCommentVNode as K,withModifiers as w,createTextVNode as T,toDisplayString as I,renderList as N,renderSlot as O,vModelText as M,createVNode as A}from"vue";var E={name:"BaseTree",extends:i,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:String,default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r,provide:function(){return{$parentInstance:this}}};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 j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=B(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){var o;return(t="symbol"==P(o=F(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function R(e){return U(e)||_(e)||B(e)||V()}function V(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function U(e){if(Array.isArray(e))return W(e)}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var H={name:"TreeNode",hostName:"Tree",extends:i,emits:["node-toggle","node-click","checkbox-change"],props:{node:{type:null,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},index:null},nodeTouched:!1,toggleClicked:!1,mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return"function"==typeof e.label?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{index:this.index,expanded:this.expanded,selected:this.selected,checked:this.checked,leaf:this.leaf}})},onClick:function(e){this.toggleClicked||n.getAttribute(e.target,'[data-pc-section="toggler"]')||n.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')?this.toggleClicked=!1:(this.isCheckboxSelectionMode()?this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1)},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}},onArrowDown:function(e){var t="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,n=t.children[1];if(n)this.focusRowChange(t,n.children[0]);else if(t.nextElementSibling)this.focusRowChange(t,t.nextElementSibling);else{var o=this.findNextSiblingOfAncestor(t);o&&this.focusRowChange(t,o)}e.preventDefault()},onArrowUp:function(e){var t=e.target;if(t.previousElementSibling)this.focusRowChange(t,t.previousElementSibling,this.findLastVisibleDescendant(t.previousElementSibling));else{var n=this.getParentNodeElement(t);n&&this.focusRowChange(t,n)}e.preventDefault()},onArrowRight:function(e){var t=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick((function(){t.onArrowDown(e)})))},onArrowLeft:function(e){var t=n.findSingle(e.currentTarget,'[data-pc-section="toggler"]');if(0===this.level&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return t.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},setAllNodesTabIndexes:function(){var e=n.find(this.$refs.currentNode.closest('[data-pc-section="container"]'),'[role="treeitem"]'),t=R(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));(R(e).forEach((function(e){e.tabIndex=-1})),t)?R(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}))[0].tabIndex=0:R(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,t){if(null!==this.selectionMode){var o=R(n.find(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=!1===t?-1:0,o.every((function(e){return-1===e.tabIndex}))&&(o[0].tabIndex=0)}},focusRowChange:function(e,t,n){e.tabIndex="-1",t.tabIndex="0",this.focusNode(n||t)},findBeforeClickableNode:function(e){var t=e.closest("ul").closest("li");if(t){var o=n.findSingle(t,"button");return o&&"hidden"!==o.style.visibility?t:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?D({},this.selectionKeys):{},t=!this.checked;this.propagateDown(this.node,t,e),this.$emit("checkbox-change",{node:this.node,check:t,selectionKeys:e})},propagateDown:function(e,t,n){if(t?n[e.key]={checked:!0,partialChecked:!1}:delete n[e.key],e.children&&e.children.length){var o,i=j(e.children);try{for(i.s();!(o=i.n()).done;){this.propagateDown(o.value,t,n)}}catch(e){i.e(e)}finally{i.f()}}},propagateUp:function(e){var t,n=e.check,o=D({},e.selectionKeys),i=0,r=!1,l=j(this.node.children);try{for(l.s();!(t=l.n()).done;){var c=t.value;o[c.key]&&o[c.key].checked?i++:o[c.key]&&o[c.key].partialChecked&&(r=!0)}}catch(e){l.e(e)}finally{l.f()}n&&i===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],r||i>0&&i!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var t=this.getParentNodeElement(e);return t?t.nextElementSibling?t.nextElementSibling:this.findNextSiblingOfAncestor(t):null},findLastVisibleDescendant:function(e){var t=e.children[1];return t?this.findLastVisibleDescendant(t.children[t.children.length-1]):e},getParentNodeElement:function(e){var t=e.parentElement.parentElement;return"treeitem"===n.getAttribute(t,"role")?t:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return"checkbox"===this.selectionMode},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&!0===this.expandedKeys[this.node.key]},leaf:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},selectable:function(){return!1!==this.node.selectable&&null!=this.selectionMode},selected:function(){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.node.key]},checkboxMode:function(){return"checkbox"===this.selectionMode&&!1!==this.node.selectable},checked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked)},partialChecked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked)},ariaChecked:function(){return"single"===this.selectionMode||"multiple"===this.selectionMode?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0}},components:{Checkbox:l,ChevronDownIcon:a,ChevronRightIcon:s,CheckIcon:c,MinusIcon:d,SpinnerIcon:t},directives:{ripple:u}},z=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],q=["data-p-highlight","data-p-selectable"];function G(e){return G="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},G(e)}function J(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=X(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function Q(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function Y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Z(e){if(Array.isArray(e))return ee(e)}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){var o;return(t="symbol"==G(o=ie(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){if("object"!=G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=G(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}H.render=function(e,t,n,o,i,r){var l=h("SpinnerIcon"),c=h("Checkbox"),a=h("TreeNode",!0),s=f("ripple");return p(),y("li",g({ref:"currentNode",class:e.cx("node"),role:"treeitem","aria-label":r.label(n.node),"aria-selected":r.ariaSelected,"aria-expanded":r.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":r.ariaChecked,tabindex:0===n.index?0:-1,onKeydown:t[4]||(t[4]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},1===n.level?r.getPTOptions("node"):e.ptm("subgroup")),[m("div",g({class:e.cx("content"),onClick:t[2]||(t[2]=function(){return r.onClick&&r.onClick.apply(r,arguments)}),onTouchend:t[3]||(t[3]=function(){return r.onTouchEnd&&r.onTouchEnd.apply(r,arguments)}),style:n.node.style},r.getPTOptions("content"),{"data-p-highlight":r.checkboxMode?r.checked:r.selected,"data-p-selectable":r.selectable}),[b((p(),y("button",g({type:"button",class:e.cx("toggler"),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)}),tabindex:"-1","aria-hidden":"true"},r.getPTOptions("toggler")),[n.node.loading&&"icon"===n.loadingMode?(p(),y(k,{key:0},[n.templates.nodetogglericon?(p(),v(x(n.templates.nodetogglericon),{key:0,class:S(e.cx("nodetogglericon"))},null,8,["class"])):(p(),v(l,g({key:1,spin:"",class:e.cx("nodetogglericon")},e.ptm("nodetogglericon")),null,16,["class"]))],64)):(p(),y(k,{key:1},[n.templates.togglericon?(p(),v(x(n.templates.togglericon),{key:0,node:n.node,expanded:r.expanded,class:S(e.cx("togglerIcon"))},null,8,["node","expanded","class"])):r.expanded?(p(),v(x(n.node.expandedIcon?"span":"ChevronDownIcon"),g({key:1,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"])):(p(),v(x(n.node.collapsedIcon?"span":"ChevronRightIcon"),g({key:2,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"]))],64))],16)),[[s]]),r.checkboxMode?(p(),v(c,{key:0,modelValue:r.checked,binary:!0,class:S(e.cx("nodeCheckbox")),tabindex:-1,unstyled:e.unstyled,pt:r.getPTOptions("nodeCheckbox"),"data-p-checked":r.checked,"data-p-partialchecked":r.partialChecked},{icon:C((function(e){return[n.templates.checkboxicon?(p(),v(x(n.templates.checkboxicon),{key:0,checked:e.checked,partialChecked:r.partialChecked,class:S(e.class)},null,8,["checked","partialChecked","class"])):(p(),v(x(r.checked?"CheckIcon":r.partialChecked?"MinusIcon":null),g({key:1,class:e.class},r.getPTOptions("nodeCheckbox.icon")),null,16,["class"]))]})),_:1},8,["modelValue","class","unstyled","pt","data-p-checked","data-p-partialchecked"])):K("",!0),m("span",g({class:[e.cx("nodeIcon"),n.node.icon]},r.getPTOptions("nodeIcon")),null,16),m("span",g({class:e.cx("label")},r.getPTOptions("label"),{onKeydown:t[1]||(t[1]=w((function(){}),["stop"]))}),[n.templates[n.node.type]||n.templates.default?(p(),v(x(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node},null,8,["node"])):(p(),y(k,{key:1},[T(I(r.label(n.node)),1)],64))],16)],16,q),r.hasChildren&&r.expanded?(p(),y("ul",g({key:0,class:e.cx("subgroup"),role:"group"},e.ptm("subgroup")),[(p(!0),y(k,null,N(n.node.children,(function(t){return p(),v(a,{key:t.key,node:t,templates:n.templates,level:n.level+1,expandedKeys:n.expandedKeys,onNodeToggle:r.onChildNodeToggle,onNodeClick:r.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:r.propagateUp,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","unstyled","pt"])})),128))],16)):K("",!0)],16,z)};var re={name:"Tree",extends:E,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null}},watch:{expandedKeys:function(e){this.d_expandedKeys=e}},methods:{onNodeToggle:function(e){var t=e.key;this.d_expandedKeys[t]?(delete this.d_expandedKeys[t],this.$emit("node-collapse",e)):(this.d_expandedKeys[t]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=ne({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(null!=this.selectionMode&&!1!==e.node.selectable){var t=!e.nodeTouched&&this.metaKeySelection?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",t)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),this.$emit(e.check?"node-select":"node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var t,n=e.originalEvent,o=e.node,i=n.metaKey||n.ctrlKey;return this.isNodeSelected(o)&&i?(this.isSingleSelectionMode()?t={}:delete(t=ne({},this.selectionKeys))[o.key],this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?t={}:this.isMultipleSelectionMode()&&(t=i&&this.selectionKeys?ne({},this.selectionKeys):{}),t[o.key]=!0,this.$emit("node-select",o)),t},handleSelectionWithoutMetaKey:function(e){var t,n=e.node,o=this.isNodeSelected(n);return this.isSingleSelectionMode()?o?(t={},this.$emit("node-unselect",n)):((t={})[n.key]=!0,this.$emit("node-select",n)):o?(delete(t=ne({},this.selectionKeys))[n.key],this.$emit("node-unselect",n)):((t=this.selectionKeys?ne({},this.selectionKeys):{})[n.key]=!0,this.$emit("node-select",n)),t},isSingleSelectionMode:function(){return"single"===this.selectionMode},isMultipleSelectionMode:function(){return"multiple"===this.selectionMode},isNodeSelected:function(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[e.key]},isChecked:function(e){return!!this.selectionKeys&&(this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked)},isNodeLeaf:function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},onFilterKeydown:function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code||e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value})},findFilteredNodes:function(e,t){if(e){var n=!1;if(e.children){var o=Z(c=e.children)||Y(c)||X(c)||Q();e.children=[];var i,r=J(o);try{for(r.s();!(i=r.n()).done;){var l=ne({},i.value);this.isFilterMatched(l,t)&&(n=!0,e.children.push(l))}}catch(e){r.e(e)}finally{r.f()}}if(n)return!0}var c},isFilterMatched:function(e,t){var n,i=t.searchFields,r=t.filterText,l=t.strict,c=!1,a=J(i);try{for(a.s();!(n=a.n()).done;){String(o.resolveFieldData(e,n.value)).toLocaleLowerCase(this.filterLocale).indexOf(r)>-1&&(c=!0)}}catch(e){a.e(e)}finally{a.f()}return(!c||l&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{searchFields:i,filterText:r,strict:l})||c),c}},computed:{filteredValue:function(){var e,t=[],n=this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),i="strict"===this.filterMode,r=J(this.value);try{for(r.s();!(e=r.n()).done;){var l=ne({},e.value),c={searchFields:n,filterText:o,strict:i};(i&&(this.findFilteredNodes(l,c)||this.isFilterMatched(l,c))||!i&&(this.isFilterMatched(l,c)||this.findFilteredNodes(l,c)))&&t.push(l)}}catch(e){r.e(e)}finally{r.f()}return t},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value}},components:{TreeNode:H,SearchIcon:e,SpinnerIcon:t}},le=["placeholder"],ce=["aria-labelledby","aria-label"];re.render=function(e,t,n,o,i,r){var l=h("SpinnerIcon"),c=h("SearchIcon"),a=h("TreeNode");return p(),y("div",g({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"tree"}),[e.loading&&"mask"===e.loadingMode?(p(),y("div",g({key:0,class:e.cx("loadingOverlay")},e.ptm("loadingOverlay")),[O(e.$slots,"loadingicon",{class:S(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(p(),y("i",g({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(p(),v(l,g({key:1,spin:"",class:e.cx("loadingIcon")},e.ptm("loadingIcon")),null,16,["class"]))]}))],16)):K("",!0),e.filter?(p(),y("div",g({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[b(m("input",g({"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.filterValue=e}),type:"text",autocomplete:"off",class:e.cx("input"),placeholder:e.filterPlaceholder,onKeydown:t[1]||(t[1]=function(){return r.onFilterKeydown&&r.onFilterKeydown.apply(r,arguments)})},e.ptm("input")),null,16,le),[[M,i.filterValue]]),O(e.$slots,"searchicon",{class:S(e.cx("searchIcon"))},(function(){return[A(c,g({class:e.cx("searchIcon")},e.ptm("searchIcon")),null,16,["class"])]}))],16)):K("",!0),m("div",g({class:e.cx("wrapper"),style:{maxHeight:e.scrollHeight}},e.ptm("wrapper")),[m("ul",g({class:e.cx("container"),role:"tree","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("container")),[(p(!0),y(k,null,N(r.valueToRender,(function(t,n){return p(),v(a,{key:t.key,node:t,templates:e.$slots,level:e.level+1,index:n,expandedKeys:i.d_expandedKeys,onNodeToggle:r.onNodeToggle,onNodeClick:r.onNodeClick,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onCheckboxChange:r.onCheckboxChange,loadingMode:e.loadingMode,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","unstyled","pt"])})),128))],16,ce)],16)],16)};export{re as default};
|
|
1
|
+
import e from"primevue/icons/search";import t from"primevue/icons/spinner";import{DomHandler as n,ObjectUtils as o}from"primevue/utils";import i from"primevue/basecomponent";import r from"primevue/tree/style";import l from"primevue/checkbox";import c from"primevue/icons/check";import a from"primevue/icons/chevrondown";import s from"primevue/icons/chevronright";import d from"primevue/icons/minus";import u from"primevue/ripple";import{resolveComponent as h,resolveDirective as f,openBlock as p,createElementBlock as y,mergeProps as g,createElementVNode as m,withDirectives as b,Fragment as k,createBlock as v,resolveDynamicComponent as x,normalizeClass as S,withCtx as C,createCommentVNode as K,withModifiers as w,createTextVNode as T,toDisplayString as I,renderList as N,renderSlot as O,vModelText as M,createVNode as A}from"vue";var E={name:"BaseTree",extends:i,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:String,default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r,provide:function(){return{$parentInstance:this}}};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 j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=B(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){var o;return(t="symbol"==P(o=F(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function R(e){return U(e)||_(e)||B(e)||V()}function V(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){if(e){if("string"==typeof e)return W(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function U(e){if(Array.isArray(e))return W(e)}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var H={name:"TreeNode",hostName:"Tree",extends:i,emits:["node-toggle","node-click","checkbox-change"],props:{node:{type:null,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},index:null},nodeTouched:!1,toggleClicked:!1,mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return"function"==typeof e.label?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{index:this.index,expanded:this.expanded,selected:this.selected,checked:this.checked,leaf:this.leaf}})},onClick:function(e){this.toggleClicked||n.getAttribute(e.target,'[data-pc-section="toggler"]')||n.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')?this.toggleClicked=!1:(this.isCheckboxSelectionMode()?this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1)},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}},onArrowDown:function(e){var t="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,n=t.children[1];if(n)this.focusRowChange(t,n.children[0]);else if(t.nextElementSibling)this.focusRowChange(t,t.nextElementSibling);else{var o=this.findNextSiblingOfAncestor(t);o&&this.focusRowChange(t,o)}e.preventDefault()},onArrowUp:function(e){var t=e.target;if(t.previousElementSibling)this.focusRowChange(t,t.previousElementSibling,this.findLastVisibleDescendant(t.previousElementSibling));else{var n=this.getParentNodeElement(t);n&&this.focusRowChange(t,n)}e.preventDefault()},onArrowRight:function(e){var t=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick((function(){t.onArrowDown(e)})))},onArrowLeft:function(e){var t=n.findSingle(e.currentTarget,'[data-pc-section="toggler"]');if(0===this.level&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return t.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},setAllNodesTabIndexes:function(){var e=n.find(this.$refs.currentNode.closest('[data-pc-section="container"]'),'[role="treeitem"]'),t=R(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));(R(e).forEach((function(e){e.tabIndex=-1})),t)?R(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}))[0].tabIndex=0:R(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,t){if(null!==this.selectionMode){var o=R(n.find(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=!1===t?-1:0,o.every((function(e){return-1===e.tabIndex}))&&(o[0].tabIndex=0)}},focusRowChange:function(e,t,n){e.tabIndex="-1",t.tabIndex="0",this.focusNode(n||t)},findBeforeClickableNode:function(e){var t=e.closest("ul").closest("li");if(t){var o=n.findSingle(t,"button");return o&&"hidden"!==o.style.visibility?t:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?D({},this.selectionKeys):{},t=!this.checked;this.propagateDown(this.node,t,e),this.$emit("checkbox-change",{node:this.node,check:t,selectionKeys:e})},propagateDown:function(e,t,n){if(t?n[e.key]={checked:!0,partialChecked:!1}:delete n[e.key],e.children&&e.children.length){var o,i=j(e.children);try{for(i.s();!(o=i.n()).done;){this.propagateDown(o.value,t,n)}}catch(e){i.e(e)}finally{i.f()}}},propagateUp:function(e){var t,n=e.check,o=D({},e.selectionKeys),i=0,r=!1,l=j(this.node.children);try{for(l.s();!(t=l.n()).done;){var c=t.value;o[c.key]&&o[c.key].checked?i++:o[c.key]&&o[c.key].partialChecked&&(r=!0)}}catch(e){l.e(e)}finally{l.f()}n&&i===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],r||i>0&&i!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var t=this.getParentNodeElement(e);return t?t.nextElementSibling?t.nextElementSibling:this.findNextSiblingOfAncestor(t):null},findLastVisibleDescendant:function(e){var t=e.children[1];return t?this.findLastVisibleDescendant(t.children[t.children.length-1]):e},getParentNodeElement:function(e){var t=e.parentElement.parentElement;return"treeitem"===n.getAttribute(t,"role")?t:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return"checkbox"===this.selectionMode},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&!0===this.expandedKeys[this.node.key]},leaf:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},selectable:function(){return!1!==this.node.selectable&&null!=this.selectionMode},selected:function(){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.node.key]},checkboxMode:function(){return"checkbox"===this.selectionMode&&!1!==this.node.selectable},checked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked)},partialChecked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked)},ariaChecked:function(){return"single"===this.selectionMode||"multiple"===this.selectionMode?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0}},components:{Checkbox:l,ChevronDownIcon:a,ChevronRightIcon:s,CheckIcon:c,MinusIcon:d,SpinnerIcon:t},directives:{ripple:u}},z=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],q=["data-p-highlight","data-p-selectable"];function G(e){return G="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},G(e)}function J(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=X(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function Q(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function Y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Z(e){if(Array.isArray(e))return ee(e)}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){var o;return(t="symbol"==G(o=ie(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){if("object"!=G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=G(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}H.render=function(e,t,n,o,i,r){var l=h("SpinnerIcon"),c=h("Checkbox"),a=h("TreeNode",!0),s=f("ripple");return p(),y("li",g({ref:"currentNode",class:e.cx("node"),role:"treeitem","aria-label":r.label(n.node),"aria-selected":r.ariaSelected,"aria-expanded":r.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":r.ariaChecked,tabindex:0===n.index?0:-1,onKeydown:t[4]||(t[4]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},1===n.level?r.getPTOptions("node"):e.ptm("subgroup")),[m("div",g({class:e.cx("content"),onClick:t[2]||(t[2]=function(){return r.onClick&&r.onClick.apply(r,arguments)}),onTouchend:t[3]||(t[3]=function(){return r.onTouchEnd&&r.onTouchEnd.apply(r,arguments)}),style:n.node.style},r.getPTOptions("content"),{"data-p-highlight":r.checkboxMode?r.checked:r.selected,"data-p-selectable":r.selectable}),[b((p(),y("button",g({type:"button",class:e.cx("toggler"),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)}),tabindex:"-1","aria-hidden":"true"},r.getPTOptions("toggler")),[n.node.loading&&"icon"===n.loadingMode?(p(),y(k,{key:0},[n.templates.nodetogglericon?(p(),v(x(n.templates.nodetogglericon),{key:0,class:S(e.cx("nodetogglericon"))},null,8,["class"])):(p(),v(l,g({key:1,spin:"",class:e.cx("nodetogglericon")},e.ptm("nodetogglericon")),null,16,["class"]))],64)):(p(),y(k,{key:1},[n.templates.togglericon?(p(),v(x(n.templates.togglericon),{key:0,node:n.node,expanded:r.expanded,class:S(e.cx("togglerIcon"))},null,8,["node","expanded","class"])):r.expanded?(p(),v(x(n.node.expandedIcon?"span":"ChevronDownIcon"),g({key:1,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"])):(p(),v(x(n.node.collapsedIcon?"span":"ChevronRightIcon"),g({key:2,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"]))],64))],16)),[[s]]),r.checkboxMode?(p(),v(c,{key:0,modelValue:r.checked,binary:!0,class:S(e.cx("nodeCheckbox")),tabindex:-1,unstyled:e.unstyled,pt:r.getPTOptions("nodeCheckbox"),"data-p-checked":r.checked,"data-p-partialchecked":r.partialChecked},{icon:C((function(e){return[n.templates.checkboxicon?(p(),v(x(n.templates.checkboxicon),{key:0,checked:e.checked,partialChecked:r.partialChecked,class:S(e.class)},null,8,["checked","partialChecked","class"])):(p(),v(x(r.checked?"CheckIcon":r.partialChecked?"MinusIcon":null),g({key:1,class:e.class},r.getPTOptions("nodeCheckbox.icon")),null,16,["class"]))]})),_:1},8,["modelValue","class","unstyled","pt","data-p-checked","data-p-partialchecked"])):K("",!0),m("span",g({class:[e.cx("nodeIcon"),n.node.icon]},r.getPTOptions("nodeIcon")),null,16),m("span",g({class:e.cx("label")},r.getPTOptions("label"),{onKeydown:t[1]||(t[1]=w((function(){}),["stop"]))}),[n.templates[n.node.type]||n.templates.default?(p(),v(x(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node},null,8,["node"])):(p(),y(k,{key:1},[T(I(r.label(n.node)),1)],64))],16)],16,q),r.hasChildren&&r.expanded?(p(),y("ul",g({key:0,class:e.cx("subgroup"),role:"group"},e.ptm("subgroup")),[(p(!0),y(k,null,N(n.node.children,(function(t){return p(),v(a,{key:t.key,node:t,templates:n.templates,level:n.level+1,expandedKeys:n.expandedKeys,onNodeToggle:r.onChildNodeToggle,onNodeClick:r.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:r.propagateUp,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","unstyled","pt"])})),128))],16)):K("",!0)],16,z)};var re={name:"Tree",extends:E,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null}},watch:{expandedKeys:function(e){this.d_expandedKeys=e}},methods:{onNodeToggle:function(e){var t=e.key;this.d_expandedKeys[t]?(delete this.d_expandedKeys[t],this.$emit("node-collapse",e)):(this.d_expandedKeys[t]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=ne({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(null!=this.selectionMode&&!1!==e.node.selectable){var t=!e.nodeTouched&&this.metaKeySelection?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",t)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),this.$emit(e.check?"node-select":"node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var t,n=e.originalEvent,o=e.node,i=n.metaKey||n.ctrlKey;return this.isNodeSelected(o)&&i?(this.isSingleSelectionMode()?t={}:delete(t=ne({},this.selectionKeys))[o.key],this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?t={}:this.isMultipleSelectionMode()&&(t=i&&this.selectionKeys?ne({},this.selectionKeys):{}),t[o.key]=!0,this.$emit("node-select",o)),t},handleSelectionWithoutMetaKey:function(e){var t,n=e.node,o=this.isNodeSelected(n);return this.isSingleSelectionMode()?o?(t={},this.$emit("node-unselect",n)):((t={})[n.key]=!0,this.$emit("node-select",n)):o?(delete(t=ne({},this.selectionKeys))[n.key],this.$emit("node-unselect",n)):((t=this.selectionKeys?ne({},this.selectionKeys):{})[n.key]=!0,this.$emit("node-select",n)),t},isSingleSelectionMode:function(){return"single"===this.selectionMode},isMultipleSelectionMode:function(){return"multiple"===this.selectionMode},isNodeSelected:function(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[e.key]},isChecked:function(e){return!!this.selectionKeys&&(this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked)},isNodeLeaf:function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},onFilterKeydown:function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code||e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value})},findFilteredNodes:function(e,t){if(e){var n=!1;if(e.children){var o=Z(c=e.children)||Y(c)||X(c)||Q();e.children=[];var i,r=J(o);try{for(r.s();!(i=r.n()).done;){var l=ne({},i.value);this.isFilterMatched(l,t)&&(n=!0,e.children.push(l))}}catch(e){r.e(e)}finally{r.f()}}if(n)return!0}var c},isFilterMatched:function(e,t){var n,i=t.searchFields,r=t.filterText,l=t.strict,c=!1,a=J(i);try{for(a.s();!(n=a.n()).done;){String(o.resolveFieldData(e,n.value)).toLocaleLowerCase(this.filterLocale).indexOf(r)>-1&&(c=!0)}}catch(e){a.e(e)}finally{a.f()}return(!c||l&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{searchFields:i,filterText:r,strict:l})||c),c}},computed:{filteredValue:function(){var e,t=[],n=this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),i="strict"===this.filterMode,r=J(this.value);try{for(r.s();!(e=r.n()).done;){var l=ne({},e.value),c={searchFields:n,filterText:o,strict:i};(i&&(this.findFilteredNodes(l,c)||this.isFilterMatched(l,c))||!i&&(this.isFilterMatched(l,c)||this.findFilteredNodes(l,c)))&&t.push(l)}}catch(e){r.e(e)}finally{r.f()}return t},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value}},components:{TreeNode:H,SearchIcon:e,SpinnerIcon:t}},le=["placeholder"],ce=["aria-labelledby","aria-label"];re.render=function(e,t,n,o,i,r){var l=h("SpinnerIcon"),c=h("SearchIcon"),a=h("TreeNode");return p(),y("div",g({class:e.cx("root")},e.ptm("root")),[e.loading&&"mask"===e.loadingMode?(p(),y("div",g({key:0,class:e.cx("loadingOverlay")},e.ptm("loadingOverlay")),[O(e.$slots,"loadingicon",{class:S(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(p(),y("i",g({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(p(),v(l,g({key:1,spin:"",class:e.cx("loadingIcon")},e.ptm("loadingIcon")),null,16,["class"]))]}))],16)):K("",!0),e.filter?(p(),y("div",g({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[b(m("input",g({"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.filterValue=e}),type:"text",autocomplete:"off",class:e.cx("input"),placeholder:e.filterPlaceholder,onKeydown:t[1]||(t[1]=function(){return r.onFilterKeydown&&r.onFilterKeydown.apply(r,arguments)})},e.ptm("input")),null,16,le),[[M,i.filterValue]]),O(e.$slots,"searchicon",{class:S(e.cx("searchIcon"))},(function(){return[A(c,g({class:e.cx("searchIcon")},e.ptm("searchIcon")),null,16,["class"])]}))],16)):K("",!0),m("div",g({class:e.cx("wrapper"),style:{maxHeight:e.scrollHeight}},e.ptm("wrapper")),[m("ul",g({class:e.cx("container"),role:"tree","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("container")),[(p(!0),y(k,null,N(r.valueToRender,(function(t,n){return p(),v(a,{key:t.key,node:t,templates:e.$slots,level:e.level+1,index:n,expandedKeys:i.d_expandedKeys,onNodeToggle:r.onNodeToggle,onNodeClick:r.onNodeClick,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onCheckboxChange:r.onCheckboxChange,loadingMode:e.loadingMode,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","unstyled","pt"])})),128))],16,ce)],16)],16)};export{re as default};
|
package/tree/tree.js
CHANGED
|
@@ -827,9 +827,7 @@ this.primevue.tree = (function (SearchIcon, SpinnerIcon, utils, BaseComponent, T
|
|
|
827
827
|
var _component_TreeNode = vue.resolveComponent("TreeNode");
|
|
828
828
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
829
829
|
"class": _ctx.cx('root')
|
|
830
|
-
}, _ctx.ptm('root'), {
|
|
831
|
-
"data-pc-name": "tree"
|
|
832
|
-
}), [_ctx.loading && _ctx.loadingMode === 'mask' ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
830
|
+
}, _ctx.ptm('root')), [_ctx.loading && _ctx.loadingMode === 'mask' ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
833
831
|
key: 0,
|
|
834
832
|
"class": _ctx.cx('loadingOverlay')
|
|
835
833
|
}, _ctx.ptm('loadingOverlay')), [vue.renderSlot(_ctx.$slots, "loadingicon", {
|
package/tree/tree.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.tree=function(e,t,n,o,i,r,l,c,a,s,d,u){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=h(e),f=h(t),y=h(o),g=h(i),m=h(r),b=h(l),k={name:"BaseTree",extends:y.default,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:String,default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:g.default,provide:function(){return{$parentInstance:this}}};function v(e){return v="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},v(e)}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var o;return(t="symbol"==v(o=K(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){return M(e)||B(e)||I(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function B(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e){if(Array.isArray(e))return O(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var E={name:"TreeNode",hostName:"Tree",extends:y.default,emits:["node-toggle","node-click","checkbox-change"],props:{node:{type:null,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},index:null},nodeTouched:!1,toggleClicked:!1,mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return"function"==typeof e.label?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{index:this.index,expanded:this.expanded,selected:this.selected,checked:this.checked,leaf:this.leaf}})},onClick:function(e){this.toggleClicked||n.DomHandler.getAttribute(e.target,'[data-pc-section="toggler"]')||n.DomHandler.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')?this.toggleClicked=!1:(this.isCheckboxSelectionMode()?this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1)},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}},onArrowDown:function(e){var t="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,n=t.children[1];if(n)this.focusRowChange(t,n.children[0]);else if(t.nextElementSibling)this.focusRowChange(t,t.nextElementSibling);else{var o=this.findNextSiblingOfAncestor(t);o&&this.focusRowChange(t,o)}e.preventDefault()},onArrowUp:function(e){var t=e.target;if(t.previousElementSibling)this.focusRowChange(t,t.previousElementSibling,this.findLastVisibleDescendant(t.previousElementSibling));else{var n=this.getParentNodeElement(t);n&&this.focusRowChange(t,n)}e.preventDefault()},onArrowRight:function(e){var t=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick((function(){t.onArrowDown(e)})))},onArrowLeft:function(e){var t=n.DomHandler.findSingle(e.currentTarget,'[data-pc-section="toggler"]');if(0===this.level&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return t.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},setAllNodesTabIndexes:function(){var e=n.DomHandler.find(this.$refs.currentNode.closest('[data-pc-section="container"]'),'[role="treeitem"]'),t=N(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));(N(e).forEach((function(e){e.tabIndex=-1})),t)?N(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}))[0].tabIndex=0:N(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,t){if(null!==this.selectionMode){var o=N(n.DomHandler.find(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=!1===t?-1:0,o.every((function(e){return-1===e.tabIndex}))&&(o[0].tabIndex=0)}},focusRowChange:function(e,t,n){e.tabIndex="-1",t.tabIndex="0",this.focusNode(n||t)},findBeforeClickableNode:function(e){var t=e.closest("ul").closest("li");if(t){var o=n.DomHandler.findSingle(t,"button");return o&&"hidden"!==o.style.visibility?t:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?S({},this.selectionKeys):{},t=!this.checked;this.propagateDown(this.node,t,e),this.$emit("checkbox-change",{node:this.node,check:t,selectionKeys:e})},propagateDown:function(e,t,n){if(t?n[e.key]={checked:!0,partialChecked:!1}:delete n[e.key],e.children&&e.children.length){var o,i=x(e.children);try{for(i.s();!(o=i.n()).done;){this.propagateDown(o.value,t,n)}}catch(e){i.e(e)}finally{i.f()}}},propagateUp:function(e){var t,n=e.check,o=S({},e.selectionKeys),i=0,r=!1,l=x(this.node.children);try{for(l.s();!(t=l.n()).done;){var c=t.value;o[c.key]&&o[c.key].checked?i++:o[c.key]&&o[c.key].partialChecked&&(r=!0)}}catch(e){l.e(e)}finally{l.f()}n&&i===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],r||i>0&&i!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var t=this.getParentNodeElement(e);return t?t.nextElementSibling?t.nextElementSibling:this.findNextSiblingOfAncestor(t):null},findLastVisibleDescendant:function(e){var t=e.children[1];return t?this.findLastVisibleDescendant(t.children[t.children.length-1]):e},getParentNodeElement:function(e){var t=e.parentElement.parentElement;return"treeitem"===n.DomHandler.getAttribute(t,"role")?t:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return"checkbox"===this.selectionMode},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&!0===this.expandedKeys[this.node.key]},leaf:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},selectable:function(){return!1!==this.node.selectable&&null!=this.selectionMode},selected:function(){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.node.key]},checkboxMode:function(){return"checkbox"===this.selectionMode&&!1!==this.node.selectable},checked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked)},partialChecked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked)},ariaChecked:function(){return"single"===this.selectionMode||"multiple"===this.selectionMode?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0}},components:{Checkbox:m.default,ChevronDownIcon:h(c).default,ChevronRightIcon:h(a).default,CheckIcon:b.default,MinusIcon:h(s).default,SpinnerIcon:f.default},directives:{ripple:h(d).default}},P=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],D=["data-p-highlight","data-p-selectable"];function A(e){return A="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},A(e)}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function $(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function F(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function L(e){if(Array.isArray(e))return R(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){var o;return(t="symbol"==A(o=z(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=A(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}E.render=function(e,t,n,o,i,r){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("Checkbox"),a=u.resolveComponent("TreeNode",!0),s=u.resolveDirective("ripple");return u.openBlock(),u.createElementBlock("li",u.mergeProps({ref:"currentNode",class:e.cx("node"),role:"treeitem","aria-label":r.label(n.node),"aria-selected":r.ariaSelected,"aria-expanded":r.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":r.ariaChecked,tabindex:0===n.index?0:-1,onKeydown:t[4]||(t[4]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},1===n.level?r.getPTOptions("node"):e.ptm("subgroup")),[u.createElementVNode("div",u.mergeProps({class:e.cx("content"),onClick:t[2]||(t[2]=function(){return r.onClick&&r.onClick.apply(r,arguments)}),onTouchend:t[3]||(t[3]=function(){return r.onTouchEnd&&r.onTouchEnd.apply(r,arguments)}),style:n.node.style},r.getPTOptions("content"),{"data-p-highlight":r.checkboxMode?r.checked:r.selected,"data-p-selectable":r.selectable}),[u.withDirectives((u.openBlock(),u.createElementBlock("button",u.mergeProps({type:"button",class:e.cx("toggler"),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)}),tabindex:"-1","aria-hidden":"true"},r.getPTOptions("toggler")),[n.node.loading&&"icon"===n.loadingMode?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[n.templates.nodetogglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.nodetogglericon),{key:0,class:u.normalizeClass(e.cx("nodetogglericon"))},null,8,["class"])):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("nodetogglericon")},e.ptm("nodetogglericon")),null,16,["class"]))],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[n.templates.togglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.togglericon),{key:0,node:n.node,expanded:r.expanded,class:u.normalizeClass(e.cx("togglerIcon"))},null,8,["node","expanded","class"])):r.expanded?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.expandedIcon?"span":"ChevronDownIcon"),u.mergeProps({key:1,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.collapsedIcon?"span":"ChevronRightIcon"),u.mergeProps({key:2,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"]))],64))],16)),[[s]]),r.checkboxMode?(u.openBlock(),u.createBlock(c,{key:0,modelValue:r.checked,binary:!0,class:u.normalizeClass(e.cx("nodeCheckbox")),tabindex:-1,unstyled:e.unstyled,pt:r.getPTOptions("nodeCheckbox"),"data-p-checked":r.checked,"data-p-partialchecked":r.partialChecked},{icon:u.withCtx((function(e){return[n.templates.checkboxicon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.checkboxicon),{key:0,checked:e.checked,partialChecked:r.partialChecked,class:u.normalizeClass(e.class)},null,8,["checked","partialChecked","class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r.checked?"CheckIcon":r.partialChecked?"MinusIcon":null),u.mergeProps({key:1,class:e.class},r.getPTOptions("nodeCheckbox.icon")),null,16,["class"]))]})),_:1},8,["modelValue","class","unstyled","pt","data-p-checked","data-p-partialchecked"])):u.createCommentVNode("",!0),u.createElementVNode("span",u.mergeProps({class:[e.cx("nodeIcon"),n.node.icon]},r.getPTOptions("nodeIcon")),null,16),u.createElementVNode("span",u.mergeProps({class:e.cx("label")},r.getPTOptions("label"),{onKeydown:t[1]||(t[1]=u.withModifiers((function(){}),["stop"]))}),[n.templates[n.node.type]||n.templates.default?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node},null,8,["node"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(r.label(n.node)),1)],64))],16)],16,D),r.hasChildren&&r.expanded?(u.openBlock(),u.createElementBlock("ul",u.mergeProps({key:0,class:e.cx("subgroup"),role:"group"},e.ptm("subgroup")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.node.children,(function(t){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:n.templates,level:n.level+1,expandedKeys:n.expandedKeys,onNodeToggle:r.onChildNodeToggle,onNodeClick:r.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:r.propagateUp,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","unstyled","pt"])})),128))],16)):u.createCommentVNode("",!0)],16,P)};var W={name:"Tree",extends:k,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null}},watch:{expandedKeys:function(e){this.d_expandedKeys=e}},methods:{onNodeToggle:function(e){var t=e.key;this.d_expandedKeys[t]?(delete this.d_expandedKeys[t],this.$emit("node-collapse",e)):(this.d_expandedKeys[t]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=_({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(null!=this.selectionMode&&!1!==e.node.selectable){var t=!e.nodeTouched&&this.metaKeySelection?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",t)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),this.$emit(e.check?"node-select":"node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var t,n=e.originalEvent,o=e.node,i=n.metaKey||n.ctrlKey;return this.isNodeSelected(o)&&i?(this.isSingleSelectionMode()?t={}:delete(t=_({},this.selectionKeys))[o.key],this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?t={}:this.isMultipleSelectionMode()&&(t=i&&this.selectionKeys?_({},this.selectionKeys):{}),t[o.key]=!0,this.$emit("node-select",o)),t},handleSelectionWithoutMetaKey:function(e){var t,n=e.node,o=this.isNodeSelected(n);return this.isSingleSelectionMode()?o?(t={},this.$emit("node-unselect",n)):((t={})[n.key]=!0,this.$emit("node-select",n)):o?(delete(t=_({},this.selectionKeys))[n.key],this.$emit("node-unselect",n)):((t=this.selectionKeys?_({},this.selectionKeys):{})[n.key]=!0,this.$emit("node-select",n)),t},isSingleSelectionMode:function(){return"single"===this.selectionMode},isMultipleSelectionMode:function(){return"multiple"===this.selectionMode},isNodeSelected:function(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[e.key]},isChecked:function(e){return!!this.selectionKeys&&(this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked)},isNodeLeaf:function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},onFilterKeydown:function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code||e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value})},findFilteredNodes:function(e,t){if(e){var n=!1;if(e.children){var o=L(c=e.children)||F(c)||V(c)||$();e.children=[];var i,r=j(o);try{for(r.s();!(i=r.n()).done;){var l=_({},i.value);this.isFilterMatched(l,t)&&(n=!0,e.children.push(l))}}catch(e){r.e(e)}finally{r.f()}}if(n)return!0}var c},isFilterMatched:function(e,t){var o,i=t.searchFields,r=t.filterText,l=t.strict,c=!1,a=j(i);try{for(a.s();!(o=a.n()).done;){String(n.ObjectUtils.resolveFieldData(e,o.value)).toLocaleLowerCase(this.filterLocale).indexOf(r)>-1&&(c=!0)}}catch(e){a.e(e)}finally{a.f()}return(!c||l&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{searchFields:i,filterText:r,strict:l})||c),c}},computed:{filteredValue:function(){var e,t=[],n=this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),i="strict"===this.filterMode,r=j(this.value);try{for(r.s();!(e=r.n()).done;){var l=_({},e.value),c={searchFields:n,filterText:o,strict:i};(i&&(this.findFilteredNodes(l,c)||this.isFilterMatched(l,c))||!i&&(this.isFilterMatched(l,c)||this.findFilteredNodes(l,c)))&&t.push(l)}}catch(e){r.e(e)}finally{r.f()}return t},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value}},components:{TreeNode:E,SearchIcon:p.default,SpinnerIcon:f.default}},q=["placeholder"],G=["aria-labelledby","aria-label"];return W.render=function(e,t,n,o,i,r){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("SearchIcon"),a=u.resolveComponent("TreeNode");return u.openBlock(),u.createElementBlock("div",u.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"tree"}),[e.loading&&"mask"===e.loadingMode?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:0,class:e.cx("loadingOverlay")},e.ptm("loadingOverlay")),[u.renderSlot(e.$slots,"loadingicon",{class:u.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(u.openBlock(),u.createElementBlock("i",u.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("loadingIcon")},e.ptm("loadingIcon")),null,16,["class"]))]}))],16)):u.createCommentVNode("",!0),e.filter?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[u.withDirectives(u.createElementVNode("input",u.mergeProps({"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.filterValue=e}),type:"text",autocomplete:"off",class:e.cx("input"),placeholder:e.filterPlaceholder,onKeydown:t[1]||(t[1]=function(){return r.onFilterKeydown&&r.onFilterKeydown.apply(r,arguments)})},e.ptm("input")),null,16,q),[[u.vModelText,i.filterValue]]),u.renderSlot(e.$slots,"searchicon",{class:u.normalizeClass(e.cx("searchIcon"))},(function(){return[u.createVNode(c,u.mergeProps({class:e.cx("searchIcon")},e.ptm("searchIcon")),null,16,["class"])]}))],16)):u.createCommentVNode("",!0),u.createElementVNode("div",u.mergeProps({class:e.cx("wrapper"),style:{maxHeight:e.scrollHeight}},e.ptm("wrapper")),[u.createElementVNode("ul",u.mergeProps({class:e.cx("container"),role:"tree","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("container")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.valueToRender,(function(t,n){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:e.$slots,level:e.level+1,index:n,expandedKeys:i.d_expandedKeys,onNodeToggle:r.onNodeToggle,onNodeClick:r.onNodeClick,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onCheckboxChange:r.onCheckboxChange,loadingMode:e.loadingMode,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","unstyled","pt"])})),128))],16,G)],16)],16)},W}(primevue.icons.search,primevue.icons.spinner,primevue.utils,primevue.basecomponent,primevue.tree.style,primevue.checkbox,primevue.icons.check,primevue.icons.chevrondown,primevue.icons.chevronright,primevue.icons.minus,primevue.ripple,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.tree=function(e,t,n,o,i,r,l,c,a,s,d,u){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=h(e),f=h(t),y=h(o),g=h(i),m=h(r),b=h(l),k={name:"BaseTree",extends:y.default,props:{value:{type:null,default:null},expandedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},metaKeySelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},loadingMode:{type:String,default:"mask"},filter:{type:Boolean,default:!1},filterBy:{type:String,default:"label"},filterMode:{type:String,default:"lenient"},filterPlaceholder:{type:String,default:null},filterLocale:{type:String,default:void 0},highlightOnSelect:{type:Boolean,default:!1},scrollHeight:{type:String,default:null},level:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:g.default,provide:function(){return{$parentInstance:this}}};function v(e){return v="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},v(e)}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){var o;return(t="symbol"==v(o=K(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){return M(e)||B(e)||I(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function B(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e){if(Array.isArray(e))return O(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var E={name:"TreeNode",hostName:"Tree",extends:y.default,emits:["node-toggle","node-click","checkbox-change"],props:{node:{type:null,default:null},expandedKeys:{type:null,default:null},loadingMode:{type:String,default:"mask"},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},templates:{type:null,default:null},level:{type:Number,default:null},index:null},nodeTouched:!1,toggleClicked:!1,mounted:function(){this.setAllNodesTabIndexes()},methods:{toggle:function(){this.$emit("node-toggle",this.node),this.toggleClicked=!0},label:function(e){return"function"==typeof e.label?e.label():e.label},onChildNodeToggle:function(e){this.$emit("node-toggle",e)},getPTOptions:function(e){return this.ptm(e,{context:{index:this.index,expanded:this.expanded,selected:this.selected,checked:this.checked,leaf:this.leaf}})},onClick:function(e){this.toggleClicked||n.DomHandler.getAttribute(e.target,'[data-pc-section="toggler"]')||n.DomHandler.getAttribute(e.target.parentElement,'[data-pc-section="toggler"]')?this.toggleClicked=!1:(this.isCheckboxSelectionMode()?this.toggleCheckbox():this.$emit("node-click",{originalEvent:e,nodeTouched:this.nodeTouched,node:this.node}),this.nodeTouched=!1)},onChildNodeClick:function(e){this.$emit("node-click",e)},onTouchEnd:function(){this.nodeTouched=!0},onKeyDown:function(e){if(this.isSameNode(e))switch(e.code){case"Tab":this.onTabKey(e);break;case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}},onArrowDown:function(e){var t="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,n=t.children[1];if(n)this.focusRowChange(t,n.children[0]);else if(t.nextElementSibling)this.focusRowChange(t,t.nextElementSibling);else{var o=this.findNextSiblingOfAncestor(t);o&&this.focusRowChange(t,o)}e.preventDefault()},onArrowUp:function(e){var t=e.target;if(t.previousElementSibling)this.focusRowChange(t,t.previousElementSibling,this.findLastVisibleDescendant(t.previousElementSibling));else{var n=this.getParentNodeElement(t);n&&this.focusRowChange(t,n)}e.preventDefault()},onArrowRight:function(e){var t=this;this.leaf||this.expanded||(e.currentTarget.tabIndex=-1,this.$emit("node-toggle",this.node),this.$nextTick((function(){t.onArrowDown(e)})))},onArrowLeft:function(e){var t=n.DomHandler.findSingle(e.currentTarget,'[data-pc-section="toggler"]');if(0===this.level&&!this.expanded)return!1;if(this.expanded&&!this.leaf)return t.click(),!1;var o=this.findBeforeClickableNode(e.currentTarget);o&&this.focusRowChange(e.currentTarget,o)},onEnterKey:function(e){this.setTabIndexForSelectionMode(e,this.nodeTouched),this.onClick(e),e.preventDefault()},onTabKey:function(){this.setAllNodesTabIndexes()},setAllNodesTabIndexes:function(){var e=n.DomHandler.find(this.$refs.currentNode.closest('[data-pc-section="container"]'),'[role="treeitem"]'),t=N(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));(N(e).forEach((function(e){e.tabIndex=-1})),t)?N(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}))[0].tabIndex=0:N(e)[0].tabIndex=0},setTabIndexForSelectionMode:function(e,t){if(null!==this.selectionMode){var o=N(n.DomHandler.find(this.$refs.currentNode.parentElement,'[role="treeitem"]'));e.currentTarget.tabIndex=!1===t?-1:0,o.every((function(e){return-1===e.tabIndex}))&&(o[0].tabIndex=0)}},focusRowChange:function(e,t,n){e.tabIndex="-1",t.tabIndex="0",this.focusNode(n||t)},findBeforeClickableNode:function(e){var t=e.closest("ul").closest("li");if(t){var o=n.DomHandler.findSingle(t,"button");return o&&"hidden"!==o.style.visibility?t:this.findBeforeClickableNode(e.previousElementSibling)}return null},toggleCheckbox:function(){var e=this.selectionKeys?S({},this.selectionKeys):{},t=!this.checked;this.propagateDown(this.node,t,e),this.$emit("checkbox-change",{node:this.node,check:t,selectionKeys:e})},propagateDown:function(e,t,n){if(t?n[e.key]={checked:!0,partialChecked:!1}:delete n[e.key],e.children&&e.children.length){var o,i=x(e.children);try{for(i.s();!(o=i.n()).done;){this.propagateDown(o.value,t,n)}}catch(e){i.e(e)}finally{i.f()}}},propagateUp:function(e){var t,n=e.check,o=S({},e.selectionKeys),i=0,r=!1,l=x(this.node.children);try{for(l.s();!(t=l.n()).done;){var c=t.value;o[c.key]&&o[c.key].checked?i++:o[c.key]&&o[c.key].partialChecked&&(r=!0)}}catch(e){l.e(e)}finally{l.f()}n&&i===this.node.children.length?o[this.node.key]={checked:!0,partialChecked:!1}:(n||delete o[this.node.key],r||i>0&&i!==this.node.children.length?o[this.node.key]={checked:!1,partialChecked:!0}:delete o[this.node.key]),this.$emit("checkbox-change",{node:e.node,check:e.check,selectionKeys:o})},onChildCheckboxChange:function(e){this.$emit("checkbox-change",e)},findNextSiblingOfAncestor:function(e){var t=this.getParentNodeElement(e);return t?t.nextElementSibling?t.nextElementSibling:this.findNextSiblingOfAncestor(t):null},findLastVisibleDescendant:function(e){var t=e.children[1];return t?this.findLastVisibleDescendant(t.children[t.children.length-1]):e},getParentNodeElement:function(e){var t=e.parentElement.parentElement;return"treeitem"===n.DomHandler.getAttribute(t,"role")?t:null},focusNode:function(e){e.focus()},isCheckboxSelectionMode:function(){return"checkbox"===this.selectionMode},isSameNode:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}},computed:{hasChildren:function(){return this.node.children&&this.node.children.length>0},expanded:function(){return this.expandedKeys&&!0===this.expandedKeys[this.node.key]},leaf:function(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},selectable:function(){return!1!==this.node.selectable&&null!=this.selectionMode},selected:function(){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[this.node.key]},checkboxMode:function(){return"checkbox"===this.selectionMode&&!1!==this.node.selectable},checked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].checked)},partialChecked:function(){return!!this.selectionKeys&&(this.selectionKeys[this.node.key]&&this.selectionKeys[this.node.key].partialChecked)},ariaChecked:function(){return"single"===this.selectionMode||"multiple"===this.selectionMode?this.selected:void 0},ariaSelected:function(){return this.checkboxMode?this.checked:void 0}},components:{Checkbox:m.default,ChevronDownIcon:h(c).default,ChevronRightIcon:h(a).default,CheckIcon:b.default,MinusIcon:h(s).default,SpinnerIcon:f.default},directives:{ripple:h(d).default}},P=["aria-label","aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-level","aria-checked","tabindex"],D=["data-p-highlight","data-p-selectable"];function A(e){return A="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},A(e)}function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=V(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}function $(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function F(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function L(e){if(Array.isArray(e))return R(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){var o;return(t="symbol"==A(o=z(t,"string"))?o:String(o))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=A(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}E.render=function(e,t,n,o,i,r){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("Checkbox"),a=u.resolveComponent("TreeNode",!0),s=u.resolveDirective("ripple");return u.openBlock(),u.createElementBlock("li",u.mergeProps({ref:"currentNode",class:e.cx("node"),role:"treeitem","aria-label":r.label(n.node),"aria-selected":r.ariaSelected,"aria-expanded":r.expanded,"aria-setsize":n.node.children?n.node.children.length:0,"aria-posinset":n.index+1,"aria-level":n.level,"aria-checked":r.ariaChecked,tabindex:0===n.index?0:-1,onKeydown:t[4]||(t[4]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},1===n.level?r.getPTOptions("node"):e.ptm("subgroup")),[u.createElementVNode("div",u.mergeProps({class:e.cx("content"),onClick:t[2]||(t[2]=function(){return r.onClick&&r.onClick.apply(r,arguments)}),onTouchend:t[3]||(t[3]=function(){return r.onTouchEnd&&r.onTouchEnd.apply(r,arguments)}),style:n.node.style},r.getPTOptions("content"),{"data-p-highlight":r.checkboxMode?r.checked:r.selected,"data-p-selectable":r.selectable}),[u.withDirectives((u.openBlock(),u.createElementBlock("button",u.mergeProps({type:"button",class:e.cx("toggler"),onClick:t[0]||(t[0]=function(){return r.toggle&&r.toggle.apply(r,arguments)}),tabindex:"-1","aria-hidden":"true"},r.getPTOptions("toggler")),[n.node.loading&&"icon"===n.loadingMode?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[n.templates.nodetogglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.nodetogglericon),{key:0,class:u.normalizeClass(e.cx("nodetogglericon"))},null,8,["class"])):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("nodetogglericon")},e.ptm("nodetogglericon")),null,16,["class"]))],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[n.templates.togglericon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.togglericon),{key:0,node:n.node,expanded:r.expanded,class:u.normalizeClass(e.cx("togglerIcon"))},null,8,["node","expanded","class"])):r.expanded?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.expandedIcon?"span":"ChevronDownIcon"),u.mergeProps({key:1,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.node.collapsedIcon?"span":"ChevronRightIcon"),u.mergeProps({key:2,class:e.cx("togglerIcon")},r.getPTOptions("togglerIcon")),null,16,["class"]))],64))],16)),[[s]]),r.checkboxMode?(u.openBlock(),u.createBlock(c,{key:0,modelValue:r.checked,binary:!0,class:u.normalizeClass(e.cx("nodeCheckbox")),tabindex:-1,unstyled:e.unstyled,pt:r.getPTOptions("nodeCheckbox"),"data-p-checked":r.checked,"data-p-partialchecked":r.partialChecked},{icon:u.withCtx((function(e){return[n.templates.checkboxicon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates.checkboxicon),{key:0,checked:e.checked,partialChecked:r.partialChecked,class:u.normalizeClass(e.class)},null,8,["checked","partialChecked","class"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r.checked?"CheckIcon":r.partialChecked?"MinusIcon":null),u.mergeProps({key:1,class:e.class},r.getPTOptions("nodeCheckbox.icon")),null,16,["class"]))]})),_:1},8,["modelValue","class","unstyled","pt","data-p-checked","data-p-partialchecked"])):u.createCommentVNode("",!0),u.createElementVNode("span",u.mergeProps({class:[e.cx("nodeIcon"),n.node.icon]},r.getPTOptions("nodeIcon")),null,16),u.createElementVNode("span",u.mergeProps({class:e.cx("label")},r.getPTOptions("label"),{onKeydown:t[1]||(t[1]=u.withModifiers((function(){}),["stop"]))}),[n.templates[n.node.type]||n.templates.default?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.templates[n.node.type]||n.templates.default),{key:0,node:n.node},null,8,["node"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(r.label(n.node)),1)],64))],16)],16,D),r.hasChildren&&r.expanded?(u.openBlock(),u.createElementBlock("ul",u.mergeProps({key:0,class:e.cx("subgroup"),role:"group"},e.ptm("subgroup")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.node.children,(function(t){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:n.templates,level:n.level+1,expandedKeys:n.expandedKeys,onNodeToggle:r.onChildNodeToggle,onNodeClick:r.onChildNodeClick,selectionMode:n.selectionMode,selectionKeys:n.selectionKeys,onCheckboxChange:r.propagateUp,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","unstyled","pt"])})),128))],16)):u.createCommentVNode("",!0)],16,P)};var W={name:"Tree",extends:k,emits:["node-expand","node-collapse","update:expandedKeys","update:selectionKeys","node-select","node-unselect","filter"],data:function(){return{d_expandedKeys:this.expandedKeys||{},filterValue:null}},watch:{expandedKeys:function(e){this.d_expandedKeys=e}},methods:{onNodeToggle:function(e){var t=e.key;this.d_expandedKeys[t]?(delete this.d_expandedKeys[t],this.$emit("node-collapse",e)):(this.d_expandedKeys[t]=!0,this.$emit("node-expand",e)),this.d_expandedKeys=_({},this.d_expandedKeys),this.$emit("update:expandedKeys",this.d_expandedKeys)},onNodeClick:function(e){if(null!=this.selectionMode&&!1!==e.node.selectable){var t=!e.nodeTouched&&this.metaKeySelection?this.handleSelectionWithMetaKey(e):this.handleSelectionWithoutMetaKey(e);this.$emit("update:selectionKeys",t)}},onCheckboxChange:function(e){this.$emit("update:selectionKeys",e.selectionKeys),this.$emit(e.check?"node-select":"node-unselect",e.node)},handleSelectionWithMetaKey:function(e){var t,n=e.originalEvent,o=e.node,i=n.metaKey||n.ctrlKey;return this.isNodeSelected(o)&&i?(this.isSingleSelectionMode()?t={}:delete(t=_({},this.selectionKeys))[o.key],this.$emit("node-unselect",o)):(this.isSingleSelectionMode()?t={}:this.isMultipleSelectionMode()&&(t=i&&this.selectionKeys?_({},this.selectionKeys):{}),t[o.key]=!0,this.$emit("node-select",o)),t},handleSelectionWithoutMetaKey:function(e){var t,n=e.node,o=this.isNodeSelected(n);return this.isSingleSelectionMode()?o?(t={},this.$emit("node-unselect",n)):((t={})[n.key]=!0,this.$emit("node-select",n)):o?(delete(t=_({},this.selectionKeys))[n.key],this.$emit("node-unselect",n)):((t=this.selectionKeys?_({},this.selectionKeys):{})[n.key]=!0,this.$emit("node-select",n)),t},isSingleSelectionMode:function(){return"single"===this.selectionMode},isMultipleSelectionMode:function(){return"multiple"===this.selectionMode},isNodeSelected:function(e){return!(!this.selectionMode||!this.selectionKeys)&&!0===this.selectionKeys[e.key]},isChecked:function(e){return!!this.selectionKeys&&(this.selectionKeys[e.key]&&this.selectionKeys[e.key].checked)},isNodeLeaf:function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},onFilterKeydown:function(e){"Enter"!==e.code&&"NumpadEnter"!==e.code||e.preventDefault(),this.$emit("filter",{originalEvent:e,value:e.target.value})},findFilteredNodes:function(e,t){if(e){var n=!1;if(e.children){var o=L(c=e.children)||F(c)||V(c)||$();e.children=[];var i,r=j(o);try{for(r.s();!(i=r.n()).done;){var l=_({},i.value);this.isFilterMatched(l,t)&&(n=!0,e.children.push(l))}}catch(e){r.e(e)}finally{r.f()}}if(n)return!0}var c},isFilterMatched:function(e,t){var o,i=t.searchFields,r=t.filterText,l=t.strict,c=!1,a=j(i);try{for(a.s();!(o=a.n()).done;){String(n.ObjectUtils.resolveFieldData(e,o.value)).toLocaleLowerCase(this.filterLocale).indexOf(r)>-1&&(c=!0)}}catch(e){a.e(e)}finally{a.f()}return(!c||l&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{searchFields:i,filterText:r,strict:l})||c),c}},computed:{filteredValue:function(){var e,t=[],n=this.filterBy.split(","),o=this.filterValue.trim().toLocaleLowerCase(this.filterLocale),i="strict"===this.filterMode,r=j(this.value);try{for(r.s();!(e=r.n()).done;){var l=_({},e.value),c={searchFields:n,filterText:o,strict:i};(i&&(this.findFilteredNodes(l,c)||this.isFilterMatched(l,c))||!i&&(this.isFilterMatched(l,c)||this.findFilteredNodes(l,c)))&&t.push(l)}}catch(e){r.e(e)}finally{r.f()}return t},valueToRender:function(){return this.filterValue&&this.filterValue.trim().length>0?this.filteredValue:this.value}},components:{TreeNode:E,SearchIcon:p.default,SpinnerIcon:f.default}},q=["placeholder"],G=["aria-labelledby","aria-label"];return W.render=function(e,t,n,o,i,r){var l=u.resolveComponent("SpinnerIcon"),c=u.resolveComponent("SearchIcon"),a=u.resolveComponent("TreeNode");return u.openBlock(),u.createElementBlock("div",u.mergeProps({class:e.cx("root")},e.ptm("root")),[e.loading&&"mask"===e.loadingMode?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:0,class:e.cx("loadingOverlay")},e.ptm("loadingOverlay")),[u.renderSlot(e.$slots,"loadingicon",{class:u.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(u.openBlock(),u.createElementBlock("i",u.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(u.openBlock(),u.createBlock(l,u.mergeProps({key:1,spin:"",class:e.cx("loadingIcon")},e.ptm("loadingIcon")),null,16,["class"]))]}))],16)):u.createCommentVNode("",!0),e.filter?(u.openBlock(),u.createElementBlock("div",u.mergeProps({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[u.withDirectives(u.createElementVNode("input",u.mergeProps({"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.filterValue=e}),type:"text",autocomplete:"off",class:e.cx("input"),placeholder:e.filterPlaceholder,onKeydown:t[1]||(t[1]=function(){return r.onFilterKeydown&&r.onFilterKeydown.apply(r,arguments)})},e.ptm("input")),null,16,q),[[u.vModelText,i.filterValue]]),u.renderSlot(e.$slots,"searchicon",{class:u.normalizeClass(e.cx("searchIcon"))},(function(){return[u.createVNode(c,u.mergeProps({class:e.cx("searchIcon")},e.ptm("searchIcon")),null,16,["class"])]}))],16)):u.createCommentVNode("",!0),u.createElementVNode("div",u.mergeProps({class:e.cx("wrapper"),style:{maxHeight:e.scrollHeight}},e.ptm("wrapper")),[u.createElementVNode("ul",u.mergeProps({class:e.cx("container"),role:"tree","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("container")),[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.valueToRender,(function(t,n){return u.openBlock(),u.createBlock(a,{key:t.key,node:t,templates:e.$slots,level:e.level+1,index:n,expandedKeys:i.d_expandedKeys,onNodeToggle:r.onNodeToggle,onNodeClick:r.onNodeClick,selectionMode:e.selectionMode,selectionKeys:e.selectionKeys,onCheckboxChange:r.onCheckboxChange,loadingMode:e.loadingMode,unstyled:e.unstyled,pt:e.pt},null,8,["node","templates","level","index","expandedKeys","onNodeToggle","onNodeClick","selectionMode","selectionKeys","onCheckboxChange","loadingMode","unstyled","pt"])})),128))],16,G)],16)],16)},W}(primevue.icons.search,primevue.icons.spinner,primevue.utils,primevue.basecomponent,primevue.tree.style,primevue.checkbox,primevue.icons.check,primevue.icons.chevrondown,primevue.icons.chevronright,primevue.icons.minus,primevue.ripple,Vue);
|
|
@@ -179,11 +179,21 @@ export interface TreeSelectProps {
|
|
|
179
179
|
* Label to display when there are no selections.
|
|
180
180
|
*/
|
|
181
181
|
placeholder?: string | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* When present, it specifies that the component should have invalid state style.
|
|
184
|
+
* @defaultValue false
|
|
185
|
+
*/
|
|
186
|
+
invalid?: boolean | undefined;
|
|
182
187
|
/**
|
|
183
188
|
* When present, it specifies that the component should be disabled.
|
|
184
189
|
* @defaultValue false
|
|
185
190
|
*/
|
|
186
191
|
disabled?: boolean | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Specifies the input variant of the component.
|
|
194
|
+
* @defaultValue outlined
|
|
195
|
+
*/
|
|
196
|
+
variant?: 'outlined' | 'filled' | undefined;
|
|
187
197
|
/**
|
|
188
198
|
* Index of the element in tabbing order.
|
|
189
199
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onClick" v-bind="ptm('root')"
|
|
2
|
+
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onClick" v-bind="ptm('root')">
|
|
3
3
|
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
|
|
4
4
|
<input
|
|
5
5
|
ref="focusInput"
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
:level="0"
|
|
76
76
|
:unstyled="unstyled"
|
|
77
77
|
:pt="ptm('tree')"
|
|
78
|
-
data-pc-section="tree"
|
|
79
78
|
>
|
|
80
79
|
<template v-if="$slots.itemtogglericon" #togglericon="iconProps">
|
|
81
80
|
<slot name="itemtogglericon" :node="iconProps.node" :expanded="iconProps.expanded" :class="iconProps.class" />
|
|
@@ -121,12 +120,16 @@ export default {
|
|
|
121
120
|
emits: ['update:modelValue', 'before-show', 'before-hide', 'change', 'show', 'hide', 'node-select', 'node-unselect', 'node-expand', 'node-collapse', 'focus', 'blur'],
|
|
122
121
|
data() {
|
|
123
122
|
return {
|
|
123
|
+
id: this.$attrs.id,
|
|
124
124
|
focused: false,
|
|
125
125
|
overlayVisible: false,
|
|
126
126
|
expandedKeys: {}
|
|
127
127
|
};
|
|
128
128
|
},
|
|
129
129
|
watch: {
|
|
130
|
+
'$attrs.id': function (newValue) {
|
|
131
|
+
this.id = newValue || UniqueComponentId();
|
|
132
|
+
},
|
|
130
133
|
modelValue: {
|
|
131
134
|
handler: function () {
|
|
132
135
|
if (!this.selfChange) {
|
|
@@ -162,6 +165,7 @@ export default {
|
|
|
162
165
|
}
|
|
163
166
|
},
|
|
164
167
|
mounted() {
|
|
168
|
+
this.id = this.id || UniqueComponentId();
|
|
165
169
|
this.updateTreeState();
|
|
166
170
|
},
|
|
167
171
|
methods: {
|
|
@@ -488,7 +492,7 @@ export default {
|
|
|
488
492
|
return !this.options || this.options.length === 0;
|
|
489
493
|
},
|
|
490
494
|
listId() {
|
|
491
|
-
return
|
|
495
|
+
return this.id + '_list';
|
|
492
496
|
}
|
|
493
497
|
},
|
|
494
498
|
components: {
|
|
@@ -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-treeselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n }\n\n .p-treeselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-treeselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n }\n\n .p-treeselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .p-treeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n\n .p-treeselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n\n .p-treeselect .p-treeselect-panel {\n min-width: 100%;\n }\n\n .p-treeselect-items-wrapper {\n overflow: auto;\n }\n\n .p-fluid .p-treeselect {\n display: flex;\n }\n}\n";
|
|
10
9
|
var inlineStyles = {
|
|
11
10
|
root: function root(_ref) {
|
|
12
11
|
var props = _ref.props;
|
|
@@ -22,7 +21,9 @@ var classes = {
|
|
|
22
21
|
return ['p-treeselect p-component p-inputwrapper', {
|
|
23
22
|
'p-treeselect-chip': props.display === 'chip',
|
|
24
23
|
'p-disabled': props.disabled,
|
|
24
|
+
'p-invalid': props.invalid,
|
|
25
25
|
'p-focus': instance.focused,
|
|
26
|
+
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled',
|
|
26
27
|
'p-inputwrapper-filled': !instance.emptyValue,
|
|
27
28
|
'p-inputwrapper-focus': instance.focused || instance.overlayVisible
|
|
28
29
|
}];
|
|
@@ -41,9 +42,9 @@ var classes = {
|
|
|
41
42
|
trigger: 'p-treeselect-trigger',
|
|
42
43
|
triggerIcon: 'p-treeselect-trigger-icon',
|
|
43
44
|
panel: function panel(_ref4) {
|
|
44
|
-
|
|
45
|
+
_ref4.props;
|
|
46
|
+
var instance = _ref4.instance;
|
|
45
47
|
return ['p-treeselect-panel p-component', {
|
|
46
|
-
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
|
|
47
48
|
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
48
49
|
}];
|
|
49
50
|
},
|
|
@@ -52,7 +53,6 @@ var classes = {
|
|
|
52
53
|
};
|
|
53
54
|
var TreeSelectStyle = BaseStyle__default["default"].extend({
|
|
54
55
|
name: 'treeselect',
|
|
55
|
-
css: css,
|
|
56
56
|
classes: classes,
|
|
57
57
|
inlineStyles: inlineStyles
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var
|
|
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:"treeselect",classes:{root:function(e){var t=e.instance,p=e.props;return["p-treeselect p-component p-inputwrapper",{"p-treeselect-chip":"chip"===p.display,"p-disabled":p.disabled,"p-invalid":p.invalid,"p-focus":t.focused,"p-variant-filled":p.variant?"filled"===p.variant:"filled"===t.$primevue.config.inputStyle,"p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible}]},labelContainer:"p-treeselect-label-container",label:function(e){var t=e.instance,p=e.props;return["p-treeselect-label",{"p-placeholder":t.label===p.placeholder,"p-treeselect-label-empty":!p.placeholder&&t.emptyValue}]},token:"p-treeselect-token",tokenLabel:"p-treeselect-token-label",trigger:"p-treeselect-trigger",triggerIcon:"p-treeselect-trigger-icon",panel:function(e){return["p-treeselect-panel p-component",{"p-ripple-disabled":!1===e.instance.$primevue.config.ripple}]},wrapper:"p-treeselect-items-wrapper",emptyMessage:"p-treeselect-empty-message"},inlineStyles:{root:function(e){return{position:"self"===e.props.appendTo?"relative":void 0}}}});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-treeselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n }\n\n .p-treeselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-treeselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n }\n\n .p-treeselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .p-treeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n\n .p-treeselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n\n .p-treeselect .p-treeselect-panel {\n min-width: 100%;\n }\n\n .p-treeselect-items-wrapper {\n overflow: auto;\n }\n\n .p-fluid .p-treeselect {\n display: flex;\n }\n}\n";
|
|
4
3
|
var inlineStyles = {
|
|
5
4
|
root: function root(_ref) {
|
|
6
5
|
var props = _ref.props;
|
|
@@ -16,7 +15,9 @@ var classes = {
|
|
|
16
15
|
return ['p-treeselect p-component p-inputwrapper', {
|
|
17
16
|
'p-treeselect-chip': props.display === 'chip',
|
|
18
17
|
'p-disabled': props.disabled,
|
|
18
|
+
'p-invalid': props.invalid,
|
|
19
19
|
'p-focus': instance.focused,
|
|
20
|
+
'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled',
|
|
20
21
|
'p-inputwrapper-filled': !instance.emptyValue,
|
|
21
22
|
'p-inputwrapper-focus': instance.focused || instance.overlayVisible
|
|
22
23
|
}];
|
|
@@ -35,9 +36,9 @@ var classes = {
|
|
|
35
36
|
trigger: 'p-treeselect-trigger',
|
|
36
37
|
triggerIcon: 'p-treeselect-trigger-icon',
|
|
37
38
|
panel: function panel(_ref4) {
|
|
38
|
-
|
|
39
|
+
_ref4.props;
|
|
40
|
+
var instance = _ref4.instance;
|
|
39
41
|
return ['p-treeselect-panel p-component', {
|
|
40
|
-
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
|
|
41
42
|
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
42
43
|
}];
|
|
43
44
|
},
|
|
@@ -46,7 +47,6 @@ var classes = {
|
|
|
46
47
|
};
|
|
47
48
|
var TreeSelectStyle = BaseStyle.extend({
|
|
48
49
|
name: 'treeselect',
|
|
49
|
-
css: css,
|
|
50
50
|
classes: classes,
|
|
51
51
|
inlineStyles: inlineStyles
|
|
52
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/base/style";var
|
|
1
|
+
import e from"primevue/base/style";var t=e.extend({name:"treeselect",classes:{root:function(e){var t=e.instance,p=e.props;return["p-treeselect p-component p-inputwrapper",{"p-treeselect-chip":"chip"===p.display,"p-disabled":p.disabled,"p-invalid":p.invalid,"p-focus":t.focused,"p-variant-filled":p.variant?"filled"===p.variant:"filled"===t.$primevue.config.inputStyle,"p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible}]},labelContainer:"p-treeselect-label-container",label:function(e){var t=e.instance,p=e.props;return["p-treeselect-label",{"p-placeholder":t.label===p.placeholder,"p-treeselect-label-empty":!p.placeholder&&t.emptyValue}]},token:"p-treeselect-token",tokenLabel:"p-treeselect-token-label",trigger:"p-treeselect-trigger",triggerIcon:"p-treeselect-trigger-icon",panel:function(e){return["p-treeselect-panel p-component",{"p-ripple-disabled":!1===e.instance.$primevue.config.ripple}]},wrapper:"p-treeselect-items-wrapper",emptyMessage:"p-treeselect-empty-message"},inlineStyles:{root:function(e){return{position:"self"===e.props.appendTo?"relative":void 0}}}});export{t as default};
|