primevue 3.48.1 → 3.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.vue +2 -1
- package/accordion/accordion.cjs.js +2 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +2 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -1
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.vue +2 -1
- package/accordiontab/accordiontab.cjs.js +2 -1
- package/accordiontab/accordiontab.cjs.min.js +1 -1
- package/accordiontab/accordiontab.esm.js +2 -1
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +2 -1
- package/accordiontab/accordiontab.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +2 -2
- package/autocomplete/AutoComplete.vue +4 -1
- package/autocomplete/autocomplete.cjs.js +6 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +6 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +6 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.vue +2 -1
- package/avatar/avatar.cjs.js +2 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +37 -5
- package/avatargroup/AvatarGroup.vue +3 -2
- package/avatargroup/avatargroup.cjs.js +3 -2
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -2
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +3 -2
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/Badge.d.ts +2 -2
- package/badge/Badge.vue +3 -2
- package/badge/badge.cjs.js +3 -2
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -2
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +3 -2
- package/badge/badge.min.js +1 -1
- package/basecomponent/BaseComponent.vue +36 -1
- package/basecomponent/basecomponent.cjs.js +58 -1
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +58 -1
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +58 -1
- package/basecomponent/basecomponent.min.js +1 -1
- package/blockui/BlockUI.vue +2 -1
- package/blockui/blockui.cjs.js +2 -1
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +2 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +2 -1
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.vue +4 -3
- package/breadcrumb/breadcrumb.cjs.js +2 -1
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +2 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +2 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +3 -3
- package/button/Button.vue +5 -2
- package/button/button.cjs.js +5 -3
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +5 -3
- package/button/button.esm.min.js +1 -1
- package/button/button.js +5 -3
- package/button/button.min.js +1 -1
- package/buttongroup/BaseButtonGroup.vue +15 -0
- package/buttongroup/ButtonGroup.d.ts +113 -0
- package/buttongroup/ButtonGroup.vue +15 -0
- package/buttongroup/buttongroup.cjs.js +38 -0
- package/buttongroup/buttongroup.cjs.min.js +1 -0
- package/buttongroup/buttongroup.esm.js +31 -0
- package/buttongroup/buttongroup.esm.min.js +1 -0
- package/buttongroup/buttongroup.js +38 -0
- package/buttongroup/buttongroup.min.js +1 -0
- package/buttongroup/package.json +9 -0
- package/buttongroup/style/ButtonGroupStyle.d.ts +3 -0
- package/buttongroup/style/buttongroupstyle.cjs.js +17 -0
- package/buttongroup/style/buttongroupstyle.cjs.min.js +1 -0
- package/buttongroup/style/buttongroupstyle.esm.js +11 -0
- package/buttongroup/style/buttongroupstyle.esm.min.js +1 -0
- package/buttongroup/style/buttongroupstyle.js +20 -0
- package/buttongroup/style/buttongroupstyle.min.js +1 -0
- package/buttongroup/style/package.json +6 -0
- package/calendar/Calendar.d.ts +2 -2
- package/calendar/Calendar.vue +9 -3
- package/calendar/calendar.cjs.js +10 -4
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +10 -4
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +10 -4
- package/calendar/calendar.min.js +1 -1
- package/calendar/style/calendarstyle.cjs.js +2 -2
- package/calendar/style/calendarstyle.cjs.min.js +1 -1
- package/calendar/style/calendarstyle.esm.js +2 -2
- package/calendar/style/calendarstyle.esm.min.js +1 -1
- package/calendar/style/calendarstyle.js +2 -2
- package/calendar/style/calendarstyle.min.js +1 -1
- package/card/Card.d.ts +23 -1
- package/card/Card.vue +3 -2
- package/card/card.cjs.js +3 -2
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +3 -2
- package/card/card.esm.min.js +1 -1
- package/card/card.js +3 -2
- package/card/card.min.js +1 -1
- package/carousel/Carousel.vue +2 -1
- package/carousel/carousel.cjs.js +2 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +2 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +2 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +2 -2
- package/cascadeselect/CascadeSelect.vue +18 -5
- package/cascadeselect/cascadeselect.cjs.js +32 -12
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +32 -12
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +32 -12
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.vue +2 -1
- package/chart/chart.cjs.js +2 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +2 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +2 -1
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.vue +5 -1
- package/checkbox/checkbox.cjs.js +5 -2
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +5 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +5 -2
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.vue +2 -1
- package/chip/chip.cjs.js +2 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +2 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +2 -1
- package/chip/chip.min.js +1 -1
- package/chips/Chips.vue +3 -1
- package/chips/chips.cjs.js +4 -2
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +4 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +4 -2
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +2 -2
- package/colorpicker/ColorPicker.vue +3 -2
- package/colorpicker/colorpicker.cjs.js +3 -2
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +3 -2
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +3 -2
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.vue +1 -0
- package/column/column.cjs.js +1 -0
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +1 -0
- package/column/column.esm.min.js +1 -1
- package/column/column.js +1 -0
- package/column/column.min.js +1 -1
- package/columngroup/ColumnGroup.vue +1 -0
- package/columngroup/columngroup.cjs.js +1 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +1 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +1 -0
- package/columngroup/columngroup.min.js +1 -1
- package/confirmpopup/ConfirmPopup.vue +1 -1
- package/confirmpopup/confirmpopup.cjs.js +1 -7
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +1 -7
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +1 -7
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +2 -2
- package/contextmenu/ContextMenu.vue +7 -1
- package/contextmenu/ContextMenuSub.vue +13 -3
- package/contextmenu/contextmenu.cjs.js +25 -12
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +25 -12
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +25 -12
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +198 -82
- package/core/core.min.js +23 -21
- package/datatable/BaseDataTable.vue +4 -4
- package/datatable/BodyCell.vue +0 -3
- package/datatable/DataTable.d.ts +6 -6
- package/datatable/DataTable.vue +5 -3
- package/datatable/datatable.cjs.js +8 -10
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +8 -10
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +8 -10
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.vue +2 -1
- package/dataview/dataview.cjs.js +2 -1
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +2 -1
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +2 -1
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +2 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +2 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +2 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +2 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.cjs.js +1 -1
- package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.cjs.min.js +1 -1
- package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.esm.js +1 -1
- package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.esm.min.js +1 -1
- package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.js +1 -1
- package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.min.js +1 -1
- package/deferredcontent/DeferredContent.vue +2 -1
- package/deferredcontent/deferredcontent.cjs.js +2 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +2 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +2 -1
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/Dialog.d.ts +2 -2
- package/dialog/Dialog.vue +2 -2
- package/dialog/dialog.cjs.js +2 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +2 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +2 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.vue +3 -2
- package/divider/divider.cjs.js +3 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +3 -2
- package/divider/divider.min.js +1 -1
- package/dock/Dock.vue +2 -1
- package/dock/dock.cjs.js +2 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +2 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +2 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +3 -3
- package/dropdown/Dropdown.vue +4 -1
- package/dropdown/dropdown.cjs.js +5 -2
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +5 -2
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +5 -2
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.vue +2 -1
- package/editor/editor.cjs.js +2 -1
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +2 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -1
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.vue +2 -1
- package/fieldset/fieldset.cjs.js +2 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +2 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +2 -1
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.vue +8 -5
- package/fileupload/fileupload.cjs.js +9 -8
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +9 -8
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +9 -8
- package/fileupload/fileupload.min.js +1 -1
- package/floatlabel/FloatLabel.vue +3 -2
- package/floatlabel/floatlabel.cjs.js +3 -2
- package/floatlabel/floatlabel.cjs.min.js +1 -1
- package/floatlabel/floatlabel.esm.js +3 -2
- package/floatlabel/floatlabel.esm.min.js +1 -1
- package/floatlabel/floatlabel.js +3 -2
- package/floatlabel/floatlabel.min.js +1 -1
- package/galleria/GalleriaContent.vue +1 -1
- package/galleria/GalleriaThumbnails.vue +12 -3
- package/galleria/galleria.cjs.js +5 -5
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +5 -5
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +5 -5
- package/galleria/galleria.min.js +1 -1
- package/iconfield/IconField.vue +4 -3
- package/iconfield/iconfield.cjs.js +3 -2
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +3 -2
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +3 -2
- package/iconfield/iconfield.min.js +1 -1
- package/iconfield/style/iconfieldstyle.cjs.js +3 -3
- package/iconfield/style/iconfieldstyle.cjs.min.js +1 -1
- package/iconfield/style/iconfieldstyle.esm.js +3 -3
- package/iconfield/style/iconfieldstyle.esm.min.js +1 -1
- package/iconfield/style/iconfieldstyle.js +3 -3
- package/iconfield/style/iconfieldstyle.min.js +1 -1
- package/image/Image.vue +1 -1
- package/image/image.cjs.js +1 -1
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +1 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.js +1 -1
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +2 -2
- package/inlinemessage/InlineMessage.vue +2 -1
- package/inlinemessage/inlinemessage.cjs.js +2 -1
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +2 -1
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +2 -1
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/Inplace.vue +2 -1
- package/inplace/inplace.cjs.js +2 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +2 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -1
- package/inplace/inplace.min.js +1 -1
- package/inputgroup/InputGroup.vue +3 -2
- package/inputgroup/inputgroup.cjs.js +3 -2
- package/inputgroup/inputgroup.cjs.min.js +1 -1
- package/inputgroup/inputgroup.esm.js +3 -2
- package/inputgroup/inputgroup.esm.min.js +1 -1
- package/inputgroup/inputgroup.js +3 -2
- package/inputgroup/inputgroup.min.js +1 -1
- package/inputgroupaddon/InputGroupAddon.vue +3 -2
- package/inputgroupaddon/inputgroupaddon.cjs.js +3 -2
- package/inputgroupaddon/inputgroupaddon.cjs.min.js +1 -1
- package/inputgroupaddon/inputgroupaddon.esm.js +3 -2
- package/inputgroupaddon/inputgroupaddon.esm.min.js +1 -1
- package/inputgroupaddon/inputgroupaddon.js +3 -2
- package/inputgroupaddon/inputgroupaddon.min.js +1 -1
- package/inputicon/BaseInputIcon.vue +3 -0
- package/inputicon/InputIcon.vue +10 -2
- package/inputicon/inputicon.cjs.js +13 -2
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +14 -3
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +13 -2
- package/inputicon/inputicon.min.js +1 -1
- package/inputicon/style/inputiconstyle.cjs.js +13 -1
- package/inputicon/style/inputiconstyle.cjs.min.js +1 -1
- package/inputicon/style/inputiconstyle.esm.js +9 -1
- package/inputicon/style/inputiconstyle.esm.min.js +1 -1
- package/inputicon/style/inputiconstyle.js +15 -5
- package/inputicon/style/inputiconstyle.min.js +1 -1
- package/inputmask/InputMask.vue +2 -1
- package/inputmask/inputmask.cjs.js +4 -2
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +4 -2
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +4 -2
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.vue +3 -1
- package/inputnumber/inputnumber.cjs.js +4 -2
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +4 -2
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +4 -2
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/BaseInputOtp.vue +53 -0
- package/inputotp/InputOtp.d.ts +275 -0
- package/inputotp/InputOtp.vue +201 -0
- package/inputotp/inputotp.cjs.js +265 -0
- package/inputotp/inputotp.cjs.min.js +1 -0
- package/inputotp/inputotp.esm.js +257 -0
- package/inputotp/inputotp.esm.min.js +1 -0
- package/inputotp/inputotp.js +264 -0
- package/inputotp/inputotp.min.js +1 -0
- package/inputotp/package.json +9 -0
- package/inputotp/style/InputOtpStyle.d.ts +3 -0
- package/inputotp/style/inputotpstyle.cjs.js +18 -0
- package/inputotp/style/inputotpstyle.cjs.min.js +1 -0
- package/inputotp/style/inputotpstyle.esm.js +12 -0
- package/inputotp/style/inputotpstyle.esm.min.js +1 -0
- package/inputotp/style/inputotpstyle.js +21 -0
- package/inputotp/style/inputotpstyle.min.js +1 -0
- package/inputotp/style/package.json +6 -0
- package/inputswitch/InputSwitch.d.ts +0 -11
- package/inputswitch/InputSwitch.vue +5 -1
- package/inputswitch/inputswitch.cjs.js +5 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +5 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +5 -2
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.vue +5 -2
- package/inputtext/inputtext.cjs.js +5 -2
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +5 -2
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +5 -2
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.vue +2 -1
- package/knob/knob.cjs.js +2 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +2 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +2 -1
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.d.ts +2 -2
- package/listbox/Listbox.vue +2 -3
- package/listbox/listbox.cjs.js +2 -2
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +2 -2
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +2 -2
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.vue +2 -1
- package/megamenu/MegaMenuSub.vue +1 -1
- package/megamenu/megamenu.cjs.js +3 -2
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +3 -2
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +3 -2
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +2 -2
- package/menu/Menu.vue +18 -11
- package/menu/Menuitem.vue +6 -3
- package/menu/menu.cjs.js +23 -18
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +23 -18
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +23 -18
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +19 -6
- package/menubar/MenubarSub.vue +7 -3
- package/menubar/menubar.cjs.js +41 -18
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +41 -18
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +41 -18
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +2 -2
- package/message/Message.vue +2 -1
- package/message/message.cjs.js +2 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +2 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -1
- package/message/message.min.js +1 -1
- package/metergroup/MeterGroup.vue +3 -2
- package/metergroup/metergroup.cjs.js +5 -3
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +5 -3
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +5 -3
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +3 -3
- package/multiselect/MultiSelect.vue +3 -1
- package/multiselect/multiselect.cjs.js +4 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +4 -2
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +4 -2
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.vue +2 -1
- package/orderlist/orderlist.cjs.js +2 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +2 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +2 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.vue +2 -1
- package/organizationchart/organizationchart.cjs.js +2 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +2 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +2 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +2 -2
- package/overlaypanel/OverlayPanel.vue +1 -1
- package/overlaypanel/overlaypanel.cjs.js +1 -7
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/Paginator.vue +2 -1
- package/paginator/paginator.cjs.js +2 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +2 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -1
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.vue +2 -1
- package/panel/panel.cjs.js +2 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +2 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +2 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.vue +2 -1
- package/panelmenu/PanelMenuList.vue +6 -0
- package/panelmenu/PanelMenuSub.vue +7 -3
- package/panelmenu/panelmenu.cjs.js +24 -5
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +24 -5
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +24 -5
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +2 -2
- package/password/Password.vue +10 -4
- package/password/password.cjs.js +9 -4
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +9 -4
- package/password/password.esm.min.js +1 -1
- package/password/password.js +9 -4
- package/password/password.min.js +1 -1
- package/password/style/passwordstyle.cjs.js +4 -3
- package/password/style/passwordstyle.cjs.min.js +1 -1
- package/password/style/passwordstyle.esm.js +4 -3
- package/password/style/passwordstyle.esm.min.js +1 -1
- package/password/style/passwordstyle.js +4 -3
- package/password/style/passwordstyle.min.js +1 -1
- package/picklist/PickList.vue +2 -1
- package/picklist/picklist.cjs.js +2 -1
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +2 -1
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +2 -1
- package/picklist/picklist.min.js +1 -1
- package/portal/Portal.d.ts +2 -2
- package/progressbar/ProgressBar.vue +2 -1
- package/progressbar/progressbar.cjs.js +2 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +2 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +2 -1
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.vue +2 -1
- package/progressspinner/progressspinner.cjs.js +2 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +2 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +2 -1
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/RadioButton.vue +5 -1
- package/radiobutton/radiobutton.cjs.js +5 -2
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +5 -2
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +5 -2
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.vue +2 -1
- package/rating/rating.cjs.js +2 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +2 -1
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +2 -1
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +335 -103
- package/resources/themes/arya-green/theme.css +335 -103
- package/resources/themes/arya-orange/theme.css +335 -103
- package/resources/themes/arya-purple/theme.css +335 -103
- package/resources/themes/aura-dark-amber/theme.css +363 -113
- package/resources/themes/aura-dark-blue/theme.css +363 -113
- package/resources/themes/aura-dark-cyan/theme.css +363 -113
- package/resources/themes/aura-dark-green/theme.css +363 -113
- package/resources/themes/aura-dark-indigo/theme.css +363 -113
- package/resources/themes/aura-dark-lime/theme.css +363 -113
- package/resources/themes/aura-dark-noir/theme.css +363 -113
- package/resources/themes/aura-dark-pink/theme.css +363 -113
- package/resources/themes/aura-dark-purple/theme.css +363 -113
- package/resources/themes/aura-dark-teal/theme.css +363 -113
- package/resources/themes/aura-light-amber/theme.css +363 -113
- package/resources/themes/aura-light-blue/theme.css +363 -113
- package/resources/themes/aura-light-cyan/theme.css +363 -113
- package/resources/themes/aura-light-green/theme.css +363 -113
- package/resources/themes/aura-light-indigo/theme.css +363 -113
- package/resources/themes/aura-light-lime/theme.css +363 -113
- package/resources/themes/aura-light-noir/theme.css +363 -113
- package/resources/themes/aura-light-pink/theme.css +363 -113
- package/resources/themes/aura-light-purple/theme.css +363 -113
- package/resources/themes/aura-light-teal/theme.css +363 -113
- package/resources/themes/bootstrap4-dark-blue/theme.css +345 -113
- package/resources/themes/bootstrap4-dark-purple/theme.css +345 -113
- package/resources/themes/bootstrap4-light-blue/theme.css +345 -113
- package/resources/themes/bootstrap4-light-purple/theme.css +345 -113
- package/resources/themes/fluent-light/theme.css +329 -103
- package/resources/themes/lara-dark-amber/theme.css +354 -113
- package/resources/themes/lara-dark-blue/theme.css +354 -113
- package/resources/themes/lara-dark-cyan/theme.css +354 -113
- package/resources/themes/lara-dark-green/theme.css +354 -113
- package/resources/themes/lara-dark-indigo/theme.css +354 -113
- package/resources/themes/lara-dark-pink/theme.css +354 -113
- package/resources/themes/lara-dark-purple/theme.css +354 -113
- package/resources/themes/lara-dark-teal/theme.css +354 -113
- package/resources/themes/lara-light-amber/theme.css +350 -113
- package/resources/themes/lara-light-blue/theme.css +350 -113
- package/resources/themes/lara-light-cyan/theme.css +350 -113
- package/resources/themes/lara-light-green/theme.css +350 -113
- package/resources/themes/lara-light-indigo/theme.css +350 -113
- package/resources/themes/lara-light-pink/theme.css +350 -113
- package/resources/themes/lara-light-purple/theme.css +350 -113
- package/resources/themes/lara-light-teal/theme.css +350 -113
- package/resources/themes/luna-amber/theme.css +335 -103
- package/resources/themes/luna-blue/theme.css +335 -103
- package/resources/themes/luna-green/theme.css +335 -103
- package/resources/themes/luna-pink/theme.css +335 -103
- package/resources/themes/md-dark-deeppurple/theme.css +420 -169
- package/resources/themes/md-dark-indigo/theme.css +420 -169
- package/resources/themes/md-light-deeppurple/theme.css +420 -169
- package/resources/themes/md-light-indigo/theme.css +420 -169
- package/resources/themes/mdc-dark-deeppurple/theme.css +420 -169
- package/resources/themes/mdc-dark-indigo/theme.css +420 -169
- package/resources/themes/mdc-light-deeppurple/theme.css +420 -169
- package/resources/themes/mdc-light-indigo/theme.css +420 -169
- package/resources/themes/mira/theme.css +335 -103
- package/resources/themes/nano/theme.css +335 -103
- package/resources/themes/nova/theme.css +335 -103
- package/resources/themes/nova-accent/theme.css +335 -103
- package/resources/themes/nova-alt/theme.css +335 -103
- package/resources/themes/nova-vue/theme.css +335 -103
- package/resources/themes/rhea/theme.css +335 -103
- package/resources/themes/saga-blue/theme.css +335 -103
- package/resources/themes/saga-green/theme.css +335 -103
- package/resources/themes/saga-orange/theme.css +335 -103
- package/resources/themes/saga-purple/theme.css +335 -103
- package/resources/themes/soho-dark/theme.css +345 -113
- package/resources/themes/soho-light/theme.css +345 -113
- package/resources/themes/tailwind-light/theme.css +335 -103
- package/resources/themes/vela-blue/theme.css +335 -103
- package/resources/themes/vela-green/theme.css +335 -103
- package/resources/themes/vela-orange/theme.css +335 -103
- package/resources/themes/vela-purple/theme.css +335 -103
- package/resources/themes/viva-dark/theme.css +346 -114
- package/resources/themes/viva-light/theme.css +346 -114
- package/scrollpanel/ScrollPanel.vue +2 -1
- package/scrollpanel/scrollpanel.cjs.js +2 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +2 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +2 -1
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.vue +2 -1
- package/scrolltop/scrolltop.cjs.js +2 -1
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +2 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +2 -1
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/SelectButton.vue +44 -17
- package/selectbutton/selectbutton.cjs.js +41 -18
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +41 -18
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +41 -18
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectbutton/style/selectbuttonstyle.cjs.js +1 -1
- package/selectbutton/style/selectbuttonstyle.cjs.min.js +1 -1
- package/selectbutton/style/selectbuttonstyle.esm.js +1 -1
- package/selectbutton/style/selectbuttonstyle.esm.min.js +1 -1
- package/selectbutton/style/selectbuttonstyle.js +1 -1
- package/selectbutton/style/selectbuttonstyle.min.js +1 -1
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +1 -7
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +1 -7
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +1 -7
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.vue +2 -1
- package/skeleton/skeleton.cjs.js +2 -1
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +2 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +2 -1
- package/skeleton/skeleton.min.js +1 -1
- package/slider/Slider.vue +2 -1
- package/slider/slider.cjs.js +2 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +2 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +2 -1
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.vue +2 -1
- package/speeddial/speeddial.cjs.js +2 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +2 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +2 -1
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +3 -3
- package/splitbutton/SplitButton.vue +2 -1
- package/splitbutton/splitbutton.cjs.js +4 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.vue +9 -8
- package/splitter/splitter.cjs.js +10 -9
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +10 -9
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +10 -9
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.vue +10 -2
- package/splitterpanel/splitterpanel.cjs.js +10 -2
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +10 -2
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +10 -2
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/stepper/BaseStepper.vue +29 -0
- package/stepper/Stepper.d.ts +197 -0
- package/stepper/Stepper.vue +267 -0
- package/stepper/StepperContent.vue +47 -0
- package/stepper/StepperHeader.vue +41 -0
- package/stepper/StepperSeparator.vue +23 -0
- package/stepper/package.json +9 -0
- package/stepper/stepper.cjs.js +489 -0
- package/stepper/stepper.cjs.min.js +1 -0
- package/stepper/stepper.esm.js +482 -0
- package/stepper/stepper.esm.min.js +1 -0
- package/stepper/stepper.js +488 -0
- package/stepper/stepper.min.js +1 -0
- package/stepper/style/StepperStyle.d.ts +3 -0
- package/stepper/style/package.json +6 -0
- package/stepper/style/stepperstyle.cjs.js +56 -0
- package/stepper/style/stepperstyle.cjs.min.js +1 -0
- package/stepper/style/stepperstyle.esm.js +50 -0
- package/stepper/style/stepperstyle.esm.min.js +1 -0
- package/stepper/style/stepperstyle.js +59 -0
- package/stepper/style/stepperstyle.min.js +1 -0
- package/stepperpanel/BaseStepperPanel.vue +18 -0
- package/stepperpanel/StepperPanel.d.ts +286 -0
- package/stepperpanel/StepperPanel.vue +12 -0
- package/stepperpanel/package.json +9 -0
- package/stepperpanel/stepperpanel.cjs.js +37 -0
- package/stepperpanel/stepperpanel.cjs.min.js +1 -0
- package/stepperpanel/stepperpanel.esm.js +30 -0
- package/stepperpanel/stepperpanel.esm.min.js +1 -0
- package/stepperpanel/stepperpanel.js +37 -0
- package/stepperpanel/stepperpanel.min.js +1 -0
- package/stepperpanel/style/StepperPanelStyle.d.ts +3 -0
- package/stepperpanel/style/package.json +6 -0
- package/stepperpanel/style/stepperpanelstyle.cjs.js +5 -0
- package/stepperpanel/style/stepperpanelstyle.cjs.min.js +1 -0
- package/stepperpanel/style/stepperpanelstyle.esm.js +3 -0
- package/stepperpanel/style/stepperpanelstyle.esm.min.js +1 -0
- package/stepperpanel/style/stepperpanelstyle.js +10 -0
- package/stepperpanel/style/stepperpanelstyle.min.js +1 -0
- package/steps/Steps.vue +2 -1
- package/steps/steps.cjs.js +2 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +2 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +2 -1
- package/steps/steps.min.js +1 -1
- package/styleclass/StyleClass.d.ts +2 -2
- package/tabmenu/TabMenu.vue +3 -2
- package/tabmenu/tabmenu.cjs.js +3 -2
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +3 -2
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +3 -2
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +1 -1
- package/tabview/TabView.d.ts +31 -1
- package/tabview/TabView.vue +4 -3
- package/tabview/tabview.cjs.js +4 -3
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +4 -3
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +4 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +2 -2
- package/tag/Tag.vue +3 -2
- package/tag/tag.cjs.js +3 -2
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -2
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +3 -2
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.vue +2 -1
- package/terminal/terminal.cjs.js +2 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +2 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +2 -1
- package/terminal/terminal.min.js +1 -1
- package/textarea/Textarea.vue +2 -1
- package/textarea/textarea.cjs.js +4 -2
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +4 -2
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +4 -2
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +2 -2
- package/tieredmenu/TieredMenu.vue +11 -4
- package/tieredmenu/TieredMenuSub.vue +13 -3
- package/tieredmenu/tieredmenu.cjs.js +31 -22
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +31 -22
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +31 -22
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.vue +2 -1
- package/timeline/timeline.cjs.js +2 -1
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +2 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +2 -1
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.vue +1 -1
- package/toast/toast.cjs.js +1 -1
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +1 -1
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.vue +5 -1
- package/togglebutton/togglebutton.cjs.js +5 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +5 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +5 -2
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.vue +3 -2
- package/toolbar/toolbar.cjs.js +3 -2
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -2
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +3 -2
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +6 -7
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +6 -7
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +6 -7
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +2 -2
- package/tree/Tree.vue +2 -1
- package/tree/tree.cjs.js +2 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +2 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +2 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +2 -2
- package/treeselect/TreeSelect.vue +2 -1
- package/treeselect/treeselect.cjs.js +2 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +2 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +2 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +4 -4
- package/treetable/TreeTable.vue +2 -1
- package/treetable/treetable.cjs.js +2 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +2 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +2 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.vue +5 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +5 -2
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +5 -2
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +5 -2
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +2 -0
- package/vetur-attributes.json +36 -0
- package/vetur-tags.json +14 -0
- package/virtualscroller/VirtualScroller.vue +9 -6
- package/virtualscroller/virtualscroller.cjs.js +8 -6
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +8 -6
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +8 -6
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +119 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"primevue/avatargroup/style";import t from"primevue/basecomponent";import{openBlock as e,createElementBlock as o,mergeProps as a,renderSlot as n}from"vue";var s={name:"AvatarGroup",extends:{name:"BaseAvatarGroup",extends:t,style:r,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};s.render=function(r,t,s,i,p,m){return e(),o("div",a({class:r.cx("root")},r.ptmi("root")),[n(r.$slots,"default")],16)};export{s as default};
|
|
@@ -20,13 +20,14 @@ this.primevue.avatargroup = (function (AvatarGroupStyle, BaseComponent, vue) {
|
|
|
20
20
|
|
|
21
21
|
var script = {
|
|
22
22
|
name: 'AvatarGroup',
|
|
23
|
-
"extends": script$1
|
|
23
|
+
"extends": script$1,
|
|
24
|
+
inheritAttrs: false
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27
28
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
28
29
|
"class": _ctx.cx('root')
|
|
29
|
-
}, _ctx.
|
|
30
|
+
}, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "default")], 16);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.avatargroup=function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),u={name:"AvatarGroup",extends:{name:"BaseAvatarGroup",extends:n(t).default,style:a.default,provide:function(){return{$parentInstance:this}}}};return u.render=function(e,t,n,a,u,o){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root")},e.
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.avatargroup=function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),u={name:"AvatarGroup",extends:{name:"BaseAvatarGroup",extends:n(t).default,style:a.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};return u.render=function(e,t,n,a,u,o){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root")},e.ptmi("root")),[r.renderSlot(e.$slots,"default")],16)},u}(primevue.avatargroup.style,primevue.basecomponent,Vue);
|
package/badge/Badge.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
12
|
import { PassThroughOptions } from '../passthrough';
|
|
13
|
-
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
|
13
|
+
import { ClassComponent, GlobalComponentConstructor, PassThrough, HintedString } from '../ts-helpers';
|
|
14
14
|
|
|
15
15
|
export declare type BadgePassThroughOptionType<T = any> = BadgePassThroughAttributes | ((options: BadgePassThroughMethodOptions<T>) => BadgePassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
@@ -70,7 +70,7 @@ export interface BadgeProps {
|
|
|
70
70
|
/**
|
|
71
71
|
* Severity type of the badge.
|
|
72
72
|
*/
|
|
73
|
-
severity?: 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast' |
|
|
73
|
+
severity?: HintedString<'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'> | null | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* Size of the badge, valid options are 'large' and 'xlarge'.
|
|
76
76
|
*/
|
package/badge/Badge.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span :class="cx('root')" v-bind="
|
|
2
|
+
<span :class="cx('root')" v-bind="ptmi('root')">
|
|
3
3
|
<slot>{{ value }}</slot>
|
|
4
4
|
</span>
|
|
5
5
|
</template>
|
|
@@ -9,6 +9,7 @@ import BaseBadge from './BaseBadge.vue';
|
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
name: 'Badge',
|
|
12
|
-
extends: BaseBadge
|
|
12
|
+
extends: BaseBadge,
|
|
13
|
+
inheritAttrs: false
|
|
13
14
|
};
|
|
14
15
|
</script>
|
package/badge/badge.cjs.js
CHANGED
|
@@ -36,13 +36,14 @@ var script$1 = {
|
|
|
36
36
|
|
|
37
37
|
var script = {
|
|
38
38
|
name: 'Badge',
|
|
39
|
-
"extends": script$1
|
|
39
|
+
"extends": script$1,
|
|
40
|
+
inheritAttrs: false
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43
44
|
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
44
45
|
"class": _ctx.cx('root')
|
|
45
|
-
}, _ctx.
|
|
46
|
+
}, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "default", {}, function () {
|
|
46
47
|
return [vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)];
|
|
47
48
|
})], 16);
|
|
48
49
|
}
|
package/badge/badge.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/badge/style"),t=require("primevue/basecomponent"),r=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e),a={name:"Badge",extends:{name:"BaseBadge",extends:n(t).default,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:u.default,provide:function(){return{$parentInstance:this}}}};a.render=function(e,t,n,u,a,l){return r.openBlock(),r.createElementBlock("span",r.mergeProps({class:e.cx("root")},e.
|
|
1
|
+
"use strict";var e=require("primevue/badge/style"),t=require("primevue/basecomponent"),r=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e),a={name:"Badge",extends:{name:"BaseBadge",extends:n(t).default,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:u.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};a.render=function(e,t,n,u,a,l){return r.openBlock(),r.createElementBlock("span",r.mergeProps({class:e.cx("root")},e.ptmi("root")),[r.renderSlot(e.$slots,"default",{},(function(){return[r.createTextVNode(r.toDisplayString(e.value),1)]}))],16)},module.exports=a;
|
package/badge/badge.esm.js
CHANGED
|
@@ -29,13 +29,14 @@ var script$1 = {
|
|
|
29
29
|
|
|
30
30
|
var script = {
|
|
31
31
|
name: 'Badge',
|
|
32
|
-
"extends": script$1
|
|
32
|
+
"extends": script$1,
|
|
33
|
+
inheritAttrs: false
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36
37
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
37
38
|
"class": _ctx.cx('root')
|
|
38
|
-
}, _ctx.
|
|
39
|
+
}, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "default", {}, function () {
|
|
39
40
|
return [createTextVNode(toDisplayString(_ctx.value), 1)];
|
|
40
41
|
})], 16);
|
|
41
42
|
}
|
package/badge/badge.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/badge/style";import t from"primevue/basecomponent";import{openBlock as r,createElementBlock as n,mergeProps as a,renderSlot as u,createTextVNode as o,toDisplayString as
|
|
1
|
+
import e from"primevue/badge/style";import t from"primevue/basecomponent";import{openBlock as r,createElementBlock as n,mergeProps as a,renderSlot as u,createTextVNode as o,toDisplayString as i}from"vue";var s={name:"Badge",extends:{name:"BaseBadge",extends:t,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:e,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};s.render=function(e,t,s,l,p,m){return r(),n("span",a({class:e.cx("root")},e.ptmi("root")),[u(e.$slots,"default",{},(function(){return[o(i(e.value),1)]}))],16)};export{s as default};
|
package/badge/badge.js
CHANGED
|
@@ -34,13 +34,14 @@ this.primevue.badge = (function (BadgeStyle, BaseComponent, vue) {
|
|
|
34
34
|
|
|
35
35
|
var script = {
|
|
36
36
|
name: 'Badge',
|
|
37
|
-
"extends": script$1
|
|
37
|
+
"extends": script$1,
|
|
38
|
+
inheritAttrs: false
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41
42
|
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
42
43
|
"class": _ctx.cx('root')
|
|
43
|
-
}, _ctx.
|
|
44
|
+
}, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "default", {}, function () {
|
|
44
45
|
return [vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)];
|
|
45
46
|
})], 16);
|
|
46
47
|
}
|
package/badge/badge.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.badge=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(e),
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.badge=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(e),i={name:"Badge",extends:{name:"BaseBadge",extends:r(t).default,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:u.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1};return i.render=function(e,t,r,u,i,a){return n.openBlock(),n.createElementBlock("span",n.mergeProps({class:e.cx("root")},e.ptmi("root")),[n.renderSlot(e.$slots,"default",{},(function(){return[n.createTextVNode(n.toDisplayString(e.value),1)]}))],16)},i}(primevue.badge.style,primevue.basecomponent,Vue);
|
|
@@ -120,11 +120,17 @@ export default {
|
|
|
120
120
|
const searchOut = /./g.test(key) && !!params[key.split('.')[0]];
|
|
121
121
|
const { mergeSections = true, mergeProps: useMergeProps = false } = this._getPropValue('ptOptions') || this.$config?.ptOptions || {};
|
|
122
122
|
const global = searchInDefaultPT ? (searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params)) : undefined;
|
|
123
|
-
const self = searchOut ? undefined : this.
|
|
123
|
+
const self = searchOut ? undefined : this._getPTSelf(obj, this._getPTClassValue, key, { ...params, global: global || {} });
|
|
124
124
|
const datasets = this._getPTDatasets(key);
|
|
125
125
|
|
|
126
126
|
return mergeSections || (!mergeSections && self) ? (useMergeProps ? this._mergeProps(useMergeProps, global, self, datasets) : { ...global, ...self, ...datasets }) : { ...self, ...datasets };
|
|
127
127
|
},
|
|
128
|
+
_getPTSelf(obj = {}, ...args) {
|
|
129
|
+
return mergeProps(
|
|
130
|
+
this._usePT(this._getPT(obj, this.$name), ...args), // Exp; <component :pt="{}"
|
|
131
|
+
this._usePT(this.$_attrsPT, ...args) // Exp; <component :pt:[passthrough_key]:[attribute]="{value}" or <component :pt:[passthrough_key]="() =>{value}"
|
|
132
|
+
);
|
|
133
|
+
},
|
|
128
134
|
_getPTDatasets(key = '') {
|
|
129
135
|
const datasetPrefix = 'data-pc-';
|
|
130
136
|
const isExtended = key === 'root' && ObjectUtils.isNotEmpty(this.pt?.['data-pc-section']);
|
|
@@ -187,6 +193,10 @@ export default {
|
|
|
187
193
|
ptm(key = '', params = {}) {
|
|
188
194
|
return this._getPTValue(this.pt, key, { ...this.$params, ...params });
|
|
189
195
|
},
|
|
196
|
+
ptmi(key = '', params = {}) {
|
|
197
|
+
// inheritAttrs:true without `pt:*`
|
|
198
|
+
return mergeProps(this.$_attrsNoPT, this.ptm(key, params));
|
|
199
|
+
},
|
|
190
200
|
ptmo(obj = {}, key = '', params = {}) {
|
|
191
201
|
return this._getPTValue(obj, key, { instance: this, ...params }, false);
|
|
192
202
|
},
|
|
@@ -240,6 +250,31 @@ export default {
|
|
|
240
250
|
},
|
|
241
251
|
$name() {
|
|
242
252
|
return this.$options.hostName || this.$.type.name;
|
|
253
|
+
},
|
|
254
|
+
$_attrsPT() {
|
|
255
|
+
return Object.entries(this.$attrs || {})
|
|
256
|
+
.filter(([key]) => key?.startsWith('pt:'))
|
|
257
|
+
.reduce((result, [key, value]) => {
|
|
258
|
+
const [, ...rest] = key.split(':');
|
|
259
|
+
|
|
260
|
+
rest?.reduce((currentObj, nestedKey, index, array) => {
|
|
261
|
+
!currentObj[nestedKey] && (currentObj[nestedKey] = index === array.length - 1 ? value : {});
|
|
262
|
+
|
|
263
|
+
return currentObj[nestedKey];
|
|
264
|
+
}, result);
|
|
265
|
+
|
|
266
|
+
return result;
|
|
267
|
+
}, {});
|
|
268
|
+
},
|
|
269
|
+
$_attrsNoPT() {
|
|
270
|
+
// $attrs without `pt:*`
|
|
271
|
+
return Object.entries(this.$attrs || {})
|
|
272
|
+
.filter(([key]) => !key?.startsWith('pt:'))
|
|
273
|
+
.reduce((acc, [key, value]) => {
|
|
274
|
+
acc[key] = value;
|
|
275
|
+
|
|
276
|
+
return acc;
|
|
277
|
+
}, {});
|
|
243
278
|
}
|
|
244
279
|
}
|
|
245
280
|
};
|
|
@@ -26,6 +26,14 @@ var BaseComponentStyle = BaseStyle__default["default"].extend({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
29
|
+
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
30
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
31
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
32
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
33
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
34
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
35
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
36
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
37
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
38
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
39
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -166,12 +174,22 @@ var script = {
|
|
|
166
174
|
_ref3$mergeProps = _ref3.mergeProps,
|
|
167
175
|
useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
|
|
168
176
|
var global = searchInDefaultPT ? searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params) : undefined;
|
|
169
|
-
var self = searchOut ? undefined : this.
|
|
177
|
+
var self = searchOut ? undefined : this._getPTSelf(obj, this._getPTClassValue, key, _objectSpread(_objectSpread({}, params), {}, {
|
|
170
178
|
global: global || {}
|
|
171
179
|
}));
|
|
172
180
|
var datasets = this._getPTDatasets(key);
|
|
173
181
|
return mergeSections || !mergeSections && self ? useMergeProps ? this._mergeProps(useMergeProps, global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
|
|
174
182
|
},
|
|
183
|
+
_getPTSelf: function _getPTSelf() {
|
|
184
|
+
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
185
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key3 = 1; _key3 < _len2; _key3++) {
|
|
186
|
+
args[_key3 - 1] = arguments[_key3];
|
|
187
|
+
}
|
|
188
|
+
return vue.mergeProps(this._usePT.apply(this, [this._getPT(obj, this.$name)].concat(args)),
|
|
189
|
+
// Exp; <component :pt="{}"
|
|
190
|
+
this._usePT.apply(this, [this.$_attrsPT].concat(args)) // Exp; <component :pt:[passthrough_key]:[attribute]="{value}" or <component :pt:[passthrough_key]="() =>{value}"
|
|
191
|
+
);
|
|
192
|
+
},
|
|
175
193
|
_getPTDatasets: function _getPTDatasets() {
|
|
176
194
|
var _this$pt4, _this$pt5;
|
|
177
195
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -232,6 +250,12 @@ var script = {
|
|
|
232
250
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
233
251
|
return this._getPTValue(this.pt, key, _objectSpread(_objectSpread({}, this.$params), params));
|
|
234
252
|
},
|
|
253
|
+
ptmi: function ptmi() {
|
|
254
|
+
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
255
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
256
|
+
// inheritAttrs:true without `pt:*`
|
|
257
|
+
return vue.mergeProps(this.$_attrsNoPT, this.ptm(key, params));
|
|
258
|
+
},
|
|
235
259
|
ptmo: function ptmo() {
|
|
236
260
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
237
261
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -309,6 +333,39 @@ var script = {
|
|
|
309
333
|
},
|
|
310
334
|
$name: function $name() {
|
|
311
335
|
return this.$options.hostName || this.$.type.name;
|
|
336
|
+
},
|
|
337
|
+
$_attrsPT: function $_attrsPT() {
|
|
338
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref7) {
|
|
339
|
+
var _ref8 = _slicedToArray(_ref7, 1),
|
|
340
|
+
key = _ref8[0];
|
|
341
|
+
return key === null || key === void 0 ? void 0 : key.startsWith('pt:');
|
|
342
|
+
}).reduce(function (result, _ref9) {
|
|
343
|
+
var _ref10 = _slicedToArray(_ref9, 2),
|
|
344
|
+
key = _ref10[0],
|
|
345
|
+
value = _ref10[1];
|
|
346
|
+
var _key$split = key.split(':'),
|
|
347
|
+
_key$split2 = _toArray(_key$split),
|
|
348
|
+
rest = _key$split2.slice(1);
|
|
349
|
+
rest === null || rest === void 0 || rest.reduce(function (currentObj, nestedKey, index, array) {
|
|
350
|
+
!currentObj[nestedKey] && (currentObj[nestedKey] = index === array.length - 1 ? value : {});
|
|
351
|
+
return currentObj[nestedKey];
|
|
352
|
+
}, result);
|
|
353
|
+
return result;
|
|
354
|
+
}, {});
|
|
355
|
+
},
|
|
356
|
+
$_attrsNoPT: function $_attrsNoPT() {
|
|
357
|
+
// $attrs without `pt:*`
|
|
358
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref11) {
|
|
359
|
+
var _ref12 = _slicedToArray(_ref11, 1),
|
|
360
|
+
key = _ref12[0];
|
|
361
|
+
return !(key !== null && key !== void 0 && key.startsWith('pt:'));
|
|
362
|
+
}).reduce(function (acc, _ref13) {
|
|
363
|
+
var _ref14 = _slicedToArray(_ref13, 2),
|
|
364
|
+
key = _ref14[0],
|
|
365
|
+
value = _ref14[1];
|
|
366
|
+
acc[key] = value;
|
|
367
|
+
return acc;
|
|
368
|
+
}, {});
|
|
312
369
|
}
|
|
313
370
|
}
|
|
314
371
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("primevue/base/style"),e=require("primevue/utils"),n=require("vue"),i=require("primevue/usestyle");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var i;return(e="symbol"==l(i=c(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var v=r.default.extend({name:"common",loadGlobalStyle:function(t){return i.useStyle(t,u({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var i;return(e="symbol"==p(i=g(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=p(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var y={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(v.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,i,o,r,l,s,u,a,c,v=null===(t=this.pt)||void 0===t?void 0:t._usept,p=v?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(i=(v?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||p)||void 0===i||null===(i=i.hooks)||void 0===i||null===(o=i.onBeforeCreate)||void 0===o||o.call(i);var d=null===(r=this.$config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,h=d?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(d?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||h)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var t;r.default.loadStyle({nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return e.ObjectUtils.isFunction(t)?t.apply(void 0,o):n.mergeProps.apply(void 0,o)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.ObjectUtils.isNotEmpty(n)&&v.loadGlobalStyle(n,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(t)?this._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!i[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$config)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,v=o?r?this._useGlobalPT(this._getPTClassValue,n,i):this._useDefaultPT(this._getPTClassValue,n,i):void 0,p=r?void 0:this._usePT(this._getPT(e,this.$name),this._getPTClassValue,n,h(h({},i),{},{global:v||{}})),d=this._getPTDatasets(n);return u||!u&&p?c?this._mergeProps(c,v,p,d):h(h(h({},v),p),d):h(h({},p),d)},_getPTDatasets:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o="data-pc-",r="root"===i&&e.ObjectUtils.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==i&&h(h({},"root"===i&&h(f({},"".concat(o,"name"),e.ObjectUtils.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&f({},"".concat(o,"extend"),e.ObjectUtils.toFlatCase(this.$.type.name)))),{},f({},"".concat(o,"section"),e.ObjectUtils.toFlatCase(i)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=o?o(t):t,u=e.ObjectUtils.toFlatCase(i),a=e.ObjectUtils.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,i,o){var r=function(t){return n(t,i,o)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$config)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,v=void 0!==c&&c,p=r(t.originalValue),d=r(t.value);if(void 0===p&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(p)?p:a||!a&&d?v?this._mergeProps(v,p,d):h(h({},p),d):d}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h(h({},this.$params),t))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",h({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h(h({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,h(h({},this.$params),e));return[this._getOptionValue(v.inlineStyles,t,h(h({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return e.ObjectUtils.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,h({},n.$params))||e.ObjectUtils.getItemValue(t,h({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$config)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return h(h({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name}}};module.exports=y;
|
|
1
|
+
"use strict";var t=require("primevue/base/style"),e=require("primevue/utils"),n=require("vue"),i=require("primevue/usestyle");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var i;return(e="symbol"==l(i=c(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var p=r.default.extend({name:"common",loadGlobalStyle:function(t){return i.useStyle(t,u({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function d(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function f(t,e){return b(t)||m(t,e)||g(t,e)||h()}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,l,s=[],u=!0,a=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(a)throw o}}return s}}function b(t){if(Array.isArray(t))return t}function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var i;return(e="symbol"==v(i=$(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var j={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(p.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,i,o,r,l,s,u,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(i=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===i||null===(i=i.hooks)||void 0===i||null===(o=i.onBeforeCreate)||void 0===o||o.call(i);var d=null===(r=this.$config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,f=d?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(d?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||f)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var t;r.default.loadStyle({nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];return e.ObjectUtils.isFunction(t)?t.apply(void 0,o):n.mergeProps.apply(void 0,o)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.ObjectUtils.isNotEmpty(n)&&p.loadGlobalStyle(n,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(t)?this._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!i[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$config)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,p=o?r?this._useGlobalPT(this._getPTClassValue,n,i):this._useDefaultPT(this._getPTClassValue,n,i):void 0,v=r?void 0:this._getPTSelf(e,this._getPTClassValue,n,P(P({},i),{},{global:p||{}})),d=this._getPTDatasets(n);return u||!u&&v?c?this._mergeProps(c,p,v,d):P(P(P({},p),v),d):P(P({},v),d)},_getPTSelf:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return n.mergeProps(this._usePT.apply(this,[this._getPT(t,this.$name)].concat(i)),this._usePT.apply(this,[this.$_attrsPT].concat(i)))},_getPTDatasets:function(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o="data-pc-",r="root"===i&&e.ObjectUtils.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==i&&P(P({},"root"===i&&P(_({},"".concat(o,"name"),e.ObjectUtils.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&_({},"".concat(o,"extend"),e.ObjectUtils.toFlatCase(this.$.type.name)))),{},_({},"".concat(o,"section"),e.ObjectUtils.toFlatCase(i)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=o?o(t):t,u=e.ObjectUtils.toFlatCase(i),a=e.ObjectUtils.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,i,o){var r=function(t){return n(t,i,o)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$config)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,p=void 0!==c&&c,v=r(t.originalValue),d=r(t.value);if(void 0===v&&void 0===d)return;return e.ObjectUtils.isString(d)?d:e.ObjectUtils.isString(v)?v:a||!a&&d?p?this._mergeProps(p,v,d):P(P({},v),d):d}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P(P({},this.$params),t))},ptmi:function(){return n.mergeProps(this.$_attrsNoPT,this.ptm(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",P({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",P(P({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,P(P({},this.$params),e));return[this._getOptionValue(p.inlineStyles,t,P(P({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return e.ObjectUtils.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,P({},n.$params))||e.ObjectUtils.getItemValue(t,P({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$config)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return P(P({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=f(t,1)[0];return null==e?void 0:e.startsWith("pt:")})).reduce((function(t,e){var n,i=f(e,2),o=i[1],r=i[0].split(":"),l=(b(n=r)||d(n)||g(n)||h()).slice(1);return null==l||l.reduce((function(t,e,n,i){return!t[e]&&(t[e]=n===i.length-1?o:{}),t[e]}),t),t}),{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=f(t,1)[0];return!(null!=e&&e.startsWith("pt:"))})).reduce((function(t,e){var n=f(e,2);return t[n[0]]=n[1],t}),{})}}};module.exports=j;
|
|
@@ -20,6 +20,14 @@ var BaseComponentStyle = BaseStyle.extend({
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
23
|
+
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
24
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
25
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
26
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
28
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
29
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
30
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
32
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
33
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -160,12 +168,22 @@ var script = {
|
|
|
160
168
|
_ref3$mergeProps = _ref3.mergeProps,
|
|
161
169
|
useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
|
|
162
170
|
var global = searchInDefaultPT ? searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params) : undefined;
|
|
163
|
-
var self = searchOut ? undefined : this.
|
|
171
|
+
var self = searchOut ? undefined : this._getPTSelf(obj, this._getPTClassValue, key, _objectSpread(_objectSpread({}, params), {}, {
|
|
164
172
|
global: global || {}
|
|
165
173
|
}));
|
|
166
174
|
var datasets = this._getPTDatasets(key);
|
|
167
175
|
return mergeSections || !mergeSections && self ? useMergeProps ? this._mergeProps(useMergeProps, global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
|
|
168
176
|
},
|
|
177
|
+
_getPTSelf: function _getPTSelf() {
|
|
178
|
+
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
179
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key3 = 1; _key3 < _len2; _key3++) {
|
|
180
|
+
args[_key3 - 1] = arguments[_key3];
|
|
181
|
+
}
|
|
182
|
+
return mergeProps(this._usePT.apply(this, [this._getPT(obj, this.$name)].concat(args)),
|
|
183
|
+
// Exp; <component :pt="{}"
|
|
184
|
+
this._usePT.apply(this, [this.$_attrsPT].concat(args)) // Exp; <component :pt:[passthrough_key]:[attribute]="{value}" or <component :pt:[passthrough_key]="() =>{value}"
|
|
185
|
+
);
|
|
186
|
+
},
|
|
169
187
|
_getPTDatasets: function _getPTDatasets() {
|
|
170
188
|
var _this$pt4, _this$pt5;
|
|
171
189
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -226,6 +244,12 @@ var script = {
|
|
|
226
244
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
227
245
|
return this._getPTValue(this.pt, key, _objectSpread(_objectSpread({}, this.$params), params));
|
|
228
246
|
},
|
|
247
|
+
ptmi: function ptmi() {
|
|
248
|
+
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
249
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
250
|
+
// inheritAttrs:true without `pt:*`
|
|
251
|
+
return mergeProps(this.$_attrsNoPT, this.ptm(key, params));
|
|
252
|
+
},
|
|
229
253
|
ptmo: function ptmo() {
|
|
230
254
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
231
255
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -303,6 +327,39 @@ var script = {
|
|
|
303
327
|
},
|
|
304
328
|
$name: function $name() {
|
|
305
329
|
return this.$options.hostName || this.$.type.name;
|
|
330
|
+
},
|
|
331
|
+
$_attrsPT: function $_attrsPT() {
|
|
332
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref7) {
|
|
333
|
+
var _ref8 = _slicedToArray(_ref7, 1),
|
|
334
|
+
key = _ref8[0];
|
|
335
|
+
return key === null || key === void 0 ? void 0 : key.startsWith('pt:');
|
|
336
|
+
}).reduce(function (result, _ref9) {
|
|
337
|
+
var _ref10 = _slicedToArray(_ref9, 2),
|
|
338
|
+
key = _ref10[0],
|
|
339
|
+
value = _ref10[1];
|
|
340
|
+
var _key$split = key.split(':'),
|
|
341
|
+
_key$split2 = _toArray(_key$split),
|
|
342
|
+
rest = _key$split2.slice(1);
|
|
343
|
+
rest === null || rest === void 0 || rest.reduce(function (currentObj, nestedKey, index, array) {
|
|
344
|
+
!currentObj[nestedKey] && (currentObj[nestedKey] = index === array.length - 1 ? value : {});
|
|
345
|
+
return currentObj[nestedKey];
|
|
346
|
+
}, result);
|
|
347
|
+
return result;
|
|
348
|
+
}, {});
|
|
349
|
+
},
|
|
350
|
+
$_attrsNoPT: function $_attrsNoPT() {
|
|
351
|
+
// $attrs without `pt:*`
|
|
352
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref11) {
|
|
353
|
+
var _ref12 = _slicedToArray(_ref11, 1),
|
|
354
|
+
key = _ref12[0];
|
|
355
|
+
return !(key !== null && key !== void 0 && key.startsWith('pt:'));
|
|
356
|
+
}).reduce(function (acc, _ref13) {
|
|
357
|
+
var _ref14 = _slicedToArray(_ref13, 2),
|
|
358
|
+
key = _ref14[0],
|
|
359
|
+
value = _ref14[1];
|
|
360
|
+
acc[key] = value;
|
|
361
|
+
return acc;
|
|
362
|
+
}, {});
|
|
306
363
|
}
|
|
307
364
|
}
|
|
308
365
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"primevue/base/style";import{ObjectUtils as e}from"primevue/utils";import{mergeProps as n}from"vue";import{useStyle as o}from"primevue/usestyle";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var o;return(e="symbol"==i(o=u(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var a=t.extend({name:"common",loadGlobalStyle:function(t){return o(t,l({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var o;return(e="symbol"==c(o=h(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var f={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(a.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,o,i,r,l,s,u,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(o=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===o||null===(o=o.hooks)||void 0===o||null===(i=o.onBeforeCreate)||void 0===i||i.call(o);var d=null===(r=this.$config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,h=d?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(d?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||h)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;t.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];return e.isFunction(t)?t.apply(void 0,i):n.apply(void 0,i)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.isNotEmpty(n)&&a.loadGlobalStyle(n,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?e.isObject(t)?this._getOptionValue(e.getItemValue(t[Object.keys(t).find((function(t){return e.toFlatCase(t)===i}))||""],n),o.join("."),n):void 0:e.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!o[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$config)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,p=i?r?this._useGlobalPT(this._getPTClassValue,n,o):this._useDefaultPT(this._getPTClassValue,n,o):void 0,d=r?void 0:this._usePT(this._getPT(e,this.$name),this._getPTClassValue,n,v(v({},o),{},{global:p||{}})),h=this._getPTDatasets(n);return u||!u&&d?c?this._mergeProps(c,p,d,h):v(v(v({},p),d),h):v(v({},d),h)},_getPTDatasets:function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i="data-pc-",r="root"===o&&e.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==o&&v(v({},"root"===o&&v(d({},"".concat(i,"name"),e.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&d({},"".concat(i,"extend"),e.toFlatCase(this.$.type.name)))),{},d({},"".concat(i,"section"),e.toFlatCase(o)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.isString(t)||e.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=i?i(t):t,u=e.toFlatCase(o),a=e.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,o,i){var r=function(t){return n(t,o,i)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$config)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,p=void 0!==c&&c,d=r(t.originalValue),h=r(t.value);if(void 0===d&&void 0===h)return;return e.isString(h)?h:e.isString(d)?d:a||!a&&h?p?this._mergeProps(p,d,h):v(v({},d),h):h}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v(v({},this.$params),t))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",v({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v(v({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,v(v({},this.$params),e));return[this._getOptionValue(a.inlineStyles,t,v(v({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return e.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,v({},n.$params))||e.getItemValue(t,v({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$config)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return v(v({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name}}};export{f as default};
|
|
1
|
+
import t from"primevue/base/style";import{ObjectUtils as e}from"primevue/utils";import{mergeProps as n}from"vue";import{useStyle as o}from"primevue/usestyle";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var o;return(e="symbol"==i(o=u(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var a=t.extend({name:"common",loadGlobalStyle:function(t){return o(t,l({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function v(t,e){return y(t)||g(t,e)||d(t,e)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function g(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,s=[],u=!0,a=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);u=!0);}catch(t){a=!0,i=t}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(a)throw i}}return s}}function y(t){if(Array.isArray(t))return t}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){var o;return(e="symbol"==c(o=P(e,"string"))?o:String(o))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var $={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(t){var e,n;t||(a.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}))}}},beforeCreate:function(){var t,e,n,o,i,r,l,s,u,a,c,p=null===(t=this.pt)||void 0===t?void 0:t._usept,v=p?null===(e=this.pt)||void 0===e||null===(e=e.originalValue)||void 0===e?void 0:e[this.$.type.name]:void 0;null===(o=(p?null===(n=this.pt)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[this.$.type.name]:this.pt)||v)||void 0===o||null===(o=o.hooks)||void 0===o||null===(i=o.onBeforeCreate)||void 0===i||i.call(o);var f=null===(r=this.$config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r._usept,d=f?null===(l=this.$primevue)||void 0===l||null===(l=l.config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l.originalValue:void 0;null===(a=(f?null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s||null===(s=s.pt)||void 0===s?void 0:s.value:null===(u=this.$primevue)||void 0===u||null===(u=u.config)||void 0===u?void 0:u.pt)||d)||void 0===a||null===(a=a[this.$.type.name])||void 0===a||null===(a=a.hooks)||void 0===a||null===(c=a.onBeforeCreate)||void 0===c||c.call(a)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;t.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(t){if(!this.$options.hostName){var e=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(t)),n=this._useDefaultPT(this._getOptionValue,"hooks.".concat(t));null==e||e(),null==n||n()}},_mergeProps:function(t){for(var o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];return e.isFunction(t)?t.apply(void 0,i):n.apply(void 0,i)},_loadGlobalStyles:function(){var t,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);e.isNotEmpty(n)&&a.loadGlobalStyle(n,{nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})},_getHostInstance:function(t){return t?this.$options.hostName?t.$.type.name===this.$options.hostName?t:this._getHostInstance(t.$parentInstance):t.$parentInstance:void 0},_getPropValue:function(t){var e;return this[t]||(null===(e=this._getHostInstance(this))||void 0===e?void 0:e[t])},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?e.isObject(t)?this._getOptionValue(e.getItemValue(t[Object.keys(t).find((function(t){return e.toFlatCase(t)===i}))||""],n),o.join("."),n):void 0:e.getItemValue(t,n)},_getPTValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=/./g.test(n)&&!!o[n.split(".")[0]],l=this._getPropValue("ptOptions")||(null===(t=this.$config)||void 0===t?void 0:t.ptOptions)||{},s=l.mergeSections,u=void 0===s||s,a=l.mergeProps,c=void 0!==a&&a,p=i?r?this._useGlobalPT(this._getPTClassValue,n,o):this._useDefaultPT(this._getPTClassValue,n,o):void 0,v=r?void 0:this._getPTSelf(e,this._getPTClassValue,n,b(b({},o),{},{global:p||{}})),f=this._getPTDatasets(n);return u||!u&&v?c?this._mergeProps(c,p,v,f):b(b(b({},p),v),f):b(b({},v),f)},_getPTSelf:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return n(this._usePT.apply(this,[this._getPT(t,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i="data-pc-",r="root"===o&&e.isNotEmpty(null===(t=this.pt)||void 0===t?void 0:t["data-pc-section"]);return"transition"!==o&&b(b({},"root"===o&&b(_({},"".concat(i,"name"),e.toFlatCase(r?null===(n=this.pt)||void 0===n?void 0:n["data-pc-section"]:this.$.type.name)),r&&_({},"".concat(i,"extend"),e.toFlatCase(this.$.type.name)))),{},_({},"".concat(i,"section"),e.toFlatCase(o)))},_getPTClassValue:function(){var t=this._getOptionValue.apply(this,arguments);return e.isString(t)||e.isArray(t)?{class:t}:t},_getPT:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=function(t){var r,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=i?i(t):t,u=e.toFlatCase(o),a=e.toFlatCase(n.$name);return null!==(r=l?u!==a?null==s?void 0:s[u]:void 0:null==s?void 0:s[u])&&void 0!==r?r:s};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:r(t.originalValue),value:r(t.value)}:r(t,!0)},_usePT:function(t,n,o,i){var r=function(t){return n(t,o,i)};if(null!=t&&t.hasOwnProperty("_usept")){var l,s=t._usept||(null===(l=this.$config)||void 0===l?void 0:l.ptOptions)||{},u=s.mergeSections,a=void 0===u||u,c=s.mergeProps,p=void 0!==c&&c,v=r(t.originalValue),f=r(t.value);if(void 0===v&&void 0===f)return;return e.isString(f)?f:e.isString(v)?v:a||!a&&f?p?this._mergeProps(p,v,f):b(b({},v),f):f}return r(t)},_useGlobalPT:function(t,e,n){return this._usePT(this.globalPT,t,e,n)},_useDefaultPT:function(t,e,n){return this._usePT(this.defaultPT,t,e,n)},ptm:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b(b({},this.$params),t))},ptmi:function(){return n(this.$_attrsNoPT,this.ptm(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",b({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b(b({},this.$params),t))},sx:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=this._getOptionValue(this.$style.inlineStyles,t,b(b({},this.$params),e));return[this._getOptionValue(a.inlineStyles,t,b(b({},this.$params),e)),n]}}},computed:{globalPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return e.getItemValue(t,{instance:n})}))},defaultPT:function(){var t,n=this;return this._getPT(null===(t=this.$config)||void 0===t?void 0:t.pt,void 0,(function(t){return n._getOptionValue(t,n.$name,b({},n.$params))||e.getItemValue(t,b({},n.$params))}))},isUnstyled:function(){var t;return void 0!==this.unstyled?this.unstyled:null===(t=this.$config)||void 0===t?void 0:t.unstyled},$params:function(){var t=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:t,props:null==t?void 0:t.$props,state:null==t?void 0:t.$data,attrs:null==t?void 0:t.$attrs},parentInstance:t}},$style:function(){return b(b({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var t;return null===(t=this.$primevue)||void 0===t?void 0:t.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=v(t,1)[0];return null==e?void 0:e.startsWith("pt:")})).reduce((function(t,e){var n,o=v(e,2),i=o[1],r=o[0].split(":"),l=(y(n=r)||p(n)||d(n)||f()).slice(1);return null==l||l.reduce((function(t,e,n,o){return!t[e]&&(t[e]=n===o.length-1?i:{}),t[e]}),t),t}),{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter((function(t){var e=v(t,1)[0];return!(null!=e&&e.startsWith("pt:"))})).reduce((function(t,e){var n=v(e,2);return t[n[0]]=n[1],t}),{})}}};export{$ as default};
|
|
@@ -23,6 +23,14 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
26
|
+
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
27
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
28
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
30
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
32
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
33
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
34
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
35
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28
36
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -163,12 +171,22 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
|
|
|
163
171
|
_ref3$mergeProps = _ref3.mergeProps,
|
|
164
172
|
useMergeProps = _ref3$mergeProps === void 0 ? false : _ref3$mergeProps;
|
|
165
173
|
var global = searchInDefaultPT ? searchOut ? this._useGlobalPT(this._getPTClassValue, key, params) : this._useDefaultPT(this._getPTClassValue, key, params) : undefined;
|
|
166
|
-
var self = searchOut ? undefined : this.
|
|
174
|
+
var self = searchOut ? undefined : this._getPTSelf(obj, this._getPTClassValue, key, _objectSpread(_objectSpread({}, params), {}, {
|
|
167
175
|
global: global || {}
|
|
168
176
|
}));
|
|
169
177
|
var datasets = this._getPTDatasets(key);
|
|
170
178
|
return mergeSections || !mergeSections && self ? useMergeProps ? this._mergeProps(useMergeProps, global, self, datasets) : _objectSpread(_objectSpread(_objectSpread({}, global), self), datasets) : _objectSpread(_objectSpread({}, self), datasets);
|
|
171
179
|
},
|
|
180
|
+
_getPTSelf: function _getPTSelf() {
|
|
181
|
+
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
182
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key3 = 1; _key3 < _len2; _key3++) {
|
|
183
|
+
args[_key3 - 1] = arguments[_key3];
|
|
184
|
+
}
|
|
185
|
+
return vue.mergeProps(this._usePT.apply(this, [this._getPT(obj, this.$name)].concat(args)),
|
|
186
|
+
// Exp; <component :pt="{}"
|
|
187
|
+
this._usePT.apply(this, [this.$_attrsPT].concat(args)) // Exp; <component :pt:[passthrough_key]:[attribute]="{value}" or <component :pt:[passthrough_key]="() =>{value}"
|
|
188
|
+
);
|
|
189
|
+
},
|
|
172
190
|
_getPTDatasets: function _getPTDatasets() {
|
|
173
191
|
var _this$pt4, _this$pt5;
|
|
174
192
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -229,6 +247,12 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
|
|
|
229
247
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
230
248
|
return this._getPTValue(this.pt, key, _objectSpread(_objectSpread({}, this.$params), params));
|
|
231
249
|
},
|
|
250
|
+
ptmi: function ptmi() {
|
|
251
|
+
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
252
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
253
|
+
// inheritAttrs:true without `pt:*`
|
|
254
|
+
return vue.mergeProps(this.$_attrsNoPT, this.ptm(key, params));
|
|
255
|
+
},
|
|
232
256
|
ptmo: function ptmo() {
|
|
233
257
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
234
258
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -306,6 +330,39 @@ this.primevue.basecomponent = (function (BaseStyle, utils, vue, usestyle) {
|
|
|
306
330
|
},
|
|
307
331
|
$name: function $name() {
|
|
308
332
|
return this.$options.hostName || this.$.type.name;
|
|
333
|
+
},
|
|
334
|
+
$_attrsPT: function $_attrsPT() {
|
|
335
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref7) {
|
|
336
|
+
var _ref8 = _slicedToArray(_ref7, 1),
|
|
337
|
+
key = _ref8[0];
|
|
338
|
+
return key === null || key === void 0 ? void 0 : key.startsWith('pt:');
|
|
339
|
+
}).reduce(function (result, _ref9) {
|
|
340
|
+
var _ref10 = _slicedToArray(_ref9, 2),
|
|
341
|
+
key = _ref10[0],
|
|
342
|
+
value = _ref10[1];
|
|
343
|
+
var _key$split = key.split(':'),
|
|
344
|
+
_key$split2 = _toArray(_key$split),
|
|
345
|
+
rest = _key$split2.slice(1);
|
|
346
|
+
rest === null || rest === void 0 || rest.reduce(function (currentObj, nestedKey, index, array) {
|
|
347
|
+
!currentObj[nestedKey] && (currentObj[nestedKey] = index === array.length - 1 ? value : {});
|
|
348
|
+
return currentObj[nestedKey];
|
|
349
|
+
}, result);
|
|
350
|
+
return result;
|
|
351
|
+
}, {});
|
|
352
|
+
},
|
|
353
|
+
$_attrsNoPT: function $_attrsNoPT() {
|
|
354
|
+
// $attrs without `pt:*`
|
|
355
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref11) {
|
|
356
|
+
var _ref12 = _slicedToArray(_ref11, 1),
|
|
357
|
+
key = _ref12[0];
|
|
358
|
+
return !(key !== null && key !== void 0 && key.startsWith('pt:'));
|
|
359
|
+
}).reduce(function (acc, _ref13) {
|
|
360
|
+
var _ref14 = _slicedToArray(_ref13, 2),
|
|
361
|
+
key = _ref14[0],
|
|
362
|
+
value = _ref14[1];
|
|
363
|
+
acc[key] = value;
|
|
364
|
+
return acc;
|
|
365
|
+
}, {});
|
|
309
366
|
}
|
|
310
367
|
}
|
|
311
368
|
};
|