morya-ui 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +181 -0
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/{Button-DnE_ns8s.js → Button-lNErA-7h.js} +1 -1
- package/dist/{Checkbox-BjtAYUUD.js → Checkbox-B758a_iB.js} +1 -1
- package/dist/{FlyoutSubmenu-BC_cl17_.js → FlyoutSubmenu-kymVjXLs.js} +2 -2
- package/dist/{Pagination-DNjDBPfR.js → Pagination-Dm2-MBnC.js} +6 -6
- package/dist/{Popover-6eE5yIT7.js → Popover-flzjtjqD.js} +10 -10
- package/dist/{ProgressSpinner-CT7IP3Yr.js → ProgressSpinner-BXHLx4Lg.js} +1 -1
- package/dist/{Radio-DcotfGnv.js → Radio-Bb21-Vk4.js} +1 -1
- package/dist/{ScrollBody-CXFNhBvq.js → ScrollBody-D2IHKP6U.js} +3 -7
- package/dist/{Scrollbar-DoNZvgX2.js → Scrollbar-BYnCO8fv.js} +23 -23
- package/dist/{Tooltip-CrKm9FMD.js → Tooltip-CeGxjP-L.js} +7 -7
- package/dist/accordion/index.js +3 -3
- package/dist/accordion/style.css +122 -29
- package/dist/auto-complete/index.js +8 -8
- package/dist/auto-complete/style.css +206 -37
- package/dist/avatar/style.css +138 -29
- package/dist/badge/style.css +132 -28
- package/dist/block-ui/style.css +137 -30
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/style.css +126 -31
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +165 -35
- package/dist/card/style.css +154 -53
- package/dist/carousel/index.js +4 -4
- package/dist/carousel/style.css +148 -28
- package/dist/cascade-select/index.js +10 -10
- package/dist/cascade-select/style.css +174 -34
- package/dist/checkbox/index.js +5 -5
- package/dist/checkbox/style.css +130 -28
- package/dist/chip/index.js +1 -1
- package/dist/chip/style.css +139 -28
- package/dist/command-menu/index.js +6 -6
- package/dist/command-menu/style.css +179 -34
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/Accordion/styles.css +1 -1
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +48 -5
- package/dist/components/AutoComplete/types.d.ts +1 -1
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/AvatarGroup.vue.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +1 -1
- package/dist/components/Badge/styles.css +11 -0
- package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
- package/dist/components/BlockUI/styles.css +16 -2
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumb/styles.css +5 -3
- package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +28 -7
- package/dist/components/Button/types.d.ts +1 -1
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/styles.css +33 -25
- package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +11 -0
- package/dist/components/CascadeSelect/styles.css +16 -2
- package/dist/components/CascadeSelect/types.d.ts +1 -1
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/styles.css +9 -0
- package/dist/components/Chip/styles.css +2 -0
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +21 -2
- package/dist/components/CommandMenu/types.d.ts +2 -2
- package/dist/components/CommandMenu/types.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/styles.css +2 -2
- package/dist/components/ConfirmDialog/types.d.ts +1 -1
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/styles.css +3 -3
- package/dist/components/ConfirmPopup/types.d.ts +1 -1
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +9 -6
- package/dist/components/ContextMenu/types.d.ts +2 -2
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +34 -4
- package/dist/components/DatePicker/types.d.ts +1 -1
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +50 -2
- package/dist/components/Dialog/types.d.ts +1 -1
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Divider/styles.css +35 -32
- package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
- package/dist/components/Dock/styles.css +30 -4
- package/dist/components/Dock/types.d.ts +1 -1
- package/dist/components/Dock/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +69 -4
- package/dist/components/Drawer/types.d.ts +1 -1
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +20 -3
- package/dist/components/Dropdown/types.d.ts +1 -1
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Empty/Empty.vue.d.ts +29 -0
- package/dist/components/Empty/Empty.vue.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -0
- package/dist/components/Empty/index.d.ts.map +1 -0
- package/dist/components/Empty/styles.css +72 -0
- package/dist/components/Empty/types.d.ts +14 -0
- package/dist/components/Empty/types.d.ts.map +1 -0
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/styles.css +16 -1
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/styles.css +28 -4
- package/dist/components/Flex/Flex.vue.d.ts.map +1 -1
- package/dist/components/Flex/styles.css +1 -2
- package/dist/components/Flex/types.d.ts +1 -1
- package/dist/components/Flex/types.d.ts.map +1 -1
- package/dist/components/FloatLabel/styles.css +8 -7
- package/dist/components/Fluid/Fluid.vue.d.ts.map +1 -1
- package/dist/components/Fluid/styles.css +4 -1
- package/dist/components/Form/styles.css +5 -2
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Gallery/styles.css +19 -2
- package/dist/components/Grid/styles.css +5 -4
- package/dist/components/Icon/styles.css +16 -0
- package/dist/components/Inplace/Inplace.vue.d.ts.map +1 -1
- package/dist/components/Inplace/styles.css +10 -9
- package/dist/components/Input/styles.css +8 -1
- package/dist/components/InputColor/styles.css +26 -1
- package/dist/components/InputGroup/styles.css +5 -4
- package/dist/components/InputNumber/styles.css +25 -2
- package/dist/components/InputOtp/styles.css +15 -7
- package/dist/components/InputPassword/InputPassword.vue.d.ts +1 -1
- package/dist/components/InputPassword/index.d.ts +1 -1
- package/dist/components/InputPassword/index.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +12 -2
- package/dist/components/InputTags/styles.css +24 -0
- package/dist/components/Knob/styles.css +27 -13
- package/dist/components/Label/styles.css +2 -2
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutScrollContext.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutScrollRegion.vue.d.ts +3 -3
- package/dist/components/Layout/LayoutScrollRegion.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutScroll.d.ts +1 -1
- package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +71 -10
- package/dist/components/Layout/types.d.ts +2 -2
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +18 -1
- package/dist/components/Listbox/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +10 -3
- package/dist/components/MegaMenu/types.d.ts +2 -2
- package/dist/components/MegaMenu/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +34 -1
- package/dist/components/Menu/types.d.ts +2 -2
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +14 -6
- package/dist/components/Menubar/types.d.ts +2 -2
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/messageState.d.ts +26 -0
- package/dist/components/Message/messageState.d.ts.map +1 -0
- package/dist/components/Message/styles.css +43 -1
- package/dist/components/Message/types.d.ts +1 -1
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
- package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
- package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
- package/dist/components/Page/PageToolbar.vue.d.ts.map +1 -1
- package/dist/components/Page/styles.css +7 -1
- package/dist/components/Page/types.d.ts +1 -1
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +23 -1
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +20 -1
- package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/styles.css +35 -3
- package/dist/components/Popover/types.d.ts +1 -1
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +20 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +19 -0
- package/dist/components/Radio/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/Radio/styles.css +9 -0
- package/dist/components/Rating/styles.css +14 -1
- package/dist/components/Result/Result.vue.d.ts +26 -0
- package/dist/components/Result/Result.vue.d.ts.map +1 -0
- package/dist/components/Result/index.d.ts +3 -0
- package/dist/components/Result/index.d.ts.map +1 -0
- package/dist/components/Result/styles.css +80 -0
- package/dist/components/Result/types.d.ts +16 -0
- package/dist/components/Result/types.d.ts.map +1 -0
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/styles.css +14 -1
- package/dist/components/ScrollTop/types.d.ts +1 -1
- package/dist/components/ScrollTop/types.d.ts.map +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +21 -4
- package/dist/components/Scrollbar/types.d.ts +1 -1
- package/dist/components/Scrollbar/types.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/styles.css +14 -11
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/SelectButton/SelectButton.vue.d.ts.map +1 -1
- package/dist/components/SelectButton/styles.css +18 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +20 -3
- package/dist/components/Sidebar/types.d.ts +1 -1
- package/dist/components/Sidebar/types.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.css +11 -0
- package/dist/components/Slider/styles.css +19 -5
- package/dist/components/Space/Space.vue.d.ts.map +1 -1
- package/dist/components/Space/styles.css +2 -1
- package/dist/components/Space/types.d.ts +1 -1
- package/dist/components/Space/types.d.ts.map +1 -1
- package/dist/components/SpeedDial/styles.css +20 -4
- package/dist/components/SpeedDial/types.d.ts +2 -2
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/styles.css +32 -5
- package/dist/components/SplitButton/types.d.ts +1 -1
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/styles.css +6 -2
- package/dist/components/Splitter/types.d.ts +1 -1
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts +19 -0
- package/dist/components/Status/Status.vue.d.ts.map +1 -0
- package/dist/components/Status/index.d.ts +3 -0
- package/dist/components/Status/index.d.ts.map +1 -0
- package/dist/components/Status/styles.css +106 -0
- package/dist/components/Status/types.d.ts +19 -0
- package/dist/components/Status/types.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Stepper/styles.css +19 -5
- package/dist/components/Switch/styles.css +34 -5
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts.map +1 -1
- package/dist/components/Table/hooks/index.d.ts +1 -1
- package/dist/components/Table/hooks/index.d.ts.map +1 -1
- package/dist/components/Table/hooks/internal.d.ts +6 -6
- package/dist/components/Table/hooks/internal.d.ts.map +1 -1
- package/dist/components/Table/styles.css +29 -15
- package/dist/components/Table/types.d.ts +1 -1
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css +34 -6
- package/dist/components/Tag/styles.css +13 -21
- package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +7 -1
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/styles.css +16 -0
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +10 -6
- package/dist/components/TieredMenu/types.d.ts +1 -1
- package/dist/components/TieredMenu/types.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/styles.css +3 -3
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.d.ts.map +1 -1
- package/dist/components/Toast/styles.css +17 -1
- package/dist/components/Toast/toastState.d.ts +26 -0
- package/dist/components/Toast/toastState.d.ts.map +1 -0
- package/dist/components/Toast/types.d.ts +1 -1
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/ToggleButton/styles.css +19 -1
- package/dist/components/Toolbar/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/Toolbar/styles.css +9 -8
- package/dist/components/Tooltip/styles.css +1 -0
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/styles.css +4 -2
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +38 -2
- package/dist/components/TreeSelect/types.d.ts +1 -1
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
- package/dist/components/TreeTable/TreeTableRow.vue.d.ts +1 -1
- package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +39 -6
- package/dist/{config-CI8_WBbE.js → config-Dln2-u_v.js} +7 -0
- package/dist/config-provider/index.js +28 -15
- package/dist/config-provider/style.css +159 -37
- package/dist/confirm-dialog/index.js +13 -13
- package/dist/confirm-dialog/style.css +217 -39
- package/dist/confirm-popup/index.js +8 -8
- package/dist/confirm-popup/style.css +168 -38
- package/dist/context-menu/index.js +3 -3
- package/dist/context-menu/style.css +167 -38
- package/dist/data-view/index.js +6 -6
- package/dist/data-view/style.css +163 -29
- package/dist/date-picker/index.js +8 -8
- package/dist/date-picker/style.css +171 -32
- package/dist/dialog/index.js +9 -9
- package/dist/dialog/style.css +215 -37
- package/dist/divider/style.css +156 -60
- package/dist/dock/style.css +167 -32
- package/dist/drawer/index.js +8 -8
- package/dist/drawer/style.css +206 -32
- package/dist/dropdown/index.js +4 -4
- package/dist/dropdown/style.css +178 -35
- package/dist/empty/index.js +54 -0
- package/dist/empty/style.css +1118 -0
- package/dist/empty/style.js +4 -0
- package/dist/fieldset/index.js +3 -3
- package/dist/fieldset/style.css +153 -29
- package/dist/file-upload/index.js +104 -105
- package/dist/file-upload/style.css +165 -32
- package/dist/flex/index.js +1 -1
- package/dist/flex/style.css +122 -30
- package/dist/float-label/style.css +129 -35
- package/dist/fluid/style.css +125 -29
- package/dist/form/index.js +1 -1
- package/dist/form/style.css +126 -30
- package/dist/gallery/index.js +5 -5
- package/dist/gallery/style.css +177 -34
- package/dist/grid/style.css +126 -32
- package/dist/icon/style.css +137 -28
- package/dist/icon-field/style.css +121 -28
- package/dist/index.d.ts +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2068 -1890
- package/dist/inplace/index.js +5 -5
- package/dist/inplace/style.css +131 -37
- package/dist/input/index.js +2 -2
- package/dist/input/style.css +145 -29
- package/dist/input-color/index.js +2 -2
- package/dist/input-color/style.css +147 -29
- package/dist/input-group/style.css +126 -32
- package/dist/input-number/index.js +2 -2
- package/dist/input-number/style.css +162 -30
- package/dist/input-otp/index.js +2 -2
- package/dist/input-otp/style.css +136 -35
- package/dist/input-password/index.js +2 -2
- package/dist/input-password/style.css +149 -30
- package/dist/input-tags/index.js +2 -2
- package/dist/input-tags/style.css +161 -28
- package/dist/knob/style.css +148 -41
- package/dist/label/style.css +123 -30
- package/dist/layout/index.js +54 -42
- package/dist/layout/style.css +229 -42
- package/dist/listbox/index.js +3 -3
- package/dist/listbox/style.css +160 -33
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +7 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/{locale-DYGhxekd.js → locale-DNYpTg5K.js} +1 -1
- package/dist/mega-menu/index.js +98 -98
- package/dist/mega-menu/style.css +147 -31
- package/dist/menu/index.js +44 -44
- package/dist/menu/style.css +228 -36
- package/dist/menubar/index.js +4 -4
- package/dist/menubar/style.css +172 -38
- package/dist/message/index.js +2 -2
- package/dist/message/style.css +180 -29
- package/dist/meter-group/style.css +121 -28
- package/dist/order-list/index.js +5 -5
- package/dist/order-list/style.css +137 -28
- package/dist/page/style.css +177 -54
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +160 -29
- package/dist/panel/index.js +4 -4
- package/dist/panel/style.css +157 -29
- package/dist/pick-list/index.js +8 -8
- package/dist/pick-list/style.css +137 -28
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +156 -31
- package/dist/progress-bar/style.css +141 -28
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +140 -28
- package/dist/radio/index.js +4 -4
- package/dist/radio/style.css +130 -28
- package/dist/rating/index.js +4 -4
- package/dist/rating/style.css +151 -29
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +3 -0
- package/dist/result/index.js +74 -0
- package/dist/result/style.css +1126 -0
- package/dist/result/style.js +4 -0
- package/dist/scroll-top/index.js +2 -2
- package/dist/scroll-top/style.css +172 -33
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +142 -32
- package/dist/select/index.js +8 -8
- package/dist/select/style.css +172 -43
- package/dist/select-button/index.js +5 -5
- package/dist/select-button/style.css +139 -30
- package/dist/shared/ScrollBody.vue.d.ts.map +1 -1
- package/dist/shared/useControllable.d.ts.map +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/sidebar/style.css +157 -31
- package/dist/skeleton/style.css +132 -28
- package/dist/slider/index.js +2 -2
- package/dist/slider/style.css +140 -33
- package/dist/space/index.js +1 -1
- package/dist/space/style.css +123 -29
- package/dist/speed-dial/index.js +14 -14
- package/dist/speed-dial/style.css +157 -32
- package/dist/split-button/index.js +12 -12
- package/dist/split-button/style.css +197 -40
- package/dist/splitter/index.js +37 -37
- package/dist/splitter/style.css +127 -30
- package/dist/status/index.js +39 -0
- package/dist/status/style.css +1097 -0
- package/dist/status/style.js +3 -0
- package/dist/stepper/index.js +3 -3
- package/dist/stepper/style.css +156 -33
- package/dist/styles/base.css +95 -11
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/style.css +155 -33
- package/dist/table/index.js +272 -275
- package/dist/table/style.css +248 -48
- package/dist/tabs/index.js +7 -7
- package/dist/tabs/style.css +192 -38
- package/dist/tag/index.js +2 -2
- package/dist/tag/style.css +150 -49
- package/dist/terminal/index.js +7 -7
- package/dist/terminal/style.css +128 -29
- package/dist/textarea/index.js +2 -2
- package/dist/textarea/style.css +153 -28
- package/dist/theme/styles.css +26 -17
- package/dist/tiered-menu/index.js +9 -9
- package/dist/tiered-menu/style.css +168 -38
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/style.css +161 -35
- package/dist/toast/index.js +5 -5
- package/dist/toast/style.css +154 -29
- package/dist/toggle-button/index.js +1 -1
- package/dist/toggle-button/style.css +156 -29
- package/dist/toolbar/style.css +130 -36
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +122 -28
- package/dist/tree/index.js +12 -12
- package/dist/tree/style.css +150 -30
- package/dist/tree-select/index.js +160 -160
- package/dist/tree-select/style.css +209 -36
- package/dist/tree-table/index.js +6 -6
- package/dist/tree-table/style.css +176 -34
- package/dist/virtual-scroller/index.js +1 -1
- package/dist/virtual-scroller/style.css +142 -32
- package/package.json +29 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
|
-
import { n } from "../locale-
|
|
3
|
+
import { n } from "../locale-DNYpTg5K.js";
|
|
4
4
|
import "./style.js";
|
|
5
|
-
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as ee, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as
|
|
5
|
+
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as ee, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useAttrs as te, watch as ne } from "vue";
|
|
6
6
|
//#region src/components/FileUpload/ajax.ts
|
|
7
|
-
function
|
|
7
|
+
function re(e) {
|
|
8
8
|
let t = new XMLHttpRequest(), n = new FormData();
|
|
9
9
|
n.append(e.filename, e.file, e.file.name);
|
|
10
10
|
for (let [t, r] of Object.entries(e.data)) n.append(t, r);
|
|
@@ -26,52 +26,52 @@ function ie(e) {
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/components/FileUpload/FileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
29
|
-
var
|
|
29
|
+
var ie = [
|
|
30
30
|
"multiple",
|
|
31
31
|
"accept",
|
|
32
32
|
"disabled",
|
|
33
33
|
"webkitdirectory"
|
|
34
|
-
],
|
|
34
|
+
], ae = ["aria-disabled", "aria-label"], oe = { class: "m-fileupload__text" }, se = ["disabled"], ce = ["disabled"], le = {
|
|
35
35
|
key: 3,
|
|
36
36
|
class: "m-fileupload__tip"
|
|
37
|
-
},
|
|
37
|
+
}, ue = {
|
|
38
38
|
key: 4,
|
|
39
39
|
class: "m-fileupload__list"
|
|
40
|
-
},
|
|
40
|
+
}, de = { class: "m-fileupload__file-body" }, fe = [
|
|
41
41
|
"src",
|
|
42
42
|
"alt",
|
|
43
43
|
"onClick"
|
|
44
|
-
],
|
|
44
|
+
], pe = { class: "m-fileupload__name" }, me = {
|
|
45
45
|
key: 1,
|
|
46
46
|
class: "m-fileupload__size"
|
|
47
|
-
},
|
|
47
|
+
}, he = {
|
|
48
48
|
key: 2,
|
|
49
49
|
class: "m-fileupload__status"
|
|
50
|
-
},
|
|
50
|
+
}, ge = { class: "m-fileupload__actions" }, _e = ["aria-label", "onClick"], ve = ["aria-label", "onClick"], ye = [
|
|
51
51
|
"aria-label",
|
|
52
52
|
"disabled",
|
|
53
53
|
"onClick"
|
|
54
|
-
],
|
|
54
|
+
], be = ["aria-valuenow"], xe = [
|
|
55
55
|
"src",
|
|
56
56
|
"alt",
|
|
57
57
|
"onClick"
|
|
58
|
-
],
|
|
58
|
+
], Se = {
|
|
59
59
|
key: 1,
|
|
60
60
|
class: "m-fileupload__card-name"
|
|
61
|
-
},
|
|
61
|
+
}, Ce = {
|
|
62
62
|
key: 2,
|
|
63
63
|
class: "m-fileupload__card-progress"
|
|
64
|
-
},
|
|
64
|
+
}, we = {
|
|
65
65
|
key: 3,
|
|
66
66
|
class: "m-fileupload__card-mask"
|
|
67
|
-
},
|
|
67
|
+
}, Te = ["aria-label", "onClick"], Ee = ["aria-label", "onClick"], De = [
|
|
68
68
|
"aria-label",
|
|
69
69
|
"disabled",
|
|
70
70
|
"onClick"
|
|
71
|
-
],
|
|
71
|
+
], Oe = ["aria-label"], ke = {
|
|
72
72
|
key: 6,
|
|
73
73
|
class: "m-fileupload__toolbar"
|
|
74
|
-
},
|
|
74
|
+
}, b = /* @__PURE__ */ l({
|
|
75
75
|
inheritAttrs: !1,
|
|
76
76
|
__name: "FileUpload",
|
|
77
77
|
props: {
|
|
@@ -133,17 +133,17 @@ var ae = [
|
|
|
133
133
|
"error",
|
|
134
134
|
"abort"
|
|
135
135
|
],
|
|
136
|
-
setup(l, { expose:
|
|
137
|
-
let
|
|
136
|
+
setup(l, { expose: b, emit: Ae }) {
|
|
137
|
+
let x = l, S = Ae, C = te(), { rootAttrs: je, controlAttrs: Me } = e(C, () => x.pt, { controlKey: "input" }), w = 0, T = h(null), E = h([]), D = h(!1), O = /* @__PURE__ */ new Map(), k = n(), A = i(() => x.chooseLabel ?? k.value.chooseFile), j = i(() => x.listType === "picture-card"), M = i(() => x.listType === "picture" || j.value), N = i(() => !!(x.action || x.httpRequest)), Ne = i(() => x.autoUpload && N.value), Pe = i(() => x.showFileList && E.value.length > 0 && !j.value), P = i(() => !j.value), F = i(() => !x.disabled && (x.limit == null || E.value.length < x.limit)), Fe = i(() => N.value && !x.autoUpload && E.value.some((e) => e.status === "ready" || e.status === "fail")), Ie = i(() => E.value.length > 0 && x.showFileList), Le = i(() => [
|
|
138
138
|
"m-fileupload",
|
|
139
|
-
`m-fileupload--${
|
|
140
|
-
`m-fileupload--${
|
|
139
|
+
`m-fileupload--${x.mode}`,
|
|
140
|
+
`m-fileupload--${x.listType}`,
|
|
141
141
|
{
|
|
142
|
-
"m-fileupload--disabled":
|
|
143
|
-
"m-fileupload--drag":
|
|
142
|
+
"m-fileupload--disabled": x.disabled,
|
|
143
|
+
"m-fileupload--drag": x.drag
|
|
144
144
|
}
|
|
145
145
|
]);
|
|
146
|
-
|
|
146
|
+
ne(() => x.fileList, (e) => {
|
|
147
147
|
e && (E.value = e.map((e) => ({
|
|
148
148
|
...e,
|
|
149
149
|
status: e.status ?? "success",
|
|
@@ -155,13 +155,13 @@ var ae = [
|
|
|
155
155
|
return w += 1, `m-upload-${Date.now()}-${w}`;
|
|
156
156
|
}
|
|
157
157
|
function L(e) {
|
|
158
|
-
E.value = e,
|
|
158
|
+
E.value = e, S("update:fileList", e);
|
|
159
159
|
}
|
|
160
160
|
function R(e, t) {
|
|
161
|
-
|
|
161
|
+
S("change", e, t);
|
|
162
162
|
}
|
|
163
163
|
function Re(e) {
|
|
164
|
-
let t =
|
|
164
|
+
let t = x.accept?.trim();
|
|
165
165
|
return !t || t.split(",").some((t) => {
|
|
166
166
|
let n = t.trim().toLowerCase();
|
|
167
167
|
return n ? n.startsWith(".") ? e.name.toLowerCase().endsWith(n) : n.endsWith("/*") ? e.type.toLowerCase().startsWith(n.slice(0, -1)) : e.type.toLowerCase() === n : !1;
|
|
@@ -189,35 +189,35 @@ var ae = [
|
|
|
189
189
|
e.url?.startsWith("blob:") && URL.revokeObjectURL(e.url);
|
|
190
190
|
}
|
|
191
191
|
async function V(e) {
|
|
192
|
-
if (
|
|
192
|
+
if (x.disabled) return;
|
|
193
193
|
let t = [];
|
|
194
194
|
for (let n of e) if (Re(n)) {
|
|
195
|
-
if (
|
|
196
|
-
|
|
195
|
+
if (x.maxSize != null && n.size > x.maxSize) {
|
|
196
|
+
S("exceed-size", n);
|
|
197
197
|
continue;
|
|
198
198
|
}
|
|
199
199
|
t.push(n);
|
|
200
200
|
}
|
|
201
|
-
let n =
|
|
201
|
+
let n = x.multiple ? t : t.slice(0, 1);
|
|
202
202
|
if (!n.length) return;
|
|
203
|
-
let r =
|
|
204
|
-
if (
|
|
205
|
-
|
|
203
|
+
let r = x.multiple ? E.value : [];
|
|
204
|
+
if (x.limit != null && r.length + n.length > x.limit) {
|
|
205
|
+
S("exceed", n);
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
x.multiple || E.value.forEach(B);
|
|
209
209
|
let i = [];
|
|
210
210
|
for (let e of n) {
|
|
211
211
|
let t = Be(e);
|
|
212
|
-
if (
|
|
212
|
+
if (x.beforeUpload && await x.beforeUpload(e, t) === !1) {
|
|
213
213
|
B(t);
|
|
214
214
|
continue;
|
|
215
215
|
}
|
|
216
216
|
i.push(t);
|
|
217
217
|
}
|
|
218
218
|
if (!i.length) return;
|
|
219
|
-
let a =
|
|
220
|
-
L(a),
|
|
219
|
+
let a = x.multiple ? [...r, ...i] : i;
|
|
220
|
+
L(a), S("select", i.map((e) => e.raw).filter(Boolean));
|
|
221
221
|
for (let e of i) R(e, a), Ne.value && J(e);
|
|
222
222
|
}
|
|
223
223
|
function H() {
|
|
@@ -228,14 +228,14 @@ var ae = [
|
|
|
228
228
|
V(Array.from(t.files ?? [])), t.value = "";
|
|
229
229
|
}
|
|
230
230
|
function U(e) {
|
|
231
|
-
|
|
231
|
+
x.disabled || (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy"), D.value = !0);
|
|
232
232
|
}
|
|
233
233
|
function W(e) {
|
|
234
234
|
let t = e.currentTarget, n = e.relatedTarget;
|
|
235
235
|
t && n && t.contains(n) || (D.value = !1);
|
|
236
236
|
}
|
|
237
237
|
function G(e) {
|
|
238
|
-
|
|
238
|
+
x.disabled || (e.preventDefault(), D.value = !1, V(Array.from(e.dataTransfer?.files ?? [])));
|
|
239
239
|
}
|
|
240
240
|
function K(e) {
|
|
241
241
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), H());
|
|
@@ -248,22 +248,22 @@ var ae = [
|
|
|
248
248
|
L(r), i && n && t.status != null && t.status !== n.status && R(i, r);
|
|
249
249
|
}
|
|
250
250
|
function He(e, t) {
|
|
251
|
-
let n = typeof
|
|
251
|
+
let n = typeof x.data == "function" ? x.data() : x.data ?? {};
|
|
252
252
|
return {
|
|
253
|
-
action:
|
|
254
|
-
method:
|
|
253
|
+
action: x.action ?? "",
|
|
254
|
+
method: x.method ?? "post",
|
|
255
255
|
file: t,
|
|
256
|
-
filename:
|
|
256
|
+
filename: x.name ?? "file",
|
|
257
257
|
data: n,
|
|
258
|
-
headers:
|
|
259
|
-
withCredentials:
|
|
258
|
+
headers: x.headers ?? {},
|
|
259
|
+
withCredentials: x.withCredentials,
|
|
260
260
|
onProgress: (t) => {
|
|
261
261
|
q(e.uid, {
|
|
262
262
|
percentage: t,
|
|
263
263
|
status: "uploading"
|
|
264
264
|
});
|
|
265
265
|
let n = E.value.find((t) => t.uid === e.uid);
|
|
266
|
-
n &&
|
|
266
|
+
n && S("progress", n, t);
|
|
267
267
|
},
|
|
268
268
|
onSuccess: (t) => {
|
|
269
269
|
O.delete(e.uid), q(e.uid, {
|
|
@@ -273,7 +273,7 @@ var ae = [
|
|
|
273
273
|
error: void 0
|
|
274
274
|
});
|
|
275
275
|
let n = E.value.find((t) => t.uid === e.uid);
|
|
276
|
-
n &&
|
|
276
|
+
n && S("success", n, t);
|
|
277
277
|
},
|
|
278
278
|
onError: (t) => {
|
|
279
279
|
if (O.delete(e.uid), t.message === "aborted") {
|
|
@@ -288,22 +288,22 @@ var ae = [
|
|
|
288
288
|
error: t.message
|
|
289
289
|
});
|
|
290
290
|
let n = E.value.find((t) => t.uid === e.uid);
|
|
291
|
-
n &&
|
|
291
|
+
n && S("error", n, t);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
async function J(e) {
|
|
296
296
|
let t = e.raw;
|
|
297
|
-
if (!t ||
|
|
297
|
+
if (!t || x.disabled || !N.value) return;
|
|
298
298
|
q(e.uid, {
|
|
299
299
|
status: "uploading",
|
|
300
300
|
percentage: e.percentage ?? 0,
|
|
301
301
|
error: void 0
|
|
302
302
|
});
|
|
303
303
|
let n = He(e, t);
|
|
304
|
-
if (
|
|
304
|
+
if (x.httpRequest) {
|
|
305
305
|
try {
|
|
306
|
-
let t =
|
|
306
|
+
let t = x.httpRequest(n);
|
|
307
307
|
if (t instanceof XMLHttpRequest) O.set(e.uid, t);
|
|
308
308
|
else if (t && typeof t.then == "function") {
|
|
309
309
|
let e = await t;
|
|
@@ -314,7 +314,7 @@ var ae = [
|
|
|
314
314
|
}
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
O.set(e.uid,
|
|
317
|
+
O.set(e.uid, re(n));
|
|
318
318
|
}
|
|
319
319
|
function Y() {
|
|
320
320
|
for (let e of E.value) (e.status === "ready" || e.status === "fail") && J(e);
|
|
@@ -322,26 +322,26 @@ var ae = [
|
|
|
322
322
|
function X(e) {
|
|
323
323
|
let t = e ? [e.uid] : [...O.keys()];
|
|
324
324
|
for (let e of t) O.get(e)?.abort(), O.delete(e);
|
|
325
|
-
|
|
325
|
+
S("abort", e);
|
|
326
326
|
}
|
|
327
327
|
async function Z(e) {
|
|
328
|
-
|
|
328
|
+
x.disabled || x.beforeRemove && await x.beforeRemove(e, E.value) === !1 || (X(e), B(e), L(E.value.filter((t) => t.uid !== e.uid)), S("remove", e));
|
|
329
329
|
}
|
|
330
330
|
function Q(e) {
|
|
331
|
-
|
|
331
|
+
S("preview", e);
|
|
332
332
|
}
|
|
333
333
|
function $() {
|
|
334
334
|
X(), E.value.forEach(B), L([]);
|
|
335
335
|
}
|
|
336
|
-
return
|
|
336
|
+
return p(() => {
|
|
337
337
|
X(), E.value.forEach(B);
|
|
338
|
-
}),
|
|
338
|
+
}), b({
|
|
339
339
|
openPicker: H,
|
|
340
340
|
submit: Y,
|
|
341
341
|
abort: X,
|
|
342
342
|
clear: $,
|
|
343
343
|
clearFiles: $
|
|
344
|
-
}), (e, n) => (
|
|
344
|
+
}), (e, n) => (m(), o("div", u(y(je), { class: Le.value }), [
|
|
345
345
|
s("input", u({
|
|
346
346
|
ref_key: "inputRef",
|
|
347
347
|
ref: T,
|
|
@@ -350,10 +350,9 @@ var ae = [
|
|
|
350
350
|
multiple: l.multiple || l.directory,
|
|
351
351
|
accept: l.accept,
|
|
352
352
|
disabled: l.disabled,
|
|
353
|
-
webkitdirectory: l.directory || void 0
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
l.drag && P.value ? (p(), o("div", {
|
|
353
|
+
webkitdirectory: l.directory || void 0
|
|
354
|
+
}, y(Me), { onChange: Ve }), null, 16, ie),
|
|
355
|
+
l.drag && P.value ? (m(), o("div", {
|
|
357
356
|
key: 0,
|
|
358
357
|
class: d(["m-fileupload__dragger", { "m-fileupload__dragger--over": D.value }]),
|
|
359
358
|
role: "button",
|
|
@@ -366,70 +365,70 @@ var ae = [
|
|
|
366
365
|
onDragover: U,
|
|
367
366
|
onDragleave: W,
|
|
368
367
|
onDrop: G
|
|
369
|
-
}, [
|
|
368
|
+
}, [_(e.$slots, "default", {}, () => [c(t, {
|
|
370
369
|
class: "m-fileupload__icon",
|
|
371
370
|
name: "upload"
|
|
372
|
-
}), s("p",
|
|
371
|
+
}), s("p", oe, [ee(v(y(k).dropFileHere) + " ", 1), s("em", null, v(y(k).clickToUpload), 1)])])], 42, ae)) : P.value && e.$slots.trigger ? (m(), o("button", {
|
|
373
372
|
key: 1,
|
|
374
373
|
type: "button",
|
|
375
374
|
class: "m-fileupload__choose m-fileupload__choose--slot",
|
|
376
375
|
disabled: l.disabled || !F.value,
|
|
377
376
|
onClick: H
|
|
378
|
-
}, [
|
|
377
|
+
}, [_(e.$slots, "trigger")], 8, se)) : P.value ? (m(), o("button", {
|
|
379
378
|
key: 2,
|
|
380
379
|
type: "button",
|
|
381
380
|
class: "m-fileupload__choose",
|
|
382
381
|
disabled: l.disabled || !F.value,
|
|
383
382
|
onClick: H
|
|
384
|
-
},
|
|
385
|
-
e.$slots.tip ? (
|
|
386
|
-
Pe.value && !j.value ? (
|
|
383
|
+
}, v(A.value), 9, ce)) : a("", !0),
|
|
384
|
+
e.$slots.tip ? (m(), o("div", le, [_(e.$slots, "tip")])) : a("", !0),
|
|
385
|
+
Pe.value && !j.value ? (m(), o("ul", ue, [(m(!0), o(r, null, g(E.value, (n) => (m(), o("li", {
|
|
387
386
|
key: n.uid,
|
|
388
387
|
class: d(["m-fileupload__file", [`m-fileupload__file--${n.status}`, { "m-fileupload__file--picture": M.value }]])
|
|
389
|
-
}, [
|
|
390
|
-
M.value && n.url && z(n) ? (
|
|
388
|
+
}, [_(e.$slots, "file", { file: n }, () => [s("div", de, [
|
|
389
|
+
M.value && n.url && z(n) ? (m(), o("img", {
|
|
391
390
|
key: 0,
|
|
392
391
|
class: "m-fileupload__thumb",
|
|
393
392
|
src: n.url,
|
|
394
393
|
alt: n.name,
|
|
395
394
|
onClick: (e) => Q(n)
|
|
396
|
-
}, null, 8,
|
|
397
|
-
s("span",
|
|
398
|
-
n.size == null ? a("", !0) : (
|
|
399
|
-
n.status === "fail" ? (
|
|
400
|
-
s("span",
|
|
401
|
-
n.url && z(n) ? (
|
|
395
|
+
}, null, 8, fe)) : a("", !0),
|
|
396
|
+
s("span", pe, v(n.name), 1),
|
|
397
|
+
n.size == null ? a("", !0) : (m(), o("span", me, v(ze(n.size)), 1)),
|
|
398
|
+
n.status === "fail" ? (m(), o("span", he, v(n.error || y(k).uploadFailed), 1)) : a("", !0),
|
|
399
|
+
s("span", ge, [
|
|
400
|
+
n.url && z(n) ? (m(), o("button", {
|
|
402
401
|
key: 0,
|
|
403
402
|
type: "button",
|
|
404
403
|
class: "m-fileupload__action",
|
|
405
|
-
"aria-label":
|
|
404
|
+
"aria-label": y(k).previewFile,
|
|
406
405
|
onClick: (e) => Q(n)
|
|
407
406
|
}, [c(t, {
|
|
408
407
|
name: "eye",
|
|
409
408
|
size: "sm"
|
|
410
|
-
})], 8,
|
|
411
|
-
n.status === "fail" ? (
|
|
409
|
+
})], 8, _e)) : a("", !0),
|
|
410
|
+
n.status === "fail" ? (m(), o("button", {
|
|
412
411
|
key: 1,
|
|
413
412
|
type: "button",
|
|
414
413
|
class: "m-fileupload__action",
|
|
415
|
-
"aria-label":
|
|
414
|
+
"aria-label": y(k).retryUpload,
|
|
416
415
|
onClick: (e) => J(n)
|
|
417
416
|
}, [c(t, {
|
|
418
417
|
name: "refresh",
|
|
419
418
|
size: "sm"
|
|
420
|
-
})], 8,
|
|
419
|
+
})], 8, ve)) : a("", !0),
|
|
421
420
|
s("button", {
|
|
422
421
|
type: "button",
|
|
423
422
|
class: "m-fileupload__action",
|
|
424
|
-
"aria-label":
|
|
423
|
+
"aria-label": y(k).removeFile,
|
|
425
424
|
disabled: l.disabled,
|
|
426
425
|
onClick: (e) => Z(n)
|
|
427
426
|
}, [c(t, {
|
|
428
427
|
name: "trash",
|
|
429
428
|
size: "sm"
|
|
430
|
-
})], 8,
|
|
429
|
+
})], 8, ye)
|
|
431
430
|
])
|
|
432
|
-
]), n.status === "uploading" ? (
|
|
431
|
+
]), n.status === "uploading" ? (m(), o("div", {
|
|
433
432
|
key: 0,
|
|
434
433
|
class: "m-fileupload__progress",
|
|
435
434
|
role: "progressbar",
|
|
@@ -437,73 +436,73 @@ var ae = [
|
|
|
437
436
|
"aria-valuemax": 100,
|
|
438
437
|
"aria-valuenow": Math.round(n.percentage ?? 0),
|
|
439
438
|
style: f({ width: `${n.percentage ?? 0}%` })
|
|
440
|
-
}, null, 12,
|
|
441
|
-
j.value ? (
|
|
439
|
+
}, null, 12, be)) : a("", !0)])], 2))), 128))])) : a("", !0),
|
|
440
|
+
j.value ? (m(), o("div", {
|
|
442
441
|
key: 5,
|
|
443
442
|
class: d(["m-fileupload__cards", { "m-fileupload__cards--over": D.value }]),
|
|
444
443
|
onDragenter: U,
|
|
445
444
|
onDragover: U,
|
|
446
445
|
onDragleave: W,
|
|
447
446
|
onDrop: G
|
|
448
|
-
}, [(
|
|
447
|
+
}, [(m(!0), o(r, null, g(l.showFileList ? E.value : [], (n) => (m(), o("div", {
|
|
449
448
|
key: n.uid,
|
|
450
449
|
class: d(["m-fileupload__card", `m-fileupload__card--${n.status}`])
|
|
451
|
-
}, [
|
|
450
|
+
}, [_(e.$slots, "file", { file: n }, () => [n.url && z(n) ? (m(), o("img", {
|
|
452
451
|
key: 0,
|
|
453
452
|
class: "m-fileupload__card-image",
|
|
454
453
|
src: n.url,
|
|
455
454
|
alt: n.name,
|
|
456
455
|
onClick: (e) => Q(n)
|
|
457
|
-
}, null, 8,
|
|
458
|
-
n.url && z(n) ? (
|
|
456
|
+
}, null, 8, xe)) : (m(), o("span", Se, v(n.name), 1)), n.status === "uploading" ? (m(), o("div", Ce, v(Math.round(n.percentage ?? 0)) + "% ", 1)) : (m(), o("div", we, [
|
|
457
|
+
n.url && z(n) ? (m(), o("button", {
|
|
459
458
|
key: 0,
|
|
460
459
|
type: "button",
|
|
461
460
|
class: "m-fileupload__action",
|
|
462
|
-
"aria-label":
|
|
461
|
+
"aria-label": y(k).previewFile,
|
|
463
462
|
onClick: (e) => Q(n)
|
|
464
463
|
}, [c(t, {
|
|
465
464
|
name: "eye",
|
|
466
465
|
size: "sm"
|
|
467
|
-
})], 8,
|
|
468
|
-
n.status === "fail" ? (
|
|
466
|
+
})], 8, Te)) : a("", !0),
|
|
467
|
+
n.status === "fail" ? (m(), o("button", {
|
|
469
468
|
key: 1,
|
|
470
469
|
type: "button",
|
|
471
470
|
class: "m-fileupload__action",
|
|
472
|
-
"aria-label":
|
|
471
|
+
"aria-label": y(k).retryUpload,
|
|
473
472
|
onClick: (e) => J(n)
|
|
474
473
|
}, [c(t, {
|
|
475
474
|
name: "refresh",
|
|
476
475
|
size: "sm"
|
|
477
|
-
})], 8,
|
|
476
|
+
})], 8, Ee)) : a("", !0),
|
|
478
477
|
s("button", {
|
|
479
478
|
type: "button",
|
|
480
479
|
class: "m-fileupload__action",
|
|
481
|
-
"aria-label":
|
|
480
|
+
"aria-label": y(k).removeFile,
|
|
482
481
|
disabled: l.disabled,
|
|
483
482
|
onClick: (e) => Z(n)
|
|
484
483
|
}, [c(t, {
|
|
485
484
|
name: "trash",
|
|
486
485
|
size: "sm"
|
|
487
|
-
})], 8,
|
|
488
|
-
]))])], 2))), 128)), F.value ? (
|
|
486
|
+
})], 8, De)
|
|
487
|
+
]))])], 2))), 128)), F.value ? (m(), o("button", {
|
|
489
488
|
key: 0,
|
|
490
489
|
type: "button",
|
|
491
490
|
class: "m-fileupload__card m-fileupload__card--add",
|
|
492
|
-
"aria-label":
|
|
491
|
+
"aria-label": y(k).addFile,
|
|
493
492
|
onClick: H
|
|
494
|
-
}, [c(t, { name: "plus" })], 8,
|
|
495
|
-
Ie.value ? (
|
|
493
|
+
}, [c(t, { name: "plus" })], 8, Oe)) : a("", !0)], 34)) : a("", !0),
|
|
494
|
+
Ie.value ? (m(), o("div", ke, [Fe.value ? (m(), o("button", {
|
|
496
495
|
key: 0,
|
|
497
496
|
type: "button",
|
|
498
497
|
class: "m-fileupload__choose",
|
|
499
498
|
onClick: Y
|
|
500
|
-
},
|
|
499
|
+
}, v(y(k).uploadFile), 1)) : a("", !0), s("button", {
|
|
501
500
|
type: "button",
|
|
502
501
|
class: "m-fileupload__clear",
|
|
503
502
|
onClick: $
|
|
504
|
-
},
|
|
503
|
+
}, v(y(k).clear), 1)])) : a("", !0)
|
|
505
504
|
], 16));
|
|
506
505
|
}
|
|
507
506
|
});
|
|
508
507
|
//#endregion
|
|
509
|
-
export {
|
|
508
|
+
export { b as MFileUpload };
|