kui-vue 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/kui-components.json +10416 -9031
- package/dist/index.js +2 -2
- package/es/index.js +1789 -2035
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +37 -35
- package/style/base.css +1 -1
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +1 -1
- package/style/theme.css +2 -2
- package/types/alert/index.d.ts +2 -0
- package/types/auto-complete/index.d.ts +1 -5
- package/types/calendar/index.d.ts +3 -0
- package/types/carousel/{Carousel.d.ts → carousel.d.ts} +13 -0
- package/types/cascader/index.d.ts +11 -2
- package/types/cascader/types.d.ts +4 -0
- package/types/check-card/check-card-group.d.ts +3 -0
- package/types/check-card/check-card.d.ts +13 -0
- package/types/checkbox/checkbox-group.d.ts +13 -0
- package/types/checkbox/{Checkbox.d.ts → checkbox.d.ts} +1 -0
- package/types/checkbox/index.d.ts +1 -1
- package/types/color-picker/alpha.d.ts +5 -1
- package/types/color-picker/hue.d.ts +3 -0
- package/types/color-picker/index.d.ts +29 -15
- package/types/color-picker/mode.d.ts +1 -1
- package/types/color-picker/paint.d.ts +3 -0
- package/types/color-picker/types.d.ts +1 -0
- package/types/components.d.ts +21 -16
- package/types/date-picker/index.d.ts +36 -7
- package/types/drawer/index.d.ts +18 -5
- package/types/dropdown/{Dropdown.d.ts → dropdown.d.ts} +9 -13
- package/types/form/{Form.d.ts → form.d.ts} +3 -7
- package/types/form/index.d.ts +1 -1
- package/types/global.d.ts +2 -0
- package/types/input/index.d.ts +2 -2
- package/types/input/{Input.d.ts → input.d.ts} +21 -4
- package/types/input/{TextArea.d.ts → textarea.d.ts} +13 -4
- package/types/input-number/index.d.ts +3 -0
- package/types/input-otp/input-otp.d.ts +13 -0
- package/types/mentions/index.d.ts +1 -1
- package/types/menu/{Menu.d.ts → menu.d.ts} +17 -10
- package/types/modal/index.d.ts +12 -7
- package/types/modal/{Modal.d.ts → modal.d.ts} +19 -91
- package/types/modal/toast.d.ts +5 -4
- package/types/notice/content.d.ts +3 -70
- package/types/popconfirm/index.d.ts +3 -40
- package/types/poptip/index.d.ts +4 -42
- package/types/popup/index.d.ts +251 -0
- package/types/popup/layers.d.ts +9 -0
- package/types/popup/types.d.ts +15 -0
- package/types/radio/index.d.ts +1 -0
- package/types/radio/radio-group.d.ts +1 -0
- package/types/segmented/index.d.ts +3 -1
- package/types/select/index.d.ts +1 -1
- package/types/select/{Option.d.ts → option.d.ts} +7 -8
- package/types/select/{Select.d.ts → select.d.ts} +5 -1
- package/types/slider/index.d.ts +6 -1
- package/types/slider/thumb.d.ts +1 -1
- package/types/spin/index.d.ts +13 -0
- package/types/stat-card/rollup.d.ts +3 -1
- package/types/stat-card/stat-number.d.ts +14 -1
- package/types/stat-card/utils/countup.d.ts +1 -1
- package/types/stat-card/utils/odometer.d.ts +8 -5
- package/types/switch/index.d.ts +1 -0
- package/types/table/index.d.ts +3 -16
- package/types/tabs/index.d.ts +1 -0
- package/types/tag/index.d.ts +2 -0
- package/types/tooltip/index.d.ts +18 -32
- package/types/tour/index.d.ts +29 -18
- package/types/transfer/index.d.ts +13 -0
- package/types/tree/index.d.ts +3 -0
- package/types/tree-select/index.d.ts +10 -3
- package/types/typography/index.d.ts +9 -0
- package/types/upload/index.d.ts +0 -13
- package/types/utils/model-value.d.ts +10 -0
- package/types/utils/popup.d.ts +11 -0
- package/types/utils/selection-tags.d.ts +18 -0
- package/types/utils/vue.d.ts +6 -0
- package/vetur/attributes.json +1705 -777
- package/vetur/tags.json +355 -157
- package/vetur/web-types.json +7552 -6196
- package/types/affix/Affix.d.ts +0 -21
- package/types/affix/affix.d.ts.map +0 -1
- package/types/affix/index.d.ts.map +0 -1
- package/types/alert/Alert.d.ts +0 -34
- package/types/alert/alert.d.ts.map +0 -1
- package/types/alert/index.d.ts.map +0 -1
- package/types/anchor/AnchorLink.d.ts +0 -10
- package/types/anchor/anchor-link.d.ts.map +0 -1
- package/types/anchor/anchor.d.ts.map +0 -1
- package/types/anchor/index.d.ts.map +0 -1
- package/types/avatar/AvatarGroup.d.ts +0 -11
- package/types/avatar/avatar-group.d.ts.map +0 -1
- package/types/avatar/avatar.d.ts.map +0 -1
- package/types/avatar/index.d.ts.map +0 -1
- package/types/backtop/BackTop.d.ts +0 -24
- package/types/backtop/backtop.d.ts.map +0 -1
- package/types/backtop/index.d.ts +0 -4
- package/types/backtop/index.d.ts.map +0 -1
- package/types/badge/Badge.d.ts +0 -29
- package/types/badge/badge.d.ts.map +0 -1
- package/types/badge/index.d.ts.map +0 -1
- package/types/base/transition.d.ts.map +0 -1
- package/types/breadcrumb/BreadcrumbItem.d.ts +0 -10
- package/types/breadcrumb/breadcrumb-item.d.ts.map +0 -1
- package/types/breadcrumb/breadcrumb.d.ts.map +0 -1
- package/types/breadcrumb/index.d.ts.map +0 -1
- package/types/button/ButtonGroup.d.ts +0 -10
- package/types/button/button-group.d.ts.map +0 -1
- package/types/button/button.d.ts.map +0 -1
- package/types/button/index.d.ts.map +0 -1
- package/types/card/Card.d.ts +0 -19
- package/types/card/card.d.ts.map +0 -1
- package/types/card/index.d.ts.map +0 -1
- package/types/carousel/CarouselItem.d.ts +0 -7
- package/types/carousel/carousel-item.d.ts.map +0 -1
- package/types/carousel/carousel.d.ts.map +0 -1
- package/types/carousel/index.d.ts.map +0 -1
- package/types/checkbox/CheckboxGroup.d.ts +0 -17
- package/types/checkbox/checkbox-group.d.ts.map +0 -1
- package/types/checkbox/checkbox.d.ts.map +0 -1
- package/types/checkbox/index.d.ts.map +0 -1
- package/types/collapse/CollapsePanel.d.ts +0 -10
- package/types/collapse/collapse-panel.d.ts.map +0 -1
- package/types/collapse/collapse.d.ts.map +0 -1
- package/types/collapse/index.d.ts.map +0 -1
- package/types/color-picker/ColorPicker.d.ts +0 -26
- package/types/color-picker/alpha.d.ts.map +0 -1
- package/types/color-picker/color-picker.d.ts +0 -60
- package/types/color-picker/color-picker.d.ts.map +0 -1
- package/types/color-picker/hue.d.ts.map +0 -1
- package/types/color-picker/index.d.ts.map +0 -1
- package/types/color-picker/mode.d.ts.map +0 -1
- package/types/color-picker/paint.d.ts.map +0 -1
- package/types/color-picker/presets.d.ts.map +0 -1
- package/types/components.d.ts.map +0 -1
- package/types/config/context.d.ts.map +0 -1
- package/types/config/index.d.ts.map +0 -1
- package/types/const/var.d.ts.map +0 -1
- package/types/date-picker/DatePicker.d.ts +0 -44
- package/types/date-picker/date-picker.d.ts +0 -98
- package/types/date-picker/date-picker.d.ts.map +0 -1
- package/types/date-picker/index.d.ts.map +0 -1
- package/types/descriptions/DescriptionsItem.d.ts +0 -14
- package/types/descriptions/descriptions-item.d.ts.map +0 -1
- package/types/descriptions/descriptions.d.ts.map +0 -1
- package/types/descriptions/index.d.ts.map +0 -1
- package/types/directives/resize.d.ts.map +0 -1
- package/types/directives/scroll.d.ts.map +0 -1
- package/types/directives/transfer.d.ts +0 -2
- package/types/directives/transfer.d.ts.map +0 -1
- package/types/divider/Divider.d.ts +0 -23
- package/types/divider/divider.d.ts.map +0 -1
- package/types/divider/index.d.ts.map +0 -1
- package/types/drawer/Drawer.d.ts +0 -64
- package/types/drawer/drawer.d.ts.map +0 -1
- package/types/drawer/index.d.ts.map +0 -1
- package/types/dropdown/DropdownButton.d.ts +0 -17
- package/types/dropdown/dropdown-button.d.ts.map +0 -1
- package/types/dropdown/dropdown.d.ts.map +0 -1
- package/types/dropdown/index.d.ts.map +0 -1
- package/types/dropdown/trigger.d.ts.map +0 -1
- package/types/empty/Empty.d.ts +0 -19
- package/types/empty/empty.d.ts.map +0 -1
- package/types/empty/index.d.ts.map +0 -1
- package/types/flex/Flex.d.ts +0 -25
- package/types/flex/flex.d.ts.map +0 -1
- package/types/flex/index.d.ts.map +0 -1
- package/types/form/FormItem.d.ts +0 -13
- package/types/form/form-item.d.ts.map +0 -1
- package/types/form/form.d.ts.map +0 -1
- package/types/form/index.d.ts.map +0 -1
- package/types/form/types.d.ts.map +0 -1
- package/types/grid/GridItem.d.ts +0 -16
- package/types/grid/grid-item.d.ts.map +0 -1
- package/types/grid/grid.d.ts.map +0 -1
- package/types/grid/index.d.ts.map +0 -1
- package/types/grid/useBreakpoint.d.ts.map +0 -1
- package/types/icon/Icon.d.ts +0 -30
- package/types/icon/demo/search.d.ts +0 -2
- package/types/icon/demo/tags.d.ts +0 -4
- package/types/icon/icon.d.ts.map +0 -1
- package/types/icon/index.d.ts.map +0 -1
- package/types/image/ImageGroup.d.ts +0 -9
- package/types/image/KImage.d.ts +0 -18
- package/types/image/group.d.ts.map +0 -1
- package/types/image/image.d.ts.map +0 -1
- package/types/image/index.d.ts.map +0 -1
- package/types/image/instance.d.ts.map +0 -1
- package/types/image/preview.d.ts.map +0 -1
- package/types/image/utils.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/input/InputGroup.d.ts +0 -14
- package/types/input/index.d.ts.map +0 -1
- package/types/input/input-box.d.ts.map +0 -1
- package/types/input/input-group.d.ts.map +0 -1
- package/types/input/input.d.ts.map +0 -1
- package/types/input/textarea.d.ts.map +0 -1
- package/types/input-number/InputNumber.d.ts +0 -30
- package/types/input-number/index.d.ts.map +0 -1
- package/types/input-number/input-number.d.ts +0 -71
- package/types/input-number/input-number.d.ts.map +0 -1
- package/types/layout/index.d.ts.map +0 -1
- package/types/layout/layout.d.ts +0 -10
- package/types/layout/layout.d.ts.map +0 -1
- package/types/layout/sider.d.ts +0 -9
- package/types/loading/index.d.ts.map +0 -1
- package/types/loading/loading.d.ts +0 -18
- package/types/loading/loading.d.ts.map +0 -1
- package/types/locale/zh-CN.d.ts.map +0 -1
- package/types/menu/MenuDivider.d.ts +0 -7
- package/types/menu/MenuGroup.d.ts +0 -9
- package/types/menu/MenuItem.d.ts +0 -13
- package/types/menu/SubMenu.d.ts +0 -12
- package/types/menu/index.d.ts.map +0 -1
- package/types/menu/menu-divider.d.ts.map +0 -1
- package/types/menu/menu-group.d.ts.map +0 -1
- package/types/menu/menu-item.d.ts.map +0 -1
- package/types/menu/menu.d.ts.map +0 -1
- package/types/menu/recursive-menu.d.ts.map +0 -1
- package/types/menu/sub-menu.d.ts.map +0 -1
- package/types/message/index.d.ts.map +0 -1
- package/types/modal/index.d.ts.map +0 -1
- package/types/modal/modal.d.ts.map +0 -1
- package/types/modal/toast.d.ts.map +0 -1
- package/types/notice/Notice.d.ts +0 -50
- package/types/notice/group.d.ts +0 -7
- package/types/notice/group.d.ts.map +0 -1
- package/types/notice/index.d.ts.map +0 -1
- package/types/notice/instance.d.ts.map +0 -1
- package/types/notice/notice.d.ts.map +0 -1
- package/types/page/Page.d.ts +0 -48
- package/types/page/index.d.ts.map +0 -1
- package/types/page/page.d.ts.map +0 -1
- package/types/popconfirm/Popconfirm.d.ts +0 -37
- package/types/popconfirm/index.d.ts.map +0 -1
- package/types/popconfirm/popconfirm.d.ts.map +0 -1
- package/types/poptip/Poptip.d.ts +0 -35
- package/types/poptip/index.d.ts.map +0 -1
- package/types/poptip/poptip.d.ts.map +0 -1
- package/types/progress/Progress.d.ts +0 -56
- package/types/progress/index.d.ts.map +0 -1
- package/types/progress/progress.d.ts.map +0 -1
- package/types/radio/RadioButton.d.ts +0 -18
- package/types/radio/RadioGroup.d.ts +0 -18
- package/types/radio/index.d.ts.map +0 -1
- package/types/radio/radio-button.d.ts.map +0 -1
- package/types/radio/radio-group.d.ts.map +0 -1
- package/types/radio/radio.d.ts.map +0 -1
- package/types/rate/Rate.d.ts +0 -48
- package/types/rate/index.d.ts.map +0 -1
- package/types/rate/rate.d.ts.map +0 -1
- package/types/rate/star.d.ts.map +0 -1
- package/types/row-col/col.d.ts.map +0 -1
- package/types/row-col/index.d.ts.map +0 -1
- package/types/row-col/row.d.ts.map +0 -1
- package/types/select/index.d.ts.map +0 -1
- package/types/select/option.d.ts.map +0 -1
- package/types/select/select.d.ts.map +0 -1
- package/types/skeleton/SkeletonAvatar.d.ts +0 -15
- package/types/skeleton/SkeletonButton.d.ts +0 -16
- package/types/skeleton/SkeletonImage.d.ts +0 -14
- package/types/skeleton/SkeletonText.d.ts +0 -14
- package/types/skeleton/index.d.ts.map +0 -1
- package/types/skeleton/skeleton-avatar.d.ts.map +0 -1
- package/types/skeleton/skeleton-button.d.ts.map +0 -1
- package/types/skeleton/skeleton-image.d.ts.map +0 -1
- package/types/skeleton/skeleton-text.d.ts.map +0 -1
- package/types/skeleton/skeleton.d.ts.map +0 -1
- package/types/slider/Slider.d.ts +0 -60
- package/types/slider/index.d.ts.map +0 -1
- package/types/slider/slider.d.ts.map +0 -1
- package/types/slider/thumb.d.ts.map +0 -1
- package/types/space/Space.d.ts +0 -30
- package/types/space/index.d.ts.map +0 -1
- package/types/space/space.d.ts.map +0 -1
- package/types/spin/Spin.d.ts +0 -24
- package/types/spin/index.d.ts.map +0 -1
- package/types/spin/spin.d.ts.map +0 -1
- package/types/stat-card/StatCard.d.ts +0 -18
- package/types/stat-card/StatNumber.d.ts +0 -18
- package/types/stat-card/countup.d.ts.map +0 -1
- package/types/stat-card/index.d.ts.map +0 -1
- package/types/stat-card/rollup.d.ts.map +0 -1
- package/types/stat-card/stat-card.d.ts.map +0 -1
- package/types/stat-card/stat-number.d.ts.map +0 -1
- package/types/stat-card/utils/countup.d.ts.map +0 -1
- package/types/switch/Switch.d.ts +0 -35
- package/types/switch/index.d.ts.map +0 -1
- package/types/switch/switch.d.ts.map +0 -1
- package/types/table/Table.d.ts +0 -77
- package/types/table/index.d.ts.map +0 -1
- package/types/table/table.d.ts.map +0 -1
- package/types/tabs/TabPanel.d.ts +0 -13
- package/types/tabs/index.d.ts.map +0 -1
- package/types/tabs/tab-panel.d.ts.map +0 -1
- package/types/tabs/tabs.d.ts.map +0 -1
- package/types/tag/Tag.d.ts +0 -30
- package/types/tag/index.d.ts.map +0 -1
- package/types/tag/tag.d.ts.map +0 -1
- package/types/timeline/TimeLine.d.ts +0 -12
- package/types/timeline/TimeLineItem.d.ts +0 -12
- package/types/timeline/index.d.ts +0 -6
- package/types/timeline/index.d.ts.map +0 -1
- package/types/timeline/timeline-item.d.ts +0 -20
- package/types/timeline/timeline-item.d.ts.map +0 -1
- package/types/timeline/timeline.d.ts.map +0 -1
- package/types/tooltip/Tooltip.d.ts +0 -38
- package/types/tooltip/index.d.ts.map +0 -1
- package/types/tooltip/tooltip.d.ts.map +0 -1
- package/types/tree/Tree.d.ts +0 -82
- package/types/tree/index.d.ts.map +0 -1
- package/types/tree/tree.d.ts.map +0 -1
- package/types/tree/utils.d.ts.map +0 -1
- package/types/tree-select/TreeSelect.d.ts +0 -45
- package/types/tree-select/index.d.ts.map +0 -1
- package/types/tree-select/tree-select.d.ts +0 -128
- package/types/tree-select/tree-select.d.ts.map +0 -1
- package/types/upload/Upload.d.ts +0 -68
- package/types/upload/file-list.d.ts.map +0 -1
- package/types/upload/index.d.ts.map +0 -1
- package/types/upload/selector.d.ts.map +0 -1
- package/types/upload/types.d.ts.map +0 -1
- package/types/upload/upload.d.ts.map +0 -1
- package/types/utils/color.d.ts.map +0 -1
- package/types/utils/number.d.ts.map +0 -1
- package/types/utils/placement.d.ts.map +0 -1
- package/types/utils/size.d.ts +0 -3
- package/types/utils/size.d.ts.map +0 -1
- package/types/utils/theme.d.ts.map +0 -1
- package/types/utils/vnode.d.ts.map +0 -1
- package/types/utils/vue.d.ts.map +0 -1
- /package/types/anchor/{Anchor.d.ts → anchor.d.ts} +0 -0
- /package/types/avatar/{Avatar.d.ts → avatar.d.ts} +0 -0
- /package/types/breadcrumb/{Breadcrumb.d.ts → breadcrumb.d.ts} +0 -0
- /package/types/button/{Button.d.ts → button.d.ts} +0 -0
- /package/types/collapse/{Collapse.d.ts → collapse.d.ts} +0 -0
- /package/types/descriptions/{Descriptions.d.ts → descriptions.d.ts} +0 -0
- /package/types/grid/{Grid.d.ts → grid.d.ts} +0 -0
- /package/types/radio/{Radio.d.ts → radio.d.ts} +0 -0
- /package/types/row-col/{Col.d.ts → col.d.ts} +0 -0
- /package/types/row-col/{Row.d.ts → row.d.ts} +0 -0
- /package/types/skeleton/{Skeleton.d.ts → skeleton.d.ts} +0 -0
- /package/types/tabs/{Tabs.d.ts → tabs.d.ts} +0 -0
package/types/components.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as Affix } from "./affix";
|
|
2
|
+
export { default as Popup } from "./popup";
|
|
3
|
+
export type { PopupProps, PopupRef, PopupTrigger, PopupOpenReason, PopupOpenChangeDetail } from "./popup";
|
|
2
4
|
export type { AffixProps } from "./affix";
|
|
3
5
|
export { default as Alert } from "./alert";
|
|
4
6
|
export type { AlertProps } from "./alert";
|
|
@@ -31,15 +33,16 @@ export type { ListPanelProps } from "./list-panel";
|
|
|
31
33
|
export { Carousel, CarouselItem } from "./carousel";
|
|
32
34
|
export type { CarouselProps } from "./carousel";
|
|
33
35
|
export { Checkbox, CheckboxGroup } from "./checkbox";
|
|
34
|
-
export type { ChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps, CheckboxValue, } from "./checkbox";
|
|
36
|
+
export type { ChangeEvent, CheckboxChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps, CheckboxValue, } from "./checkbox";
|
|
35
37
|
export { CheckCard, CheckCardGroup } from "./check-card";
|
|
36
38
|
export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardTheme, CheckCardValue, } from "./check-card";
|
|
37
39
|
export { Collapse, CollapsePanel } from "./collapse";
|
|
38
40
|
export type { CollapsePanelProps, CollapseProps } from "./collapse";
|
|
41
|
+
export type { CollapseKey } from "./collapse/context";
|
|
39
42
|
export { ColorPickerPanel, default as ColorPicker } from "./color-picker";
|
|
40
|
-
export type { ColorPickerProps } from "./color-picker";
|
|
43
|
+
export type { ColorPickerProps, ColorMode } from "./color-picker";
|
|
41
44
|
export { DatePickerPanel, default as DatePicker } from "./date-picker";
|
|
42
|
-
export type { DatePickerProps } from "./date-picker";
|
|
45
|
+
export type { DatePickerInput, DatePickerOutput, DatePickerModeType, DatePickerValueType, DatePickerPreset, DatePickerProps, } from "./date-picker";
|
|
43
46
|
export { Descriptions, DescriptionsItem } from "./descriptions";
|
|
44
47
|
export type { DescriptionsColumn, DescriptionsItemProps, DescriptionsProps } from "./descriptions";
|
|
45
48
|
export { default as Drawer } from "./drawer";
|
|
@@ -51,7 +54,7 @@ export type { DividerProps } from "./divider";
|
|
|
51
54
|
export { default as Empty } from "./empty";
|
|
52
55
|
export type { EmptyProps } from "./empty";
|
|
53
56
|
export { Form, FormItem } from "./form";
|
|
54
|
-
export type { FormContext, FormItemProps, FormProps, FormSubmitEvent } from "./form";
|
|
57
|
+
export type { FormContext, FormExpose, FormRules, FormValidateTrigger, FormItemProps, FormProps, FormSubmitEvent, } from "./form";
|
|
55
58
|
export type { FormRule } from "./form/types";
|
|
56
59
|
export { default as Flex } from "./flex";
|
|
57
60
|
export type { FlexAlignType, FlexJustifyType, FlexProps, FlexSizeType } from "./flex";
|
|
@@ -62,7 +65,7 @@ export type { ImageGroupProps, ImagePreviewProps, ImageProps, ImageType } from "
|
|
|
62
65
|
export { default as Icon } from "./icon";
|
|
63
66
|
export type { IconProps, IconType } from "./icon";
|
|
64
67
|
export { Input, InputGroup, TextArea } from "./input";
|
|
65
|
-
export type { InputGroupProps, InputProps, TextAreaProps } from "./input";
|
|
68
|
+
export type { InputGroupProps, InputProps, InputEvents, InputRef, TextAreaProps, TextAreaEvents, } from "./input";
|
|
66
69
|
export { default as InputTag } from "./input-tag";
|
|
67
70
|
export type { InputTagProps } from "./input-tag";
|
|
68
71
|
export { default as InputOTP } from "./input-otp";
|
|
@@ -75,14 +78,14 @@ export type { LoadingProps } from "./loading";
|
|
|
75
78
|
export { Menu, MenuDivider, MenuGroup, MenuItem, SubMenu } from "./menu";
|
|
76
79
|
export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps, } from "./menu";
|
|
77
80
|
export { default as message } from "./message";
|
|
78
|
-
export type { MessageOptions } from "./message";
|
|
81
|
+
export type { MessageOptions, MessageApi } from "./message";
|
|
79
82
|
export { default as Mentions } from "./mentions";
|
|
80
83
|
export type { MentionOption, MentionsProps } from "./mentions";
|
|
81
84
|
export { MessagePanel, NoticePanel } from "./notice/content";
|
|
82
85
|
export { modal, ModalPanel, default as Modal } from "./modal";
|
|
83
|
-
export type { ModalApiProps, ModalProps } from "./modal";
|
|
86
|
+
export type { ModalApi, ModalApiProps, ModalProps, ModalInstance } from "./modal";
|
|
84
87
|
export { default as notice } from "./notice";
|
|
85
|
-
export type { NoticeOptions } from "./notice";
|
|
88
|
+
export type { NoticeOptions, NoticeApi } from "./notice";
|
|
86
89
|
export { default as Page } from "./page";
|
|
87
90
|
export type { PageProps } from "./page";
|
|
88
91
|
export { default as PageHeader } from "./page-header";
|
|
@@ -98,7 +101,7 @@ export type { RippleInstance, RippleOptions, RippleProps, RippleTrigger } from "
|
|
|
98
101
|
export { default as QRCode } from "./qrcode";
|
|
99
102
|
export type { QRCodeErrorLevel, QRCodeProps, QRCodeRef, QRCodeStatus } from "./qrcode";
|
|
100
103
|
export { Radio, RadioButton, RadioGroup } from "./radio";
|
|
101
|
-
export type { RadioButtonProps, RadioGroupProps, RadioOption, RadioProps } from "./radio";
|
|
104
|
+
export type { RadioButtonProps, RadioGroupProps, RadioOption, RadioProps, RadioChangeEvent, } from "./radio";
|
|
102
105
|
export { default as Segmented } from "./segmented";
|
|
103
106
|
export type { SegmentedOption, SegmentedProps, SegmentedValue } from "./segmented";
|
|
104
107
|
export { default as Rate } from "./rate";
|
|
@@ -108,11 +111,11 @@ export type { ResultProps, ResultStatus } from "./result";
|
|
|
108
111
|
export { default as FeedbackPanel } from "./feedback-panel";
|
|
109
112
|
export type { FeedbackPanelKind, FeedbackPanelProps } from "./feedback-panel";
|
|
110
113
|
export { Option, Select } from "./select";
|
|
111
|
-
export type { OptionProps, SelectOption, SelectProps } from "./select";
|
|
114
|
+
export type { OptionProps, OptionSelectEvent, SelectOption, SelectProps, SelectValue, } from "./select";
|
|
112
115
|
export { default as ConfigProvider } from "./config";
|
|
113
116
|
export type { ConfigProviderProps } from "./config";
|
|
114
117
|
export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonText } from "./skeleton";
|
|
115
|
-
export type { SkeletonProps } from "./skeleton";
|
|
118
|
+
export type { SkeletonProps, SkeletonAvatarProps, SkeletonButtonProps, SkeletonImageProps, SkeletonTextProps, } from "./skeleton";
|
|
116
119
|
export { StatCard, StatNumber } from "./stat-card";
|
|
117
120
|
export type { StatCardProps, StatNumberItem, StatNumberProps } from "./stat-card";
|
|
118
121
|
export { default as Slider } from "./slider";
|
|
@@ -138,24 +141,26 @@ export type { TourProps, TourStep } from "./tour";
|
|
|
138
141
|
export { default as Transfer } from "./transfer";
|
|
139
142
|
export type { TransferItem, TransferKey, TransferProps } from "./transfer";
|
|
140
143
|
export { default as Typography, TypographyParagraph, TypographyText, TypographyTitle, } from "./typography";
|
|
141
|
-
export type { TypographyCopyableOptions, TypographyEditableOptions, TypographyEllipsisOptions, TypographyProps, } from "./typography";
|
|
144
|
+
export type { TypographyCopyableOptions, TypographyEditableOptions, TypographyEllipsisOptions, TypographyProps, TypographyTag, TypographyType, } from "./typography";
|
|
142
145
|
export { TabPanel, Tabs } from "./tabs";
|
|
143
|
-
export type { TabPanelProps, TabsProps } from "./tabs";
|
|
146
|
+
export type { TabPanelProps, TabsProps, TabKey } from "./tabs";
|
|
144
147
|
export { TimeLine, TimeLineItem } from "./time-line";
|
|
145
148
|
export type { TimelineItemProps, TimelineMode, TimelineProps } from "./time-line";
|
|
146
149
|
export { default as Tree } from "./tree";
|
|
147
150
|
export type { TreeDropEvent, TreeDropPosition, TreeExpandEvent, TreeExpose, TreeFieldNames, TreeNode, TreeProps, } from "./tree";
|
|
148
151
|
export { default as TreeSelect } from "./tree-select";
|
|
149
|
-
export type { TreeSelectProps } from "./tree-select";
|
|
152
|
+
export type { TreeSelectProps, TreeSelectValue } from "./tree-select";
|
|
150
153
|
export { default as Tag } from "./tag";
|
|
151
154
|
export type { TagProps } from "./tag";
|
|
152
155
|
export { Col, Row } from "./row-col";
|
|
153
156
|
export type { ColProps, ColResponsiveSize, ColSize, RowProps } from "./row-col";
|
|
154
157
|
export { default as Upload } from "./upload";
|
|
155
|
-
export type { UploadChangeEvent, UploadContext, UploadCustomRequest, UploadFile, UploadProps, } from "./upload";
|
|
158
|
+
export type { UploadChangeEvent, UploadContext, UploadCustomRequest, UploadFile, UploadProps, UploadRequestOptions, UploadRequestHandle, UploadSortEvent, } from "./upload";
|
|
156
159
|
export { default as Watermark } from "./watermark";
|
|
157
160
|
export type { WatermarkFont, WatermarkLayoutType, WatermarkProps, WatermarkTextItem, } from "./watermark";
|
|
158
161
|
export { default as VirtualList } from "./virtual-list";
|
|
159
162
|
export type { VirtualListKey, VirtualListProps } from "./virtual-list";
|
|
160
163
|
export { default as theme } from "./utils/theme";
|
|
161
|
-
export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, SurfaceShapeType, ThemeType, UploadStatusType, } from "./const/types";
|
|
164
|
+
export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, SurfaceShapeType, ThemeType, UploadStatusType, ValueType, TriggerType, } from "./const/types";
|
|
165
|
+
export type { LayoutProps, SiderProps } from "./layout";
|
|
166
|
+
export type { PopupContainerGetter } from "./config/popup";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue";
|
|
1
2
|
import { Dayjs } from "dayjs";
|
|
2
3
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
3
4
|
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
@@ -12,6 +13,10 @@ export type DatePickerInput = string | number | Date | Dayjs;
|
|
|
12
13
|
export type DatePickerOutput = string | number | Date | null;
|
|
13
14
|
declare const datePickerProps: {
|
|
14
15
|
modelValue: {
|
|
16
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
15
20
|
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
16
21
|
default: null;
|
|
17
22
|
};
|
|
@@ -101,14 +106,20 @@ type DatePickerPublicProps<T extends DatePickerModelValue, TStart extends DatePi
|
|
|
101
106
|
"onUpdate:startDate"?: (value: TStart) => void;
|
|
102
107
|
"onUpdate:endDate"?: (value: TEnd) => void;
|
|
103
108
|
onChange?: (value: T, text: string | string[]) => void;
|
|
109
|
+
onOpenChange?: (open: boolean) => void;
|
|
110
|
+
onClear?: () => void;
|
|
104
111
|
};
|
|
105
112
|
type DatePickerComponent = {
|
|
106
113
|
new <T extends DatePickerModelValue = DatePickerOutput, TStart extends DatePickerOutput = DatePickerBoundaryValue<T>, TEnd extends DatePickerOutput = DatePickerBoundaryValue<T>>(props: DatePickerPublicProps<T, TStart, TEnd>): {
|
|
107
114
|
$props: DatePickerPublicProps<T, TStart, TEnd>;
|
|
108
115
|
};
|
|
109
116
|
};
|
|
110
|
-
|
|
117
|
+
declare const DatePicker: import("vue").DefineComponent<ExtractPropTypes<{
|
|
111
118
|
modelValue: {
|
|
119
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
value: {
|
|
112
123
|
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
113
124
|
default: null;
|
|
114
125
|
};
|
|
@@ -186,10 +197,19 @@ export declare const DatePickerPanel: import("vue").DefineComponent<ExtractPropT
|
|
|
186
197
|
type: PropType<DropPlacementsType>;
|
|
187
198
|
default: string;
|
|
188
199
|
};
|
|
189
|
-
}>, () => import("vue").
|
|
190
|
-
|
|
191
|
-
|
|
200
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
201
|
+
"update:modelValue": (value: DatePickerOutput | DatePickerOutput[]) => boolean;
|
|
202
|
+
"update:startDate": (value: DatePickerOutput) => boolean;
|
|
203
|
+
"update:endDate": (value: DatePickerOutput) => boolean;
|
|
204
|
+
change: (value: DatePickerOutput | DatePickerOutput[], text: string | string[]) => boolean;
|
|
205
|
+
openChange: (open: boolean) => boolean;
|
|
206
|
+
clear: () => true;
|
|
207
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
192
208
|
modelValue: {
|
|
209
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
value: {
|
|
193
213
|
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
194
214
|
default: null;
|
|
195
215
|
};
|
|
@@ -267,11 +287,19 @@ export declare const DatePickerPanel: import("vue").DefineComponent<ExtractPropT
|
|
|
267
287
|
type: PropType<DropPlacementsType>;
|
|
268
288
|
default: string;
|
|
269
289
|
};
|
|
270
|
-
}>> & Readonly<{
|
|
271
|
-
|
|
272
|
-
|
|
290
|
+
}>> & Readonly<{
|
|
291
|
+
onChange?: ((value: DatePickerOutput | DatePickerOutput[], text: string | string[]) => any) | undefined;
|
|
292
|
+
onClear?: (() => any) | undefined;
|
|
293
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
294
|
+
"onUpdate:modelValue"?: ((value: DatePickerOutput | DatePickerOutput[]) => any) | undefined;
|
|
295
|
+
"onUpdate:startDate"?: ((value: DatePickerOutput) => any) | undefined;
|
|
296
|
+
"onUpdate:endDate"?: ((value: DatePickerOutput) => any) | undefined;
|
|
297
|
+
}>, {
|
|
273
298
|
mode: DatePickerModeType;
|
|
274
299
|
placement: DropPlacementsType;
|
|
300
|
+
theme: ThemeType;
|
|
301
|
+
value: DatePickerInput | DatePickerInput[] | null;
|
|
302
|
+
bordered: boolean | undefined;
|
|
275
303
|
modelValue: DatePickerInput | DatePickerInput[] | null;
|
|
276
304
|
clearable: boolean | undefined;
|
|
277
305
|
placeholder: string | string[];
|
|
@@ -283,5 +311,6 @@ export declare const DatePickerPanel: import("vue").DefineComponent<ExtractPropT
|
|
|
283
311
|
disabledDate: (date: Date) => boolean;
|
|
284
312
|
disabledTime: (date: Date) => boolean;
|
|
285
313
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
314
|
+
export declare const DatePickerPanel: ForwardedComponent<typeof DatePicker>;
|
|
286
315
|
declare const _default: DatePickerComponent;
|
|
287
316
|
export default _default;
|
package/types/drawer/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { type ComponentPublicInstance, type ExtractPropTypes, type PropType } from "vue";
|
|
2
2
|
import type { DrawerPlacementsType } from "../const/types";
|
|
3
3
|
declare const drawerProps: {
|
|
4
|
-
modelValue:
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
value: BooleanConstructor;
|
|
5
9
|
title: {
|
|
6
10
|
type: StringConstructor;
|
|
7
11
|
default: string;
|
|
@@ -50,7 +54,11 @@ declare const drawerProps: {
|
|
|
50
54
|
};
|
|
51
55
|
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
52
56
|
declare const Drawer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
53
|
-
modelValue:
|
|
57
|
+
modelValue: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
value: BooleanConstructor;
|
|
54
62
|
title: {
|
|
55
63
|
type: StringConstructor;
|
|
56
64
|
default: string;
|
|
@@ -103,7 +111,11 @@ declare const Drawer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
103
111
|
cancel: () => true;
|
|
104
112
|
close: () => true;
|
|
105
113
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
106
|
-
modelValue:
|
|
114
|
+
modelValue: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
value: BooleanConstructor;
|
|
107
119
|
title: {
|
|
108
120
|
type: StringConstructor;
|
|
109
121
|
default: string;
|
|
@@ -152,8 +164,8 @@ declare const Drawer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
152
164
|
}>> & Readonly<{
|
|
153
165
|
onCancel?: (() => any) | undefined;
|
|
154
166
|
onClose?: (() => any) | undefined;
|
|
155
|
-
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
156
167
|
onOpenChange?: ((visible: boolean) => any) | undefined;
|
|
168
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
157
169
|
onOk?: (() => any) | undefined;
|
|
158
170
|
}>, {
|
|
159
171
|
height: string | number;
|
|
@@ -162,8 +174,9 @@ declare const Drawer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
162
174
|
footer: boolean;
|
|
163
175
|
title: string;
|
|
164
176
|
loading: boolean;
|
|
165
|
-
closable: boolean;
|
|
166
177
|
placement: DrawerPlacementsType;
|
|
178
|
+
value: boolean;
|
|
179
|
+
closable: boolean;
|
|
167
180
|
modelValue: boolean;
|
|
168
181
|
maskClosable: boolean;
|
|
169
182
|
escKey: boolean;
|
|
@@ -18,7 +18,7 @@ declare const dropdownProps: {
|
|
|
18
18
|
target: PropType<Ref<HTMLElement | ComponentPublicInstance | null>>;
|
|
19
19
|
};
|
|
20
20
|
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
22
22
|
trigger: {
|
|
23
23
|
type: PropType<TriggerType>;
|
|
24
24
|
default: string;
|
|
@@ -34,11 +34,9 @@ declare const Dropdown: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
36
|
target: PropType<Ref<HTMLElement | ComponentPublicInstance | null>>;
|
|
37
|
-
}>, () => import("vue").
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"update:show": null;
|
|
41
|
-
openChange: null;
|
|
37
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
"update:show": (show: boolean) => boolean;
|
|
39
|
+
openChange: (open: boolean) => boolean;
|
|
42
40
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
43
41
|
trigger: {
|
|
44
42
|
type: PropType<TriggerType>;
|
|
@@ -56,13 +54,11 @@ declare const Dropdown: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
56
54
|
};
|
|
57
55
|
target: PropType<Ref<HTMLElement | ComponentPublicInstance | null>>;
|
|
58
56
|
}>> & Readonly<{
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
58
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
61
59
|
}>, {
|
|
62
|
-
placement: DropPlacementsType;
|
|
63
60
|
trigger: TriggerType;
|
|
61
|
+
placement: DropPlacementsType;
|
|
64
62
|
arrow: boolean | undefined;
|
|
65
|
-
}, {}, {}, {
|
|
66
|
-
|
|
67
|
-
}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
-
export default Dropdown;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
2
|
import type { BooleanType, DirectionType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
-
import type { ColProps, FormRules } from "./types";
|
|
3
|
+
import type { ColProps, FormRules, FormSubmitEvent } from "./types";
|
|
4
4
|
declare const formProps: {
|
|
5
5
|
layout: {
|
|
6
6
|
type: PropType<DirectionType>;
|
|
@@ -52,9 +52,7 @@ declare const Form: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
52
52
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
53
|
change: (model: Record<string, unknown>) => boolean;
|
|
54
54
|
reset: () => true;
|
|
55
|
-
submit: (result:
|
|
56
|
-
valid: boolean;
|
|
57
|
-
}) => boolean;
|
|
55
|
+
submit: (result: FormSubmitEvent) => boolean;
|
|
58
56
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
59
57
|
layout: {
|
|
60
58
|
type: PropType<DirectionType>;
|
|
@@ -81,9 +79,7 @@ declare const Form: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
81
79
|
}>> & Readonly<{
|
|
82
80
|
onChange?: ((model: Record<string, unknown>) => any) | undefined;
|
|
83
81
|
onReset?: (() => any) | undefined;
|
|
84
|
-
onSubmit?: ((result:
|
|
85
|
-
valid: boolean;
|
|
86
|
-
}) => any) | undefined;
|
|
82
|
+
onSubmit?: ((result: FormSubmitEvent) => any) | undefined;
|
|
87
83
|
}>, {
|
|
88
84
|
layout: DirectionType;
|
|
89
85
|
colon: boolean | undefined;
|
package/types/form/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import Form from "./form";
|
|
|
2
2
|
import type { FormExpose } from "./types";
|
|
3
3
|
import FormItem from "./form-item";
|
|
4
4
|
export type { FormProps } from "./form";
|
|
5
|
-
export type { FormRules, FormSubmitEvent } from "./types";
|
|
5
|
+
export type { FormRules, FormSubmitEvent, FormExpose, FormValidateTrigger } from "./types";
|
|
6
6
|
export type { FormItemProps } from "./form-item";
|
|
7
7
|
export { Form, FormItem };
|
|
8
8
|
export type FormContext = InstanceType<typeof Form> & FormExpose;
|
package/types/global.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ declare module '@vue/runtime-core' {
|
|
|
5
5
|
export interface GlobalComponents {
|
|
6
6
|
Affix: typeof import('kui-vue')['Affix']
|
|
7
7
|
KAffix: typeof import('kui-vue')['Affix']
|
|
8
|
+
Popup: typeof import('kui-vue')['Popup']
|
|
9
|
+
KPopup: typeof import('kui-vue')['Popup']
|
|
8
10
|
Alert: typeof import('kui-vue')['Alert']
|
|
9
11
|
KAlert: typeof import('kui-vue')['Alert']
|
|
10
12
|
AutoComplete: typeof import('kui-vue')['AutoComplete']
|
package/types/input/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Input from "./input";
|
|
2
2
|
import InputGroup from "./input-group";
|
|
3
3
|
import TextArea from "./textarea";
|
|
4
|
-
export type { InputProps } from "./input";
|
|
4
|
+
export type { InputProps, InputEvents, InputRef } from "./input";
|
|
5
5
|
export type { InputGroupProps } from "./input-group";
|
|
6
|
-
export type { TextAreaProps } from "./textarea";
|
|
6
|
+
export type { TextAreaProps, TextAreaEvents } from "./textarea";
|
|
7
7
|
export { Input, InputGroup, TextArea };
|
|
8
8
|
export default Input;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ExtractPropTypes, type InputHTMLAttributes, type PropType, type VNodeChild } from "vue";
|
|
2
2
|
import { type BooleanType, type ShapeType, type SizeType, type ThemeType } from "../const/types";
|
|
3
3
|
import { type IconType } from "../icon";
|
|
4
4
|
declare const inputProps: {
|
|
@@ -48,8 +48,21 @@ declare const inputProps: {
|
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
export
|
|
52
|
-
|
|
51
|
+
export interface InputEvents {
|
|
52
|
+
"onUpdate:modelValue"?: (value: string) => void;
|
|
53
|
+
onChange?: (value: string) => void;
|
|
54
|
+
onSearch?: (value: string) => void;
|
|
55
|
+
onIconClick?: (event: MouseEvent) => void;
|
|
56
|
+
onClear?: () => void;
|
|
57
|
+
onFocus?: (event: FocusEvent) => void;
|
|
58
|
+
onBlur?: (event: FocusEvent) => void;
|
|
59
|
+
}
|
|
60
|
+
export interface InputRef {
|
|
61
|
+
focus: () => void;
|
|
62
|
+
blur: () => void;
|
|
63
|
+
}
|
|
64
|
+
export type InputProps = Partial<ExtractPropTypes<typeof inputProps>> & Omit<InputHTMLAttributes, keyof InputEvents | "prefix"> & InputEvents;
|
|
65
|
+
declare const FormInput: import("vue").DefineComponent<ExtractPropTypes<{
|
|
53
66
|
clearable: {
|
|
54
67
|
type: BooleanType;
|
|
55
68
|
default: boolean;
|
|
@@ -164,5 +177,9 @@ declare const FormInput: DefineComponent<ExtractPropTypes<{
|
|
|
164
177
|
clearable: boolean | undefined;
|
|
165
178
|
visiblePasswordIcon: boolean | undefined;
|
|
166
179
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
167
|
-
declare const _default: typeof FormInput &
|
|
180
|
+
declare const _default: typeof FormInput & {
|
|
181
|
+
new (): Omit<InstanceType<typeof FormInput>, "$props"> & InputRef & {
|
|
182
|
+
$props: InputProps;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
168
185
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type TextareaHTMLAttributes } from "vue";
|
|
2
2
|
import type { BooleanType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
3
|
declare const textAreaProps: {
|
|
4
4
|
value: PropType<string | number | readonly string[] | null>;
|
|
@@ -19,8 +19,13 @@ declare const textAreaProps: {
|
|
|
19
19
|
disabled: BooleanType;
|
|
20
20
|
readonly: BooleanType;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
23
|
-
|
|
22
|
+
export interface TextAreaEvents {
|
|
23
|
+
"onUpdate:modelValue"?: (value: string) => void;
|
|
24
|
+
onChange?: (value: string) => void;
|
|
25
|
+
onInput?: (event: Event) => void;
|
|
26
|
+
}
|
|
27
|
+
export type TextAreaProps = Partial<ExtractPropTypes<typeof textAreaProps>> & Omit<TextareaHTMLAttributes, keyof TextAreaEvents> & TextAreaEvents;
|
|
28
|
+
declare const FormTextArea: import("vue").DefineComponent<ExtractPropTypes<{
|
|
24
29
|
value: PropType<string | number | readonly string[] | null>;
|
|
25
30
|
modelValue: PropType<string | number | readonly string[] | null>;
|
|
26
31
|
theme: {
|
|
@@ -68,5 +73,9 @@ declare const FormTextArea: DefineComponent<ExtractPropTypes<{
|
|
|
68
73
|
theme: ThemeType;
|
|
69
74
|
rows: number;
|
|
70
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
-
declare const _default: typeof FormTextArea &
|
|
76
|
+
declare const _default: typeof FormTextArea & {
|
|
77
|
+
new (): Omit<InstanceType<typeof FormTextArea>, "$props"> & {
|
|
78
|
+
$props: TextAreaProps;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
72
81
|
export default _default;
|
|
@@ -3,6 +3,7 @@ import { type BooleanType, type ShapeType, type SizeType, type ThemeType } from
|
|
|
3
3
|
import { type IconType } from "../icon";
|
|
4
4
|
declare const inputNumberProps: {
|
|
5
5
|
modelValue: PropType<number | string>;
|
|
6
|
+
value: PropType<number | string>;
|
|
6
7
|
min: {
|
|
7
8
|
type: NumberConstructor;
|
|
8
9
|
default: number;
|
|
@@ -46,6 +47,7 @@ declare const inputNumberProps: {
|
|
|
46
47
|
export type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>;
|
|
47
48
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
48
49
|
modelValue: PropType<number | string>;
|
|
50
|
+
value: PropType<number | string>;
|
|
49
51
|
min: {
|
|
50
52
|
type: NumberConstructor;
|
|
51
53
|
default: number;
|
|
@@ -92,6 +94,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
92
94
|
keydown: (event: KeyboardEvent) => boolean;
|
|
93
95
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
94
96
|
modelValue: PropType<number | string>;
|
|
97
|
+
value: PropType<number | string>;
|
|
95
98
|
min: {
|
|
96
99
|
type: NumberConstructor;
|
|
97
100
|
default: number;
|
|
@@ -3,6 +3,10 @@ import type { BooleanType, ShapeType, SizeType, ThemeType } from "../const/types
|
|
|
3
3
|
import type { InputOTPValidator } from "./types";
|
|
4
4
|
declare const inputOTPProps: {
|
|
5
5
|
modelValue: {
|
|
6
|
+
type: PropType<string | number>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
value: {
|
|
6
10
|
type: PropType<string | number>;
|
|
7
11
|
default: string;
|
|
8
12
|
};
|
|
@@ -30,6 +34,10 @@ declare const inputOTPProps: {
|
|
|
30
34
|
export type InputOTPProps = ExtractPropTypes<typeof inputOTPProps>;
|
|
31
35
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
32
36
|
modelValue: {
|
|
37
|
+
type: PropType<string | number>;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
value: {
|
|
33
41
|
type: PropType<string | number>;
|
|
34
42
|
default: string;
|
|
35
43
|
};
|
|
@@ -61,6 +69,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
61
69
|
blur: (event: FocusEvent) => boolean;
|
|
62
70
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
63
71
|
modelValue: {
|
|
72
|
+
type: PropType<string | number>;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
value: {
|
|
64
76
|
type: PropType<string | number>;
|
|
65
77
|
default: string;
|
|
66
78
|
};
|
|
@@ -94,6 +106,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
94
106
|
length: number;
|
|
95
107
|
type: "number" | "text";
|
|
96
108
|
theme: ThemeType;
|
|
109
|
+
value: string | number;
|
|
97
110
|
modelValue: string | number;
|
|
98
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
112
|
export default _default;
|
|
@@ -139,9 +139,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
139
139
|
}>, {
|
|
140
140
|
disabled: boolean;
|
|
141
141
|
loading: boolean;
|
|
142
|
+
placement: DropPlacementsType;
|
|
142
143
|
theme: ThemeType;
|
|
143
144
|
value: string;
|
|
144
|
-
placement: DropPlacementsType;
|
|
145
145
|
readonly: boolean;
|
|
146
146
|
clearable: boolean;
|
|
147
147
|
rows: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
2
|
import type { BooleanType, DirectionType } from "../const/types";
|
|
3
|
-
import type { MenuOptionsProps } from "./types";
|
|
3
|
+
import type { MenuOptionsProps, MenuSelectEvent } from "./types";
|
|
4
4
|
declare const menuProps: {
|
|
5
5
|
theme: PropType<"light" | "dark">;
|
|
6
6
|
mode: {
|
|
@@ -8,6 +8,10 @@ declare const menuProps: {
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
modelValue: {
|
|
11
|
+
type: PropType<string[]>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
value: {
|
|
11
15
|
type: PropType<string[]>;
|
|
12
16
|
default: () => never[];
|
|
13
17
|
};
|
|
@@ -31,6 +35,10 @@ declare const Menu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
31
35
|
default: string;
|
|
32
36
|
};
|
|
33
37
|
modelValue: {
|
|
38
|
+
type: PropType<string[]>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
value: {
|
|
34
42
|
type: PropType<string[]>;
|
|
35
43
|
default: () => never[];
|
|
36
44
|
};
|
|
@@ -48,10 +56,7 @@ declare const Menu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
48
56
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
57
|
"update:modelValue": (keys: string[]) => boolean;
|
|
50
58
|
"update:openKeys": (keys: string[]) => boolean;
|
|
51
|
-
select: (event:
|
|
52
|
-
key: string;
|
|
53
|
-
keyPath: string[];
|
|
54
|
-
}) => boolean;
|
|
59
|
+
select: (event: MenuSelectEvent) => boolean;
|
|
55
60
|
openChange: (keys: string[]) => boolean;
|
|
56
61
|
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
57
62
|
theme: PropType<"light" | "dark">;
|
|
@@ -60,6 +65,10 @@ declare const Menu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
60
65
|
default: string;
|
|
61
66
|
};
|
|
62
67
|
modelValue: {
|
|
68
|
+
type: PropType<string[]>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
value: {
|
|
63
72
|
type: PropType<string[]>;
|
|
64
73
|
default: () => never[];
|
|
65
74
|
};
|
|
@@ -75,15 +84,13 @@ declare const Menu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
75
84
|
default: () => never[];
|
|
76
85
|
};
|
|
77
86
|
}>> & Readonly<{
|
|
78
|
-
onSelect?: ((event:
|
|
79
|
-
key: string;
|
|
80
|
-
keyPath: string[];
|
|
81
|
-
}) => any) | undefined;
|
|
82
|
-
"onUpdate:modelValue"?: ((keys: string[]) => any) | undefined;
|
|
87
|
+
onSelect?: ((event: MenuSelectEvent) => any) | undefined;
|
|
83
88
|
onOpenChange?: ((keys: string[]) => any) | undefined;
|
|
89
|
+
"onUpdate:modelValue"?: ((keys: string[]) => any) | undefined;
|
|
84
90
|
"onUpdate:openKeys"?: ((keys: string[]) => any) | undefined;
|
|
85
91
|
}>, {
|
|
86
92
|
mode: DirectionType;
|
|
93
|
+
value: string[];
|
|
87
94
|
modelValue: string[];
|
|
88
95
|
openKeys: string[];
|
|
89
96
|
collapsedTooltip: boolean | undefined;
|
package/types/modal/index.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import type { IconType } from "../icon";
|
|
|
2
2
|
import Modal, { ModalPanel } from "./modal";
|
|
3
3
|
export type { ModalProps } from "./modal";
|
|
4
4
|
export { ModalPanel };
|
|
5
|
+
export interface ModalInstance {
|
|
6
|
+
show: () => void;
|
|
7
|
+
hide: () => void;
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
}
|
|
5
10
|
export interface ModalApiProps {
|
|
6
11
|
title: string;
|
|
7
12
|
okText?: string;
|
|
@@ -9,18 +14,18 @@ export interface ModalApiProps {
|
|
|
9
14
|
content: string;
|
|
10
15
|
color?: string;
|
|
11
16
|
icon?: IconType[];
|
|
12
|
-
onOk?: () => void
|
|
17
|
+
onOk?: () => void | PromiseLike<unknown>;
|
|
13
18
|
onCancel?: () => void;
|
|
14
19
|
type?: "info" | "success" | "error" | "warning" | "confirm";
|
|
15
20
|
}
|
|
16
21
|
export interface ModalApi {
|
|
17
22
|
name?: "modal";
|
|
18
|
-
show(props: ModalApiProps):
|
|
19
|
-
info(props: ModalApiProps):
|
|
20
|
-
success(props: ModalApiProps):
|
|
21
|
-
warning(props: ModalApiProps):
|
|
22
|
-
confirm(props: ModalApiProps):
|
|
23
|
-
error(props: ModalApiProps):
|
|
23
|
+
show(props: ModalApiProps): ModalInstance | null;
|
|
24
|
+
info(props: ModalApiProps): ModalInstance | null;
|
|
25
|
+
success(props: ModalApiProps): ModalInstance | null;
|
|
26
|
+
warning(props: ModalApiProps): ModalInstance | null;
|
|
27
|
+
confirm(props: ModalApiProps): ModalInstance | null;
|
|
28
|
+
error(props: ModalApiProps): ModalInstance | null;
|
|
24
29
|
destroyAll(): void;
|
|
25
30
|
}
|
|
26
31
|
export declare const modal: ModalApi;
|