@well-insight/ui 0.1.6 → 0.1.7
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/CHANGELOG.md +8 -0
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.vue.d.ts +7 -3
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +4 -2
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/index.d.ts +1 -1
- package/dist/components/AutoComplete/index.d.ts.map +1 -1
- package/dist/components/AutoComplete/types.d.ts +8 -1
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.vue.d.ts +5 -1
- package/dist/components/Avatar/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Avatar/AvatarGroup.vue.d.ts +6 -0
- package/dist/components/Avatar/AvatarGroup.vue.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -1
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/types.d.ts +9 -0
- package/dist/components/Avatar/types.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.d.ts +12 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/types.d.ts +7 -0
- package/dist/components/Badge/types.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +13 -1
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumb/types.d.ts +2 -0
- package/dist/components/Breadcrumb/types.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/ButtonGroup.vue.d.ts +18 -0
- package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +14 -2
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +10 -5
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/types.d.ts +8 -0
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts +4 -0
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/types.d.ts +5 -0
- package/dist/components/Carousel/types.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.vue.d.ts +24 -0
- package/dist/components/Checkbox/CheckboxGroup.vue.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/types.d.ts +29 -2
- package/dist/components/Checkbox/types.d.ts.map +1 -1
- package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/Chip/types.d.ts +7 -0
- package/dist/components/Chip/types.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/index.d.ts +1 -1
- package/dist/components/ConfigProvider/index.d.ts.map +1 -1
- package/dist/components/ConfigProvider/types.d.ts +1 -1
- package/dist/components/ConfigProvider/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +4 -3
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +10 -0
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +4 -3
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/index.d.ts +1 -1
- package/dist/components/ConfirmPopup/index.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/types.d.ts +9 -0
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts +13 -0
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -0
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/ContextMenu/index.d.ts.map +1 -1
- package/dist/components/ContextMenu/types.d.ts +3 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/useContextMenu.d.ts +16 -0
- package/dist/components/ContextMenu/useContextMenu.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +7 -3
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/types.d.ts +16 -4
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +4 -4
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/types.d.ts +25 -0
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Divider/Divider.vue.d.ts.map +1 -1
- package/dist/components/Divider/types.d.ts +2 -0
- package/dist/components/Divider/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +5 -3
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/types.d.ts +5 -0
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +6 -3
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +32 -0
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -0
- package/dist/components/Dropdown/types.d.ts +14 -3
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -0
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/types.d.ts +2 -0
- package/dist/components/FileUpload/types.d.ts.map +1 -1
- package/dist/components/Flex/Flex.vue.d.ts +12 -0
- package/dist/components/Flex/Flex.vue.d.ts.map +1 -0
- package/dist/components/Flex/index.d.ts +3 -0
- package/dist/components/Flex/index.d.ts.map +1 -0
- package/dist/components/Flex/types.d.ts +21 -0
- package/dist/components/Flex/types.d.ts.map +1 -0
- package/dist/components/Form/Form.vue.d.ts +4 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/FormItem.vue.d.ts.map +1 -1
- package/dist/components/Form/context.d.ts +8 -3
- package/dist/components/Form/context.d.ts.map +1 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Form/rules.d.ts +8 -0
- package/dist/components/Form/rules.d.ts.map +1 -0
- package/dist/components/Form/types.d.ts +52 -11
- package/dist/components/Form/types.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.d.ts +25 -0
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -0
- package/dist/components/Grid/GridItem.vue.d.ts +22 -0
- package/dist/components/Grid/GridItem.vue.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +6 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/Grid/types.d.ts +51 -0
- package/dist/components/Grid/types.d.ts.map +1 -0
- package/dist/components/Input/Input.vue.d.ts +1 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/InputColor/InputColor.vue.d.ts.map +1 -1
- package/dist/components/InputColor/types.d.ts +2 -0
- package/dist/components/InputColor/types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts +3 -1
- package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
- package/dist/components/InputNumber/index.d.ts +1 -1
- package/dist/components/InputNumber/index.d.ts.map +1 -1
- package/dist/components/InputNumber/types.d.ts +6 -0
- package/dist/components/InputNumber/types.d.ts.map +1 -1
- package/dist/components/InputOtp/InputOtp.vue.d.ts +1 -0
- package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
- package/dist/components/InputOtp/types.d.ts +6 -0
- package/dist/components/InputOtp/types.d.ts.map +1 -1
- package/dist/components/InputPassword/InputPassword.vue.d.ts +5 -0
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/index.d.ts +1 -1
- package/dist/components/InputPassword/index.d.ts.map +1 -1
- package/dist/components/InputPassword/types.d.ts +14 -1
- package/dist/components/InputPassword/types.d.ts.map +1 -1
- package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
- package/dist/components/InputTags/types.d.ts +4 -0
- package/dist/components/InputTags/types.d.ts.map +1 -1
- package/dist/components/Knob/Knob.vue.d.ts +1 -1
- package/dist/components/Layout/Layout.vue.d.ts +28 -0
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutContent.vue.d.ts +26 -0
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutFooter.vue.d.ts +20 -0
- package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutHeader.vue.d.ts +20 -0
- package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutSider.vue.d.ts +43 -0
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -0
- package/dist/components/Layout/context.d.ts +8 -0
- package/dist/components/Layout/context.d.ts.map +1 -0
- package/dist/components/Layout/index.d.ts +8 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Layout/types.d.ts +104 -0
- package/dist/components/Layout/types.d.ts.map +1 -0
- package/dist/components/Menu/Menu.vue.d.ts +8 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuNodes.vue.d.ts +17 -0
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -0
- package/dist/components/Menu/types.d.ts +10 -0
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts +9 -2
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/index.d.ts +1 -1
- package/dist/components/Menubar/index.d.ts.map +1 -1
- package/dist/components/Menubar/types.d.ts +7 -0
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/index.d.ts +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/message.d.ts +5 -1
- package/dist/components/Message/message.d.ts.map +1 -1
- package/dist/components/Message/messageState.d.ts +5 -1
- package/dist/components/Message/messageState.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +9 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts +8 -0
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/types.d.ts +12 -0
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts +3 -1
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/types.d.ts +3 -0
- package/dist/components/Panel/types.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +4 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/types.d.ts +7 -0
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +2 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/types.d.ts +8 -0
- package/dist/components/ProgressBar/types.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +13 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/types.d.ts +9 -0
- package/dist/components/ProgressSpinner/types.d.ts.map +1 -1
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/Radio/RadioGroup.vue.d.ts +23 -0
- package/dist/components/Radio/RadioGroup.vue.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +2 -1
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/types.d.ts +27 -3
- package/dist/components/Radio/types.d.ts.map +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +2 -0
- package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
- package/dist/components/Rating/types.d.ts +5 -0
- package/dist/components/Rating/types.d.ts.map +1 -1
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/types.d.ts +4 -0
- package/dist/components/ScrollTop/types.d.ts.map +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts +5 -4
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/types.d.ts +5 -2
- package/dist/components/Scrollbar/types.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +15 -7
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/types.d.ts +25 -5
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/SelectButton/SelectButton.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/types.d.ts +4 -0
- package/dist/components/Skeleton/types.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +3 -1
- package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/types.d.ts +7 -0
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Space/Space.vue.d.ts +23 -0
- package/dist/components/Space/Space.vue.d.ts.map +1 -0
- package/dist/components/Space/index.d.ts +3 -0
- package/dist/components/Space/index.d.ts.map +1 -0
- package/dist/components/Space/types.d.ts +28 -0
- package/dist/components/Space/types.d.ts.map +1 -0
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts +22 -11
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/index.d.ts +1 -1
- package/dist/components/Splitter/index.d.ts.map +1 -1
- package/dist/components/Splitter/size.d.ts +8 -0
- package/dist/components/Splitter/size.d.ts.map +1 -0
- package/dist/components/Splitter/types.d.ts +32 -8
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.vue.d.ts +1 -0
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/types.d.ts +8 -0
- package/dist/components/Stepper/types.d.ts.map +1 -1
- package/dist/components/Switch/Switch.vue.d.ts +1 -0
- package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/types.d.ts +9 -0
- package/dist/components/Switch/types.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +28 -7
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/layout.d.ts +3 -0
- package/dist/components/Table/layout.d.ts.map +1 -1
- package/dist/components/Table/types.d.ts +12 -0
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +14 -4
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/types.d.ts +10 -0
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +8 -1
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/types.d.ts +14 -1
- package/dist/components/Tag/types.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts +10 -2
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/types.d.ts +15 -1
- package/dist/components/Textarea/types.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts +10 -5
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/types.d.ts +2 -0
- package/dist/components/Timeline/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/toast.d.ts +4 -0
- package/dist/components/Toast/toast.d.ts.map +1 -1
- package/dist/components/Toast/toastState.d.ts +3 -0
- package/dist/components/Toast/toastState.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +2 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/types.d.ts +4 -0
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Tree/Tree.vue.d.ts +2 -1
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/checkStrategy.d.ts +18 -0
- package/dist/components/Tree/checkStrategy.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +1 -1
- package/dist/components/Tree/index.d.ts.map +1 -1
- package/dist/components/Tree/types.d.ts +4 -0
- package/dist/components/Tree/types.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +15 -5
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +5 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/index.d.ts +1 -1
- package/dist/components/TreeSelect/index.d.ts.map +1 -1
- package/dist/components/TreeSelect/types.d.ts +19 -3
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/index.d.ts +54 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7223 -3965
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +10 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/shared/asyncGuard.d.ts +4 -0
- package/dist/shared/asyncGuard.d.ts.map +1 -0
- package/dist/shared/componentDefaults.d.ts +93 -0
- package/dist/shared/componentDefaults.d.ts.map +1 -0
- package/dist/shared/config.d.ts +19 -1
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/gap.d.ts +19 -0
- package/dist/shared/gap.d.ts.map +1 -0
- package/dist/shared/responsive.d.ts +17 -0
- package/dist/shared/responsive.d.ts.map +1 -0
- package/dist/shared/vnode.d.ts +4 -0
- package/dist/shared/vnode.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEhE,MAAM,WAAW,WAAW;IAC1B,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAClD,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEhE,MAAM,WAAW,WAAW;IAC1B,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oCAAoC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,UAAU,CAAA;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAClD,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;CAC7B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DropdownItem, DropdownProps } from './types';
|
|
1
|
+
import { DropdownItem, DropdownProps, DropdownTrigger } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare var __VLS_1: {},
|
|
3
|
+
declare var __VLS_1: {}, __VLS_25: {
|
|
4
4
|
item: DropdownItem;
|
|
5
5
|
};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
trigger?: (props: typeof __VLS_1) => any;
|
|
8
8
|
} & {
|
|
9
|
-
item?: (props: typeof
|
|
9
|
+
item?: (props: typeof __VLS_25) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
12
|
"update:modelValue": (value: boolean) => any;
|
|
@@ -17,8 +17,11 @@ declare const __VLS_base: DefineComponent<DropdownProps, {}, {}, {}, {}, Compone
|
|
|
17
17
|
}>, {
|
|
18
18
|
modelValue: boolean;
|
|
19
19
|
teleport: boolean;
|
|
20
|
+
trigger: DropdownTrigger;
|
|
20
21
|
placement: "bottom-start" | "bottom-end";
|
|
21
22
|
closeOnSelect: boolean;
|
|
23
|
+
showDelay: number;
|
|
24
|
+
hideDelay: number;
|
|
22
25
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
23
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.vue"],"names":[],"mappings":";AAoPA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAoV1D,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ;;CAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAS7C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DropdownItem } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
items: DropdownItem[];
|
|
5
|
+
highlightedValue?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_14: {
|
|
8
|
+
item: DropdownItem;
|
|
9
|
+
}, __VLS_29: {
|
|
10
|
+
item: DropdownItem;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
item?: (props: typeof __VLS_14) => any;
|
|
14
|
+
} & {
|
|
15
|
+
item?: (props: typeof __VLS_29) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
18
|
+
select: (item: DropdownItem) => any;
|
|
19
|
+
highlight: (value: string | undefined) => any;
|
|
20
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onSelect?: ((item: DropdownItem) => any) | undefined;
|
|
22
|
+
onHighlight?: ((value: string | undefined) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=DropdownNodes.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownNodes.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownNodes.vue"],"names":[],"mappings":";AAmHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAC;AA+RF,QAAA,IAAI,QAAQ;;CAAW,EAAE,QAAQ;;CAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG7C,QAAA,MAAM,UAAU;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { WiAppendTo } from '../../shared/overlay';
|
|
2
|
+
export type DropdownItemType = 'item' | 'group' | 'divider';
|
|
3
|
+
export type DropdownTrigger = 'click' | 'hover';
|
|
2
4
|
export interface DropdownItem {
|
|
3
|
-
/** 菜单项的稳定标识,同时用于 v-for 的 key
|
|
4
|
-
value
|
|
5
|
+
/** 菜单项的稳定标识,同时用于 v-for 的 key。分组 / 分割线可省略。 */
|
|
6
|
+
value?: string;
|
|
5
7
|
/** 菜单项展示文本。需要自定义内容时可使用 item slot。 */
|
|
6
|
-
label
|
|
8
|
+
label?: string;
|
|
7
9
|
/** 禁用后不可聚焦、不可选择。 */
|
|
8
10
|
disabled?: boolean;
|
|
11
|
+
icon?: string;
|
|
12
|
+
command?: () => void;
|
|
13
|
+
type?: DropdownItemType;
|
|
14
|
+
/** Alias of `type: 'divider'`. */
|
|
15
|
+
separator?: boolean;
|
|
16
|
+
items?: DropdownItem[];
|
|
9
17
|
}
|
|
10
18
|
export interface DropdownProps {
|
|
11
19
|
/** 控制菜单是否打开。 */
|
|
@@ -16,6 +24,9 @@ export interface DropdownProps {
|
|
|
16
24
|
placement?: 'bottom-start' | 'bottom-end';
|
|
17
25
|
/** 选择菜单项后是否自动关闭菜单。 */
|
|
18
26
|
closeOnSelect?: boolean;
|
|
27
|
+
trigger?: DropdownTrigger;
|
|
28
|
+
showDelay?: number;
|
|
29
|
+
hideDelay?: number;
|
|
19
30
|
/**
|
|
20
31
|
* 是否将菜单 Teleport 出去。默认 `true`。
|
|
21
32
|
* 设为 `false` 时等价于 `appendTo: 'self'`。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,WAAW,YAAY;IAC3B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,s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ot":"","sources":["../../../src/components/FileUpload/FileUpload.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/FileUpload.vue"],"names":[],"mappings":";AAohBA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAA4B,MAAM,SAAS,CAAA;AAwKxF,iBAAS,UAAU,SAGlB;AAmGD,iBAAS,MAAM,SAId;AAED,iBAAS,KAAK,CAAC,IAAI,CAAC,EAAE,cAAc,QAMnC;AAqBD,iBAAS,UAAU,SAIlB;AA8dD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,QAAQ,IAAU,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAAW,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAAY,CAAE;AACzG,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO7C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -37,6 +37,8 @@ export interface FileUploadProps {
|
|
|
37
37
|
limit?: number;
|
|
38
38
|
/** Max file size in bytes. Oversized files are skipped. */
|
|
39
39
|
maxSize?: number;
|
|
40
|
+
/** Select a folder (`webkitdirectory`). Implies multiple files. */
|
|
41
|
+
directory?: boolean;
|
|
40
42
|
/** Show the file list. */
|
|
41
43
|
showFileList?: boolean;
|
|
42
44
|
listType?: FileUploadListType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/FileUpload/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,CAAA;AACjD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,CAAA;AACpE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AAEzE,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,gBAAgB,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,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,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IAChE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAA;IACjE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CAC3D;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAA;KAAE,KAAK,OAAO,CAAA;CACpD;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IACtC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FlexProps, FlexJustify } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const __VLS_export: DefineComponent<FlexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FlexProps> & Readonly<{}>, {
|
|
4
|
+
reverse: boolean;
|
|
5
|
+
inline: boolean;
|
|
6
|
+
vertical: boolean;
|
|
7
|
+
justify: FlexJustify;
|
|
8
|
+
wrap: boolean;
|
|
9
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=Flex.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.vue"],"names":[],"mappings":";AAuDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AA6ExC,QAAA,MAAM,YAAY;;;;;;6EAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC9C,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WiFlexAlign, WiFlexJustify, WiGapSize } from '../../shared/gap';
|
|
2
|
+
export type FlexAlign = WiFlexAlign;
|
|
3
|
+
export type FlexJustify = WiFlexJustify;
|
|
4
|
+
export type FlexSize = WiGapSize;
|
|
5
|
+
export interface FlexProps {
|
|
6
|
+
/** Cross-axis alignment. */
|
|
7
|
+
align?: FlexAlign;
|
|
8
|
+
/** Main-axis alignment. */
|
|
9
|
+
justify?: FlexJustify;
|
|
10
|
+
/** Use `inline-flex` instead of `flex`. */
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
/** Column direction. */
|
|
13
|
+
vertical?: boolean;
|
|
14
|
+
/** Reverse main axis. */
|
|
15
|
+
reverse?: boolean;
|
|
16
|
+
/** Gap between items. */
|
|
17
|
+
size?: FlexSize;
|
|
18
|
+
/** Allow wrapping (ignored when `vertical`). */
|
|
19
|
+
wrap?: boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAE7E,MAAM,MAAM,SAAS,GAAG,WAAW,CAAA;AACnC,MAAM,MAAM,WAAW,GAAG,aAAa,CAAA;AACvC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAA;AAEhC,MAAM,WAAW,SAAS;IACxB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yBAAyB;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,gDAAgD;IAChD,IAAI,CAAC,EAAE,OAAO,CAAA;CACf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormProps, FormValidateTrigger, FormLabelPosition } from './types';
|
|
1
|
+
import { FormProps, FormValidateTrigger, FormLabelPosition, FormLabelAlign } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function validate(name?: string): Promise<{
|
|
4
4
|
valid: boolean;
|
|
@@ -33,7 +33,10 @@ declare const __VLS_base: DefineComponent<FormProps, {
|
|
|
33
33
|
}) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
disabled: boolean;
|
|
36
|
+
inline: boolean;
|
|
36
37
|
labelPosition: FormLabelPosition;
|
|
38
|
+
labelPlacement: FormLabelPosition;
|
|
39
|
+
labelAlign: FormLabelAlign;
|
|
37
40
|
requireMark: boolean;
|
|
38
41
|
validateOn: FormValidateTrigger | FormValidateTrigger[];
|
|
39
42
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":";AAgJA,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AA0C7D,iBAAe,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM;;;;;GAapC;AAED,iBAAS,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,QAGnC;AAqGD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;eA1JsB,OAAO;;;eACL,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;eADzC,OAAO;;;eACL,OAAO;gBAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;6EA8J7E,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormItem.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FormItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormItem.vue"],"names":[],"mappings":";AAuKA,OAAO,KAAK,EAAE,aAAa,EAAqC,MAAM,SAAS,CAAA;AAgM/E,QAAA,IAAI,OAAO;;;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
-
import { FormLabelPosition, FormValidateTrigger } from './types';
|
|
3
|
-
export type FormFieldValidator
|
|
2
|
+
import { FormFieldValidator, FormItemRule, FormLabelAlign, FormLabelPosition, FormModel, FormRules, FormValidateTrigger } from './types';
|
|
3
|
+
export type { FormFieldValidator };
|
|
4
4
|
export interface WiFormFieldRegistration {
|
|
5
5
|
name: string;
|
|
6
6
|
validate: FormFieldValidator;
|
|
7
7
|
}
|
|
8
8
|
export interface WiFormContext {
|
|
9
|
+
model?: FormModel;
|
|
10
|
+
rules?: FormRules;
|
|
9
11
|
labelPosition: FormLabelPosition;
|
|
10
|
-
|
|
12
|
+
labelAlign: FormLabelAlign;
|
|
13
|
+
labelWidth?: string | number;
|
|
11
14
|
requireMark: boolean;
|
|
12
15
|
disabled: boolean;
|
|
13
16
|
validateOn: FormValidateTrigger[];
|
|
@@ -15,7 +18,9 @@ export interface WiFormContext {
|
|
|
15
18
|
unregisterField: (name: string) => void;
|
|
16
19
|
notifyBlur: (name: string) => void;
|
|
17
20
|
notifyChange: (name: string) => void;
|
|
21
|
+
notifyInput: (name: string) => void;
|
|
18
22
|
}
|
|
19
23
|
export declare const WI_FORM_KEY: InjectionKey<ComputedRef<WiFormContext>>;
|
|
20
24
|
export declare const WI_FORM_ERRORS_KEY: InjectionKey<Record<string, string>>;
|
|
25
|
+
export type { FormItemRule };
|
|
21
26
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Form/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Form/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,kBAAkB,EAAE,CAAA;AAElC,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,aAAa,EAAE,iBAAiB,CAAA;IAChC,UAAU,EAAE,cAAc,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC,aAAa,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAA;IACvD,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACpC;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,WAAW,CAAC,aAAa,CAAC,CAAoB,CAAA;AACrF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAA0B,CAAA;AAE9F,YAAY,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as WiForm } from './Form.vue';
|
|
2
2
|
export { default as WiFormItem } from './FormItem.vue';
|
|
3
|
-
export type { FormItemProps, FormLabelPosition, FormProps, FormValidateTrigger } from './types';
|
|
3
|
+
export type { FormInstance, FormItemProps, FormItemRule, FormLabelAlign, FormLabelPosition, FormModel, FormProps, FormRules, FormValidateResult, FormValidateTrigger, } from './types';
|
|
4
4
|
export { WI_FORM_ERRORS_KEY, WI_FORM_KEY } from './context';
|
|
5
5
|
export type { FormFieldValidator, WiFormContext, WiFormFieldRegistration } from './context';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,YAAY,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC3D,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormItemRule, FormValidateTrigger } from './types';
|
|
2
|
+
export declare function normalizeFormRules(rules?: FormItemRule | FormItemRule[]): FormItemRule[];
|
|
3
|
+
export declare function normalizeTriggers(trigger: FormValidateTrigger | FormValidateTrigger[]): FormValidateTrigger[];
|
|
4
|
+
export declare function ruleMatchesTrigger(rule: FormItemRule, trigger: FormValidateTrigger | 'all', formValidateOn: FormValidateTrigger[]): boolean;
|
|
5
|
+
export declare function isEmptyValue(value: unknown): boolean;
|
|
6
|
+
export declare function evaluateFormRule(rule: FormItemRule, value: unknown, requiredFallback: string): Promise<string | undefined>;
|
|
7
|
+
export declare function toCssSize(value?: string | number): string | undefined;
|
|
8
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/components/Form/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAEhE,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,CAGxF;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,mBAAmB,GAAG,mBAAmB,EAAE,GACnD,mBAAmB,EAAE,CAEvB;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,mBAAmB,GAAG,KAAK,EACpC,cAAc,EAAE,mBAAmB,EAAE,GACpC,OAAO,CAIT;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKpD;AAQD,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAmB7B;AAED,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAGrE"}
|
|
@@ -1,19 +1,57 @@
|
|
|
1
|
-
import { WiDensity } from '../../shared/config';
|
|
2
|
-
import { FormFieldValidator } from './context';
|
|
3
1
|
export type FormLabelPosition = 'top' | 'left';
|
|
4
|
-
export type
|
|
2
|
+
export type FormLabelAlign = 'left' | 'center' | 'right';
|
|
3
|
+
export type FormValidateTrigger = 'submit' | 'blur' | 'change' | 'input';
|
|
4
|
+
export type FormFieldValidator = (trigger?: FormValidateTrigger | 'all') => boolean | string | undefined | void | Promise<boolean | string | undefined | void>;
|
|
5
|
+
export type FormModel = Record<string, unknown>;
|
|
6
|
+
export interface FormItemRule {
|
|
7
|
+
required?: boolean;
|
|
8
|
+
message?: string;
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
pattern?: RegExp;
|
|
12
|
+
/**
|
|
13
|
+
* When this rule runs. Omit to inherit Form `validateOn`.
|
|
14
|
+
* Programmatic `validate()` / submit always runs every rule.
|
|
15
|
+
*/
|
|
16
|
+
trigger?: FormValidateTrigger | FormValidateTrigger[];
|
|
17
|
+
/**
|
|
18
|
+
* Return an error string, `false`, or a Promise of either when invalid.
|
|
19
|
+
* `undefined` / `true` / void means valid.
|
|
20
|
+
*/
|
|
21
|
+
validator?: (value: unknown) => boolean | string | undefined | void | Promise<boolean | string | undefined | void>;
|
|
22
|
+
}
|
|
23
|
+
export type FormRules = Record<string, FormItemRule | FormItemRule[]>;
|
|
24
|
+
export interface FormValidateResult {
|
|
25
|
+
valid: boolean;
|
|
26
|
+
errors: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
export interface FormInstance {
|
|
29
|
+
validate: (name?: string) => Promise<FormValidateResult>;
|
|
30
|
+
clearValidate: (name?: string) => void;
|
|
31
|
+
errors: Record<string, string>;
|
|
32
|
+
}
|
|
5
33
|
export interface FormProps {
|
|
34
|
+
/** Bound values used by declarative `rules`. */
|
|
35
|
+
model?: FormModel;
|
|
36
|
+
/** Declarative rules keyed by FormItem `name`. */
|
|
37
|
+
rules?: FormRules;
|
|
6
38
|
/** Label placement for FormItem children. */
|
|
7
39
|
labelPosition?: FormLabelPosition;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
40
|
+
/** Alias of `labelPosition` (Naive `label-placement`). `labelPosition` wins. */
|
|
41
|
+
labelPlacement?: FormLabelPosition;
|
|
42
|
+
/** Label text alignment. */
|
|
43
|
+
labelAlign?: FormLabelAlign;
|
|
44
|
+
/** Fixed label column width when labels are on the left. Number is px. */
|
|
45
|
+
labelWidth?: string | number;
|
|
46
|
+
/** Arrange items in a wrapping row. */
|
|
47
|
+
inline?: boolean;
|
|
48
|
+
/** Show required mark on FormItem with `required` or a required rule. */
|
|
11
49
|
requireMark?: boolean;
|
|
12
50
|
/** Disable all nested fields (informational; FormItem forwards via CSS). */
|
|
13
51
|
disabled?: boolean;
|
|
14
52
|
/**
|
|
15
|
-
* When to run field
|
|
16
|
-
*
|
|
53
|
+
* When to run field validation.
|
|
54
|
+
* Also the default `trigger` for rules that omit one.
|
|
17
55
|
*/
|
|
18
56
|
validateOn?: FormValidateTrigger | FormValidateTrigger[];
|
|
19
57
|
}
|
|
@@ -21,7 +59,7 @@ export interface FormItemProps {
|
|
|
21
59
|
label?: string;
|
|
22
60
|
/** Associates label with a control id. */
|
|
23
61
|
for?: string;
|
|
24
|
-
/** Field name used for Form.
|
|
62
|
+
/** Field name used for Form.validate / rules lookup. */
|
|
25
63
|
name?: string;
|
|
26
64
|
required?: boolean;
|
|
27
65
|
/** Explicit invalid state (also implied by non-empty `error`). */
|
|
@@ -32,10 +70,13 @@ export interface FormItemProps {
|
|
|
32
70
|
help?: string;
|
|
33
71
|
/** Consumer-provided validator; return a string message when invalid. */
|
|
34
72
|
validate?: FormFieldValidator;
|
|
73
|
+
/** Item-level rules; merged after Form `rules[name]`. */
|
|
74
|
+
rules?: FormItemRule | FormItemRule[];
|
|
35
75
|
/** Override Form `labelPosition`. */
|
|
36
76
|
labelPosition?: FormLabelPosition;
|
|
77
|
+
/** Override Form `labelAlign`. */
|
|
78
|
+
labelAlign?: FormLabelAlign;
|
|
37
79
|
/** Override Form `labelWidth`. */
|
|
38
|
-
labelWidth?: string;
|
|
80
|
+
labelWidth?: string | number;
|
|
39
81
|
}
|
|
40
|
-
export type { WiDensity };
|
|
41
82
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Form/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Form/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,CAAA;AAC9C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AACxD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,CAAC,EAAE,mBAAmB,GAAG,KAAK,KAClC,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG,SAAS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C,EAAE,iBAAiB,CAAA;IAClC,4BAA4B;IAC5B,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,uCAAuC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,yEAAyE;IACzE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,EAAE,CAAA;CACzD;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,yDAAyD;IACzD,KAAK,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACrC,qCAAqC;IACrC,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC7B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GridProps, GridResponsive } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: DefineComponent<GridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<GridProps> & Readonly<{}>, {
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
layoutShiftDisabled: boolean;
|
|
10
|
+
responsive: GridResponsive;
|
|
11
|
+
cols: number | string;
|
|
12
|
+
xGap: number | string;
|
|
13
|
+
yGap: number | string;
|
|
14
|
+
itemResponsive: boolean;
|
|
15
|
+
collapsedRows: number;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Grid.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.vue"],"names":[],"mappings":";AA+PA,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,SAAS,CAAA;AAyQxE,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;;;;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GridItemProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare var __VLS_1: {
|
|
4
|
+
overflow: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: DefineComponent<GridItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
|
|
10
|
+
span: number | string;
|
|
11
|
+
offset: number | string;
|
|
12
|
+
suffix: boolean;
|
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=GridItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/GridItem.vue"],"names":[],"mappings":";AAqEA,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AA0F5E,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as WiGrid } from './Grid.vue';
|
|
2
|
+
export { default as WiGridItem } from './GridItem.vue';
|
|
3
|
+
export { default as WiGi } from './GridItem.vue';
|
|
4
|
+
export type { GridItemProps, GridProps, GridResponsive } from './types';
|
|
5
|
+
export { WI_GRID_KEY } from './types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CSSProperties, InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type GridResponsive = 'self' | 'screen';
|
|
3
|
+
export interface GridProps {
|
|
4
|
+
/** Disable layout shift / collapsed bookkeeping; plain CSS grid. */
|
|
5
|
+
layoutShiftDisabled?: boolean;
|
|
6
|
+
/** Responsive query source. */
|
|
7
|
+
responsive?: GridResponsive;
|
|
8
|
+
/** Column count: number or responsive string like `1 s:2 m:3`. */
|
|
9
|
+
cols?: number | string;
|
|
10
|
+
/** Horizontal gap (px number or responsive string). */
|
|
11
|
+
xGap?: number | string;
|
|
12
|
+
/** Vertical gap (px number or responsive string). */
|
|
13
|
+
yGap?: number | string;
|
|
14
|
+
/**
|
|
15
|
+
* Force width queries so item `span` / `offset` responsive strings resolve
|
|
16
|
+
* even when `cols` / gaps are plain numbers.
|
|
17
|
+
*/
|
|
18
|
+
itemResponsive?: boolean;
|
|
19
|
+
/** Collapse overflowing items past `collapsedRows`. */
|
|
20
|
+
collapsed?: boolean;
|
|
21
|
+
/** Visible rows when collapsed. */
|
|
22
|
+
collapsedRows?: number;
|
|
23
|
+
/** Style applied to each grid item. */
|
|
24
|
+
itemStyle?: string | CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
export interface GridItemProps {
|
|
27
|
+
/** Column span: number or responsive string. */
|
|
28
|
+
span?: number | string;
|
|
29
|
+
/** Offset before this item: number or responsive string. */
|
|
30
|
+
offset?: number | string;
|
|
31
|
+
/** Stick to the end of the last visible row when collapsed. */
|
|
32
|
+
suffix?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface GridItemLayout {
|
|
35
|
+
span: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
colStart?: number;
|
|
38
|
+
show: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface WiGridContext {
|
|
41
|
+
overflow: Ref<boolean>;
|
|
42
|
+
itemStyle: Ref<string | CSSProperties | undefined>;
|
|
43
|
+
xGap: Ref<string>;
|
|
44
|
+
layoutShiftDisabled: Ref<boolean>;
|
|
45
|
+
assignLayout: (uid: number, layout: GridItemLayout) => GridItemLayout | undefined;
|
|
46
|
+
register: (uid: number) => void;
|
|
47
|
+
unregister: (uid: number) => void;
|
|
48
|
+
}
|
|
49
|
+
export declare const WI_GRID_KEY: InjectionKey<WiGridContext>;
|
|
50
|
+
export declare const WI_GRID_ITEM_FLAG: "__WI_GRID_ITEM__";
|
|
51
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sour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ClD,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACjB,mBAAmB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACjC,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,KAAK,cAAc,GAAG,SAAS,CAAA;IACjF,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAoB,CAAA;AACxE,eAAO,MAAM,iBAAiB,EAAG,kBAA2B,CAAA"}
|
|
@@ -20,10 +20,10 @@ declare const __VLS_base: DefineComponent<InputProps, {
|
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
type: "text" | "email" | "password" | "search" | "url" | "tel";
|
|
22
22
|
error: boolean;
|
|
23
|
+
clearable: boolean;
|
|
23
24
|
invalid: boolean;
|
|
24
25
|
fluid: boolean;
|
|
25
26
|
readonly: boolean;
|
|
26
|
-
clearable: boolean;
|
|
27
27
|
showCount: boolean;
|
|
28
28
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Input.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.vue"],"names":[],"mappings":";AAqJA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAuEzC,iBAAS,KAAK,SAEb;AA+ID,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAO9C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputColor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/InputColor.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"InputColor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/InputColor.vue"],"names":[],"mappings":";AA6EA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAwH9C,QAAA,MAAM,YAAY;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InputColor/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAClD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputNumberProps } from './types';
|
|
1
|
+
import { InputNumberProps, InputNumberButtonPlacement } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const __VLS_export: DefineComponent<InputNumberProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
4
|
"update:modelValue": (value: number | null) => any;
|
|
@@ -7,10 +7,12 @@ declare const __VLS_export: DefineComponent<InputNumberProps, {}, {}, {}, {}, Co
|
|
|
7
7
|
}>, {
|
|
8
8
|
modelValue: number | null;
|
|
9
9
|
disabled: boolean;
|
|
10
|
+
clearable: boolean;
|
|
10
11
|
invalid: boolean;
|
|
11
12
|
step: number;
|
|
12
13
|
fluid: boolean;
|
|
13
14
|
showButtons: boolean;
|
|
15
|
+
buttonPlacement: InputNumberButtonPlacement;
|
|
14
16
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
15
17
|
declare const _default: typeof __VLS_export;
|
|
16
18
|
export default _default;
|