@uzum-tech/ui 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +83737 -65269
- package/dist/index.prod.js +12 -2
- package/es/__mocks__/vueuse-core.d.ts +5 -0
- package/es/__mocks__/vueuse-core.js +9 -0
- package/es/_internal/checkbox/src/use-checkbox.d.ts +4 -4
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/es/_internal/icons/CheckmarkCircle.d.ts +2 -0
- package/es/_internal/icons/CheckmarkCircle.js +9 -0
- package/es/_internal/icons/ContentCopy.d.ts +2 -0
- package/es/_internal/icons/ContentCopy.js +8 -0
- package/es/_internal/icons/DismissCircle.d.ts +2 -0
- package/es/_internal/icons/DismissCircle.js +9 -0
- package/es/_internal/icons/Edit.d.ts +2 -0
- package/es/_internal/icons/Edit.js +9 -0
- package/es/_internal/icons/FileHeart.d.ts +2 -0
- package/es/_internal/icons/FileHeart.js +8 -0
- package/es/_internal/icons/SiderUnionBorder.d.ts +2 -0
- package/es/_internal/icons/SiderUnionBorder.js +8 -0
- package/es/_internal/icons/index.d.ts +6 -0
- package/es/_internal/icons/index.js +6 -0
- package/es/_internal/loading/src/Loading.d.ts +2 -2
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/radio/src/use-radio.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +83 -152
- package/es/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/es/_internal/select-menu/styles/light.d.ts +11 -5
- package/es/_internal/selection/src/Selection.d.ts +13 -124
- package/es/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/es/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/es/_utils/cssr/index.d.ts +1 -1
- package/es/_utils/debounce/index.d.ts +1 -0
- package/es/_utils/debounce/index.js +10 -0
- package/es/_utils/inject/index.d.ts +1 -1
- package/es/_utils/vue/render.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +4 -4
- package/es/alert/src/Alert.d.ts +8 -120
- package/es/anchor/src/AnchorAdapter.d.ts +4 -4
- package/es/anchor/src/BaseAnchor.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +130 -175
- package/es/auto-complete/styles/light.d.ts +11 -5
- package/es/avatar/src/Avatar.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +6 -117
- package/es/back-top/src/BackTop.d.ts +4 -4
- package/es/badge/src/Badge.d.ts +7 -7
- package/es/button/src/Button.d.ts +14 -14
- package/es/calendar/src/Calendar.d.ts +3 -114
- package/es/card/src/Card.d.ts +19 -130
- package/es/card-list/index.d.ts +2 -0
- package/es/card-list/index.js +1 -0
- package/es/card-list/src/CardList.d.ts +259 -0
- package/es/card-list/src/CardList.js +69 -0
- package/es/card-list/src/CardListItem.d.ts +70 -0
- package/es/card-list/src/CardListItem.js +112 -0
- package/es/card-list/src/interface.d.ts +12 -0
- package/es/card-list/src/interface.js +1 -0
- package/es/card-list/src/styles/index.cssr.d.ts +2 -0
- package/es/card-list/src/styles/index.cssr.js +101 -0
- package/es/card-list/styles/dark.d.ts +3 -0
- package/es/card-list/styles/dark.js +8 -0
- package/es/card-list/styles/index.d.ts +3 -0
- package/es/card-list/styles/index.js +2 -0
- package/es/card-list/styles/light.d.ts +22 -0
- package/es/card-list/styles/light.js +26 -0
- package/es/carousel/src/Carousel.d.ts +23 -25
- package/es/carousel/src/CarouselDots.d.ts +5 -5
- package/es/cascader/src/Cascader.d.ts +246 -231
- package/es/cascader/src/CascaderMenu.d.ts +36 -129
- package/es/cascader/src/CascaderOption.d.ts +34 -127
- package/es/cascader/src/CascaderSelectMenu.d.ts +35 -128
- package/es/cascader/src/CascaderSubmenu.d.ts +34 -127
- package/es/cascader/styles/light.d.ts +22 -10
- package/es/checkbox/src/Checkbox.d.ts +18 -129
- package/es/checkbox/src/CheckboxGroup.d.ts +14 -14
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +10 -121
- package/es/collapse/src/CollapseItem.d.ts +3 -3
- package/es/collapse/src/CollapseItemContent.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/ColorInput.d.ts +2 -2
- package/es/color-picker/src/ColorInputUnit.d.ts +3 -114
- package/es/color-picker/src/ColorPicker.d.ts +7 -7
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +10 -366
- package/es/config-provider/src/config.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +3 -1
- package/es/countdown/src/Countdown.d.ts +4 -4
- package/es/data-table/src/DataTable.d.ts +308 -255
- package/es/data-table/src/DataTable.js +153 -5
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +59 -137
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +62 -140
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/data-table/src/MainTable.d.ts +4 -1
- package/es/data-table/src/MainTable.js +6 -4
- package/es/data-table/src/TableParts/Body.d.ts +68 -142
- package/es/data-table/src/TableParts/Body.js +27 -7
- package/es/data-table/src/TableParts/Cell.d.ts +8 -2828
- package/es/data-table/src/TableParts/Cell.js +64 -6
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/TableParts/Header.d.ts +60 -138
- package/es/data-table/src/TableParts/Header.js +7 -5
- package/es/data-table/src/interface.d.ts +135 -53
- package/es/data-table/src/styles/index.cssr.js +25 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-expand.d.ts +1 -1
- package/es/data-table/src/use-group-header.js +4 -0
- package/es/data-table/src/use-mask.d.ts +10 -0
- package/es/data-table/src/use-mask.js +58 -0
- package/es/data-table/src/utils.d.ts +4 -0
- package/es/data-table/src/utils.js +4 -0
- package/es/data-table/styles/light.d.ts +39 -15
- package/es/data-table/styles/light.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +14 -125
- package/es/date-picker/src/panel/date.d.ts +6 -129
- package/es/date-picker/src/panel/daterange.d.ts +7 -118
- package/es/date-picker/src/panel/datetime.d.ts +6 -117
- package/es/date-picker/src/panel/datetimerange.d.ts +7 -118
- package/es/date-picker/src/panel/panelMonth.d.ts +41 -299
- package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -123
- package/es/date-picker/src/panel/panelYear.d.ts +41 -299
- package/es/date-picker/src/panel/panelYearContent.d.ts +6 -135
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -114
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +8 -119
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -113
- package/es/date-picker/styles/_common.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/dialog/src/Dialog.d.ts +4 -115
- package/es/dialog/src/Dialog.js +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +5 -5
- package/es/dialog/src/DialogProvider.d.ts +40 -40
- package/es/dialog/src/dialogProps.d.ts +2 -2
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/drawer/src/Drawer.d.ts +21 -119
- package/es/drawer/src/Drawer.js +4 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +12 -114
- package/es/drawer/src/DrawerBodyWrapper.js +6 -0
- package/es/drawer/src/DrawerContent.d.ts +1 -112
- package/es/drawer/src/styles/index.cssr.js +3 -2
- package/es/drawer/styles/_common.js +2 -2
- package/es/dropdown/src/Dropdown.d.ts +31 -142
- package/es/dropdown/src/DropdownGroup.d.ts +3 -2
- package/es/dropdown/src/DropdownMenu.d.ts +3 -2
- package/es/dropdown/src/DropdownOption.d.ts +4 -3
- package/es/dropdown/src/DropdownRenderOption.d.ts +3 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -114
- package/es/dynamic-input/src/InputPreset.d.ts +1 -112
- package/es/dynamic-input/src/PairPreset.d.ts +1 -112
- package/es/dynamic-tags/src/DynamicTags.d.ts +14 -125
- package/es/ellipsis/src/Ellipsis.d.ts +4 -115
- package/es/ellipsis/src/PerformantEllipsis.d.ts +2 -2
- package/es/empty/src/Empty.d.ts +109 -48
- package/es/empty/src/Empty.js +27 -9
- package/es/empty/src/styles/index.cssr.js +38 -11
- package/es/empty/styles/light.d.ts +11 -5
- package/es/empty/styles/light.js +17 -11
- package/es/equation/src/Equation.d.ts +4 -3
- package/es/flex/src/Flex.d.ts +13 -12
- package/es/form/src/Form.d.ts +4 -4
- package/es/form/src/Form.js +2 -2
- package/es/form/src/FormItem.d.ts +23 -10
- package/es/form/src/FormItem.js +20 -7
- package/es/form/src/FormItemCol.d.ts +22 -9
- package/es/form/src/FormItemGridItem.d.ts +24 -11
- package/es/form/src/FormItemRow.d.ts +21 -8
- package/es/form/src/utils.d.ts +3 -2
- package/es/form/src/utils.js +16 -0
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/grid/src/Grid.d.ts +18 -18
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/icon/src/Icon.d.ts +3 -3
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/image/src/Image.d.ts +5 -5
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.d.ts +1 -1
- package/es/input/src/Input.d.ts +79 -155
- package/es/input/src/Input.js +54 -17
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/use-clipboard.d.ts +9 -0
- package/es/input/src/use-clipboard.js +47 -0
- package/es/input-number/src/InputNumber.d.ts +14 -125
- package/es/layout/src/Layout.d.ts +4 -226
- package/es/layout/src/LayoutContent.d.ts +2 -113
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +2 -2
- package/es/layout/src/LayoutHeader.js +5 -1
- package/es/layout/src/LayoutSider.d.ts +10 -121
- package/es/layout/src/LayoutSider.js +3 -3
- package/es/layout/src/ToggleSidebarButton.d.ts +15 -0
- package/es/layout/src/ToggleSidebarButton.js +23 -0
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/src/styles/layout-header.cssr.js +4 -1
- package/es/layout/src/styles/layout-sider.cssr.js +64 -6
- package/es/layout/src/utils/resolveTriggerComponent.d.ts +51 -0
- package/es/layout/src/utils/resolveTriggerComponent.js +13 -0
- package/es/legacy-transfer/src/Transfer.d.ts +112 -163
- package/es/legacy-transfer/src/TransferFilter.d.ts +12 -117
- package/es/legacy-transfer/src/TransferList.d.ts +12 -117
- package/es/legacy-transfer/src/TransferListItem.d.ts +13 -118
- package/es/legacy-transfer/styles/light.d.ts +11 -5
- package/es/list/src/List.d.ts +6 -6
- package/es/list/src/ListItem.d.ts +5 -5
- package/es/loading-bar/src/LoadingBar.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.js +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +9 -9
- package/es/locales/common/arDZ.js +9 -2
- package/es/locales/common/deDE.js +9 -2
- package/es/locales/common/enGB.js +9 -2
- package/es/locales/common/enUS.d.ts +8 -1
- package/es/locales/common/enUS.js +9 -2
- package/es/locales/common/eo.js +9 -2
- package/es/locales/common/esAR.js +9 -2
- package/es/locales/common/faIR.js +9 -2
- package/es/locales/common/frFR.js +9 -2
- package/es/locales/common/idID.js +9 -2
- package/es/locales/common/itIT.js +9 -2
- package/es/locales/common/jaJP.js +9 -2
- package/es/locales/common/koKR.js +9 -2
- package/es/locales/common/nbNO.js +9 -2
- package/es/locales/common/nlNL.js +9 -2
- package/es/locales/common/plPL.js +9 -2
- package/es/locales/common/ptBR.js +9 -2
- package/es/locales/common/ruRU.js +9 -2
- package/es/locales/common/skSK.js +9 -2
- package/es/locales/common/svSE.js +9 -2
- package/es/locales/common/thTH.js +9 -2
- package/es/locales/common/trTR.js +9 -2
- package/es/locales/common/ukUA.js +9 -2
- package/es/locales/common/viVN.js +9 -2
- package/es/locales/common/zhCN.js +9 -2
- package/es/locales/common/zhTW.js +9 -2
- package/es/log/src/Log.d.ts +8 -120
- package/es/mention/src/Mention.d.ts +140 -185
- package/es/mention/src/utils.js +4 -4
- package/es/mention/styles/light.d.ts +11 -5
- package/es/menu/src/Menu.d.ts +16 -127
- package/es/menu/src/MenuOption.d.ts +2 -113
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +2 -113
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/MessageEnvironment.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +5 -5
- package/es/modal/src/BodyWrapper.d.ts +8 -119
- package/es/modal/src/Modal.d.ts +17 -17
- package/es/modal/src/presetProps.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +5 -5
- package/es/notification/src/NotificationContainer.d.ts +1 -112
- package/es/notification/src/NotificationEnvironment.d.ts +4 -4
- package/es/notification/src/NotificationProvider.d.ts +17 -17
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +263 -242
- package/es/pagination/styles/light.d.ts +22 -10
- package/es/popconfirm/src/Popconfirm.d.ts +29 -140
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +30 -30
- package/es/popover/src/PopoverBody.d.ts +19 -19
- package/es/popselect/src/Popselect.d.ts +195 -240
- package/es/popselect/src/PopselectPanel.d.ts +26 -125
- package/es/popselect/styles/light.d.ts +11 -5
- package/es/preset.d.ts +1 -1
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +2 -2
- package/es/progress/src/Progress.d.ts +6 -6
- package/es/radio/src/Radio.d.ts +10 -10
- package/es/radio/src/RadioButton.d.ts +6 -6
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/result/src/Result.d.ts +4 -4
- package/es/select/src/Select.d.ts +141 -186
- package/es/select/styles/light.d.ts +11 -5
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +9 -9
- package/es/space/src/Space.d.ts +5 -5
- package/es/spin/src/Spin.d.ts +8 -8
- package/es/steps/src/Step.js +1 -2
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.d.ts +11 -11
- package/es/table/src/Table.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +10 -22
- package/es/tabs/src/TabPane.d.ts +9 -21
- package/es/tabs/src/Tabs.d.ts +29 -30
- package/es/tag/src/Tag.d.ts +11 -11
- package/es/tag/src/common-props.d.ts +2 -2
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/time/src/Time.d.ts +2 -2
- package/es/time-picker/src/Panel.d.ts +3 -114
- package/es/time-picker/src/PanelCol.d.ts +4 -4
- package/es/time-picker/src/TimePicker.d.ts +17 -128
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/toggle-button/src/ToggleButton.d.ts +12 -12
- package/es/tooltip/src/Tooltip.d.ts +25 -136
- package/es/transfer/src/Transfer.d.ts +112 -163
- package/es/transfer/src/TransferFilter.d.ts +12 -117
- package/es/transfer/src/TransferList.d.ts +12 -117
- package/es/transfer/src/TransferListItem.d.ts +13 -118
- package/es/transfer/styles/light.d.ts +11 -5
- package/es/tree/src/MotionWrapper.d.ts +2 -2
- package/es/tree/src/Tree.d.ts +148 -199
- package/es/tree/src/TreeNodeCheckbox.d.ts +13 -118
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +3 -3
- package/es/tree/styles/light.d.ts +11 -5
- package/es/tree-select/src/TreeSelect.d.ts +269 -260
- package/es/tree-select/styles/light.d.ts +22 -10
- package/es/typography/src/create-header.d.ts +5 -5
- package/es/typography/src/headers.d.ts +18 -18
- package/es/typography/src/p.d.ts +3 -3
- package/es/typography/src/text.d.ts +6 -6
- package/es/upload/src/Upload.d.ts +137 -137
- package/es/upload/src/Upload.js +60 -188
- package/es/upload/src/UploadFile.d.ts +17 -115
- package/es/upload/src/UploadFile.js +57 -54
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/UploadProgress.d.ts +9 -114
- package/es/upload/src/UploadTrigger.js +20 -7
- package/es/upload/src/interface.d.ts +42 -0
- package/es/upload/src/styles/index.cssr.js +159 -34
- package/es/upload/src/useUpload.d.ts +2 -0
- package/es/upload/src/useUpload.js +163 -0
- package/es/upload/src/useUploadActionsRender.d.ts +26 -0
- package/es/upload/src/useUploadActionsRender.js +85 -0
- package/es/upload/src/useUploadInternals.d.ts +25 -0
- package/es/upload/src/useUploadInternals.js +37 -0
- package/es/upload/src/utils.d.ts +2 -1
- package/es/upload/src/utils.js +5 -0
- package/es/upload/styles/light.d.ts +12 -0
- package/es/upload/styles/light.js +8 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +6 -6
- package/lib/__mocks__/vueuse-core.d.ts +5 -0
- package/lib/__mocks__/vueuse-core.js +9 -0
- package/lib/_internal/checkbox/src/use-checkbox.d.ts +4 -4
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/lib/_internal/icons/CheckmarkCircle.d.ts +2 -0
- package/lib/_internal/icons/CheckmarkCircle.js +11 -0
- package/lib/_internal/icons/ContentCopy.d.ts +2 -0
- package/lib/_internal/icons/ContentCopy.js +10 -0
- package/lib/_internal/icons/DismissCircle.d.ts +2 -0
- package/lib/_internal/icons/DismissCircle.js +11 -0
- package/lib/_internal/icons/Edit.d.ts +2 -0
- package/lib/_internal/icons/Edit.js +11 -0
- package/lib/_internal/icons/FileHeart.d.ts +2 -0
- package/lib/_internal/icons/FileHeart.js +10 -0
- package/lib/_internal/icons/SiderUnionBorder.d.ts +2 -0
- package/lib/_internal/icons/SiderUnionBorder.js +10 -0
- package/lib/_internal/icons/index.d.ts +6 -0
- package/lib/_internal/icons/index.js +14 -1
- package/lib/_internal/icons/replaceable.js +1 -2
- package/lib/_internal/loading/src/Loading.d.ts +2 -2
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/radio/src/use-radio.d.ts +2 -2
- package/lib/_internal/radio/src/use-radio.js +2 -2
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +83 -152
- package/lib/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/lib/_internal/select-menu/styles/light.d.ts +11 -5
- package/lib/_internal/selection/src/Selection.d.ts +13 -124
- package/lib/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/_mixins/use-config.js +3 -3
- package/lib/_mixins/use-css-vars-class.js +1 -2
- package/lib/_mixins/use-form-item.js +1 -1
- package/lib/_mixins/use-hljs.js +1 -1
- package/lib/_mixins/use-locale.js +1 -1
- package/lib/_mixins/use-rtl.js +1 -2
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_mixins/use-theme.js +1 -2
- package/lib/_resolvers/auto-import/auto-import-resolver.js +1 -2
- package/lib/_styles/transitions/fade-down.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +2 -3
- package/lib/_styles/transitions/fade-in.cssr.js +2 -3
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -3
- package/lib/_styles/transitions/icon-switch.cssr.js +2 -3
- package/lib/_styles/transitions/slide-in-from-bottom.js +1 -2
- package/lib/_styles/transitions/slide-in-from-left.js +1 -2
- package/lib/_styles/transitions/slide-in-from-right.js +1 -2
- package/lib/_styles/transitions/slide-in-from-top.js +1 -2
- package/lib/_utils/color/index.js +3 -4
- package/lib/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/lib/_utils/composable/use-adjusted-to.js +1 -2
- package/lib/_utils/composable/use-collection.js +3 -4
- package/lib/_utils/composable/use-deferred-true.js +1 -2
- package/lib/_utils/composable/use-houdini.js +1 -2
- package/lib/_utils/composable/use-lock-html-scroll.js +2 -2
- package/lib/_utils/composable/use-reactivated.js +1 -2
- package/lib/_utils/composable/use-resize.js +1 -2
- package/lib/_utils/css/color-to-class.js +1 -2
- package/lib/_utils/css/format-length.js +1 -2
- package/lib/_utils/cssr/create-key.js +1 -2
- package/lib/_utils/cssr/index.d.ts +1 -1
- package/lib/_utils/cssr/index.js +4 -4
- package/lib/_utils/debounce/index.d.ts +1 -0
- package/lib/_utils/debounce/index.js +13 -0
- package/lib/_utils/dom/is-document.js +1 -2
- package/lib/_utils/env/is-jsdom.js +1 -2
- package/lib/_utils/event/index.js +2 -3
- package/lib/_utils/inject/index.d.ts +1 -1
- package/lib/_utils/uzum/attribute.js +1 -2
- package/lib/_utils/uzum/prop.js +2 -3
- package/lib/_utils/uzum/warn.js +3 -4
- package/lib/_utils/vue/call.js +1 -2
- package/lib/_utils/vue/create-data-key.js +1 -2
- package/lib/_utils/vue/create-injection-key.js +1 -2
- package/lib/_utils/vue/create-ref-setter.js +1 -2
- package/lib/_utils/vue/flatten.js +1 -2
- package/lib/_utils/vue/get-first-slot-vnode.js +1 -2
- package/lib/_utils/vue/get-slot.js +1 -2
- package/lib/_utils/vue/get-v-node-children.js +1 -2
- package/lib/_utils/vue/is-node-v-show-false.js +1 -2
- package/lib/_utils/vue/keep.js +1 -2
- package/lib/_utils/vue/keysOf.js +1 -2
- package/lib/_utils/vue/merge-handlers.js +1 -2
- package/lib/_utils/vue/omit.js +1 -2
- package/lib/_utils/vue/render.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.js +5 -6
- package/lib/affix/src/Affix.d.ts +4 -4
- package/lib/affix/src/utils.js +2 -3
- package/lib/alert/src/Alert.d.ts +8 -120
- package/lib/anchor/src/AnchorAdapter.d.ts +4 -4
- package/lib/anchor/src/BaseAnchor.d.ts +2 -2
- package/lib/anchor/src/utils.js +1 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +130 -175
- package/lib/auto-complete/src/utils.js +1 -2
- package/lib/auto-complete/styles/light.d.ts +11 -5
- package/lib/auto-complete/styles/light.js +1 -2
- package/lib/avatar/src/Avatar.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +6 -117
- package/lib/back-top/src/BackTop.d.ts +4 -4
- package/lib/badge/src/Badge.d.ts +7 -7
- package/lib/button/src/Button.d.ts +14 -14
- package/lib/calendar/src/Calendar.d.ts +3 -114
- package/lib/card/src/Card.d.ts +19 -130
- package/lib/card-list/index.d.ts +2 -0
- package/lib/card-list/index.js +9 -0
- package/lib/card-list/src/CardList.d.ts +259 -0
- package/lib/card-list/src/CardList.js +75 -0
- package/lib/card-list/src/CardListItem.d.ts +70 -0
- package/lib/card-list/src/CardListItem.js +117 -0
- package/lib/card-list/src/interface.d.ts +12 -0
- package/lib/card-list/src/interface.js +2 -0
- package/lib/card-list/src/styles/index.cssr.d.ts +2 -0
- package/lib/card-list/src/styles/index.cssr.js +106 -0
- package/lib/card-list/styles/dark.d.ts +3 -0
- package/lib/card-list/styles/dark.js +10 -0
- package/lib/card-list/styles/index.d.ts +3 -0
- package/lib/card-list/styles/index.js +10 -0
- package/lib/card-list/styles/light.d.ts +22 -0
- package/lib/card-list/styles/light.js +30 -0
- package/lib/carousel/src/Carousel.d.ts +23 -25
- package/lib/carousel/src/CarouselDots.d.ts +5 -5
- package/lib/carousel/src/utils/duplicatedLogic.js +6 -7
- package/lib/carousel/src/utils/event.js +1 -2
- package/lib/carousel/src/utils/index.js +3 -4
- package/lib/cascader/src/Cascader.d.ts +246 -231
- package/lib/cascader/src/CascaderMenu.d.ts +36 -129
- package/lib/cascader/src/CascaderOption.d.ts +34 -127
- package/lib/cascader/src/CascaderSelectMenu.d.ts +35 -128
- package/lib/cascader/src/CascaderSubmenu.d.ts +34 -127
- package/lib/cascader/src/utils.js +3 -4
- package/lib/cascader/styles/light.d.ts +22 -10
- package/lib/checkbox/src/Checkbox.d.ts +18 -129
- package/lib/checkbox/src/CheckboxGroup.d.ts +14 -14
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +10 -121
- package/lib/collapse/src/CollapseItem.d.ts +3 -3
- package/lib/collapse/src/CollapseItemContent.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/ColorInput.d.ts +2 -2
- package/lib/color-picker/src/ColorInputUnit.d.ts +3 -114
- package/lib/color-picker/src/ColorPicker.d.ts +7 -7
- package/lib/color-picker/src/utils.js +6 -7
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/composables/use-theme-vars.js +1 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +10 -366
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +3 -1
- package/lib/countdown/src/Countdown.d.ts +4 -4
- package/lib/data-table/src/DataTable.d.ts +308 -255
- package/lib/data-table/src/DataTable.js +153 -5
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +59 -137
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +62 -140
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/data-table/src/MainTable.d.ts +4 -1
- package/lib/data-table/src/MainTable.js +6 -4
- package/lib/data-table/src/TableParts/Body.d.ts +68 -142
- package/lib/data-table/src/TableParts/Body.js +27 -7
- package/lib/data-table/src/TableParts/Cell.d.ts +8 -2828
- package/lib/data-table/src/TableParts/Cell.js +65 -7
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/TableParts/Header.d.ts +60 -138
- package/lib/data-table/src/TableParts/Header.js +7 -5
- package/lib/data-table/src/interface.d.ts +135 -53
- package/lib/data-table/src/styles/index.cssr.js +25 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-check.js +1 -2
- package/lib/data-table/src/use-expand.d.ts +1 -1
- package/lib/data-table/src/use-expand.js +1 -2
- package/lib/data-table/src/use-group-header.js +5 -2
- package/lib/data-table/src/use-mask.d.ts +10 -0
- package/lib/data-table/src/use-mask.js +63 -0
- package/lib/data-table/src/use-resizable.js +1 -2
- package/lib/data-table/src/use-scroll.js +1 -2
- package/lib/data-table/src/use-sorter.js +1 -2
- package/lib/data-table/src/use-table-data.js +1 -2
- package/lib/data-table/src/utils.d.ts +4 -0
- package/lib/data-table/src/utils.js +19 -15
- package/lib/data-table/styles/light.d.ts +39 -15
- package/lib/data-table/styles/light.js +4 -1
- package/lib/date-picker/src/DatePicker.d.ts +14 -125
- package/lib/date-picker/src/panel/date.d.ts +6 -129
- package/lib/date-picker/src/panel/daterange.d.ts +7 -118
- package/lib/date-picker/src/panel/datetime.d.ts +6 -117
- package/lib/date-picker/src/panel/datetimerange.d.ts +7 -118
- package/lib/date-picker/src/panel/panelMonth.d.ts +41 -299
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -123
- package/lib/date-picker/src/panel/panelYear.d.ts +41 -299
- package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -135
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -114
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +8 -119
- package/lib/date-picker/src/panel/use-dual-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -113
- package/lib/date-picker/src/panel/use-panel-common.js +2 -2
- package/lib/date-picker/src/utils.js +9 -10
- package/lib/date-picker/src/validation-utils.js +2 -3
- package/lib/date-picker/styles/_common.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/utils.js +2 -2
- package/lib/dialog/src/Dialog.d.ts +4 -115
- package/lib/dialog/src/Dialog.js +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
- package/lib/dialog/src/DialogProvider.d.ts +40 -40
- package/lib/dialog/src/composables.js +2 -3
- package/lib/dialog/src/dialogProps.d.ts +2 -2
- package/lib/discrete/src/discrete.js +1 -2
- package/lib/discrete/src/discreteApp.js +1 -2
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/drawer/src/Drawer.d.ts +21 -119
- package/lib/drawer/src/Drawer.js +4 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +12 -114
- package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
- package/lib/drawer/src/DrawerContent.d.ts +1 -112
- package/lib/drawer/src/styles/index.cssr.js +3 -2
- package/lib/drawer/styles/_common.js +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +31 -142
- package/lib/dropdown/src/DropdownGroup.d.ts +3 -2
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -2
- package/lib/dropdown/src/DropdownOption.d.ts +4 -3
- package/lib/dropdown/src/DropdownRenderOption.d.ts +3 -2
- package/lib/dropdown/src/utils.js +4 -5
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -114
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -112
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -112
- package/lib/dynamic-tags/src/DynamicTags.d.ts +14 -125
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -115
- package/lib/ellipsis/src/Ellipsis.js +3 -3
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +2 -2
- package/lib/empty/src/Empty.d.ts +109 -48
- package/lib/empty/src/Empty.js +25 -7
- package/lib/empty/src/styles/index.cssr.js +37 -10
- package/lib/empty/styles/light.d.ts +11 -5
- package/lib/empty/styles/light.js +17 -11
- package/lib/equation/src/Equation.d.ts +4 -3
- package/lib/flex/src/Flex.d.ts +13 -12
- package/lib/form/src/Form.d.ts +4 -4
- package/lib/form/src/Form.js +2 -2
- package/lib/form/src/FormItem.d.ts +23 -10
- package/lib/form/src/FormItem.js +19 -6
- package/lib/form/src/FormItemCol.d.ts +22 -9
- package/lib/form/src/FormItemGridItem.d.ts +24 -11
- package/lib/form/src/FormItemRow.d.ts +21 -8
- package/lib/form/src/utils.d.ts +3 -2
- package/lib/form/src/utils.js +20 -4
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/grid/src/Grid.d.ts +18 -18
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/icon/src/Icon.d.ts +3 -3
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/image/src/Image.d.ts +5 -5
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.d.ts +1 -1
- package/lib/input/src/Input.d.ts +79 -155
- package/lib/input/src/Input.js +54 -17
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/use-clipboard.d.ts +9 -0
- package/lib/input/src/use-clipboard.js +50 -0
- package/lib/input/src/utils.js +3 -4
- package/lib/input-number/src/InputNumber.d.ts +14 -125
- package/lib/input-number/src/utils.js +5 -6
- package/lib/layout/src/Layout.d.ts +4 -226
- package/lib/layout/src/Layout.js +2 -2
- package/lib/layout/src/LayoutContent.d.ts +2 -113
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +2 -2
- package/lib/layout/src/LayoutHeader.js +5 -1
- package/lib/layout/src/LayoutSider.d.ts +10 -121
- package/lib/layout/src/LayoutSider.js +3 -3
- package/lib/layout/src/ToggleSidebarButton.d.ts +15 -0
- package/lib/layout/src/ToggleSidebarButton.js +25 -0
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/src/styles/layout-header.cssr.js +3 -0
- package/lib/layout/src/styles/layout-sider.cssr.js +64 -6
- package/lib/layout/src/utils/resolveTriggerComponent.d.ts +51 -0
- package/lib/layout/src/utils/resolveTriggerComponent.js +19 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +112 -163
- package/lib/legacy-transfer/src/TransferFilter.d.ts +12 -117
- package/lib/legacy-transfer/src/TransferList.d.ts +12 -117
- package/lib/legacy-transfer/src/TransferListItem.d.ts +13 -118
- package/lib/legacy-transfer/src/use-transfer-data.js +1 -2
- package/lib/legacy-transfer/styles/light.d.ts +11 -5
- package/lib/list/src/List.d.ts +6 -6
- package/lib/list/src/ListItem.d.ts +5 -5
- package/lib/loading-bar/src/LoadingBar.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.js +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +9 -9
- package/lib/loading-bar/src/use-loading-bar.js +1 -2
- package/lib/locales/common/arDZ.js +9 -2
- package/lib/locales/common/deDE.js +9 -2
- package/lib/locales/common/enGB.js +9 -2
- package/lib/locales/common/enUS.d.ts +8 -1
- package/lib/locales/common/enUS.js +9 -2
- package/lib/locales/common/eo.js +9 -2
- package/lib/locales/common/esAR.js +9 -2
- package/lib/locales/common/faIR.js +9 -2
- package/lib/locales/common/frFR.js +9 -2
- package/lib/locales/common/idID.js +9 -2
- package/lib/locales/common/itIT.js +9 -2
- package/lib/locales/common/jaJP.js +9 -2
- package/lib/locales/common/koKR.js +9 -2
- package/lib/locales/common/nbNO.js +9 -2
- package/lib/locales/common/nlNL.js +9 -2
- package/lib/locales/common/plPL.js +9 -2
- package/lib/locales/common/ptBR.js +9 -2
- package/lib/locales/common/ruRU.js +9 -2
- package/lib/locales/common/skSK.js +9 -2
- package/lib/locales/common/svSE.js +9 -2
- package/lib/locales/common/thTH.js +9 -2
- package/lib/locales/common/trTR.js +9 -2
- package/lib/locales/common/ukUA.js +9 -2
- package/lib/locales/common/viVN.js +9 -2
- package/lib/locales/common/zhCN.js +9 -2
- package/lib/locales/common/zhTW.js +9 -2
- package/lib/locales/utils/index.js +1 -2
- package/lib/log/src/Log.d.ts +8 -120
- package/lib/mention/src/Mention.d.ts +140 -185
- package/lib/mention/src/utils.js +7 -8
- package/lib/mention/styles/light.d.ts +11 -5
- package/lib/menu/src/Menu.d.ts +16 -127
- package/lib/menu/src/MenuOption.d.ts +2 -113
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +2 -113
- package/lib/menu/src/use-menu-child.js +1 -2
- package/lib/menu/src/useCheckDeprecated.js +1 -2
- package/lib/menu/src/utils.js +3 -4
- package/lib/menu/styles/light.js +2 -2
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageEnvironment.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +5 -5
- package/lib/message/src/use-message.js +1 -2
- package/lib/modal/src/BodyWrapper.d.ts +8 -119
- package/lib/modal/src/Modal.d.ts +17 -17
- package/lib/modal/src/presetProps.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +5 -5
- package/lib/notification/src/NotificationContainer.d.ts +1 -112
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
- package/lib/notification/src/NotificationProvider.d.ts +17 -17
- package/lib/notification/src/use-notification.js +1 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/number-animation/src/utils.js +1 -2
- package/lib/page-header/styles/light.js +2 -2
- package/lib/pagination/src/Pagination.d.ts +263 -242
- package/lib/pagination/src/utils.js +1 -2
- package/lib/pagination/styles/light.d.ts +22 -10
- package/lib/popconfirm/src/Popconfirm.d.ts +29 -140
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +30 -30
- package/lib/popover/src/PopoverBody.d.ts +19 -19
- package/lib/popselect/src/Popselect.d.ts +195 -240
- package/lib/popselect/src/PopselectPanel.d.ts +26 -125
- package/lib/popselect/styles/light.d.ts +11 -5
- package/lib/popselect/styles/light.js +1 -2
- package/lib/preset.d.ts +1 -1
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +2 -2
- package/lib/progress/src/Progress.d.ts +6 -6
- package/lib/radio/src/Radio.d.ts +10 -10
- package/lib/radio/src/RadioButton.d.ts +6 -6
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/result/src/Result.d.ts +4 -4
- package/lib/select/src/Select.d.ts +141 -186
- package/lib/select/src/utils.js +6 -7
- package/lib/select/styles/light.d.ts +11 -5
- package/lib/select/styles/light.js +1 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +9 -9
- package/lib/slider/src/utils.js +2 -3
- package/lib/space/src/Space.d.ts +5 -5
- package/lib/spin/src/Spin.d.ts +8 -8
- package/lib/steps/src/Step.js +3 -4
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +153 -151
- package/lib/switch/src/Switch.d.ts +11 -11
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +10 -22
- package/lib/tabs/src/TabPane.d.ts +9 -21
- package/lib/tabs/src/Tabs.d.ts +29 -30
- package/lib/tag/src/Tag.d.ts +11 -11
- package/lib/tag/src/common-props.d.ts +2 -2
- package/lib/themes/dark.js +148 -146
- package/lib/themes/light.js +148 -146
- package/lib/themes/utils.js +1 -2
- package/lib/time/src/Time.d.ts +2 -2
- package/lib/time-picker/src/Panel.d.ts +3 -114
- package/lib/time-picker/src/PanelCol.d.ts +4 -4
- package/lib/time-picker/src/TimePicker.d.ts +17 -128
- package/lib/time-picker/src/utils.js +6 -6
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/toggle-button/src/ToggleButton.d.ts +12 -12
- package/lib/tooltip/src/Tooltip.d.ts +25 -136
- package/lib/transfer/src/Transfer.d.ts +112 -163
- package/lib/transfer/src/TransferFilter.d.ts +12 -117
- package/lib/transfer/src/TransferList.d.ts +12 -117
- package/lib/transfer/src/TransferListItem.d.ts +13 -118
- package/lib/transfer/src/use-transfer-data.js +1 -2
- package/lib/transfer/styles/light.d.ts +11 -5
- package/lib/tree/src/MotionWrapper.d.ts +2 -2
- package/lib/tree/src/Tree.d.ts +148 -199
- package/lib/tree/src/Tree.js +2 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +13 -118
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +3 -3
- package/lib/tree/src/dnd.js +2 -3
- package/lib/tree/src/keyboard.js +1 -2
- package/lib/tree/src/utils.js +5 -5
- package/lib/tree/styles/light.d.ts +11 -5
- package/lib/tree-select/src/TreeSelect.d.ts +269 -260
- package/lib/tree-select/src/utils.js +2 -3
- package/lib/tree-select/styles/light.d.ts +22 -10
- package/lib/typography/src/create-header.d.ts +5 -5
- package/lib/typography/src/headers.d.ts +18 -18
- package/lib/typography/src/p.d.ts +3 -3
- package/lib/typography/src/text.d.ts +6 -6
- package/lib/upload/src/Upload.d.ts +137 -137
- package/lib/upload/src/Upload.js +58 -209
- package/lib/upload/src/UploadFile.d.ts +17 -115
- package/lib/upload/src/UploadFile.js +55 -55
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/UploadProgress.d.ts +9 -114
- package/lib/upload/src/UploadTrigger.js +19 -6
- package/lib/upload/src/interface.d.ts +42 -0
- package/lib/upload/src/styles/index.cssr.js +159 -34
- package/lib/upload/src/useUpload.d.ts +2 -0
- package/lib/upload/src/useUpload.js +166 -0
- package/lib/upload/src/useUploadActionsRender.d.ts +26 -0
- package/lib/upload/src/useUploadActionsRender.js +88 -0
- package/lib/upload/src/useUploadInternals.d.ts +25 -0
- package/lib/upload/src/useUploadInternals.js +43 -0
- package/lib/upload/src/utils.d.ts +2 -1
- package/lib/upload/src/utils.js +13 -7
- package/lib/upload/styles/light.d.ts +12 -0
- package/lib/upload/styles/light.js +8 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +6 -6
- package/package.json +53 -50
- package/volar.d.ts +2 -1
- package/web-types.json +259 -9
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { createSettledFileInfo } from './utils';
|
|
2
|
+
export function useUpload() {
|
|
3
|
+
function createXhrHandlers(inst, file, xhr) {
|
|
4
|
+
const { doChange, xhrMap } = inst;
|
|
5
|
+
let percentage = 0;
|
|
6
|
+
function handleXHRError(e) {
|
|
7
|
+
var _a;
|
|
8
|
+
let fileAfterChange = Object.assign({}, file, {
|
|
9
|
+
status: 'error',
|
|
10
|
+
percentage
|
|
11
|
+
});
|
|
12
|
+
xhrMap.delete(file.id);
|
|
13
|
+
fileAfterChange = createSettledFileInfo(((_a = inst.onError) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange, event: e })) || fileAfterChange);
|
|
14
|
+
doChange(fileAfterChange, e);
|
|
15
|
+
}
|
|
16
|
+
function handleXHRLoad(e) {
|
|
17
|
+
var _a;
|
|
18
|
+
if (inst.isErrorState) {
|
|
19
|
+
if (inst.isErrorState(xhr)) {
|
|
20
|
+
handleXHRError(e);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
if (xhr.status < 200 || xhr.status >= 300) {
|
|
26
|
+
handleXHRError(e);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
let fileAfterChange = Object.assign({}, file, {
|
|
31
|
+
status: 'finished',
|
|
32
|
+
percentage
|
|
33
|
+
});
|
|
34
|
+
xhrMap.delete(file.id);
|
|
35
|
+
fileAfterChange = createSettledFileInfo(((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange, event: e })) || fileAfterChange);
|
|
36
|
+
doChange(fileAfterChange, e);
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
handleXHRLoad,
|
|
40
|
+
handleXHRError,
|
|
41
|
+
handleXHRAbort(e) {
|
|
42
|
+
const fileAfterChange = Object.assign({}, file, {
|
|
43
|
+
status: 'removed',
|
|
44
|
+
file: null,
|
|
45
|
+
percentage
|
|
46
|
+
});
|
|
47
|
+
xhrMap.delete(file.id);
|
|
48
|
+
doChange(fileAfterChange, e);
|
|
49
|
+
},
|
|
50
|
+
handleXHRProgress(e) {
|
|
51
|
+
const fileAfterChange = Object.assign({}, file, {
|
|
52
|
+
status: 'uploading'
|
|
53
|
+
});
|
|
54
|
+
if (e.lengthComputable) {
|
|
55
|
+
const progress = Math.ceil((e.loaded / e.total) * 100);
|
|
56
|
+
fileAfterChange.percentage = progress;
|
|
57
|
+
percentage = progress;
|
|
58
|
+
}
|
|
59
|
+
doChange(fileAfterChange, e);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function customSubmitImpl(options) {
|
|
64
|
+
const { inst, file, data, headers, withCredentials, action, customRequest } = options;
|
|
65
|
+
const { doChange } = options.inst;
|
|
66
|
+
let percentage = 0;
|
|
67
|
+
customRequest({
|
|
68
|
+
file,
|
|
69
|
+
data,
|
|
70
|
+
headers,
|
|
71
|
+
withCredentials,
|
|
72
|
+
action,
|
|
73
|
+
onProgress(event) {
|
|
74
|
+
const fileAfterChange = Object.assign({}, file, {
|
|
75
|
+
status: 'uploading'
|
|
76
|
+
});
|
|
77
|
+
const progress = event.percent;
|
|
78
|
+
fileAfterChange.percentage = progress;
|
|
79
|
+
percentage = progress;
|
|
80
|
+
doChange(fileAfterChange);
|
|
81
|
+
},
|
|
82
|
+
onFinish() {
|
|
83
|
+
var _a;
|
|
84
|
+
let fileAfterChange = Object.assign({}, file, {
|
|
85
|
+
status: 'finished',
|
|
86
|
+
percentage
|
|
87
|
+
});
|
|
88
|
+
fileAfterChange = createSettledFileInfo(((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange })) || fileAfterChange);
|
|
89
|
+
doChange(fileAfterChange);
|
|
90
|
+
},
|
|
91
|
+
onError() {
|
|
92
|
+
var _a;
|
|
93
|
+
let fileAfterChange = Object.assign({}, file, {
|
|
94
|
+
status: 'error',
|
|
95
|
+
percentage
|
|
96
|
+
});
|
|
97
|
+
fileAfterChange = createSettledFileInfo(((_a = inst.onError) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange })) || fileAfterChange);
|
|
98
|
+
doChange(fileAfterChange);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function registerHandler(inst, file, request) {
|
|
103
|
+
const handlers = createXhrHandlers(inst, file, request);
|
|
104
|
+
request.onabort = handlers.handleXHRAbort;
|
|
105
|
+
request.onerror = handlers.handleXHRError;
|
|
106
|
+
request.onload = handlers.handleXHRLoad;
|
|
107
|
+
if (request.upload) {
|
|
108
|
+
request.upload.onprogress = handlers.handleXHRProgress;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function unwrapFunctionValue(data, file) {
|
|
112
|
+
if (typeof data === 'function') {
|
|
113
|
+
return data({ file });
|
|
114
|
+
}
|
|
115
|
+
if (data)
|
|
116
|
+
return data;
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
function setHeaders(request, headers, file) {
|
|
120
|
+
const headersObject = unwrapFunctionValue(headers, file);
|
|
121
|
+
if (!headersObject)
|
|
122
|
+
return;
|
|
123
|
+
Object.keys(headersObject).forEach((key) => {
|
|
124
|
+
request.setRequestHeader(key, headersObject[key]);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function appendData(formData, data, file) {
|
|
128
|
+
const dataObject = unwrapFunctionValue(data, file);
|
|
129
|
+
if (!dataObject)
|
|
130
|
+
return;
|
|
131
|
+
Object.keys(dataObject).forEach((key) => {
|
|
132
|
+
formData.append(key, dataObject[key]);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function submitImpl(inst, fieldName, file, { method, action, withCredentials, responseType, headers, data }) {
|
|
136
|
+
const request = new XMLHttpRequest();
|
|
137
|
+
request.responseType = responseType;
|
|
138
|
+
inst.xhrMap.set(file.id, request);
|
|
139
|
+
request.withCredentials = withCredentials;
|
|
140
|
+
const formData = new FormData();
|
|
141
|
+
appendData(formData, data, file);
|
|
142
|
+
formData.append(fieldName, file.file);
|
|
143
|
+
registerHandler(inst, file, request);
|
|
144
|
+
if (action !== undefined) {
|
|
145
|
+
request.open(method.toUpperCase(), action);
|
|
146
|
+
setHeaders(request, headers, file);
|
|
147
|
+
request.send(formData);
|
|
148
|
+
const fileAfterChange = Object.assign({}, file, {
|
|
149
|
+
status: 'uploading'
|
|
150
|
+
});
|
|
151
|
+
inst.doChange(fileAfterChange);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return {
|
|
155
|
+
createXhrHandlers,
|
|
156
|
+
customSubmitImpl,
|
|
157
|
+
registerHandler,
|
|
158
|
+
unwrapFunctionValue,
|
|
159
|
+
setHeaders,
|
|
160
|
+
appendData,
|
|
161
|
+
submitImpl
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { FileInfo, ListType } from './interface';
|
|
3
|
+
interface Options {
|
|
4
|
+
clsPrefix: string;
|
|
5
|
+
listType: ListType;
|
|
6
|
+
file: Required<FileInfo>;
|
|
7
|
+
showPreviewButton: string | boolean | null;
|
|
8
|
+
showRemoveButton: boolean;
|
|
9
|
+
showCancelButton: boolean;
|
|
10
|
+
showRetryButton: boolean;
|
|
11
|
+
showDownloadButton: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
buttonType: string | undefined;
|
|
14
|
+
mergedTheme: any;
|
|
15
|
+
buttonThemeOverrides: any;
|
|
16
|
+
handlePreviewClick: () => void;
|
|
17
|
+
handleRemoveOrCancelClick: (e: MouseEvent) => void;
|
|
18
|
+
handleRetryClick: () => void;
|
|
19
|
+
handleDownloadClick: (e: MouseEvent) => void;
|
|
20
|
+
capitalizeFirstLetter: (text: string) => string;
|
|
21
|
+
}
|
|
22
|
+
export declare function useUploadActionsRender(opts: Options): {
|
|
23
|
+
actionsNode: VNode;
|
|
24
|
+
icon: VNode;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { h } from 'vue';
|
|
2
|
+
import { UButton } from '../../button';
|
|
3
|
+
import { UBaseIcon, UIconSwitchTransition } from '../../_internal';
|
|
4
|
+
import { CancelIcon, EyeIcon, RetryIcon, TrashIcon, DownloadIcon } from '../../_internal/icons';
|
|
5
|
+
export function useUploadActionsRender(opts) {
|
|
6
|
+
const { clsPrefix, listType, file, showPreviewButton, showRemoveButton, showCancelButton, showRetryButton, showDownloadButton, disabled, buttonType, mergedTheme, buttonThemeOverrides, handlePreviewClick, handleRemoveOrCancelClick, handleRetryClick, handleDownloadClick, capitalizeFirstLetter } = opts;
|
|
7
|
+
const isImageType = ['image', 'image-card'].includes(listType);
|
|
8
|
+
const fileExt = file.name.split('.')[1] || '';
|
|
9
|
+
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
10
|
+
const icon = h('div', {
|
|
11
|
+
class: [
|
|
12
|
+
`${clsPrefix}-upload-file-info__thumbnail`,
|
|
13
|
+
`${clsPrefix}-upload-file-info__thumbnail--icon`
|
|
14
|
+
]
|
|
15
|
+
}, [
|
|
16
|
+
h('span', { class: `${clsPrefix}-upload-file-info__preview` }, [
|
|
17
|
+
h('div', { class: `${clsPrefix}-upload-file-info__preview--ext` }, capitalizedExt),
|
|
18
|
+
h('div', {
|
|
19
|
+
class: `${clsPrefix}-upload-file-info__preview--content`
|
|
20
|
+
})
|
|
21
|
+
])
|
|
22
|
+
]);
|
|
23
|
+
const actionsNode = h('div', {
|
|
24
|
+
class: [
|
|
25
|
+
`${clsPrefix}-upload-file-info__action`,
|
|
26
|
+
`${clsPrefix}-upload-file--${isImageType ? 'image-card' : 'text'}-type`
|
|
27
|
+
]
|
|
28
|
+
}, [
|
|
29
|
+
showPreviewButton &&
|
|
30
|
+
h(UButton, {
|
|
31
|
+
key: 'preview',
|
|
32
|
+
quaternary: true,
|
|
33
|
+
type: buttonType,
|
|
34
|
+
onClick: handlePreviewClick,
|
|
35
|
+
theme: mergedTheme.peers.Button,
|
|
36
|
+
themeOverrides: mergedTheme.peerOverrides.Button,
|
|
37
|
+
builtinThemeOverrides: buttonThemeOverrides
|
|
38
|
+
}, {
|
|
39
|
+
icon: () => h(UBaseIcon, { clsPrefix }, { default: () => h(EyeIcon) })
|
|
40
|
+
}),
|
|
41
|
+
(showRemoveButton || showCancelButton) &&
|
|
42
|
+
!disabled &&
|
|
43
|
+
h(UButton, {
|
|
44
|
+
key: 'cancelOrTrash',
|
|
45
|
+
quaternary: true,
|
|
46
|
+
type: buttonType,
|
|
47
|
+
onClick: handleRemoveOrCancelClick,
|
|
48
|
+
theme: mergedTheme.peers.Button,
|
|
49
|
+
themeOverrides: mergedTheme.peerOverrides.Button,
|
|
50
|
+
builtinThemeOverrides: buttonThemeOverrides
|
|
51
|
+
}, {
|
|
52
|
+
icon: () => h(UIconSwitchTransition, {}, {
|
|
53
|
+
default: () => showRemoveButton
|
|
54
|
+
? h(UBaseIcon, { clsPrefix, key: 'trash' }, { default: () => h(TrashIcon) })
|
|
55
|
+
: h(UBaseIcon, { clsPrefix, key: 'cancel' }, { default: () => h(CancelIcon) })
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
58
|
+
showRetryButton &&
|
|
59
|
+
!disabled &&
|
|
60
|
+
h(UButton, {
|
|
61
|
+
key: 'retry',
|
|
62
|
+
quaternary: true,
|
|
63
|
+
type: buttonType,
|
|
64
|
+
onClick: handleRetryClick,
|
|
65
|
+
theme: mergedTheme.peers.Button,
|
|
66
|
+
themeOverrides: mergedTheme.peerOverrides.Button,
|
|
67
|
+
builtinThemeOverrides: buttonThemeOverrides
|
|
68
|
+
}, {
|
|
69
|
+
icon: () => h(UBaseIcon, { clsPrefix }, { default: () => h(RetryIcon) })
|
|
70
|
+
}),
|
|
71
|
+
showDownloadButton &&
|
|
72
|
+
h(UButton, {
|
|
73
|
+
key: 'download',
|
|
74
|
+
quaternary: true,
|
|
75
|
+
type: buttonType,
|
|
76
|
+
onClick: handleDownloadClick,
|
|
77
|
+
theme: mergedTheme.peers.Button,
|
|
78
|
+
themeOverrides: mergedTheme.peerOverrides.Button,
|
|
79
|
+
builtinThemeOverrides: buttonThemeOverrides
|
|
80
|
+
}, {
|
|
81
|
+
icon: () => h(UBaseIcon, { clsPrefix }, { default: () => h(DownloadIcon) })
|
|
82
|
+
})
|
|
83
|
+
].filter(Boolean));
|
|
84
|
+
return { icon, actionsNode };
|
|
85
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VNode, Slots } from 'vue';
|
|
2
|
+
interface UseUploadInternalsOptions {
|
|
3
|
+
mergedClsPrefix: string;
|
|
4
|
+
accept?: string;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
inputProps?: Record<string, any>;
|
|
7
|
+
directory?: boolean;
|
|
8
|
+
onChange?: (e: Event) => void;
|
|
9
|
+
label?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
vertical?: boolean;
|
|
13
|
+
noIcon?: boolean;
|
|
14
|
+
icon?: any;
|
|
15
|
+
localeRef: {
|
|
16
|
+
title: string;
|
|
17
|
+
subtitle: string;
|
|
18
|
+
};
|
|
19
|
+
slots: Slots;
|
|
20
|
+
}
|
|
21
|
+
export declare function useUploadInternals(options: UseUploadInternalsOptions): {
|
|
22
|
+
inputNode: VNode;
|
|
23
|
+
renderDefaultTrigger: () => VNode[];
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { h, Fragment } from 'vue';
|
|
2
|
+
import { uploadIcon } from './icons';
|
|
3
|
+
import { UBaseIcon } from '../../_internal';
|
|
4
|
+
import UUploadDragger from './UploadDragger';
|
|
5
|
+
export function useUploadInternals(options) {
|
|
6
|
+
const { mergedClsPrefix, accept, multiple, inputProps = {}, directory, onChange, label, title, subtitle, vertical, noIcon, icon, localeRef, slots } = options;
|
|
7
|
+
const inputNode = h('input', Object.assign(Object.assign({}, inputProps), { ref: 'inputElRef', type: 'file', class: `${mergedClsPrefix}-upload-file-input`, accept,
|
|
8
|
+
multiple, directory: directory || undefined, webkitdirectory: directory || undefined, onChange }));
|
|
9
|
+
const renderDefaultTrigger = () => {
|
|
10
|
+
const rootClass = `${mergedClsPrefix}-upload-dragger-inner`;
|
|
11
|
+
return [
|
|
12
|
+
h(Fragment, null,
|
|
13
|
+
label ? (h("p", { class: `${mergedClsPrefix}-upload__label` }, label)) : null,
|
|
14
|
+
h(UUploadDragger, null, {
|
|
15
|
+
default: () => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
return h('div', {
|
|
18
|
+
class: [rootClass, vertical && `${rootClass}--vertical`]
|
|
19
|
+
}, [
|
|
20
|
+
!noIcon &&
|
|
21
|
+
h('div', { class: `${rootClass}__icon` }, h(UBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
22
|
+
default: () => icon || uploadIcon
|
|
23
|
+
})),
|
|
24
|
+
h('div', { class: `${rootClass}__content` }, [
|
|
25
|
+
h('p', { class: `${rootClass}__title` }, title || ((_a = slots.title) === null || _a === void 0 ? void 0 : _a.call(slots)) || localeRef.title),
|
|
26
|
+
h('p', { class: `${rootClass}__subtitle` }, subtitle || ((_b = slots.subtitle) === null || _b === void 0 ? void 0 : _b.call(slots)) || localeRef.subtitle)
|
|
27
|
+
])
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
}))
|
|
31
|
+
];
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
inputNode,
|
|
35
|
+
renderDefaultTrigger
|
|
36
|
+
};
|
|
37
|
+
}
|
package/es/upload/src/utils.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { FileAndEntry, FileInfo, SettledFileInfo, ShouldUseThumbnailUrl } from './interface';
|
|
2
2
|
export declare const isImageFileType: (type: string) => boolean;
|
|
3
|
+
export declare const capitalizeFirstLetter: (str: string) => string;
|
|
3
4
|
export declare const isImageFile: ShouldUseThumbnailUrl;
|
|
4
5
|
export declare function createImageDataUrl(file: File): Promise<string>;
|
|
5
6
|
export declare const environmentSupportFile: false | {
|
|
6
|
-
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag
|
|
7
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
|
|
7
8
|
prototype: File;
|
|
8
9
|
};
|
|
9
10
|
export declare function isFileSystemDirectoryEntry(item: FileSystemEntry | FileSystemFileEntry | FileSystemDirectoryEntry): item is FileSystemDirectoryEntry;
|
package/es/upload/src/utils.js
CHANGED
|
@@ -16,6 +16,11 @@ const getExtname = (url = '') => {
|
|
|
16
16
|
return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [''])[0];
|
|
17
17
|
};
|
|
18
18
|
const imageExtensionRegex = /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i;
|
|
19
|
+
export const capitalizeFirstLetter = (str) => {
|
|
20
|
+
if (!str)
|
|
21
|
+
return str;
|
|
22
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
23
|
+
};
|
|
19
24
|
// Do not need File object
|
|
20
25
|
export const isImageFile = (file) => {
|
|
21
26
|
if (file.type) {
|
|
@@ -21,6 +21,12 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
21
21
|
draggerTitleColor: string;
|
|
22
22
|
draggerTextColor: string;
|
|
23
23
|
labelColor: string;
|
|
24
|
+
widthSmall: string;
|
|
25
|
+
widthMedium: string;
|
|
26
|
+
widthLarge: string;
|
|
27
|
+
containerSecondary: string;
|
|
28
|
+
brandPrimary300: string;
|
|
29
|
+
elementsQuaternary: string;
|
|
24
30
|
};
|
|
25
31
|
export type UploadThemeVars = ReturnType<typeof self>;
|
|
26
32
|
declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
@@ -45,6 +51,12 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
45
51
|
draggerTitleColor: string;
|
|
46
52
|
draggerTextColor: string;
|
|
47
53
|
labelColor: string;
|
|
54
|
+
widthSmall: string;
|
|
55
|
+
widthMedium: string;
|
|
56
|
+
widthLarge: string;
|
|
57
|
+
containerSecondary: string;
|
|
58
|
+
brandPrimary300: string;
|
|
59
|
+
elementsQuaternary: string;
|
|
48
60
|
}, {
|
|
49
61
|
Button: import("../../_mixins").Theme<"Button", {
|
|
50
62
|
heightTiny: string;
|
|
@@ -4,7 +4,7 @@ import { progressLight } from '../../progress/styles';
|
|
|
4
4
|
import { commonLight } from '../../_styles/common';
|
|
5
5
|
import { createTheme } from '../../_mixins';
|
|
6
6
|
export const self = (vars) => {
|
|
7
|
-
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge, elementsQuinary } = vars;
|
|
7
|
+
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge, elementsQuinary, containerSecondary, brandPrimary300 } = vars;
|
|
8
8
|
return {
|
|
9
9
|
baseColor: containerPrimary,
|
|
10
10
|
fontSize: fontBodyMedium,
|
|
@@ -28,7 +28,13 @@ export const self = (vars) => {
|
|
|
28
28
|
draggerIconColor: elementsPrimary,
|
|
29
29
|
draggerTitleColor: textPrimary,
|
|
30
30
|
draggerTextColor: textPrimary,
|
|
31
|
-
labelColor: textPrimary
|
|
31
|
+
labelColor: textPrimary,
|
|
32
|
+
widthSmall: '140px',
|
|
33
|
+
widthMedium: 'auto',
|
|
34
|
+
widthLarge: 'auto',
|
|
35
|
+
containerSecondary,
|
|
36
|
+
brandPrimary300,
|
|
37
|
+
elementsQuaternary
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
40
|
const uploadLight = createTheme({
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.4.0";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.4.0';
|
|
@@ -273,22 +273,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
273
|
fontFamily: string;
|
|
274
274
|
}, unknown>>>;
|
|
275
275
|
}>>, {
|
|
276
|
-
readonly fontSize: number;
|
|
277
|
-
readonly fontStretch: string;
|
|
278
|
-
readonly fontStyle: "normal" | "italic" | "oblique" | `oblique ${number}deg`;
|
|
279
|
-
readonly fontVariant: string;
|
|
280
276
|
readonly fontWeight: number;
|
|
277
|
+
readonly width: number;
|
|
278
|
+
readonly fontSize: number;
|
|
281
279
|
readonly height: number;
|
|
282
280
|
readonly lineHeight: number;
|
|
283
281
|
readonly rotate: number;
|
|
284
|
-
readonly
|
|
282
|
+
readonly fontStretch: string;
|
|
283
|
+
readonly fontStyle: "normal" | "italic" | "oblique" | `oblique ${number}deg`;
|
|
284
|
+
readonly fontVariant: string;
|
|
285
285
|
readonly zIndex: number;
|
|
286
|
-
readonly cross: boolean;
|
|
287
286
|
readonly xGap: number;
|
|
288
287
|
readonly yGap: number;
|
|
289
288
|
readonly selectable: boolean;
|
|
290
289
|
readonly fullscreen: boolean;
|
|
291
290
|
readonly debug: boolean;
|
|
291
|
+
readonly cross: boolean;
|
|
292
292
|
readonly yOffset: number;
|
|
293
293
|
readonly xOffset: number;
|
|
294
294
|
readonly imageOpacity: number;
|
|
@@ -14,11 +14,11 @@ export declare const checkboxGroupInjectionKey: import("vue").InjectionKey<Check
|
|
|
14
14
|
export declare const checkboxBaseProps: {
|
|
15
15
|
size: PropType<"small" | "medium" | "large">;
|
|
16
16
|
checked: {
|
|
17
|
-
type: PropType<
|
|
17
|
+
type: PropType<boolean | string | number | undefined>;
|
|
18
18
|
default: undefined;
|
|
19
19
|
};
|
|
20
20
|
defaultChecked: {
|
|
21
|
-
type: PropType<
|
|
21
|
+
type: PropType<boolean | string | number>;
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
24
|
value: PropType<string | number>;
|
|
@@ -27,11 +27,11 @@ export declare const checkboxBaseProps: {
|
|
|
27
27
|
default: undefined;
|
|
28
28
|
};
|
|
29
29
|
checkedValue: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
33
|
uncheckedValue: {
|
|
34
|
-
type: (
|
|
34
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
37
|
'onUpdate:checked': PropType<MaybeArray<OnUpdateChecked>>;
|
|
@@ -40,10 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
onClick: PropType<(e: MouseEvent) => void>;
|
|
41
41
|
absolute: BooleanConstructor;
|
|
42
42
|
}>>, {
|
|
43
|
+
disabled: boolean;
|
|
43
44
|
round: boolean;
|
|
44
45
|
absolute: boolean;
|
|
45
|
-
disabled: boolean;
|
|
46
|
-
focusable: boolean;
|
|
47
46
|
isButtonTag: boolean;
|
|
47
|
+
focusable: boolean;
|
|
48
48
|
}, {}>;
|
|
49
49
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { type PropType } from 'vue';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
appear: BooleanConstructor;
|
|
4
4
|
group: BooleanConstructor;
|
|
5
|
-
mode: PropType<"
|
|
5
|
+
mode: PropType<"in-out" | "out-in" | "default">;
|
|
6
6
|
onLeave: FunctionConstructor;
|
|
7
7
|
onAfterLeave: FunctionConstructor;
|
|
8
8
|
onAfterEnter: FunctionConstructor;
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
14
|
appear: BooleanConstructor;
|
|
15
15
|
group: BooleanConstructor;
|
|
16
|
-
mode: PropType<"
|
|
16
|
+
mode: PropType<"in-out" | "out-in" | "default">;
|
|
17
17
|
onLeave: FunctionConstructor;
|
|
18
18
|
onAfterLeave: FunctionConstructor;
|
|
19
19
|
onAfterEnter: FunctionConstructor;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
}>>, {
|
|
23
23
|
reverse: boolean;
|
|
24
24
|
width: boolean;
|
|
25
|
-
appear: boolean;
|
|
26
25
|
group: boolean;
|
|
26
|
+
appear: boolean;
|
|
27
27
|
}, {}>;
|
|
28
28
|
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'CheckmarkCircle',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
8
|
+
(0, vue_1.h)("g", { fill: "none" },
|
|
9
|
+
(0, vue_1.h)("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm-1.25 9.94l4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084l-5 5a.75.75 0 0 1-.976.073l-.084-.073l-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073l1.97 1.97l4.47-4.47l-4.47 4.47z", fill: "currentColor" }))));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'ContentCopy',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
(0, vue_1.h)("path", { stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", d: "M5 9C4.06812 9 3.60218 9 3.23463 9.15224C2.74458 9.35523 2.35523 9.74458 2.15224 10.2346C2 10.6022 2 11.0681 2 12V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.0799 22 5.2 22H12C12.9319 22 13.3978 22 13.7654 21.8478C14.2554 21.6448 14.6448 21.2554 14.8478 20.7654C15 20.3978 15 19.9319 15 19M12.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V11.8C22 12.9201 22 13.4802 21.782 13.908C21.5903 14.2843 21.2843 14.5903 20.908 14.782C20.4802 15 19.9201 15 18.8 15H12.2C11.0799 15 10.5198 15 10.092 14.782C9.71569 14.5903 9.40973 14.2843 9.21799 13.908C9 13.4802 9 12.9201 9 11.8V5.2C9 4.0799 9 3.51984 9.21799 3.09202C9.40973 2.71569 9.71569 2.40973 10.092 2.21799C10.5198 2 11.0799 2 12.2 2Z" })));
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'DismissCircle',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
8
|
+
(0, vue_1.h)("g", { fill: "none" },
|
|
9
|
+
(0, vue_1.h)("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm3.446 4.897l.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072z", fill: "currentColor" }))));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'Edit',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
8
|
+
(0, vue_1.h)("g", { fill: "none" },
|
|
9
|
+
(0, vue_1.h)("path", { d: "M21.03 2.97a3.578 3.578 0 0 1 0 5.06L9.062 20a2.25 2.25 0 0 1-.999.58l-5.116 1.395a.75.75 0 0 1-.92-.921l1.395-5.116a2.25 2.25 0 0 1 .58-.999L15.97 2.97a3.578 3.578 0 0 1 5.06 0zM15 6.06L5.062 16a.75.75 0 0 0-.193.333l-1.05 3.85l3.85-1.05A.75.75 0 0 0 8 18.938L17.94 9L15 6.06zm2.03-2.03l-.97.97L19 7.94l.97-.97a2.079 2.079 0 0 0-2.94-2.94z", fill: "currentColor" }))));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'FileHeart',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { width: "27", height: "30", viewBox: "0 0 27 30", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
(0, vue_1.h)("path", { d: "M23.6666 12.3333V8.06663C23.6666 5.82642 23.6666 4.70631 23.2306 3.85066C22.8471 3.09802 22.2352 2.48609 21.4825 2.1026C20.6269 1.66663 19.5068 1.66663 17.2666 1.66663H8.73325C6.49304 1.66663 5.37294 1.66663 4.51729 2.1026C3.76464 2.48609 3.15272 3.09802 2.76923 3.85066C2.33325 4.70631 2.33325 5.82642 2.33325 8.06663V21.9333C2.33325 24.1735 2.33325 25.2936 2.76923 26.1493C3.15272 26.9019 3.76464 27.5138 4.51729 27.8973C5.37294 28.3333 6.49304 28.3333 8.73325 28.3333H12.9999M13.6666 13.6666H7.66659M8.99992 19H7.66659M18.3333 8.33329H7.66659M19.6629 18.7741C18.5966 17.5621 16.8185 17.2361 15.4824 18.3459C14.1464 19.4557 13.9583 21.3113 15.0075 22.6239C16.0567 23.9365 19.6629 27 19.6629 27C19.6629 27 23.2692 23.9365 24.3184 22.6239C25.3676 21.3113 25.2024 19.444 23.8434 18.3459C22.4845 17.2477 20.7293 17.5621 19.6629 18.7741Z", stroke: "currentColor", "stroke-width": "3.2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'SiderUnionBorder',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { viewBox: "0 0 35 82", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
(0, vue_1.h)("path", { d: "M15 0L0 0V82H15V72.0682C15 67.6499 18.7463 64.209 22.7412 62.3215C29.9427 58.9189 35 50.9123 35 41.5775C35 32.2426 29.9427 24.236 22.7412 20.8334C18.7463 18.946 15 15.505 15 11.0867V0Z", fill: "currentColor" })));
|
|
9
|
+
}
|
|
10
|
+
});
|