@uzum-tech/ui 1.3.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +83297 -64805
- 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/ContentCopy.d.ts +2 -0
- package/es/_internal/icons/ContentCopy.js +8 -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 +3 -0
- package/es/_internal/icons/index.js +3 -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 +3 -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 +109 -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/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/ContentCopy.d.ts +2 -0
- package/lib/_internal/icons/ContentCopy.js +10 -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 +3 -0
- package/lib/_internal/icons/index.js +8 -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 +3 -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 +114 -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/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
package/lib/upload/src/Upload.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -47,163 +24,9 @@ const utils_1 = require("./utils");
|
|
|
47
24
|
const UploadTrigger_1 = __importDefault(require("./UploadTrigger"));
|
|
48
25
|
const UploadFileList_1 = __importDefault(require("./UploadFileList"));
|
|
49
26
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
/**
|
|
54
|
-
* fils status ['pending', 'uploading', 'finished', 'removed', 'error']
|
|
55
|
-
*/
|
|
56
|
-
function createXhrHandlers(inst, file, xhr) {
|
|
57
|
-
const { doChange, xhrMap } = inst;
|
|
58
|
-
let percentage = 0;
|
|
59
|
-
function handleXHRError(e) {
|
|
60
|
-
var _a;
|
|
61
|
-
let fileAfterChange = Object.assign({}, file, {
|
|
62
|
-
status: 'error',
|
|
63
|
-
percentage
|
|
64
|
-
});
|
|
65
|
-
xhrMap.delete(file.id);
|
|
66
|
-
fileAfterChange = (0, utils_1.createSettledFileInfo)(((_a = inst.onError) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange, event: e })) || fileAfterChange);
|
|
67
|
-
doChange(fileAfterChange, e);
|
|
68
|
-
}
|
|
69
|
-
function handleXHRLoad(e) {
|
|
70
|
-
var _a;
|
|
71
|
-
if (inst.isErrorState) {
|
|
72
|
-
if (inst.isErrorState(xhr)) {
|
|
73
|
-
handleXHRError(e);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
if (xhr.status < 200 || xhr.status >= 300) {
|
|
79
|
-
handleXHRError(e);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
let fileAfterChange = Object.assign({}, file, {
|
|
84
|
-
status: 'finished',
|
|
85
|
-
percentage
|
|
86
|
-
});
|
|
87
|
-
xhrMap.delete(file.id);
|
|
88
|
-
fileAfterChange = (0, utils_1.createSettledFileInfo)(((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange, event: e })) || fileAfterChange);
|
|
89
|
-
doChange(fileAfterChange, e);
|
|
90
|
-
}
|
|
91
|
-
return {
|
|
92
|
-
handleXHRLoad,
|
|
93
|
-
handleXHRError,
|
|
94
|
-
handleXHRAbort(e) {
|
|
95
|
-
const fileAfterChange = Object.assign({}, file, {
|
|
96
|
-
status: 'removed',
|
|
97
|
-
file: null,
|
|
98
|
-
percentage
|
|
99
|
-
});
|
|
100
|
-
xhrMap.delete(file.id);
|
|
101
|
-
doChange(fileAfterChange, e);
|
|
102
|
-
},
|
|
103
|
-
handleXHRProgress(e) {
|
|
104
|
-
const fileAfterChange = Object.assign({}, file, {
|
|
105
|
-
status: 'uploading'
|
|
106
|
-
});
|
|
107
|
-
if (e.lengthComputable) {
|
|
108
|
-
const progress = Math.ceil((e.loaded / e.total) * 100);
|
|
109
|
-
fileAfterChange.percentage = progress;
|
|
110
|
-
percentage = progress;
|
|
111
|
-
}
|
|
112
|
-
doChange(fileAfterChange, e);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function customSubmitImpl(options) {
|
|
117
|
-
const { inst, file, data, headers, withCredentials, action, customRequest } = options;
|
|
118
|
-
const { doChange } = options.inst;
|
|
119
|
-
let percentage = 0;
|
|
120
|
-
customRequest({
|
|
121
|
-
file,
|
|
122
|
-
data,
|
|
123
|
-
headers,
|
|
124
|
-
withCredentials,
|
|
125
|
-
action,
|
|
126
|
-
onProgress(event) {
|
|
127
|
-
const fileAfterChange = Object.assign({}, file, {
|
|
128
|
-
status: 'uploading'
|
|
129
|
-
});
|
|
130
|
-
const progress = event.percent;
|
|
131
|
-
fileAfterChange.percentage = progress;
|
|
132
|
-
percentage = progress;
|
|
133
|
-
doChange(fileAfterChange);
|
|
134
|
-
},
|
|
135
|
-
onFinish() {
|
|
136
|
-
var _a;
|
|
137
|
-
let fileAfterChange = Object.assign({}, file, {
|
|
138
|
-
status: 'finished',
|
|
139
|
-
percentage
|
|
140
|
-
});
|
|
141
|
-
fileAfterChange = (0, utils_1.createSettledFileInfo)(((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange })) || fileAfterChange);
|
|
142
|
-
doChange(fileAfterChange);
|
|
143
|
-
},
|
|
144
|
-
onError() {
|
|
145
|
-
var _a;
|
|
146
|
-
let fileAfterChange = Object.assign({}, file, {
|
|
147
|
-
status: 'error',
|
|
148
|
-
percentage
|
|
149
|
-
});
|
|
150
|
-
fileAfterChange = (0, utils_1.createSettledFileInfo)(((_a = inst.onError) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange })) || fileAfterChange);
|
|
151
|
-
doChange(fileAfterChange);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
function registerHandler(inst, file, request) {
|
|
156
|
-
const handlers = createXhrHandlers(inst, file, request);
|
|
157
|
-
request.onabort = handlers.handleXHRAbort;
|
|
158
|
-
request.onerror = handlers.handleXHRError;
|
|
159
|
-
request.onload = handlers.handleXHRLoad;
|
|
160
|
-
if (request.upload) {
|
|
161
|
-
request.upload.onprogress = handlers.handleXHRProgress;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
function unwrapFunctionValue(data, file) {
|
|
165
|
-
if (typeof data === 'function') {
|
|
166
|
-
return data({ file });
|
|
167
|
-
}
|
|
168
|
-
if (data)
|
|
169
|
-
return data;
|
|
170
|
-
return {};
|
|
171
|
-
}
|
|
172
|
-
function setHeaders(request, headers, file) {
|
|
173
|
-
const headersObject = unwrapFunctionValue(headers, file);
|
|
174
|
-
if (!headersObject)
|
|
175
|
-
return;
|
|
176
|
-
Object.keys(headersObject).forEach((key) => {
|
|
177
|
-
request.setRequestHeader(key, headersObject[key]);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
function appendData(formData, data, file) {
|
|
181
|
-
const dataObject = unwrapFunctionValue(data, file);
|
|
182
|
-
if (!dataObject)
|
|
183
|
-
return;
|
|
184
|
-
Object.keys(dataObject).forEach((key) => {
|
|
185
|
-
formData.append(key, dataObject[key]);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
function submitImpl(inst, fieldName, file, { method, action, withCredentials, responseType, headers, data }) {
|
|
189
|
-
const request = new XMLHttpRequest();
|
|
190
|
-
request.responseType = responseType;
|
|
191
|
-
inst.xhrMap.set(file.id, request);
|
|
192
|
-
request.withCredentials = withCredentials;
|
|
193
|
-
const formData = new FormData();
|
|
194
|
-
appendData(formData, data, file);
|
|
195
|
-
formData.append(fieldName, file.file);
|
|
196
|
-
registerHandler(inst, file, request);
|
|
197
|
-
if (action !== undefined) {
|
|
198
|
-
request.open(method.toUpperCase(), action);
|
|
199
|
-
setHeaders(request, headers, file);
|
|
200
|
-
request.send(formData);
|
|
201
|
-
const fileAfterChange = Object.assign({}, file, {
|
|
202
|
-
status: 'uploading'
|
|
203
|
-
});
|
|
204
|
-
inst.doChange(fileAfterChange);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
27
|
+
const UploadDragger_1 = require("./UploadDragger");
|
|
28
|
+
const useUpload_1 = require("./useUpload");
|
|
29
|
+
const useUploadInternals_1 = require("./useUploadInternals");
|
|
207
30
|
exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { name: {
|
|
208
31
|
type: String,
|
|
209
32
|
default: 'file'
|
|
@@ -219,7 +42,10 @@ exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
219
42
|
}, disabled: {
|
|
220
43
|
type: Boolean,
|
|
221
44
|
default: undefined
|
|
222
|
-
},
|
|
45
|
+
}, vertical: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
}, icon: Object, onChange: Function, onRemove: Function, onFinish: Function, onError: Function, onBeforeUpload: Function, isErrorState: Function,
|
|
223
49
|
/** currently not used */
|
|
224
50
|
onDownload: Function, defaultUpload: {
|
|
225
51
|
type: Boolean,
|
|
@@ -252,11 +78,19 @@ exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
252
78
|
}, createThumbnailUrl: Function, abstract: Boolean, max: Number, showTrigger: {
|
|
253
79
|
type: Boolean,
|
|
254
80
|
default: true
|
|
255
|
-
}, imageGroupProps: Object, inputProps: Object, triggerStyle: [String, Object], renderIcon: Function, label: String
|
|
81
|
+
}, imageGroupProps: Object, inputProps: Object, triggerStyle: [String, Object], renderIcon: Function, label: String, size: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: 'medium'
|
|
84
|
+
}, title: String, subtitle: String, noIcon: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: false
|
|
87
|
+
} });
|
|
256
88
|
exports.default = (0, vue_1.defineComponent)({
|
|
257
89
|
name: 'Upload',
|
|
258
90
|
props: exports.uploadProps,
|
|
259
91
|
setup(props) {
|
|
92
|
+
const { localeRef } = (0, _mixins_1.useLocale)('Upload');
|
|
93
|
+
const { submitImpl, customSubmitImpl } = (0, useUpload_1.useUpload)();
|
|
260
94
|
if (props.abstract && props.listType === 'image-card') {
|
|
261
95
|
(0, _utils_1.throwError)('upload', 'when the list-type is image-card, abstract is not supported.');
|
|
262
96
|
}
|
|
@@ -325,8 +159,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
325
159
|
fileAndEntries = fileAndEntries.slice(0, max - mergedFileListRef.value.length);
|
|
326
160
|
}
|
|
327
161
|
const batchId = (0, seemly_1.createId)();
|
|
328
|
-
void Promise.all(fileAndEntries.map((
|
|
329
|
-
var
|
|
162
|
+
void Promise.all(fileAndEntries.map((_a) => __awaiter(this, [_a], void 0, function* ({ file, entry }) {
|
|
163
|
+
var _b;
|
|
330
164
|
const fileInfo = {
|
|
331
165
|
id: (0, seemly_1.createId)(),
|
|
332
166
|
batchId,
|
|
@@ -337,7 +171,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
337
171
|
url: null,
|
|
338
172
|
type: file.type,
|
|
339
173
|
thumbnailUrl: null,
|
|
340
|
-
fullPath: (
|
|
174
|
+
fullPath: (_b = entry === null || entry === void 0 ? void 0 : entry.fullPath) !== null && _b !== void 0 ? _b : `/${file.webkitRelativePath || file.name}`
|
|
341
175
|
};
|
|
342
176
|
if (!onBeforeUpload ||
|
|
343
177
|
(yield onBeforeUpload({
|
|
@@ -458,7 +292,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
458
292
|
return '';
|
|
459
293
|
}
|
|
460
294
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
461
|
-
const {
|
|
295
|
+
const { value: size } = formItem.mergedSizeRef;
|
|
296
|
+
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard, baseColor, draggerIconBgColor, draggerIconColor, draggerTextColor, draggerTitleColor, labelColor, containerSecondary, brandPrimary300, elementsQuaternary, [(0, _utils_1.createKey)('width', size)]: width } } = themeRef.value;
|
|
462
297
|
return {
|
|
463
298
|
'--u-bezier': cubicBezierEaseInOut,
|
|
464
299
|
'--u-border-radius': borderRadius,
|
|
@@ -482,11 +317,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
482
317
|
'--u-dragger-title-color': draggerTitleColor,
|
|
483
318
|
'--u-dragger-text-color': draggerTextColor,
|
|
484
319
|
'--u-label-color': labelColor,
|
|
485
|
-
'--u-upload-width': props.listType === 'image-card' ? 'auto' : '100%'
|
|
320
|
+
'--u-upload-width': props.listType === 'image-card' ? 'auto' : '100%',
|
|
321
|
+
'--u-upload-dragger-width': width,
|
|
322
|
+
'--u-upload-info-bg-color': containerSecondary,
|
|
323
|
+
'--u-upload-preview-color': brandPrimary300,
|
|
324
|
+
'--u-upload-empty-border-color': elementsQuaternary
|
|
486
325
|
};
|
|
487
326
|
});
|
|
488
327
|
const themeClassHandle = inlineThemeDisabled
|
|
489
|
-
? (0, _mixins_1.useThemeClass)('upload',
|
|
328
|
+
? (0, _mixins_1.useThemeClass)('upload', (0, vue_1.computed)(() => {
|
|
329
|
+
const { value: size } = formItem.mergedSizeRef;
|
|
330
|
+
return size[0];
|
|
331
|
+
}), cssVarsRef, props)
|
|
490
332
|
: undefined;
|
|
491
333
|
(0, vue_1.provide)(interface_1.uploadInjectionKey, {
|
|
492
334
|
mergedClsPrefixRef,
|
|
@@ -514,6 +356,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
514
356
|
handleFileAddition,
|
|
515
357
|
mergedDisabledRef: formItem.mergedDisabledRef,
|
|
516
358
|
maxReachedRef,
|
|
359
|
+
localeRef,
|
|
360
|
+
iconRef: (0, vue_1.toRef)(props, 'icon'),
|
|
361
|
+
noIconRef: (0, vue_1.toRef)(props, 'noIcon'),
|
|
362
|
+
titleRef: (0, vue_1.toRef)(props, 'title'),
|
|
363
|
+
subtitleRef: (0, vue_1.toRef)(props, 'subtitle'),
|
|
364
|
+
verticalRef: (0, vue_1.toRef)(props, 'vertical'),
|
|
517
365
|
fileListStyleRef: (0, vue_1.toRef)(props, 'fileListStyle'),
|
|
518
366
|
abstractRef: (0, vue_1.toRef)(props, 'abstract'),
|
|
519
367
|
acceptRef: (0, vue_1.toRef)(props, 'accept'),
|
|
@@ -534,8 +382,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
534
382
|
submit,
|
|
535
383
|
openFileDialog
|
|
536
384
|
};
|
|
537
|
-
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, draggerInsideRef,
|
|
538
|
-
inputElRef,
|
|
385
|
+
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, mergedSizeRef: formItem.mergedSizeRef, draggerInsideRef,
|
|
386
|
+
inputElRef,
|
|
387
|
+
localeRef, mergedTheme: themeRef, dragOver: dragOverRef, mergedMultiple: mergedMultipleRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender, handleFileInputChange }, exposedMethods);
|
|
539
388
|
},
|
|
540
389
|
render() {
|
|
541
390
|
var _a, _b;
|
|
@@ -546,24 +395,22 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
546
395
|
draggerInsideRef.value = true;
|
|
547
396
|
}
|
|
548
397
|
}
|
|
549
|
-
const inputNode = (
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
];
|
|
566
|
-
};
|
|
398
|
+
const { inputNode, renderDefaultTrigger } = (0, useUploadInternals_1.useUploadInternals)({
|
|
399
|
+
mergedClsPrefix: this.mergedClsPrefix,
|
|
400
|
+
accept: this.accept,
|
|
401
|
+
multiple: this.mergedMultiple,
|
|
402
|
+
directory,
|
|
403
|
+
inputProps: this.inputProps,
|
|
404
|
+
onChange: this.handleFileInputChange,
|
|
405
|
+
label: this.label,
|
|
406
|
+
title: this.title,
|
|
407
|
+
subtitle: this.subtitle,
|
|
408
|
+
vertical: this.vertical,
|
|
409
|
+
noIcon: this.noIcon,
|
|
410
|
+
icon: this.icon,
|
|
411
|
+
localeRef: this.localeRef,
|
|
412
|
+
slots: this.$slots
|
|
413
|
+
});
|
|
567
414
|
const hasDefaulTrigger = !$slots.default;
|
|
568
415
|
const slots = Object.assign(Object.assign({}, $slots), { default: $slots.default || renderDefaultTrigger });
|
|
569
416
|
if (this.abstract) {
|
|
@@ -579,7 +426,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
579
426
|
this.themeClass
|
|
580
427
|
], style: this.cssVars },
|
|
581
428
|
inputNode,
|
|
582
|
-
this.showTrigger &&
|
|
429
|
+
this.showTrigger &&
|
|
430
|
+
this.listType !== 'image-card' &&
|
|
431
|
+
this.listType !== 'image' && ((0, vue_1.h)(UploadTrigger_1.default, { class: [
|
|
583
432
|
hasDefaulTrigger && `${mergedClsPrefix}-upload-trigger--block`
|
|
584
433
|
] }, slots)),
|
|
585
434
|
this.showFileList && (0, vue_1.h)(UploadFileList_1.default, null, $slots)));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import type { ListType } from './interface';
|
|
2
|
+
import type { SettledFileInfo, ListType } from './interface';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
clsPrefix: {
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
8
|
file: {
|
|
9
|
-
type: PropType<
|
|
9
|
+
type: PropType<SettledFileInfo>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
listType: {
|
|
@@ -15,118 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
}, {
|
|
17
17
|
mergedTheme: import("vue").Ref<{
|
|
18
|
-
common:
|
|
19
|
-
scrollbarColor: string;
|
|
20
|
-
scrollbarColorHover: string;
|
|
21
|
-
scrollbarWidth: string;
|
|
22
|
-
scrollbarHeight: string;
|
|
23
|
-
scrollbarBorderRadius: string;
|
|
24
|
-
opacityDisabled: string;
|
|
25
|
-
brandPrimary50: string;
|
|
26
|
-
brandPrimary100: string;
|
|
27
|
-
brandPrimary200: string;
|
|
28
|
-
brandPrimary300: string;
|
|
29
|
-
brandPrimary400: string;
|
|
30
|
-
brandPrimary500: string;
|
|
31
|
-
brandPrimary550: string;
|
|
32
|
-
brandPrimary600: string;
|
|
33
|
-
brandSecondary500: string;
|
|
34
|
-
brandSecondary300: string;
|
|
35
|
-
brandSecondary600: string;
|
|
36
|
-
brandTertiary500: string;
|
|
37
|
-
brandTertiary300: string;
|
|
38
|
-
brandTertiary600: string;
|
|
39
|
-
brandQuaternary500: string;
|
|
40
|
-
brandQuaternary300: string;
|
|
41
|
-
brandQuaternary600: string;
|
|
42
|
-
brandQuinary500: string;
|
|
43
|
-
brandQuinary300: string;
|
|
44
|
-
brandQuinary600: string;
|
|
45
|
-
brandQuinary100: string;
|
|
46
|
-
surfacePrimary: string;
|
|
47
|
-
surfaceSecondary: string;
|
|
48
|
-
containerPrimary: string;
|
|
49
|
-
containerSecondary: string;
|
|
50
|
-
textPrimary: string;
|
|
51
|
-
textSecondary: string;
|
|
52
|
-
textTertiary: string;
|
|
53
|
-
textQuaternary: string;
|
|
54
|
-
textBrand: string;
|
|
55
|
-
elementsPrimary: string;
|
|
56
|
-
elementsSecondary: string;
|
|
57
|
-
elementsTertiary: string;
|
|
58
|
-
elementsQuaternary: string;
|
|
59
|
-
elementsQuinary: string;
|
|
60
|
-
elementsDarkQuinary: string;
|
|
61
|
-
elementsSenary: string;
|
|
62
|
-
elementsOnContainer: string;
|
|
63
|
-
transparencyPrimary: string;
|
|
64
|
-
transparencySecondary: string;
|
|
65
|
-
transparencyTertiary: string;
|
|
66
|
-
transparencyQuinary: string;
|
|
67
|
-
transparencyModal: string;
|
|
68
|
-
staticBlack: string;
|
|
69
|
-
staticDarkGrey: string;
|
|
70
|
-
staticWhite: string;
|
|
71
|
-
staticRed: string;
|
|
72
|
-
staticOrange: string;
|
|
73
|
-
staticGreen: string;
|
|
74
|
-
staticDeepBlue: string;
|
|
75
|
-
staticErrorAccent: string;
|
|
76
|
-
shadowDepth2: string;
|
|
77
|
-
shadowDepth: string;
|
|
78
|
-
fontFamily: string;
|
|
79
|
-
fontFamilyMono: string;
|
|
80
|
-
cubicBezierEaseInOut: string;
|
|
81
|
-
cubicBezierEaseOut: string;
|
|
82
|
-
cubicBezierEaseIn: string;
|
|
83
|
-
borderRadiusLarge: string;
|
|
84
|
-
borderRadius: string;
|
|
85
|
-
borderRadiusMedium: string;
|
|
86
|
-
borderRadiusSmall: string;
|
|
87
|
-
borderRadiusTiny: string;
|
|
88
|
-
heightMini: string;
|
|
89
|
-
heightTiny: string;
|
|
90
|
-
heightSmall: string;
|
|
91
|
-
heightMedium: string;
|
|
92
|
-
heightLarge: string;
|
|
93
|
-
heightHuge: string;
|
|
94
|
-
fontDisplayLarge: string;
|
|
95
|
-
fontDisplaySmall: string;
|
|
96
|
-
fontHeadingLarge: string;
|
|
97
|
-
fontHeadingMedium: string;
|
|
98
|
-
fontHeadingSmall: string;
|
|
99
|
-
fontTitleLarge: string;
|
|
100
|
-
fontTitleMedium: string;
|
|
101
|
-
fontTitleSmall: string;
|
|
102
|
-
fontBodyLarge: string;
|
|
103
|
-
fontBodyMedium: string;
|
|
104
|
-
fontBodySmall: string;
|
|
105
|
-
lineHeightDisplayLarge: string;
|
|
106
|
-
lineHeightDisplaySmall: string;
|
|
107
|
-
lineHeightHeadingLarge: string;
|
|
108
|
-
lineHeightHeadingMedium: string;
|
|
109
|
-
lineHeightHeadingSmall: string;
|
|
110
|
-
lineHeightTitleLarge: string;
|
|
111
|
-
lineHeightTitleMedium: string;
|
|
112
|
-
lineHeightTitleSmall: string;
|
|
113
|
-
lineHeightBodyLarge: string;
|
|
114
|
-
lineHeightBodyMedium: string;
|
|
115
|
-
lineHeightBodySmall: string;
|
|
116
|
-
fontWeight: string;
|
|
117
|
-
fontWeightStrong: string;
|
|
118
|
-
fontWeightBold: string;
|
|
119
|
-
iconSmall: string;
|
|
120
|
-
iconMedium: string;
|
|
121
|
-
iconLarge: string;
|
|
122
|
-
iconHuge: string;
|
|
123
|
-
closeSmall: string;
|
|
124
|
-
closeMedium: string;
|
|
125
|
-
closeLarge: string;
|
|
126
|
-
closeHuge: string;
|
|
127
|
-
closeBorderRadius: string;
|
|
128
|
-
name: "common";
|
|
129
|
-
};
|
|
18
|
+
common: import("../..").ThemeCommonVars;
|
|
130
19
|
self: {
|
|
131
20
|
baseColor: string;
|
|
132
21
|
fontSize: string;
|
|
@@ -149,6 +38,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
38
|
draggerTitleColor: string;
|
|
150
39
|
draggerTextColor: string;
|
|
151
40
|
labelColor: string;
|
|
41
|
+
widthSmall: string;
|
|
42
|
+
widthMedium: string;
|
|
43
|
+
widthLarge: string;
|
|
44
|
+
containerSecondary: string;
|
|
45
|
+
brandPrimary300: string;
|
|
46
|
+
elementsQuaternary: string;
|
|
152
47
|
};
|
|
153
48
|
peers: {
|
|
154
49
|
Button: import("../../_mixins/use-theme").Theme<"Button", {
|
|
@@ -414,6 +309,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
414
309
|
imageRef: import("vue").Ref<{
|
|
415
310
|
click: () => void;
|
|
416
311
|
} | null>;
|
|
312
|
+
localeRef: import("vue").Ref<{
|
|
313
|
+
title: string;
|
|
314
|
+
subtitle: string;
|
|
315
|
+
uploading: string;
|
|
316
|
+
}>;
|
|
317
|
+
vertical: boolean;
|
|
318
|
+
capitalizeFirstLetter: (str: string) => string;
|
|
417
319
|
handleRemoveOrCancelClick: (e: MouseEvent) => void;
|
|
418
320
|
handleDownloadClick: (e: MouseEvent) => void;
|
|
419
321
|
handleRetryClick: () => void;
|
|
@@ -424,7 +326,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
424
326
|
required: true;
|
|
425
327
|
};
|
|
426
328
|
file: {
|
|
427
|
-
type: PropType<
|
|
329
|
+
type: PropType<SettledFileInfo>;
|
|
428
330
|
required: true;
|
|
429
331
|
};
|
|
430
332
|
listType: {
|
|
@@ -8,21 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
const vue_1 = require("vue");
|
|
16
13
|
const vooks_1 = require("vooks");
|
|
17
|
-
const icons_1 = require("../../_internal/icons");
|
|
18
|
-
const image_1 = require("../../image");
|
|
19
|
-
const button_1 = require("../../button");
|
|
20
|
-
const _internal_1 = require("../../_internal");
|
|
21
14
|
const _utils_1 = require("../../_utils");
|
|
22
|
-
const UploadProgress_1 = __importDefault(require("./UploadProgress"));
|
|
23
15
|
const interface_1 = require("./interface");
|
|
24
|
-
const icons_2 = require("./icons");
|
|
25
16
|
const utils_1 = require("./utils");
|
|
17
|
+
const spin_1 = require("../../spin");
|
|
18
|
+
const useUploadActionsRender_1 = require("./useUploadActionsRender");
|
|
26
19
|
const buttonThemeOverrides = {
|
|
27
20
|
paddingMedium: '0 3px',
|
|
28
21
|
heightMedium: '24px',
|
|
@@ -194,6 +187,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
194
187
|
shouldUseThumbnailUrl: UUpload.shouldUseThumbnailUrlRef,
|
|
195
188
|
renderIcon: UUpload.renderIconRef,
|
|
196
189
|
imageRef,
|
|
190
|
+
localeRef: UUpload.localeRef,
|
|
191
|
+
vertical: UUpload.verticalRef.value,
|
|
192
|
+
capitalizeFirstLetter: utils_1.capitalizeFirstLetter,
|
|
197
193
|
handleRemoveOrCancelClick,
|
|
198
194
|
handleDownloadClick,
|
|
199
195
|
handleRetryClick,
|
|
@@ -201,54 +197,58 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
201
197
|
};
|
|
202
198
|
},
|
|
203
199
|
render() {
|
|
204
|
-
const { clsPrefix, mergedTheme, listType, file
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
200
|
+
const { clsPrefix, mergedTheme, listType, file } = this;
|
|
201
|
+
const { icon, actionsNode } = (0, useUploadActionsRender_1.useUploadActionsRender)({
|
|
202
|
+
clsPrefix,
|
|
203
|
+
listType,
|
|
204
|
+
file,
|
|
205
|
+
disabled: this.disabled,
|
|
206
|
+
showPreviewButton: this.showPreviewButton,
|
|
207
|
+
showRemoveButton: this.showRemoveButton,
|
|
208
|
+
showCancelButton: this.showCancelButton,
|
|
209
|
+
showRetryButton: this.showRetryButton,
|
|
210
|
+
showDownloadButton: this.showDownloadButton,
|
|
211
|
+
buttonType: this.buttonType,
|
|
212
|
+
mergedTheme,
|
|
213
|
+
buttonThemeOverrides,
|
|
214
|
+
handlePreviewClick: this.handlePreviewClick,
|
|
215
|
+
handleRemoveOrCancelClick: this.handleRemoveOrCancelClick,
|
|
216
|
+
handleRetryClick: this.handleRetryClick,
|
|
217
|
+
handleDownloadClick: this.handleDownloadClick,
|
|
218
|
+
capitalizeFirstLetter: this.capitalizeFirstLetter
|
|
219
|
+
});
|
|
220
|
+
const imageCardTypes = ['image-card', 'image'];
|
|
221
|
+
return ((0, vue_1.h)(spin_1.USpin, { color: "tertiary", description: this.localeRef.uploading, show: this.showProgress, class: [
|
|
222
|
+
!this.vertical &&
|
|
223
|
+
!imageCardTypes.includes(listType) &&
|
|
224
|
+
`${clsPrefix}-upload-file-loader--default`
|
|
226
225
|
] },
|
|
227
|
-
(0, vue_1.h)("div", { class:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
(0, vue_1.h)("div", { class: [
|
|
227
|
+
`${clsPrefix}-upload-file`,
|
|
228
|
+
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
229
|
+
file.url &&
|
|
230
|
+
file.status !== 'error' &&
|
|
231
|
+
imageCardTypes.includes(listType) &&
|
|
232
|
+
`${clsPrefix}-upload-file--with-url`,
|
|
233
|
+
`${clsPrefix}-upload-file--${listType === 'image' || listType === 'image-card'
|
|
234
|
+
? 'image-card'
|
|
235
|
+
: 'text'}-type`
|
|
236
|
+
] },
|
|
233
237
|
(0, vue_1.h)("div", { class: [
|
|
234
|
-
`${clsPrefix}-upload-file-
|
|
235
|
-
|
|
238
|
+
`${clsPrefix}-upload-file-info`,
|
|
239
|
+
imageCardTypes.includes(listType) &&
|
|
240
|
+
`${clsPrefix}-upload-file-info--vertical`
|
|
236
241
|
] },
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
})),
|
|
249
|
-
this.showDownloadButton ? ((0, vue_1.h)(button_1.UButton, { key: "download", quaternary: true, type: this.buttonType, onClick: this.handleDownloadClick, theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, builtinThemeOverrides: buttonThemeOverrides }, {
|
|
250
|
-
icon: () => ((0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: clsPrefix }, { default: () => (0, vue_1.h)(icons_1.DownloadIcon, null) }))
|
|
251
|
-
})) : null)),
|
|
252
|
-
!isImageType && progress));
|
|
242
|
+
icon,
|
|
243
|
+
(0, vue_1.h)("div", { class: `${clsPrefix}-upload-file-info__name` },
|
|
244
|
+
(0, vue_1.h)(vue_1.Fragment, null,
|
|
245
|
+
(0, vue_1.h)("span", { onClick: this.handlePreviewClick }, this.$slots['upload-file-title']
|
|
246
|
+
? this.$slots['upload-file-title']({ file })
|
|
247
|
+
: file.name),
|
|
248
|
+
(0, vue_1.h)("span", { onClick: this.handlePreviewClick }, this.$slots['upload-file-subtitle']
|
|
249
|
+
? this.$slots['upload-file-subtitle']({ file })
|
|
250
|
+
: ''))),
|
|
251
|
+
actionsNode),
|
|
252
|
+
this.showProgress && ((0, vue_1.h)("div", { class: `${clsPrefix}-upload-file-overlay` })))));
|
|
253
253
|
}
|
|
254
254
|
});
|