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,124 @@
|
|
|
1
|
+
const kmKH = {
|
|
2
|
+
name: 'km-KH',
|
|
3
|
+
global: {
|
|
4
|
+
undo: 'បោះបង់',
|
|
5
|
+
redo: 'ធ្វើឡើងវិញ',
|
|
6
|
+
confirm: 'បញ្ជាក់',
|
|
7
|
+
clear: 'ច្បាស់'
|
|
8
|
+
},
|
|
9
|
+
Popconfirm: {
|
|
10
|
+
positiveText: 'បញ្ជាក់',
|
|
11
|
+
negativeText: 'បោះបង់'
|
|
12
|
+
},
|
|
13
|
+
Cascader: {
|
|
14
|
+
placeholder: 'សូមជ្រើសរើស',
|
|
15
|
+
loading: 'ការផ្ទុក',
|
|
16
|
+
loadingRequiredMessage: label => `អាចជ្រើសរើសបានតែបន្ទាប់ពីផ្ទុកថ្នាំងកូន ${label} ទាំងអស់។`
|
|
17
|
+
},
|
|
18
|
+
Time: {
|
|
19
|
+
dateFormat: 'yyyy-MM-dd',
|
|
20
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
|
|
21
|
+
},
|
|
22
|
+
DatePicker: {
|
|
23
|
+
yearFormat: 'yyyyឆ្នាំ',
|
|
24
|
+
monthFormat: 'MMM',
|
|
25
|
+
dayFormat: 'eeeeee',
|
|
26
|
+
yearTypeFormat: 'yyyy',
|
|
27
|
+
monthTypeFormat: 'yyyy-MM',
|
|
28
|
+
dateFormat: 'yyyy-MM-dd',
|
|
29
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
30
|
+
quarterFormat: 'yyyy-qqq',
|
|
31
|
+
weekFormat: 'YYYY-wសប្តាហ៍',
|
|
32
|
+
clear: 'ច្បាស់',
|
|
33
|
+
now: 'ឥឡូវនេះ',
|
|
34
|
+
confirm: 'បញ្ជាក់',
|
|
35
|
+
selectTime: 'ជ្រើសរើសកាលបរិច្ឆេទ',
|
|
36
|
+
selectDate: 'ជ្រើសរើសកាលបរិច្ឆេទ',
|
|
37
|
+
datePlaceholder: 'ជ្រើសរើសកាលបរិច្ឆេទ',
|
|
38
|
+
datetimePlaceholder: 'ជ្រើសរើសពេលវេលាកាលបរិច្ឆេទ',
|
|
39
|
+
monthPlaceholder: 'ជ្រើសរើសខែ',
|
|
40
|
+
yearPlaceholder: 'ជ្រើសរើសឆ្នាំ',
|
|
41
|
+
quarterPlaceholder: 'ជ្រើសរើសត្រីមាស',
|
|
42
|
+
weekPlaceholder: 'ជ្រើសរើសសប្តាហ៍',
|
|
43
|
+
startDatePlaceholder: 'កាលបរិច្ឆេទចាប់ផ្តើម',
|
|
44
|
+
endDatePlaceholder: 'កាលបរិច្ឆេទបញ្ចប់',
|
|
45
|
+
startDatetimePlaceholder: 'កាលបរិច្ឆេទចាប់ផ្តើម',
|
|
46
|
+
endDatetimePlaceholder: 'កាលបរិច្ឆេទបញ្ចប់',
|
|
47
|
+
startMonthPlaceholder: 'ខែចាប់ផ្តើម',
|
|
48
|
+
endMonthPlaceholder: 'ចុងខែ',
|
|
49
|
+
monthBeforeYear: false,
|
|
50
|
+
firstDayOfWeek: 0,
|
|
51
|
+
today: 'ថ្ងៃនេះ'
|
|
52
|
+
},
|
|
53
|
+
DataTable: {
|
|
54
|
+
checkTableAll: 'ជ្រើសរើសទិន្នន័យតារាងទាំងអស់។',
|
|
55
|
+
uncheckTableAll: 'ដកការជ្រើសរើសទិន្នន័យតារាងទាំងអស់។',
|
|
56
|
+
confirm: 'បញ្ជាក់',
|
|
57
|
+
clear: 'កំណត់ឡើងវិញ'
|
|
58
|
+
},
|
|
59
|
+
LegacyTransfer: {
|
|
60
|
+
sourceTitle: 'ធាតុប្រភព',
|
|
61
|
+
targetTitle: 'ធាតុគោលដៅ'
|
|
62
|
+
},
|
|
63
|
+
Transfer: {
|
|
64
|
+
selectAll: 'ជ្រើសរើសទាំងអស់។',
|
|
65
|
+
clearAll: 'ច្បាស់',
|
|
66
|
+
unselectAll: 'ដកការជ្រើសរើសទាំងអស់។',
|
|
67
|
+
total: num => `ទូទៅ ${num} ធាតុ`,
|
|
68
|
+
selected: num => `បានជ្រើសរើស ${num} ធាតុ`
|
|
69
|
+
},
|
|
70
|
+
Empty: {
|
|
71
|
+
description: 'គ្មានទិន្នន័យ'
|
|
72
|
+
},
|
|
73
|
+
Select: {
|
|
74
|
+
placeholder: 'សូមជ្រើសរើស'
|
|
75
|
+
},
|
|
76
|
+
TimePicker: {
|
|
77
|
+
placeholder: 'សូមជ្រើសរើសពេលវេលាមួយ។',
|
|
78
|
+
positiveText: 'បញ្ជាក់',
|
|
79
|
+
negativeText: 'បោះបង់',
|
|
80
|
+
now: 'ឥឡូវនេះ',
|
|
81
|
+
clear: 'ច្បាស់'
|
|
82
|
+
},
|
|
83
|
+
Pagination: {
|
|
84
|
+
goto: 'លោតទៅ',
|
|
85
|
+
selectionSuffix: 'ទំព័រ'
|
|
86
|
+
},
|
|
87
|
+
DynamicTags: {
|
|
88
|
+
add: 'បន្ថែមទៅ'
|
|
89
|
+
},
|
|
90
|
+
Log: {
|
|
91
|
+
loading: 'ការផ្ទុក'
|
|
92
|
+
},
|
|
93
|
+
Input: {
|
|
94
|
+
placeholder: 'សូមបញ្ចូល'
|
|
95
|
+
},
|
|
96
|
+
InputNumber: {
|
|
97
|
+
placeholder: 'សូមបញ្ចូល'
|
|
98
|
+
},
|
|
99
|
+
DynamicInput: {
|
|
100
|
+
create: 'បន្ថែមទៅ'
|
|
101
|
+
},
|
|
102
|
+
ThemeEditor: {
|
|
103
|
+
title: 'កម្មវិធីនិពន្ធប្រធានបទ',
|
|
104
|
+
clearAllVars: 'សម្អាតអថេរទាំងអស់។',
|
|
105
|
+
clearSearch: 'ជម្រះការស្វែងរក',
|
|
106
|
+
filterCompName: 'តម្រងឈ្មោះសមាសភាគ',
|
|
107
|
+
filterVarName: 'ត្រងឈ្មោះអថេរ',
|
|
108
|
+
import: 'នាំចូល',
|
|
109
|
+
export: 'នាំចេញ',
|
|
110
|
+
restore: 'ស្តារលំនាំដើម'
|
|
111
|
+
},
|
|
112
|
+
Image: {
|
|
113
|
+
tipPrevious: 'រូបភាពមុន។(←)',
|
|
114
|
+
tipNext: 'បន្ទាប់(→)',
|
|
115
|
+
tipCounterclockwise: 'បង្វិលឆ្វេង',
|
|
116
|
+
tipClockwise: 'បង្វិលស្តាំ',
|
|
117
|
+
tipZoomOut: 'បង្រួម ',
|
|
118
|
+
tipZoomIn: 'ពង្រីក',
|
|
119
|
+
tipDownload: 'ទាញយក',
|
|
120
|
+
tipClose: 'ការបិទ(Esc)',
|
|
121
|
+
tipOriginalSize: 'ធ្វើមាត្រដ្ឋានទៅទំហំដើម'
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
export default kmKH;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
const ugCN = {
|
|
2
|
+
name: 'ug-CN',
|
|
3
|
+
global: {
|
|
4
|
+
undo: 'قالدۇرۇش',
|
|
5
|
+
redo: 'قايتا',
|
|
6
|
+
confirm: 'جەزملەش',
|
|
7
|
+
clear: 'تازلاش'
|
|
8
|
+
},
|
|
9
|
+
Popconfirm: {
|
|
10
|
+
positiveText: 'جەزملەش',
|
|
11
|
+
negativeText: 'بىكار قىلىش'
|
|
12
|
+
},
|
|
13
|
+
Cascader: {
|
|
14
|
+
placeholder: 'تاللاڭ',
|
|
15
|
+
loading: 'يۈكلەۋاتىدۇ',
|
|
16
|
+
loadingRequiredMessage: label => `جەمئى ${label} تۈگۈننى يۈكلەپ بولغاندىن كېيىن تاللىغىلى بولىدۇ`
|
|
17
|
+
},
|
|
18
|
+
Time: {
|
|
19
|
+
dateFormat: 'yyyy-MM-dd',
|
|
20
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
|
|
21
|
+
},
|
|
22
|
+
DatePicker: {
|
|
23
|
+
yearFormat: 'yyyy-يىل',
|
|
24
|
+
monthFormat: 'MMM',
|
|
25
|
+
dayFormat: 'eeeeee',
|
|
26
|
+
yearTypeFormat: 'yyyy',
|
|
27
|
+
monthTypeFormat: 'yyyy-MM',
|
|
28
|
+
dateFormat: 'yyyy-MM-dd',
|
|
29
|
+
dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
30
|
+
quarterFormat: 'yyyy-qqq',
|
|
31
|
+
weekFormat: 'YYYY-wھەپتە',
|
|
32
|
+
clear: 'تازلاش',
|
|
33
|
+
now: 'مۇشۇ ۋاقىت',
|
|
34
|
+
confirm: 'جەزملەش',
|
|
35
|
+
selectTime: 'ۋاقىت تاللاڭ',
|
|
36
|
+
selectDate: 'چىسلا تاللاڭ',
|
|
37
|
+
datePlaceholder: 'چىسلا تاللاڭ',
|
|
38
|
+
datetimePlaceholder: 'چىسلا ۋاقىت تاللاڭ',
|
|
39
|
+
monthPlaceholder: 'ئاي تاللاڭ',
|
|
40
|
+
yearPlaceholder: 'يىل تاللاڭ',
|
|
41
|
+
quarterPlaceholder: 'پەسىل تاللاڭ',
|
|
42
|
+
weekPlaceholder: 'ھەپتە تاللاڭ',
|
|
43
|
+
startDatePlaceholder: 'باشلىنىش ۋاقتى',
|
|
44
|
+
endDatePlaceholder: 'ئاخىرلىشىش ۋاقتى',
|
|
45
|
+
startDatetimePlaceholder: 'باشلىندىغان چىسلا ۋاقىت',
|
|
46
|
+
endDatetimePlaceholder: 'ئاخىرلىشىدىغان چىسلا ۋاقىت',
|
|
47
|
+
startMonthPlaceholder: 'باشلىندىغان ئاي',
|
|
48
|
+
endMonthPlaceholder: 'ئاخىرلىشىدىغان ئاي',
|
|
49
|
+
monthBeforeYear: false,
|
|
50
|
+
firstDayOfWeek: 0,
|
|
51
|
+
today: 'بۈگۈن'
|
|
52
|
+
},
|
|
53
|
+
DataTable: {
|
|
54
|
+
checkTableAll: 'ھەممە ئۇچۇرنى تاللاش',
|
|
55
|
+
uncheckTableAll: 'تاللاشنى بىكار قىلىش',
|
|
56
|
+
confirm: 'جەزملەش',
|
|
57
|
+
clear: 'تازلاش'
|
|
58
|
+
},
|
|
59
|
+
LegacyTransfer: {
|
|
60
|
+
sourceTitle: 'ئەسلى تۈر',
|
|
61
|
+
targetTitle: 'نىشان تۈر'
|
|
62
|
+
},
|
|
63
|
+
Transfer: {
|
|
64
|
+
selectAll: 'ھەممىنى تاللاش',
|
|
65
|
+
clearAll: 'تازلاش',
|
|
66
|
+
unselectAll: 'ھەممىنى بىكار قىلىش',
|
|
67
|
+
total: num => `جەمئى ${num} تۈر`,
|
|
68
|
+
selected: num => `${num} تۈر تاللاندى`
|
|
69
|
+
},
|
|
70
|
+
Empty: {
|
|
71
|
+
description: 'ئۇچۇر يوق'
|
|
72
|
+
},
|
|
73
|
+
Select: {
|
|
74
|
+
placeholder: 'تاللاڭ'
|
|
75
|
+
},
|
|
76
|
+
TimePicker: {
|
|
77
|
+
placeholder: 'ۋاقىت تاللاڭ',
|
|
78
|
+
positiveText: 'جەزملەش',
|
|
79
|
+
negativeText: 'بىكار قىلىش',
|
|
80
|
+
now: 'مۇشۇ ۋاقىت',
|
|
81
|
+
clear: 'تازلاش'
|
|
82
|
+
},
|
|
83
|
+
Pagination: {
|
|
84
|
+
goto: 'ئاتلاش',
|
|
85
|
+
selectionSuffix: 'بەت'
|
|
86
|
+
},
|
|
87
|
+
DynamicTags: {
|
|
88
|
+
add: 'قوشۇش'
|
|
89
|
+
},
|
|
90
|
+
Log: {
|
|
91
|
+
loading: 'يۈكلەۋاتىدۇ'
|
|
92
|
+
},
|
|
93
|
+
Input: {
|
|
94
|
+
placeholder: 'كىرگۈزۈڭ'
|
|
95
|
+
},
|
|
96
|
+
InputNumber: {
|
|
97
|
+
placeholder: 'كىرگۈزۈڭ'
|
|
98
|
+
},
|
|
99
|
+
DynamicInput: {
|
|
100
|
+
create: 'قوشۇش'
|
|
101
|
+
},
|
|
102
|
+
ThemeEditor: {
|
|
103
|
+
title: 'ئۇسلوب تەھرىرلىگۈچ',
|
|
104
|
+
clearAllVars: 'ھەممە پارامىتىرنى تازلاش',
|
|
105
|
+
clearSearch: 'ئىزدەشنى تازلاش',
|
|
106
|
+
filterCompName: 'ۋىجىت ئىسمىنى فىلتىرلاش',
|
|
107
|
+
filterVarName: 'پارامىتېرنى فىلتىرلاش',
|
|
108
|
+
import: 'ئەكىرىش',
|
|
109
|
+
export: 'چىقىرىش',
|
|
110
|
+
restore: 'ئەسلىگە قايتۇرۇش'
|
|
111
|
+
},
|
|
112
|
+
Image: {
|
|
113
|
+
tipPrevious: '(←)ئالدىنقىسى',
|
|
114
|
+
tipNext: 'كېيىنكىسى(→)',
|
|
115
|
+
tipCounterclockwise: 'سولغا چۆرۈش',
|
|
116
|
+
tipClockwise: 'ئوڭغا چۆرۈش',
|
|
117
|
+
tipZoomOut: 'كىچىكلىتىش',
|
|
118
|
+
tipZoomIn: 'چوڭايتىش',
|
|
119
|
+
tipDownload: 'چۈشۈرۈش',
|
|
120
|
+
tipClose: 'تاقاش(Esc)',
|
|
121
|
+
tipOriginalSize: 'ئەسلىگە قايتۇرۇش'
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
export default ugCN;
|
package/es/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/es/locales/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ export { default as frFR } from "./common/frFR.mjs";
|
|
|
12
12
|
export { default as idID } from "./common/idID.mjs";
|
|
13
13
|
export { default as itIT } from "./common/itIT.mjs";
|
|
14
14
|
export { default as jaJP } from "./common/jaJP.mjs";
|
|
15
|
+
export { default as kmKH } from "./common/kmKH.mjs";
|
|
15
16
|
export { default as koKR } from "./common/koKR.mjs";
|
|
16
17
|
export { default as nbNO } from "./common/nbNO.mjs";
|
|
17
18
|
export { default as nlNL } from "./common/nlNL.mjs";
|
|
@@ -41,6 +42,7 @@ export { default as dateFrFR } from "./date/frFR.mjs";
|
|
|
41
42
|
export { default as dateIdID } from "./date/idID.mjs";
|
|
42
43
|
export { default as dateItIT } from "./date/itIT.mjs";
|
|
43
44
|
export { default as dateJaJP } from "./date/jaJP.mjs";
|
|
45
|
+
export { default as dateKmKH } from "./date/kmKH.mjs";
|
|
44
46
|
export { default as dateKoKR } from "./date/koKR.mjs";
|
|
45
47
|
export { default as dateNbNO } from "./date/nbNO.mjs";
|
|
46
48
|
export { default as dateNlNL } from "./date/nlNL.mjs";
|
|
@@ -51,6 +53,7 @@ export { default as dateSkSK } from "./date/skSK.mjs";
|
|
|
51
53
|
export { default as dateSvSE } from "./date/svSE.mjs";
|
|
52
54
|
export { default as dateThTH } from "./date/thTH.mjs";
|
|
53
55
|
export { default as dateTrTR } from "./date/trTR.mjs";
|
|
56
|
+
export { default as dateUgCN } from "./date/ugCN.mjs";
|
|
54
57
|
export { default as dateUkUA } from "./date/ukUA.mjs";
|
|
55
58
|
export { default as dateUzUZ } from "./date/uzUZ.mjs";
|
|
56
59
|
export { default as dateViVN } from "./date/viVN.mjs";
|
package/es/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;
|
package/es/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;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { clickoutside } from 'vdirs';
|
|
2
|
-
import { cloneVNode, computed, defineComponent, h, inject, mergeProps, nextTick, provide, ref, toRef, Transition, vShow, watch, withDirectives } from 'vue';
|
|
2
|
+
import { cloneVNode, computed, defineComponent, h, inject, mergeProps, nextTick, normalizeClass, provide, ref, toRef, Transition, vShow, watch, withDirectives } from 'vue';
|
|
3
3
|
import { VFocusTrap } from 'vueuc';
|
|
4
4
|
import { NScrollbar } from "../../_internal/index.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { getFirstSlotVNodeWithTypedProps, keep, useLockHtmlScroll, warn } from "../../_utils/index.mjs";
|
|
6
6
|
import { NCard } from "../../card/index.mjs";
|
|
7
7
|
import { cardBasePropKeys } from "../../card/src/Card.mjs";
|
|
8
8
|
import { NDialog } from "../../dialog/src/Dialog.mjs";
|
|
9
9
|
import { dialogPropKeys } from "../../dialog/src/dialogProps.mjs";
|
|
10
10
|
import { drawerBodyInjectionKey } from "../../drawer/src/interface.mjs";
|
|
11
11
|
import { popoverBodyInjectionKey } from "../../popover/src/interface.mjs";
|
|
12
|
+
import { useDragModal } from "./composables.mjs";
|
|
12
13
|
import { modalBodyInjectionKey, modalInjectionKey } from "./interface.mjs";
|
|
13
14
|
import { presetProps } from "./presetProps.mjs";
|
|
14
15
|
export default defineComponent({
|
|
15
16
|
name: 'ModalBody',
|
|
16
17
|
inheritAttrs: false,
|
|
18
|
+
slots: Object,
|
|
17
19
|
props: Object.assign(Object.assign({
|
|
18
20
|
show: {
|
|
19
21
|
type: Boolean,
|
|
@@ -32,7 +34,11 @@ export default defineComponent({
|
|
|
32
34
|
type: Boolean,
|
|
33
35
|
default: true
|
|
34
36
|
},
|
|
35
|
-
blockScroll: Boolean
|
|
37
|
+
blockScroll: Boolean,
|
|
38
|
+
draggable: {
|
|
39
|
+
type: [Boolean, Object],
|
|
40
|
+
default: false
|
|
41
|
+
}
|
|
36
42
|
}, presetProps), {
|
|
37
43
|
renderMask: Function,
|
|
38
44
|
// events
|
|
@@ -66,11 +72,35 @@ export default defineComponent({
|
|
|
66
72
|
const displayedRef = ref(props.show);
|
|
67
73
|
const transformOriginXRef = ref(null);
|
|
68
74
|
const transformOriginYRef = ref(null);
|
|
75
|
+
const NModal = inject(modalInjectionKey);
|
|
76
|
+
let mousePosition = null;
|
|
77
|
+
watch(toRef(props, 'show'), value => {
|
|
78
|
+
if (value) {
|
|
79
|
+
mousePosition = NModal.getMousePosition();
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
immediate: true
|
|
83
|
+
});
|
|
84
|
+
const {
|
|
85
|
+
stopDrag,
|
|
86
|
+
startDrag,
|
|
87
|
+
draggableRef,
|
|
88
|
+
draggableClassRef
|
|
89
|
+
} = useDragModal(toRef(props, 'draggable'), {
|
|
90
|
+
onEnd: el => {
|
|
91
|
+
syncTransformOrigin(el);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
const dialogTitleClassRef = computed(() => {
|
|
95
|
+
return normalizeClass([props.titleClass, draggableClassRef.value]);
|
|
96
|
+
});
|
|
97
|
+
const cardHeaderClassRef = computed(() => {
|
|
98
|
+
return normalizeClass([props.headerClass, draggableClassRef.value]);
|
|
99
|
+
});
|
|
69
100
|
watch(toRef(props, 'show'), value => {
|
|
70
101
|
if (value) displayedRef.value = true;
|
|
71
102
|
});
|
|
72
103
|
useLockHtmlScroll(computed(() => props.blockScroll && displayedRef.value));
|
|
73
|
-
const NModal = inject(modalInjectionKey);
|
|
74
104
|
function styleTransformOrigin() {
|
|
75
105
|
if (NModal.transformOriginRef.value === 'center') {
|
|
76
106
|
return '';
|
|
@@ -93,7 +123,6 @@ export default defineComponent({
|
|
|
93
123
|
if (NModal.transformOriginRef.value === 'center') {
|
|
94
124
|
return;
|
|
95
125
|
}
|
|
96
|
-
const mousePosition = NModal.getMousePosition();
|
|
97
126
|
if (!mousePosition) {
|
|
98
127
|
return;
|
|
99
128
|
}
|
|
@@ -103,12 +132,10 @@ export default defineComponent({
|
|
|
103
132
|
offsetLeft,
|
|
104
133
|
offsetTop
|
|
105
134
|
} = el;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
transformOriginYRef.value = -(offsetTop - top - scrollTop);
|
|
111
|
-
}
|
|
135
|
+
const top = mousePosition.y;
|
|
136
|
+
const left = mousePosition.x;
|
|
137
|
+
transformOriginXRef.value = -(offsetLeft - left);
|
|
138
|
+
transformOriginYRef.value = -(offsetTop - top - scrollTop);
|
|
112
139
|
el.style.transformOrigin = styleTransformOrigin();
|
|
113
140
|
}
|
|
114
141
|
function handleEnter(el) {
|
|
@@ -120,10 +147,16 @@ export default defineComponent({
|
|
|
120
147
|
el.style.transformOrigin = styleTransformOrigin();
|
|
121
148
|
props.onBeforeLeave();
|
|
122
149
|
}
|
|
150
|
+
function handleAfterEnter(el) {
|
|
151
|
+
const element = el;
|
|
152
|
+
draggableRef.value && startDrag(element);
|
|
153
|
+
props.onAfterEnter && props.onAfterEnter(element);
|
|
154
|
+
}
|
|
123
155
|
function handleAfterLeave() {
|
|
124
156
|
displayedRef.value = false;
|
|
125
157
|
transformOriginXRef.value = null;
|
|
126
158
|
transformOriginYRef.value = null;
|
|
159
|
+
stopDrag();
|
|
127
160
|
props.onAfterLeave();
|
|
128
161
|
}
|
|
129
162
|
function handleCloseClick() {
|
|
@@ -161,11 +194,15 @@ export default defineComponent({
|
|
|
161
194
|
mergedClsPrefix: NModal.mergedClsPrefixRef,
|
|
162
195
|
bodyRef,
|
|
163
196
|
scrollbarRef,
|
|
197
|
+
draggableClass: draggableClassRef,
|
|
164
198
|
displayed: displayedRef,
|
|
165
199
|
childNodeRef,
|
|
200
|
+
cardHeaderClass: cardHeaderClassRef,
|
|
201
|
+
dialogTitleClass: dialogTitleClassRef,
|
|
166
202
|
handlePositiveClick,
|
|
167
203
|
handleNegativeClick,
|
|
168
204
|
handleCloseClick,
|
|
205
|
+
handleAfterEnter,
|
|
169
206
|
handleAfterLeave,
|
|
170
207
|
handleBeforeLeave,
|
|
171
208
|
handleEnter
|
|
@@ -176,6 +213,7 @@ export default defineComponent({
|
|
|
176
213
|
$slots,
|
|
177
214
|
$attrs,
|
|
178
215
|
handleEnter,
|
|
216
|
+
handleAfterEnter,
|
|
179
217
|
handleAfterLeave,
|
|
180
218
|
handleBeforeLeave,
|
|
181
219
|
preset,
|
|
@@ -183,7 +221,9 @@ export default defineComponent({
|
|
|
183
221
|
} = this;
|
|
184
222
|
let childNode = null;
|
|
185
223
|
if (!preset) {
|
|
186
|
-
childNode =
|
|
224
|
+
childNode = getFirstSlotVNodeWithTypedProps('default', $slots.default, {
|
|
225
|
+
draggableClass: this.draggableClass
|
|
226
|
+
});
|
|
187
227
|
if (!childNode) {
|
|
188
228
|
warn('modal', 'default slot is empty');
|
|
189
229
|
return;
|
|
@@ -216,7 +256,7 @@ export default defineComponent({
|
|
|
216
256
|
name: "fade-in-scale-up-transition",
|
|
217
257
|
appear: (_a = this.appear) !== null && _a !== void 0 ? _a : this.isMounted,
|
|
218
258
|
onEnter: handleEnter,
|
|
219
|
-
onAfterEnter:
|
|
259
|
+
onAfterEnter: handleAfterEnter,
|
|
220
260
|
onAfterLeave: handleAfterLeave,
|
|
221
261
|
onBeforeLeave: handleBeforeLeave
|
|
222
262
|
}, {
|
|
@@ -236,6 +276,7 @@ export default defineComponent({
|
|
|
236
276
|
theme: this.mergedTheme.peers.Dialog,
|
|
237
277
|
themeOverrides: this.mergedTheme.peerOverrides.Dialog
|
|
238
278
|
}, keep(this.$props, dialogPropKeys), {
|
|
279
|
+
titleClass: this.dialogTitleClass,
|
|
239
280
|
"aria-modal": "true"
|
|
240
281
|
}), $slots) : this.preset === 'card' ? h(NCard, Object.assign({}, this.$attrs, {
|
|
241
282
|
ref: "bodyRef",
|
|
@@ -243,6 +284,7 @@ export default defineComponent({
|
|
|
243
284
|
theme: this.mergedTheme.peers.Card,
|
|
244
285
|
themeOverrides: this.mergedTheme.peerOverrides.Card
|
|
245
286
|
}, keep(this.$props, cardBasePropKeys), {
|
|
287
|
+
headerClass: this.cardHeaderClass,
|
|
246
288
|
"aria-modal": "true",
|
|
247
289
|
role: "dialog"
|
|
248
290
|
}), $slots) : this.childNodeRef = childNode, dirs);
|