morya-ui 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/{Button--RkQybU-.js → Button-B5X_R4Md.js} +2 -2
- package/dist/{Card-BQfmv5Iw.js → Card-Dsmnzong.js} +1 -1
- package/dist/{Checkbox-CL05RRUD.js → Checkbox-BzbAUfyZ.js} +2 -2
- package/dist/FlyoutSubmenu-BrUPmJa1.js +45 -0
- package/dist/Icon-lcN1rS87.js +610 -0
- package/dist/{Pagination-BKvR-RUW.js → Pagination-CVrH8Ypi.js} +3 -3
- package/dist/Popover-BQ07q4VV.js +179 -0
- package/dist/ProgressSpinner-BeWVF6Jv.js +105 -0
- package/dist/{Radio-DsaKvbhk.js → Radio-rF6zdR5Y.js} +2 -2
- package/dist/{ScrollBody-D2IHKP6U.js → ScrollBody-5hUnHj_M.js} +1 -1
- package/dist/{Scrollbar-BYnCO8fv.js → Scrollbar-DTeJ8P5b.js} +2 -2
- package/dist/Tooltip-D5DO0B3z.js +105 -0
- package/dist/VirtualScroller-CHoFCmpP.js +75 -0
- package/dist/accordion/index.js +42 -39
- package/dist/accordion/style.css +293 -40
- package/dist/auto-complete/index.js +185 -124
- package/dist/auto-complete/style.css +497 -96
- package/dist/auto-complete/style.js +2 -0
- package/dist/avatar/index.js +2 -2
- package/dist/avatar/style.css +255 -45
- package/dist/badge/index.js +25 -20
- package/dist/badge/style.css +275 -47
- package/dist/block-ui/index.js +26 -13
- package/dist/block-ui/style.css +250 -40
- package/dist/breadcrumb/index.js +2 -2
- package/dist/breadcrumb/style.css +250 -40
- package/dist/button/index.js +2 -2
- package/dist/button/style.css +251 -41
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +250 -40
- package/dist/carousel/index.js +3 -3
- package/dist/carousel/style.css +251 -41
- package/dist/cascade-select/index.js +172 -143
- package/dist/cascade-select/style.css +475 -85
- package/dist/cascade-select/style.js +1 -0
- package/dist/checkbox/index.js +2 -2
- package/dist/checkbox/style.css +250 -40
- package/dist/chip/index.js +2 -2
- package/dist/chip/style.css +258 -42
- package/dist/command-menu/index.js +58 -45
- package/dist/command-menu/style.css +256 -44
- package/dist/components/Accordion/Accordion.vue.d.ts +2 -2
- package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
- package/dist/components/Accordion/styles.css +43 -0
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts +11 -4
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +47 -52
- package/dist/components/AutoComplete/types.d.ts +8 -0
- package/dist/components/AutoComplete/types.d.ts.map +1 -1
- package/dist/components/Avatar/styles.css +4 -4
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/styles.css +25 -7
- package/dist/components/BlockUI/BlockUI.vue.d.ts +2 -0
- package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
- package/dist/components/BlockUI/types.d.ts +3 -0
- package/dist/components/BlockUI/types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
- package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
- package/dist/components/CascadeSelect/styles.css +39 -38
- package/dist/components/CascadeSelect/types.d.ts +3 -0
- package/dist/components/CascadeSelect/types.d.ts.map +1 -1
- package/dist/components/Chip/styles.css +7 -1
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts +2 -0
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/CommandMenu/styles.css +2 -0
- package/dist/components/CommandMenu/types.d.ts +3 -0
- package/dist/components/CommandMenu/types.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/types.d.ts +1 -1
- package/dist/components/ConfigProvider/types.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/types.d.ts +3 -0
- package/dist/components/ConfirmDialog/types.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +2 -0
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
- package/dist/components/ConfirmPopup/types.d.ts +3 -0
- package/dist/components/ConfirmPopup/types.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +2 -0
- package/dist/components/ContextMenu/types.d.ts +3 -0
- package/dist/components/ContextMenu/types.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.css +65 -21
- package/dist/components/DatePicker/types.d.ts +3 -0
- package/dist/components/DatePicker/types.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +2 -0
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/styles.css +190 -4
- package/dist/components/Dialog/types.d.ts +3 -0
- package/dist/components/Dialog/types.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +2 -0
- package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css +189 -4
- package/dist/components/Drawer/types.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +4 -0
- package/dist/components/Dropdown/types.d.ts +3 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/Empty/index.d.ts.map +1 -1
- package/dist/components/Empty/styles.css +6 -6
- package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
- package/dist/components/Fieldset/styles.css +17 -6
- package/dist/components/FileUpload/FileUpload.vue.d.ts +1 -1
- package/dist/components/FloatLabel/styles.css +19 -7
- package/dist/components/Form/styles.css +21 -0
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Icon/icon-categories.d.ts +21 -0
- package/dist/components/Icon/icon-categories.d.ts.map +1 -0
- package/dist/components/Icon/icons-tabler.d.ts +77 -0
- package/dist/components/Icon/icons-tabler.d.ts.map +1 -0
- package/dist/components/Icon/icons-types.d.ts +36 -0
- package/dist/components/Icon/icons-types.d.ts.map +1 -0
- package/dist/components/Icon/icons.d.ts +75 -32
- package/dist/components/Icon/icons.d.ts.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/styles.css +1 -1
- package/dist/components/IconField/IconField.vue.d.ts +3 -1
- package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
- package/dist/components/IconField/styles.css +306 -31
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/styles.css +191 -35
- package/dist/components/InputNumber/styles.css +103 -40
- package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
- package/dist/components/InputPassword/styles.css +79 -79
- package/dist/components/InputTags/styles.css +3 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +4 -8
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutSider.vue.d.ts +4 -6
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +2 -0
- package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +29 -54
- package/dist/components/Layout/types.d.ts +6 -7
- package/dist/components/Layout/types.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.vue.d.ts +7 -2
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Listbox/styles.css +10 -0
- package/dist/components/Listbox/types.d.ts +5 -0
- package/dist/components/Listbox/types.d.ts.map +1 -1
- package/dist/components/Loading/Loading.vue.d.ts +2 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -1
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -1
- package/dist/components/Loading/loading.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +25 -17
- package/dist/components/Loading/types.d.ts +3 -0
- package/dist/components/Loading/types.d.ts.map +1 -1
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts +2 -0
- package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
- package/dist/components/MegaMenu/styles.css +1 -0
- package/dist/components/MegaMenu/types.d.ts +3 -0
- package/dist/components/MegaMenu/types.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts +3 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +14 -10
- package/dist/components/Menu/types.d.ts +3 -0
- package/dist/components/Menu/types.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.vue.d.ts +2 -0
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +4 -0
- package/dist/components/Menubar/types.d.ts +3 -0
- package/dist/components/Menubar/types.d.ts.map +1 -1
- package/dist/components/Message/Message.vue.d.ts +2 -0
- package/dist/components/Message/Message.vue.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +3 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MeterGroup/styles.css +2 -2
- package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +21 -6
- package/dist/components/Popover/Popover.vue.d.ts +2 -0
- package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
- package/dist/components/Popover/types.d.ts +3 -0
- package/dist/components/Popover/types.d.ts.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/ProgressBar/styles.css +30 -8
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/styles.css +3 -3
- package/dist/components/Result/index.d.ts.map +1 -1
- package/dist/components/Result/styles.css +17 -17
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts +1 -1
- package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/Scrollbar/styles.css +3 -3
- package/dist/components/Select/Select.vue.d.ts +10 -3
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/styles.css +13 -91
- package/dist/components/Select/types.d.ts +8 -0
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Sidebar/styles.css +8 -10
- package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts +2 -0
- package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
- package/dist/components/SpeedDial/types.d.ts +3 -0
- package/dist/components/SpeedDial/types.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.vue.d.ts +2 -0
- package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
- package/dist/components/SplitButton/types.d.ts +3 -0
- package/dist/components/SplitButton/types.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.vue.d.ts +5 -3
- package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
- package/dist/components/Splitter/index.d.ts +1 -1
- package/dist/components/Splitter/index.d.ts.map +1 -1
- package/dist/components/Splitter/styles.css +12 -0
- package/dist/components/Splitter/types.d.ts +9 -3
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css +18 -16
- package/dist/components/Switch/Switch.vue.d.ts +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +8 -8
- package/dist/components/Tag/styles.css +4 -2
- package/dist/components/Textarea/styles.css +15 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts +3 -1
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +2 -0
- package/dist/components/TieredMenu/types.d.ts +3 -0
- package/dist/components/TieredMenu/types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.vue.d.ts +2 -0
- package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +3 -0
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/components/Toolbar/styles.css +1 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/types.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Tree/styles.css +1 -1
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts +2 -0
- package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +5 -57
- package/dist/components/TreeSelect/types.d.ts +3 -0
- package/dist/components/TreeSelect/types.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +1 -1
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +7 -3
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/index.d.ts +1 -1
- package/dist/components/VirtualScroller/index.d.ts.map +1 -1
- package/dist/components/VirtualScroller/types.d.ts +5 -0
- package/dist/components/VirtualScroller/types.d.ts.map +1 -1
- package/dist/{config-BdK5ccNT.js → config-CapALqt3.js} +10 -2
- package/dist/config-provider/index.js +5 -3
- package/dist/config-provider/style.css +441 -75
- package/dist/confirm-dialog/index.js +87 -74
- package/dist/confirm-dialog/style.css +441 -45
- package/dist/confirm-popup/index.js +82 -68
- package/dist/confirm-popup/style.css +251 -41
- package/dist/context-menu/index.js +112 -99
- package/dist/context-menu/style.css +256 -44
- package/dist/data-view/index.js +4 -4
- package/dist/data-view/style.css +253 -43
- package/dist/date-picker/index.js +166 -152
- package/dist/date-picker/style.css +316 -62
- package/dist/dialog/index.js +76 -63
- package/dist/dialog/style.css +441 -45
- package/dist/divider/style.css +250 -40
- package/dist/dock/index.js +3 -3
- package/dist/dock/style.css +251 -41
- package/dist/drawer/index.js +72 -61
- package/dist/drawer/style.css +440 -45
- package/dist/dropdown/index.js +145 -131
- package/dist/dropdown/style.css +258 -44
- package/dist/empty/index.js +3 -3
- package/dist/empty/style.css +257 -47
- package/dist/fieldset/index.js +19 -19
- package/dist/fieldset/style.css +268 -47
- package/dist/file-upload/index.js +3 -3
- package/dist/file-upload/style.css +251 -41
- package/dist/flex/index.js +2 -2
- package/dist/flex/style.css +250 -40
- package/dist/float-label/index.js +1 -1
- package/dist/float-label/style.css +269 -47
- package/dist/fluid/index.js +1 -1
- package/dist/fluid/style.css +250 -40
- package/dist/form/index.js +2 -2
- package/dist/form/style.css +271 -40
- package/dist/gallery/index.js +4 -4
- package/dist/gallery/style.css +254 -44
- package/dist/grid/index.js +1 -1
- package/dist/grid/style.css +250 -40
- package/dist/icon/index.js +212 -2
- package/dist/icon/style.css +251 -41
- package/dist/{icon-xUOyawgJ.js → icon-DWXkh-RM.js} +1 -1
- package/dist/icon-field/index.js +42 -8
- package/dist/icon-field/style.css +913 -71
- package/dist/icon-field/style.js +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5336 -4326
- package/dist/inplace/index.js +1 -1
- package/dist/inplace/style.css +250 -40
- package/dist/input/index.js +79 -81
- package/dist/input/style.css +442 -76
- package/dist/input-color/index.js +3 -3
- package/dist/input-color/style.css +250 -40
- package/dist/input-group/index.js +1 -1
- package/dist/input-group/style.css +250 -40
- package/dist/input-number/index.js +4 -4
- package/dist/input-number/style.css +354 -81
- package/dist/input-otp/index.js +3 -3
- package/dist/input-otp/style.css +250 -40
- package/dist/input-password/index.js +86 -85
- package/dist/input-password/style.css +330 -120
- package/dist/input-tags/index.js +4 -4
- package/dist/input-tags/style.css +254 -42
- package/dist/knob/index.js +1 -1
- package/dist/knob/style.css +250 -40
- package/dist/label/index.js +1 -1
- package/dist/label/style.css +250 -40
- package/dist/layout/index.js +65 -88
- package/dist/layout/style.css +283 -98
- package/dist/listbox/index.js +142 -87
- package/dist/listbox/style.css +291 -43
- package/dist/listbox/style.js +1 -0
- package/dist/loading/index.js +195 -156
- package/dist/loading/style.css +275 -57
- package/dist/{locale-B36KH7c3.js → locale-Bzm2nbEp.js} +1 -1
- package/dist/mega-menu/index.js +131 -119
- package/dist/mega-menu/style.css +252 -41
- package/dist/menu/index.js +278 -261
- package/dist/menu/style.css +268 -54
- package/dist/menubar/index.js +145 -133
- package/dist/menubar/style.css +258 -44
- package/dist/message/index.js +120 -107
- package/dist/message/style.css +251 -41
- package/dist/meter-group/index.js +1 -1
- package/dist/meter-group/style.css +252 -42
- package/dist/order-list/index.js +4 -4
- package/dist/order-list/style.css +251 -41
- package/dist/page/index.js +3 -3
- package/dist/page/style.css +251 -41
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +251 -41
- package/dist/panel/index.js +31 -31
- package/dist/panel/style.css +272 -47
- package/dist/pick-list/index.js +4 -4
- package/dist/pick-list/style.css +251 -41
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +250 -40
- package/dist/progress-bar/index.js +5 -2
- package/dist/progress-bar/style.css +280 -48
- package/dist/progress-spinner/index.js +1 -1
- package/dist/progress-spinner/style.css +253 -43
- package/dist/radio/index.js +2 -2
- package/dist/radio/style.css +250 -40
- package/dist/rating/index.js +4 -4
- package/dist/rating/style.css +251 -41
- package/dist/result/index.js +3 -3
- package/dist/result/style.css +268 -58
- package/dist/scroll-top/index.js +4 -4
- package/dist/scroll-top/style.css +254 -44
- package/dist/scrollbar/index.js +1 -1
- package/dist/scrollbar/style.css +253 -43
- package/dist/select/index.js +247 -152
- package/dist/select/style.css +477 -138
- package/dist/select/style.js +2 -0
- package/dist/select-button/index.js +2 -2
- package/dist/select-button/style.css +250 -40
- package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -1
- package/dist/shared/componentDefaults.d.ts +62 -0
- package/dist/shared/componentDefaults.d.ts.map +1 -1
- package/dist/shared/config.d.ts +13 -2
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/styles/control-suffix.css +14 -3
- package/dist/shared/styles/select-overlay.css +167 -0
- package/dist/shared/useFloatingViewportSync.d.ts +10 -0
- package/dist/shared/useFloatingViewportSync.d.ts.map +1 -0
- package/dist/shared/usePauseOffscreen.d.ts +14 -0
- package/dist/shared/usePauseOffscreen.d.ts.map +1 -0
- package/dist/sidebar/index.js +4 -4
- package/dist/sidebar/style.css +259 -51
- package/dist/skeleton/index.js +34 -19
- package/dist/skeleton/style.css +250 -40
- package/dist/slider/index.js +3 -3
- package/dist/slider/style.css +250 -40
- package/dist/space/index.js +2 -2
- package/dist/space/style.css +250 -40
- package/dist/speed-dial/index.js +112 -98
- package/dist/speed-dial/style.css +251 -41
- package/dist/split-button/index.js +106 -92
- package/dist/split-button/style.css +251 -41
- package/dist/splitter/index.js +94 -80
- package/dist/splitter/style.css +262 -40
- package/dist/status/index.js +30 -26
- package/dist/status/style.css +269 -57
- package/dist/stepper/index.js +2 -2
- package/dist/stepper/style.css +251 -41
- package/dist/styles/base.css +154 -28
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +2 -2
- package/dist/switch/style.css +250 -40
- package/dist/table/index.js +11 -15
- package/dist/table/style.css +265 -55
- package/dist/tabs/index.js +4 -4
- package/dist/tabs/style.css +254 -44
- package/dist/tag/index.js +3 -3
- package/dist/tag/style.css +255 -43
- package/dist/terminal/index.js +3 -3
- package/dist/terminal/style.css +250 -40
- package/dist/textarea/index.js +4 -4
- package/dist/textarea/style.css +266 -42
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/motionPresets.d.ts +30 -0
- package/dist/theme/motionPresets.d.ts.map +1 -0
- package/dist/theme/styles.css +96 -12
- package/dist/theme/tokens.d.ts +17 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/theme/useMotionTransition.d.ts +19 -0
- package/dist/theme/useMotionTransition.d.ts.map +1 -0
- package/dist/tiered-menu/index.js +81 -67
- package/dist/tiered-menu/style.css +256 -44
- package/dist/timeline/index.js +3 -3
- package/dist/timeline/style.css +254 -44
- package/dist/toast/index.js +49 -36
- package/dist/toast/style.css +251 -41
- package/dist/toggle-button/index.js +3 -3
- package/dist/toggle-button/style.css +251 -41
- package/dist/toolbar/index.js +1 -1
- package/dist/toolbar/style.css +251 -40
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +250 -40
- package/dist/tree/index.js +5 -8
- package/dist/tree/style.css +252 -42
- package/dist/tree-select/index.js +227 -203
- package/dist/tree-select/style.css +442 -105
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +4 -4
- package/dist/tree-table/style.css +252 -42
- package/dist/{useComponentAttrs-BTYEe61P.js → useComponentAttrs-e-5QAjdw.js} +1 -1
- package/dist/useFloatingViewportSync-DZdJ7W8n.js +19 -0
- package/dist/useMotionTransition-Bxnnb_9u.js +49 -0
- package/dist/usePauseOffscreen-BIikV_gj.js +25 -0
- package/dist/virtual-scroller/index.js +2 -56
- package/dist/virtual-scroller/style.css +253 -43
- package/package.json +2 -1
- package/dist/FlyoutSubmenu-B_bkgKag.js +0 -49
- package/dist/Icon-DfpIfo2L.js +0 -521
- package/dist/Popover-Dq_p0vib.js +0 -166
- package/dist/ProgressSpinner-DuBpPkna.js +0 -90
- package/dist/Tooltip-CU1xFt_N.js +0 -93
package/dist/loading/index.js
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { i as t } from "../types-DGuu4Eg4.js";
|
|
3
|
-
import { n } from "../
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { t as n } from "../usePauseOffscreen-BIikV_gj.js";
|
|
4
|
+
import { n as r, t as i } from "../useMotionTransition-Bxnnb_9u.js";
|
|
5
|
+
import { n as a } from "../overlay-oR-5MDuE.js";
|
|
6
|
+
import { i as o } from "../content-h8POj44-.js";
|
|
7
|
+
import { t as s } from "../overlayHost-78CGtMgR.js";
|
|
8
|
+
import { c, i as l, l as u, t as d } from "../config-CapALqt3.js";
|
|
9
|
+
import { n as f } from "../locale-Bzm2nbEp.js";
|
|
8
10
|
import "./style.js";
|
|
9
|
-
import { Fragment as
|
|
11
|
+
import { Fragment as p, Teleport as m, Transition as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createStaticVNode as x, createVNode as S, defineComponent as C, h as w, mergeProps as T, normalizeClass as ee, normalizeStyle as E, onBeforeUnmount as D, openBlock as O, reactive as k, ref as A, render as j, renderList as M, renderSlot as N, toDisplayString as P, toValue as F, unref as I, useAttrs as te, useSlots as ne, watch as L, withCtx as R } from "vue";
|
|
10
12
|
//#region src/components/Loading/types.ts
|
|
11
|
-
var
|
|
13
|
+
var z = [
|
|
12
14
|
"circular",
|
|
13
15
|
"aurora",
|
|
14
16
|
"bounce",
|
|
15
17
|
"wave",
|
|
16
18
|
"pulse",
|
|
17
19
|
"stardust"
|
|
18
|
-
],
|
|
19
|
-
function
|
|
20
|
-
return typeof e == "string" &&
|
|
20
|
+
], B = new Set(z);
|
|
21
|
+
function V(e) {
|
|
22
|
+
return typeof e == "string" && B.has(e);
|
|
21
23
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
24
|
+
function H(e) {
|
|
25
|
+
return V(e) ? e : "circular";
|
|
24
26
|
}
|
|
25
27
|
//#endregion
|
|
26
28
|
//#region src/components/Loading/LoadingIndicator.vue?vue&type=script&setup=true&lang.ts
|
|
27
|
-
var
|
|
29
|
+
var U = ["aria-label"], W = {
|
|
28
30
|
class: "m-loading-indicator__graphic",
|
|
29
31
|
"aria-hidden": "true"
|
|
30
|
-
},
|
|
32
|
+
}, re = {
|
|
31
33
|
key: 0,
|
|
32
34
|
class: "m-loading-aurora"
|
|
33
|
-
},
|
|
35
|
+
}, ie = {
|
|
34
36
|
key: 1,
|
|
35
37
|
class: "m-loading-bounce"
|
|
36
|
-
},
|
|
38
|
+
}, ae = {
|
|
37
39
|
key: 2,
|
|
38
40
|
class: "m-loading-wave"
|
|
39
|
-
},
|
|
41
|
+
}, oe = {
|
|
40
42
|
key: 3,
|
|
41
43
|
class: "m-loading-pulse"
|
|
42
|
-
},
|
|
44
|
+
}, se = {
|
|
43
45
|
key: 4,
|
|
44
46
|
class: "m-loading-stardust"
|
|
45
|
-
},
|
|
47
|
+
}, ce = {
|
|
46
48
|
key: 5,
|
|
47
49
|
class: "m-loading-circular"
|
|
48
|
-
},
|
|
50
|
+
}, le = {
|
|
49
51
|
key: 0,
|
|
50
52
|
class: "m-loading-indicator__tip"
|
|
51
|
-
},
|
|
53
|
+
}, G = /* @__PURE__ */ C({
|
|
52
54
|
name: "MLoadingIndicator",
|
|
53
55
|
__name: "LoadingIndicator",
|
|
54
56
|
props: {
|
|
@@ -58,50 +60,70 @@ var L = ["aria-label"], R = {
|
|
|
58
60
|
size: {}
|
|
59
61
|
},
|
|
60
62
|
setup(e) {
|
|
61
|
-
let
|
|
62
|
-
let e = t(
|
|
63
|
+
let r = e, i = f(), a = A(null), { pauseAttrs: o } = n(a, !0), s = l("Loading"), c = g(() => H(r.effect ?? s.value.effect)), u = g(() => r.size ?? s.value.size), d = g(() => {
|
|
64
|
+
let e = t(u.value);
|
|
63
65
|
return {
|
|
64
66
|
"m-loading-indicator--small": e === "small",
|
|
65
67
|
"m-loading-indicator--large": e === "large"
|
|
66
68
|
};
|
|
67
|
-
}),
|
|
68
|
-
return (t, n) => (
|
|
69
|
-
|
|
69
|
+
}), m = g(() => r.ariaLabel ?? (r.text ? void 0 : i.value.loading));
|
|
70
|
+
return (t, n) => (O(), y("div", T({
|
|
71
|
+
ref_key: "rootRef",
|
|
72
|
+
ref: a
|
|
73
|
+
}, I(o), {
|
|
74
|
+
class: ["m-loading-indicator", d.value],
|
|
70
75
|
role: "status",
|
|
71
76
|
"aria-live": "polite",
|
|
72
|
-
"aria-label":
|
|
73
|
-
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
]])) :
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
]])) :
|
|
77
|
+
"aria-label": m.value
|
|
78
|
+
}), [b("div", W, [c.value === "aurora" ? (O(), y("div", re, [...n[0] ||= [b("div", { class: "m-loading-aurora__ring" }, null, -1), b("div", { class: "m-loading-aurora__glow" }, null, -1)]])) : c.value === "bounce" ? (O(), y("div", ie, [...n[1] ||= [
|
|
79
|
+
b("span", { class: "m-loading-bounce__ball" }, null, -1),
|
|
80
|
+
b("span", { class: "m-loading-bounce__ball" }, null, -1),
|
|
81
|
+
b("span", { class: "m-loading-bounce__ball" }, null, -1)
|
|
82
|
+
]])) : c.value === "wave" ? (O(), y("div", ae, [...n[2] ||= [x("<span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span><span class=\"m-loading-wave__bar\"></span>", 5)]])) : c.value === "pulse" ? (O(), y("div", oe, [...n[3] ||= [
|
|
83
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
84
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
85
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
86
|
+
b("span", { class: "m-loading-pulse__ring" }, null, -1)
|
|
87
|
+
]])) : c.value === "stardust" ? (O(), y("div", se, [(O(), y(p, null, M(8, (e) => b("span", {
|
|
83
88
|
key: e,
|
|
84
89
|
class: "m-loading-stardust__dot",
|
|
85
|
-
style:
|
|
86
|
-
}, null, 4)), 64))])) : (
|
|
90
|
+
style: E({ "--i": String(e - 1) })
|
|
91
|
+
}, null, 4)), 64))])) : (O(), y("div", ce, [...n[4] ||= [b("svg", {
|
|
87
92
|
class: "m-loading-circular__svg",
|
|
88
93
|
viewBox: "0 0 50 50"
|
|
89
|
-
}, [
|
|
94
|
+
}, [b("circle", {
|
|
90
95
|
class: "m-loading-circular__path",
|
|
91
96
|
cx: "25",
|
|
92
97
|
cy: "25",
|
|
93
98
|
r: "20",
|
|
94
99
|
fill: "none"
|
|
95
|
-
})], -1)]]))]), e.text ? (
|
|
100
|
+
})], -1)]]))]), e.text ? (O(), y("p", le, P(e.text), 1)) : v("", !0)], 16, U));
|
|
96
101
|
}
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
});
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/Loading/loading.ts
|
|
105
|
+
function ue(e) {
|
|
106
|
+
let t = e ?? s();
|
|
107
|
+
if (!t) return;
|
|
108
|
+
let n = t.provides?.[d];
|
|
109
|
+
return n == null ? t.config.globalProperties.$m : F(n);
|
|
110
|
+
}
|
|
111
|
+
function de(e) {
|
|
112
|
+
let t = ue(e);
|
|
113
|
+
return r({
|
|
114
|
+
rolePreset: t?.motion?.transitions?.overlay,
|
|
115
|
+
componentDefault: u(t?.componentDefaults, "Loading", "transition"),
|
|
116
|
+
fallback: "loading"
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
var K = /* @__PURE__ */ new Set(), q = null, J = 0, Y = "";
|
|
120
|
+
function X() {
|
|
121
|
+
typeof document > "u" || (J === 0 && (Y = document.body.style.overflow), J += 1, document.body.style.overflow = "hidden");
|
|
100
122
|
}
|
|
101
|
-
function
|
|
102
|
-
typeof document > "u" || (
|
|
123
|
+
function Z() {
|
|
124
|
+
typeof document > "u" || (J = Math.max(0, J - 1), J === 0 && (document.body.style.overflow = Y));
|
|
103
125
|
}
|
|
104
|
-
function
|
|
126
|
+
function fe(e) {
|
|
105
127
|
if (typeof document > "u") throw Error("[MLoading] service is only available in the browser");
|
|
106
128
|
if (!e || e === document.body) return document.body;
|
|
107
129
|
if (typeof e == "string") {
|
|
@@ -111,7 +133,7 @@ function se(e) {
|
|
|
111
133
|
}
|
|
112
134
|
return e;
|
|
113
135
|
}
|
|
114
|
-
function
|
|
136
|
+
function pe(e) {
|
|
115
137
|
let t = 0;
|
|
116
138
|
return () => {
|
|
117
139
|
t ||= requestAnimationFrame(() => {
|
|
@@ -119,8 +141,8 @@ function ce(e) {
|
|
|
119
141
|
});
|
|
120
142
|
};
|
|
121
143
|
}
|
|
122
|
-
function
|
|
123
|
-
let t =
|
|
144
|
+
function me(e) {
|
|
145
|
+
let t = k({
|
|
124
146
|
visible: !e.delay,
|
|
125
147
|
text: e.text ?? "",
|
|
126
148
|
effect: e.effect,
|
|
@@ -135,44 +157,46 @@ function Y(e) {
|
|
|
135
157
|
width: 0,
|
|
136
158
|
height: 0
|
|
137
159
|
});
|
|
138
|
-
t.fullscreen &&
|
|
160
|
+
t.fullscreen && q && q.destroy();
|
|
139
161
|
let n = document.createElement("div");
|
|
140
162
|
(t.fullscreen || t.body ? document.body : e.target).appendChild(n);
|
|
141
|
-
let
|
|
163
|
+
let r = !1;
|
|
142
164
|
if (!t.fullscreen && !t.body) {
|
|
143
165
|
let t = getComputedStyle(e.target).position;
|
|
144
|
-
(!t || t === "static") && (e.target.classList.add("m-loading-parent--relative"),
|
|
166
|
+
(!t || t === "static") && (e.target.classList.add("m-loading-parent--relative"), r = !0);
|
|
145
167
|
}
|
|
146
168
|
e.target.setAttribute("aria-busy", "true");
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
if (e && !
|
|
150
|
-
|
|
169
|
+
let i = !1;
|
|
170
|
+
function a(e) {
|
|
171
|
+
if (e && !i) {
|
|
172
|
+
X(), i = !0;
|
|
151
173
|
return;
|
|
152
174
|
}
|
|
153
|
-
!e &&
|
|
175
|
+
!e && i && (Z(), i = !1);
|
|
154
176
|
}
|
|
155
|
-
t.visible &&
|
|
177
|
+
t.visible && a(!!e.lock);
|
|
156
178
|
function c() {
|
|
157
179
|
if (!t.body) return;
|
|
158
180
|
let n = e.target.getBoundingClientRect();
|
|
159
181
|
t.top = n.top, t.left = n.left, t.width = n.width, t.height = n.height;
|
|
160
182
|
}
|
|
161
|
-
let l =
|
|
162
|
-
t.body && (c(), window.addEventListener("scroll", l, !0), window.addEventListener("resize", l), typeof ResizeObserver < "u" && (
|
|
163
|
-
let
|
|
164
|
-
e.delay && e.delay > 0 && (
|
|
165
|
-
|
|
183
|
+
let l = pe(c), u = null;
|
|
184
|
+
t.body && (c(), window.addEventListener("scroll", l, !0), window.addEventListener("resize", l), typeof ResizeObserver < "u" && (u = new ResizeObserver(l), u.observe(e.target)));
|
|
185
|
+
let d = null;
|
|
186
|
+
e.delay && e.delay > 0 && (d = setTimeout(() => {
|
|
187
|
+
d = null, t.visible = !0, a(!!e.lock);
|
|
166
188
|
}, e.delay));
|
|
167
|
-
let
|
|
189
|
+
let f = null, p = !1, m = !1, g = null;
|
|
168
190
|
function _() {
|
|
169
|
-
|
|
191
|
+
m || (m = !0, p = !0, d !== null && (clearTimeout(d), d = null), f !== null && (clearTimeout(f), f = null), a(!1), t.body && (window.removeEventListener("scroll", l, !0), window.removeEventListener("resize", l), u?.disconnect(), u = null), r && e.target.classList.remove("m-loading-parent--relative"), e.target.getAttribute("aria-busy") === "true" && e.target.removeAttribute("aria-busy"), j(null, n), n.remove(), g && (K.delete(g), q === g && (q = null)));
|
|
170
192
|
}
|
|
171
|
-
let
|
|
193
|
+
let v = C({
|
|
172
194
|
name: "MLoadingMask",
|
|
173
195
|
setup() {
|
|
174
|
-
|
|
175
|
-
|
|
196
|
+
let n = de(e.appContext);
|
|
197
|
+
return () => w(h, {
|
|
198
|
+
name: n,
|
|
199
|
+
css: n !== void 0,
|
|
176
200
|
appear: !0,
|
|
177
201
|
duration: {
|
|
178
202
|
enter: 180,
|
|
@@ -188,15 +212,15 @@ function Y(e) {
|
|
|
188
212
|
t.customClass || void 0
|
|
189
213
|
].filter((e) => !!e), n = {};
|
|
190
214
|
t.background && (n.background = t.background), t.body && (n.top = `${t.top}px`, n.left = `${t.left}px`, n.width = `${t.width}px`, n.height = `${t.height}px`);
|
|
191
|
-
let
|
|
215
|
+
let r = t.spinner ? o(t.spinner) : w(G, {
|
|
192
216
|
effect: t.effect,
|
|
193
217
|
size: t.size,
|
|
194
218
|
text: t.text || void 0
|
|
195
219
|
});
|
|
196
|
-
return
|
|
220
|
+
return w("div", {
|
|
197
221
|
class: e,
|
|
198
222
|
style: n
|
|
199
|
-
}, [
|
|
223
|
+
}, [r]);
|
|
200
224
|
} });
|
|
201
225
|
}
|
|
202
226
|
});
|
|
@@ -204,42 +228,42 @@ function Y(e) {
|
|
|
204
228
|
fullscreen: t.fullscreen,
|
|
205
229
|
destroy: _,
|
|
206
230
|
close() {
|
|
207
|
-
if (!
|
|
208
|
-
if (
|
|
209
|
-
clearTimeout(
|
|
231
|
+
if (!p) {
|
|
232
|
+
if (p = !0, d !== null) {
|
|
233
|
+
clearTimeout(d), d = null, _();
|
|
210
234
|
return;
|
|
211
235
|
}
|
|
212
236
|
if (!t.visible) {
|
|
213
237
|
_();
|
|
214
238
|
return;
|
|
215
239
|
}
|
|
216
|
-
t.visible = !1,
|
|
240
|
+
t.visible = !1, f = setTimeout(_, 200);
|
|
217
241
|
}
|
|
218
242
|
}
|
|
219
|
-
},
|
|
220
|
-
let
|
|
221
|
-
return
|
|
243
|
+
}, K.add(g), t.fullscreen && (q = g);
|
|
244
|
+
let y = w(v);
|
|
245
|
+
return y.appContext = e.appContext ?? s(), j(y, n), {
|
|
222
246
|
close: () => g.close(),
|
|
223
247
|
destroy: () => _(),
|
|
224
248
|
setText(e) {
|
|
225
|
-
|
|
249
|
+
m || (t.text = e);
|
|
226
250
|
},
|
|
227
251
|
update(e) {
|
|
228
|
-
|
|
252
|
+
m || (e.text !== void 0 && (t.text = e.text), e.effect !== void 0 && (t.effect = e.effect), e.background !== void 0 && (t.background = e.background), e.customClass !== void 0 && (t.customClass = e.customClass), e.size !== void 0 && (t.size = e.size), e.spinner !== void 0 && (t.spinner = e.spinner), e.lock !== void 0 && t.visible && a(e.lock));
|
|
229
253
|
}
|
|
230
254
|
};
|
|
231
255
|
}
|
|
232
|
-
function
|
|
256
|
+
function he() {
|
|
233
257
|
return {
|
|
234
258
|
close() {},
|
|
235
259
|
setText() {},
|
|
236
260
|
destroy() {}
|
|
237
261
|
};
|
|
238
262
|
}
|
|
239
|
-
function
|
|
240
|
-
if (typeof document > "u") return
|
|
241
|
-
let t = e.fullscreen ?? (e.target == null && !e.body), n =
|
|
242
|
-
target: t ? document.body :
|
|
263
|
+
function ge(e = {}) {
|
|
264
|
+
if (typeof document > "u") return he();
|
|
265
|
+
let t = e.fullscreen ?? (e.target == null && !e.body), n = me({
|
|
266
|
+
target: t ? document.body : fe(e.target ?? document.body),
|
|
243
267
|
fullscreen: t,
|
|
244
268
|
body: !!e.body && !t,
|
|
245
269
|
lock: e.lock,
|
|
@@ -257,7 +281,7 @@ function ue(e = {}) {
|
|
|
257
281
|
destroy: () => n.destroy()
|
|
258
282
|
};
|
|
259
283
|
}
|
|
260
|
-
var
|
|
284
|
+
var _e = { service: ge }, ve = ["aria-busy"], ye = ["inert"], be = /* @__PURE__ */ C({
|
|
261
285
|
name: "MLoading",
|
|
262
286
|
inheritAttrs: !1,
|
|
263
287
|
__name: "Loading",
|
|
@@ -281,59 +305,71 @@ var X = { service: ue }, de = ["aria-busy"], fe = ["inert"], pe = /* @__PURE__ *
|
|
|
281
305
|
type: Boolean,
|
|
282
306
|
default: !1
|
|
283
307
|
},
|
|
284
|
-
delay: { default: 0 }
|
|
308
|
+
delay: { default: 0 },
|
|
309
|
+
transition: {
|
|
310
|
+
type: [String, Boolean],
|
|
311
|
+
default: void 0
|
|
312
|
+
}
|
|
285
313
|
},
|
|
286
314
|
setup(t) {
|
|
287
|
-
let
|
|
315
|
+
let n = t, r = te(), o = ne(), { rootAttrs: s } = e(r, () => n.pt), u = l("Loading"), d = c(), { transitionName: f, transitionCss: x } = i({
|
|
316
|
+
role: "overlay",
|
|
317
|
+
local: () => n.transition,
|
|
318
|
+
componentName: "Loading",
|
|
319
|
+
fallback: "loading"
|
|
320
|
+
}), C = g(() => !!o.default), w = g(() => C.value || n.fullscreen), k = g(() => H(n.effect ?? u.value.effect)), j = g(() => n.size ?? u.value.size), M = g(() => n.delay ?? u.value.delay ?? 0), P = g(() => n.background ? { background: n.background } : void 0), F = g(() => a(n.fullscreen ? {
|
|
288
321
|
teleport: !0,
|
|
289
322
|
appendTo: "body"
|
|
290
|
-
} : { teleport: !1 },
|
|
291
|
-
function
|
|
292
|
-
|
|
323
|
+
} : { teleport: !1 }, d.value.appendTo)), z = A(n.loading && M.value <= 0), B = null;
|
|
324
|
+
function V() {
|
|
325
|
+
B !== null && (clearTimeout(B), B = null);
|
|
293
326
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
327
|
+
L(() => [
|
|
328
|
+
n.loading,
|
|
329
|
+
M.value,
|
|
330
|
+
w.value
|
|
298
331
|
], ([e, t]) => {
|
|
299
|
-
if (
|
|
300
|
-
|
|
332
|
+
if (V(), !e || !w.value) {
|
|
333
|
+
z.value = !1;
|
|
301
334
|
return;
|
|
302
335
|
}
|
|
303
336
|
if (!t) {
|
|
304
|
-
|
|
337
|
+
z.value = !0;
|
|
305
338
|
return;
|
|
306
339
|
}
|
|
307
|
-
|
|
308
|
-
|
|
340
|
+
z.value = !1, B = setTimeout(() => {
|
|
341
|
+
z.value = !0, B = null;
|
|
309
342
|
}, t);
|
|
310
343
|
}, { immediate: !0 });
|
|
311
|
-
let
|
|
312
|
-
return
|
|
313
|
-
if (e && !
|
|
314
|
-
|
|
344
|
+
let U = g(() => n.lock && z.value && w.value), W = !1;
|
|
345
|
+
return L(U, (e) => {
|
|
346
|
+
if (e && !W) {
|
|
347
|
+
X(), W = !0;
|
|
315
348
|
return;
|
|
316
349
|
}
|
|
317
|
-
!e &&
|
|
318
|
-
}, { immediate: !0 }),
|
|
319
|
-
|
|
320
|
-
}), (e, n) =>
|
|
321
|
-
class: ["m-loading", { "m-loading--active":
|
|
322
|
-
"aria-busy":
|
|
323
|
-
}), [
|
|
350
|
+
!e && W && (Z(), W = !1);
|
|
351
|
+
}, { immediate: !0 }), D(() => {
|
|
352
|
+
V(), W &&= (Z(), !1);
|
|
353
|
+
}), (e, n) => w.value ? (O(), y(p, { key: 0 }, [C.value ? (O(), y("div", T({ key: 0 }, I(s), {
|
|
354
|
+
class: ["m-loading", { "m-loading--active": z.value }],
|
|
355
|
+
"aria-busy": z.value || void 0
|
|
356
|
+
}), [b("div", {
|
|
324
357
|
class: "m-loading__content",
|
|
325
|
-
inert:
|
|
326
|
-
}, [
|
|
358
|
+
inert: z.value || void 0
|
|
359
|
+
}, [N(e.$slots, "default")], 8, ye), (O(), _(m, {
|
|
327
360
|
to: F.value.to,
|
|
328
361
|
disabled: F.value.disabled
|
|
329
|
-
}, [
|
|
330
|
-
|
|
362
|
+
}, [S(h, {
|
|
363
|
+
name: I(f),
|
|
364
|
+
css: I(x)
|
|
365
|
+
}, {
|
|
366
|
+
default: R(() => [z.value ? (O(), y("div", {
|
|
331
367
|
key: 0,
|
|
332
|
-
class:
|
|
333
|
-
style:
|
|
334
|
-
}, [
|
|
335
|
-
effect:
|
|
336
|
-
size:
|
|
368
|
+
class: ee(["m-loading-mask", [{ "m-loading-mask--fullscreen": t.fullscreen }, t.customClass]]),
|
|
369
|
+
style: E(P.value)
|
|
370
|
+
}, [N(e.$slots, "indicator", {}, () => [S(G, {
|
|
371
|
+
effect: k.value,
|
|
372
|
+
size: j.value,
|
|
337
373
|
text: t.text,
|
|
338
374
|
"aria-label": t.ariaLabel
|
|
339
375
|
}, null, 8, [
|
|
@@ -341,21 +377,24 @@ var X = { service: ue }, de = ["aria-busy"], fe = ["inert"], pe = /* @__PURE__ *
|
|
|
341
377
|
"size",
|
|
342
378
|
"text",
|
|
343
379
|
"aria-label"
|
|
344
|
-
])])], 6)) :
|
|
380
|
+
])])], 6)) : v("", !0)]),
|
|
345
381
|
_: 3
|
|
346
|
-
})], 8, ["to", "disabled"]))], 16,
|
|
382
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 16, ve)) : (O(), _(m, {
|
|
347
383
|
key: 1,
|
|
348
384
|
to: F.value.to,
|
|
349
385
|
disabled: F.value.disabled
|
|
350
|
-
}, [
|
|
351
|
-
|
|
386
|
+
}, [S(h, {
|
|
387
|
+
name: I(f),
|
|
388
|
+
css: I(x)
|
|
389
|
+
}, {
|
|
390
|
+
default: R(() => [z.value ? (O(), y("div", T({ key: 0 }, I(s), {
|
|
352
391
|
class: ["m-loading-mask m-loading-mask--fullscreen", t.customClass],
|
|
353
392
|
style: P.value,
|
|
354
393
|
role: "presentation",
|
|
355
394
|
"aria-busy": "true"
|
|
356
|
-
}), [
|
|
357
|
-
effect:
|
|
358
|
-
size:
|
|
395
|
+
}), [N(e.$slots, "indicator", {}, () => [S(G, {
|
|
396
|
+
effect: k.value,
|
|
397
|
+
size: j.value,
|
|
359
398
|
text: t.text,
|
|
360
399
|
"aria-label": t.ariaLabel
|
|
361
400
|
}, null, 8, [
|
|
@@ -363,11 +402,11 @@ var X = { service: ue }, de = ["aria-busy"], fe = ["inert"], pe = /* @__PURE__ *
|
|
|
363
402
|
"size",
|
|
364
403
|
"text",
|
|
365
404
|
"aria-label"
|
|
366
|
-
])])], 16)) :
|
|
405
|
+
])])], 16)) : v("", !0)]),
|
|
367
406
|
_: 3
|
|
368
|
-
})], 8, ["to", "disabled"]))], 64)) : (
|
|
369
|
-
effect:
|
|
370
|
-
size:
|
|
407
|
+
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 64)) : (O(), _(G, T({ key: 1 }, I(s), {
|
|
408
|
+
effect: k.value,
|
|
409
|
+
size: j.value,
|
|
371
410
|
text: t.text,
|
|
372
411
|
"aria-label": t.ariaLabel
|
|
373
412
|
}), null, 16, [
|
|
@@ -377,24 +416,24 @@ var X = { service: ue }, de = ["aria-busy"], fe = ["inert"], pe = /* @__PURE__ *
|
|
|
377
416
|
"aria-label"
|
|
378
417
|
]));
|
|
379
418
|
}
|
|
380
|
-
}),
|
|
381
|
-
function
|
|
419
|
+
}), Q = /* @__PURE__ */ new WeakMap();
|
|
420
|
+
function $(e, ...t) {
|
|
382
421
|
for (let n of t) {
|
|
383
422
|
let t = e.getAttribute(n);
|
|
384
423
|
if (t != null) return t;
|
|
385
424
|
}
|
|
386
425
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
426
|
+
function xe(e) {
|
|
427
|
+
return V(e) ? e : void 0;
|
|
389
428
|
}
|
|
390
|
-
function
|
|
391
|
-
let n = t.value, r = n && typeof n == "object" ? n : void 0, i = typeof n == "boolean" ? n : r ? r.loading !== !1 : !!n, a = !!(t.modifiers.fullscreen || r?.fullscreen), o = !!(t.modifiers.body || r?.body) && !a, s =
|
|
429
|
+
function Se(e, t) {
|
|
430
|
+
let n = t.value, r = n && typeof n == "object" ? n : void 0, i = typeof n == "boolean" ? n : r ? r.loading !== !1 : !!n, a = !!(t.modifiers.fullscreen || r?.fullscreen), o = !!(t.modifiers.body || r?.body) && !a, s = xe(r?.effect ?? $(e, "m-loading-effect")), c = r?.size, l = $(e, "m-loading-delay"), u = r?.delay ?? (l == null ? void 0 : Number(l));
|
|
392
431
|
return {
|
|
393
432
|
visible: i,
|
|
394
|
-
text: r?.text ??
|
|
433
|
+
text: r?.text ?? $(e, "m-loading-text"),
|
|
395
434
|
effect: s,
|
|
396
|
-
background: r?.background ??
|
|
397
|
-
customClass: r?.customClass ??
|
|
435
|
+
background: r?.background ?? $(e, "m-loading-background"),
|
|
436
|
+
customClass: r?.customClass ?? $(e, "m-loading-custom-class"),
|
|
398
437
|
size: typeof c == "string" ? c : void 0,
|
|
399
438
|
fullscreen: a,
|
|
400
439
|
lock: !!(t.modifiers.lock || r?.lock),
|
|
@@ -404,20 +443,20 @@ function he(e, t) {
|
|
|
404
443
|
mode: `${a}:${o}`
|
|
405
444
|
};
|
|
406
445
|
}
|
|
407
|
-
function
|
|
408
|
-
let n =
|
|
446
|
+
function Ce(e, t) {
|
|
447
|
+
let n = Se(e, t), r = Q.get(e);
|
|
409
448
|
if (!n.visible) {
|
|
410
449
|
if (!r) return;
|
|
411
|
-
|
|
450
|
+
Q.delete(e), r.instance.close();
|
|
412
451
|
return;
|
|
413
452
|
}
|
|
414
453
|
if (r && r.mode === n.mode) {
|
|
415
454
|
r.instance.update(n);
|
|
416
455
|
return;
|
|
417
456
|
}
|
|
418
|
-
r?.instance.destroy(),
|
|
457
|
+
r?.instance.destroy(), Q.set(e, {
|
|
419
458
|
mode: n.mode,
|
|
420
|
-
instance:
|
|
459
|
+
instance: me({
|
|
421
460
|
target: e,
|
|
422
461
|
text: n.text,
|
|
423
462
|
effect: n.effect,
|
|
@@ -433,26 +472,26 @@ function $(e, t) {
|
|
|
433
472
|
})
|
|
434
473
|
});
|
|
435
474
|
}
|
|
436
|
-
var
|
|
437
|
-
mounted:
|
|
438
|
-
updated:
|
|
475
|
+
var we = {
|
|
476
|
+
mounted: Ce,
|
|
477
|
+
updated: Ce,
|
|
439
478
|
unmounted(e) {
|
|
440
|
-
let t =
|
|
441
|
-
t && (
|
|
479
|
+
let t = Q.get(e);
|
|
480
|
+
t && (Q.delete(e), t.instance.destroy());
|
|
442
481
|
}
|
|
443
482
|
};
|
|
444
483
|
//#endregion
|
|
445
484
|
//#region src/components/Loading/useLoading.ts
|
|
446
|
-
function
|
|
485
|
+
function Te(e = {}) {
|
|
447
486
|
let t = null;
|
|
448
487
|
function n() {
|
|
449
488
|
t?.close(), t = null;
|
|
450
489
|
}
|
|
451
|
-
return
|
|
490
|
+
return D(() => {
|
|
452
491
|
t?.destroy(), t = null;
|
|
453
492
|
}), {
|
|
454
493
|
open(r = {}) {
|
|
455
|
-
return n(), t =
|
|
494
|
+
return n(), t = _e.service({
|
|
456
495
|
...e,
|
|
457
496
|
...r
|
|
458
497
|
}), t;
|
|
@@ -464,4 +503,4 @@ function _e(e = {}) {
|
|
|
464
503
|
};
|
|
465
504
|
}
|
|
466
505
|
//#endregion
|
|
467
|
-
export {
|
|
506
|
+
export { z as LOADING_EFFECTS, be as MLoading, V as isLoadingEffect, _e as loading, H as normalizeLoadingEffect, Te as useLoading, we as vLoading };
|