yc-design-vue 1.8.7 → 1.8.8
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/es/Affix/index.vue.js +1 -0
- package/es/Alert/index.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/Alert/index.vue.js +1 -0
- package/es/Anchor/Anchor.vue.js +1 -0
- package/es/Anchor/AnchorLink.vue.js +1 -0
- package/es/Anchor/hooks/useContext.js +1 -0
- package/es/AutoComplete/index.d.ts +19 -19
- package/es/AutoComplete/index.vue.d.ts +33 -33
- package/es/AutoComplete/index.vue.js +1 -0
- package/es/Avatar/Avatar.vue.d.ts +2 -2
- package/es/Avatar/Avatar.vue.js +1 -0
- package/es/Avatar/AvatarGroup.vue.js +1 -0
- package/es/Avatar/index.d.ts +5 -5
- package/es/BackTop/index.vue.js +1 -0
- package/es/Badge/index.vue.js +1 -0
- package/es/Breadcrumb/Breadcrumb.vue.js +1 -0
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -0
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -0
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -1
- package/es/Button/Button.vue.d.ts +3 -3
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/hooks/useContext.js +1 -0
- package/es/Button/index.d.ts +12 -12
- package/es/Calendar/Calendar.vue.js +2 -1
- package/es/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/es/Calendar/CalendarMonth.vue.js +1 -1
- package/es/Calendar/CalendarYear.vue.js +1 -1
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/Card.vue.js +1 -0
- package/es/Card/CardMeta.vue.d.ts +1 -1
- package/es/Card/CardMeta.vue.js +1 -0
- package/es/Card/index.d.ts +6 -6
- package/es/Carousel/Carousel.vue.js +1 -0
- package/es/Carousel/CarouselArrow.vue.js +1 -0
- package/es/Carousel/CarouselIndicator.vue.js +1 -0
- package/es/Carousel/hooks/useContext.js +1 -0
- package/es/Cascader/Cascader.vue.d.ts +17 -17
- package/es/Cascader/Cascader.vue.js +1 -0
- package/es/Cascader/CascaderIcon.vue.js +1 -0
- package/es/Cascader/CascaderOption.vue.js +1 -0
- package/es/Cascader/CascaderPanel.vue.js +1 -0
- package/es/Cascader/CascaderSearchPanel.vue.js +1 -0
- package/es/Cascader/hooks/useContext.js +1 -0
- package/es/Cascader/index.d.ts +16 -16
- package/es/Checkbox/Checkbox.vue.js +1 -0
- package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/es/Checkbox/hooks/useContext.js +1 -0
- package/es/Checkbox/index.d.ts +3 -3
- package/es/Collapse/CollapseItem.vue.js +1 -0
- package/es/Collapse/hooks/useContext.js +1 -0
- package/es/ColorPicker/ColorControl.vue.js +1 -0
- package/es/ColorPicker/ColorInput.vue.js +1 -0
- package/es/ColorPicker/ColorList.vue.js +7 -1
- package/es/ColorPicker/ColorPalette.vue.js +1 -0
- package/es/ColorPicker/ColorPanel.vue.js +7 -1
- package/es/ColorPicker/hooks/useContext.js +1 -0
- package/es/Comment/index.vue.js +1 -0
- package/es/ConfigProvider/index.d.ts +3 -3
- package/es/ConfigProvider/index.vue.d.ts +1 -1
- package/es/ConfigProvider/index.vue.js +4 -12
- package/es/ConfigProvider/type.d.ts +3 -2
- package/es/Descriptions/ReuseItem.vue.js +1 -0
- package/es/Descriptions/ReuseTd.vue.js +1 -0
- package/es/Descriptions/hooks/useContext.js +1 -0
- package/es/Divider/index.d.ts +3 -3
- package/es/Divider/index.vue.d.ts +1 -1
- package/es/Divider/index.vue.js +1 -0
- package/es/Drawer/Drawer.vue.d.ts +4 -4
- package/es/Drawer/Drawer.vue.js +2 -1
- package/es/Drawer/DrawerService.vue.d.ts +2 -2
- package/es/Drawer/DrawerService.vue.js +1 -0
- package/es/Drawer/index.d.ts +11 -11
- package/es/Dropdown/Dropdown.vue.js +1 -0
- package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -0
- package/es/Dropdown/Dsubmenu.vue.js +1 -0
- package/es/Dropdown/hooks/useContext.js +1 -0
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +2 -1
- package/es/Grid/Grid.vue.js +1 -0
- package/es/Grid/GridCol.vue.js +1 -0
- package/es/Grid/GridItem.vue.js +1 -0
- package/es/Grid/GridRow.vue.js +1 -0
- package/es/Grid/hooks/useContext.js +1 -0
- package/es/Image/Image.vue.d.ts +2 -2
- package/es/Image/Image.vue.js +2 -1
- package/es/Image/ImagePreview.vue.js +1 -0
- package/es/Image/ImagePreviewArrow.vue.js +1 -0
- package/es/Image/ImagePreviewToolbar.vue.js +8 -7
- package/es/Image/hooks/useContext.js +1 -0
- package/es/Image/index.d.ts +6 -6
- package/es/Input/Input.vue.d.ts +3 -3
- package/es/Input/Input.vue.js +1 -0
- package/es/Input/InputSuffix.vue.js +1 -0
- package/es/Input/hooks/useLimitedInput.js +1 -0
- package/es/Input/index.d.ts +9 -9
- package/es/InputNumber/InputNumber.vue.d.ts +18 -18
- package/es/InputNumber/InputNumber.vue.js +1 -0
- package/es/InputNumber/InputOperaBtn.vue.js +1 -0
- package/es/InputNumber/index.d.ts +19 -19
- package/es/InputTag/index.d.ts +6 -6
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/InputTag/index.vue.js +1 -0
- package/es/Layout/Layout.vue.js +1 -0
- package/es/Layout/LayoutSider.vue.js +1 -0
- package/es/Layout/hooks/useSiderContext.js +1 -0
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/index.vue.js +1 -0
- package/es/List/List.vue.d.ts +7 -7
- package/es/List/List.vue.js +1 -0
- package/es/List/ListItemMeta.vue.d.ts +1 -1
- package/es/List/hooks/useScrollReach.js +1 -0
- package/es/List/index.d.ts +9 -9
- package/es/Mention/index.d.ts +22 -22
- package/es/Mention/index.vue.d.ts +39 -39
- package/es/Mention/index.vue.js +1 -0
- package/es/Menu/Menu.vue.js +1 -0
- package/es/Menu/MenuEllipsis.vue.js +1 -0
- package/es/Menu/MenuItem.vue.js +1 -0
- package/es/Menu/MenuItemGroup.vue.js +1 -0
- package/es/Menu/SubMenu.vue.js +1 -0
- package/es/Menu/hooks/useContext.js +1 -0
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/Message.vue.js +1 -0
- package/es/Message/index.d.ts +3 -3
- package/es/Message/index.js +1 -0
- package/es/Modal/Modal.vue.d.ts +4 -4
- package/es/Modal/Modal.vue.js +2 -1
- package/es/Modal/ModalService.vue.d.ts +2 -2
- package/es/Modal/ModalService.vue.js +1 -0
- package/es/Modal/hooks/useModalClose.js +1 -0
- package/es/Modal/hooks/useModalDraggable.js +1 -0
- package/es/Modal/hooks/useOnBeforeClose.js +1 -0
- package/es/Modal/index.d.ts +11 -11
- package/es/Notification/Notification.vue.d.ts +1 -1
- package/es/Notification/Notification.vue.js +1 -0
- package/es/Notification/index.d.ts +3 -3
- package/es/Notification/index.js +1 -0
- package/es/OverflowList/index.d.ts +3 -3
- package/es/OverflowList/index.vue.d.ts +1 -1
- package/es/OverflowList/index.vue.js +1 -0
- package/es/PageHeader/index.vue.js +1 -0
- package/es/Pagination/Pagination.vue.js +6 -2
- package/es/Pagination/PaginationItem.vue.js +1 -0
- package/es/Pagination/hooks/useContext.d.ts +1 -256
- package/es/Pagination/hooks/useContext.js +2 -1
- package/es/Popconfirm/index.d.ts +19 -19
- package/es/Popconfirm/index.vue.d.ts +7 -7
- package/es/Popconfirm/index.vue.js +2 -1
- package/es/Popover/index.vue.js +1 -0
- package/es/Progress/Progress.vue.d.ts +1 -1
- package/es/Progress/Progress.vue.js +1 -0
- package/es/Progress/ProgressCircle.vue.js +1 -0
- package/es/Progress/ProgressLine.vue.js +1 -0
- package/es/Progress/ProgressSteps.vue.js +1 -0
- package/es/Progress/index.d.ts +3 -3
- package/es/Radio/Radio.vue.d.ts +1 -1
- package/es/Radio/Radio.vue.js +1 -0
- package/es/Radio/RadioGroup.vue.d.ts +1 -1
- package/es/Radio/hooks/useContext.js +1 -0
- package/es/Radio/index.d.ts +6 -6
- package/es/Rate/index.vue.js +1 -0
- package/es/ResizeBox/index.vue.js +1 -0
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/Scrollbar.vue.js +1 -0
- package/es/Scrollbar/ScrollbarTrack.vue.js +1 -0
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Select/Option.vue.js +1 -0
- package/es/Select/Select.vue.d.ts +26 -26
- package/es/Select/Select.vue.js +1 -0
- package/es/Select/SelectIcon.vue.js +1 -0
- package/es/Select/SelectRealList.vue.js +1 -0
- package/es/Select/SelectView.vue.js +1 -0
- package/es/Select/SelectVirtualList.vue.js +1 -0
- package/es/Select/hooks/useContext.js +1 -0
- package/es/Select/hooks/useSelectOptions.js +1 -0
- package/es/Select/index.d.ts +14 -14
- package/es/Skeleton/SkeletonLine.vue.js +1 -0
- package/es/Skeleton/SkeletonShape.vue.js +1 -0
- package/es/Slider/Slider.vue.d.ts +3 -3
- package/es/Slider/SliderBtn.vue.js +1 -0
- package/es/Slider/hooks/useContext.js +1 -0
- package/es/Slider/hooks/useSliderDraggable.js +1 -0
- package/es/Slider/index.d.ts +9 -9
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Space/index.vue.js +1 -0
- package/es/Spin/index.d.ts +3 -3
- package/es/Spin/index.vue.d.ts +1 -1
- package/es/Spin/index.vue.js +1 -0
- package/es/Split/index.d.ts +6 -6
- package/es/Split/index.vue.d.ts +2 -2
- package/es/Split/index.vue.js +1 -0
- package/es/Statistic/Countdown.vue.d.ts +2 -2
- package/es/Statistic/Countdown.vue.js +1 -0
- package/es/Statistic/Statistic.vue.d.ts +2 -2
- package/es/Statistic/Statistic.vue.js +1 -0
- package/es/Statistic/index.d.ts +12 -12
- package/es/Steps/Step.vue.d.ts +1 -1
- package/es/Steps/Step.vue.js +1 -0
- package/es/Steps/Steps.vue.d.ts +1 -1
- package/es/Steps/hooks/useContext.js +1 -0
- package/es/Steps/index.d.ts +6 -6
- package/es/Switch/index.d.ts +6 -6
- package/es/Switch/index.vue.d.ts +2 -2
- package/es/Switch/index.vue.js +1 -0
- package/es/Tabs/TabButton.vue.js +1 -0
- package/es/Tabs/TabPane.vue.js +1 -0
- package/es/Tabs/Tabs.vue.d.ts +3 -3
- package/es/Tabs/Tabs.vue.js +1 -0
- package/es/Tabs/TabsNavInk.vue.js +1 -0
- package/es/Tabs/TabsTab.vue.js +1 -0
- package/es/Tabs/hooks/useContext.js +1 -0
- package/es/Tabs/hooks/useTabsScroll.js +1 -0
- package/es/Tabs/index.d.ts +8 -8
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Tag/index.vue.js +1 -0
- package/es/Textarea/hooks/useTextareaHeight.js +1 -0
- package/es/Textarea/index.d.ts +6 -6
- package/es/Textarea/index.vue.d.ts +2 -2
- package/es/Textarea/index.vue.js +1 -0
- package/es/TimePicker/TimePicker.vue.d.ts +3 -3
- package/es/TimePicker/TimePicker.vue.js +6 -6
- package/es/TimePicker/TimePickerPanel.vue.js +10 -10
- package/es/TimePicker/hooks/useContext.d.ts +1 -0
- package/es/TimePicker/hooks/useContext.js +11 -2
- package/es/TimePicker/index.d.ts +9 -9
- package/es/Timeline/TimelineItemPending.vue.js +1 -0
- package/es/Timeline/hooks/useContext.js +1 -0
- package/es/Tooltip/index.vue.js +1 -0
- package/es/Transfer/Transfer.vue.js +1 -0
- package/es/Transfer/TransferPanel.vue.js +1 -0
- package/es/Transfer/hooks/useContext.js +1 -0
- package/es/Trigger/hooks/useContext.js +1 -0
- package/es/Trigger/hooks/useTriggerPosition.js +1 -0
- package/es/Trigger/hooks/useTriggerVisible.js +1 -0
- package/es/Trigger/index.vue.js +1 -0
- package/es/Typography/TypographyBase.vue.d.ts +19 -19
- package/es/Typography/TypographyBase.vue.js +2 -1
- package/es/VerificationCode/index.d.ts +6 -6
- package/es/VerificationCode/index.vue.d.ts +2 -2
- package/es/VerificationCode/index.vue.js +1 -0
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/Watermark/index.vue.js +1 -0
- package/es/_shared/components/ExpandTransition.vue2.js +1 -0
- package/es/_shared/components/Icon.vue3.js +1 -0
- package/es/_shared/components/IconButton.vue.js +1 -0
- package/es/_shared/constants/index.js +1 -0
- package/es/_shared/icons/IconFullScreen.vue.js +1 -17
- package/es/_shared/icons/IconFullScreen.vue2.js +17 -1
- package/es/_shared/icons/IconOriginSize.vue.js +1 -23
- package/es/_shared/icons/IconOriginSize.vue2.js +23 -1
- package/es/_shared/icons/IconRotateLeft.vue.js +1 -17
- package/es/_shared/icons/IconRotateLeft.vue2.js +17 -1
- package/es/_shared/icons/IconRotateRight.vue.js +1 -17
- package/es/_shared/icons/IconRotateRight.vue2.js +17 -1
- package/es/_shared/icons/IconSeparator.vue.js +17 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -17
- package/es/_shared/icons/IconZoomIn.vue.js +1 -17
- package/es/_shared/icons/IconZoomIn.vue2.js +17 -1
- package/es/_shared/icons/IconZoomOut.vue.js +1 -17
- package/es/_shared/icons/IconZoomOut.vue2.js +17 -1
- package/es/_shared/utils/control.js +1 -0
- package/es/_shared/utils/global-config.d.ts +3 -1
- package/es/_shared/utils/global-config.js +4 -0
- package/es/_shared/utils/index.d.ts +1 -0
- package/es/_shared/utils/locale.d.ts +22 -0
- package/es/_shared/utils/locale.js +39 -0
- package/es/index.d.ts +27 -27
- package/es/index.js +0 -2
- package/es/lang/ar-eg.js +156 -0
- package/es/lang/de-de.js +157 -0
- package/es/lang/en-us.js +161 -0
- package/es/lang/es-es.js +156 -0
- package/es/lang/fr-fr.js +158 -0
- package/es/lang/id-id.js +157 -0
- package/es/lang/it-it.js +157 -0
- package/es/lang/ja-jp.js +204 -0
- package/es/lang/km-kh.js +156 -0
- package/es/lang/ko-kr.js +156 -0
- package/es/lang/ms-my.js +156 -0
- package/es/lang/nl-nl.js +204 -0
- package/es/lang/pt-pt.js +156 -0
- package/es/lang/ru-ru.js +204 -0
- package/es/lang/th-th.js +156 -0
- package/es/lang/vi-vn.js +156 -0
- package/es/lang/zh-cn.js +204 -0
- package/es/lang/zh-tw.js +204 -0
- package/es/public/lang/zh-cn.js +202 -0
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Anchor/Anchor.vue.js +1 -1
- package/lib/Anchor/AnchorLink.vue.js +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/AutoComplete/index.d.ts +19 -19
- package/lib/AutoComplete/index.vue.d.ts +33 -33
- package/lib/AutoComplete/index.vue.js +1 -1
- package/lib/Avatar/Avatar.vue.d.ts +2 -2
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Avatar/index.d.ts +5 -5
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/Button.vue.d.ts +3 -3
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.js +1 -1
- package/lib/Button/index.d.ts +12 -12
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/lib/Calendar/CalendarMonth.vue.js +1 -1
- package/lib/Calendar/CalendarYear.vue.js +1 -1
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/Card.vue.js +1 -1
- package/lib/Card/CardMeta.vue.d.ts +1 -1
- package/lib/Card/CardMeta.vue.js +1 -1
- package/lib/Card/index.d.ts +6 -6
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue.js +1 -1
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +17 -17
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/CascaderPanel.vue.js +1 -1
- package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.d.ts +16 -16
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Checkbox/index.d.ts +3 -3
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/Comment/index.vue.js +1 -1
- package/lib/ConfigProvider/index.d.ts +3 -3
- package/lib/ConfigProvider/index.vue.d.ts +1 -1
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +3 -2
- package/lib/Descriptions/ReuseItem.vue.js +1 -1
- package/lib/Descriptions/ReuseTd.vue.js +1 -1
- package/lib/Descriptions/hooks/useContext.js +1 -1
- package/lib/Divider/index.d.ts +3 -3
- package/lib/Divider/index.vue.d.ts +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Drawer/Drawer.vue.d.ts +4 -4
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +2 -2
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Drawer/index.d.ts +11 -11
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Grid/GridItem.vue.js +1 -1
- package/lib/Grid/GridRow.vue.js +1 -1
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/Image.vue.d.ts +2 -2
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Image/index.d.ts +6 -6
- package/lib/Input/Input.vue.d.ts +3 -3
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/Input/index.d.ts +9 -9
- package/lib/InputNumber/InputNumber.vue.d.ts +18 -18
- package/lib/InputNumber/InputNumber.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/index.d.ts +19 -19
- package/lib/InputTag/index.d.ts +6 -6
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/List/List.vue.d.ts +7 -7
- package/lib/List/List.vue.js +1 -1
- package/lib/List/ListItemMeta.vue.d.ts +1 -1
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/index.d.ts +9 -9
- package/lib/Mention/index.d.ts +22 -22
- package/lib/Mention/index.vue.d.ts +39 -39
- package/lib/Mention/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/MenuItemGroup.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Message/Message.vue.d.ts +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Message/index.d.ts +3 -3
- package/lib/Message/index.js +1 -1
- package/lib/Modal/Modal.vue.d.ts +4 -4
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.d.ts +2 -2
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Modal/hooks/useModalDraggable.js +1 -1
- package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
- package/lib/Modal/index.d.ts +11 -11
- package/lib/Notification/Notification.vue.d.ts +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/index.d.ts +3 -3
- package/lib/Notification/index.js +1 -1
- package/lib/OverflowList/index.d.ts +3 -3
- package/lib/OverflowList/index.vue.d.ts +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +1 -256
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.d.ts +19 -19
- package/lib/Popconfirm/index.vue.d.ts +7 -7
- package/lib/Popconfirm/index.vue.js +1 -1
- package/lib/Popover/index.vue.js +1 -1
- package/lib/Progress/Progress.vue.d.ts +1 -1
- package/lib/Progress/Progress.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/ProgressLine.vue.js +1 -1
- package/lib/Progress/ProgressSteps.vue.js +1 -1
- package/lib/Progress/index.d.ts +3 -3
- package/lib/Radio/Radio.vue.d.ts +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Radio/RadioGroup.vue.d.ts +1 -1
- package/lib/Radio/hooks/useContext.js +1 -1
- package/lib/Radio/index.d.ts +6 -6
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +26 -26
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/SelectRealList.vue.js +1 -1
- package/lib/Select/SelectView.vue.js +1 -1
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectOptions.js +1 -1
- package/lib/Select/index.d.ts +14 -14
- package/lib/Skeleton/SkeletonLine.vue.js +1 -1
- package/lib/Skeleton/SkeletonShape.vue.js +1 -1
- package/lib/Slider/Slider.vue.d.ts +3 -3
- package/lib/Slider/SliderBtn.vue.js +1 -1
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Slider/hooks/useSliderDraggable.js +1 -1
- package/lib/Slider/index.d.ts +9 -9
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Spin/index.d.ts +3 -3
- package/lib/Spin/index.vue.d.ts +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.d.ts +6 -6
- package/lib/Split/index.vue.d.ts +2 -2
- package/lib/Split/index.vue.js +1 -1
- package/lib/Statistic/Countdown.vue.d.ts +2 -2
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +2 -2
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/index.d.ts +12 -12
- package/lib/Steps/Step.vue.d.ts +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/Steps.vue.d.ts +1 -1
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Steps/index.d.ts +6 -6
- package/lib/Switch/index.d.ts +6 -6
- package/lib/Switch/index.vue.d.ts +2 -2
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/TabPane.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.d.ts +3 -3
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue.js +1 -1
- package/lib/Tabs/TabsTab.vue.js +1 -1
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Tabs/hooks/useTabsScroll.js +1 -1
- package/lib/Tabs/index.d.ts +8 -8
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.d.ts +6 -6
- package/lib/Textarea/index.vue.d.ts +2 -2
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.d.ts +3 -3
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +1 -0
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/TimePicker/index.d.ts +9 -9
- package/lib/Timeline/TimelineItemPending.vue.js +1 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Tooltip/index.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +19 -19
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/VerificationCode/index.d.ts +6 -6
- package/lib/VerificationCode/index.vue.d.ts +2 -2
- package/lib/VerificationCode/index.vue.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue2.js +1 -1
- package/lib/_shared/components/Icon.vue3.js +1 -1
- package/lib/_shared/components/IconButton.vue.js +1 -1
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/utils/control.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +3 -1
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/_shared/utils/index.d.ts +1 -0
- package/lib/_shared/utils/locale.d.ts +22 -0
- package/lib/_shared/utils/locale.js +1 -0
- package/lib/index.d.ts +27 -27
- package/lib/index.js +1 -1
- package/lib/lang/ar-eg.js +156 -0
- package/lib/lang/de-de.js +157 -0
- package/lib/lang/en-us.js +161 -0
- package/lib/lang/es-es.js +156 -0
- package/lib/lang/fr-fr.js +158 -0
- package/lib/lang/id-id.js +157 -0
- package/lib/lang/it-it.js +157 -0
- package/lib/lang/ja-jp.js +204 -0
- package/lib/lang/km-kh.js +156 -0
- package/lib/lang/ko-kr.js +156 -0
- package/lib/lang/ms-my.js +156 -0
- package/lib/lang/nl-nl.js +204 -0
- package/lib/lang/pt-pt.js +156 -0
- package/lib/lang/ru-ru.js +204 -0
- package/lib/lang/th-th.js +156 -0
- package/lib/lang/vi-vn.js +156 -0
- package/lib/lang/zh-cn.js +204 -0
- package/lib/lang/zh-tw.js +204 -0
- package/lib/public/lang/zh-cn.js +1 -0
- package/package.json +2 -4
- package/es/_shared/locale/i18n.d.ts +0 -512
- package/es/_shared/locale/i18n.js +0 -43
- package/es/_shared/locale/lang/ar-eg.json.js +0 -251
- package/es/_shared/locale/lang/de-de.json.d.ts +0 -207
- package/es/_shared/locale/lang/de-de.json.js +0 -251
- package/es/_shared/locale/lang/en-us.json.d.ts +0 -210
- package/es/_shared/locale/lang/en-us.json.js +0 -256
- package/es/_shared/locale/lang/es-es.json.d.ts +0 -207
- package/es/_shared/locale/lang/es-es.json.js +0 -251
- package/es/_shared/locale/lang/fr-fr.json.d.ts +0 -207
- package/es/_shared/locale/lang/fr-fr.json.js +0 -251
- package/es/_shared/locale/lang/id-id.json.d.ts +0 -207
- package/es/_shared/locale/lang/id-id.json.js +0 -251
- package/es/_shared/locale/lang/it-it.json.d.ts +0 -207
- package/es/_shared/locale/lang/it-it.json.js +0 -251
- package/es/_shared/locale/lang/ja-jp.json.d.ts +0 -255
- package/es/_shared/locale/lang/ja-jp.json.js +0 -301
- package/es/_shared/locale/lang/km-kh.json.d.ts +0 -207
- package/es/_shared/locale/lang/km-kh.json.js +0 -251
- package/es/_shared/locale/lang/ko-kr.json.d.ts +0 -207
- package/es/_shared/locale/lang/ko-kr.json.js +0 -251
- package/es/_shared/locale/lang/ms-my.json.d.ts +0 -207
- package/es/_shared/locale/lang/ms-my.json.js +0 -251
- package/es/_shared/locale/lang/nl-nl.json.d.ts +0 -255
- package/es/_shared/locale/lang/nl-nl.json.js +0 -301
- package/es/_shared/locale/lang/pt-pt.json.d.ts +0 -207
- package/es/_shared/locale/lang/pt-pt.json.js +0 -251
- package/es/_shared/locale/lang/ru-ru.json.d.ts +0 -255
- package/es/_shared/locale/lang/ru-ru.json.js +0 -301
- package/es/_shared/locale/lang/th-th.json.d.ts +0 -207
- package/es/_shared/locale/lang/th-th.json.js +0 -251
- package/es/_shared/locale/lang/vi-vn.json.d.ts +0 -207
- package/es/_shared/locale/lang/vi-vn.json.js +0 -251
- package/es/_shared/locale/lang/zh-cn.d.ts +0 -253
- package/es/_shared/locale/lang/zh-cn.json.d.ts +0 -255
- package/es/_shared/locale/lang/zh-cn.json.js +0 -301
- package/es/_shared/locale/lang/zh-tw.json.d.ts +0 -255
- package/es/_shared/locale/lang/zh-tw.json.js +0 -301
- package/es/node_modules/@intlify/core-base/dist/core-base.js +0 -1126
- package/es/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -65
- package/es/node_modules/@intlify/shared/dist/shared.js +0 -199
- package/es/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +0 -1375
- package/es/node_modules/@vue/devtools-api/lib/esm/const.js +0 -6
- package/es/node_modules/@vue/devtools-api/lib/esm/env.js +0 -12
- package/es/node_modules/@vue/devtools-api/lib/esm/index.js +0 -26
- package/es/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -103
- package/es/node_modules/@vue/devtools-api/lib/esm/time.js +0 -25
- package/lib/_shared/locale/i18n.d.ts +0 -512
- package/lib/_shared/locale/i18n.js +0 -1
- package/lib/_shared/locale/lang/ar-eg.json.js +0 -1
- package/lib/_shared/locale/lang/de-de.json.d.ts +0 -207
- package/lib/_shared/locale/lang/de-de.json.js +0 -1
- package/lib/_shared/locale/lang/en-us.json.d.ts +0 -210
- package/lib/_shared/locale/lang/en-us.json.js +0 -1
- package/lib/_shared/locale/lang/es-es.json.d.ts +0 -207
- package/lib/_shared/locale/lang/es-es.json.js +0 -1
- package/lib/_shared/locale/lang/fr-fr.json.d.ts +0 -207
- package/lib/_shared/locale/lang/fr-fr.json.js +0 -1
- package/lib/_shared/locale/lang/id-id.json.d.ts +0 -207
- package/lib/_shared/locale/lang/id-id.json.js +0 -1
- package/lib/_shared/locale/lang/it-it.json.d.ts +0 -207
- package/lib/_shared/locale/lang/it-it.json.js +0 -1
- package/lib/_shared/locale/lang/ja-jp.json.d.ts +0 -255
- package/lib/_shared/locale/lang/ja-jp.json.js +0 -1
- package/lib/_shared/locale/lang/km-kh.json.d.ts +0 -207
- package/lib/_shared/locale/lang/km-kh.json.js +0 -1
- package/lib/_shared/locale/lang/ko-kr.json.d.ts +0 -207
- package/lib/_shared/locale/lang/ko-kr.json.js +0 -1
- package/lib/_shared/locale/lang/ms-my.json.d.ts +0 -207
- package/lib/_shared/locale/lang/ms-my.json.js +0 -1
- package/lib/_shared/locale/lang/nl-nl.json.d.ts +0 -255
- package/lib/_shared/locale/lang/nl-nl.json.js +0 -1
- package/lib/_shared/locale/lang/pt-pt.json.d.ts +0 -207
- package/lib/_shared/locale/lang/pt-pt.json.js +0 -1
- package/lib/_shared/locale/lang/ru-ru.json.d.ts +0 -255
- package/lib/_shared/locale/lang/ru-ru.json.js +0 -1
- package/lib/_shared/locale/lang/th-th.json.d.ts +0 -207
- package/lib/_shared/locale/lang/th-th.json.js +0 -1
- package/lib/_shared/locale/lang/vi-vn.json.d.ts +0 -207
- package/lib/_shared/locale/lang/vi-vn.json.js +0 -1
- package/lib/_shared/locale/lang/zh-cn.d.ts +0 -253
- package/lib/_shared/locale/lang/zh-cn.json.d.ts +0 -255
- package/lib/_shared/locale/lang/zh-cn.json.js +0 -1
- package/lib/_shared/locale/lang/zh-tw.json.d.ts +0 -255
- package/lib/_shared/locale/lang/zh-tw.json.js +0 -1
- package/lib/node_modules/@intlify/core-base/dist/core-base.js +0 -1
- package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -6
- package/lib/node_modules/@intlify/shared/dist/shared.js +0 -7
- package/lib/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/const.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/env.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/index.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -1
- package/lib/node_modules/@vue/devtools-api/lib/esm/time.js +0 -1
package/lib/Cascader/index.d.ts
CHANGED
@@ -26,15 +26,15 @@ declare const Cascader: {
|
|
26
26
|
"update:inputValue": (value: string) => any;
|
27
27
|
"input-value-change": (value: string) => any;
|
28
28
|
}, import('vue').PublicProps, {
|
29
|
-
loading: boolean;
|
30
|
-
error: boolean;
|
31
|
-
placeholder: string;
|
32
29
|
size: import('..').Size;
|
33
30
|
popupVisible: boolean;
|
34
31
|
defaultPopupVisible: boolean;
|
35
32
|
disabled: boolean;
|
36
33
|
popupContainer: import('..').PopupContainer;
|
34
|
+
loading: boolean;
|
35
|
+
error: boolean;
|
37
36
|
multiple: boolean;
|
37
|
+
placeholder: string;
|
38
38
|
modelValue: import('./type').CascaderValue;
|
39
39
|
defaultValue: import('./type').CascaderValue;
|
40
40
|
allowClear: boolean;
|
@@ -133,13 +133,13 @@ declare const Cascader: {
|
|
133
133
|
"visibility-change": (value: boolean) => any;
|
134
134
|
pressEnter: (ev: KeyboardEvent) => any;
|
135
135
|
}, string, {
|
136
|
-
error: boolean;
|
137
|
-
placeholder: string;
|
138
|
-
maxLength: import('..').MaxLength;
|
139
136
|
size: import('..').Size;
|
140
137
|
disabled: boolean;
|
138
|
+
error: boolean;
|
139
|
+
placeholder: string;
|
141
140
|
modelValue: string;
|
142
141
|
defaultValue: string;
|
142
|
+
maxLength: import('..').MaxLength;
|
143
143
|
showWordLimit: boolean;
|
144
144
|
allowClear: boolean;
|
145
145
|
readonly: boolean;
|
@@ -172,13 +172,13 @@ declare const Cascader: {
|
|
172
172
|
$nextTick: typeof import('vue').nextTick;
|
173
173
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
174
174
|
} & Readonly<{
|
175
|
-
error: boolean;
|
176
|
-
placeholder: string;
|
177
|
-
maxLength: import('..').MaxLength;
|
178
175
|
size: import('..').Size;
|
179
176
|
disabled: boolean;
|
177
|
+
error: boolean;
|
178
|
+
placeholder: string;
|
180
179
|
modelValue: string;
|
181
180
|
defaultValue: string;
|
181
|
+
maxLength: import('..').MaxLength;
|
182
182
|
showWordLimit: boolean;
|
183
183
|
allowClear: boolean;
|
184
184
|
readonly: boolean;
|
@@ -201,7 +201,7 @@ declare const Cascader: {
|
|
201
201
|
"onUpdate:visibility"?: ((value: boolean) => any) | undefined;
|
202
202
|
"onVisibility-change"?: ((value: boolean) => any) | undefined;
|
203
203
|
onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
|
204
|
-
}>, "focus" | "blur" | "getInputRef" | ("
|
204
|
+
}>, "focus" | "blur" | "getInputRef" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
|
205
205
|
focus(): void;
|
206
206
|
blur(): void;
|
207
207
|
getInputRef(): HTMLInputElement;
|
@@ -227,15 +227,15 @@ declare const Cascader: {
|
|
227
227
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
228
228
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
229
229
|
}>, {}, {}, {}, {}, {
|
230
|
-
loading: boolean;
|
231
|
-
error: boolean;
|
232
|
-
placeholder: string;
|
233
230
|
size: import('..').Size;
|
234
231
|
popupVisible: boolean;
|
235
232
|
defaultPopupVisible: boolean;
|
236
233
|
disabled: boolean;
|
237
234
|
popupContainer: import('..').PopupContainer;
|
235
|
+
loading: boolean;
|
236
|
+
error: boolean;
|
238
237
|
multiple: boolean;
|
238
|
+
placeholder: string;
|
239
239
|
modelValue: import('./type').CascaderValue;
|
240
240
|
defaultValue: import('./type').CascaderValue;
|
241
241
|
allowClear: boolean;
|
@@ -284,15 +284,15 @@ declare const Cascader: {
|
|
284
284
|
"update:inputValue": (value: string) => any;
|
285
285
|
"input-value-change": (value: string) => any;
|
286
286
|
}, string, {
|
287
|
-
loading: boolean;
|
288
|
-
error: boolean;
|
289
|
-
placeholder: string;
|
290
287
|
size: import('..').Size;
|
291
288
|
popupVisible: boolean;
|
292
289
|
defaultPopupVisible: boolean;
|
293
290
|
disabled: boolean;
|
294
291
|
popupContainer: import('..').PopupContainer;
|
292
|
+
loading: boolean;
|
293
|
+
error: boolean;
|
295
294
|
multiple: boolean;
|
295
|
+
placeholder: string;
|
296
296
|
modelValue: import('./type').CascaderValue;
|
297
297
|
defaultValue: import('./type').CascaderValue;
|
298
298
|
allowClear: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/icons/IconCheckboxChecked.vue.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/icons/IconCheckboxChecked.vue.js");require("../_shared/utils/locale.js");const o=require("../_shared/utils/control.js"),t=require("./hooks/useContext.js"),u=require("../_shared/components/IconButton.vue.js");,/* empty css */;/* empty css */const c=["value","disabled","checked"],s={class:"yc-checkbox-icon"},n={key:0,class:"yc-checkbox-label text-ellipsis"},d=e.defineComponent({name:"Checkbox",__name:"Checkbox",props:{modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const i=d,v=r,{modelValue:h,defaultChecked:m,value:p,disabled:k}=e.toRefs(i),{computedValue:b,max:x,hasGroup:y,disabled:f}=t().inject(),j=o(h,m.value,e=>{v("update:modelValue",e)}),q=e.computed(()=>y.value?b.value.includes(p.value):j.value),_=e.computed(()=>k.value||f.value||!l.isUndefined(x.value)&&!q.value&&b.value.length>=x.value),C=e=>{var l;if(y.value)b.value=q.value?b.value.filter(e=>e!=p.value):[...b.value,p.value];else{const a=null==(l=e.target)?void 0:l.checked;j.value=a,v("change",a,e)}};return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["yc-checkbox",{"yc-checkbox-disabled":_.value,"yc-checkbox-unchecked":!q.value&&!l.indeterminate,"yc-checkbox-indeterminate":!q.value&&l.indeterminate,"yc-checkbox-checked":q.value}])},[e.createElementVNode("input",{type:"checkbox",class:"yc-checkbox-target",value:l.value,disabled:_.value,checked:q.value,onChange:C},null,40,c),e.renderSlot(l.$slots,"checkbox",{checked:q.value,disabled:_.value},()=>[e.createVNode(e.unref(u),{"hover-size":24,hoverable:!q.value&&!_.value},{default:e.withCtx(()=>[e.createElementVNode("span",s,[e.createVNode(e.unref(a),{size:[8,10]})])]),_:1},8,["hoverable"]),l.$slots.default?(e.openBlock(),e.createElementBlock("span",n,[e.renderSlot(l.$slots,"default")])):e.createCommentVNode("",!0)])],2))}});module.exports=d;
|
@@ -13,11 +13,11 @@ declare const __VLS_component: import('vue').DefineComponent<CheckboxGroupProps,
|
|
13
13
|
onChange?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
|
14
14
|
"onUpdate:modelValue"?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
|
15
15
|
}>, {
|
16
|
-
max: number;
|
17
16
|
disabled: boolean;
|
18
17
|
modelValue: import('./type').CheckboxValue[];
|
19
18
|
defaultValue: import('./type').CheckboxValue[];
|
20
19
|
options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
|
20
|
+
max: number;
|
21
21
|
direction: import('..').Direction;
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js");const r=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js");const r=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const s=require("../../_shared/utils/control.js"),o="checkbox-group-context";module.exports=()=>({provide:(u,t)=>{const{modelValue:i,defaultValue:a,disabled:l,max:d,options:c}=e.toRefs(u),n=s(i,a.value,e=>{t("update:modelValue",e),t("change",e)}),m=e.computed(()=>c.value.map(e=>r.isObject(e)?e:{label:e,value:e}));return e.provide(o,{computedValue:n,max:d,disabled:l,hasGroup:e.ref(!0)}),{options:m}},inject:()=>e.inject(o,{computedValue:e.ref([]),max:e.ref(1e5),disabled:e.ref(!1),hasGroup:e.ref(!1)})});
|
package/lib/Checkbox/index.d.ts
CHANGED
@@ -60,11 +60,11 @@ declare const Checkbox: {
|
|
60
60
|
change: (value: import('./type').CheckboxValue[]) => any;
|
61
61
|
"update:modelValue": (value: import('./type').CheckboxValue[]) => any;
|
62
62
|
}, import('vue').PublicProps, {
|
63
|
-
max: number;
|
64
63
|
disabled: boolean;
|
65
64
|
modelValue: import('./type').CheckboxValue[];
|
66
65
|
defaultValue: import('./type').CheckboxValue[];
|
67
66
|
options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
|
67
|
+
max: number;
|
68
68
|
direction: import('..').Direction;
|
69
69
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
70
70
|
P: {};
|
@@ -77,11 +77,11 @@ declare const Checkbox: {
|
|
77
77
|
onChange?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
|
78
78
|
"onUpdate:modelValue"?: ((value: import('./type').CheckboxValue[]) => any) | undefined;
|
79
79
|
}>, {}, {}, {}, {}, {
|
80
|
-
max: number;
|
81
80
|
disabled: boolean;
|
82
81
|
modelValue: import('./type').CheckboxValue[];
|
83
82
|
defaultValue: import('./type').CheckboxValue[];
|
84
83
|
options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
|
84
|
+
max: number;
|
85
85
|
direction: import('..').Direction;
|
86
86
|
}>;
|
87
87
|
__isFragment?: never;
|
@@ -94,11 +94,11 @@ declare const Checkbox: {
|
|
94
94
|
change: (value: import('./type').CheckboxValue[]) => any;
|
95
95
|
"update:modelValue": (value: import('./type').CheckboxValue[]) => any;
|
96
96
|
}, string, {
|
97
|
-
max: number;
|
98
97
|
disabled: boolean;
|
99
98
|
modelValue: import('./type').CheckboxValue[];
|
100
99
|
defaultValue: import('./type').CheckboxValue[];
|
101
100
|
options: (import('./type').CheckboxOption | import('./type').CheckboxValue)[];
|
101
|
+
max: number;
|
102
102
|
direction: import('..').Direction;
|
103
103
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
104
104
|
$slots: Readonly<import('./type').CheckboxGroupSlots> & import('./type').CheckboxGroupSlots;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./hooks/useContext.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const n=require("../_shared/icons/IconRight.vue.js"),t=require("../_shared/components/IconButton.vue.js");;/* empty css */const l=require("../_shared/components/ExpandTransition.vue2.js");;/* empty css */const r={class:"yc-collapse-item-header-title text-ellipsis"},s={key:1,class:"yc-collapse-item-header-extra"},a={key:0,role:"region",class:"yc-collapse-item-content"},c={class:"yc-collapse-item-content-box"},i=e.defineComponent({name:"CollapseItem",__name:"CollapseItem",props:{path:{default:""},header:{default:""},disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},destroyOnHide:{type:Boolean,default:void 0}},setup(i){const u=i,{path:d,disabled:p}=e.toRefs(u),{slots:m,computedActiveKey:f,accordion:v,expandIconPosition:h,showExpandIcon:y,destroyOnHide:x}=o.default().inject(u),k=()=>{p.value||(f.value.includes(d.value)?f.value=f.value.filter(e=>e!=d.value):v.value?f.value=[d.value]:f.value.push(d.value))};return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-collapse-item",`yc-collapse-item-expand-icon-${e.unref(h)}`,{"yc-collapse-item-disabled":e.unref(p),"yc-collapse-item-open":e.unref(f).includes(e.unref(d))}])},[e.createElementVNode("div",{role:"button",class:"yc-collapse-item-header",onClick:k},[e.unref(y)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,class:"yc-collapse-item-header-icon"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"expand-icon",{active:e.unref(f).includes(e.unref(d)),disabled:e.unref(p),position:e.unref(h)},()=>[e.unref(m)["expand-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(()=>{var o,n;return null==(n=(o=e.unref(m))["expand-icon"])?void 0:n.call(o,{active:e.unref(f).includes(e.unref(d)),disabled:e.unref(p),position:e.unref(h)})}),{key:0})):(e.openBlock(),e.createBlock(e.unref(n),{key:1,color:"rgb(107, 119, 133)",rotate:e.unref(f).includes(e.unref(d))?90:"left"==e.unref(h)?0:180},null,8,["rotate"]))])]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",r,[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.header),1)])]),o.$slots.extra?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(o.$slots,"extra")])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(l),null,{default:e.withCtx(()=>[!e.unref(x)||e.unref(f).includes(e.unref(d))?e.withDirectives((e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",c,[e.renderSlot(o.$slots,"default")])],512)),[[e.vShow,e.unref(f).includes(e.unref(d))]]):e.createCommentVNode("",!0)]),_:3})],2))}});module.exports=i;
|
1
|
+
"use strict";const e=require("vue"),o=require("./hooks/useContext.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js"),require("../_shared/utils/locale.js");/* empty css */const n=require("../_shared/icons/IconRight.vue.js"),t=require("../_shared/components/IconButton.vue.js");;/* empty css */const l=require("../_shared/components/ExpandTransition.vue2.js");;/* empty css */const r={class:"yc-collapse-item-header-title text-ellipsis"},s={key:1,class:"yc-collapse-item-header-extra"},a={key:0,role:"region",class:"yc-collapse-item-content"},c={class:"yc-collapse-item-content-box"},i=e.defineComponent({name:"CollapseItem",__name:"CollapseItem",props:{path:{default:""},header:{default:""},disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},destroyOnHide:{type:Boolean,default:void 0}},setup(i){const u=i,{path:d,disabled:p}=e.toRefs(u),{slots:m,computedActiveKey:f,accordion:v,expandIconPosition:h,showExpandIcon:y,destroyOnHide:x}=o.default().inject(u),k=()=>{p.value||(f.value.includes(d.value)?f.value=f.value.filter(e=>e!=d.value):v.value?f.value=[d.value]:f.value.push(d.value))};return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-collapse-item",`yc-collapse-item-expand-icon-${e.unref(h)}`,{"yc-collapse-item-disabled":e.unref(p),"yc-collapse-item-open":e.unref(f).includes(e.unref(d))}])},[e.createElementVNode("div",{role:"button",class:"yc-collapse-item-header",onClick:k},[e.unref(y)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,class:"yc-collapse-item-header-icon"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"expand-icon",{active:e.unref(f).includes(e.unref(d)),disabled:e.unref(p),position:e.unref(h)},()=>[e.unref(m)["expand-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(()=>{var o,n;return null==(n=(o=e.unref(m))["expand-icon"])?void 0:n.call(o,{active:e.unref(f).includes(e.unref(d)),disabled:e.unref(p),position:e.unref(h)})}),{key:0})):(e.openBlock(),e.createBlock(e.unref(n),{key:1,color:"rgb(107, 119, 133)",rotate:e.unref(f).includes(e.unref(d))?90:"left"==e.unref(h)?0:180},null,8,["rotate"]))])]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",r,[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.header),1)])]),o.$slots.extra?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(o.$slots,"extra")])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(l),null,{default:e.withCtx(()=>[!e.unref(x)||e.unref(f).includes(e.unref(d))?e.withDirectives((e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",c,[e.renderSlot(o.$slots,"default")])],512)),[[e.vShow,e.unref(f).includes(e.unref(d))]]):e.createCommentVNode("",!0)]),_:3})],2))}});module.exports=i;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js"),require("../../Empty/index.js")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js"),require("../../Empty/index.js"),/* empty css */require("../../_shared/utils/locale.js");const o=require("../../_shared/utils/control.js"),t="collapse-context";exports.COLLAPSE_CONTEXT_KEY=t,exports.default=()=>({provide:(s,n)=>{const{activeKey:r,defaultActiveKey:d,accordion:i,expandIconPosition:c,showExpandIcon:u,destroyOnHide:a}=e.toRefs(s),l=e.useSlots(),p=o(r,d.value,e=>{n("update:activekey",e),n("change",e)});e.provide(t,{computedActiveKey:p,accordion:i,expandIconPosition:c,showExpandIcon:u,destroyOnHide:a,slots:l})},inject:o=>{const{showExpandIcon:s,destroyOnHide:n}=e.toRefs(o),r=e.inject(t,{computedActiveKey:e.ref([]),accordion:e.ref(!1),expandIconPosition:e.ref("left"),showExpandIcon:e.ref(!0),destroyOnHide:e.ref(!1),slots:{}}),{showExpandIcon:d,destroyOnHide:i}=r;return{...r,showExpandIcon:e.computed(()=>s.value??d.value),destroyOnHide:e.computed(()=>n.value??i.value)}}});
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),
|
1
|
+
"use strict";const e=require("vue"),a=require("../node_modules/@vueuse/core/index.js"),o=require("../_shared/utils/color.js"),l=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const r=e.defineComponent({__name:"ColorControl",props:{color:{},baseColor:{},popupVisible:{type:Boolean},disabled:{type:Boolean},hideTrigger:{type:Boolean},mode:{}},emits:["update:color","update:alpha","update:baseColor","change"],setup(r,{expose:t,emit:s}){const i=r,u=s,{color:n,mode:c,popupVisible:d,disabled:p,hideTrigger:v}=e.toRefs(i),m=e.ref(),g=e.ref(),h=e.ref({min:0,max:0}),f=new o.GradientColorCalculator,{x:b}=a.useDraggable(m,{disabled:p,onMove(){y()}}),C=e=>{const{max:a,min:l}=h.value;if("alpha"==c.value){const r=100*o.parseColor(e).getAlpha();b.value=l+r/100*(a-l),u("update:alpha",r)}else b.value=f.getPositionForColor(e,a-l)+l},y=()=>{const{min:e,max:a}=h.value;b.value=b.value<e?e:b.value,b.value=b.value>a?a:b.value;let l="";if("alpha"==c.value){const r=+((b.value-e)/(a-e)).toFixed(2);l=o.parseColor(n.value).setAlpha(r).toRgbString(),u("update:alpha",r)}else l=f.getColorAtPosition(b.value-e,a-e),u("update:baseColor",l),u("change",l);u("update:color",l)},x=e=>{p.value||(b.value=e.pageX,y())};return e.watch(()=>d.value,async e=>{if(e||v.value){await l.sleep(0);const{left:e,right:a}=g.value.getBoundingClientRect();h.value={min:e,max:a},C(n.value)}},{immediate:!0}),t({setPosition:C}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-color-picker-control-bar",style:e.normalizeStyle({background:"alpha"==e.unref(c)?`linear-gradient(to right, rgba(0, 0, 0, 0), ${a.baseColor})`:""}),ref_key:"barRef",ref:g,onClick:x},[e.createElementVNode("div",{class:"yc-color-picker-control-bar-handler",style:e.normalizeStyle({color:e.unref(n),transform:`translate(calc(${e.unref(l.valueToPx)(e.unref(b)-h.value.min)} - 50%),-50%)`}),ref_key:"btnRef",ref:m},null,4)],4))}});module.exports=r;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),l=require("../_shared/utils/color.js");require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue"),l=require("../_shared/utils/color.js");require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const a=require("../_shared/constants/index.js"),o=require("../Select/index.js"),r=require("../Input/index.js"),t=require("../InputNumber/index.js"),u={class:"yc-color-picker-input-wrapper"},s={class:"yc-color-picker-format"},d={class:"yc-color-picker-color"},n=e.defineComponent({__name:"ColorInput",props:{color:{},baseColor:{},alpha:{},disabled:{type:Boolean},disabledAlpha:{type:Boolean}},emits:["update:color","update:baseColor","update:alpha","change"],setup(n,{emit:i}){const c=n,p=i,{color:m,alpha:b}=e.toRefs(c),h=e.ref("hex"),v=e.ref(""),V=e.ref({}),g=e.ref(b.value),x=e=>{if("hex"==e){const e=l.parseColor(m.value).getAlpha(),a=l.parseColor(v.value).setAlpha(e).toHex8();p("update:color",a),p("update:baseColor",a),p("change",a,"color")}else if("rgb"==e){const{r:e,g:l,b:a}=V.value,o=`rgb(${e},${l},${a})`;p("update:color",o),p("update:baseColor",o),p("change",o,"color")}else{const e=+(g.value/100).toFixed(2),a=l.parseColor(m.value).setAlpha(e).toRgbString();p("update:color",a),p("update:alpha",g.value),p("change",a,"alpha")}};return e.watch(()=>m.value,()=>{v.value=l.parseColor(m.value).toHex(),V.value=l.parseColor(m.value).toRgb()},{immediate:!0}),e.watch(()=>b.value,()=>{g.value=100*b.value}),(l,n)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",s,[e.createVNode(e.unref(o.default),{modelValue:h.value,"onUpdate:modelValue":n[0]||(n[0]=e=>h.value=e),options:e.unref(a.COLOR_PICKER_FORMAT_OPTIONS),"trigger-props":{contentClass:"yc-color-picker-format-popup-content"},size:"mini"},null,8,["modelValue","options"])]),e.createElementVNode("div",d,["hex"==h.value?(e.openBlock(),e.createBlock(e.unref(r),{key:0,modelValue:v.value,"onUpdate:modelValue":n[1]||(n[1]=e=>v.value=e),"max-length":6,disabled:l.disabled,size:"mini",class:"hex-input",onBlur:n[2]||(n[2]=e=>x("hex")),onPressEnter:n[3]||(n[3]=e=>x("hex"))},{prefix:e.withCtx(()=>n[16]||(n[16]=[e.createTextVNode(" # ",-1)])),_:1},8,["modelValue","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(t),{modelValue:V.value.r,"onUpdate:modelValue":n[4]||(n[4]=e=>V.value.r=e),min:0,max:255,disabled:l.disabled,size:"mini",class:"rgb-input","hide-button":"",onBlur:n[5]||(n[5]=e=>x("rgb")),onPressEnter:n[6]||(n[6]=e=>x("rgb"))},null,8,["modelValue","disabled"]),e.createVNode(e.unref(t),{modelValue:V.value.g,"onUpdate:modelValue":n[7]||(n[7]=e=>V.value.g=e),min:0,max:255,disabled:l.disabled,size:"mini",class:"rgb-input","hide-button":"",onBlur:n[8]||(n[8]=e=>x("rgb")),onPressEnter:n[9]||(n[9]=e=>x("rgb"))},null,8,["modelValue","disabled"]),e.createVNode(e.unref(t),{modelValue:V.value.b,"onUpdate:modelValue":n[10]||(n[10]=e=>V.value.b=e),min:0,max:255,disabled:l.disabled,class:"rgb-input",size:"mini","hide-button":"",onBlur:n[11]||(n[11]=e=>x("rgb")),onPressEnter:n[12]||(n[12]=e=>x("rgb"))},null,8,["modelValue","disabled"])],64)),l.disabledAlpha?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(t),{key:2,modelValue:g.value,"onUpdate:modelValue":n[13]||(n[13]=e=>g.value=e),min:0,max:100,disabled:l.disabled,size:"mini","hide-button":"",class:"alpha-input",onBlur:n[14]||(n[14]=e=>x("alpha")),onPressEnter:n[15]||(n[15]=e=>x("alpha"))},{suffix:e.withCtx(()=>n[17]||(n[17]=[e.createTextVNode(" % ",-1)])),_:1},8,["modelValue","disabled"]))])]))}});module.exports=n;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/locale
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/utils/locale.js"),l={class:"yc-color-picker-colors-section"},c={class:"yc-color-picker-colors-text"},r={key:0,class:"yc-color-picker-colors-empty"},t={class:"yc-color-picker-colors-list"},s=["onClick"],i=e.defineComponent({__name:"ColorList",props:{label:{},colors:{}},emits:["colorClick"],setup(i){const{t:n}=o.useI18n();return(o,i)=>(e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",c,e.toDisplayString(o.label),1),o.colors.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r,e.toDisplayString(e.unref(n)("colorPicker.empty")),1)),e.createElementVNode("div",t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.colors,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"yc-color-picker-color-block",style:e.normalizeStyle({backgroundColor:l}),onClick:e=>o.$emit("colorClick",l)},[e.createElementVNode("div",{class:"yc-color-picker-block",style:e.normalizeStyle({backgroundColor:l})},null,4)],12,s))),128))])]))}});module.exports=i;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js"),a=require("../_shared/utils/color.js"),o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js"),a=require("../_shared/utils/color.js"),o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const u=e.defineComponent({__name:"ColorPalette",props:{color:{},baseColor:{},popupVisible:{type:Boolean},disabled:{type:Boolean},hideTrigger:{type:Boolean}},emits:["update:color","update:baseColor"],setup(u,{expose:r,emit:s}){const t=u,i=s,{popupVisible:v,baseColor:n,disabled:c,hideTrigger:p}=e.toRefs(t),d=e.ref(),m=e.ref(),{width:f,height:y,top:g,left:h}=l.useElementBounding(m,{updateTiming:"next-frame"}),b=e.computed(()=>a.parseColor(n.value).toHsv()),{x:C,y:_}=l.useDraggable(d,{disabled:c,onMove(){k()}}),x=e=>{c.value||(C.value=e.pageX,_.value=e.pageY,k())},k=()=>{C.value=(C.value-h.value)/f.value,C.value=C.value<0?0:C.value,C.value=C.value>1?1:C.value,_.value=(_.value-g.value)/y.value,_.value=_.value<0?0:_.value,_.value=_.value>1?1:_.value;const e=a.parseColor({...b.value,s:C.value,v:1-_.value}).toHexString();i("update:color",e)};return e.watch(()=>v.value,async e=>{(e||p.value)&&(await o.sleep(0),C.value=b.value.s,_.value=1-b.value.v)},{immediate:!0}),r({setPosition(e){const{s:l,v:o}=a.parseColor(e).toHsv();C.value=l,_.value=1-o}}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-color-picker-palette",style:e.normalizeStyle({backgroundColor:e.unref(n)}),ref_key:"paletteRef",ref:m,onClick:x},[e.createElementVNode("div",{class:"yc-color-picker-handler",style:e.normalizeStyle({transform:`translate(calc(${e.unref(o.valueToPx)(e.unref(C)*e.unref(f))} - 50%),calc(${e.unref(o.valueToPx)(e.unref(_)*e.unref(y))} - 50%))`}),ref_key:"btnRef",ref:d},null,4)],4))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/locale
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/utils/locale.js"),l=require("./hooks/useContext.js"),r=require("./ColorPalette.vue.js");;/* empty css */const a=require("./ColorInput.vue.js");;/* empty css */const n=require("./ColorList.vue.js");;/* empty css */const s=require("./ColorControl.vue.js");;/* empty css */const u={class:"yc-color-picker-panel-control"},i={class:"yc-color-picker-control-wrapper"},t={class:"yc-color-picker-control-bar-bg"},c={key:0,class:"yc-color-picker-panel-colors"},d=e.defineComponent({__name:"ColorPanel",setup(d){const{popupVisible:p,computedColor:f,baseColor:v,alpha:b,disabled:h,disabledAlpha:C,showHistory:k,showPreset:m,hideTrigger:y,presetColors:g,historyColors:j}=l().inject(),{t:q}=o.useI18n(),P=e.ref(),V=e.ref(),N=e.ref(),R=e=>{var o,l,r;h.value||(f.value=e,v.value=e,null==(o=P.value)||o.setPosition(e),null==(l=V.value)||l.setPosition(e),null==(r=N.value)||r.setPosition(e))},B=(e,o)=>{var l,r,a;"alpha"==o?null==(l=V.value)||l.setPosition(e):(null==(r=P.value)||r.setPosition(e),null==(a=N.value)||a.setPosition(e))};return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-color-picker-panel",{"yc-color-picker-panel-disabled":e.unref(h)}])},[e.createVNode(r,{color:e.unref(f),"onUpdate:color":l[0]||(l[0]=o=>e.isRef(f)?f.value=o:null),"base-color":e.unref(v),"popup-visible":e.unref(p),"hide-trigger":e.unref(y),disabled:e.unref(h),ref_key:"paletteRef",ref:N},null,8,["color","base-color","popup-visible","hide-trigger","disabled"]),e.createElementVNode("div",u,[e.createElementVNode("div",i,[e.createElementVNode("div",null,[e.createVNode(s,{mode:"color",color:e.unref(f),"onUpdate:color":l[1]||(l[1]=o=>e.isRef(f)?f.value=o:null),"base-color":e.unref(v),"onUpdate:baseColor":l[2]||(l[2]=o=>e.isRef(v)?v.value=o:null),"popup-visible":e.unref(p),disabled:e.unref(h),"hide-trigger":e.unref(y),ref_key:"colorBarRef",ref:P,onChange:l[3]||(l[3]=e=>{var o;return null==(o=N.value)?void 0:o.setPosition(e)})},null,8,["color","base-color","popup-visible","disabled","hide-trigger"]),e.createElementVNode("div",t,[e.createVNode(s,{mode:"alpha",color:e.unref(f),"onUpdate:color":l[4]||(l[4]=o=>e.isRef(f)?f.value=o:null),alpha:e.unref(b),"onUpdate:alpha":l[5]||(l[5]=o=>e.isRef(b)?b.value=o:null),"base-color":e.unref(v),"popup-visible":e.unref(p),disabled:e.unref(h),"hide-trigger":e.unref(y),ref_key:"alphaBarRef",ref:V},null,8,["color","alpha","base-color","popup-visible","disabled","hide-trigger"])])]),e.createElementVNode("div",{class:"yc-color-picker-preview",style:e.normalizeStyle({backgroundColor:e.unref(f)})},null,4)]),e.createVNode(a,{color:e.unref(f),"onUpdate:color":l[6]||(l[6]=o=>e.isRef(f)?f.value=o:null),"base-color":e.unref(v),"onUpdate:baseColor":l[7]||(l[7]=o=>e.isRef(v)?v.value=o:null),alpha:e.unref(b),"onUpdate:alpha":l[8]||(l[8]=o=>e.isRef(b)?b.value=o:null),disabled:e.unref(h),"disabled-alpha":e.unref(C),onChange:B},null,8,["color","base-color","alpha","disabled","disabled-alpha"])]),e.unref(k)||e.unref(m)?(e.openBlock(),e.createElementBlock("div",c,[e.unref(k)?(e.openBlock(),e.createBlock(n,{key:0,label:e.unref(q)("colorPicker.history"),colors:e.unref(j),onColorClick:R},null,8,["label","colors"])):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(n,{key:1,label:e.unref(q)("colorPicker.preset"),colors:e.unref(g),onColorClick:R},null,8,["label","colors"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});module.exports=d;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=require("../../_shared/utils/color.js");require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js");const o=require("../../_shared/utils/global-config.js")
|
1
|
+
"use strict";const e=require("vue"),r=require("../../_shared/utils/color.js");require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js");const o=require("../../_shared/utils/global-config.js");require("../../_shared/utils/locale.js");const s=require("../../_shared/utils/control.js"),l="color-picker-context";module.exports=()=>({provide:(i,t)=>{const{modelValue:a,defaultValue:u,format:d,disabled:h,disabledAlpha:p,showHistory:f,showPreset:c,historyColors:n,presetColors:g,hideTrigger:b}=e.toRefs(i),{size:m}=o.getGlobalConfig(i),C=e.ref(100),j=s(a,u.value,e=>{t("update:modelValue",e),t("change",e)},e=>{const o=r.parseColor(e),s=o.getAlpha();return s!=C.value&&(C.value=100*s),"hex"==d.value?1==s?o.toHexString():o.toHex8String():o.toRgbString()}),v=e.ref(j.value),q=e.ref(!1);return e.provide(l,{emits:t,popupVisible:q,computedColor:j,baseColor:v,alpha:C,format:d,disabled:h,disabledAlpha:p,showHistory:f,showPreset:c,hideTrigger:b,presetColors:g,historyColors:n}),{popupVisible:q,size:m,computedColor:j}},inject:()=>e.inject(l,{emits:()=>{},popupVisible:e.ref(!1),computedColor:e.ref(""),baseColor:e.ref(""),alpha:e.ref(100),format:e.ref("hex"),disabled:e.ref(!1),disabledAlpha:e.ref(!1),showHistory:e.ref(!1),showPreset:e.ref(!1),hideTrigger:e.ref(!1),presetColors:e.ref([]),historyColors:e.ref([])})});
|
package/lib/Comment/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const n=require("./hooks/useContext.js"),o=require("../Avatar/index.js"),a={Comment:"",class:"yc-comment"},l={key:0,class:"yc-comment-avatar"},r={class:"yc-comment-inner"},c={class:"yc-comment-inner-content"},s={key:0,class:"yc-comment-author"},i={key:1,class:"yc-comment-datetime"},m={key:0,class:"yc-comment-content"},d={key:0,class:"yc-comment-inner-comment"},u=e.defineComponent({name:"Comment",__name:"index",props:{author:{default:""},avatar:{default:""},content:{default:""},datetime:{default:""},align:{default:"left"}},setup(u){const{hasChildren:g}=n();return(n,u)=>(e.openBlock(),e.createElementBlock("div",a,[n.$slots.avatar||n.avatar?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(n.$slots,"avatar",{},()=>[e.createVNode(e.unref(o.default),{"image-url":n.avatar,size:e.unref(g)?32:40},null,8,["image-url","size"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",r,[e.createElementVNode("div",c,[e.createElementVNode("div",{class:e.normalizeClass(["yc-comment-title",{"yc-comment-title-align-left":"left"==n.align||e.unref(t.isObject)(n.align)&&"left"==n.align.datetime,"yc-comment-title-align-right":"right"==n.align||e.unref(t.isObject)(n.align)&&"right"==n.align.datetime}])},[n.$slots.author||n.author?(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(n.$slots,"author",{},()=>[e.createTextVNode(e.toDisplayString(n.author),1)])])):e.createCommentVNode("",!0),n.$slots.datetime||n.datetime?(e.openBlock(),e.createElementBlock("span",i,[e.renderSlot(n.$slots,"datetime",{},()=>[e.createTextVNode(e.toDisplayString(n.datetime),1)])])):e.createCommentVNode("",!0)],2),n.$slots.content||n.content?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(n.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(n.content),1)])])):e.createCommentVNode("",!0),n.$slots.actions?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["yc-comment-actions",{"yc-comment-actions-align-left":"left"==n.align||e.unref(t.isObject)(n.align)&&"left"==n.align.datetime,"yc-comment-actions-align-right":"right"==n.align||e.unref(t.isObject)(n.align)&&"right"==n.align.datetime}])},[e.renderSlot(n.$slots,"actions")],2)):e.createCommentVNode("",!0)]),n.$slots.default?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(n.$slots,"default")])):e.createCommentVNode("",!0)])]))}});module.exports=u;
|
@@ -4,12 +4,12 @@ export type ConfigProviderInstance = InstanceType<typeof _ConfigProvider>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const ConfigProvider: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
8
7
|
size: import('..').Size;
|
9
8
|
popupContainer: import('..').PopupContainer;
|
10
9
|
updateAtScroll: boolean;
|
11
10
|
scrollToClose: boolean;
|
12
11
|
zIndex: number;
|
12
|
+
locale: import('../_shared/type').ObjectData;
|
13
13
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
14
14
|
P: {};
|
15
15
|
B: {};
|
@@ -18,23 +18,23 @@ declare const ConfigProvider: {
|
|
18
18
|
M: {};
|
19
19
|
Defaults: {};
|
20
20
|
}, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
21
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
22
21
|
size: import('..').Size;
|
23
22
|
popupContainer: import('..').PopupContainer;
|
24
23
|
updateAtScroll: boolean;
|
25
24
|
scrollToClose: boolean;
|
26
25
|
zIndex: number;
|
26
|
+
locale: import('../_shared/type').ObjectData;
|
27
27
|
}>;
|
28
28
|
__isFragment?: never;
|
29
29
|
__isTeleport?: never;
|
30
30
|
__isSuspense?: never;
|
31
31
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
32
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
33
32
|
size: import('..').Size;
|
34
33
|
popupContainer: import('..').PopupContainer;
|
35
34
|
updateAtScroll: boolean;
|
36
35
|
scrollToClose: boolean;
|
37
36
|
zIndex: number;
|
37
|
+
locale: import('../_shared/type').ObjectData;
|
38
38
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
39
39
|
$slots: Readonly<import('./type').ConfigconfigSlots> & import('./type').ConfigconfigSlots;
|
40
40
|
}) & {
|
@@ -7,12 +7,12 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
10
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
11
10
|
size: import('..').Size;
|
12
11
|
popupContainer: import('..').PopupContainer;
|
13
12
|
updateAtScroll: boolean;
|
14
13
|
scrollToClose: boolean;
|
15
14
|
zIndex: number;
|
15
|
+
locale: import('../_shared/type').ObjectData;
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
17
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
18
18
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const l=e.defineComponent({name:"ConfigProvider",__name:"index",props:{locale:{default:void 0},zIndex:{default:1001},size:{default:"medium"},popupContainer:{default:"body"},updateAtScroll:{type:Boolean,default:!0},scrollToClose:{type:Boolean,default:!1}},setup(l){const s=e.useSlots(),t=l,{locale:r,zIndex:u,size:d,updateAtScroll:i,scrollToClose:n,popupContainer:a}=e.toRefs(t);return e.provide(o.CONFIG_PROVIDER_PROVIDE_KEY,{slots:s,locale:r,zIndex:u,size:d,updateAtScroll:i,scrollToClose:n,popupContainer:a}),(o,l)=>e.renderSlot(o.$slots,"default")}});module.exports=l;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Size, PopupContainer } from '../_shared/type';
|
1
|
+
import { Size, PopupContainer, ObjectData } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface ConfigProviderProps {
|
4
|
-
locale?:
|
4
|
+
locale?: ObjectData;
|
5
5
|
zIndex?: number;
|
6
6
|
size?: Size;
|
7
7
|
popupContainer?: PopupContainer;
|
@@ -16,3 +16,4 @@ export interface ConfigconfigSlots {
|
|
16
16
|
}) => VNode[];
|
17
17
|
}
|
18
18
|
export type EmptyComponent = 'Select' | 'List' | 'Transfer';
|
19
|
+
export type YcLang = 'ar-EG' | 'de-DE' | 'en-US' | 'es-ES' | 'fr-FR' | 'id-ID' | 'it-it' | 'ja-JP' | 'km-KH' | 'ko-KR' | 'ms-MY' | 'nl-NL' | 'pt-PT' | 'ru-RU' | 'th-TH' | 'vi-VN' | 'zh-CN' | 'zh-TW';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/vue-utils.js");require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/vue-utils.js");require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const n=require("./hooks/useContext.js"),r={class:"yc-descriptions-item"},s=e.defineComponent({__name:"ReuseItem",props:{data:{},index:{}},setup(s){const{labelStyle:a,valueStyle:i,slots:o,align:u}=n().inject();return(n,s)=>{var c,d,m,f;return e.openBlock(),e.createElementBlock("td",r,[e.createElementVNode("div",{class:"yc-descriptions-item-label",style:e.normalizeStyle({...e.unref(a),textAlign:e.unref(t.isObject)(e.unref(u))?e.unref(u).label??"left":e.unref(u)})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.getSlotFunction)((null==(d=(c=e.unref(o)).label)?void 0:d.call(c,{label:n.data.label,index:n.index,data:n.data}))??n.data.label))))],4),e.createElementVNode("div",{class:"yc-descriptions-item-value",style:e.normalizeStyle({...e.unref(i),textAlign:e.unref(t.isObject)(e.unref(u))?e.unref(u).value??"left":e.unref(u)})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.getSlotFunction)((null==(f=(m=e.unref(o)).value)?void 0:f.call(m,{value:n.data.value,index:n.index,data:n.data}))??n.data.value))))],4)])}}});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const s=require("./hooks/useContext.js"),r=["colspan"],n=e.defineComponent({__name:"ReuseTd",props:{data:{},index:{},type:{},colspan:{}},setup(n){const{labelStyle:a,valueStyle:i,bordered:o,size:u,align:c,slots:d}=s().inject();return(s,n)=>{var p,m,y,f;return e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass(["label"==s.type?"yc-descriptions-item-label":"yc-descriptions-item-value",`yc-descriptions-item-cell-size-${e.unref(u)}`,{"yc-descriptions-item-cell-bordered":e.unref(o)}]),style:e.normalizeStyle({..."label"==s.type?e.unref(a):e.unref(i),textAlign:e.unref(l.isObject)(e.unref(c))?e.unref(c)[s.type]??"left":e.unref(c)}),colspan:s.colspan},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t.getSlotFunction)("label"==s.type?(null==(m=(p=e.unref(d)).label)?void 0:m.call(p,{label:s.data.label,index:s.index,data:s.data}))??s.data.label:(null==(f=(y=e.unref(d)).value)?void 0:f.call(y,{value:s.data.value,index:s.index,data:s.data}))??s.data.value))))],14,r)}}});module.exports=n;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../../_shared/utils/dom.js");require("../../_shared/utils/time.js");const r=require("../../_shared/utils/vue-utils.js"),o=require("../../_shared/utils/global-config.js")
|
1
|
+
"use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../../_shared/utils/dom.js");require("../../_shared/utils/time.js");const r=require("../../_shared/utils/vue-utils.js"),o=require("../../_shared/utils/global-config.js");require("../../_shared/utils/locale.js");const t=require("../DescriptionsItem.vue.js"),u="radio-group-context";module.exports=()=>({provide:s=>{const{data:a,column:i,layout:n,labelStyle:d,valueStyle:c,bordered:v,align:m}=e.toRefs(s),{size:p}=o.getGlobalConfig(s),f=e.useSlots(),b=e.computed(()=>{var e;const l=r.findComponentsFromVnodes((null==(e=f.default)?void 0:e.call(f))||[],t.name);return l.length?l.map(e=>{var l,r,o,t;return{label:(null==(l=e.children)?void 0:l.label)??(null==(r=e.props)?void 0:r.label),value:null==(o=e.children)?void 0:o.default,span:null==(t=e.props)?void 0:t.span}}):a.value}),y=e.ref("xxl"),g=e.computed(()=>l.getBreakpointValue(y.value,i.value,3));return l.mediaQueryHandler(e=>{y.value=e}),e.provide(u,{size:p,bordered:v,align:m,labelStyle:d,valueStyle:c,slots:f}),{data:b,size:p,column:g,layout:n}},inject:()=>e.inject(u,{size:e.ref("medium"),bordered:e.ref(!1),align:e.ref("left"),labelStyle:e.ref({}),valueStyle:e.ref({}),slots:{}})});
|
package/lib/Divider/index.d.ts
CHANGED
@@ -4,8 +4,8 @@ export type DividerInstance = InstanceType<typeof _Divider>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const Divider: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
-
type: import('./type').DividerType;
|
8
7
|
size: number;
|
8
|
+
type: import('./type').DividerType;
|
9
9
|
direction: import('..').Direction;
|
10
10
|
margin: number | string;
|
11
11
|
orientation: import('./type').Orientation;
|
@@ -17,8 +17,8 @@ declare const Divider: {
|
|
17
17
|
M: {};
|
18
18
|
Defaults: {};
|
19
19
|
}, Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
20
|
-
type: import('./type').DividerType;
|
21
20
|
size: number;
|
21
|
+
type: import('./type').DividerType;
|
22
22
|
direction: import('..').Direction;
|
23
23
|
margin: number | string;
|
24
24
|
orientation: import('./type').Orientation;
|
@@ -27,8 +27,8 @@ declare const Divider: {
|
|
27
27
|
__isTeleport?: never;
|
28
28
|
__isSuspense?: never;
|
29
29
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').DividerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
30
|
-
type: import('./type').DividerType;
|
31
30
|
size: number;
|
31
|
+
type: import('./type').DividerType;
|
32
32
|
direction: import('..').Direction;
|
33
33
|
margin: number | string;
|
34
34
|
orientation: import('./type').Orientation;
|
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
10
|
-
type: import('./type').DividerType;
|
11
10
|
size: number;
|
11
|
+
type: import('./type').DividerType;
|
12
12
|
direction: import('..').Direction;
|
13
13
|
margin: number | string;
|
14
14
|
orientation: import('./type').Orientation;
|
package/lib/Divider/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),o=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),o=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */require("../_shared/utils/locale.js");const t=e.defineComponent({name:"Divider",__name:"index",props:{direction:{default:"horizontal"},orientation:{default:"center"},type:{default:"solid"},size:{default:1},margin:{default:void 0}},setup(t){const i=t,{size:l,margin:a,direction:n,type:s}=e.toRefs(i),u=e.computed(()=>o.isUndefined(a.value)?"horizontal"==n.value?"20px 0":"0 12px":"horizontal"==n.value?`${r.valueToPx(a.value)} 0`:`0 ${r.valueToPx(a.value)}`),d=e.computed(()=>`${r.valueToPx(l.value)} ${s.value} var(--color-neutral-3)`);return(r,o)=>(e.openBlock(),e.createElementBlock("div",{role:"separator",class:e.normalizeClass(["yc-divider",`yc-divider-direction-${e.unref(n)}`]),style:e.normalizeStyle({margin:u.value,borderLeft:"vertical"==e.unref(n)?d.value:"",borderBottom:"horizontal"==e.unref(n)?d.value:""})},[r.$slots.default&&"vertical"!=e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-divider-text",`yc-divider-text-${r.orientation}`])},[e.renderSlot(r.$slots,"default")],2)):e.createCommentVNode("",!0)],6))}});module.exports=t;
|
@@ -9,23 +9,21 @@ declare function __VLS_template(): {
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
10
10
|
declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
11
11
|
cancel: (event: MouseEvent | KeyboardEvent) => any;
|
12
|
-
ok: () => any;
|
13
12
|
close: () => any;
|
14
13
|
open: () => any;
|
15
14
|
"update:visible": (value: boolean) => any;
|
15
|
+
ok: () => any;
|
16
16
|
"before-open": () => any;
|
17
17
|
"before-close": () => any;
|
18
18
|
}, string, import('vue').PublicProps, Readonly<DrawerProps> & Readonly<{
|
19
19
|
onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
20
|
-
onOk?: (() => any) | undefined;
|
21
20
|
onClose?: (() => any) | undefined;
|
22
21
|
onOpen?: (() => any) | undefined;
|
23
22
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
23
|
+
onOk?: (() => any) | undefined;
|
24
24
|
"onBefore-open"?: (() => any) | undefined;
|
25
25
|
"onBefore-close"?: (() => any) | undefined;
|
26
26
|
}>, {
|
27
|
-
okText: string;
|
28
|
-
cancelText: string;
|
29
27
|
unmountOnClose: boolean;
|
30
28
|
popupContainer: import('..').PopupContainer;
|
31
29
|
renderToBody: boolean;
|
@@ -40,6 +38,8 @@ declare const __VLS_component: import('vue').DefineComponent<DrawerProps, {}, {}
|
|
40
38
|
closable: boolean;
|
41
39
|
maskClosable: boolean;
|
42
40
|
hideCancel: boolean;
|
41
|
+
okText: string;
|
42
|
+
cancelText: string;
|
43
43
|
okLoading: boolean;
|
44
44
|
okButtonProps: import('../Button').ButtonProps;
|
45
45
|
cancelButtonProps: import('../Button').ButtonProps;
|
package/lib/Drawer/Drawer.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js"),l=require("../_shared/utils/locale.js"),r=require("../Modal/hooks/useModalClose.js"),a=require("../Button/index.js"),n=require("../_shared/components/IconButton.vue.js");,/* empty css */,/* empty css */;/* empty css */const s={key:0,class:"yc-drawer-header"},i={class:"yc-drawer-title text-ellipsis"},d={class:"yc-drawer-body"},c={key:0,class:"yc-drawer-footer"},u=e.defineComponent({name:"Drawer",inheritAttrs:!1,__name:"Drawer",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},placement:{default:"right"},title:{default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:void 0},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","before-open","open","before-close","close"],setup(u,{emit:f}){const p=u,m=f,{visible:y,defaultVisible:B,width:k,height:h,placement:v,maskClosable:C,escToClose:w,drawerStyle:b,renderToBody:x,popupContainer:g}=e.toRefs(p),{onBeforeOk:T,onBeforeCancel:V}=p,{zIndex:N,popupContainer:_}=t.getGlobalConfig(p),{t:S}=l.useI18n(),q=e.computed(()=>({height:"left"==v.value||"right"==v.value?"":o.valueToPx(h.value),width:"left"==v.value||"right"==v.value?o.valueToPx(k.value):"",...b.value})),{outerVisible:j,innerVisible:$,asyncLoading:E,handleClose:D,handleAfterLeave:P}=r({visible:y,defaultVisible:B,escToClose:w,maskClosable:C,onBeforeCancel:V,onBeforeOk:T,emits:m});return(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(_),disabled:!e.unref(x)},[!o.unmountOnClose||e.unref(j)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-drawer-wrapper",`yc-drawer-placement-${e.unref(v)}`,o.$attrs.class,{"yc-drawer-position-absolute":e.unref(g)||!e.unref(x)}]),style:e.normalizeStyle({zIndex:e.unref(N),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-drawer-mask",onClick:t[0]||(t[0]=o=>e.unref(D)("mask",o))},null,512)),[[e.vShow,e.unref($)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:`slide-drawer-${e.unref(v)}`,onBeforeEnter:t[4]||(t[4]=e=>o.$emit("before-open")),onBeforeLeave:t[5]||(t[5]=e=>o.$emit("before-close")),onAfterEnter:t[6]||(t[6]=e=>o.$emit("open")),onAfterLeave:e.unref(P)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-drawer-container",style:e.normalizeStyle(q.value)},[e.renderSlot(o.$slots,"header",{},()=>[o.header?(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",i,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),o.closable?(e.openBlock(),e.createBlock(e.unref(n),{key:0,class:"yc-modal-close-button",onClick:t[1]||(t[1]=o=>e.unref(D)("closeBtn",o))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",d,[e.renderSlot(o.$slots,"default")]),e.renderSlot(o.$slots,"footer",{},()=>[o.footer?(e.openBlock(),e.createElementBlock("div",c,[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(a.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:t[2]||(t[2]=o=>e.unref(D)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||e.unref(S)("drawer.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(a.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(E)},o.okButtonProps,{onClick:t[3]||(t[3]=o=>e.unref(D)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||e.unref(S)("drawer.okText")),1)]),_:1},16,["loading"])])):e.createCommentVNode("",!0)])],4),[[e.vShow,e.unref($)]])]),_:3},8,["name","onAfterLeave"])],6)),[[e.vShow,e.unref(j)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=u;
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import { DrawerServiceProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DrawerServiceProps> & Readonly<{}>, {
|
3
|
-
okText: string;
|
4
|
-
cancelText: string;
|
5
3
|
unmountOnClose: boolean;
|
6
4
|
renderToBody: boolean;
|
7
5
|
width: number | string;
|
@@ -13,6 +11,8 @@ declare const _default: import('vue').DefineComponent<DrawerServiceProps, {}, {}
|
|
13
11
|
closable: boolean;
|
14
12
|
maskClosable: boolean;
|
15
13
|
hideCancel: boolean;
|
14
|
+
okText: string;
|
15
|
+
cancelText: string;
|
16
16
|
okLoading: boolean;
|
17
17
|
okButtonProps: import('..').ButtonProps;
|
18
18
|
cancelButtonProps: import('..').ButtonProps;
|