morya-ui 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/dist/{Button-lNErA-7h.js → Button--RkQybU-.js} +1 -1
- package/dist/{Checkbox-B758a_iB.js → Checkbox-CL05RRUD.js} +1 -1
- package/dist/{FlyoutSubmenu-kymVjXLs.js → FlyoutSubmenu-B_bkgKag.js} +1 -1
- package/dist/{Pagination-Dm2-MBnC.js → Pagination-BKvR-RUW.js} +1 -1
- package/dist/{Popover-flzjtjqD.js → Popover-Dq_p0vib.js} +1 -1
- package/dist/{ProgressSpinner-BXHLx4Lg.js → ProgressSpinner-DuBpPkna.js} +1 -1
- package/dist/{Radio-Bb21-Vk4.js → Radio-DsaKvbhk.js} +1 -1
- package/dist/Renderable-DHU4Jcfw.js +20 -0
- package/dist/{Tooltip-CeGxjP-L.js → Tooltip-CU1xFt_N.js} +1 -1
- package/dist/activity-low-CgK9kHWr.js +4 -0
- package/dist/auto-complete/index.js +2 -2
- package/dist/breadcrumb/index.js +1 -1
- package/dist/building-DYLdXiQg.js +4 -0
- package/dist/button/index.js +1 -1
- package/dist/carousel/index.js +1 -1
- package/dist/cascade-select/index.js +2 -2
- package/dist/checkbox/index.js +1 -1
- package/dist/chip/index.js +1 -1
- package/dist/churn-high-D1ELpZzW.js +4 -0
- package/dist/command-menu/index.js +2 -2
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Empty/Empty.vue.d.ts +5 -6
- package/dist/components/Empty/Empty.vue.d.ts.map +1 -1
- package/dist/components/Empty/illustrations/catalog.d.ts +5 -0
- package/dist/components/Empty/illustrations/catalog.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts +3 -0
- package/dist/components/Empty/illustrations/defaultEmptyIcon.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/index.d.ts +15 -0
- package/dist/components/Empty/illustrations/index.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/loaders.d.ts +4 -0
- package/dist/components/Empty/illustrations/loaders.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/activity-low.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/activity-low.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/building.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/building.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/churn-high.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/churn-high.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/conversion-low.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/conversion-low.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/input-irregular.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/input-irregular.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/network-error.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/network-error.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-content.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-content.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-issue.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-issue.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-message.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-message.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-result.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-result.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/no-schedule.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/no-schedule.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/payment-cycle-long.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/profile-unclear.d.ts.map +1 -0
- package/dist/components/Empty/illustrations/markup/server-error.d.ts +4 -0
- package/dist/components/Empty/illustrations/markup/server-error.d.ts.map +1 -0
- package/dist/components/Empty/index.d.ts +3 -1
- package/dist/components/Empty/index.d.ts.map +1 -1
- package/dist/components/Empty/styles.css +104 -30
- package/dist/components/Empty/types.d.ts +25 -4
- package/dist/components/Empty/types.d.ts.map +1 -1
- package/dist/components/Form/types.d.ts +1 -1
- package/dist/components/Form/types.d.ts.map +1 -1
- package/dist/components/Loading/Loading.vue.d.ts +25 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
- package/dist/components/Loading/directive.d.ts +12 -0
- package/dist/components/Loading/directive.d.ts.map +1 -0
- package/dist/components/Loading/index.d.ts +8 -0
- package/dist/components/Loading/index.d.ts.map +1 -0
- package/dist/components/Loading/loading.d.ts +35 -0
- package/dist/components/Loading/loading.d.ts.map +1 -0
- package/dist/components/Loading/styles.css +386 -0
- package/dist/components/Loading/types.d.ts +74 -0
- package/dist/components/Loading/types.d.ts.map +1 -0
- package/dist/components/Loading/useLoading.d.ts +11 -0
- package/dist/components/Loading/useLoading.d.ts.map +1 -0
- package/dist/components/Message/types.d.ts +1 -1
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Page/PageContent.vue.d.ts +2 -2
- package/dist/components/Pagination/types.d.ts +4 -4
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Result/Result.vue.d.ts +2 -2
- package/dist/components/Result/Result.vue.d.ts.map +1 -1
- package/dist/components/Result/index.d.ts +1 -1
- package/dist/components/Result/index.d.ts.map +1 -1
- package/dist/components/Result/statusIcons.d.ts +4 -0
- package/dist/components/Result/statusIcons.d.ts.map +1 -0
- package/dist/components/Result/styles.css +89 -23
- package/dist/components/Result/types.d.ts +10 -4
- package/dist/components/Result/types.d.ts.map +1 -1
- package/dist/components/Splitter/types.d.ts +4 -4
- package/dist/components/Splitter/types.d.ts.map +1 -1
- package/dist/components/Status/Status.vue.d.ts +7 -3
- package/dist/components/Status/Status.vue.d.ts.map +1 -1
- package/dist/components/Status/index.d.ts +1 -1
- package/dist/components/Status/index.d.ts.map +1 -1
- package/dist/components/Status/styles.css +116 -26
- package/dist/components/Status/types.d.ts +16 -2
- package/dist/components/Status/types.d.ts.map +1 -1
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/components/Tree/TreeNodeItem.vue.d.ts.map +1 -1
- package/dist/components/Tree/types.d.ts +1 -1
- package/dist/components/Tree/types.d.ts.map +1 -1
- package/dist/{config-Dln2-u_v.js → config-BdK5ccNT.js} +1 -0
- package/dist/config-provider/index.js +1 -1
- package/dist/confirm-dialog/index.js +11 -11
- package/dist/confirm-popup/index.js +3 -3
- package/dist/content-h8POj44-.js +28 -0
- package/dist/context-menu/index.js +2 -2
- package/dist/conversion-low-CwZiQc2k.js +4 -0
- package/dist/data-view/index.js +3 -3
- package/dist/date-picker/index.js +2 -2
- package/dist/dialog/index.js +77 -61
- package/dist/drawer/index.js +2 -2
- package/dist/dropdown/index.js +3 -3
- package/dist/empty/index.js +141 -26
- package/dist/empty/style.css +104 -30
- package/dist/file-upload/index.js +1 -1
- package/dist/flex/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/gallery/index.js +1 -1
- package/dist/index.d.ts +12 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4380 -3714
- package/dist/input/index.js +2 -2
- package/dist/input-color/index.js +2 -2
- package/dist/input-irregular-xSLDoNTS.js +4 -0
- package/dist/input-number/index.js +2 -2
- package/dist/input-otp/index.js +2 -2
- package/dist/input-password/index.js +2 -2
- package/dist/input-tags/index.js +2 -2
- package/dist/layout/index.js +1 -1
- package/dist/listbox/index.js +2 -2
- package/dist/loading/index.js +467 -0
- package/dist/loading/style.css +1377 -0
- package/dist/loading/style.js +3 -0
- package/dist/locale/en-US.d.ts.map +1 -1
- package/dist/locale/types.d.ts +1 -0
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh-CN.d.ts.map +1 -1
- package/dist/{locale-DNYpTg5K.js → locale-B36KH7c3.js} +1 -1
- package/dist/mega-menu/index.js +2 -2
- package/dist/menu/index.js +52 -40
- package/dist/menubar/index.js +2 -2
- package/dist/message/index.js +8 -7
- package/dist/network-error-C6vl5a7S.js +4 -0
- package/dist/no-content-CwbqVPoN.js +4 -0
- package/dist/no-issue-DMkU-Pnw.js +4 -0
- package/dist/no-message-DnIEpMiO.js +4 -0
- package/dist/no-result-pGce34BV.js +4 -0
- package/dist/no-schedule-Cl9Frt1Q.js +4 -0
- package/dist/order-list/index.js +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/panel/index.js +1 -1
- package/dist/payment-cycle-long-Ba9FNStl.js +4 -0
- package/dist/pick-list/index.js +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/profile-unclear-CGs4PCfw.js +4 -0
- package/dist/progress-spinner/index.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/rating/index.js +2 -2
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/result/index.js +72 -36
- package/dist/result/style.css +89 -23
- package/dist/scroll-top/index.js +2 -2
- package/dist/select/index.js +2 -2
- package/dist/select-button/index.js +1 -1
- package/dist/server-error-D8zGMe5r.js +4 -0
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/shared/optionalRouter.d.ts +5 -0
- package/dist/shared/optionalRouter.d.ts.map +1 -1
- package/dist/shared/responsive.d.ts +1 -1
- package/dist/shared/responsive.d.ts.map +1 -1
- package/dist/sidebar/index.js +1 -1
- package/dist/slider/index.js +2 -2
- package/dist/space/index.js +1 -1
- package/dist/speed-dial/index.js +2 -2
- package/dist/split-button/index.js +2 -2
- package/dist/splitter/index.js +1 -1
- package/dist/status/index.js +46 -19
- package/dist/status/style.css +171 -26
- package/dist/status/style.js +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +7 -7
- package/dist/tabs/index.js +1 -1
- package/dist/tag/index.js +2 -2
- package/dist/terminal/index.js +1 -1
- package/dist/textarea/index.js +2 -2
- package/dist/tiered-menu/index.js +2 -2
- package/dist/toast/index.js +13 -12
- package/dist/toggle-button/index.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tree/index.js +9 -4
- package/dist/tree-select/index.js +3 -3
- package/dist/tree-table/index.js +1 -1
- package/package.json +11 -4
- package/dist/Renderable-BaaCI4tS.js +0 -45
package/dist/input/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
3
|
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
|
-
import { i as r, o as i, s as a } from "../config-
|
|
5
|
-
import { n as o } from "../locale-
|
|
4
|
+
import { i as r, o as i, s as a } from "../config-BdK5ccNT.js";
|
|
5
|
+
import { n as o } from "../locale-B36KH7c3.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderSlot as _, toDisplayString as v, unref as y, useAttrs as b, useSlots as x } from "vue";
|
|
8
8
|
//#region src/components/Input/Input.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../useMId-BXFYayPP.js";
|
|
3
3
|
import { t as n } from "../useFieldFeedback-C5qIqYMK.js";
|
|
4
|
-
import { o as r } from "../config-
|
|
5
|
-
import { n as i } from "../locale-
|
|
4
|
+
import { o as r } from "../config-BdK5ccNT.js";
|
|
5
|
+
import { n as i } from "../locale-B36KH7c3.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, normalizeStyle as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y } from "vue";
|
|
8
8
|
//#region src/components/InputColor/InputColor.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/components/Empty/illustrations/markup/input-irregular.ts
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 250 124\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\"><defs><linearGradient gradientUnits=\"objectBoundingBox\" id=\"__MID_0__\" spreadMethod=\"pad\" x1=\"0.5\" x2=\"0.5\" y1=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#c1dbfe\"></stop><stop offset=\"1\" stop-color=\"#ffffff\"></stop></linearGradient><linearGradient gradientUnits=\"objectBoundingBox\" id=\"__MID_1__\" spreadMethod=\"pad\" x1=\"0.5\" x2=\"0.5\" y1=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#89b1f7\"></stop><stop offset=\"1\" stop-color=\"#9bb9fc\"></stop></linearGradient></defs><g><g><path d=\"M 249.28 124.00 C 219.86 87.49 172.80 66.00 122.26 66.00 C 73.29 66.00 29.44 87.93 0.00 122.52 C 0.00 122.52 249.28 124.00 249.28 124.00 Z\" fill=\"url(#__MID_0__)\" fill-rule=\"evenodd\" stroke=\"none\"></path><g><g><g><path d=\"M 69.75 73.60 L 66.76 73.60 L 66.76 63.48 C 66.76 62.67 67.43 62.02 68.25 62.02 L 68.26 62.02 C 69.09 62.02 69.75 62.67 69.75 63.48 L 69.75 73.60 Z\" fill=\"#bae637\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 71.24 76.08 L 68.24 76.08 L 68.24 70.79 C 68.24 70.01 68.89 69.37 69.69 69.37 L 69.79 69.37 C 70.59 69.37 71.24 70.01 71.24 70.79 L 71.24 76.08 Z\" fill=\"#389e0d\" fill-rule=\"evenodd\" id=\"__MID_2__\" stroke=\"none\"></path><path d=\"M 67.20 73.59 L 64.18 73.59 L 64.18 67.85 C 64.18 67.06 64.83 66.42 65.64 66.42 L 65.74 66.42 C 66.55 66.42 67.20 67.06 67.20 67.85 L 67.20 73.59 Z\" fill=\"#7cb305\" fill-rule=\"evenodd\" id=\"__MID_3__\" stroke=\"none\"></path><g><path d=\"M 71.42 81.99 L 63.56 81.99 C 63.25 81.99 63.00 81.74 63.00 81.44 L 63.00 73.81 C 63.00 73.50 63.25 73.26 63.56 73.26 L 71.42 73.26 C 71.73 73.26 71.98 73.50 71.98 73.81 L 71.98 81.44 C 71.98 81.74 71.73 81.99 71.42 81.99\" fill=\"#3b68b8\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></g><g><g><g><path d=\"M 182.18 92.89 L 179.37 92.89 L 179.37 83.39 C 179.37 82.63 180.00 82.02 180.77 82.02 L 180.78 82.02 C 181.55 82.02 182.18 82.63 182.18 83.39 L 182.18 92.89 Z\" fill=\"#bae637\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 183.57 95.22 L 180.76 95.22 L 180.76 90.26 C 180.76 89.52 181.37 88.92 182.13 88.92 L 182.21 88.92 C 182.96 88.92 183.57 89.52 183.57 90.26 L 183.57 95.22 Z\" fill=\"#389e0d\" fill-rule=\"evenodd\" id=\"__MID_2__\" stroke=\"none\"></path><path d=\"M 179.79 92.89 L 176.95 92.89 L 176.95 87.49 C 176.95 86.75 177.57 86.15 178.32 86.15 L 178.42 86.15 C 179.17 86.15 179.79 86.75 179.79 87.49 L 179.79 92.89 Z\" fill=\"#7cb305\" fill-rule=\"evenodd\" id=\"__MID_3__\" stroke=\"none\"></path><g><path d=\"M 183.74 100.78 L 176.38 100.78 C 176.08 100.78 175.85 100.54 175.85 100.26 L 175.85 93.09 C 175.85 92.80 176.08 92.57 176.38 92.57 L 183.74 92.57 C 184.03 92.57 184.27 92.80 184.27 93.09 L 184.27 100.26 C 184.27 100.54 184.03 100.78 183.74 100.78\" fill=\"#3b68b8\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></g><g><g><g><path d=\"M 59.63 102.72 L 57.13 102.72 L 57.13 95.11 C 57.13 94.50 57.69 94.01 58.37 94.01 L 58.39 94.01 C 59.07 94.01 59.63 94.50 59.63 95.11 L 59.63 102.72 Z\" fill=\"#bae637\" fill-rule=\"evenodd\" stroke=\"none\"></path></g><path d=\"M 60.87 104.58 L 58.37 104.58 L 58.37 100.61 C 58.37 100.02 58.91 99.54 59.58 99.54 L 59.65 99.54 C 60.32 99.54 60.87 100.02 60.87 100.61 L 60.87 104.58 Z\" fill=\"#389e0d\" fill-rule=\"evenodd\" id=\"__MID_2__\" stroke=\"none\"></path><path d=\"M 57.50 102.71 L 54.98 102.71 L 54.98 98.39 C 54.98 97.80 55.53 97.32 56.20 97.32 L 56.28 97.32 C 56.96 97.32 57.50 97.80 57.50 98.39 L 57.50 102.71 Z\" fill=\"#7cb305\" fill-rule=\"evenodd\" id=\"__MID_3__\" stroke=\"none\"></path><g><path d=\"M 61.02 109.02 L 54.47 109.02 C 54.21 109.02 54.00 108.84 54.00 108.61 L 54.00 102.87 C 54.00 102.64 54.21 102.46 54.47 102.46 L 61.02 102.46 C 61.27 102.46 61.48 102.64 61.48 102.87 L 61.48 108.61 C 61.48 108.84 61.27 109.02 61.02 109.02\" fill=\"#3b68b8\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></g><path d=\"M 106.00 0.00 L 155.00 0.00 C 159.42 0.00 163.00 3.58 163.00 8.00 L 163.00 71.00 C 163.00 75.42 159.42 79.00 155.00 79.00 L 106.00 79.00 C 101.58 79.00 98.00 75.42 98.00 71.00 L 98.00 8.00 C 98.00 3.58 101.58 0.00 106.00 0.00 Z\" fill=\"#b3c6f5\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 86.00 9.00 L 147.00 9.00 C 151.42 9.00 155.00 12.58 155.00 17.00 L 155.00 87.00 C 155.00 91.42 151.42 95.00 147.00 95.00 L 86.00 95.00 C 81.58 95.00 78.00 91.42 78.00 87.00 L 78.00 17.00 C 78.00 12.58 81.58 9.00 86.00 9.00 Z\" fill=\"url(#__MID_1__)\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 86.00 9.00 L 147.00 9.00 C 151.42 9.00 155.00 12.58 155.00 17.00 L 155.00 23.00 L 155.00 23.00 L 78.00 23.00 L 78.00 17.00 C 78.00 12.58 81.58 9.00 86.00 9.00 Z\" fill=\"#7aa1f8\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 88.00 16.50 C 88.00 17.88 86.88 19.00 85.50 19.00 C 84.12 19.00 83.00 17.88 83.00 16.50 C 83.00 15.12 84.12 14.00 85.50 14.00 C 86.88 14.00 88.00 15.12 88.00 16.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 95.00 16.50 C 95.00 17.88 93.88 19.00 92.50 19.00 C 91.12 19.00 90.00 17.88 90.00 16.50 C 90.00 15.12 91.12 14.00 92.50 14.00 C 93.88 14.00 95.00 15.12 95.00 16.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 102.00 16.50 C 102.00 17.88 100.88 19.00 99.50 19.00 C 98.12 19.00 97.00 17.88 97.00 16.50 C 97.00 15.12 98.12 14.00 99.50 14.00 C 100.88 14.00 102.00 15.12 102.00 16.50 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path><g><path d=\"M 95.50 30.00 L 95.50 30.00 C 88.60 30.00 83.00 35.60 83.00 42.50 C 83.00 49.40 88.60 55.00 95.50 55.00 C 102.40 55.00 108.00 49.40 108.00 42.50 L 108.00 42.50 C 108.00 35.60 102.40 30.00 95.50 30.00 L 95.50 30.00 Z M 95.50 35.78 L 95.50 35.78 C 97.01 35.78 98.23 37.01 98.23 38.51 C 98.23 40.02 97.01 41.24 95.50 41.24 C 94.00 41.24 92.77 40.02 92.77 38.51 C 92.77 38.51 92.77 38.51 92.77 38.51 L 92.77 38.51 C 92.77 37.01 93.99 35.78 95.50 35.78 C 95.50 35.78 95.50 35.78 95.50 35.78 L 95.50 35.78 Z M 90.52 47.15 L 90.52 47.15 C 90.52 44.40 92.75 42.17 95.50 42.17 C 98.25 42.17 100.48 44.40 100.48 47.15 C 100.48 49.90 90.52 49.90 90.52 47.15 L 90.52 47.15 Z\" fill=\"#ffffff\" fill-rule=\"nonzero\" stroke=\"none\"></path></g><path d=\"M 114.00 34.00 L 132.00 34.00 L 132.00 40.00 L 114.00 40.00 Z\" fill=\"#5780dd\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 114.00 46.00 L 144.00 46.00 L 144.00 52.00 L 114.00 52.00 Z\" fill=\"#5780dd\" fill-rule=\"evenodd\" stroke=\"none\"></path><path d=\"M 84.00 59.00 L 144.00 59.00 L 144.00 65.00 L 84.00 65.00 Z\" fill=\"#ffffff\" fill-rule=\"evenodd\" stroke=\"none\"></path></g></g></svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -2,8 +2,8 @@ import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
3
|
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
4
|
import { t as r } from "../useFieldFeedback-C5qIqYMK.js";
|
|
5
|
-
import { o as i } from "../config-
|
|
6
|
-
import { n as a } from "../locale-
|
|
5
|
+
import { o as i } from "../config-BdK5ccNT.js";
|
|
6
|
+
import { n as a } from "../locale-B36KH7c3.js";
|
|
7
7
|
import "./style.js";
|
|
8
8
|
import { computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, useAttrs as y, watch as b } from "vue";
|
|
9
9
|
//#region src/components/InputNumber/InputNumber.vue?vue&type=script&setup=true&lang.ts
|
package/dist/input-otp/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
-
import { o as t } from "../config-
|
|
3
|
-
import { n, t as r } from "../locale-
|
|
2
|
+
import { o as t } from "../config-BdK5ccNT.js";
|
|
3
|
+
import { n, t as r } from "../locale-B36KH7c3.js";
|
|
4
4
|
import "./style.js";
|
|
5
5
|
import { Fragment as i, computed as a, createElementBlock as o, defineComponent as s, mergeProps as c, nextTick as l, openBlock as u, ref as d, renderList as f, unref as p, useAttrs as m, watch as h } from "vue";
|
|
6
6
|
//#region src/components/InputOtp/InputOtp.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -2,8 +2,8 @@ import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
|
2
2
|
import { r as t } from "../types-DGuu4Eg4.js";
|
|
3
3
|
import { t as n } from "../Icon-DfpIfo2L.js";
|
|
4
4
|
import { t as r } from "../useMId-BXFYayPP.js";
|
|
5
|
-
import { i as ee, o as te, s as ne } from "../config-
|
|
6
|
-
import { n as re, t as i } from "../locale-
|
|
5
|
+
import { i as ee, o as te, s as ne } from "../config-BdK5ccNT.js";
|
|
6
|
+
import { n as re, t as i } from "../locale-B36KH7c3.js";
|
|
7
7
|
import "./style.js";
|
|
8
8
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, onBeforeUnmount as ie, openBlock as m, ref as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useAttrs as b } from "vue";
|
|
9
9
|
//#region src/components/InputPassword/InputPassword.vue?vue&type=script&setup=true&lang.ts
|
package/dist/input-tags/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
3
|
import { t as n } from "../useMId-BXFYayPP.js";
|
|
4
|
-
import { o as r } from "../config-
|
|
5
|
-
import { n as i } from "../locale-
|
|
4
|
+
import { o as r } from "../config-BdK5ccNT.js";
|
|
5
|
+
import { n as i } from "../locale-B36KH7c3.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { Fragment as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useAttrs as x } from "vue";
|
|
8
8
|
//#region src/components/InputTags/InputTags.vue?vue&type=script&setup=true&lang.ts
|
package/dist/layout/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
3
|
import { t as n } from "../Scrollbar-BYnCO8fv.js";
|
|
4
4
|
import { r, t as i } from "../responsive-DA5bxylA.js";
|
|
5
|
-
import { n as a } from "../locale-
|
|
5
|
+
import { n as a } from "../locale-B36KH7c3.js";
|
|
6
6
|
import "./style.js";
|
|
7
7
|
import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, inject as p, mergeProps as m, normalizeClass as h, normalizeStyle as g, openBlock as _, provide as v, ref as y, renderSlot as b, toValue as x, unref as S, useAttrs as C, watch as w, withCtx as T } from "vue";
|
|
8
8
|
//#region src/components/Layout/context.ts
|
package/dist/listbox/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
|
2
2
|
import { t } from "../useMenuKeyboard-BedmYE4W.js";
|
|
3
3
|
import { t as n } from "../Scrollbar-BYnCO8fv.js";
|
|
4
4
|
import { t as r } from "../useFieldFeedback-C5qIqYMK.js";
|
|
5
|
-
import { o as i } from "../config-
|
|
6
|
-
import { n as a } from "../locale-
|
|
5
|
+
import { o as i } from "../config-BdK5ccNT.js";
|
|
6
|
+
import { n as a } from "../locale-B36KH7c3.js";
|
|
7
7
|
import "./style.js";
|
|
8
8
|
import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, normalizeClass as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useAttrs as S, vModelText as C, watch as w, withCtx as T, withDirectives as E } from "vue";
|
|
9
9
|
//#region src/components/Listbox/Listbox.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
|
+
import { i as t } from "../types-DGuu4Eg4.js";
|
|
3
|
+
import { n } from "../overlay-oR-5MDuE.js";
|
|
4
|
+
import { i as r } from "../content-h8POj44-.js";
|
|
5
|
+
import { t as i } from "../overlayHost-78CGtMgR.js";
|
|
6
|
+
import { c as a, i as o } from "../config-BdK5ccNT.js";
|
|
7
|
+
import { n as s } from "../locale-B36KH7c3.js";
|
|
8
|
+
import "./style.js";
|
|
9
|
+
import { Fragment as c, Teleport as l, Transition as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createStaticVNode as g, createVNode as _, defineComponent as v, h as y, mergeProps as b, normalizeClass as x, normalizeStyle as S, onBeforeUnmount as C, openBlock as w, reactive as T, ref as ee, render as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as te, useSlots as ne, watch as j, withCtx as M } from "vue";
|
|
10
|
+
//#region src/components/Loading/types.ts
|
|
11
|
+
var N = [
|
|
12
|
+
"circular",
|
|
13
|
+
"aurora",
|
|
14
|
+
"bounce",
|
|
15
|
+
"wave",
|
|
16
|
+
"pulse",
|
|
17
|
+
"stardust"
|
|
18
|
+
], P = new Set(N);
|
|
19
|
+
function F(e) {
|
|
20
|
+
return typeof e == "string" && P.has(e);
|
|
21
|
+
}
|
|
22
|
+
function I(e) {
|
|
23
|
+
return F(e) ? e : "circular";
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/Loading/LoadingIndicator.vue?vue&type=script&setup=true&lang.ts
|
|
27
|
+
var L = ["aria-label"], R = {
|
|
28
|
+
class: "m-loading-indicator__graphic",
|
|
29
|
+
"aria-hidden": "true"
|
|
30
|
+
}, z = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "m-loading-aurora"
|
|
33
|
+
}, B = {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "m-loading-bounce"
|
|
36
|
+
}, V = {
|
|
37
|
+
key: 2,
|
|
38
|
+
class: "m-loading-wave"
|
|
39
|
+
}, re = {
|
|
40
|
+
key: 3,
|
|
41
|
+
class: "m-loading-pulse"
|
|
42
|
+
}, ie = {
|
|
43
|
+
key: 4,
|
|
44
|
+
class: "m-loading-stardust"
|
|
45
|
+
}, ae = {
|
|
46
|
+
key: 5,
|
|
47
|
+
class: "m-loading-circular"
|
|
48
|
+
}, oe = {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: "m-loading-indicator__tip"
|
|
51
|
+
}, H = /* @__PURE__ */ v({
|
|
52
|
+
name: "MLoadingIndicator",
|
|
53
|
+
__name: "LoadingIndicator",
|
|
54
|
+
props: {
|
|
55
|
+
effect: {},
|
|
56
|
+
text: {},
|
|
57
|
+
ariaLabel: {},
|
|
58
|
+
size: {}
|
|
59
|
+
},
|
|
60
|
+
setup(e) {
|
|
61
|
+
let n = e, r = s(), i = o("Loading"), a = d(() => I(n.effect ?? i.value.effect)), l = d(() => n.size ?? i.value.size), u = d(() => {
|
|
62
|
+
let e = t(l.value);
|
|
63
|
+
return {
|
|
64
|
+
"m-loading-indicator--small": e === "small",
|
|
65
|
+
"m-loading-indicator--large": e === "large"
|
|
66
|
+
};
|
|
67
|
+
}), f = d(() => n.ariaLabel ?? (n.text ? void 0 : r.value.loading));
|
|
68
|
+
return (t, n) => (w(), m("div", {
|
|
69
|
+
class: x(["m-loading-indicator", u.value]),
|
|
70
|
+
role: "status",
|
|
71
|
+
"aria-live": "polite",
|
|
72
|
+
"aria-label": f.value
|
|
73
|
+
}, [h("div", R, [a.value === "aurora" ? (w(), m("div", z, [...n[0] ||= [h("div", { class: "m-loading-aurora__ring" }, null, -1), h("div", { class: "m-loading-aurora__glow" }, null, -1)]])) : a.value === "bounce" ? (w(), m("div", B, [...n[1] ||= [
|
|
74
|
+
h("span", { class: "m-loading-bounce__ball" }, null, -1),
|
|
75
|
+
h("span", { class: "m-loading-bounce__ball" }, null, -1),
|
|
76
|
+
h("span", { class: "m-loading-bounce__ball" }, null, -1)
|
|
77
|
+
]])) : a.value === "wave" ? (w(), m("div", V, [...n[2] ||= [g("<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)]])) : a.value === "pulse" ? (w(), m("div", re, [...n[3] ||= [
|
|
78
|
+
h("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
79
|
+
h("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
80
|
+
h("span", { class: "m-loading-pulse__ring" }, null, -1),
|
|
81
|
+
h("span", { class: "m-loading-pulse__ring" }, null, -1)
|
|
82
|
+
]])) : a.value === "stardust" ? (w(), m("div", ie, [(w(), m(c, null, D(8, (e) => h("span", {
|
|
83
|
+
key: e,
|
|
84
|
+
class: "m-loading-stardust__dot",
|
|
85
|
+
style: S({ "--i": String(e - 1) })
|
|
86
|
+
}, null, 4)), 64))])) : (w(), m("div", ae, [...n[4] ||= [h("svg", {
|
|
87
|
+
class: "m-loading-circular__svg",
|
|
88
|
+
viewBox: "0 0 50 50"
|
|
89
|
+
}, [h("circle", {
|
|
90
|
+
class: "m-loading-circular__path",
|
|
91
|
+
cx: "25",
|
|
92
|
+
cy: "25",
|
|
93
|
+
r: "20",
|
|
94
|
+
fill: "none"
|
|
95
|
+
})], -1)]]))]), e.text ? (w(), m("p", oe, k(e.text), 1)) : p("", !0)], 10, L));
|
|
96
|
+
}
|
|
97
|
+
}), U = /* @__PURE__ */ new Set(), W = null, G = 0, K = "";
|
|
98
|
+
function q() {
|
|
99
|
+
typeof document > "u" || (G === 0 && (K = document.body.style.overflow), G += 1, document.body.style.overflow = "hidden");
|
|
100
|
+
}
|
|
101
|
+
function J() {
|
|
102
|
+
typeof document > "u" || (G = Math.max(0, G - 1), G === 0 && (document.body.style.overflow = K));
|
|
103
|
+
}
|
|
104
|
+
function se(e) {
|
|
105
|
+
if (typeof document > "u") throw Error("[MLoading] service is only available in the browser");
|
|
106
|
+
if (!e || e === document.body) return document.body;
|
|
107
|
+
if (typeof e == "string") {
|
|
108
|
+
let t = document.querySelector(e);
|
|
109
|
+
if (!(t instanceof HTMLElement)) throw TypeError(`[MLoading] target not found: ${e}`);
|
|
110
|
+
return t;
|
|
111
|
+
}
|
|
112
|
+
return e;
|
|
113
|
+
}
|
|
114
|
+
function ce(e) {
|
|
115
|
+
let t = 0;
|
|
116
|
+
return () => {
|
|
117
|
+
t ||= requestAnimationFrame(() => {
|
|
118
|
+
t = 0, e();
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function Y(e) {
|
|
123
|
+
let t = T({
|
|
124
|
+
visible: !e.delay,
|
|
125
|
+
text: e.text ?? "",
|
|
126
|
+
effect: e.effect,
|
|
127
|
+
background: e.background,
|
|
128
|
+
customClass: e.customClass,
|
|
129
|
+
size: e.size,
|
|
130
|
+
fullscreen: !!e.fullscreen,
|
|
131
|
+
body: !!e.body && !e.fullscreen,
|
|
132
|
+
spinner: e.spinner,
|
|
133
|
+
top: 0,
|
|
134
|
+
left: 0,
|
|
135
|
+
width: 0,
|
|
136
|
+
height: 0
|
|
137
|
+
});
|
|
138
|
+
t.fullscreen && W && W.destroy();
|
|
139
|
+
let n = document.createElement("div");
|
|
140
|
+
(t.fullscreen || t.body ? document.body : e.target).appendChild(n);
|
|
141
|
+
let a = !1;
|
|
142
|
+
if (!t.fullscreen && !t.body) {
|
|
143
|
+
let t = getComputedStyle(e.target).position;
|
|
144
|
+
(!t || t === "static") && (e.target.classList.add("m-loading-parent--relative"), a = !0);
|
|
145
|
+
}
|
|
146
|
+
e.target.setAttribute("aria-busy", "true");
|
|
147
|
+
let o = !1;
|
|
148
|
+
function s(e) {
|
|
149
|
+
if (e && !o) {
|
|
150
|
+
q(), o = !0;
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
!e && o && (J(), o = !1);
|
|
154
|
+
}
|
|
155
|
+
t.visible && s(!!e.lock);
|
|
156
|
+
function c() {
|
|
157
|
+
if (!t.body) return;
|
|
158
|
+
let n = e.target.getBoundingClientRect();
|
|
159
|
+
t.top = n.top, t.left = n.left, t.width = n.width, t.height = n.height;
|
|
160
|
+
}
|
|
161
|
+
let l = ce(c), d = null;
|
|
162
|
+
t.body && (c(), window.addEventListener("scroll", l, !0), window.addEventListener("resize", l), typeof ResizeObserver < "u" && (d = new ResizeObserver(l), d.observe(e.target)));
|
|
163
|
+
let f = null;
|
|
164
|
+
e.delay && e.delay > 0 && (f = setTimeout(() => {
|
|
165
|
+
f = null, t.visible = !0, s(!!e.lock);
|
|
166
|
+
}, e.delay));
|
|
167
|
+
let p = null, m = !1, h = !1, g = null;
|
|
168
|
+
function _() {
|
|
169
|
+
h || (h = !0, m = !0, f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null), s(!1), t.body && (window.removeEventListener("scroll", l, !0), window.removeEventListener("resize", l), d?.disconnect(), d = null), a && e.target.classList.remove("m-loading-parent--relative"), e.target.getAttribute("aria-busy") === "true" && e.target.removeAttribute("aria-busy"), E(null, n), n.remove(), g && (U.delete(g), W === g && (W = null)));
|
|
170
|
+
}
|
|
171
|
+
let b = v({
|
|
172
|
+
name: "MLoadingMask",
|
|
173
|
+
setup() {
|
|
174
|
+
return () => y(u, {
|
|
175
|
+
name: "m-loading",
|
|
176
|
+
appear: !0,
|
|
177
|
+
duration: {
|
|
178
|
+
enter: 180,
|
|
179
|
+
leave: 130
|
|
180
|
+
},
|
|
181
|
+
onAfterLeave: () => _()
|
|
182
|
+
}, { default: () => {
|
|
183
|
+
if (!t.visible) return null;
|
|
184
|
+
let e = [
|
|
185
|
+
"m-loading-mask",
|
|
186
|
+
t.fullscreen ? "m-loading-mask--fullscreen" : void 0,
|
|
187
|
+
t.body ? "m-loading-mask--body" : void 0,
|
|
188
|
+
t.customClass || void 0
|
|
189
|
+
].filter((e) => !!e), n = {};
|
|
190
|
+
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 i = t.spinner ? r(t.spinner) : y(H, {
|
|
192
|
+
effect: t.effect,
|
|
193
|
+
size: t.size,
|
|
194
|
+
text: t.text || void 0
|
|
195
|
+
});
|
|
196
|
+
return y("div", {
|
|
197
|
+
class: e,
|
|
198
|
+
style: n
|
|
199
|
+
}, [i]);
|
|
200
|
+
} });
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
g = {
|
|
204
|
+
fullscreen: t.fullscreen,
|
|
205
|
+
destroy: _,
|
|
206
|
+
close() {
|
|
207
|
+
if (!m) {
|
|
208
|
+
if (m = !0, f !== null) {
|
|
209
|
+
clearTimeout(f), f = null, _();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
if (!t.visible) {
|
|
213
|
+
_();
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
t.visible = !1, p = setTimeout(_, 200);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}, U.add(g), t.fullscreen && (W = g);
|
|
220
|
+
let x = y(b);
|
|
221
|
+
return x.appContext = e.appContext ?? i(), E(x, n), {
|
|
222
|
+
close: () => g.close(),
|
|
223
|
+
destroy: () => _(),
|
|
224
|
+
setText(e) {
|
|
225
|
+
h || (t.text = e);
|
|
226
|
+
},
|
|
227
|
+
update(e) {
|
|
228
|
+
h || (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 && s(e.lock));
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function le() {
|
|
233
|
+
return {
|
|
234
|
+
close() {},
|
|
235
|
+
setText() {},
|
|
236
|
+
destroy() {}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function ue(e = {}) {
|
|
240
|
+
if (typeof document > "u") return le();
|
|
241
|
+
let t = e.fullscreen ?? (e.target == null && !e.body), n = Y({
|
|
242
|
+
target: t ? document.body : se(e.target ?? document.body),
|
|
243
|
+
fullscreen: t,
|
|
244
|
+
body: !!e.body && !t,
|
|
245
|
+
lock: e.lock,
|
|
246
|
+
text: e.text,
|
|
247
|
+
effect: e.effect,
|
|
248
|
+
background: e.background,
|
|
249
|
+
customClass: e.customClass,
|
|
250
|
+
size: e.size,
|
|
251
|
+
delay: e.delay,
|
|
252
|
+
spinner: e.spinner
|
|
253
|
+
});
|
|
254
|
+
return {
|
|
255
|
+
close: () => n.close(),
|
|
256
|
+
setText: (e) => n.setText(e),
|
|
257
|
+
destroy: () => n.destroy()
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
var X = { service: ue }, de = ["aria-busy"], fe = ["inert"], pe = /* @__PURE__ */ v({
|
|
261
|
+
name: "MLoading",
|
|
262
|
+
inheritAttrs: !1,
|
|
263
|
+
__name: "Loading",
|
|
264
|
+
props: {
|
|
265
|
+
pt: {},
|
|
266
|
+
loading: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
default: !0
|
|
269
|
+
},
|
|
270
|
+
effect: {},
|
|
271
|
+
text: {},
|
|
272
|
+
ariaLabel: {},
|
|
273
|
+
size: {},
|
|
274
|
+
background: {},
|
|
275
|
+
customClass: {},
|
|
276
|
+
fullscreen: {
|
|
277
|
+
type: Boolean,
|
|
278
|
+
default: !1
|
|
279
|
+
},
|
|
280
|
+
lock: {
|
|
281
|
+
type: Boolean,
|
|
282
|
+
default: !1
|
|
283
|
+
},
|
|
284
|
+
delay: { default: 0 }
|
|
285
|
+
},
|
|
286
|
+
setup(t) {
|
|
287
|
+
let r = t, i = te(), s = ne(), { rootAttrs: g } = e(i, () => r.pt), v = o("Loading"), y = a(), T = d(() => !!s.default), E = d(() => T.value || r.fullscreen), D = d(() => I(r.effect ?? v.value.effect)), k = d(() => r.size ?? v.value.size), N = d(() => r.delay ?? v.value.delay ?? 0), P = d(() => r.background ? { background: r.background } : void 0), F = d(() => n(r.fullscreen ? {
|
|
288
|
+
teleport: !0,
|
|
289
|
+
appendTo: "body"
|
|
290
|
+
} : { teleport: !1 }, y.value.appendTo)), L = ee(r.loading && N.value <= 0), R = null;
|
|
291
|
+
function z() {
|
|
292
|
+
R !== null && (clearTimeout(R), R = null);
|
|
293
|
+
}
|
|
294
|
+
j(() => [
|
|
295
|
+
r.loading,
|
|
296
|
+
N.value,
|
|
297
|
+
E.value
|
|
298
|
+
], ([e, t]) => {
|
|
299
|
+
if (z(), !e || !E.value) {
|
|
300
|
+
L.value = !1;
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (!t) {
|
|
304
|
+
L.value = !0;
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
L.value = !1, R = setTimeout(() => {
|
|
308
|
+
L.value = !0, R = null;
|
|
309
|
+
}, t);
|
|
310
|
+
}, { immediate: !0 });
|
|
311
|
+
let B = d(() => r.lock && L.value && E.value), V = !1;
|
|
312
|
+
return j(B, (e) => {
|
|
313
|
+
if (e && !V) {
|
|
314
|
+
q(), V = !0;
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
!e && V && (J(), V = !1);
|
|
318
|
+
}, { immediate: !0 }), C(() => {
|
|
319
|
+
z(), V &&= (J(), !1);
|
|
320
|
+
}), (e, n) => E.value ? (w(), m(c, { key: 0 }, [T.value ? (w(), m("div", b({ key: 0 }, A(g), {
|
|
321
|
+
class: ["m-loading", { "m-loading--active": L.value }],
|
|
322
|
+
"aria-busy": L.value || void 0
|
|
323
|
+
}), [h("div", {
|
|
324
|
+
class: "m-loading__content",
|
|
325
|
+
inert: L.value || void 0
|
|
326
|
+
}, [O(e.$slots, "default")], 8, fe), (w(), f(l, {
|
|
327
|
+
to: F.value.to,
|
|
328
|
+
disabled: F.value.disabled
|
|
329
|
+
}, [_(u, { name: "m-loading" }, {
|
|
330
|
+
default: M(() => [L.value ? (w(), m("div", {
|
|
331
|
+
key: 0,
|
|
332
|
+
class: x(["m-loading-mask", [{ "m-loading-mask--fullscreen": t.fullscreen }, t.customClass]]),
|
|
333
|
+
style: S(P.value)
|
|
334
|
+
}, [O(e.$slots, "indicator", {}, () => [_(H, {
|
|
335
|
+
effect: D.value,
|
|
336
|
+
size: k.value,
|
|
337
|
+
text: t.text,
|
|
338
|
+
"aria-label": t.ariaLabel
|
|
339
|
+
}, null, 8, [
|
|
340
|
+
"effect",
|
|
341
|
+
"size",
|
|
342
|
+
"text",
|
|
343
|
+
"aria-label"
|
|
344
|
+
])])], 6)) : p("", !0)]),
|
|
345
|
+
_: 3
|
|
346
|
+
})], 8, ["to", "disabled"]))], 16, de)) : (w(), f(l, {
|
|
347
|
+
key: 1,
|
|
348
|
+
to: F.value.to,
|
|
349
|
+
disabled: F.value.disabled
|
|
350
|
+
}, [_(u, { name: "m-loading" }, {
|
|
351
|
+
default: M(() => [L.value ? (w(), m("div", b({ key: 0 }, A(g), {
|
|
352
|
+
class: ["m-loading-mask m-loading-mask--fullscreen", t.customClass],
|
|
353
|
+
style: P.value,
|
|
354
|
+
role: "presentation",
|
|
355
|
+
"aria-busy": "true"
|
|
356
|
+
}), [O(e.$slots, "indicator", {}, () => [_(H, {
|
|
357
|
+
effect: D.value,
|
|
358
|
+
size: k.value,
|
|
359
|
+
text: t.text,
|
|
360
|
+
"aria-label": t.ariaLabel
|
|
361
|
+
}, null, 8, [
|
|
362
|
+
"effect",
|
|
363
|
+
"size",
|
|
364
|
+
"text",
|
|
365
|
+
"aria-label"
|
|
366
|
+
])])], 16)) : p("", !0)]),
|
|
367
|
+
_: 3
|
|
368
|
+
})], 8, ["to", "disabled"]))], 64)) : (w(), f(H, b({ key: 1 }, A(g), {
|
|
369
|
+
effect: D.value,
|
|
370
|
+
size: k.value,
|
|
371
|
+
text: t.text,
|
|
372
|
+
"aria-label": t.ariaLabel
|
|
373
|
+
}), null, 16, [
|
|
374
|
+
"effect",
|
|
375
|
+
"size",
|
|
376
|
+
"text",
|
|
377
|
+
"aria-label"
|
|
378
|
+
]));
|
|
379
|
+
}
|
|
380
|
+
}), Z = /* @__PURE__ */ new WeakMap();
|
|
381
|
+
function Q(e, ...t) {
|
|
382
|
+
for (let n of t) {
|
|
383
|
+
let t = e.getAttribute(n);
|
|
384
|
+
if (t != null) return t;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function me(e) {
|
|
388
|
+
return F(e) ? e : void 0;
|
|
389
|
+
}
|
|
390
|
+
function he(e, t) {
|
|
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 = me(r?.effect ?? Q(e, "m-loading-effect")), c = r?.size, l = Q(e, "m-loading-delay"), u = r?.delay ?? (l == null ? void 0 : Number(l));
|
|
392
|
+
return {
|
|
393
|
+
visible: i,
|
|
394
|
+
text: r?.text ?? Q(e, "m-loading-text"),
|
|
395
|
+
effect: s,
|
|
396
|
+
background: r?.background ?? Q(e, "m-loading-background"),
|
|
397
|
+
customClass: r?.customClass ?? Q(e, "m-loading-custom-class"),
|
|
398
|
+
size: typeof c == "string" ? c : void 0,
|
|
399
|
+
fullscreen: a,
|
|
400
|
+
lock: !!(t.modifiers.lock || r?.lock),
|
|
401
|
+
body: o,
|
|
402
|
+
delay: Number.isFinite(u) ? u : void 0,
|
|
403
|
+
spinner: r?.spinner,
|
|
404
|
+
mode: `${a}:${o}`
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
function $(e, t) {
|
|
408
|
+
let n = he(e, t), r = Z.get(e);
|
|
409
|
+
if (!n.visible) {
|
|
410
|
+
if (!r) return;
|
|
411
|
+
Z.delete(e), r.instance.close();
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
if (r && r.mode === n.mode) {
|
|
415
|
+
r.instance.update(n);
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
r?.instance.destroy(), Z.set(e, {
|
|
419
|
+
mode: n.mode,
|
|
420
|
+
instance: Y({
|
|
421
|
+
target: e,
|
|
422
|
+
text: n.text,
|
|
423
|
+
effect: n.effect,
|
|
424
|
+
background: n.background,
|
|
425
|
+
customClass: n.customClass,
|
|
426
|
+
size: n.size,
|
|
427
|
+
fullscreen: n.fullscreen,
|
|
428
|
+
lock: n.lock,
|
|
429
|
+
body: n.body,
|
|
430
|
+
delay: n.delay,
|
|
431
|
+
spinner: n.spinner,
|
|
432
|
+
appContext: t.instance?.$.appContext
|
|
433
|
+
})
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
var ge = {
|
|
437
|
+
mounted: $,
|
|
438
|
+
updated: $,
|
|
439
|
+
unmounted(e) {
|
|
440
|
+
let t = Z.get(e);
|
|
441
|
+
t && (Z.delete(e), t.instance.destroy());
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
//#endregion
|
|
445
|
+
//#region src/components/Loading/useLoading.ts
|
|
446
|
+
function _e(e = {}) {
|
|
447
|
+
let t = null;
|
|
448
|
+
function n() {
|
|
449
|
+
t?.close(), t = null;
|
|
450
|
+
}
|
|
451
|
+
return C(() => {
|
|
452
|
+
t?.destroy(), t = null;
|
|
453
|
+
}), {
|
|
454
|
+
open(r = {}) {
|
|
455
|
+
return n(), t = X.service({
|
|
456
|
+
...e,
|
|
457
|
+
...r
|
|
458
|
+
}), t;
|
|
459
|
+
},
|
|
460
|
+
close: n,
|
|
461
|
+
setText(e) {
|
|
462
|
+
t?.setText(e);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
//#endregion
|
|
467
|
+
export { N as LOADING_EFFECTS, pe as MLoading, F as isLoadingEffect, X as loading, I as normalizeLoadingEffect, _e as useLoading, ge as vLoading };
|