maz-ui 3.22.4 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAvatar.mjs +2 -2
- package/components/MazBackdrop.mjs +67 -107
- package/components/MazBadge.mjs +41 -50
- package/components/MazBottomSheet.mjs +2 -2
- package/components/MazBtn.mjs +2 -2
- package/components/MazCard.mjs +2 -2
- package/components/MazCarousel.mjs +2 -2
- package/components/MazChart.mjs +53 -63
- package/components/MazCheckbox.mjs +84 -128
- package/components/MazDialog.mjs +2 -2
- package/components/MazDialogPromise.mjs +3 -3
- package/components/MazDrawer.mjs +2 -2
- package/components/MazDropdown.mjs +2 -2
- package/components/MazDropzone.mjs +2 -2
- package/components/MazFullscreenLoader.mjs +14 -18
- package/components/MazGallery.mjs +352 -558
- package/components/MazIcon.mjs +76 -140
- package/components/MazInput.mjs +2 -2
- package/components/MazInputNumber.mjs +72 -99
- package/components/MazInputPrice.mjs +2 -2
- package/components/MazInputTags.mjs +2 -2
- package/components/MazLazyImg.mjs +2 -2
- package/components/MazPhoneNumberInput.mjs +2 -2
- package/components/MazPicker.mjs +2 -2
- package/components/MazRadio.mjs +65 -94
- package/components/MazRadioButtons.mjs +64 -78
- package/components/MazSelect.mjs +2 -2
- package/components/MazSlider.mjs +213 -325
- package/components/MazSpinner.mjs +25 -34
- package/components/MazStepper.mjs +2 -2
- package/components/MazSwitch.mjs +43 -60
- package/components/MazTabs.mjs +16 -25
- package/components/MazTabsBar.mjs +2 -2
- package/components/MazTabsContent.mjs +34 -43
- package/components/MazTabsContentItem.mjs +49 -63
- package/components/MazTextarea.mjs +124 -169
- package/components/MazTransitionExpand.mjs +36 -54
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/chunks/MazAvatar-1636f58b.mjs +126 -0
- package/components/chunks/MazBottomSheet-c24f92f8.mjs +217 -0
- package/components/chunks/MazBtn-124f3700.mjs +153 -0
- package/components/chunks/MazBtn-1e61862b.mjs +153 -0
- package/components/chunks/MazBtn-2d1d1ba5.mjs +153 -0
- package/components/chunks/MazBtn-3d74f737.mjs +153 -0
- package/components/chunks/MazBtn-4a447126.mjs +153 -0
- package/components/chunks/MazBtn-555928ed.mjs +153 -0
- package/components/chunks/MazBtn-571454f6.mjs +153 -0
- package/components/chunks/MazBtn-5e426592.mjs +153 -0
- package/components/chunks/MazBtn-683effc1.mjs +153 -0
- package/components/chunks/MazBtn-6905cc39.mjs +153 -0
- package/components/chunks/MazBtn-6ce4cfd3.mjs +153 -0
- package/components/chunks/MazBtn-74656d5b.mjs +153 -0
- package/components/chunks/MazBtn-7706b2da.mjs +158 -0
- package/components/chunks/MazBtn-a7a913dd.mjs +153 -0
- package/components/chunks/MazBtn-fb3c7af8.mjs +153 -0
- package/components/chunks/MazCard-bcc36489.mjs +214 -0
- package/components/chunks/MazCarousel-6da75122.mjs +107 -0
- package/components/chunks/MazCheckbox-040dc2c4.mjs +117 -0
- package/components/chunks/MazCheckbox-3a2b48b4.mjs +117 -0
- package/components/chunks/MazDialog-44eda544.mjs +250 -0
- package/components/chunks/MazDialogPromise-eec5acde.mjs +419 -0
- package/components/chunks/MazDrawer-b628b37e.mjs +206 -0
- package/components/chunks/MazDropdown-6f2248b0.mjs +345 -0
- package/components/chunks/MazDropzone-8cac10a6.mjs +242 -0
- package/components/chunks/MazGallery-6b8ecedf.mjs +617 -0
- package/components/chunks/MazIcon-52a76873.mjs +101 -0
- package/components/chunks/MazIcon-95e31ff8.mjs +96 -0
- package/components/chunks/MazInput-1ed4f946.mjs +283 -0
- package/components/chunks/MazInput-8a217995.mjs +271 -0
- package/components/chunks/MazInput-c51881ea.mjs +278 -0
- package/components/chunks/MazInputPrice-cd348d46.mjs +392 -0
- package/components/chunks/MazInputTags-aa95fae7.mjs +446 -0
- package/components/chunks/MazLazyImg-0412ab38.mjs +259 -0
- package/components/chunks/MazLazyImg-47d3449a.mjs +254 -0
- package/components/chunks/MazPhoneNumberInput-e1bf46f9.mjs +1216 -0
- package/components/chunks/MazPicker-e4620d8b.mjs +1140 -0
- package/components/chunks/MazPickerCalendar-da62262c.mjs +535 -0
- package/components/chunks/MazPickerHeader-a2e041eb.mjs +186 -0
- package/components/chunks/MazPickerMonthSwitcher-5bf8bd08.mjs +97 -0
- package/components/chunks/MazPickerShortcuts-7f95430e.mjs +74 -0
- package/components/chunks/MazPickerTime-717402ae.mjs +219 -0
- package/components/chunks/MazPickerYearSwitcher-85f97b6d.mjs +106 -0
- package/components/chunks/MazSelect-6ff6bb96.mjs +652 -0
- package/components/chunks/MazSpinner-054f948c.mjs +39 -0
- package/components/chunks/MazSpinner-059ee1d2.mjs +39 -0
- package/components/chunks/MazSpinner-08ee440b.mjs +39 -0
- package/components/chunks/MazSpinner-13403729.mjs +39 -0
- package/components/chunks/MazSpinner-44011019.mjs +39 -0
- package/components/chunks/MazSpinner-452a1534.mjs +39 -0
- package/components/chunks/MazSpinner-4c02cfd2.mjs +39 -0
- package/components/chunks/MazSpinner-51aa73ca.mjs +39 -0
- package/components/chunks/MazSpinner-6d1d24d5.mjs +39 -0
- package/components/chunks/MazSpinner-6e7c4705.mjs +39 -0
- package/components/chunks/MazSpinner-7895f54f.mjs +39 -0
- package/components/chunks/MazSpinner-7eee202e.mjs +39 -0
- package/components/chunks/MazSpinner-805e14a6.mjs +39 -0
- package/components/chunks/MazSpinner-85080b43.mjs +39 -0
- package/components/chunks/MazSpinner-a13a50c9.mjs +39 -0
- package/components/chunks/MazSpinner-a6d61cee.mjs +43 -0
- package/components/chunks/MazSpinner-c67b05bb.mjs +39 -0
- package/components/chunks/MazSpinner-caa33afc.mjs +39 -0
- package/components/chunks/MazSpinner-cb8fbe9a.mjs +39 -0
- package/components/chunks/MazSpinner-d9ef329f.mjs +39 -0
- package/components/chunks/MazStepper-39f018f3.mjs +191 -0
- package/components/chunks/MazTabsBar-27965f16.mjs +132 -0
- package/components/chunks/MazTransitionExpand-55cfbecb.mjs +41 -0
- package/components/chunks/MazTransitionExpand-cd24498f.mjs +41 -0
- package/components/chunks/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/components/chunks/check-31d7ba2f.mjs +30 -0
- package/components/chunks/check-c9b483c0.mjs +30 -0
- package/components/chunks/{check-circle-7acfa4c4.mjs → check-circle-59c383ed.mjs} +10 -12
- package/components/chunks/chevron-down-2b60111a.mjs +30 -0
- package/components/chunks/chevron-left-39b4621e.mjs +30 -0
- package/components/chunks/chevron-right-949a60fa.mjs +30 -0
- package/components/chunks/debounce-19c516b6.mjs +11 -0
- package/components/chunks/examples.mobile.json-f63d22fb.mjs +4 -0
- package/components/chunks/{exclamation-circle-2e115536.mjs → exclamation-circle-e2620aab.mjs} +10 -12
- package/components/chunks/{exclamation-triangle-10eb48dc.mjs → exclamation-triangle-21bf116a.mjs} +10 -12
- package/components/chunks/{eye-fbb13657.mjs → eye-dc12ce09.mjs} +12 -15
- package/components/chunks/{eye-slash-342420ff.mjs → eye-slash-fa42a017.mjs} +10 -12
- package/components/chunks/{magnifying-glass-5dffa35e.mjs → magnifying-glass-908981c0.mjs} +10 -12
- package/components/chunks/minus-e71140e1.mjs +30 -0
- package/components/chunks/no-photography-4c6c77cf.mjs +4 -0
- package/components/chunks/{no-photography-b0d08d6f.mjs → no-photography-be94ddda.mjs} +12 -15
- package/components/chunks/{no-symbol-975ce547.mjs → no-symbol-87477ad0.mjs} +10 -12
- package/components/chunks/{pencil-2f766dc8.mjs → pencil-4c35b4e7.mjs} +10 -12
- package/components/chunks/plus-c20544c3.mjs +30 -0
- package/components/chunks/x-mark-35f2f1e7.mjs +30 -0
- package/components/chunks/x-mark-7761acf4.mjs +29 -0
- package/modules/chunks/MazBtn-2f302422.cjs +1 -0
- package/modules/chunks/MazBtn-760c3b29.mjs +153 -0
- package/modules/chunks/MazIcon-0bd6b78e.mjs +96 -0
- package/modules/chunks/MazIcon-599a907f.cjs +1 -0
- package/modules/chunks/MazSpinner-03bd76bd.mjs +39 -0
- package/modules/chunks/MazSpinner-6ffa8db1.cjs +1 -0
- package/modules/chunks/{arrow-top-right-on-square-32bbe5a1.mjs → arrow-top-right-on-square-15191934.mjs} +10 -12
- package/modules/chunks/arrow-top-right-on-square-8e4ea6e2.cjs +1 -0
- package/modules/chunks/chevron-left-36731110.cjs +1 -0
- package/modules/chunks/chevron-left-39b4621e.mjs +30 -0
- package/modules/chunks/index-6a90ef88.mjs +1618 -0
- package/modules/chunks/index-794680d2.cjs +124 -0
- package/modules/chunks/{link-4eb05848.mjs → link-bb14441d.mjs} +10 -12
- package/modules/chunks/link-c7791a2a.cjs +1 -0
- package/modules/chunks/no-photography-0f6fcaf4.cjs +1 -0
- package/modules/chunks/no-photography-4c6c77cf.mjs +4 -0
- package/modules/chunks/x-mark-35f2f1e7.mjs +30 -0
- package/modules/chunks/x-mark-a28deca5.cjs +1 -0
- package/modules/index.cjs +1 -0
- package/modules/index.mjs +42 -42
- package/nuxt/index.json +1 -1
- package/package.json +14 -4
- package/types/resolvers/index.d.ts +1 -0
- package/types/resolvers/unplugin-vue-components-resolver.d.ts +8 -0
- package/types/utils/index.d.ts +3 -0
- package/components/chunks/MazAvatar-358d78d4.mjs +0 -138
- package/components/chunks/MazBottomSheet-61090f4a.mjs +0 -267
- package/components/chunks/MazBtn-0e02f0da.mjs +0 -184
- package/components/chunks/MazBtn-1daf9063.mjs +0 -184
- package/components/chunks/MazBtn-2f4fa942.mjs +0 -184
- package/components/chunks/MazBtn-31c6b731.mjs +0 -184
- package/components/chunks/MazBtn-48382169.mjs +0 -184
- package/components/chunks/MazBtn-4e1e116e.mjs +0 -184
- package/components/chunks/MazBtn-50abc4c5.mjs +0 -184
- package/components/chunks/MazBtn-84e12b6a.mjs +0 -184
- package/components/chunks/MazBtn-b42e3575.mjs +0 -184
- package/components/chunks/MazBtn-b56a7278.mjs +0 -184
- package/components/chunks/MazBtn-bbd6e9c8.mjs +0 -184
- package/components/chunks/MazBtn-cf0c8fcb.mjs +0 -184
- package/components/chunks/MazBtn-d92908b2.mjs +0 -191
- package/components/chunks/MazBtn-f48da79c.mjs +0 -184
- package/components/chunks/MazBtn-fec4c3b7.mjs +0 -184
- package/components/chunks/MazCard-4331dca0.mjs +0 -237
- package/components/chunks/MazCarousel-7825c7c9.mjs +0 -133
- package/components/chunks/MazCheckbox-ab5ddda2.mjs +0 -153
- package/components/chunks/MazCheckbox-e0bbe6ec.mjs +0 -153
- package/components/chunks/MazDialog-83e54b8c.mjs +0 -290
- package/components/chunks/MazDialogPromise-6967e821.mjs +0 -474
- package/components/chunks/MazDrawer-d778b3d2.mjs +0 -256
- package/components/chunks/MazDropdown-6f4482d7.mjs +0 -426
- package/components/chunks/MazDropzone-d1bb62dc.mjs +0 -325
- package/components/chunks/MazGallery-b2dc4286.mjs +0 -821
- package/components/chunks/MazIcon-b779da0a.mjs +0 -159
- package/components/chunks/MazIcon-bda198b4.mjs +0 -165
- package/components/chunks/MazInput-713b00d0.mjs +0 -326
- package/components/chunks/MazInput-b9386887.mjs +0 -341
- package/components/chunks/MazInput-c33627dd.mjs +0 -334
- package/components/chunks/MazInputPrice-452297f5.mjs +0 -481
- package/components/chunks/MazInputTags-7a463b81.mjs +0 -526
- package/components/chunks/MazLazyImg-6e395356.mjs +0 -336
- package/components/chunks/MazLazyImg-e0d8b6d0.mjs +0 -329
- package/components/chunks/MazPhoneNumberInput-48fe2445.mjs +0 -1536
- package/components/chunks/MazPicker-50fc11d1.mjs +0 -1352
- package/components/chunks/MazPickerCalendar-cacb361c.mjs +0 -689
- package/components/chunks/MazPickerHeader-63d45179.mjs +0 -216
- package/components/chunks/MazPickerMonthSwitcher-913c6e2c.mjs +0 -110
- package/components/chunks/MazPickerShortcuts-c6fabfc6.mjs +0 -88
- package/components/chunks/MazPickerTime-5e4475da.mjs +0 -301
- package/components/chunks/MazPickerYearSwitcher-dd4fa89c.mjs +0 -125
- package/components/chunks/MazSelect-2e5cd411.mjs +0 -850
- package/components/chunks/MazSpinner-022d7bee.mjs +0 -46
- package/components/chunks/MazSpinner-100c99b8.mjs +0 -46
- package/components/chunks/MazSpinner-191ad23b.mjs +0 -46
- package/components/chunks/MazSpinner-3155378b.mjs +0 -46
- package/components/chunks/MazSpinner-339a9006.mjs +0 -46
- package/components/chunks/MazSpinner-53979e96.mjs +0 -46
- package/components/chunks/MazSpinner-68d2f2ac.mjs +0 -46
- package/components/chunks/MazSpinner-6b563b22.mjs +0 -46
- package/components/chunks/MazSpinner-7cdc13e7.mjs +0 -46
- package/components/chunks/MazSpinner-8859d658.mjs +0 -46
- package/components/chunks/MazSpinner-8e180605.mjs +0 -52
- package/components/chunks/MazSpinner-9950424b.mjs +0 -46
- package/components/chunks/MazSpinner-c8270a93.mjs +0 -46
- package/components/chunks/MazSpinner-cb491238.mjs +0 -46
- package/components/chunks/MazSpinner-cb6f99f3.mjs +0 -46
- package/components/chunks/MazSpinner-ce4be8f1.mjs +0 -46
- package/components/chunks/MazSpinner-e5a9f319.mjs +0 -46
- package/components/chunks/MazSpinner-e92bd359.mjs +0 -46
- package/components/chunks/MazSpinner-eea9056d.mjs +0 -46
- package/components/chunks/MazSpinner-f1e69f29.mjs +0 -46
- package/components/chunks/MazStepper-4c19dbfc.mjs +0 -255
- package/components/chunks/MazTabsBar-3c2e2d69.mjs +0 -157
- package/components/chunks/MazTransitionExpand-474b00d4.mjs +0 -57
- package/components/chunks/MazTransitionExpand-f9e5a2d6.mjs +0 -57
- package/components/chunks/_plugin-vue_export-helper-cc2b3d55.mjs +0 -10
- package/components/chunks/check-8da249b1.mjs +0 -32
- package/components/chunks/check-f2fcce10.mjs +0 -32
- package/components/chunks/chevron-down-a78b9604.mjs +0 -32
- package/components/chunks/chevron-left-3365d59b.mjs +0 -32
- package/components/chunks/chevron-right-02f9e837.mjs +0 -32
- package/components/chunks/debounce-7d66ffa9.mjs +0 -12
- package/components/chunks/examples.mobile.json-618ba782.mjs +0 -4
- package/components/chunks/minus-c9cdee90.mjs +0 -32
- package/components/chunks/no-photography-7f2be516.mjs +0 -4
- package/components/chunks/plus-b1b0a5a8.mjs +0 -32
- package/components/chunks/x-mark-3b05101b.mjs +0 -31
- package/components/chunks/x-mark-c6ff45dd.mjs +0 -32
- package/modules/chunks/MazBtn-90ffd148.mjs +0 -184
- package/modules/chunks/MazIcon-988edef7.mjs +0 -159
- package/modules/chunks/MazSpinner-a16a3d8f.mjs +0 -46
- package/modules/chunks/chevron-left-3365d59b.mjs +0 -32
- package/modules/chunks/index-b1625fc2.mjs +0 -2315
- package/modules/chunks/no-photography-7f2be516.mjs +0 -4
- package/modules/chunks/x-mark-c6ff45dd.mjs +0 -32
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import "../assets/MazBtn.css";
|
|
2
|
+
import { defineComponent as M, defineAsyncComponent as p, useAttrs as E, useSlots as L, onBeforeMount as P, computed as t, openBlock as o, createBlock as u, resolveDynamicComponent as R, mergeProps as w, withCtx as A, createElementBlock as m, normalizeClass as s, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
+
import { _ as N } from "./index-6a90ef88.mjs";
|
|
4
|
+
const U = /* @__PURE__ */ M({
|
|
5
|
+
__name: "MazBtn",
|
|
6
|
+
props: {
|
|
7
|
+
variant: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "button",
|
|
10
|
+
validator: (e) => ["button", "link"].includes(e)
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "md",
|
|
15
|
+
validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "primary"
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "button",
|
|
24
|
+
validator: (e) => ["button", "submit", "reset"].includes(e)
|
|
25
|
+
},
|
|
26
|
+
rounded: { type: Boolean, default: !1 },
|
|
27
|
+
noRounded: { type: Boolean, default: !1 },
|
|
28
|
+
outline: { type: Boolean, default: !1 },
|
|
29
|
+
pastel: { type: Boolean, default: !1 },
|
|
30
|
+
block: { type: Boolean, default: !1 },
|
|
31
|
+
noUnderline: { type: Boolean, default: !1 },
|
|
32
|
+
noLeading: { type: Boolean, default: !1 },
|
|
33
|
+
loading: { type: Boolean, default: !1 },
|
|
34
|
+
disabled: { type: Boolean, default: !1 },
|
|
35
|
+
fab: { type: Boolean, default: !1 },
|
|
36
|
+
icon: { type: String, default: void 0 },
|
|
37
|
+
leftIcon: { type: String, default: void 0 },
|
|
38
|
+
rightIcon: { type: String, default: void 0 },
|
|
39
|
+
noPadding: { type: Boolean, default: !1 },
|
|
40
|
+
noElevation: { type: Boolean, default: !1 }
|
|
41
|
+
},
|
|
42
|
+
setup(e) {
|
|
43
|
+
const z = p(() => import("./MazSpinner-03bd76bd.mjs")), c = p(() => import("./MazIcon-0bd6b78e.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
|
+
P(() => {
|
|
45
|
+
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
|
+
});
|
|
47
|
+
const f = t(() => B ? "a" : h ? "router-link" : "button"), k = t(
|
|
48
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
49
|
+
), v = t(
|
|
50
|
+
() => (n.loading || n.disabled) && f.value === "button"
|
|
51
|
+
), I = t(() => v.value ? "--cursor-default" : "--cursor-pointer"), x = t(() => `--is-${n.variant}`), l = t(() => n.loading && n.variant === "button"), y = t(() => !!b["left-icon"] || n.leftIcon), g = t(() => !!b["right-icon"] || n.rightIcon), C = t(() => y.value || g.value), S = t(() => n.fab && n.icon), $ = t(() => f.value === "button" ? n.type : void 0);
|
|
52
|
+
return (i, V) => (o(), u(R(f.value), w(i.$attrs, {
|
|
53
|
+
disabled: v.value,
|
|
54
|
+
class: ["m-btn", [
|
|
55
|
+
`--${e.size}`,
|
|
56
|
+
k.value,
|
|
57
|
+
I.value,
|
|
58
|
+
x.value,
|
|
59
|
+
{
|
|
60
|
+
"--block": e.block,
|
|
61
|
+
"--no-underline": e.noUnderline,
|
|
62
|
+
"--no-leading": e.noLeading,
|
|
63
|
+
"--fab": e.fab,
|
|
64
|
+
"--loading": e.loading,
|
|
65
|
+
"--disabled": v.value,
|
|
66
|
+
"--icon": C.value,
|
|
67
|
+
"--rounded": e.rounded,
|
|
68
|
+
"--no-rounded": e.noRounded,
|
|
69
|
+
"--no-padding": e.noPadding,
|
|
70
|
+
"--no-elevation": e.noElevation
|
|
71
|
+
}
|
|
72
|
+
]],
|
|
73
|
+
type: $.value
|
|
74
|
+
}), {
|
|
75
|
+
default: A(() => [
|
|
76
|
+
y.value ? (o(), m(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
key: 0,
|
|
80
|
+
class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
81
|
+
},
|
|
82
|
+
[
|
|
83
|
+
r(i.$slots, "left-icon", {}, () => [
|
|
84
|
+
e.leftIcon ? (o(), u(d(c), {
|
|
85
|
+
key: 0,
|
|
86
|
+
name: e.leftIcon
|
|
87
|
+
}, null, 8, ["name"])) : a("v-if", !0)
|
|
88
|
+
], !0)
|
|
89
|
+
],
|
|
90
|
+
2
|
|
91
|
+
/* CLASS */
|
|
92
|
+
)) : a("v-if", !0),
|
|
93
|
+
S.value ? (o(), m(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
key: 1,
|
|
97
|
+
class: s(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
98
|
+
},
|
|
99
|
+
[
|
|
100
|
+
r(i.$slots, "icon", {}, () => [
|
|
101
|
+
e.icon ? (o(), u(d(c), {
|
|
102
|
+
key: 0,
|
|
103
|
+
name: e.icon
|
|
104
|
+
}, null, 8, ["name"])) : a("v-if", !0)
|
|
105
|
+
], !0)
|
|
106
|
+
],
|
|
107
|
+
2
|
|
108
|
+
/* CLASS */
|
|
109
|
+
)) : a("v-if", !0),
|
|
110
|
+
D(
|
|
111
|
+
"span",
|
|
112
|
+
{
|
|
113
|
+
class: s(["maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
114
|
+
},
|
|
115
|
+
[
|
|
116
|
+
r(i.$slots, "default", {}, void 0, !0)
|
|
117
|
+
],
|
|
118
|
+
2
|
|
119
|
+
/* CLASS */
|
|
120
|
+
),
|
|
121
|
+
g.value ? (o(), m(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
key: 2,
|
|
125
|
+
class: s(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
126
|
+
},
|
|
127
|
+
[
|
|
128
|
+
r(i.$slots, "right-icon", {}, () => [
|
|
129
|
+
e.rightIcon ? (o(), u(d(c), {
|
|
130
|
+
key: 0,
|
|
131
|
+
name: e.rightIcon
|
|
132
|
+
}, null, 8, ["name"])) : a("v-if", !0)
|
|
133
|
+
], !0)
|
|
134
|
+
],
|
|
135
|
+
2
|
|
136
|
+
/* CLASS */
|
|
137
|
+
)) : a("v-if", !0),
|
|
138
|
+
l.value ? (o(), u(d(z), {
|
|
139
|
+
key: 3,
|
|
140
|
+
size: "2em",
|
|
141
|
+
color: e.color,
|
|
142
|
+
class: "maz-absolute"
|
|
143
|
+
}, null, 8, ["color"])) : a("v-if", !0)
|
|
144
|
+
]),
|
|
145
|
+
_: 3
|
|
146
|
+
/* FORWARDED */
|
|
147
|
+
}, 16, ["disabled", "class", "type"]));
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const q = /* @__PURE__ */ N(U, [["__scopeId", "data-v-06ad874b"]]);
|
|
151
|
+
export {
|
|
152
|
+
q as default
|
|
153
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
|
|
2
|
+
import { i as q } from "./index-6a90ef88.mjs";
|
|
3
|
+
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
|
+
__name: "MazIcon",
|
|
5
|
+
props: {
|
|
6
|
+
src: { type: String, default: void 0 },
|
|
7
|
+
path: { type: String, default: void 0 },
|
|
8
|
+
name: { type: String, default: void 0 },
|
|
9
|
+
size: { type: String, default: void 0 },
|
|
10
|
+
title: { type: String, default: void 0 },
|
|
11
|
+
transformSource: {
|
|
12
|
+
type: Function,
|
|
13
|
+
default: (a) => a
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["loaded", "unloaded", "error"],
|
|
17
|
+
setup(a, { emit: S }) {
|
|
18
|
+
const i = {}, l = f(), d = f(), w = () => {
|
|
19
|
+
try {
|
|
20
|
+
return q("mazIconPath");
|
|
21
|
+
} catch {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}, o = a, c = S, m = g(() => o.path ?? w()), y = g(() => o.src ? o.src : m.value ? `${m.value}/${o.name}.svg` : `/${o.name}.svg`);
|
|
25
|
+
P(() => {
|
|
26
|
+
!o.name && !o.src && console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop');
|
|
27
|
+
});
|
|
28
|
+
const E = (e, n) => {
|
|
29
|
+
const t = e.querySelectorAll("title");
|
|
30
|
+
if (t.length > 0)
|
|
31
|
+
t[0].textContent = n;
|
|
32
|
+
else {
|
|
33
|
+
const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
34
|
+
r.textContent = n, e.append(r);
|
|
35
|
+
}
|
|
36
|
+
}, M = (e) => Object.keys(e).reduce((n, t) => (e[t] !== !1 && e[t] !== null && e[t] !== void 0 && (n[t] = e[t]), n), {}), z = (e) => {
|
|
37
|
+
const n = {}, t = e.attributes;
|
|
38
|
+
if (!t)
|
|
39
|
+
return n;
|
|
40
|
+
for (let r = t.length - 1; r >= 0; r--)
|
|
41
|
+
n[t[r].name] = t[r].value;
|
|
42
|
+
return n;
|
|
43
|
+
}, T = (e) => {
|
|
44
|
+
let n = e.cloneNode(!0);
|
|
45
|
+
return n = o.transformSource(e), o.title && E(n, o.title), e.innerHTML;
|
|
46
|
+
}, x = async (e) => {
|
|
47
|
+
i[e] || (i[e] = L(e));
|
|
48
|
+
try {
|
|
49
|
+
l.value = await i[e], await $(), c("loaded", d.value);
|
|
50
|
+
} catch (n) {
|
|
51
|
+
l.value && (l.value = void 0, c("unloaded")), delete i[e], c("error", n);
|
|
52
|
+
}
|
|
53
|
+
}, L = (e) => new Promise((n, t) => {
|
|
54
|
+
const r = new XMLHttpRequest();
|
|
55
|
+
r.open("GET", e, !0), r.addEventListener("load", () => {
|
|
56
|
+
if (r.status >= 200 && r.status < 400)
|
|
57
|
+
try {
|
|
58
|
+
let u = new DOMParser().parseFromString(r.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
59
|
+
u ? (u = o.transformSource(u), n(u)) : t(new Error('Loaded file is not valid SVG"'));
|
|
60
|
+
} catch (v) {
|
|
61
|
+
t(v);
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
t(new Error("Error loading SVG"));
|
|
65
|
+
}), r.addEventListener("error", () => t()), r.send();
|
|
66
|
+
});
|
|
67
|
+
return _(() => x(y.value)), (e, n) => (p(), h(
|
|
68
|
+
A,
|
|
69
|
+
null,
|
|
70
|
+
[
|
|
71
|
+
s(" eslint-disable vue/no-v-html "),
|
|
72
|
+
s(" eslint-disable vue/html-self-closing "),
|
|
73
|
+
l.value ? (p(), h("svg", C({
|
|
74
|
+
key: 0,
|
|
75
|
+
ref_key: "svgElem",
|
|
76
|
+
ref: d,
|
|
77
|
+
width: "1em",
|
|
78
|
+
height: "1em"
|
|
79
|
+
}, {
|
|
80
|
+
...z(l.value),
|
|
81
|
+
...M(e.$attrs)
|
|
82
|
+
}, {
|
|
83
|
+
style: `font-size: ${a.size}`,
|
|
84
|
+
innerHTML: T(l.value)
|
|
85
|
+
}), null, 16, H)) : s("v-if", !0),
|
|
86
|
+
s(" eslint-enable vue/no-v-html "),
|
|
87
|
+
s(" eslint-enable vue/html-self-closing ")
|
|
88
|
+
],
|
|
89
|
+
2112
|
|
90
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
91
|
+
));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
G as default
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-794680d2.cjs"),T=["innerHTML"],b=t.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:a=>a}},emits:["loaded","unloaded","error"],setup(a,{emit:f}){const i={},s=t.ref(),d=t.ref(),g=()=>{try{return C.injectStrict("mazIconPath")}catch{return}},l=a,u=f,m=t.computed(()=>l.path??g()),p=t.computed(()=>l.src?l.src:m.value?`${m.value}/${l.name}.svg`:`/${l.name}.svg`);t.onMounted(()=>{!l.name&&!l.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});const h=(e,r)=>{const n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=r;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=r,e.append(o)}},S=e=>Object.keys(e).reduce((r,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(r[n]=e[n]),r),{}),y=e=>{const r={},n=e.attributes;if(!n)return r;for(let o=n.length-1;o>=0;o--)r[n[o].name]=n[o].value;return r},w=e=>{let r=e.cloneNode(!0);return r=l.transformSource(e),l.title&&h(r,l.title),e.innerHTML},E=async e=>{i[e]||(i[e]=M(e));try{s.value=await i[e],await t.nextTick(),u("loaded",d.value)}catch(r){s.value&&(s.value=void 0,u("unloaded")),delete i[e],u("error",r)}},M=e=>new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.addEventListener("load",()=>{if(o.status>=200&&o.status<400)try{let c=new DOMParser().parseFromString(o.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=l.transformSource(c),r(c)):n(new Error('Loaded file is not valid SVG"'))}catch(v){n(v)}else n(new Error("Error loading SVG"))}),o.addEventListener("error",()=>n()),o.send()});return t.watchEffect(()=>E(p.value)),(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable vue/no-v-html "),t.createCommentVNode(" eslint-disable vue/html-self-closing "),s.value?(t.openBlock(),t.createElementBlock("svg",t.mergeProps({key:0,ref_key:"svgElem",ref:d,width:"1em",height:"1em"},{...y(s.value),...S(e.$attrs)},{style:`font-size: ${a.size}`,innerHTML:w(s.value)}),null,16,T)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-enable vue/no-v-html "),t.createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}});exports.default=b;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "../assets/MazSpinner.css";
|
|
2
|
+
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as p, createElementVNode as r } from "vue";
|
|
3
|
+
import { _ as i } from "./index-6a90ef88.mjs";
|
|
4
|
+
const a = (e) => (s("data-v-c67298ec"), e = e(), p(), e), _ = ["width", "height"], d = /* @__PURE__ */ a(() => /* @__PURE__ */ r(
|
|
5
|
+
"path",
|
|
6
|
+
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
7
|
+
null,
|
|
8
|
+
-1
|
|
9
|
+
/* HOISTED */
|
|
10
|
+
)), l = [
|
|
11
|
+
d
|
|
12
|
+
], m = /* @__PURE__ */ t({
|
|
13
|
+
__name: "MazSpinner",
|
|
14
|
+
props: {
|
|
15
|
+
size: { type: String, default: "2em" },
|
|
16
|
+
color: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "primary"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(e) {
|
|
22
|
+
return (h, u) => (o(), c("svg", {
|
|
23
|
+
width: e.size,
|
|
24
|
+
height: e.size,
|
|
25
|
+
version: "1.1",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
x: "0px",
|
|
28
|
+
y: "0px",
|
|
29
|
+
viewBox: "0 0 50 50",
|
|
30
|
+
"xml:space": "preserve",
|
|
31
|
+
class: n(["m-spinner", `m-spinner--${e.color}`]),
|
|
32
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
33
|
+
}, l, 10, _));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const w = /* @__PURE__ */ i(m, [["__scopeId", "data-v-c67298ec"]]);
|
|
37
|
+
export {
|
|
38
|
+
w as default
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=require("../assets/MazSpinner.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./index-794680d2.cjs"),c=e=>(t.pushScopeId("data-v-c67298ec"),e=e(),t.popScopeId(),e),o=["width","height"],s=c(()=>t.createElementVNode("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},null,-1)),i=[s],r=t.defineComponent({__name:"MazSpinner",props:{size:{type:String,default:"2em"},color:{type:String,default:"primary"}},setup(e){return(a,d)=>(t.openBlock(),t.createElementBlock("svg",{width:e.size,height:e.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:t.normalizeClass(["m-spinner",`m-spinner--${e.color}`]),style:{"enable-background":"new 0 0 50 50"}},i,10,o))}});const p=n._export_sfc(r,[["__scopeId","data-v-c67298ec"]]);exports.default=p;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createElementVNode } from "vue";
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
|
|
2
|
+
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
5
5
|
height: "1em",
|
|
6
6
|
fill: "none",
|
|
7
7
|
viewBox: "0 0 24 24"
|
|
8
|
-
}
|
|
9
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode(
|
|
8
|
+
}, n = /* @__PURE__ */ t(
|
|
10
9
|
"path",
|
|
11
10
|
{
|
|
12
11
|
stroke: "currentColor",
|
|
@@ -18,15 +17,14 @@ const _hoisted_2 = /* @__PURE__ */ createElementVNode(
|
|
|
18
17
|
null,
|
|
19
18
|
-1
|
|
20
19
|
/* HOISTED */
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
_hoisted_2
|
|
20
|
+
), s = [
|
|
21
|
+
n
|
|
24
22
|
];
|
|
25
|
-
function
|
|
26
|
-
return
|
|
23
|
+
function c(i, h) {
|
|
24
|
+
return e(), o("svg", r, [...s]);
|
|
27
25
|
}
|
|
28
|
-
const
|
|
26
|
+
const d = { render: c };
|
|
29
27
|
export {
|
|
30
|
-
|
|
31
|
-
render
|
|
28
|
+
d as default,
|
|
29
|
+
c as render
|
|
32
30
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},r=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"},null,-1),n=[r];function t(i,s){return e.openBlock(),e.createElementBlock("svg",o,[...n])}const c={render:t};exports.default=c;exports.render=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M15.75 19.5 8.25 12l7.5-7.5"},null,-1),r=[n];function t(l,s){return e.openBlock(),e.createElementBlock("svg",o,[...r])}const c={render:t};exports.default=c;exports.render=t;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 24 24"
|
|
8
|
+
}, r = /* @__PURE__ */ o(
|
|
9
|
+
"path",
|
|
10
|
+
{
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
"stroke-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round",
|
|
14
|
+
"stroke-width": "1.5",
|
|
15
|
+
d: "M15.75 19.5 8.25 12l7.5-7.5"
|
|
16
|
+
},
|
|
17
|
+
null,
|
|
18
|
+
-1
|
|
19
|
+
/* HOISTED */
|
|
20
|
+
), c = [
|
|
21
|
+
r
|
|
22
|
+
];
|
|
23
|
+
function s(l, i) {
|
|
24
|
+
return e(), t("svg", n, [...c]);
|
|
25
|
+
}
|
|
26
|
+
const h = { render: s };
|
|
27
|
+
export {
|
|
28
|
+
h as default,
|
|
29
|
+
s as render
|
|
30
|
+
};
|