naive-ui 2.40.4 → 2.41.1
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/dist/index.js +3516 -1947
- package/dist/index.mjs +3510 -1949
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/selection/src/Selection.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/dom/download.d.ts +1 -0
- package/es/_utils/dom/download.mjs +3 -0
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.mjs +2 -2
- package/es/_utils/naive/index.d.ts +1 -0
- package/es/_utils/naive/index.mjs +1 -0
- package/es/_utils/naive/value.d.ts +1 -0
- package/es/_utils/naive/value.mjs +13 -0
- package/es/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/es/_utils/vue/get-first-slot-vnode.mjs +13 -0
- package/es/_utils/vue/index.d.ts +2 -2
- package/es/_utils/vue/index.mjs +2 -2
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.mjs +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +7 -2
- package/es/alert/src/Alert.mjs +1 -0
- package/es/auto-complete/index.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +10 -4
- package/es/auto-complete/src/AutoComplete.mjs +3 -2
- package/es/auto-complete/src/interface.d.ts +6 -0
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/src/Avatar.d.ts +7 -2
- package/es/avatar/src/Avatar.mjs +1 -0
- package/es/avatar-group/index.d.ts +2 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/es/avatar-group/src/AvatarGroup.mjs +1 -0
- package/es/avatar-group/src/interface.d.ts +8 -0
- package/es/avatar-group/src/interface.mjs +1 -0
- package/es/breadcrumb/index.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/es/breadcrumb/src/BreadcrumbItem.mjs +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/src/Button.d.ts +6 -2
- package/es/button/src/Button.mjs +1 -0
- package/es/calendar/src/Calendar.d.ts +7 -3
- package/es/calendar/src/Calendar.mjs +3 -2
- package/es/calendar/src/interface.d.ts +9 -0
- package/es/card/index.d.ts +1 -1
- package/es/card/src/Card.d.ts +10 -2
- package/es/card/src/Card.mjs +1 -0
- package/es/carousel/index.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +8 -3
- package/es/carousel/src/Carousel.mjs +4 -3
- package/es/carousel/src/interface.d.ts +12 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +9 -3
- package/es/cascader/src/Cascader.mjs +1 -0
- package/es/collapse/index.d.ts +3 -2
- package/es/collapse/src/Collapse.d.ts +10 -4
- package/es/collapse/src/Collapse.mjs +1 -0
- package/es/collapse/src/CollapseItem.d.ts +9 -4
- package/es/collapse/src/CollapseItem.mjs +8 -11
- package/es/collapse/src/interface.d.ts +12 -0
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +7 -2
- package/es/color-picker/src/ColorPicker.mjs +1 -3
- package/es/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/es/color-picker/src/ColorPickerTrigger.mjs +1 -0
- package/es/color-picker/src/context.d.ts +3 -2
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +9 -8
- package/es/data-table/src/DataTable.mjs +7 -6
- package/es/data-table/src/TableParts/Body.d.ts +1 -3
- package/es/data-table/src/interface.d.ts +7 -2
- package/es/data-table/src/styles/index.cssr.mjs +1 -0
- package/es/data-table/src/use-group-header.mjs +4 -3
- package/es/date-picker/index.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +27 -5
- package/es/date-picker/src/DatePicker.mjs +1 -0
- package/es/date-picker/src/interface.d.ts +3 -2
- package/es/date-picker/src/panel/date.d.ts +1 -3
- package/es/date-picker/src/panel/date.mjs +8 -8
- package/es/date-picker/src/panel/daterange.d.ts +1 -3
- package/es/date-picker/src/panel/daterange.mjs +12 -12
- package/es/date-picker/src/panel/datetime.d.ts +1 -3
- package/es/date-picker/src/panel/datetime.mjs +10 -10
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/es/date-picker/src/panel/datetimerange.mjs +12 -12
- package/es/date-picker/src/panel/month.d.ts +1 -3
- package/es/date-picker/src/panel/month.mjs +9 -9
- package/es/date-picker/src/panel/monthrange.d.ts +1 -3
- package/es/date-picker/src/panel/monthrange.mjs +9 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/es/date-picker/src/props.d.ts +1 -1
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +7 -3
- package/es/descriptions/src/Descriptions.mjs +1 -0
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/es/descriptions/src/DescriptionsItem.mjs +1 -0
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/src/Dialog.d.ts +9 -2
- package/es/dialog/src/Dialog.mjs +1 -0
- package/es/dialog/src/DialogEnvironment.d.ts +5 -1
- package/es/dialog/src/DialogEnvironment.mjs +8 -3
- package/es/dialog/src/DialogProvider.d.ts +8 -2
- package/es/drawer/index.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +7 -2
- package/es/drawer/src/DrawerContent.mjs +1 -0
- package/es/dynamic-input/index.d.ts +2 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/es/dynamic-input/src/DynamicInput.mjs +3 -3
- package/es/dynamic-input/src/interface.d.ts +11 -0
- package/es/dynamic-tags/index.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/es/dynamic-tags/src/DynamicTags.mjs +1 -0
- package/es/dynamic-tags/src/interface.d.ts +8 -0
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +6 -2
- package/es/ellipsis/src/Ellipsis.mjs +1 -0
- package/es/empty/index.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +7 -2
- package/es/empty/src/Empty.mjs +1 -0
- package/es/float-button/index.d.ts +1 -1
- package/es/float-button/src/FloatButton.d.ts +7 -2
- package/es/float-button/src/FloatButton.mjs +1 -0
- package/es/form/index.d.ts +1 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/interface.d.ts +0 -1
- package/es/form/src/public-types.d.ts +1 -0
- package/es/form/src/public-types.mjs +1 -0
- package/es/image/index.d.ts +1 -1
- package/es/image/src/Image.d.ts +6 -2
- package/es/image/src/Image.mjs +2 -5
- package/es/input/index.d.ts +1 -1
- package/es/input/src/Input.d.ts +14 -3
- package/es/input/src/Input.mjs +8 -8
- package/es/input/src/WordCount.mjs +2 -2
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +9 -3
- package/es/input-number/src/InputNumber.mjs +1 -0
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.mjs +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.mjs +317 -0
- package/es/input-otp/src/public-types.d.ts +24 -0
- package/es/input-otp/src/public-types.mjs +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.mjs +11 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.mjs +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.mjs +3 -0
- package/es/input-otp/styles/light.d.ts +81 -0
- package/es/input-otp/styles/light.mjs +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.mjs +5 -0
- package/es/list/index.d.ts +2 -1
- package/es/list/src/List.d.ts +7 -2
- package/es/list/src/List.mjs +1 -0
- package/es/list/src/ListItem.d.ts +7 -1
- package/es/list/src/ListItem.mjs +1 -0
- package/es/locales/common/kmKH.d.ts +3 -0
- package/es/locales/common/kmKH.mjs +124 -0
- package/es/locales/common/ugCN.d.ts +3 -0
- package/es/locales/common/ugCN.mjs +124 -0
- package/es/locales/date/kmKH.d.ts +3 -0
- package/es/locales/date/kmKH.mjs +6 -0
- package/es/locales/date/ugCN.d.ts +3 -0
- package/es/locales/date/ugCN.mjs +6 -0
- package/es/locales/index.d.ts +3 -0
- package/es/locales/index.mjs +3 -0
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +7 -3
- package/es/mention/src/Mention.mjs +1 -0
- package/es/modal/index.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +20 -5
- package/es/modal/src/BodyWrapper.mjs +55 -13
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.mjs +3 -0
- package/es/modal/src/ModalEnvironment.d.ts +4 -2
- package/es/modal/src/ModalProvider.mjs +0 -6
- package/es/modal/src/composables.d.ts +13 -1
- package/es/modal/src/composables.mjs +105 -1
- package/es/modal/src/interface.d.ts +6 -0
- package/es/modal/src/styles/index.cssr.mjs +5 -1
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +12 -2
- package/es/page-header/src/PageHeader.mjs +1 -0
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +12 -3
- package/es/pagination/src/Pagination.mjs +3 -2
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -2
- package/es/popconfirm/src/Popconfirm.mjs +2 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +8 -2
- package/es/popover/src/Popover.mjs +2 -5
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +8 -2
- package/es/popselect/src/Popselect.mjs +1 -0
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/result/index.d.ts +1 -1
- package/es/result/src/Result.d.ts +7 -2
- package/es/result/src/Result.mjs +1 -0
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +10 -3
- package/es/select/src/Select.mjs +1 -0
- package/es/slider/index.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +6 -2
- package/es/slider/src/Slider.mjs +1 -0
- package/es/spin/index.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +7 -2
- package/es/spin/src/Spin.mjs +1 -0
- package/es/split/index.d.ts +1 -1
- package/es/split/src/Split.d.ts +8 -2
- package/es/split/src/Split.mjs +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +8 -1
- package/es/statistic/src/Statistic.mjs +1 -0
- package/es/steps/index.d.ts +2 -2
- package/es/steps/src/Step.d.ts +8 -5
- package/es/steps/src/Step.mjs +1 -0
- package/es/steps/src/Steps.d.ts +8 -3
- package/es/steps/src/Steps.mjs +1 -0
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/switch/index.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +10 -2
- package/es/switch/src/Switch.mjs +1 -0
- package/es/tabs/index.d.ts +2 -2
- package/es/tabs/src/TabPane.d.ts +8 -2
- package/es/tabs/src/TabPane.mjs +1 -0
- package/es/tabs/src/Tabs.d.ts +7 -2
- package/es/tabs/src/Tabs.mjs +1 -0
- package/es/tag/index.d.ts +1 -1
- package/es/tag/src/Tag.d.ts +7 -2
- package/es/tag/src/Tag.mjs +1 -0
- package/es/themes/dark.mjs +2 -1
- package/es/themes/light.mjs +2 -0
- package/es/thing/index.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +11 -2
- package/es/thing/src/Thing.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +6 -2
- package/es/timeline/index.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +8 -2
- package/es/timeline/src/TimelineItem.mjs +1 -0
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +5 -2
- package/es/tooltip/src/Tooltip.mjs +1 -0
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +27 -19
- package/es/tree/src/Tree.mjs +5 -4
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +22 -3
- package/es/tree-select/src/TreeSelect.mjs +2 -0
- package/es/typography/src/text.d.ts +1 -1
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.mjs +1 -0
- package/es/upload/src/Upload.d.ts +11 -8
- package/es/upload/src/Upload.mjs +2 -0
- package/es/upload/src/UploadFile.mjs +8 -1
- package/es/upload/src/UploadTrigger.d.ts +7 -2
- package/es/upload/src/UploadTrigger.mjs +1 -0
- package/es/upload/src/interface.d.ts +8 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/dom/download.d.ts +1 -0
- package/lib/_utils/dom/download.js +4 -0
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +4 -2
- package/lib/_utils/naive/index.d.ts +1 -0
- package/lib/_utils/naive/index.js +3 -1
- package/lib/_utils/naive/value.d.ts +1 -0
- package/lib/_utils/naive/value.js +18 -0
- package/lib/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/lib/_utils/vue/get-first-slot-vnode.js +15 -0
- package/lib/_utils/vue/index.d.ts +2 -2
- package/lib/_utils/vue/index.js +3 -2
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.js +2 -2
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +7 -2
- package/lib/alert/src/Alert.js +1 -0
- package/lib/auto-complete/index.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -4
- package/lib/auto-complete/src/AutoComplete.js +2 -1
- package/lib/auto-complete/src/interface.d.ts +6 -0
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/src/Avatar.d.ts +7 -2
- package/lib/avatar/src/Avatar.js +1 -0
- package/lib/avatar-group/index.d.ts +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/lib/avatar-group/src/AvatarGroup.js +1 -0
- package/lib/avatar-group/src/interface.d.ts +8 -0
- package/lib/avatar-group/src/interface.js +2 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/lib/breadcrumb/src/BreadcrumbItem.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/src/Button.d.ts +6 -2
- package/lib/button/src/Button.js +1 -0
- package/lib/calendar/src/Calendar.d.ts +7 -3
- package/lib/calendar/src/Calendar.js +2 -1
- package/lib/calendar/src/interface.d.ts +9 -0
- package/lib/card/index.d.ts +1 -1
- package/lib/card/src/Card.d.ts +10 -2
- package/lib/card/src/Card.js +1 -0
- package/lib/carousel/index.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +8 -3
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/interface.d.ts +12 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +9 -3
- package/lib/cascader/src/Cascader.js +1 -0
- package/lib/collapse/index.d.ts +3 -2
- package/lib/collapse/src/Collapse.d.ts +10 -4
- package/lib/collapse/src/Collapse.js +1 -0
- package/lib/collapse/src/CollapseItem.d.ts +9 -4
- package/lib/collapse/src/CollapseItem.js +6 -9
- package/lib/collapse/src/interface.d.ts +12 -0
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +7 -2
- package/lib/color-picker/src/ColorPicker.js +3 -4
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.js +1 -0
- package/lib/color-picker/src/context.d.ts +3 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +9 -8
- package/lib/data-table/src/DataTable.js +7 -6
- package/lib/data-table/src/TableParts/Body.d.ts +1 -3
- package/lib/data-table/src/interface.d.ts +7 -2
- package/lib/data-table/src/styles/index.cssr.js +1 -0
- package/lib/data-table/src/use-group-header.js +4 -3
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +27 -5
- package/lib/date-picker/src/DatePicker.js +1 -0
- package/lib/date-picker/src/interface.d.ts +3 -2
- package/lib/date-picker/src/panel/date.d.ts +1 -3
- package/lib/date-picker/src/panel/date.js +15 -7
- package/lib/date-picker/src/panel/daterange.d.ts +1 -3
- package/lib/date-picker/src/panel/daterange.js +27 -11
- package/lib/date-picker/src/panel/datetime.d.ts +1 -3
- package/lib/date-picker/src/panel/datetime.js +16 -8
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/lib/date-picker/src/panel/datetimerange.js +27 -11
- package/lib/date-picker/src/panel/month.d.ts +1 -3
- package/lib/date-picker/src/panel/month.js +6 -6
- package/lib/date-picker/src/panel/monthrange.d.ts +1 -3
- package/lib/date-picker/src/panel/monthrange.js +5 -3
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/lib/date-picker/src/props.d.ts +1 -1
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +7 -3
- package/lib/descriptions/src/Descriptions.js +1 -0
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/lib/descriptions/src/DescriptionsItem.js +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/src/Dialog.d.ts +9 -2
- package/lib/dialog/src/Dialog.js +1 -0
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -1
- package/lib/dialog/src/DialogEnvironment.js +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +8 -2
- package/lib/drawer/index.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +7 -2
- package/lib/drawer/src/DrawerContent.js +1 -0
- package/lib/dynamic-input/index.d.ts +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-input/src/interface.d.ts +11 -0
- package/lib/dynamic-tags/index.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/lib/dynamic-tags/src/DynamicTags.js +1 -0
- package/lib/dynamic-tags/src/interface.d.ts +8 -0
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +6 -2
- package/lib/ellipsis/src/Ellipsis.js +1 -0
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +7 -2
- package/lib/empty/src/Empty.js +1 -0
- package/lib/float-button/index.d.ts +1 -1
- package/lib/float-button/src/FloatButton.d.ts +7 -2
- package/lib/float-button/src/FloatButton.js +1 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/interface.d.ts +0 -1
- package/lib/form/src/public-types.d.ts +1 -0
- package/lib/form/src/public-types.js +2 -0
- package/lib/image/index.d.ts +1 -1
- package/lib/image/src/Image.d.ts +6 -2
- package/lib/image/src/Image.js +2 -2
- package/lib/input/index.d.ts +1 -1
- package/lib/input/src/Input.d.ts +14 -3
- package/lib/input/src/Input.js +9 -8
- package/lib/input/src/WordCount.js +1 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +9 -3
- package/lib/input-number/src/InputNumber.js +1 -0
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +242 -0
- package/lib/input-otp/src/public-types.d.ts +24 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +16 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +81 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/list/index.d.ts +2 -1
- package/lib/list/src/List.d.ts +7 -2
- package/lib/list/src/List.js +1 -0
- package/lib/list/src/ListItem.d.ts +7 -1
- package/lib/list/src/ListItem.js +1 -0
- package/lib/locales/common/kmKH.d.ts +3 -0
- package/lib/locales/common/kmKH.js +126 -0
- package/lib/locales/common/ugCN.d.ts +3 -0
- package/lib/locales/common/ugCN.js +126 -0
- package/lib/locales/date/kmKH.d.ts +3 -0
- package/lib/locales/date/kmKH.js +8 -0
- package/lib/locales/date/ugCN.d.ts +3 -0
- package/lib/locales/date/ugCN.js +8 -0
- package/lib/locales/index.d.ts +3 -0
- package/lib/locales/index.js +8 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +7 -3
- package/lib/mention/src/Mention.js +1 -0
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +20 -5
- package/lib/modal/src/BodyWrapper.js +47 -14
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/ModalEnvironment.d.ts +4 -2
- package/lib/modal/src/ModalProvider.js +0 -6
- package/lib/modal/src/composables.d.ts +13 -1
- package/lib/modal/src/composables.js +100 -0
- package/lib/modal/src/interface.d.ts +6 -0
- package/lib/modal/src/styles/index.cssr.js +5 -1
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +12 -2
- package/lib/page-header/src/PageHeader.js +1 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +12 -3
- package/lib/pagination/src/Pagination.js +3 -2
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -2
- package/lib/popconfirm/src/Popconfirm.js +2 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +8 -2
- package/lib/popover/src/Popover.js +2 -6
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +8 -2
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/src/Result.d.ts +7 -2
- package/lib/result/src/Result.js +1 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +10 -3
- package/lib/select/src/Select.js +1 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +6 -2
- package/lib/slider/src/Slider.js +1 -0
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +7 -2
- package/lib/spin/src/Spin.js +1 -0
- package/lib/split/index.d.ts +1 -1
- package/lib/split/src/Split.d.ts +8 -2
- package/lib/split/src/Split.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +8 -1
- package/lib/statistic/src/Statistic.js +1 -0
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +8 -5
- package/lib/steps/src/Step.js +1 -0
- package/lib/steps/src/Steps.d.ts +8 -3
- package/lib/steps/src/Steps.js +1 -0
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +99 -96
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +10 -2
- package/lib/switch/src/Switch.js +1 -0
- package/lib/tabs/index.d.ts +2 -2
- package/lib/tabs/src/TabPane.d.ts +8 -2
- package/lib/tabs/src/TabPane.js +1 -0
- package/lib/tabs/src/Tabs.d.ts +7 -2
- package/lib/tabs/src/Tabs.js +1 -0
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/src/Tag.d.ts +7 -2
- package/lib/tag/src/Tag.js +1 -0
- package/lib/themes/dark.js +1 -0
- package/lib/themes/light.js +92 -90
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +11 -2
- package/lib/thing/src/Thing.js +1 -0
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +6 -2
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +8 -2
- package/lib/timeline/src/TimelineItem.js +1 -0
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +5 -2
- package/lib/tooltip/src/Tooltip.js +1 -0
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +27 -19
- package/lib/tree/src/Tree.js +6 -4
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +22 -3
- package/lib/tree-select/src/TreeSelect.js +2 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +3 -1
- package/lib/upload/src/Upload.d.ts +11 -8
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.js +7 -2
- package/lib/upload/src/UploadTrigger.d.ts +7 -2
- package/lib/upload/src/UploadTrigger.js +1 -0
- package/lib/upload/src/interface.d.ts +8 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +1 -1
- package/volar.d.ts +3 -2
- package/web-types.json +142 -14
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const kmKH = {
|
|
4
|
+
name: 'km-KH',
|
|
5
|
+
global: {
|
|
6
|
+
undo: 'បោះបង់',
|
|
7
|
+
redo: 'ធ្វើឡើងវិញ',
|
|
8
|
+
confirm: 'បញ្ជាក់',
|
|
9
|
+
clear: 'ច្បាស់'
|
|
10
|
+
},
|
|
11
|
+
Popconfirm: {
|
|
12
|
+
positiveText: 'បញ្ជាក់',
|
|
13
|
+
negativeText: 'បោះបង់'
|
|
14
|
+
},
|
|
15
|
+
Cascader: {
|
|
16
|
+
placeholder: 'សូមជ្រើសរើស',
|
|
17
|
+
loading: 'ការផ្ទុក',
|
|
18
|
+
loadingRequiredMessage: (label) => `អាចជ្រើសរើសបានតែបន្ទាប់ពីផ្ទុកថ្នាំងកូន ${label} ទាំងអស់។`
|
|
19
|
+
},
|
|
20
|
+
Time: {
|
|
21
|
+
dateFormat: 'yyyy-MM-dd',
|
|
22
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
|
|
23
|
+
},
|
|
24
|
+
DatePicker: {
|
|
25
|
+
yearFormat: 'yyyyឆ្នាំ',
|
|
26
|
+
monthFormat: 'MMM',
|
|
27
|
+
dayFormat: 'eeeeee',
|
|
28
|
+
yearTypeFormat: 'yyyy',
|
|
29
|
+
monthTypeFormat: 'yyyy-MM',
|
|
30
|
+
dateFormat: 'yyyy-MM-dd',
|
|
31
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
32
|
+
quarterFormat: 'yyyy-qqq',
|
|
33
|
+
weekFormat: 'YYYY-wសប្តាហ៍',
|
|
34
|
+
clear: 'ច្បាស់',
|
|
35
|
+
now: 'ឥឡូវនេះ',
|
|
36
|
+
confirm: 'បញ្ជាក់',
|
|
37
|
+
selectTime: 'ជ្រើសរើសកាលបរិច្ឆេទ',
|
|
38
|
+
selectDate: 'ជ្រើសរើសកាលបរិច្ឆេទ',
|
|
39
|
+
datePlaceholder: 'ជ្រើសរើសកាលបរិច្ឆេទ',
|
|
40
|
+
datetimePlaceholder: 'ជ្រើសរើសពេលវេលាកាលបរិច្ឆេទ',
|
|
41
|
+
monthPlaceholder: 'ជ្រើសរើសខែ',
|
|
42
|
+
yearPlaceholder: 'ជ្រើសរើសឆ្នាំ',
|
|
43
|
+
quarterPlaceholder: 'ជ្រើសរើសត្រីមាស',
|
|
44
|
+
weekPlaceholder: 'ជ្រើសរើសសប្តាហ៍',
|
|
45
|
+
startDatePlaceholder: 'កាលបរិច្ឆេទចាប់ផ្តើម',
|
|
46
|
+
endDatePlaceholder: 'កាលបរិច្ឆេទបញ្ចប់',
|
|
47
|
+
startDatetimePlaceholder: 'កាលបរិច្ឆេទចាប់ផ្តើម',
|
|
48
|
+
endDatetimePlaceholder: 'កាលបរិច្ឆេទបញ្ចប់',
|
|
49
|
+
startMonthPlaceholder: 'ខែចាប់ផ្តើម',
|
|
50
|
+
endMonthPlaceholder: 'ចុងខែ',
|
|
51
|
+
monthBeforeYear: false,
|
|
52
|
+
firstDayOfWeek: 0,
|
|
53
|
+
today: 'ថ្ងៃនេះ'
|
|
54
|
+
},
|
|
55
|
+
DataTable: {
|
|
56
|
+
checkTableAll: 'ជ្រើសរើសទិន្នន័យតារាងទាំងអស់។',
|
|
57
|
+
uncheckTableAll: 'ដកការជ្រើសរើសទិន្នន័យតារាងទាំងអស់។',
|
|
58
|
+
confirm: 'បញ្ជាក់',
|
|
59
|
+
clear: 'កំណត់ឡើងវិញ'
|
|
60
|
+
},
|
|
61
|
+
LegacyTransfer: {
|
|
62
|
+
sourceTitle: 'ធាតុប្រភព',
|
|
63
|
+
targetTitle: 'ធាតុគោលដៅ'
|
|
64
|
+
},
|
|
65
|
+
Transfer: {
|
|
66
|
+
selectAll: 'ជ្រើសរើសទាំងអស់។',
|
|
67
|
+
clearAll: 'ច្បាស់',
|
|
68
|
+
unselectAll: 'ដកការជ្រើសរើសទាំងអស់។',
|
|
69
|
+
total: (num) => `ទូទៅ ${num} ធាតុ`,
|
|
70
|
+
selected: (num) => `បានជ្រើសរើស ${num} ធាតុ`
|
|
71
|
+
},
|
|
72
|
+
Empty: {
|
|
73
|
+
description: 'គ្មានទិន្នន័យ'
|
|
74
|
+
},
|
|
75
|
+
Select: {
|
|
76
|
+
placeholder: 'សូមជ្រើសរើស'
|
|
77
|
+
},
|
|
78
|
+
TimePicker: {
|
|
79
|
+
placeholder: 'សូមជ្រើសរើសពេលវេលាមួយ។',
|
|
80
|
+
positiveText: 'បញ្ជាក់',
|
|
81
|
+
negativeText: 'បោះបង់',
|
|
82
|
+
now: 'ឥឡូវនេះ',
|
|
83
|
+
clear: 'ច្បាស់'
|
|
84
|
+
},
|
|
85
|
+
Pagination: {
|
|
86
|
+
goto: 'លោតទៅ',
|
|
87
|
+
selectionSuffix: 'ទំព័រ'
|
|
88
|
+
},
|
|
89
|
+
DynamicTags: {
|
|
90
|
+
add: 'បន្ថែមទៅ'
|
|
91
|
+
},
|
|
92
|
+
Log: {
|
|
93
|
+
loading: 'ការផ្ទុក'
|
|
94
|
+
},
|
|
95
|
+
Input: {
|
|
96
|
+
placeholder: 'សូមបញ្ចូល'
|
|
97
|
+
},
|
|
98
|
+
InputNumber: {
|
|
99
|
+
placeholder: 'សូមបញ្ចូល'
|
|
100
|
+
},
|
|
101
|
+
DynamicInput: {
|
|
102
|
+
create: 'បន្ថែមទៅ'
|
|
103
|
+
},
|
|
104
|
+
ThemeEditor: {
|
|
105
|
+
title: 'កម្មវិធីនិពន្ធប្រធានបទ',
|
|
106
|
+
clearAllVars: 'សម្អាតអថេរទាំងអស់។',
|
|
107
|
+
clearSearch: 'ជម្រះការស្វែងរក',
|
|
108
|
+
filterCompName: 'តម្រងឈ្មោះសមាសភាគ',
|
|
109
|
+
filterVarName: 'ត្រងឈ្មោះអថេរ',
|
|
110
|
+
import: 'នាំចូល',
|
|
111
|
+
export: 'នាំចេញ',
|
|
112
|
+
restore: 'ស្តារលំនាំដើម'
|
|
113
|
+
},
|
|
114
|
+
Image: {
|
|
115
|
+
tipPrevious: 'រូបភាពមុន។(←)',
|
|
116
|
+
tipNext: 'បន្ទាប់(→)',
|
|
117
|
+
tipCounterclockwise: 'បង្វិលឆ្វេង',
|
|
118
|
+
tipClockwise: 'បង្វិលស្តាំ',
|
|
119
|
+
tipZoomOut: 'បង្រួម ',
|
|
120
|
+
tipZoomIn: 'ពង្រីក',
|
|
121
|
+
tipDownload: 'ទាញយក',
|
|
122
|
+
tipClose: 'ការបិទ(Esc)',
|
|
123
|
+
tipOriginalSize: 'ធ្វើមាត្រដ្ឋានទៅទំហំដើម'
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
exports.default = kmKH;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const ugCN = {
|
|
4
|
+
name: 'ug-CN',
|
|
5
|
+
global: {
|
|
6
|
+
undo: 'قالدۇرۇش',
|
|
7
|
+
redo: 'قايتا',
|
|
8
|
+
confirm: 'جەزملەش',
|
|
9
|
+
clear: 'تازلاش'
|
|
10
|
+
},
|
|
11
|
+
Popconfirm: {
|
|
12
|
+
positiveText: 'جەزملەش',
|
|
13
|
+
negativeText: 'بىكار قىلىش'
|
|
14
|
+
},
|
|
15
|
+
Cascader: {
|
|
16
|
+
placeholder: 'تاللاڭ',
|
|
17
|
+
loading: 'يۈكلەۋاتىدۇ',
|
|
18
|
+
loadingRequiredMessage: (label) => `جەمئى ${label} تۈگۈننى يۈكلەپ بولغاندىن كېيىن تاللىغىلى بولىدۇ`
|
|
19
|
+
},
|
|
20
|
+
Time: {
|
|
21
|
+
dateFormat: 'yyyy-MM-dd',
|
|
22
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
|
|
23
|
+
},
|
|
24
|
+
DatePicker: {
|
|
25
|
+
yearFormat: 'yyyy-يىل',
|
|
26
|
+
monthFormat: 'MMM',
|
|
27
|
+
dayFormat: 'eeeeee',
|
|
28
|
+
yearTypeFormat: 'yyyy',
|
|
29
|
+
monthTypeFormat: 'yyyy-MM',
|
|
30
|
+
dateFormat: 'yyyy-MM-dd',
|
|
31
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
32
|
+
quarterFormat: 'yyyy-qqq',
|
|
33
|
+
weekFormat: 'YYYY-wھەپتە',
|
|
34
|
+
clear: 'تازلاش',
|
|
35
|
+
now: 'مۇشۇ ۋاقىت',
|
|
36
|
+
confirm: 'جەزملەش',
|
|
37
|
+
selectTime: 'ۋاقىت تاللاڭ',
|
|
38
|
+
selectDate: 'چىسلا تاللاڭ',
|
|
39
|
+
datePlaceholder: 'چىسلا تاللاڭ',
|
|
40
|
+
datetimePlaceholder: 'چىسلا ۋاقىت تاللاڭ',
|
|
41
|
+
monthPlaceholder: 'ئاي تاللاڭ',
|
|
42
|
+
yearPlaceholder: 'يىل تاللاڭ',
|
|
43
|
+
quarterPlaceholder: 'پەسىل تاللاڭ',
|
|
44
|
+
weekPlaceholder: 'ھەپتە تاللاڭ',
|
|
45
|
+
startDatePlaceholder: 'باشلىنىش ۋاقتى',
|
|
46
|
+
endDatePlaceholder: 'ئاخىرلىشىش ۋاقتى',
|
|
47
|
+
startDatetimePlaceholder: 'باشلىندىغان چىسلا ۋاقىت',
|
|
48
|
+
endDatetimePlaceholder: 'ئاخىرلىشىدىغان چىسلا ۋاقىت',
|
|
49
|
+
startMonthPlaceholder: 'باشلىندىغان ئاي',
|
|
50
|
+
endMonthPlaceholder: 'ئاخىرلىشىدىغان ئاي',
|
|
51
|
+
monthBeforeYear: false,
|
|
52
|
+
firstDayOfWeek: 0,
|
|
53
|
+
today: 'بۈگۈن'
|
|
54
|
+
},
|
|
55
|
+
DataTable: {
|
|
56
|
+
checkTableAll: 'ھەممە ئۇچۇرنى تاللاش',
|
|
57
|
+
uncheckTableAll: 'تاللاشنى بىكار قىلىش',
|
|
58
|
+
confirm: 'جەزملەش',
|
|
59
|
+
clear: 'تازلاش'
|
|
60
|
+
},
|
|
61
|
+
LegacyTransfer: {
|
|
62
|
+
sourceTitle: 'ئەسلى تۈر',
|
|
63
|
+
targetTitle: 'نىشان تۈر'
|
|
64
|
+
},
|
|
65
|
+
Transfer: {
|
|
66
|
+
selectAll: 'ھەممىنى تاللاش',
|
|
67
|
+
clearAll: 'تازلاش',
|
|
68
|
+
unselectAll: 'ھەممىنى بىكار قىلىش',
|
|
69
|
+
total: (num) => `جەمئى ${num} تۈر`,
|
|
70
|
+
selected: (num) => `${num} تۈر تاللاندى`
|
|
71
|
+
},
|
|
72
|
+
Empty: {
|
|
73
|
+
description: 'ئۇچۇر يوق'
|
|
74
|
+
},
|
|
75
|
+
Select: {
|
|
76
|
+
placeholder: 'تاللاڭ'
|
|
77
|
+
},
|
|
78
|
+
TimePicker: {
|
|
79
|
+
placeholder: 'ۋاقىت تاللاڭ',
|
|
80
|
+
positiveText: 'جەزملەش',
|
|
81
|
+
negativeText: 'بىكار قىلىش',
|
|
82
|
+
now: 'مۇشۇ ۋاقىت',
|
|
83
|
+
clear: 'تازلاش'
|
|
84
|
+
},
|
|
85
|
+
Pagination: {
|
|
86
|
+
goto: 'ئاتلاش',
|
|
87
|
+
selectionSuffix: 'بەت'
|
|
88
|
+
},
|
|
89
|
+
DynamicTags: {
|
|
90
|
+
add: 'قوشۇش'
|
|
91
|
+
},
|
|
92
|
+
Log: {
|
|
93
|
+
loading: 'يۈكلەۋاتىدۇ'
|
|
94
|
+
},
|
|
95
|
+
Input: {
|
|
96
|
+
placeholder: 'كىرگۈزۈڭ'
|
|
97
|
+
},
|
|
98
|
+
InputNumber: {
|
|
99
|
+
placeholder: 'كىرگۈزۈڭ'
|
|
100
|
+
},
|
|
101
|
+
DynamicInput: {
|
|
102
|
+
create: 'قوشۇش'
|
|
103
|
+
},
|
|
104
|
+
ThemeEditor: {
|
|
105
|
+
title: 'ئۇسلوب تەھرىرلىگۈچ',
|
|
106
|
+
clearAllVars: 'ھەممە پارامىتىرنى تازلاش',
|
|
107
|
+
clearSearch: 'ئىزدەشنى تازلاش',
|
|
108
|
+
filterCompName: 'ۋىجىت ئىسمىنى فىلتىرلاش',
|
|
109
|
+
filterVarName: 'پارامىتېرنى فىلتىرلاش',
|
|
110
|
+
import: 'ئەكىرىش',
|
|
111
|
+
export: 'چىقىرىش',
|
|
112
|
+
restore: 'ئەسلىگە قايتۇرۇش'
|
|
113
|
+
},
|
|
114
|
+
Image: {
|
|
115
|
+
tipPrevious: '(←)ئالدىنقىسى',
|
|
116
|
+
tipNext: 'كېيىنكىسى(→)',
|
|
117
|
+
tipCounterclockwise: 'سولغا چۆرۈش',
|
|
118
|
+
tipClockwise: 'ئوڭغا چۆرۈش',
|
|
119
|
+
tipZoomOut: 'كىچىكلىتىش',
|
|
120
|
+
tipZoomIn: 'چوڭايتىش',
|
|
121
|
+
tipDownload: 'چۈشۈرۈش',
|
|
122
|
+
tipClose: 'تاقاش(Esc)',
|
|
123
|
+
tipOriginalSize: 'ئەسلىگە قايتۇرۇش'
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
exports.default = ugCN;
|
package/lib/locales/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { default as frFR } from './common/frFR';
|
|
|
13
13
|
export { default as idID } from './common/idID';
|
|
14
14
|
export { default as itIT } from './common/itIT';
|
|
15
15
|
export { default as jaJP } from './common/jaJP';
|
|
16
|
+
export { default as kmKH } from './common/kmKH';
|
|
16
17
|
export { default as koKR } from './common/koKR';
|
|
17
18
|
export { default as nbNO } from './common/nbNO';
|
|
18
19
|
export { default as nlNL } from './common/nlNL';
|
|
@@ -43,6 +44,7 @@ export { default as dateFrFR } from './date/frFR';
|
|
|
43
44
|
export { default as dateIdID } from './date/idID';
|
|
44
45
|
export { default as dateItIT } from './date/itIT';
|
|
45
46
|
export { default as dateJaJP } from './date/jaJP';
|
|
47
|
+
export { default as dateKmKH } from './date/kmKH';
|
|
46
48
|
export { default as dateKoKR } from './date/koKR';
|
|
47
49
|
export { default as dateNbNO } from './date/nbNO';
|
|
48
50
|
export { default as dateNlNL } from './date/nlNL';
|
|
@@ -53,6 +55,7 @@ export { default as dateSkSK } from './date/skSK';
|
|
|
53
55
|
export { default as dateSvSE } from './date/svSE';
|
|
54
56
|
export { default as dateThTH } from './date/thTH';
|
|
55
57
|
export { default as dateTrTR } from './date/trTR';
|
|
58
|
+
export { default as dateUgCN } from './date/ugCN';
|
|
56
59
|
export { default as dateUkUA } from './date/ukUA';
|
|
57
60
|
export { default as dateUzUZ } from './date/uzUZ';
|
|
58
61
|
export { default as dateViVN } from './date/viVN';
|
package/lib/locales/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.createLocale = exports.dateZhTW = exports.dateZhCN = exports.dateViVN = exports.dateUzUZ = exports.dateUkUA = exports.dateTrTR = exports.dateThTH = exports.dateSvSE = void 0;
|
|
6
|
+
exports.datePtBR = exports.datePlPL = exports.dateNlNL = exports.dateNbNO = exports.dateKoKR = exports.dateKmKH = exports.dateJaJP = exports.dateItIT = exports.dateIdID = exports.dateFrFR = exports.dateFaIR = exports.dateEtEE = exports.dateEsAR = exports.dateEo = exports.dateEnUS = exports.dateEnGB = exports.dateDeDE = exports.dateCsCZ = exports.dateAzAZ = exports.dateArDZ = exports.zhTW = exports.zhCN = exports.viVN = exports.uzUZ = exports.ukUA = exports.trTR = exports.thTH = exports.svSE = exports.skSK = exports.ruRU = exports.ptBR = exports.plPL = exports.nlNL = exports.nbNO = exports.koKR = exports.kmKH = exports.jaJP = exports.itIT = exports.idID = exports.frFR = exports.faIR = exports.etEE = exports.esAR = exports.eo = exports.enUS = exports.enGB = exports.deDE = exports.csCZ = exports.azAZ = exports.arDZ = void 0;
|
|
7
|
+
exports.createLocale = exports.dateZhTW = exports.dateZhCN = exports.dateViVN = exports.dateUzUZ = exports.dateUkUA = exports.dateUgCN = exports.dateTrTR = exports.dateThTH = exports.dateSvSE = exports.dateSkSK = exports.dateRuRU = void 0;
|
|
8
8
|
var arDZ_1 = require("./common/arDZ");
|
|
9
9
|
Object.defineProperty(exports, "arDZ", { enumerable: true, get: function () { return __importDefault(arDZ_1).default; } });
|
|
10
10
|
var azAZ_1 = require("./common/azAZ");
|
|
@@ -33,6 +33,8 @@ var itIT_1 = require("./common/itIT");
|
|
|
33
33
|
Object.defineProperty(exports, "itIT", { enumerable: true, get: function () { return __importDefault(itIT_1).default; } });
|
|
34
34
|
var jaJP_1 = require("./common/jaJP");
|
|
35
35
|
Object.defineProperty(exports, "jaJP", { enumerable: true, get: function () { return __importDefault(jaJP_1).default; } });
|
|
36
|
+
var kmKH_1 = require("./common/kmKH");
|
|
37
|
+
Object.defineProperty(exports, "kmKH", { enumerable: true, get: function () { return __importDefault(kmKH_1).default; } });
|
|
36
38
|
var koKR_1 = require("./common/koKR");
|
|
37
39
|
Object.defineProperty(exports, "koKR", { enumerable: true, get: function () { return __importDefault(koKR_1).default; } });
|
|
38
40
|
var nbNO_1 = require("./common/nbNO");
|
|
@@ -91,6 +93,8 @@ var itIT_2 = require("./date/itIT");
|
|
|
91
93
|
Object.defineProperty(exports, "dateItIT", { enumerable: true, get: function () { return __importDefault(itIT_2).default; } });
|
|
92
94
|
var jaJP_2 = require("./date/jaJP");
|
|
93
95
|
Object.defineProperty(exports, "dateJaJP", { enumerable: true, get: function () { return __importDefault(jaJP_2).default; } });
|
|
96
|
+
var kmKH_2 = require("./date/kmKH");
|
|
97
|
+
Object.defineProperty(exports, "dateKmKH", { enumerable: true, get: function () { return __importDefault(kmKH_2).default; } });
|
|
94
98
|
var koKR_2 = require("./date/koKR");
|
|
95
99
|
Object.defineProperty(exports, "dateKoKR", { enumerable: true, get: function () { return __importDefault(koKR_2).default; } });
|
|
96
100
|
var nbNO_2 = require("./date/nbNO");
|
|
@@ -111,6 +115,8 @@ var thTH_2 = require("./date/thTH");
|
|
|
111
115
|
Object.defineProperty(exports, "dateThTH", { enumerable: true, get: function () { return __importDefault(thTH_2).default; } });
|
|
112
116
|
var trTR_2 = require("./date/trTR");
|
|
113
117
|
Object.defineProperty(exports, "dateTrTR", { enumerable: true, get: function () { return __importDefault(trTR_2).default; } });
|
|
118
|
+
var ugCN_1 = require("./date/ugCN");
|
|
119
|
+
Object.defineProperty(exports, "dateUgCN", { enumerable: true, get: function () { return __importDefault(ugCN_1).default; } });
|
|
114
120
|
var ukUA_2 = require("./date/ukUA");
|
|
115
121
|
Object.defineProperty(exports, "dateUkUA", { enumerable: true, get: function () { return __importDefault(ukUA_2).default; } });
|
|
116
122
|
var uzUZ_2 = require("./date/uzUZ");
|
package/lib/mention/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { RenderLabel } from '../../_internal/select-menu/src/interface';
|
|
2
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
3
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
4
4
|
import type { Size as InputSize } from '../../input/src/interface';
|
|
5
5
|
import type { SelectBaseOption, SelectGroupOption, SelectIgnoredOption } from '../../select/src/interface';
|
|
6
6
|
import type { MentionOption } from './interface';
|
|
7
7
|
import { type TreeNode } from 'treemate';
|
|
8
|
-
import { type PropType } from 'vue';
|
|
8
|
+
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
9
9
|
import { type FollowerInst, type FollowerPlacement } from 'vueuc';
|
|
10
10
|
export declare const mentionProps: {
|
|
11
11
|
readonly to: {
|
|
@@ -469,6 +469,10 @@ export declare const mentionProps: {
|
|
|
469
469
|
}>>>;
|
|
470
470
|
};
|
|
471
471
|
export type MentionProps = ExtractPublicPropTypes<typeof mentionProps>;
|
|
472
|
+
export interface MentionSlots {
|
|
473
|
+
default?: () => VNode[];
|
|
474
|
+
empty?: () => VNode[];
|
|
475
|
+
}
|
|
472
476
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
473
477
|
readonly to: {
|
|
474
478
|
type: PropType<HTMLElement | string | boolean>;
|
|
@@ -1662,5 +1666,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1662
1666
|
readonly placement: FollowerPlacement;
|
|
1663
1667
|
readonly defaultValue: string;
|
|
1664
1668
|
readonly internalDebug: boolean;
|
|
1665
|
-
},
|
|
1669
|
+
}, SlotsType<MentionSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1666
1670
|
export default _default;
|
|
@@ -65,6 +65,7 @@ exports.mentionProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props)
|
|
|
65
65
|
exports.default = (0, vue_1.defineComponent)({
|
|
66
66
|
name: 'Mention',
|
|
67
67
|
props: exports.mentionProps,
|
|
68
|
+
slots: Object,
|
|
68
69
|
setup(props) {
|
|
69
70
|
const { namespaceRef, mergedClsPrefixRef, mergedBorderedRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
70
71
|
const themeRef = (0, _mixins_1.useTheme)('Mention', '-mention', index_cssr_1.default, styles_1.mentionLight, props, mergedClsPrefixRef);
|
package/lib/modal/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useModal, useModalReactiveList } from './src/composables';
|
|
2
2
|
export { modalProps, default as NModal } from './src/Modal';
|
|
3
|
-
export type { ModalProps } from './src/Modal';
|
|
3
|
+
export type { ModalProps, ModalSlots } from './src/Modal';
|
|
4
4
|
export { modalProviderProps, NModalProvider } from './src/ModalProvider';
|
|
5
5
|
export type { ModalApiInjection as ModalApi, ModalOptions, ModalProviderInst, ModalProviderProps, ModalReactive } from './src/ModalProvider';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ModalDraggableOptions } from './interface';
|
|
2
|
+
import type { ModalSlots } from './Modal';
|
|
3
|
+
import { type ComponentPublicInstance, type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
|
|
2
4
|
import { type ScrollbarInst } from '../../_internal';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
6
|
renderMask: PropType<() => VNodeChild>;
|
|
@@ -23,7 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
23
25
|
type: FunctionConstructor;
|
|
24
26
|
required: true;
|
|
25
27
|
};
|
|
26
|
-
onAfterEnter: PropType<() => void>;
|
|
28
|
+
onAfterEnter: PropType<(el: HTMLElement) => void>;
|
|
27
29
|
onEsc: PropType<(e: KeyboardEvent) => void>;
|
|
28
30
|
icon: PropType<() => VNodeChild>;
|
|
29
31
|
type: {
|
|
@@ -96,6 +98,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
96
98
|
default: boolean;
|
|
97
99
|
};
|
|
98
100
|
blockScroll: BooleanConstructor;
|
|
101
|
+
draggable: {
|
|
102
|
+
type: PropType<boolean | ModalDraggableOptions>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
99
105
|
}>, {
|
|
100
106
|
mergedTheme: import("vue").Ref<{
|
|
101
107
|
common: import("../..").ThemeCommonVars;
|
|
@@ -1155,15 +1161,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1155
1161
|
handleMouseEnterWrapper: () => void;
|
|
1156
1162
|
handleMouseLeaveWrapper: () => void;
|
|
1157
1163
|
} | null>;
|
|
1164
|
+
draggableClass: import("vue").ComputedRef<"" | "n-draggable">;
|
|
1158
1165
|
displayed: import("vue").Ref<boolean, boolean>;
|
|
1159
1166
|
childNodeRef: import("vue").Ref<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1160
1167
|
[key: string]: any;
|
|
1161
1168
|
}> | null, VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1162
1169
|
[key: string]: any;
|
|
1163
1170
|
}> | null>;
|
|
1171
|
+
cardHeaderClass: import("vue").ComputedRef<string>;
|
|
1172
|
+
dialogTitleClass: import("vue").ComputedRef<string>;
|
|
1164
1173
|
handlePositiveClick: () => void;
|
|
1165
1174
|
handleNegativeClick: () => void;
|
|
1166
1175
|
handleCloseClick: () => void;
|
|
1176
|
+
handleAfterEnter: (el: Element) => void;
|
|
1167
1177
|
handleAfterLeave: () => void;
|
|
1168
1178
|
handleBeforeLeave: (el: HTMLElement) => void;
|
|
1169
1179
|
handleEnter: (el: HTMLElement) => void;
|
|
@@ -1190,7 +1200,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1190
1200
|
type: FunctionConstructor;
|
|
1191
1201
|
required: true;
|
|
1192
1202
|
};
|
|
1193
|
-
onAfterEnter: PropType<() => void>;
|
|
1203
|
+
onAfterEnter: PropType<(el: HTMLElement) => void>;
|
|
1194
1204
|
onEsc: PropType<(e: KeyboardEvent) => void>;
|
|
1195
1205
|
icon: PropType<() => VNodeChild>;
|
|
1196
1206
|
type: {
|
|
@@ -1263,10 +1273,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1263
1273
|
default: boolean;
|
|
1264
1274
|
};
|
|
1265
1275
|
blockScroll: BooleanConstructor;
|
|
1276
|
+
draggable: {
|
|
1277
|
+
type: PropType<boolean | ModalDraggableOptions>;
|
|
1278
|
+
default: boolean;
|
|
1279
|
+
};
|
|
1266
1280
|
}>> & Readonly<{}>, {
|
|
1267
1281
|
type: "error" | "default" | "info" | "success" | "warning";
|
|
1268
1282
|
tag: keyof HTMLElementTagNameMap;
|
|
1269
1283
|
size: "small" | "medium" | "large" | "huge";
|
|
1284
|
+
draggable: boolean | ModalDraggableOptions;
|
|
1270
1285
|
loading: boolean;
|
|
1271
1286
|
autoFocus: boolean;
|
|
1272
1287
|
bordered: boolean;
|
|
@@ -1275,7 +1290,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1275
1290
|
hoverable: boolean;
|
|
1276
1291
|
embedded: boolean;
|
|
1277
1292
|
segmented: boolean | import("../../card").CardSegmented;
|
|
1278
|
-
blockScroll: boolean;
|
|
1279
1293
|
trapFocus: boolean;
|
|
1280
|
-
|
|
1294
|
+
blockScroll: boolean;
|
|
1295
|
+
}, SlotsType<ModalSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1281
1296
|
export default _default;
|
|
@@ -11,11 +11,13 @@ const Dialog_1 = require("../../dialog/src/Dialog");
|
|
|
11
11
|
const dialogProps_1 = require("../../dialog/src/dialogProps");
|
|
12
12
|
const interface_1 = require("../../drawer/src/interface");
|
|
13
13
|
const interface_2 = require("../../popover/src/interface");
|
|
14
|
+
const composables_1 = require("./composables");
|
|
14
15
|
const interface_3 = require("./interface");
|
|
15
16
|
const presetProps_1 = require("./presetProps");
|
|
16
17
|
exports.default = (0, vue_1.defineComponent)({
|
|
17
18
|
name: 'ModalBody',
|
|
18
19
|
inheritAttrs: false,
|
|
20
|
+
slots: Object,
|
|
19
21
|
props: Object.assign(Object.assign({ show: {
|
|
20
22
|
type: Boolean,
|
|
21
23
|
required: true
|
|
@@ -28,7 +30,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
28
30
|
}, autoFocus: {
|
|
29
31
|
type: Boolean,
|
|
30
32
|
default: true
|
|
31
|
-
}, blockScroll: Boolean
|
|
33
|
+
}, blockScroll: Boolean, draggable: {
|
|
34
|
+
type: [Boolean, Object],
|
|
35
|
+
default: false
|
|
36
|
+
} }, presetProps_1.presetProps), { renderMask: Function,
|
|
32
37
|
// events
|
|
33
38
|
onClickoutside: Function, onBeforeLeave: {
|
|
34
39
|
type: Function,
|
|
@@ -52,12 +57,31 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
52
57
|
const displayedRef = (0, vue_1.ref)(props.show);
|
|
53
58
|
const transformOriginXRef = (0, vue_1.ref)(null);
|
|
54
59
|
const transformOriginYRef = (0, vue_1.ref)(null);
|
|
60
|
+
const NModal = (0, vue_1.inject)(interface_3.modalInjectionKey);
|
|
61
|
+
let mousePosition = null;
|
|
62
|
+
(0, vue_1.watch)((0, vue_1.toRef)(props, 'show'), (value) => {
|
|
63
|
+
if (value) {
|
|
64
|
+
mousePosition = NModal.getMousePosition();
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
immediate: true
|
|
68
|
+
});
|
|
69
|
+
const { stopDrag, startDrag, draggableRef, draggableClassRef } = (0, composables_1.useDragModal)((0, vue_1.toRef)(props, 'draggable'), {
|
|
70
|
+
onEnd: (el) => {
|
|
71
|
+
syncTransformOrigin(el);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const dialogTitleClassRef = (0, vue_1.computed)(() => {
|
|
75
|
+
return (0, vue_1.normalizeClass)([props.titleClass, draggableClassRef.value]);
|
|
76
|
+
});
|
|
77
|
+
const cardHeaderClassRef = (0, vue_1.computed)(() => {
|
|
78
|
+
return (0, vue_1.normalizeClass)([props.headerClass, draggableClassRef.value]);
|
|
79
|
+
});
|
|
55
80
|
(0, vue_1.watch)((0, vue_1.toRef)(props, 'show'), (value) => {
|
|
56
81
|
if (value)
|
|
57
82
|
displayedRef.value = true;
|
|
58
83
|
});
|
|
59
84
|
(0, _utils_1.useLockHtmlScroll)((0, vue_1.computed)(() => props.blockScroll && displayedRef.value));
|
|
60
|
-
const NModal = (0, vue_1.inject)(interface_3.modalInjectionKey);
|
|
61
85
|
function styleTransformOrigin() {
|
|
62
86
|
if (NModal.transformOriginRef.value === 'center') {
|
|
63
87
|
return '';
|
|
@@ -77,7 +101,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
77
101
|
if (NModal.transformOriginRef.value === 'center') {
|
|
78
102
|
return;
|
|
79
103
|
}
|
|
80
|
-
const mousePosition = NModal.getMousePosition();
|
|
81
104
|
if (!mousePosition) {
|
|
82
105
|
return;
|
|
83
106
|
}
|
|
@@ -85,12 +108,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
85
108
|
return;
|
|
86
109
|
const scrollTop = scrollbarRef.value.containerScrollTop;
|
|
87
110
|
const { offsetLeft, offsetTop } = el;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
transformOriginYRef.value = -(offsetTop - top - scrollTop);
|
|
93
|
-
}
|
|
111
|
+
const top = mousePosition.y;
|
|
112
|
+
const left = mousePosition.x;
|
|
113
|
+
transformOriginXRef.value = -(offsetLeft - left);
|
|
114
|
+
transformOriginYRef.value = -(offsetTop - top - scrollTop);
|
|
94
115
|
el.style.transformOrigin = styleTransformOrigin();
|
|
95
116
|
}
|
|
96
117
|
function handleEnter(el) {
|
|
@@ -102,10 +123,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
102
123
|
el.style.transformOrigin = styleTransformOrigin();
|
|
103
124
|
props.onBeforeLeave();
|
|
104
125
|
}
|
|
126
|
+
function handleAfterEnter(el) {
|
|
127
|
+
const element = el;
|
|
128
|
+
draggableRef.value && startDrag(element);
|
|
129
|
+
props.onAfterEnter && props.onAfterEnter(element);
|
|
130
|
+
}
|
|
105
131
|
function handleAfterLeave() {
|
|
106
132
|
displayedRef.value = false;
|
|
107
133
|
transformOriginXRef.value = null;
|
|
108
134
|
transformOriginYRef.value = null;
|
|
135
|
+
stopDrag();
|
|
109
136
|
props.onAfterLeave();
|
|
110
137
|
}
|
|
111
138
|
function handleCloseClick() {
|
|
@@ -141,21 +168,27 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
141
168
|
mergedClsPrefix: NModal.mergedClsPrefixRef,
|
|
142
169
|
bodyRef,
|
|
143
170
|
scrollbarRef,
|
|
171
|
+
draggableClass: draggableClassRef,
|
|
144
172
|
displayed: displayedRef,
|
|
145
173
|
childNodeRef,
|
|
174
|
+
cardHeaderClass: cardHeaderClassRef,
|
|
175
|
+
dialogTitleClass: dialogTitleClassRef,
|
|
146
176
|
handlePositiveClick,
|
|
147
177
|
handleNegativeClick,
|
|
148
178
|
handleCloseClick,
|
|
179
|
+
handleAfterEnter,
|
|
149
180
|
handleAfterLeave,
|
|
150
181
|
handleBeforeLeave,
|
|
151
182
|
handleEnter
|
|
152
183
|
};
|
|
153
184
|
},
|
|
154
185
|
render() {
|
|
155
|
-
const { $slots, $attrs, handleEnter, handleAfterLeave, handleBeforeLeave, preset, mergedClsPrefix } = this;
|
|
186
|
+
const { $slots, $attrs, handleEnter, handleAfterEnter, handleAfterLeave, handleBeforeLeave, preset, mergedClsPrefix } = this;
|
|
156
187
|
let childNode = null;
|
|
157
188
|
if (!preset) {
|
|
158
|
-
childNode = (0, _utils_1.
|
|
189
|
+
childNode = (0, _utils_1.getFirstSlotVNodeWithTypedProps)('default', $slots.default, {
|
|
190
|
+
draggableClass: this.draggableClass
|
|
191
|
+
});
|
|
159
192
|
if (!childNode) {
|
|
160
193
|
(0, _utils_1.warn)('modal', 'default slot is empty');
|
|
161
194
|
return;
|
|
@@ -175,7 +208,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
175
208
|
(0, vue_1.h)(vueuc_1.VFocusTrap, { disabled: !this.trapFocus, active: this.show, onEsc: this.onEsc, autoFocus: this.autoFocus }, {
|
|
176
209
|
default: () => {
|
|
177
210
|
var _a;
|
|
178
|
-
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: (_a = this.appear) !== null && _a !== void 0 ? _a : this.isMounted, onEnter: handleEnter, onAfterEnter:
|
|
211
|
+
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: (_a = this.appear) !== null && _a !== void 0 ? _a : this.isMounted, onEnter: handleEnter, onAfterEnter: handleAfterEnter, onAfterLeave: handleAfterLeave, onBeforeLeave: handleBeforeLeave }, {
|
|
179
212
|
default: () => {
|
|
180
213
|
const dirs = [
|
|
181
214
|
[vue_1.vShow, this.show]
|
|
@@ -193,10 +226,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
193
226
|
|| this.preset === 'dialog' ? ((0, vue_1.h)(Dialog_1.NDialog, Object.assign({}, this.$attrs, { class: [
|
|
194
227
|
`${mergedClsPrefix}-modal`,
|
|
195
228
|
this.$attrs.class
|
|
196
|
-
], ref: "bodyRef", theme: this.mergedTheme.peers.Dialog, themeOverrides: this.mergedTheme.peerOverrides.Dialog }, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { "aria-modal": "true" }), $slots)) : this.preset === 'card' ? ((0, vue_1.h)(card_1.NCard, Object.assign({}, this.$attrs, { ref: "bodyRef", class: [
|
|
229
|
+
], ref: "bodyRef", theme: this.mergedTheme.peers.Dialog, themeOverrides: this.mergedTheme.peerOverrides.Dialog }, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { titleClass: this.dialogTitleClass, "aria-modal": "true" }), $slots)) : this.preset === 'card' ? ((0, vue_1.h)(card_1.NCard, Object.assign({}, this.$attrs, { ref: "bodyRef", class: [
|
|
197
230
|
`${mergedClsPrefix}-modal`,
|
|
198
231
|
this.$attrs.class
|
|
199
|
-
], theme: this.mergedTheme.peers.Card, themeOverrides: this.mergedTheme.peerOverrides.Card }, (0, _utils_1.keep)(this.$props, Card_1.cardBasePropKeys), { "aria-modal": "true", role: "dialog" }), $slots)) : ((this.childNodeRef = childNode))), dirs);
|
|
232
|
+
], theme: this.mergedTheme.peers.Card, themeOverrides: this.mergedTheme.peerOverrides.Card }, (0, _utils_1.keep)(this.$props, Card_1.cardBasePropKeys), { headerClass: this.cardHeaderClass, "aria-modal": "true", role: "dialog" }), $slots)) : ((this.childNodeRef = childNode))), dirs);
|
|
200
233
|
}
|
|
201
234
|
}));
|
|
202
235
|
}
|