@mozaic-ds/vue 2.5.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +276 -258
- package/dist/mozaic-vue.js +528 -507
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +1 -1
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +2 -2
- package/src/components/avatar/MAvatar.vue +2 -2
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +1 -0
- package/src/components/breadcrumb/MBreadcrumb.vue +3 -3
- package/src/components/button/MButton.vue +1 -1
- package/src/components/callout/MCallout.vue +5 -5
- package/src/components/checkbox/MCheckbox.vue +5 -1
- package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
- package/src/components/checkboxgroup/MCheckboxGroup.vue +1 -1
- package/src/components/circularprogressbar/MCircularProgressbar.vue +2 -2
- package/src/components/container/MContainer.stories.ts +3 -3
- package/src/components/container/MContainer.vue +2 -2
- package/src/components/datepicker/MDatepicker.stories.ts +1 -1
- package/src/components/datepicker/MDatepicker.vue +7 -3
- package/src/components/divider/MDivider.spec.ts +5 -5
- package/src/components/divider/MDivider.stories.ts +7 -13
- package/src/components/divider/MDivider.vue +8 -8
- package/src/components/drawer/MDrawer.vue +7 -3
- package/src/components/flag/MFlag.vue +2 -2
- package/src/components/iconbutton/MIconButton.vue +1 -1
- package/src/components/linearprogressbarbuffer/MLinearProgressbarBuffer.vue +5 -1
- package/src/components/linearprogressbarpercentage/MLinearProgressbarPercentage.vue +4 -0
- package/src/components/link/MLink.stories.ts +2 -2
- package/src/components/link/MLink.vue +22 -10
- package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +1 -1
- package/src/components/loadingoverlay/MLoadingOverlay.vue +4 -0
- package/src/components/modal/MModal.vue +11 -7
- package/src/components/numberbadge/MNumberBadge.vue +4 -4
- package/src/components/overlay/MOverlay.stories.ts +1 -1
- package/src/components/overlay/MOverlay.vue +2 -2
- package/src/components/pagination/MPagination.stories.ts +1 -0
- package/src/components/pagination/MPagination.vue +1 -1
- package/src/components/passwordinput/MPasswordInput.vue +6 -2
- package/src/components/pincode/MPincode.stories.ts +1 -1
- package/src/components/pincode/MPincode.vue +5 -1
- package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
- package/src/components/quantityselector/MQuantitySelector.vue +6 -2
- package/src/components/radio/MRadio.vue +5 -1
- package/src/components/radiogroup/MRadioGroup.vue +1 -1
- package/src/components/select/MSelect.vue +6 -2
- package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
- package/src/components/statusbadge/MStatusBadge.vue +3 -3
- package/src/components/statusdot/MStatusDot.vue +3 -3
- package/src/components/statusnotification/MStatusNotification.vue +12 -10
- package/src/components/tabs/Mtabs.spec.ts +3 -3
- package/src/components/tag/MTag.stories.ts +1 -1
- package/src/components/tag/MTag.vue +4 -0
- package/src/components/textarea/MTextArea.vue +5 -1
- package/src/components/textinput/MTextInput.vue +10 -6
- package/src/components/toaster/MToaster.vue +4 -4
- package/src/components/toggle/MToggle.vue +6 -2
- package/src/components/togglegroup/MToggleGroup.vue +2 -2
- package/src/components/tooltip/MTooltip.vue +8 -10
- package/src/main.ts +5 -4
package/dist/mozaic-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as v, createElementBlock as
|
|
1
|
+
import { defineComponent as $, computed as v, createElementBlock as i, openBlock as o, normalizeClass as g, renderSlot as k, createBlock as B, resolveDynamicComponent as q, mergeProps as V, withCtx as M, createCommentVNode as h, createElementVNode as d, Fragment as A, renderList as P, createVNode as w, createTextVNode as D, toDisplayString as b, normalizeStyle as H, ref as z, watch as T, withKeys as R, withDirectives as K, vModelDynamic as ee, nextTick as ae, vModelText as te, onMounted as se, onBeforeUnmount as oe } from "vue";
|
|
2
2
|
const le = /* @__PURE__ */ $({
|
|
3
3
|
__name: "MAvatar",
|
|
4
4
|
props: {
|
|
@@ -8,7 +8,7 @@ const le = /* @__PURE__ */ $({
|
|
|
8
8
|
const e = r, a = v(() => ({
|
|
9
9
|
[`mc-avatar--${e.size}`]: e.size && e.size != "s"
|
|
10
10
|
}));
|
|
11
|
-
return (t,
|
|
11
|
+
return (t, n) => (o(), i("span", {
|
|
12
12
|
class: g(["mc-avatar", a.value])
|
|
13
13
|
}, [
|
|
14
14
|
k(t.$slots, "default", {}, void 0, !0)
|
|
@@ -16,10 +16,10 @@ const le = /* @__PURE__ */ $({
|
|
|
16
16
|
}
|
|
17
17
|
}), m = (r, e) => {
|
|
18
18
|
const a = r.__vccOpts || r;
|
|
19
|
-
for (const [t,
|
|
20
|
-
a[t] =
|
|
19
|
+
for (const [t, n] of e)
|
|
20
|
+
a[t] = n;
|
|
21
21
|
return a;
|
|
22
|
-
},
|
|
22
|
+
}, Xs = /* @__PURE__ */ m(le, [["__scopeId", "data-v-9ebdb5d7"]]), ne = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "mc-link__icon",
|
|
25
25
|
"aria-hidden": "true"
|
|
@@ -44,28 +44,31 @@ const le = /* @__PURE__ */ $({
|
|
|
44
44
|
[`mc-link--${e.size}`]: e.size && e.size != "s",
|
|
45
45
|
"mc-link--inline": e.inline,
|
|
46
46
|
"mc-link--stand-alone": !e.inline
|
|
47
|
-
}))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
47
|
+
})), t = v(() => e.router ? {
|
|
48
|
+
to: e.href,
|
|
49
|
+
target: e.target
|
|
50
|
+
} : {
|
|
51
|
+
href: e.href,
|
|
52
|
+
target: e.target
|
|
53
|
+
});
|
|
54
|
+
return (n, s) => (o(), B(q(n.router ? "router-link" : "a"), V({
|
|
55
|
+
class: ["mc-link", a.value]
|
|
56
|
+
}, t.value), {
|
|
54
57
|
default: M(() => [
|
|
55
|
-
|
|
56
|
-
k(
|
|
58
|
+
n.$slots.icon && n.iconPosition == "left" ? (o(), i("span", ne, [
|
|
59
|
+
k(n.$slots, "icon", {}, void 0, !0)
|
|
57
60
|
])) : h("", !0),
|
|
58
61
|
d("span", ie, [
|
|
59
|
-
k(
|
|
62
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
60
63
|
]),
|
|
61
|
-
|
|
62
|
-
k(
|
|
64
|
+
n.$slots.icon && n.iconPosition == "right" ? (o(), i("span", re, [
|
|
65
|
+
k(n.$slots, "icon", {}, void 0, !0)
|
|
63
66
|
])) : h("", !0)
|
|
64
67
|
]),
|
|
65
68
|
_: 3
|
|
66
|
-
},
|
|
69
|
+
}, 16, ["class"]));
|
|
67
70
|
}
|
|
68
|
-
}), ce = /* @__PURE__ */ m(de, [["__scopeId", "data-v-
|
|
71
|
+
}), ce = /* @__PURE__ */ m(de, [["__scopeId", "data-v-23fa0281"]]), ue = { class: "mc-breadcrumb__container" }, pe = /* @__PURE__ */ $({
|
|
69
72
|
__name: "MBreadcrumb",
|
|
70
73
|
props: {
|
|
71
74
|
appearance: {},
|
|
@@ -74,28 +77,27 @@ const le = /* @__PURE__ */ $({
|
|
|
74
77
|
setup(r) {
|
|
75
78
|
const e = r, a = v(() => ({
|
|
76
79
|
[`mc-breadcrumb--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
77
|
-
})), t = (
|
|
78
|
-
return (
|
|
79
|
-
class: g(["mc-breadcrumb", a.value])
|
|
80
|
-
"aria-label": "Breadcrumb"
|
|
80
|
+
})), t = (n) => n === (e.links?.length ?? 0) - 1;
|
|
81
|
+
return (n, s) => (o(), i("nav", {
|
|
82
|
+
class: g(["mc-breadcrumb", a.value])
|
|
81
83
|
}, [
|
|
82
84
|
d("ul", ue, [
|
|
83
|
-
(o(!0),
|
|
85
|
+
(o(!0), i(A, null, P(n.links, (l, p) => (o(), i("li", {
|
|
84
86
|
class: "mc-breadcrumb__item",
|
|
85
|
-
key: `breadcrumb-${
|
|
87
|
+
key: `breadcrumb-${p}`
|
|
86
88
|
}, [
|
|
87
89
|
w(ce, {
|
|
88
90
|
href: l.href,
|
|
89
91
|
router: l.router,
|
|
90
|
-
appearance:
|
|
92
|
+
appearance: n.appearance,
|
|
91
93
|
inline: "",
|
|
92
94
|
class: g({
|
|
93
|
-
"mc-breadcrumb__current": t(
|
|
95
|
+
"mc-breadcrumb__current": t(p)
|
|
94
96
|
}),
|
|
95
|
-
"aria-current": t(
|
|
97
|
+
"aria-current": t(p) ? "page" : void 0
|
|
96
98
|
}, {
|
|
97
99
|
default: M(() => [
|
|
98
|
-
|
|
100
|
+
D(b(l.label), 1)
|
|
99
101
|
]),
|
|
100
102
|
_: 2
|
|
101
103
|
}, 1032, ["href", "router", "appearance", "class", "aria-current"])
|
|
@@ -103,7 +105,7 @@ const le = /* @__PURE__ */ $({
|
|
|
103
105
|
])
|
|
104
106
|
], 2));
|
|
105
107
|
}
|
|
106
|
-
}),
|
|
108
|
+
}), Ys = /* @__PURE__ */ m(pe, [["__scopeId", "data-v-0cf6e2a5"]]), me = { class: "mc-loader__spinner" }, _e = ["viewBox"], ve = ["r"], be = {
|
|
107
109
|
key: 0,
|
|
108
110
|
class: "mc-loader__text",
|
|
109
111
|
role: "status"
|
|
@@ -132,7 +134,7 @@ const le = /* @__PURE__ */ $({
|
|
|
132
134
|
s = "0 0 32 32";
|
|
133
135
|
}
|
|
134
136
|
return s;
|
|
135
|
-
}),
|
|
137
|
+
}), n = v(() => {
|
|
136
138
|
let s;
|
|
137
139
|
switch (e.size) {
|
|
138
140
|
case "s":
|
|
@@ -146,11 +148,11 @@ const le = /* @__PURE__ */ $({
|
|
|
146
148
|
}
|
|
147
149
|
return s;
|
|
148
150
|
});
|
|
149
|
-
return (s, l) => (o(),
|
|
151
|
+
return (s, l) => (o(), i("div", {
|
|
150
152
|
class: g(["mc-loader", a.value])
|
|
151
153
|
}, [
|
|
152
154
|
d("span", me, [
|
|
153
|
-
(o(),
|
|
155
|
+
(o(), i("svg", {
|
|
154
156
|
class: "mc-loader__icon",
|
|
155
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
158
|
viewBox: t.value,
|
|
@@ -160,11 +162,11 @@ const le = /* @__PURE__ */ $({
|
|
|
160
162
|
class: "mc-loader__path",
|
|
161
163
|
cx: "50%",
|
|
162
164
|
cy: "50%",
|
|
163
|
-
r:
|
|
165
|
+
r: n.value
|
|
164
166
|
}, null, 8, ve)
|
|
165
167
|
], 8, _e))
|
|
166
168
|
]),
|
|
167
|
-
s.text ? (o(),
|
|
169
|
+
s.text ? (o(), i("p", be, b(s.text), 1)) : h("", !0)
|
|
168
170
|
], 2));
|
|
169
171
|
}
|
|
170
172
|
}), E = /* @__PURE__ */ m(fe, [["__scopeId", "data-v-998c550b"]]), he = ["disabled", "type"], $e = {
|
|
@@ -200,37 +202,68 @@ const le = /* @__PURE__ */ $({
|
|
|
200
202
|
"mc-button--outlined": e.outlined,
|
|
201
203
|
"mc-button--icon-only": e.iconPosition == "only"
|
|
202
204
|
}));
|
|
203
|
-
return (t,
|
|
205
|
+
return (t, n) => (o(), i("button", {
|
|
204
206
|
class: g(["mc-button", a.value]),
|
|
205
207
|
disabled: t.disabled,
|
|
206
208
|
type: t.type
|
|
207
209
|
}, [
|
|
208
|
-
t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (o(),
|
|
210
|
+
t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (o(), i("span", $e, [
|
|
209
211
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
210
212
|
])) : h("", !0),
|
|
211
|
-
t.isLoading ? (o(),
|
|
213
|
+
t.isLoading ? (o(), i("span", ge, [
|
|
212
214
|
w(E, {
|
|
213
215
|
style: { color: "currentColor" },
|
|
214
216
|
size: "s"
|
|
215
217
|
})
|
|
216
218
|
])) : h("", !0),
|
|
217
|
-
t.$slots.icon && t.iconPosition == "only" ? (o(),
|
|
219
|
+
t.$slots.icon && t.iconPosition == "only" ? (o(), i("span", ye, [
|
|
218
220
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
219
|
-
])) : (o(),
|
|
221
|
+
])) : (o(), i("span", {
|
|
220
222
|
key: 3,
|
|
221
223
|
class: "mc-button__label",
|
|
222
224
|
style: H({ visibility: t.isLoading ? "hidden" : "visible" })
|
|
223
225
|
}, [
|
|
224
226
|
k(t.$slots, "default", {}, () => [
|
|
225
|
-
|
|
227
|
+
n[0] || (n[0] = D("Button Label", -1))
|
|
226
228
|
], !0)
|
|
227
229
|
], 4)),
|
|
228
|
-
t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (o(),
|
|
230
|
+
t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (o(), i("span", ke, [
|
|
229
231
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
230
232
|
])) : h("", !0)
|
|
231
233
|
], 10, he));
|
|
232
234
|
}
|
|
233
|
-
}), N = /* @__PURE__ */ m(we, [["__scopeId", "data-v-
|
|
235
|
+
}), N = /* @__PURE__ */ m(we, [["__scopeId", "data-v-b436925a"]]), Ve = { class: "mc-callout__icon" }, Ie = { class: "mc-callout__content" }, Be = { class: "mc-callout__title" }, Ce = { class: "mc-callout__message" }, Me = {
|
|
236
|
+
key: 0,
|
|
237
|
+
class: "mc-callout__footer"
|
|
238
|
+
}, ze = /* @__PURE__ */ $({
|
|
239
|
+
__name: "MCallout",
|
|
240
|
+
props: {
|
|
241
|
+
title: {},
|
|
242
|
+
description: {},
|
|
243
|
+
appearance: { default: "standard" }
|
|
244
|
+
},
|
|
245
|
+
setup(r) {
|
|
246
|
+
const e = r, a = v(() => ({
|
|
247
|
+
[`mc-callout--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
248
|
+
}));
|
|
249
|
+
return (t, n) => (o(), i("section", {
|
|
250
|
+
class: g(["mc-callout", a.value]),
|
|
251
|
+
role: "status"
|
|
252
|
+
}, [
|
|
253
|
+
d("div", Ve, [
|
|
254
|
+
k(t.$slots, "icon", {}, void 0, !0)
|
|
255
|
+
]),
|
|
256
|
+
d("div", Ie, [
|
|
257
|
+
d("h2", Be, b(t.title), 1),
|
|
258
|
+
d("p", Ce, b(t.description), 1),
|
|
259
|
+
t.$slots.footer ? (o(), i("div", Me, [
|
|
260
|
+
k(t.$slots, "footer", {}, void 0, !0)
|
|
261
|
+
])) : h("", !0)
|
|
262
|
+
])
|
|
263
|
+
], 2));
|
|
264
|
+
}
|
|
265
|
+
}), Zs = /* @__PURE__ */ m(ze, [["__scopeId", "data-v-0f26ffb7"]]), Le = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], je = ["for"], Oe = /* @__PURE__ */ $({
|
|
266
|
+
inheritAttrs: !1,
|
|
234
267
|
__name: "MCheckbox",
|
|
235
268
|
props: {
|
|
236
269
|
id: {},
|
|
@@ -246,13 +279,13 @@ const le = /* @__PURE__ */ $({
|
|
|
246
279
|
setup(r, { emit: e }) {
|
|
247
280
|
const a = r, t = v(() => ({
|
|
248
281
|
"is-invalid": a.isInvalid
|
|
249
|
-
})),
|
|
282
|
+
})), n = v(() => ({
|
|
250
283
|
"mc-checkbox--indented": a.indented
|
|
251
284
|
})), s = e;
|
|
252
|
-
return (l,
|
|
253
|
-
class: g(["mc-checkbox",
|
|
285
|
+
return (l, p) => (o(), i("div", {
|
|
286
|
+
class: g(["mc-checkbox", n.value])
|
|
254
287
|
}, [
|
|
255
|
-
d("input",
|
|
288
|
+
d("input", V({
|
|
256
289
|
id: l.id,
|
|
257
290
|
type: "checkbox",
|
|
258
291
|
class: ["mc-checkbox__input", t.value],
|
|
@@ -262,16 +295,16 @@ const le = /* @__PURE__ */ $({
|
|
|
262
295
|
disabled: l.disabled,
|
|
263
296
|
"aria-invalid": l.isInvalid
|
|
264
297
|
}, l.$attrs, {
|
|
265
|
-
onChange:
|
|
266
|
-
}), null, 16,
|
|
267
|
-
l.label ? (o(),
|
|
298
|
+
onChange: p[0] || (p[0] = (u) => s("update:modelValue", u.target.checked))
|
|
299
|
+
}), null, 16, Le),
|
|
300
|
+
l.label ? (o(), i("label", {
|
|
268
301
|
key: 0,
|
|
269
302
|
for: l.id,
|
|
270
303
|
class: "mc-checkbox__label"
|
|
271
|
-
}, b(l.label), 9,
|
|
304
|
+
}, b(l.label), 9, je)) : h("", !0)
|
|
272
305
|
], 2));
|
|
273
306
|
}
|
|
274
|
-
}),
|
|
307
|
+
}), Te = /* @__PURE__ */ m(Oe, [["__scopeId", "data-v-829485d4"]]), Se = /* @__PURE__ */ $({
|
|
275
308
|
__name: "MCheckboxGroup",
|
|
276
309
|
props: {
|
|
277
310
|
name: {},
|
|
@@ -284,46 +317,46 @@ const le = /* @__PURE__ */ $({
|
|
|
284
317
|
const a = r, t = z([]);
|
|
285
318
|
T(
|
|
286
319
|
() => a.modelValue,
|
|
287
|
-
(
|
|
288
|
-
t.value =
|
|
320
|
+
(u) => {
|
|
321
|
+
t.value = u || [];
|
|
289
322
|
},
|
|
290
323
|
{ immediate: !0 }
|
|
291
324
|
);
|
|
292
|
-
const
|
|
325
|
+
const n = (u, _) => {
|
|
293
326
|
let c = [...t.value];
|
|
294
|
-
|
|
327
|
+
u && !c.includes(_) ? c.push(_) : c = c.filter((f) => f !== _), p("update:modelValue", c), t.value = c;
|
|
295
328
|
}, s = v(() => ({
|
|
296
329
|
"mc-field__container--inline": a.inline
|
|
297
330
|
})), l = v(() => ({
|
|
298
331
|
"mc-field__container--inline__item": a.inline
|
|
299
|
-
})),
|
|
300
|
-
return (
|
|
332
|
+
})), p = e;
|
|
333
|
+
return (u, _) => (o(), i("div", {
|
|
301
334
|
class: g(["mc-field__container", s.value])
|
|
302
335
|
}, [
|
|
303
|
-
(o(!0),
|
|
336
|
+
(o(!0), i(A, null, P(u.options, (c) => (o(), B(Te, {
|
|
304
337
|
id: c.id,
|
|
305
338
|
key: c.id,
|
|
306
339
|
label: c.label,
|
|
307
340
|
"is-invalid": c.isInvalid,
|
|
308
|
-
name:
|
|
341
|
+
name: u.name,
|
|
309
342
|
class: g(["mc-field__item", l.value]),
|
|
310
|
-
"model-value":
|
|
343
|
+
"model-value": u.modelValue ? u.modelValue.includes(c.value) : void 0,
|
|
311
344
|
disabled: c.disabled,
|
|
312
345
|
indented: c.indented,
|
|
313
|
-
"onUpdate:modelValue": (f) =>
|
|
346
|
+
"onUpdate:modelValue": (f) => n(f, c.value)
|
|
314
347
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "indented", "onUpdate:modelValue"]))), 128))
|
|
315
348
|
], 2));
|
|
316
349
|
}
|
|
317
|
-
}), xs = /* @__PURE__ */ m(
|
|
350
|
+
}), xs = /* @__PURE__ */ m(Se, [["__scopeId", "data-v-ede2973f"]]), Ae = ["aria-valuenow"], Pe = {
|
|
318
351
|
key: 0,
|
|
319
352
|
class: "mc-circular-progressbar__percentage"
|
|
320
|
-
},
|
|
353
|
+
}, De = { class: "mc-circular-progressbar__value" }, qe = {
|
|
321
354
|
key: 1,
|
|
322
355
|
class: "mc-circular-progressbar__content"
|
|
323
|
-
},
|
|
356
|
+
}, Fe = { class: "mc-circular-progressbar__number" }, Ne = {
|
|
324
357
|
key: 0,
|
|
325
358
|
class: "mc-circular-progressbar__text"
|
|
326
|
-
},
|
|
359
|
+
}, Re = /* @__PURE__ */ $({
|
|
327
360
|
__name: "MCircularProgressbar",
|
|
328
361
|
props: {
|
|
329
362
|
size: {},
|
|
@@ -336,7 +369,7 @@ const le = /* @__PURE__ */ $({
|
|
|
336
369
|
const e = r, a = v(() => ({
|
|
337
370
|
[`mc-circular-progressbar--${e.size}`]: e.size && e.size != "l"
|
|
338
371
|
}));
|
|
339
|
-
return (t,
|
|
372
|
+
return (t, n) => (o(), i("div", {
|
|
340
373
|
class: g(["mc-circular-progressbar", a.value]),
|
|
341
374
|
role: "progressbar",
|
|
342
375
|
style: H(`--progress-value: ${t.value};`),
|
|
@@ -344,7 +377,7 @@ const le = /* @__PURE__ */ $({
|
|
|
344
377
|
"aria-valuemin": 0,
|
|
345
378
|
"aria-valuemax": 100
|
|
346
379
|
}, [
|
|
347
|
-
|
|
380
|
+
n[1] || (n[1] = d("svg", {
|
|
348
381
|
class: "mc-circular-progressbar__line",
|
|
349
382
|
xmlns: "http://www.w3.org/2000/svg",
|
|
350
383
|
"aria-hidden": "true",
|
|
@@ -363,47 +396,17 @@ const le = /* @__PURE__ */ $({
|
|
|
363
396
|
r: "46"
|
|
364
397
|
})
|
|
365
398
|
], -1)),
|
|
366
|
-
t.type === "percentage" ? (o(),
|
|
367
|
-
d("p",
|
|
368
|
-
|
|
399
|
+
t.type === "percentage" ? (o(), i("div", Pe, [
|
|
400
|
+
d("p", De, b(t.value), 1),
|
|
401
|
+
n[0] || (n[0] = d("p", { class: "mc-circular-progressbar__unit" }, "%", -1))
|
|
369
402
|
])) : h("", !0),
|
|
370
|
-
t.type === "content" ? (o(),
|
|
371
|
-
d("p",
|
|
372
|
-
t.additionalInfo ? (o(),
|
|
403
|
+
t.type === "content" ? (o(), i("div", qe, [
|
|
404
|
+
d("p", Fe, b(t.contentValue), 1),
|
|
405
|
+
t.additionalInfo ? (o(), i("p", Ne, b(t.additionalInfo), 1)) : h("", !0)
|
|
373
406
|
])) : h("", !0)
|
|
374
|
-
], 14,
|
|
407
|
+
], 14, Ae));
|
|
375
408
|
}
|
|
376
|
-
}), eo = /* @__PURE__ */ m(
|
|
377
|
-
key: 0,
|
|
378
|
-
class: "mc-callout__footer"
|
|
379
|
-
}, Re = /* @__PURE__ */ $({
|
|
380
|
-
__name: "MCallout",
|
|
381
|
-
props: {
|
|
382
|
-
title: {},
|
|
383
|
-
description: {},
|
|
384
|
-
appearance: { default: "standard" }
|
|
385
|
-
},
|
|
386
|
-
setup(r) {
|
|
387
|
-
const e = r, a = v(() => ({
|
|
388
|
-
[`mc-callout--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
389
|
-
}));
|
|
390
|
-
return (t, i) => (o(), n("section", {
|
|
391
|
-
class: g(["mc-callout", a.value]),
|
|
392
|
-
role: "status"
|
|
393
|
-
}, [
|
|
394
|
-
d("div", De, [
|
|
395
|
-
k(t.$slots, "icon", {}, void 0, !0)
|
|
396
|
-
]),
|
|
397
|
-
d("div", qe, [
|
|
398
|
-
d("h2", Fe, b(t.title), 1),
|
|
399
|
-
d("p", Ae, b(t.description), 1),
|
|
400
|
-
t.$slots.footer ? (o(), n("div", Ne, [
|
|
401
|
-
k(t.$slots, "footer", {}, void 0, !0)
|
|
402
|
-
])) : h("", !0)
|
|
403
|
-
])
|
|
404
|
-
], 2));
|
|
405
|
-
}
|
|
406
|
-
}), ao = /* @__PURE__ */ m(Re, [["__scopeId", "data-v-b8152dc3"]]), Ge = /* @__PURE__ */ $({
|
|
409
|
+
}), eo = /* @__PURE__ */ m(Re, [["__scopeId", "data-v-f37d31c9"]]), Ge = /* @__PURE__ */ $({
|
|
407
410
|
__name: "MContainer",
|
|
408
411
|
props: {
|
|
409
412
|
fluid: { type: Boolean }
|
|
@@ -412,13 +415,13 @@ const le = /* @__PURE__ */ $({
|
|
|
412
415
|
const e = r, a = v(() => ({
|
|
413
416
|
"ml-container--fluid": e.fluid
|
|
414
417
|
}));
|
|
415
|
-
return (t,
|
|
418
|
+
return (t, n) => (o(), i("div", {
|
|
416
419
|
class: g(["ml-container", a.value])
|
|
417
420
|
}, [
|
|
418
421
|
k(t.$slots, "default", {}, void 0, !0)
|
|
419
422
|
], 2));
|
|
420
423
|
}
|
|
421
|
-
}),
|
|
424
|
+
}), ao = /* @__PURE__ */ m(Ge, [["__scopeId", "data-v-4b0d69ac"]]), Ue = {
|
|
422
425
|
name: "CrossCircleFilled24",
|
|
423
426
|
props: {
|
|
424
427
|
/**
|
|
@@ -430,8 +433,8 @@ const le = /* @__PURE__ */ $({
|
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
435
|
}, He = ["fill"];
|
|
433
|
-
function Ke(r, e, a, t,
|
|
434
|
-
return o(),
|
|
436
|
+
function Ke(r, e, a, t, n, s) {
|
|
437
|
+
return o(), i("svg", {
|
|
435
438
|
"aria-hidden": "true",
|
|
436
439
|
fill: a.color,
|
|
437
440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -445,10 +448,11 @@ function Ke(r, e, a, t, i, s) {
|
|
|
445
448
|
}, null, -1)
|
|
446
449
|
])], 8, He);
|
|
447
450
|
}
|
|
448
|
-
const
|
|
451
|
+
const F = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name", "disabled", "aria-invalid", "readonly"], Qe = {
|
|
449
452
|
key: 0,
|
|
450
453
|
class: "mc-datepicker__controls-options mc-controls-options"
|
|
451
454
|
}, Je = { class: "mc-controls-options__label" }, We = /* @__PURE__ */ $({
|
|
455
|
+
inheritAttrs: !1,
|
|
452
456
|
__name: "MDatepicker",
|
|
453
457
|
props: {
|
|
454
458
|
id: {},
|
|
@@ -466,60 +470,60 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
|
|
|
466
470
|
const a = r, t = v(() => ({
|
|
467
471
|
[`mc-text-input--${a.size} mc-datepicker--${a.size}`]: a.size && a.size != "m",
|
|
468
472
|
"is-invalid": a.isInvalid
|
|
469
|
-
})),
|
|
470
|
-
|
|
473
|
+
})), n = z(a.modelValue), s = () => {
|
|
474
|
+
n.value = "", l("update:modelValue", "");
|
|
471
475
|
}, l = e;
|
|
472
|
-
return (
|
|
476
|
+
return (p, u) => (o(), i("div", {
|
|
473
477
|
class: g(["mc-datepicker mc-text-input", t.value])
|
|
474
478
|
}, [
|
|
475
|
-
d("input",
|
|
476
|
-
id:
|
|
479
|
+
d("input", V({
|
|
480
|
+
id: p.id,
|
|
477
481
|
class: "mc-datepicker__control mc-text-input__control",
|
|
478
|
-
value:
|
|
482
|
+
value: n.value,
|
|
479
483
|
type: "date",
|
|
480
|
-
name:
|
|
481
|
-
disabled:
|
|
482
|
-
"aria-invalid":
|
|
483
|
-
readonly:
|
|
484
|
-
},
|
|
485
|
-
onInput:
|
|
484
|
+
name: p.name,
|
|
485
|
+
disabled: p.disabled,
|
|
486
|
+
"aria-invalid": p.isInvalid,
|
|
487
|
+
readonly: p.readonly
|
|
488
|
+
}, p.$attrs, {
|
|
489
|
+
onInput: u[0] || (u[0] = (_) => l("update:modelValue", _.target.value))
|
|
486
490
|
}), null, 16, Ee),
|
|
487
|
-
|
|
491
|
+
p.isClearable && n.value ? (o(), i("div", Qe, [
|
|
488
492
|
d("button", {
|
|
489
493
|
type: "button",
|
|
490
494
|
class: "mc-controls-options__button",
|
|
491
495
|
onClick: s
|
|
492
496
|
}, [
|
|
493
|
-
w(
|
|
497
|
+
w(F, {
|
|
494
498
|
class: "mc-controls-options__icon",
|
|
495
499
|
"aria-hidden": "true"
|
|
496
500
|
}),
|
|
497
|
-
d("span", Je, b(
|
|
501
|
+
d("span", Je, b(p.clearLabel), 1)
|
|
498
502
|
])
|
|
499
503
|
])) : h("", !0)
|
|
500
504
|
], 2));
|
|
501
505
|
}
|
|
502
|
-
}),
|
|
506
|
+
}), to = /* @__PURE__ */ m(We, [["__scopeId", "data-v-e9a7bac9"]]), Xe = { class: "mc-divider" }, Ye = /* @__PURE__ */ $({
|
|
503
507
|
__name: "MDivider",
|
|
504
508
|
props: {
|
|
505
509
|
orientation: { default: "horizontal" },
|
|
506
|
-
|
|
510
|
+
appearance: { default: "primary" },
|
|
507
511
|
size: { default: "s" }
|
|
508
512
|
},
|
|
509
513
|
setup(r) {
|
|
510
514
|
const e = r, a = v(() => ({
|
|
511
515
|
[`mc-divider-${e.orientation}`]: e.orientation,
|
|
512
|
-
[`mc-divider-horizontal--${e.
|
|
516
|
+
[`mc-divider-horizontal--${e.appearance}`]: e.appearance && e.appearance != "primary",
|
|
513
517
|
[`mc-divider-horizontal--${e.size}`]: e.size && e.size != "s"
|
|
514
518
|
}));
|
|
515
|
-
return (t,
|
|
519
|
+
return (t, n) => (o(), i("div", Xe, [
|
|
516
520
|
d("div", {
|
|
517
521
|
class: g(a.value)
|
|
518
522
|
}, null, 2),
|
|
519
523
|
k(t.$slots, "default", {}, void 0, !0)
|
|
520
524
|
]));
|
|
521
525
|
}
|
|
522
|
-
}), Ze = /* @__PURE__ */ m(Ye, [["__scopeId", "data-v-
|
|
526
|
+
}), Ze = /* @__PURE__ */ m(Ye, [["__scopeId", "data-v-49acd035"]]), xe = {
|
|
523
527
|
name: "ArrowBack24",
|
|
524
528
|
props: {
|
|
525
529
|
/**
|
|
@@ -531,8 +535,8 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
|
|
|
531
535
|
}
|
|
532
536
|
}
|
|
533
537
|
}, ea = ["fill"];
|
|
534
|
-
function aa(r, e, a, t,
|
|
535
|
-
return o(),
|
|
538
|
+
function aa(r, e, a, t, n, s) {
|
|
539
|
+
return o(), i("svg", {
|
|
536
540
|
"aria-hidden": "true",
|
|
537
541
|
fill: a.color,
|
|
538
542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -558,8 +562,8 @@ const ta = /* @__PURE__ */ m(xe, [["render", aa]]), sa = {
|
|
|
558
562
|
}
|
|
559
563
|
}
|
|
560
564
|
}, oa = ["fill"];
|
|
561
|
-
function la(r, e, a, t,
|
|
562
|
-
return o(),
|
|
565
|
+
function la(r, e, a, t, n, s) {
|
|
566
|
+
return o(), i("svg", {
|
|
563
567
|
"aria-hidden": "true",
|
|
564
568
|
fill: a.color,
|
|
565
569
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -590,7 +594,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
590
594
|
"mc-button--ghost": e.ghost,
|
|
591
595
|
"mc-button--outlined": e.outlined
|
|
592
596
|
}));
|
|
593
|
-
return (t,
|
|
597
|
+
return (t, n) => (o(), i("button", {
|
|
594
598
|
class: g(["mc-button mc-button--icon-button", a.value]),
|
|
595
599
|
disabled: t.disabled,
|
|
596
600
|
type: t.type
|
|
@@ -600,14 +604,14 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
600
604
|
])
|
|
601
605
|
], 10, na));
|
|
602
606
|
}
|
|
603
|
-
}),
|
|
607
|
+
}), S = /* @__PURE__ */ m(ra, [["__scopeId", "data-v-f3dda78d"]]), da = ["aria-labelledby"], ca = /* @__PURE__ */ $({
|
|
604
608
|
__name: "MOverlay",
|
|
605
609
|
props: {
|
|
606
610
|
isVisible: { type: Boolean },
|
|
607
611
|
dialogLabel: {}
|
|
608
612
|
},
|
|
609
613
|
setup(r) {
|
|
610
|
-
return (e, a) => (o(),
|
|
614
|
+
return (e, a) => (o(), i("div", {
|
|
611
615
|
class: g(["mc-overlay", { "is-visible": e.isVisible }])
|
|
612
616
|
}, [
|
|
613
617
|
d("div", {
|
|
@@ -619,7 +623,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
619
623
|
], 8, da)
|
|
620
624
|
], 2));
|
|
621
625
|
}
|
|
622
|
-
}), J = /* @__PURE__ */ m(ca, [["__scopeId", "data-v-
|
|
626
|
+
}), J = /* @__PURE__ */ m(ca, [["__scopeId", "data-v-c69efda4"]]), ua = ["aria-modal", "aria-hidden"], pa = {
|
|
623
627
|
class: "mc-drawer__dialog",
|
|
624
628
|
role: "document"
|
|
625
629
|
}, ma = { class: "mc-drawer__header" }, _a = {
|
|
@@ -635,6 +639,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
635
639
|
key: 0,
|
|
636
640
|
class: "mc-drawer__footer"
|
|
637
641
|
}, $a = /* @__PURE__ */ $({
|
|
642
|
+
inheritAttrs: !1,
|
|
638
643
|
__name: "MDrawer",
|
|
639
644
|
props: {
|
|
640
645
|
open: { type: Boolean },
|
|
@@ -657,15 +662,15 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
657
662
|
s("update:open", l);
|
|
658
663
|
}
|
|
659
664
|
);
|
|
660
|
-
const
|
|
665
|
+
const n = () => {
|
|
661
666
|
s("update:open", !1);
|
|
662
667
|
}, s = e;
|
|
663
|
-
return (l,
|
|
668
|
+
return (l, p) => (o(), B(J, {
|
|
664
669
|
"is-visible": l.open,
|
|
665
670
|
dialogLabel: "drawerTitle"
|
|
666
671
|
}, {
|
|
667
672
|
default: M(() => [
|
|
668
|
-
d("section",
|
|
673
|
+
d("section", V({
|
|
669
674
|
class: ["mc-drawer", t.value],
|
|
670
675
|
role: "dialog",
|
|
671
676
|
"aria-labelledby": "drawerTitle",
|
|
@@ -673,16 +678,16 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
673
678
|
tabindex: "-1",
|
|
674
679
|
"aria-hidden": !l.open
|
|
675
680
|
}, l.$attrs, {
|
|
676
|
-
onKeydown: R(
|
|
681
|
+
onKeydown: R(n, ["esc"])
|
|
677
682
|
}), [
|
|
678
683
|
d("div", pa, [
|
|
679
684
|
d("div", ma, [
|
|
680
|
-
l.back ? (o(), B(
|
|
685
|
+
l.back ? (o(), B(S, {
|
|
681
686
|
key: 0,
|
|
682
687
|
class: "mc-drawer__back",
|
|
683
688
|
"aria-label": "Back",
|
|
684
689
|
ghost: "",
|
|
685
|
-
onClick:
|
|
690
|
+
onClick: p[0] || (p[0] = (u) => s("back"))
|
|
686
691
|
}, {
|
|
687
692
|
icon: M(() => [
|
|
688
693
|
w(ta, { "aria-hidden": "true" })
|
|
@@ -690,11 +695,11 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
690
695
|
_: 1
|
|
691
696
|
})) : h("", !0),
|
|
692
697
|
d("h2", _a, b(l.title), 1),
|
|
693
|
-
w(
|
|
698
|
+
w(S, {
|
|
694
699
|
class: "mc-drawer__close",
|
|
695
700
|
"aria-label": "Close",
|
|
696
701
|
ghost: "",
|
|
697
|
-
onClick:
|
|
702
|
+
onClick: n
|
|
698
703
|
}, {
|
|
699
704
|
icon: M(() => [
|
|
700
705
|
w(Q, { "aria-hidden": "true" })
|
|
@@ -704,11 +709,11 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
704
709
|
]),
|
|
705
710
|
d("div", va, [
|
|
706
711
|
d("div", ba, [
|
|
707
|
-
l.contentTitle ? (o(),
|
|
712
|
+
l.contentTitle ? (o(), i("h2", fa, b(l.contentTitle), 1)) : h("", !0),
|
|
708
713
|
k(l.$slots, "default", {}, void 0, !0)
|
|
709
714
|
])
|
|
710
715
|
]),
|
|
711
|
-
l.$slots.footer ? (o(),
|
|
716
|
+
l.$slots.footer ? (o(), i("div", ha, [
|
|
712
717
|
k(l.$slots, "footer", {}, void 0, !0)
|
|
713
718
|
])) : h("", !0)
|
|
714
719
|
])
|
|
@@ -717,7 +722,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
717
722
|
_: 3
|
|
718
723
|
}, 8, ["is-visible"]));
|
|
719
724
|
}
|
|
720
|
-
}),
|
|
725
|
+
}), so = /* @__PURE__ */ m($a, [["__scopeId", "data-v-6e864dfc"]]), ga = { class: "mc-field" }, ya = ["for"], ka = {
|
|
721
726
|
key: 0,
|
|
722
727
|
class: "mc-field__requirement"
|
|
723
728
|
}, wa = ["id"], Va = { class: "mc-field__content" }, Ia = ["id"], Ba = /* @__PURE__ */ $({
|
|
@@ -738,15 +743,15 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
738
743
|
"is-valid": e.isValid,
|
|
739
744
|
"is-invalid": e.isInvalid
|
|
740
745
|
}));
|
|
741
|
-
return (t,
|
|
746
|
+
return (t, n) => (o(), i("div", ga, [
|
|
742
747
|
d("label", {
|
|
743
748
|
class: "mc-field__label",
|
|
744
749
|
for: t.id
|
|
745
750
|
}, [
|
|
746
|
-
|
|
747
|
-
t.requirementText ? (o(),
|
|
751
|
+
D(b(t.label) + " ", 1),
|
|
752
|
+
t.requirementText ? (o(), i("span", ka, "(" + b(t.requirementText) + ")", 1)) : h("", !0)
|
|
748
753
|
], 8, ya),
|
|
749
|
-
t.helpId && t.helpText ? (o(),
|
|
754
|
+
t.helpId && t.helpText ? (o(), i("span", {
|
|
750
755
|
key: 0,
|
|
751
756
|
id: t.helpId,
|
|
752
757
|
class: "mc-field__help"
|
|
@@ -754,14 +759,14 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
754
759
|
d("div", Va, [
|
|
755
760
|
k(t.$slots, "default", {}, void 0, !0)
|
|
756
761
|
]),
|
|
757
|
-
(t.isValid || t.isInvalid) && t.message ? (o(),
|
|
762
|
+
(t.isValid || t.isInvalid) && t.message ? (o(), i("span", {
|
|
758
763
|
key: 1,
|
|
759
764
|
class: g(["mc-field__validation-message", a.value]),
|
|
760
765
|
id: t.messageId
|
|
761
766
|
}, b(t.message), 11, Ia)) : h("", !0)
|
|
762
767
|
]));
|
|
763
768
|
}
|
|
764
|
-
}),
|
|
769
|
+
}), oo = /* @__PURE__ */ m(Ba, [["__scopeId", "data-v-ead078c4"]]), Ca = { class: "mc-field--group" }, Ma = ["for"], za = {
|
|
765
770
|
key: 0,
|
|
766
771
|
class: "mc-field__requirement"
|
|
767
772
|
}, La = {
|
|
@@ -783,25 +788,25 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
783
788
|
"is-valid": e.isValid,
|
|
784
789
|
"is-invalid": e.isInvalid
|
|
785
790
|
}));
|
|
786
|
-
return (t,
|
|
791
|
+
return (t, n) => (o(), i("fieldset", Ca, [
|
|
787
792
|
d("legend", {
|
|
788
793
|
class: "mc-field__legend",
|
|
789
794
|
for: t.id
|
|
790
795
|
}, [
|
|
791
|
-
|
|
792
|
-
t.requirementText ? (o(),
|
|
796
|
+
D(b(t.legend) + " ", 1),
|
|
797
|
+
t.requirementText ? (o(), i("span", za, "(" + b(t.requirementText) + ")", 1)) : h("", !0)
|
|
793
798
|
], 8, Ma),
|
|
794
|
-
t.helpText ? (o(),
|
|
799
|
+
t.helpText ? (o(), i("span", La, b(t.helpText), 1)) : h("", !0),
|
|
795
800
|
d("div", ja, [
|
|
796
801
|
k(t.$slots, "default", {}, void 0, !0)
|
|
797
802
|
]),
|
|
798
|
-
(t.isValid || t.isInvalid) && t.message ? (o(),
|
|
803
|
+
(t.isValid || t.isInvalid) && t.message ? (o(), i("span", {
|
|
799
804
|
key: 1,
|
|
800
805
|
class: g(["mc-field__validation-message", a.value])
|
|
801
806
|
}, b(t.message), 3)) : h("", !0)
|
|
802
807
|
]));
|
|
803
808
|
}
|
|
804
|
-
}),
|
|
809
|
+
}), lo = /* @__PURE__ */ m(Oa, [["__scopeId", "data-v-fc0c08dc"]]), Ta = { class: "mc-flag__label" }, Sa = /* @__PURE__ */ $({
|
|
805
810
|
__name: "MFlag",
|
|
806
811
|
props: {
|
|
807
812
|
label: {},
|
|
@@ -811,23 +816,73 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
811
816
|
const e = r, a = v(() => ({
|
|
812
817
|
[`mc-flag--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
813
818
|
}));
|
|
814
|
-
return (t,
|
|
819
|
+
return (t, n) => (o(), i("div", {
|
|
815
820
|
class: g(["mc-flag", a.value])
|
|
816
821
|
}, [
|
|
817
822
|
d("span", Ta, b(t.label), 1)
|
|
818
823
|
], 2));
|
|
819
824
|
}
|
|
820
|
-
}),
|
|
825
|
+
}), no = /* @__PURE__ */ m(Sa, [["__scopeId", "data-v-dae5e572"]]), Aa = ["aria-valuenow"], Pa = /* @__PURE__ */ $({
|
|
826
|
+
inheritAttrs: !1,
|
|
827
|
+
__name: "MLinearProgressbarBuffer",
|
|
828
|
+
props: {
|
|
829
|
+
size: {},
|
|
830
|
+
value: { default: 0 }
|
|
831
|
+
},
|
|
832
|
+
setup(r) {
|
|
833
|
+
const e = r, a = v(() => ({
|
|
834
|
+
[`mc-linear-progressbar-buffer--${e.size}`]: e.size && e.size != "m"
|
|
835
|
+
}));
|
|
836
|
+
return (t, n) => (o(), i("div", {
|
|
837
|
+
class: g(["mc-linear-progressbar-buffer", a.value])
|
|
838
|
+
}, [
|
|
839
|
+
d("div", V({
|
|
840
|
+
class: "mc-linear-progressbar-buffer__indicator",
|
|
841
|
+
role: "progressbar",
|
|
842
|
+
style: `--progress-value: ${t.value};`,
|
|
843
|
+
"aria-valuenow": t.value,
|
|
844
|
+
"aria-valuemin": 0,
|
|
845
|
+
"aria-valuemax": 100
|
|
846
|
+
}, t.$attrs), null, 16, Aa)
|
|
847
|
+
], 2));
|
|
848
|
+
}
|
|
849
|
+
}), Da = /* @__PURE__ */ m(Pa, [["__scopeId", "data-v-5306d571"]]), qa = { class: "mc-linear-progressbar-percentage" }, Fa = ["aria-valuenow"], Na = { class: "mc-linear-progressbar-percentage__label" }, Ra = { class: "mc-linear-progressbar-percentage__value" }, Ga = /* @__PURE__ */ $({
|
|
850
|
+
inheritAttrs: !1,
|
|
851
|
+
__name: "MLinearProgressbarPercentage",
|
|
852
|
+
props: {
|
|
853
|
+
value: { default: 0 }
|
|
854
|
+
},
|
|
855
|
+
setup(r) {
|
|
856
|
+
return (e, a) => (o(), i("div", qa, [
|
|
857
|
+
d("div", V({
|
|
858
|
+
class: "mc-linear-progressbar-percentage__indicator",
|
|
859
|
+
role: "progressbar",
|
|
860
|
+
style: `--progress-value: ${e.value};`,
|
|
861
|
+
"aria-valuenow": e.value,
|
|
862
|
+
"aria-valuemin": 0,
|
|
863
|
+
"aria-valuemax": 100
|
|
864
|
+
}, e.$attrs), [
|
|
865
|
+
d("div", Na, [
|
|
866
|
+
d("p", Ra, [
|
|
867
|
+
D(b(e.value), 1),
|
|
868
|
+
a[0] || (a[0] = d("span", { class: "mc-linear-progressbar-percentage__unit" }, "%", -1))
|
|
869
|
+
])
|
|
870
|
+
])
|
|
871
|
+
], 16, Fa)
|
|
872
|
+
]));
|
|
873
|
+
}
|
|
874
|
+
}), io = /* @__PURE__ */ m(Ga, [["__scopeId", "data-v-01197cd0"]]), Ua = ["aria-label"], Ha = /* @__PURE__ */ $({
|
|
875
|
+
inheritAttrs: !1,
|
|
821
876
|
__name: "MLoadingOverlay",
|
|
822
877
|
props: {
|
|
823
878
|
isVisible: { type: Boolean },
|
|
824
879
|
text: {}
|
|
825
880
|
},
|
|
826
881
|
setup(r) {
|
|
827
|
-
return (e, a) => (o(),
|
|
882
|
+
return (e, a) => (o(), i("div", {
|
|
828
883
|
class: g(["mc-loading-loader", { "is-visible": e.isVisible }])
|
|
829
884
|
}, [
|
|
830
|
-
d("div",
|
|
885
|
+
d("div", V({
|
|
831
886
|
role: "dialog",
|
|
832
887
|
tabindex: "-1",
|
|
833
888
|
"aria-label": e.text
|
|
@@ -837,22 +892,23 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
837
892
|
appearance: "inverse",
|
|
838
893
|
text: e.text
|
|
839
894
|
}, null, 8, ["text"])
|
|
840
|
-
], 16,
|
|
895
|
+
], 16, Ua)
|
|
841
896
|
], 2));
|
|
842
897
|
}
|
|
843
|
-
}), ro = /* @__PURE__ */ m(
|
|
898
|
+
}), ro = /* @__PURE__ */ m(Ha, [["__scopeId", "data-v-d5adc90d"]]), Ka = ["aria-modal", "aria-hidden"], Ea = {
|
|
844
899
|
class: "mc-modal__dialog",
|
|
845
900
|
role: "document"
|
|
846
|
-
},
|
|
901
|
+
}, Qa = { class: "mc-modal__header" }, Ja = {
|
|
847
902
|
key: 0,
|
|
848
903
|
class: "mc-modal__icon"
|
|
849
|
-
},
|
|
904
|
+
}, Wa = {
|
|
850
905
|
class: "mc-modal__title",
|
|
851
906
|
id: "modalTitle"
|
|
852
|
-
},
|
|
907
|
+
}, Xa = { class: "mc-modal__body" }, Ya = {
|
|
853
908
|
key: 0,
|
|
854
909
|
class: "mc-modal__footer"
|
|
855
|
-
},
|
|
910
|
+
}, Za = { class: "mc-modal__link" }, xa = /* @__PURE__ */ $({
|
|
911
|
+
inheritAttrs: !1,
|
|
856
912
|
__name: "MModal",
|
|
857
913
|
props: {
|
|
858
914
|
open: { type: Boolean },
|
|
@@ -871,15 +927,15 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
871
927
|
s("update:open", l);
|
|
872
928
|
}
|
|
873
929
|
);
|
|
874
|
-
const
|
|
930
|
+
const n = () => {
|
|
875
931
|
s("update:open", !1);
|
|
876
932
|
}, s = e;
|
|
877
|
-
return (l,
|
|
933
|
+
return (l, p) => (o(), B(J, {
|
|
878
934
|
"is-visible": l.open,
|
|
879
935
|
dialogLabel: "modalTitle"
|
|
880
936
|
}, {
|
|
881
937
|
default: M(() => [
|
|
882
|
-
d("section",
|
|
938
|
+
d("section", V({
|
|
883
939
|
class: ["mc-modal", t.value],
|
|
884
940
|
role: "dialog",
|
|
885
941
|
"aria-labelledby": "modalTitle",
|
|
@@ -887,20 +943,20 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
887
943
|
tabindex: "-1",
|
|
888
944
|
"aria-hidden": !l.open
|
|
889
945
|
}, l.$attrs, {
|
|
890
|
-
onKeydown: R(
|
|
946
|
+
onKeydown: R(n, ["esc"])
|
|
891
947
|
}), [
|
|
892
|
-
d("div",
|
|
893
|
-
d("header",
|
|
894
|
-
l.$slots.icon ? (o(),
|
|
948
|
+
d("div", Ea, [
|
|
949
|
+
d("header", Qa, [
|
|
950
|
+
l.$slots.icon ? (o(), i("span", Ja, [
|
|
895
951
|
k(l.$slots, "icon", {}, void 0, !0)
|
|
896
952
|
])) : h("", !0),
|
|
897
|
-
d("h2",
|
|
898
|
-
l.closable ? (o(), B(
|
|
953
|
+
d("h2", Wa, b(l.title), 1),
|
|
954
|
+
l.closable ? (o(), B(S, {
|
|
899
955
|
key: 1,
|
|
900
956
|
class: "mc-modal__close",
|
|
901
957
|
"aria-label": "Close",
|
|
902
958
|
ghost: "",
|
|
903
|
-
onClick:
|
|
959
|
+
onClick: n
|
|
904
960
|
}, {
|
|
905
961
|
icon: M(() => [
|
|
906
962
|
w(Q, { "aria-hidden": "true" })
|
|
@@ -908,23 +964,23 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
908
964
|
_: 1
|
|
909
965
|
})) : h("", !0)
|
|
910
966
|
]),
|
|
911
|
-
d("main",
|
|
967
|
+
d("main", Xa, [
|
|
912
968
|
d("p", null, b(l.description), 1),
|
|
913
969
|
k(l.$slots, "default", {}, void 0, !0)
|
|
914
970
|
]),
|
|
915
|
-
l.$slots.footer ? (o(),
|
|
916
|
-
d("span",
|
|
971
|
+
l.$slots.footer ? (o(), i("footer", Ya, [
|
|
972
|
+
d("span", Za, [
|
|
917
973
|
k(l.$slots, "link", {}, void 0, !0)
|
|
918
974
|
]),
|
|
919
975
|
k(l.$slots, "footer", {}, void 0, !0)
|
|
920
976
|
])) : h("", !0)
|
|
921
977
|
])
|
|
922
|
-
], 16,
|
|
978
|
+
], 16, Ka)
|
|
923
979
|
]),
|
|
924
980
|
_: 3
|
|
925
981
|
}, 8, ["is-visible"]));
|
|
926
982
|
}
|
|
927
|
-
}), co = /* @__PURE__ */ m(
|
|
983
|
+
}), co = /* @__PURE__ */ m(xa, [["__scopeId", "data-v-41ee6da9"]]), et = /* @__PURE__ */ $({
|
|
928
984
|
__name: "MNumberBadge",
|
|
929
985
|
props: {
|
|
930
986
|
label: {},
|
|
@@ -936,15 +992,16 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
936
992
|
[`mc-number-badge--${e.appearance}`]: e.appearance && e.appearance != "standard",
|
|
937
993
|
[`mc-number-badge--${e.size}`]: e.size && e.size != "s"
|
|
938
994
|
}));
|
|
939
|
-
return (t,
|
|
995
|
+
return (t, n) => (o(), i("span", {
|
|
940
996
|
class: g(["mc-number-badge", a.value])
|
|
941
997
|
}, b(t.label), 3));
|
|
942
998
|
}
|
|
943
|
-
}),
|
|
999
|
+
}), at = /* @__PURE__ */ m(et, [["__scopeId", "data-v-7b35d96e"]]), tt = ["id", "name", "value", "disabled"], st = {
|
|
944
1000
|
key: 0,
|
|
945
1001
|
value: "",
|
|
946
1002
|
disabled: ""
|
|
947
|
-
},
|
|
1003
|
+
}, ot = ["value", "disabled"], lt = /* @__PURE__ */ $({
|
|
1004
|
+
inheritAttrs: !1,
|
|
948
1005
|
__name: "MSelect",
|
|
949
1006
|
props: {
|
|
950
1007
|
id: {},
|
|
@@ -963,26 +1020,26 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
963
1020
|
[`mc-select--${a.size}`]: a.size && a.size != "m",
|
|
964
1021
|
"mc-select--readonly": a.readonly,
|
|
965
1022
|
"is-invalid": a.isInvalid
|
|
966
|
-
})),
|
|
967
|
-
return (s, l) => (o(),
|
|
1023
|
+
})), n = e;
|
|
1024
|
+
return (s, l) => (o(), i("select", V({
|
|
968
1025
|
id: s.id,
|
|
969
1026
|
class: ["mc-select", t.value],
|
|
970
1027
|
name: s.name,
|
|
971
1028
|
value: s.modelValue,
|
|
972
1029
|
disabled: s.disabled
|
|
973
1030
|
}, s.$attrs, {
|
|
974
|
-
onChange: l[0] || (l[0] = (
|
|
1031
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.value))
|
|
975
1032
|
}), [
|
|
976
|
-
s.placeholder ? (o(),
|
|
977
|
-
(o(!0),
|
|
978
|
-
key:
|
|
979
|
-
value:
|
|
980
|
-
}, { ref_for: !0 },
|
|
981
|
-
disabled:
|
|
982
|
-
}), b(
|
|
983
|
-
], 16,
|
|
1033
|
+
s.placeholder ? (o(), i("option", st, " -- " + b(s.placeholder) + " -- ", 1)) : h("", !0),
|
|
1034
|
+
(o(!0), i(A, null, P(s.options, (p, u) => (o(), i("option", V({
|
|
1035
|
+
key: u,
|
|
1036
|
+
value: p.value
|
|
1037
|
+
}, { ref_for: !0 }, p.attributes, {
|
|
1038
|
+
disabled: p.disabled
|
|
1039
|
+
}), b(p.text), 17, ot))), 128))
|
|
1040
|
+
], 16, tt));
|
|
984
1041
|
}
|
|
985
|
-
}),
|
|
1042
|
+
}), nt = /* @__PURE__ */ m(lt, [["__scopeId", "data-v-ded98964"]]), it = {
|
|
986
1043
|
name: "ChevronLeft24",
|
|
987
1044
|
props: {
|
|
988
1045
|
/**
|
|
@@ -993,9 +1050,9 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
993
1050
|
default: "currentColor"
|
|
994
1051
|
}
|
|
995
1052
|
}
|
|
996
|
-
},
|
|
997
|
-
function
|
|
998
|
-
return o(),
|
|
1053
|
+
}, rt = ["fill"];
|
|
1054
|
+
function dt(r, e, a, t, n, s) {
|
|
1055
|
+
return o(), i("svg", {
|
|
999
1056
|
"aria-hidden": "true",
|
|
1000
1057
|
fill: a.color,
|
|
1001
1058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1007,9 +1064,9 @@ function at(r, e, a, t, i, s) {
|
|
|
1007
1064
|
"fill-rule": "evenodd",
|
|
1008
1065
|
d: "M14.207 6.293a1 1 0 0 1 0 1.414L9.914 12l4.293 4.293a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0"
|
|
1009
1066
|
}, null, -1)
|
|
1010
|
-
])], 8,
|
|
1067
|
+
])], 8, rt);
|
|
1011
1068
|
}
|
|
1012
|
-
const G = /* @__PURE__ */ m(
|
|
1069
|
+
const G = /* @__PURE__ */ m(it, [["render", dt]]), ct = {
|
|
1013
1070
|
name: "ChevronRight24",
|
|
1014
1071
|
props: {
|
|
1015
1072
|
/**
|
|
@@ -1020,9 +1077,9 @@ const G = /* @__PURE__ */ m(xa, [["render", at]]), tt = {
|
|
|
1020
1077
|
default: "currentColor"
|
|
1021
1078
|
}
|
|
1022
1079
|
}
|
|
1023
|
-
},
|
|
1024
|
-
function
|
|
1025
|
-
return o(),
|
|
1080
|
+
}, ut = ["fill"];
|
|
1081
|
+
function pt(r, e, a, t, n, s) {
|
|
1082
|
+
return o(), i("svg", {
|
|
1026
1083
|
"aria-hidden": "true",
|
|
1027
1084
|
fill: a.color,
|
|
1028
1085
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1034,20 +1091,19 @@ function ot(r, e, a, t, i, s) {
|
|
|
1034
1091
|
"fill-rule": "evenodd",
|
|
1035
1092
|
d: "M9.793 6.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L14.086 12 9.793 7.707a1 1 0 0 1 0-1.414"
|
|
1036
1093
|
}, null, -1)
|
|
1037
|
-
])], 8,
|
|
1094
|
+
])], 8, ut);
|
|
1038
1095
|
}
|
|
1039
|
-
const U = /* @__PURE__ */ m(
|
|
1096
|
+
const U = /* @__PURE__ */ m(ct, [["render", pt]]), mt = {
|
|
1040
1097
|
class: "mc-pagination",
|
|
1041
|
-
role: "navigation"
|
|
1042
|
-
|
|
1043
|
-
}, nt = {
|
|
1098
|
+
role: "navigation"
|
|
1099
|
+
}, _t = {
|
|
1044
1100
|
key: 2,
|
|
1045
1101
|
class: "mc-pagination__field"
|
|
1046
|
-
},
|
|
1102
|
+
}, vt = {
|
|
1047
1103
|
key: 3,
|
|
1048
1104
|
class: "mc-pagination__label",
|
|
1049
1105
|
"aria-current": "page"
|
|
1050
|
-
},
|
|
1106
|
+
}, bt = /* @__PURE__ */ $({
|
|
1051
1107
|
__name: "MPagination",
|
|
1052
1108
|
props: {
|
|
1053
1109
|
id: {},
|
|
@@ -1058,32 +1114,32 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1058
1114
|
},
|
|
1059
1115
|
emits: ["update:modelValue"],
|
|
1060
1116
|
setup(r, { emit: e }) {
|
|
1061
|
-
const a = r, t = e,
|
|
1062
|
-
T(
|
|
1117
|
+
const a = r, t = e, n = z(a.modelValue);
|
|
1118
|
+
T(n, (c) => {
|
|
1063
1119
|
c !== a.modelValue && t("update:modelValue", c);
|
|
1064
1120
|
});
|
|
1065
1121
|
const s = v(
|
|
1066
|
-
() => a.options.findIndex((c) => c.value ===
|
|
1067
|
-
), l = v(() => s.value === 0),
|
|
1122
|
+
() => a.options.findIndex((c) => c.value === n.value)
|
|
1123
|
+
), l = v(() => s.value === 0), p = v(
|
|
1068
1124
|
() => s.value === a.options.length - 1
|
|
1069
|
-
),
|
|
1125
|
+
), u = () => {
|
|
1070
1126
|
const c = a.options.findIndex(
|
|
1071
|
-
(f) => f.value ===
|
|
1127
|
+
(f) => f.value === n.value
|
|
1072
1128
|
);
|
|
1073
|
-
c > 0 && (
|
|
1129
|
+
c > 0 && (n.value = a.options[c - 1].value, t("update:modelValue", a.options[c - 1].value));
|
|
1074
1130
|
}, _ = () => {
|
|
1075
1131
|
const c = a.options.findIndex(
|
|
1076
|
-
(f) => f.value ===
|
|
1132
|
+
(f) => f.value === n.value
|
|
1077
1133
|
);
|
|
1078
|
-
c < a.options.length - 1 && (
|
|
1134
|
+
c < a.options.length - 1 && (n.value = a.options[c + 1].value, t("update:modelValue", a.options[c + 1].value));
|
|
1079
1135
|
};
|
|
1080
|
-
return (c, f) => (o(),
|
|
1081
|
-
c.compact ? (o(), B(
|
|
1136
|
+
return (c, f) => (o(), i("nav", mt, [
|
|
1137
|
+
c.compact ? (o(), B(S, {
|
|
1082
1138
|
key: 1,
|
|
1083
1139
|
outlined: "",
|
|
1084
1140
|
"aria-label": "Previous page",
|
|
1085
1141
|
disabled: l.value,
|
|
1086
|
-
onClick:
|
|
1142
|
+
onClick: u
|
|
1087
1143
|
}, {
|
|
1088
1144
|
icon: M(() => [
|
|
1089
1145
|
w(G)
|
|
@@ -1094,32 +1150,32 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1094
1150
|
"icon-position": "only",
|
|
1095
1151
|
"aria-label": "Previous page",
|
|
1096
1152
|
disabled: l.value,
|
|
1097
|
-
onClick:
|
|
1153
|
+
onClick: u
|
|
1098
1154
|
}, {
|
|
1099
1155
|
icon: M(() => [
|
|
1100
1156
|
w(G)
|
|
1101
1157
|
]),
|
|
1102
1158
|
_: 1
|
|
1103
1159
|
}, 8, ["disabled"])),
|
|
1104
|
-
c.compact ? h("", !0) : (o(),
|
|
1105
|
-
w(
|
|
1160
|
+
c.compact ? h("", !0) : (o(), i("div", _t, [
|
|
1161
|
+
w(nt, {
|
|
1106
1162
|
class: "mc-pagination__select",
|
|
1107
1163
|
id: c.id,
|
|
1108
|
-
modelValue:
|
|
1164
|
+
modelValue: n.value,
|
|
1109
1165
|
"onUpdate:modelValue": [
|
|
1110
|
-
f[0] || (f[0] = (C) =>
|
|
1166
|
+
f[0] || (f[0] = (C) => n.value = C),
|
|
1111
1167
|
f[1] || (f[1] = (C) => t("update:modelValue", Number(C)))
|
|
1112
1168
|
],
|
|
1113
1169
|
options: c.options,
|
|
1114
1170
|
"aria-label": c.selectLabel
|
|
1115
1171
|
}, null, 8, ["id", "modelValue", "options", "aria-label"])
|
|
1116
1172
|
])),
|
|
1117
|
-
c.compact ? (o(),
|
|
1118
|
-
c.compact ? (o(), B(
|
|
1173
|
+
c.compact ? (o(), i("span", vt, b(c.options.find((C) => C.value === n.value)?.text), 1)) : h("", !0),
|
|
1174
|
+
c.compact ? (o(), B(S, {
|
|
1119
1175
|
key: 5,
|
|
1120
1176
|
outlined: "",
|
|
1121
1177
|
"aria-label": "Next page",
|
|
1122
|
-
disabled:
|
|
1178
|
+
disabled: p.value,
|
|
1123
1179
|
onClick: _
|
|
1124
1180
|
}, {
|
|
1125
1181
|
icon: M(() => [
|
|
@@ -1130,7 +1186,7 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1130
1186
|
key: 4,
|
|
1131
1187
|
"icon-position": "only",
|
|
1132
1188
|
"aria-label": "Next page",
|
|
1133
|
-
disabled:
|
|
1189
|
+
disabled: p.value,
|
|
1134
1190
|
onClick: _
|
|
1135
1191
|
}, {
|
|
1136
1192
|
icon: M(() => [
|
|
@@ -1140,10 +1196,11 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1140
1196
|
}, 8, ["disabled"]))
|
|
1141
1197
|
]));
|
|
1142
1198
|
}
|
|
1143
|
-
}), uo = /* @__PURE__ */ m(
|
|
1199
|
+
}), uo = /* @__PURE__ */ m(bt, [["__scopeId", "data-v-4cb89be1"]]), ft = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], ht = {
|
|
1144
1200
|
key: 0,
|
|
1145
1201
|
class: "mc-controls-options"
|
|
1146
|
-
},
|
|
1202
|
+
}, $t = { class: "mc-controls-options__label" }, gt = /* @__PURE__ */ $({
|
|
1203
|
+
inheritAttrs: !1,
|
|
1147
1204
|
__name: "MPasswordInput",
|
|
1148
1205
|
props: {
|
|
1149
1206
|
id: {},
|
|
@@ -1161,19 +1218,19 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1161
1218
|
setup(r, { emit: e }) {
|
|
1162
1219
|
const a = r, t = v(() => ({
|
|
1163
1220
|
"is-invalid": a.isInvalid
|
|
1164
|
-
})),
|
|
1165
|
-
|
|
1166
|
-
},
|
|
1221
|
+
})), n = z(a.modelValue), s = z(!1), l = () => {
|
|
1222
|
+
n.value = "", c("update:modelValue", "");
|
|
1223
|
+
}, p = () => {
|
|
1167
1224
|
s.value = !s.value;
|
|
1168
|
-
},
|
|
1169
|
-
return (f, C) => (o(),
|
|
1225
|
+
}, u = v(() => s.value ? "text" : "password"), _ = v(() => s.value ? "true" : "false"), c = e;
|
|
1226
|
+
return (f, C) => (o(), i("div", {
|
|
1170
1227
|
class: g(["mc-password-input mc-text-input", t.value])
|
|
1171
1228
|
}, [
|
|
1172
|
-
K(d("input",
|
|
1229
|
+
K(d("input", V({
|
|
1173
1230
|
class: "mc-password-input__control mc-text-input__control",
|
|
1174
|
-
"onUpdate:modelValue": C[0] || (C[0] = (y) =>
|
|
1231
|
+
"onUpdate:modelValue": C[0] || (C[0] = (y) => n.value = y),
|
|
1175
1232
|
id: f.id,
|
|
1176
|
-
type:
|
|
1233
|
+
type: u.value,
|
|
1177
1234
|
name: f.name,
|
|
1178
1235
|
placeholder: f.placeholder,
|
|
1179
1236
|
disabled: f.disabled,
|
|
@@ -1181,19 +1238,19 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1181
1238
|
readonly: f.readonly
|
|
1182
1239
|
}, f.$attrs, {
|
|
1183
1240
|
onInput: C[1] || (C[1] = (y) => c("update:modelValue", y.target.value))
|
|
1184
|
-
}), null, 16,
|
|
1185
|
-
[ee,
|
|
1241
|
+
}), null, 16, ft), [
|
|
1242
|
+
[ee, n.value]
|
|
1186
1243
|
]),
|
|
1187
|
-
f.isClearable &&
|
|
1244
|
+
f.isClearable && n.value ? (o(), i("div", ht, [
|
|
1188
1245
|
d("button", {
|
|
1189
1246
|
class: "mc-controls-options__button",
|
|
1190
1247
|
onClick: l
|
|
1191
1248
|
}, [
|
|
1192
|
-
w(
|
|
1249
|
+
w(F, {
|
|
1193
1250
|
class: "mc-controls-options__icon",
|
|
1194
1251
|
"aria-hidden": "true"
|
|
1195
1252
|
}),
|
|
1196
|
-
d("span",
|
|
1253
|
+
d("span", $t, b(f.clearLabel), 1)
|
|
1197
1254
|
])
|
|
1198
1255
|
])) : h("", !0),
|
|
1199
1256
|
w(N, {
|
|
@@ -1201,18 +1258,19 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1201
1258
|
role: "switch",
|
|
1202
1259
|
"aria-checked": _.value,
|
|
1203
1260
|
disabled: f.disabled,
|
|
1204
|
-
onClick:
|
|
1261
|
+
onClick: p,
|
|
1205
1262
|
size: "s",
|
|
1206
1263
|
ghost: ""
|
|
1207
1264
|
}, {
|
|
1208
1265
|
default: M(() => [
|
|
1209
|
-
|
|
1266
|
+
D(b(s.value ? f.buttonLabel.hide : f.buttonLabel.show), 1)
|
|
1210
1267
|
]),
|
|
1211
1268
|
_: 1
|
|
1212
1269
|
}, 8, ["aria-checked", "disabled"])
|
|
1213
1270
|
], 2));
|
|
1214
1271
|
}
|
|
1215
|
-
}), po = /* @__PURE__ */ m(
|
|
1272
|
+
}), po = /* @__PURE__ */ m(gt, [["__scopeId", "data-v-47bbb809"]]), yt = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], kt = /* @__PURE__ */ $({
|
|
1273
|
+
inheritAttrs: !1,
|
|
1216
1274
|
__name: "MPincode",
|
|
1217
1275
|
props: {
|
|
1218
1276
|
id: {},
|
|
@@ -1227,40 +1285,40 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1227
1285
|
setup(r, { emit: e }) {
|
|
1228
1286
|
const a = r, t = v(() => ({
|
|
1229
1287
|
"is-invalid": a.isInvalid
|
|
1230
|
-
})),
|
|
1231
|
-
l.value[
|
|
1288
|
+
})), n = e, s = z(Array(a.length).fill("")), l = z([]), p = (y, I) => {
|
|
1289
|
+
l.value[I] = y;
|
|
1232
1290
|
};
|
|
1233
1291
|
T(
|
|
1234
1292
|
() => a.modelValue,
|
|
1235
1293
|
(y) => {
|
|
1236
|
-
const
|
|
1237
|
-
s.value = Array.from({ length: a.length }, (O, L) =>
|
|
1294
|
+
const I = String(y ?? "");
|
|
1295
|
+
s.value = Array.from({ length: a.length }, (O, L) => I[L] ?? "");
|
|
1238
1296
|
},
|
|
1239
1297
|
{ immediate: !0 }
|
|
1240
1298
|
);
|
|
1241
|
-
const
|
|
1299
|
+
const u = (y) => {
|
|
1242
1300
|
ae(() => l.value[y]?.focus());
|
|
1243
|
-
}, _ = (y,
|
|
1301
|
+
}, _ = (y, I) => {
|
|
1244
1302
|
const O = y.target.value.replace(/\D/g, "");
|
|
1245
|
-
O ? (s.value[
|
|
1246
|
-
}, c = (y,
|
|
1247
|
-
y.key === "ArrowLeft" &&
|
|
1248
|
-
}, f = (y,
|
|
1249
|
-
s.value[
|
|
1303
|
+
O ? (s.value[I] = O[0], n("update:modelValue", s.value.join("")), I + 1 < a.length && u(I + 1)) : (s.value[I] = "", n("update:modelValue", s.value.join("")));
|
|
1304
|
+
}, c = (y, I) => {
|
|
1305
|
+
y.key === "ArrowLeft" && I > 0 ? u(I - 1) : y.key === "ArrowRight" && I < a.length - 1 ? u(I + 1) : y.key === "Backspace" && f(y, I);
|
|
1306
|
+
}, f = (y, I) => {
|
|
1307
|
+
s.value[I] === "" && I > 0 && (s.value[I - 1] = "", n("update:modelValue", s.value.join("")), u(I - 1));
|
|
1250
1308
|
}, C = (y) => {
|
|
1251
1309
|
y.preventDefault();
|
|
1252
1310
|
const O = (y.clipboardData?.getData("text") ?? "").replace(/\D/g, "").slice(0, a.length).split("");
|
|
1253
|
-
s.value = Array.from({ length: a.length }, (L, j) => O[j] ?? ""),
|
|
1311
|
+
s.value = Array.from({ length: a.length }, (L, j) => O[j] ?? ""), n("update:modelValue", s.value.join("")), u(Math.min(O.length, a.length - 1));
|
|
1254
1312
|
};
|
|
1255
|
-
return (y,
|
|
1313
|
+
return (y, I) => (o(), i("div", {
|
|
1256
1314
|
class: g(["mc-pincode-input", t.value]),
|
|
1257
1315
|
onPaste: C
|
|
1258
1316
|
}, [
|
|
1259
|
-
(o(!0),
|
|
1317
|
+
(o(!0), i(A, null, P(s.value, (O, L) => (o(), i("input", V({
|
|
1260
1318
|
key: L,
|
|
1261
1319
|
id: `pincodeItem${L}`,
|
|
1262
1320
|
ref_for: !0,
|
|
1263
|
-
ref: (j) =>
|
|
1321
|
+
ref: (j) => p(j, L),
|
|
1264
1322
|
type: "text",
|
|
1265
1323
|
inputmode: "numeric",
|
|
1266
1324
|
maxlength: "1",
|
|
@@ -1277,57 +1335,10 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1277
1335
|
R((j) => f(j, L), ["backspace"]),
|
|
1278
1336
|
(j) => c(j, L)
|
|
1279
1337
|
]
|
|
1280
|
-
}), null, 16,
|
|
1338
|
+
}), null, 16, yt))), 128))
|
|
1281
1339
|
], 34));
|
|
1282
1340
|
}
|
|
1283
|
-
}), mo = /* @__PURE__ */ m(
|
|
1284
|
-
__name: "MLinearProgressbarBuffer",
|
|
1285
|
-
props: {
|
|
1286
|
-
size: {},
|
|
1287
|
-
value: { default: 0 }
|
|
1288
|
-
},
|
|
1289
|
-
setup(r) {
|
|
1290
|
-
const e = r, a = v(() => ({
|
|
1291
|
-
[`mc-linear-progressbar-buffer--${e.size}`]: e.size && e.size != "m"
|
|
1292
|
-
}));
|
|
1293
|
-
return (t, i) => (o(), n("div", {
|
|
1294
|
-
class: g(["mc-linear-progressbar-buffer", a.value])
|
|
1295
|
-
}, [
|
|
1296
|
-
d("div", I({
|
|
1297
|
-
class: "mc-linear-progressbar-buffer__indicator",
|
|
1298
|
-
role: "progressbar",
|
|
1299
|
-
style: `--progress-value: ${t.value};`,
|
|
1300
|
-
"aria-valuenow": t.value,
|
|
1301
|
-
"aria-valuemin": 0,
|
|
1302
|
-
"aria-valuemax": 100
|
|
1303
|
-
}, t.$attrs), null, 16, vt)
|
|
1304
|
-
], 2));
|
|
1305
|
-
}
|
|
1306
|
-
}), ft = /* @__PURE__ */ m(bt, [["__scopeId", "data-v-aa64aedc"]]), ht = { class: "mc-linear-progressbar-percentage" }, $t = ["aria-valuenow"], gt = { class: "mc-linear-progressbar-percentage__label" }, yt = { class: "mc-linear-progressbar-percentage__value" }, kt = /* @__PURE__ */ $({
|
|
1307
|
-
__name: "MLinearProgressbarPercentage",
|
|
1308
|
-
props: {
|
|
1309
|
-
value: { default: 0 }
|
|
1310
|
-
},
|
|
1311
|
-
setup(r) {
|
|
1312
|
-
return (e, a) => (o(), n("div", ht, [
|
|
1313
|
-
d("div", I({
|
|
1314
|
-
class: "mc-linear-progressbar-percentage__indicator",
|
|
1315
|
-
role: "progressbar",
|
|
1316
|
-
style: `--progress-value: ${e.value};`,
|
|
1317
|
-
"aria-valuenow": e.value,
|
|
1318
|
-
"aria-valuemin": 0,
|
|
1319
|
-
"aria-valuemax": 100
|
|
1320
|
-
}, e.$attrs), [
|
|
1321
|
-
d("div", gt, [
|
|
1322
|
-
d("p", yt, [
|
|
1323
|
-
q(b(e.value), 1),
|
|
1324
|
-
a[0] || (a[0] = d("span", { class: "mc-linear-progressbar-percentage__unit" }, "%", -1))
|
|
1325
|
-
])
|
|
1326
|
-
])
|
|
1327
|
-
], 16, $t)
|
|
1328
|
-
]));
|
|
1329
|
-
}
|
|
1330
|
-
}), _o = /* @__PURE__ */ m(kt, [["__scopeId", "data-v-14fbed65"]]), wt = {
|
|
1341
|
+
}), mo = /* @__PURE__ */ m(kt, [["__scopeId", "data-v-d2594b91"]]), wt = {
|
|
1331
1342
|
name: "More24",
|
|
1332
1343
|
props: {
|
|
1333
1344
|
/**
|
|
@@ -1339,8 +1350,8 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1339
1350
|
}
|
|
1340
1351
|
}
|
|
1341
1352
|
}, Vt = ["fill"];
|
|
1342
|
-
function It(r, e, a, t,
|
|
1343
|
-
return o(),
|
|
1353
|
+
function It(r, e, a, t, n, s) {
|
|
1354
|
+
return o(), i("svg", {
|
|
1344
1355
|
"aria-hidden": "true",
|
|
1345
1356
|
fill: a.color,
|
|
1346
1357
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1366,8 +1377,8 @@ const Bt = /* @__PURE__ */ m(wt, [["render", It]]), Ct = {
|
|
|
1366
1377
|
}
|
|
1367
1378
|
}
|
|
1368
1379
|
}, Mt = ["fill"];
|
|
1369
|
-
function zt(r, e, a, t,
|
|
1370
|
-
return o(),
|
|
1380
|
+
function zt(r, e, a, t, n, s) {
|
|
1381
|
+
return o(), i("svg", {
|
|
1371
1382
|
"aria-hidden": "true",
|
|
1372
1383
|
fill: a.color,
|
|
1373
1384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1381,7 +1392,8 @@ function zt(r, e, a, t, i, s) {
|
|
|
1381
1392
|
}, null, -1)
|
|
1382
1393
|
])], 8, Mt);
|
|
1383
1394
|
}
|
|
1384
|
-
const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Ot = ["aria-controls", "disabled"], Tt = { class: "mc-quantity-selector__icon" }, St = { class: "mc-quantity-selector__label" },
|
|
1395
|
+
const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Ot = ["aria-controls", "disabled"], Tt = { class: "mc-quantity-selector__icon" }, St = { class: "mc-quantity-selector__label" }, At = ["aria-controls", "disabled"], Pt = { class: "mc-quantity-selector__icon" }, Dt = { class: "mc-quantity-selector__label" }, qt = /* @__PURE__ */ $({
|
|
1396
|
+
inheritAttrs: !1,
|
|
1385
1397
|
__name: "MQuantitySelector",
|
|
1386
1398
|
props: {
|
|
1387
1399
|
id: {},
|
|
@@ -1401,22 +1413,22 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1401
1413
|
setup(r, { emit: e }) {
|
|
1402
1414
|
const a = r, t = z(a.modelValue);
|
|
1403
1415
|
T(t, (_) => {
|
|
1404
|
-
_ !== a.modelValue &&
|
|
1416
|
+
_ !== a.modelValue && u("update:modelValue", _);
|
|
1405
1417
|
});
|
|
1406
|
-
const
|
|
1418
|
+
const n = v(() => ({
|
|
1407
1419
|
[`mc-quantity-selector--${a.size}`]: a.size && a.size != "m",
|
|
1408
1420
|
"is-invalid": a.isInvalid
|
|
1409
1421
|
})), s = () => {
|
|
1410
1422
|
t.value + a.step <= a.max ? t.value += a.step : t.value = a.max;
|
|
1411
1423
|
}, l = () => {
|
|
1412
1424
|
t.value - a.step > a.min ? t.value -= a.step : t.value = a.min;
|
|
1413
|
-
},
|
|
1414
|
-
t.value = _, t.value > a.max && (t.value = a.max), t.value <= a.min && (t.value = a.min),
|
|
1415
|
-
},
|
|
1416
|
-
return (_, c) => (o(),
|
|
1417
|
-
class: g(["mc-quantity-selector",
|
|
1425
|
+
}, p = (_) => {
|
|
1426
|
+
t.value = _, t.value > a.max && (t.value = a.max), t.value <= a.min && (t.value = a.min), u("update:modelValue", t.value);
|
|
1427
|
+
}, u = e;
|
|
1428
|
+
return (_, c) => (o(), i("div", {
|
|
1429
|
+
class: g(["mc-quantity-selector", n.value])
|
|
1418
1430
|
}, [
|
|
1419
|
-
K(d("input",
|
|
1431
|
+
K(d("input", V({
|
|
1420
1432
|
id: _.id,
|
|
1421
1433
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => t.value = f),
|
|
1422
1434
|
class: "mc-quantity-selector__control",
|
|
@@ -1432,11 +1444,11 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1432
1444
|
"aria-valuemax": _.max,
|
|
1433
1445
|
"aria-valuenow": t.value
|
|
1434
1446
|
}, _.$attrs, {
|
|
1435
|
-
onChange: c[1] || (c[1] = (f) =>
|
|
1447
|
+
onChange: c[1] || (c[1] = (f) => p(Number(f.target.value)))
|
|
1436
1448
|
}), null, 16, jt), [
|
|
1437
1449
|
[te, t.value]
|
|
1438
1450
|
]),
|
|
1439
|
-
_.readonly ? h("", !0) : (o(),
|
|
1451
|
+
_.readonly ? h("", !0) : (o(), i("button", {
|
|
1440
1452
|
key: 0,
|
|
1441
1453
|
type: "button",
|
|
1442
1454
|
"aria-controls": _.id,
|
|
@@ -1450,7 +1462,7 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1450
1462
|
]),
|
|
1451
1463
|
d("span", St, b(_.incrementlabel), 1)
|
|
1452
1464
|
], 8, Ot)),
|
|
1453
|
-
_.readonly ? h("", !0) : (o(),
|
|
1465
|
+
_.readonly ? h("", !0) : (o(), i("button", {
|
|
1454
1466
|
key: 1,
|
|
1455
1467
|
type: "button",
|
|
1456
1468
|
"aria-controls": _.id,
|
|
@@ -1459,14 +1471,15 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1459
1471
|
disabled: _.disabled || t.value === _.min,
|
|
1460
1472
|
onClick: l
|
|
1461
1473
|
}, [
|
|
1462
|
-
d("span",
|
|
1474
|
+
d("span", Pt, [
|
|
1463
1475
|
w(Lt)
|
|
1464
1476
|
]),
|
|
1465
|
-
d("span",
|
|
1466
|
-
], 8,
|
|
1477
|
+
d("span", Dt, b(_.decrementLabel), 1)
|
|
1478
|
+
], 8, At))
|
|
1467
1479
|
], 2));
|
|
1468
1480
|
}
|
|
1469
|
-
}),
|
|
1481
|
+
}), _o = /* @__PURE__ */ m(qt, [["__scopeId", "data-v-c0a83c82"]]), Ft = { class: "mc-radio" }, Nt = ["id", "name", "checked", "disabled", "aria-invalid"], Rt = ["for"], Gt = /* @__PURE__ */ $({
|
|
1482
|
+
inheritAttrs: !1,
|
|
1470
1483
|
__name: "MRadio",
|
|
1471
1484
|
props: {
|
|
1472
1485
|
id: {},
|
|
@@ -1480,9 +1493,9 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1480
1493
|
setup(r, { emit: e }) {
|
|
1481
1494
|
const a = r, t = v(() => ({
|
|
1482
1495
|
"is-invalid": a.isInvalid
|
|
1483
|
-
})),
|
|
1484
|
-
return (s, l) => (o(),
|
|
1485
|
-
d("input",
|
|
1496
|
+
})), n = e;
|
|
1497
|
+
return (s, l) => (o(), i("div", Ft, [
|
|
1498
|
+
d("input", V({
|
|
1486
1499
|
id: s.id,
|
|
1487
1500
|
type: "radio",
|
|
1488
1501
|
class: ["mc-radio__input", t.value],
|
|
@@ -1491,16 +1504,16 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1491
1504
|
disabled: s.disabled,
|
|
1492
1505
|
"aria-invalid": s.isInvalid
|
|
1493
1506
|
}, s.$attrs, {
|
|
1494
|
-
onChange: l[0] || (l[0] = (
|
|
1507
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
|
|
1495
1508
|
}), null, 16, Nt),
|
|
1496
|
-
s.label ? (o(),
|
|
1509
|
+
s.label ? (o(), i("label", {
|
|
1497
1510
|
key: 0,
|
|
1498
1511
|
for: s.id,
|
|
1499
1512
|
class: "mc-radio__label"
|
|
1500
1513
|
}, b(s.label), 9, Rt)) : h("", !0)
|
|
1501
1514
|
]));
|
|
1502
1515
|
}
|
|
1503
|
-
}), Ut = /* @__PURE__ */ m(Gt, [["__scopeId", "data-v-
|
|
1516
|
+
}), Ut = /* @__PURE__ */ m(Gt, [["__scopeId", "data-v-98a8422f"]]), Ht = /* @__PURE__ */ $({
|
|
1504
1517
|
__name: "MRadioGroup",
|
|
1505
1518
|
props: {
|
|
1506
1519
|
name: {},
|
|
@@ -1513,26 +1526,26 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1513
1526
|
setup(r, { emit: e }) {
|
|
1514
1527
|
const a = r, t = v(() => ({
|
|
1515
1528
|
"mc-field__container--inline": a.inline
|
|
1516
|
-
})),
|
|
1529
|
+
})), n = v(() => ({
|
|
1517
1530
|
"mc-field__container--inline__item": a.inline
|
|
1518
1531
|
})), s = e;
|
|
1519
|
-
return (l,
|
|
1532
|
+
return (l, p) => (o(), i("div", {
|
|
1520
1533
|
class: g(["mc-field__container", t.value])
|
|
1521
1534
|
}, [
|
|
1522
|
-
(o(!0),
|
|
1523
|
-
id:
|
|
1524
|
-
key:
|
|
1525
|
-
label:
|
|
1535
|
+
(o(!0), i(A, null, P(l.options, (u) => (o(), B(Ut, {
|
|
1536
|
+
id: u.id,
|
|
1537
|
+
key: u.id,
|
|
1538
|
+
label: u.label,
|
|
1526
1539
|
"is-invalid": l.isInvalid,
|
|
1527
1540
|
name: l.name,
|
|
1528
|
-
class: g(["mc-field__item",
|
|
1529
|
-
"model-value": l.modelValue ===
|
|
1530
|
-
disabled:
|
|
1531
|
-
"onUpdate:modelValue": (_) => _ ? s("update:modelValue",
|
|
1541
|
+
class: g(["mc-field__item", n.value]),
|
|
1542
|
+
"model-value": l.modelValue === u.value,
|
|
1543
|
+
disabled: u.disabled,
|
|
1544
|
+
"onUpdate:modelValue": (_) => _ ? s("update:modelValue", u.value) : null
|
|
1532
1545
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
1533
1546
|
], 2));
|
|
1534
1547
|
}
|
|
1535
|
-
}),
|
|
1548
|
+
}), vo = /* @__PURE__ */ m(Ht, [["__scopeId", "data-v-74a1b650"]]), Kt = /* @__PURE__ */ $({
|
|
1536
1549
|
__name: "MStatusDot",
|
|
1537
1550
|
props: {
|
|
1538
1551
|
status: { default: "info" },
|
|
@@ -1543,11 +1556,11 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1543
1556
|
[`mc-status-dot--${e.status}`]: e.status && e.status != "info",
|
|
1544
1557
|
[`mc-status-dot--${e.size}`]: e.size && e.size != "m"
|
|
1545
1558
|
}));
|
|
1546
|
-
return (t,
|
|
1559
|
+
return (t, n) => (o(), i("span", {
|
|
1547
1560
|
class: g(["mc-status-dot", a.value])
|
|
1548
1561
|
}, null, 2));
|
|
1549
1562
|
}
|
|
1550
|
-
}), Et = /* @__PURE__ */ m(Kt, [["__scopeId", "data-v-
|
|
1563
|
+
}), Et = /* @__PURE__ */ m(Kt, [["__scopeId", "data-v-113b7e8f"]]), Qt = { class: "mc-status-badge__label" }, Jt = /* @__PURE__ */ $({
|
|
1551
1564
|
__name: "MStatusBadge",
|
|
1552
1565
|
props: {
|
|
1553
1566
|
label: {},
|
|
@@ -1557,14 +1570,14 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1557
1570
|
const e = r, a = v(() => ({
|
|
1558
1571
|
[`mc-status-badge--${e.status}`]: e.status && e.status != "info"
|
|
1559
1572
|
}));
|
|
1560
|
-
return (t,
|
|
1573
|
+
return (t, n) => (o(), i("div", {
|
|
1561
1574
|
class: g(["mc-status-badge", a.value])
|
|
1562
1575
|
}, [
|
|
1563
1576
|
w(Et, { status: t.status }, null, 8, ["status"]),
|
|
1564
1577
|
d("span", Qt, b(t.label), 1)
|
|
1565
1578
|
], 2));
|
|
1566
1579
|
}
|
|
1567
|
-
}),
|
|
1580
|
+
}), bo = /* @__PURE__ */ m(Jt, [["__scopeId", "data-v-744550c6"]]), Wt = {
|
|
1568
1581
|
name: "Cross20",
|
|
1569
1582
|
props: {
|
|
1570
1583
|
/**
|
|
@@ -1576,8 +1589,8 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1576
1589
|
}
|
|
1577
1590
|
}
|
|
1578
1591
|
}, Xt = ["fill"];
|
|
1579
|
-
function Yt(r, e, a, t,
|
|
1580
|
-
return o(),
|
|
1592
|
+
function Yt(r, e, a, t, n, s) {
|
|
1593
|
+
return o(), i("svg", {
|
|
1581
1594
|
"aria-hidden": "true",
|
|
1582
1595
|
fill: a.color,
|
|
1583
1596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1603,8 +1616,8 @@ const W = /* @__PURE__ */ m(Wt, [["render", Yt]]), Zt = {
|
|
|
1603
1616
|
}
|
|
1604
1617
|
}
|
|
1605
1618
|
}, xt = ["fill"];
|
|
1606
|
-
function es(r, e, a, t,
|
|
1607
|
-
return o(),
|
|
1619
|
+
function es(r, e, a, t, n, s) {
|
|
1620
|
+
return o(), i("svg", {
|
|
1608
1621
|
"aria-hidden": "true",
|
|
1609
1622
|
fill: a.color,
|
|
1610
1623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1630,8 +1643,8 @@ const X = /* @__PURE__ */ m(Zt, [["render", es]]), as = {
|
|
|
1630
1643
|
}
|
|
1631
1644
|
}
|
|
1632
1645
|
}, ts = ["fill"];
|
|
1633
|
-
function ss(r, e, a, t,
|
|
1634
|
-
return o(),
|
|
1646
|
+
function ss(r, e, a, t, n, s) {
|
|
1647
|
+
return o(), i("svg", {
|
|
1635
1648
|
"aria-hidden": "true",
|
|
1636
1649
|
fill: a.color,
|
|
1637
1650
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1657,8 +1670,8 @@ const Y = /* @__PURE__ */ m(as, [["render", ss]]), os = {
|
|
|
1657
1670
|
}
|
|
1658
1671
|
}
|
|
1659
1672
|
}, ls = ["fill"];
|
|
1660
|
-
function ns(r, e, a, t,
|
|
1661
|
-
return o(),
|
|
1673
|
+
function ns(r, e, a, t, n, s) {
|
|
1674
|
+
return o(), i("svg", {
|
|
1662
1675
|
"aria-hidden": "true",
|
|
1663
1676
|
fill: a.color,
|
|
1664
1677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1684,8 +1697,8 @@ const Z = /* @__PURE__ */ m(os, [["render", ns]]), is = {
|
|
|
1684
1697
|
}
|
|
1685
1698
|
}
|
|
1686
1699
|
}, rs = ["fill"];
|
|
1687
|
-
function ds(r, e, a, t,
|
|
1688
|
-
return o(),
|
|
1700
|
+
function ds(r, e, a, t, n, s) {
|
|
1701
|
+
return o(), i("svg", {
|
|
1689
1702
|
"aria-hidden": "true",
|
|
1690
1703
|
fill: a.color,
|
|
1691
1704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1714,7 +1727,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1714
1727
|
setup(r, { emit: e }) {
|
|
1715
1728
|
const a = r, t = v(() => ({
|
|
1716
1729
|
[`mc-status-notification--${a.status}`]: a.status && a.status != "info"
|
|
1717
|
-
})),
|
|
1730
|
+
})), n = v(() => {
|
|
1718
1731
|
switch (a.status) {
|
|
1719
1732
|
case "success":
|
|
1720
1733
|
return x;
|
|
@@ -1727,35 +1740,40 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1727
1740
|
return X;
|
|
1728
1741
|
}
|
|
1729
1742
|
}), s = e;
|
|
1730
|
-
return (l,
|
|
1743
|
+
return (l, p) => (o(), i("section", {
|
|
1731
1744
|
class: g(["mc-status-notification", t.value]),
|
|
1732
1745
|
role: "status"
|
|
1733
1746
|
}, [
|
|
1734
|
-
(o(), B(
|
|
1747
|
+
(o(), B(q(n.value), {
|
|
1735
1748
|
class: "mc-status-notification__icon",
|
|
1736
1749
|
"aria-hidden": "true"
|
|
1737
1750
|
})),
|
|
1738
1751
|
d("div", cs, [
|
|
1739
1752
|
d("h2", us, b(l.title), 1),
|
|
1740
1753
|
d("p", ps, b(l.description), 1),
|
|
1741
|
-
l.$slots.footer ? (o(),
|
|
1754
|
+
l.$slots.footer ? (o(), i("div", ms, [
|
|
1742
1755
|
k(l.$slots, "footer", {}, void 0, !0)
|
|
1743
1756
|
])) : h("", !0)
|
|
1744
1757
|
]),
|
|
1745
|
-
l.closable ? (o(),
|
|
1758
|
+
l.closable ? (o(), B(S, {
|
|
1746
1759
|
key: 0,
|
|
1747
1760
|
class: "mc-status-notification-closable__close",
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1761
|
+
size: "s",
|
|
1762
|
+
ghost: "",
|
|
1763
|
+
"aria-label": "Close",
|
|
1764
|
+
onClick: p[0] || (p[0] = (u) => s("close"))
|
|
1765
|
+
}, {
|
|
1766
|
+
icon: M(() => [
|
|
1767
|
+
w(W, {
|
|
1768
|
+
class: "mc-button__icon",
|
|
1769
|
+
"aria-hidden": "true"
|
|
1770
|
+
})
|
|
1771
|
+
]),
|
|
1772
|
+
_: 1
|
|
1773
|
+
})) : h("", !0)
|
|
1756
1774
|
], 2));
|
|
1757
1775
|
}
|
|
1758
|
-
}),
|
|
1776
|
+
}), fo = /* @__PURE__ */ m(_s, [["__scopeId", "data-v-a7c71513"]]), vs = ["aria-label"], bs = ["aria-selected", "onClick"], fs = {
|
|
1759
1777
|
key: 0,
|
|
1760
1778
|
class: "mc-tabs__icon"
|
|
1761
1779
|
}, hs = { class: "mc-tabs__label" }, $s = /* @__PURE__ */ $({
|
|
@@ -1771,18 +1789,18 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1771
1789
|
setup(r, { emit: e }) {
|
|
1772
1790
|
const a = r, t = v(() => ({
|
|
1773
1791
|
"mc-tabs--centered": a.centered
|
|
1774
|
-
})),
|
|
1775
|
-
a.tabs[
|
|
1776
|
-
}, l = (
|
|
1777
|
-
return (
|
|
1792
|
+
})), n = z(a.modelValue), s = (u) => {
|
|
1793
|
+
a.tabs[u].disabled || u !== n.value && (n.value = u, p("update:modelValue", u));
|
|
1794
|
+
}, l = (u) => n.value === u, p = e;
|
|
1795
|
+
return (u, _) => (o(), i("nav", {
|
|
1778
1796
|
class: g(["mc-tabs", t.value])
|
|
1779
1797
|
}, [
|
|
1780
1798
|
d("ul", {
|
|
1781
1799
|
role: "tablist",
|
|
1782
1800
|
class: "mc-tabs__list",
|
|
1783
|
-
"aria-label":
|
|
1801
|
+
"aria-label": u.description
|
|
1784
1802
|
}, [
|
|
1785
|
-
(o(!0),
|
|
1803
|
+
(o(!0), i(A, null, P(u.tabs, (c, f) => (o(), i("li", {
|
|
1786
1804
|
key: `tab-${f}`,
|
|
1787
1805
|
role: "presentation",
|
|
1788
1806
|
class: "mc-tabs__item"
|
|
@@ -1799,8 +1817,8 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1799
1817
|
type: "button",
|
|
1800
1818
|
onClick: (C) => s(f)
|
|
1801
1819
|
}, [
|
|
1802
|
-
c.icon ? (o(),
|
|
1803
|
-
(o(), B(
|
|
1820
|
+
c.icon ? (o(), i("span", fs, [
|
|
1821
|
+
(o(), B(q(c.icon)))
|
|
1804
1822
|
])) : h("", !0),
|
|
1805
1823
|
d("div", hs, [
|
|
1806
1824
|
d("span", null, b(c.label), 1)
|
|
@@ -1808,10 +1826,11 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1808
1826
|
], 10, bs)
|
|
1809
1827
|
]))), 128))
|
|
1810
1828
|
], 8, vs),
|
|
1811
|
-
|
|
1829
|
+
u.divider ? (o(), B(Ze, { key: 0 })) : h("", !0)
|
|
1812
1830
|
], 2));
|
|
1813
1831
|
}
|
|
1814
|
-
}),
|
|
1832
|
+
}), ho = /* @__PURE__ */ m($s, [["__scopeId", "data-v-3919f834"]]), gs = ["for"], ys = ["id", "name", "checked", "disabled"], ks = { class: "mc-tag__label" }, ws = ["disabled"], Vs = { class: "mc-tag__label" }, Is = ["disabled"], Bs = { class: "mc-tag__label" }, Cs = { class: "mc-tag__label" }, Ms = { class: "mc-tag__label" }, zs = /* @__PURE__ */ $({
|
|
1833
|
+
inheritAttrs: !1,
|
|
1815
1834
|
__name: "MTag",
|
|
1816
1835
|
props: {
|
|
1817
1836
|
type: { default: "informative" },
|
|
@@ -1829,42 +1848,42 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1829
1848
|
const a = r, t = v(() => ({
|
|
1830
1849
|
[`mc-tag-${a.type}`]: a.type && a.type != "informative",
|
|
1831
1850
|
[`mc-tag--${a.size}`]: a.size && a.size != "m"
|
|
1832
|
-
})),
|
|
1833
|
-
return (s, l) => s.type === "selectable" ? (o(),
|
|
1851
|
+
})), n = e;
|
|
1852
|
+
return (s, l) => s.type === "selectable" ? (o(), i("label", {
|
|
1834
1853
|
key: 0,
|
|
1835
1854
|
for: s.id,
|
|
1836
1855
|
class: g(["mc-tag", t.value])
|
|
1837
1856
|
}, [
|
|
1838
|
-
d("input",
|
|
1857
|
+
d("input", V({
|
|
1839
1858
|
type: "checkbox",
|
|
1840
1859
|
class: "mc-tag__input",
|
|
1841
1860
|
id: s.id,
|
|
1842
1861
|
name: s.name,
|
|
1843
1862
|
checked: s.modelValue,
|
|
1844
1863
|
disabled: s.disabled,
|
|
1845
|
-
onChange: l[0] || (l[0] = (
|
|
1864
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
|
|
1846
1865
|
}, s.$attrs), null, 16, ys),
|
|
1847
1866
|
d("span", ks, b(s.label), 1)
|
|
1848
|
-
], 10, gs)) : s.type === "interactive" ? (o(),
|
|
1867
|
+
], 10, gs)) : s.type === "interactive" ? (o(), i("button", V({
|
|
1849
1868
|
key: 1,
|
|
1850
1869
|
class: ["mc-tag", t.value],
|
|
1851
1870
|
type: "button",
|
|
1852
1871
|
disabled: s.disabled
|
|
1853
1872
|
}, s.$attrs), [
|
|
1854
1873
|
d("span", Vs, b(s.label), 1)
|
|
1855
|
-
], 16, ws)) : s.type === "contextualised" ? (o(),
|
|
1874
|
+
], 16, ws)) : s.type === "contextualised" ? (o(), i("button", V({
|
|
1856
1875
|
key: 2,
|
|
1857
1876
|
class: ["mc-tag", t.value],
|
|
1858
1877
|
type: "button",
|
|
1859
1878
|
disabled: s.disabled
|
|
1860
1879
|
}, s.$attrs), [
|
|
1861
|
-
w(
|
|
1880
|
+
w(at, {
|
|
1862
1881
|
appearance: "inverse",
|
|
1863
1882
|
label: s.contextualisedNumber,
|
|
1864
1883
|
size: s.size === "l" ? "m" : void 0
|
|
1865
1884
|
}, null, 8, ["label", "size"]),
|
|
1866
1885
|
d("span", Bs, b(s.label), 1)
|
|
1867
|
-
], 16, Is)) : s.type === "removable" ? (o(),
|
|
1886
|
+
], 16, Is)) : s.type === "removable" ? (o(), i("span", V({
|
|
1868
1887
|
key: 3,
|
|
1869
1888
|
class: ["mc-tag", t.value]
|
|
1870
1889
|
}, s.$attrs), [
|
|
@@ -1872,22 +1891,23 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1872
1891
|
d("button", {
|
|
1873
1892
|
class: "mc-tag-removable__remove",
|
|
1874
1893
|
type: "button",
|
|
1875
|
-
onClick: l[1] || (l[1] = (
|
|
1894
|
+
onClick: l[1] || (l[1] = (p) => s.id && n("remove-tag", s.id))
|
|
1876
1895
|
}, [
|
|
1877
|
-
w(
|
|
1896
|
+
w(F, {
|
|
1878
1897
|
class: "mc-tag-removable__icon",
|
|
1879
1898
|
"aria-hidden": "true"
|
|
1880
1899
|
}),
|
|
1881
1900
|
l[2] || (l[2] = d("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
|
|
1882
1901
|
])
|
|
1883
|
-
], 16)) : (o(),
|
|
1902
|
+
], 16)) : (o(), i("span", V({
|
|
1884
1903
|
key: 4,
|
|
1885
1904
|
class: ["mc-tag", t.value]
|
|
1886
1905
|
}, s.$attrs), [
|
|
1887
1906
|
d("span", Ms, b(s.label), 1)
|
|
1888
1907
|
], 16));
|
|
1889
1908
|
}
|
|
1890
|
-
}),
|
|
1909
|
+
}), $o = /* @__PURE__ */ m(zs, [["__scopeId", "data-v-ff87c7bd"]]), Ls = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], js = /* @__PURE__ */ $({
|
|
1910
|
+
inheritAttrs: !1,
|
|
1891
1911
|
__name: "MTextArea",
|
|
1892
1912
|
props: {
|
|
1893
1913
|
id: {},
|
|
@@ -1905,8 +1925,8 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1905
1925
|
setup(r, { emit: e }) {
|
|
1906
1926
|
const a = r, t = v(() => ({
|
|
1907
1927
|
"is-invalid": a.isInvalid
|
|
1908
|
-
})),
|
|
1909
|
-
return (s, l) => (o(),
|
|
1928
|
+
})), n = e;
|
|
1929
|
+
return (s, l) => (o(), i("textarea", V({
|
|
1910
1930
|
id: s.id,
|
|
1911
1931
|
class: ["mc-textarea", t.value],
|
|
1912
1932
|
"aria-invalid": s.isInvalid,
|
|
@@ -1919,16 +1939,17 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1919
1939
|
rows: s.rows,
|
|
1920
1940
|
readonly: s.readonly
|
|
1921
1941
|
}, s.$attrs, {
|
|
1922
|
-
onInput: l[0] || (l[0] = (
|
|
1942
|
+
onInput: l[0] || (l[0] = (p) => n("update:modelValue", p.target.value))
|
|
1923
1943
|
}), null, 16, Ls));
|
|
1924
1944
|
}
|
|
1925
|
-
}),
|
|
1945
|
+
}), go = /* @__PURE__ */ m(js, [["__scopeId", "data-v-92dbf400"]]), Os = {
|
|
1926
1946
|
key: 0,
|
|
1927
1947
|
class: "mc-text-input__icon"
|
|
1928
1948
|
}, Ts = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Ss = {
|
|
1929
1949
|
key: 1,
|
|
1930
1950
|
class: "mc-controls-options"
|
|
1931
|
-
},
|
|
1951
|
+
}, As = /* @__PURE__ */ $({
|
|
1952
|
+
inheritAttrs: !1,
|
|
1932
1953
|
__name: "MTextInput",
|
|
1933
1954
|
props: {
|
|
1934
1955
|
id: {},
|
|
@@ -1948,16 +1969,16 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1948
1969
|
const a = r, t = v(() => ({
|
|
1949
1970
|
[`mc-text-input--${a.size}`]: a.size && a.size != "m",
|
|
1950
1971
|
"is-invalid": a.isInvalid
|
|
1951
|
-
})),
|
|
1972
|
+
})), n = () => {
|
|
1952
1973
|
s("update:modelValue", "");
|
|
1953
1974
|
}, s = e;
|
|
1954
|
-
return (l,
|
|
1975
|
+
return (l, p) => (o(), i("div", {
|
|
1955
1976
|
class: g(["mc-text-input", t.value])
|
|
1956
1977
|
}, [
|
|
1957
|
-
l.$slots.icon ? (o(),
|
|
1978
|
+
l.$slots.icon ? (o(), i("span", Os, [
|
|
1958
1979
|
k(l.$slots, "icon", {}, void 0, !0)
|
|
1959
1980
|
])) : h("", !0),
|
|
1960
|
-
d("input",
|
|
1981
|
+
d("input", V({
|
|
1961
1982
|
id: l.id,
|
|
1962
1983
|
class: "mc-text-input__control",
|
|
1963
1984
|
value: l.modelValue,
|
|
@@ -1968,27 +1989,27 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1968
1989
|
"aria-invalid": l.isInvalid,
|
|
1969
1990
|
readonly: l.readonly
|
|
1970
1991
|
}, l.$attrs, {
|
|
1971
|
-
onInput:
|
|
1992
|
+
onInput: p[0] || (p[0] = (u) => s("update:modelValue", u.target.value))
|
|
1972
1993
|
}), null, 16, Ts),
|
|
1973
|
-
l.isClearable && l.modelValue ? (o(),
|
|
1994
|
+
l.isClearable && l.modelValue ? (o(), i("div", Ss, [
|
|
1974
1995
|
d("button", {
|
|
1975
1996
|
type: "button",
|
|
1976
1997
|
class: "mc-controls-options__button",
|
|
1977
|
-
onClick:
|
|
1998
|
+
onClick: n
|
|
1978
1999
|
}, [
|
|
1979
|
-
w(
|
|
2000
|
+
w(F, {
|
|
1980
2001
|
class: "mc-controls-options__icon",
|
|
1981
2002
|
"aria-hidden": "true"
|
|
1982
2003
|
}),
|
|
1983
|
-
|
|
2004
|
+
p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
|
|
1984
2005
|
])
|
|
1985
2006
|
])) : h("", !0)
|
|
1986
2007
|
], 2));
|
|
1987
2008
|
}
|
|
1988
|
-
}),
|
|
2009
|
+
}), yo = /* @__PURE__ */ m(As, [["__scopeId", "data-v-8e8fe88e"]]), Ps = { class: "mc-toaster__content" }, Ds = { class: "mc-toaster__message" }, qs = {
|
|
1989
2010
|
key: 0,
|
|
1990
2011
|
class: "mc-toaster__action"
|
|
1991
|
-
},
|
|
2012
|
+
}, Fs = /* @__PURE__ */ $({
|
|
1992
2013
|
__name: "MToaster",
|
|
1993
2014
|
props: {
|
|
1994
2015
|
open: { type: Boolean },
|
|
@@ -2005,7 +2026,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2005
2026
|
"is-open": a.open,
|
|
2006
2027
|
[`mc-toaster--${a.status}`]: a.status && a.status != "info",
|
|
2007
2028
|
[`mc-toaster--${a.position}`]: a.position && a.position != "top"
|
|
2008
|
-
})),
|
|
2029
|
+
})), n = v(() => {
|
|
2009
2030
|
switch (a.status) {
|
|
2010
2031
|
case "success":
|
|
2011
2032
|
return x;
|
|
@@ -2026,36 +2047,36 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2026
2047
|
);
|
|
2027
2048
|
const s = () => {
|
|
2028
2049
|
l("update:open", !1);
|
|
2029
|
-
}, l = e,
|
|
2030
|
-
let
|
|
2050
|
+
}, l = e, p = z(0);
|
|
2051
|
+
let u = null, _ = null;
|
|
2031
2052
|
return se(() => {
|
|
2032
2053
|
if (a.timeout)
|
|
2033
2054
|
if (a.progress) {
|
|
2034
2055
|
const C = 100 / (a.timeout / 100);
|
|
2035
|
-
|
|
2036
|
-
|
|
2056
|
+
u = setInterval(() => {
|
|
2057
|
+
p.value += C, p.value >= 100 && (p.value = 100, s(), clearInterval(u));
|
|
2037
2058
|
}, 100);
|
|
2038
2059
|
} else
|
|
2039
2060
|
_ = setTimeout(() => {
|
|
2040
2061
|
s();
|
|
2041
2062
|
}, a.timeout);
|
|
2042
2063
|
}), oe(() => {
|
|
2043
|
-
a.timeout && (
|
|
2044
|
-
}), (c, f) => (o(),
|
|
2064
|
+
a.timeout && (u && clearInterval(u), _ && clearTimeout(_));
|
|
2065
|
+
}), (c, f) => (o(), i("section", {
|
|
2045
2066
|
class: g(["mc-toaster", t.value]),
|
|
2046
2067
|
role: "status"
|
|
2047
2068
|
}, [
|
|
2048
|
-
(o(), B(
|
|
2069
|
+
(o(), B(q(n.value), {
|
|
2049
2070
|
class: "mc-toaster__icon",
|
|
2050
2071
|
"aria-hidden": "true"
|
|
2051
2072
|
})),
|
|
2052
|
-
d("div",
|
|
2053
|
-
d("p",
|
|
2054
|
-
c.$slots.action ? (o(),
|
|
2073
|
+
d("div", Ps, [
|
|
2074
|
+
d("p", Ds, b(c.description), 1),
|
|
2075
|
+
c.$slots.action ? (o(), i("div", qs, [
|
|
2055
2076
|
k(c.$slots, "action", {}, void 0, !0)
|
|
2056
2077
|
])) : h("", !0)
|
|
2057
2078
|
]),
|
|
2058
|
-
c.closable ? (o(), B(
|
|
2079
|
+
c.closable ? (o(), B(S, {
|
|
2059
2080
|
key: 0,
|
|
2060
2081
|
class: "mc-toaster__close",
|
|
2061
2082
|
appearance: "inverse",
|
|
@@ -2072,14 +2093,15 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2072
2093
|
]),
|
|
2073
2094
|
_: 1
|
|
2074
2095
|
})) : h("", !0),
|
|
2075
|
-
c.progress ? (o(), B(
|
|
2096
|
+
c.progress ? (o(), B(Da, {
|
|
2076
2097
|
key: 1,
|
|
2077
2098
|
class: "mc-toaster__indicator",
|
|
2078
|
-
value:
|
|
2099
|
+
value: p.value
|
|
2079
2100
|
}, null, 8, ["value"])) : h("", !0)
|
|
2080
2101
|
], 2));
|
|
2081
2102
|
}
|
|
2082
|
-
}),
|
|
2103
|
+
}), ko = /* @__PURE__ */ m(Fs, [["__scopeId", "data-v-c7799abc"]]), Ns = ["for"], Rs = ["id", "name", "checked", "disabled"], Gs = ["for"], Us = /* @__PURE__ */ $({
|
|
2104
|
+
inheritAttrs: !1,
|
|
2083
2105
|
__name: "MToggle",
|
|
2084
2106
|
props: {
|
|
2085
2107
|
id: {},
|
|
@@ -2093,15 +2115,15 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2093
2115
|
setup(r, { emit: e }) {
|
|
2094
2116
|
const a = r, t = v(() => ({
|
|
2095
2117
|
[`mc-toggle--${a.size}`]: a.size && a.size != "s"
|
|
2096
|
-
})),
|
|
2097
|
-
return (s, l) => (o(),
|
|
2118
|
+
})), n = e;
|
|
2119
|
+
return (s, l) => (o(), i("div", {
|
|
2098
2120
|
class: g(["mc-toggle", t.value])
|
|
2099
2121
|
}, [
|
|
2100
2122
|
d("label", {
|
|
2101
2123
|
class: "mc-toggle__container",
|
|
2102
2124
|
for: s.id
|
|
2103
2125
|
}, [
|
|
2104
|
-
d("input",
|
|
2126
|
+
d("input", V({
|
|
2105
2127
|
id: s.id,
|
|
2106
2128
|
type: "checkbox",
|
|
2107
2129
|
class: "mc-toggle__input",
|
|
@@ -2109,9 +2131,9 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2109
2131
|
checked: s.modelValue,
|
|
2110
2132
|
disabled: s.disabled
|
|
2111
2133
|
}, s.$attrs, {
|
|
2112
|
-
onChange: l[0] || (l[0] = (
|
|
2134
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
|
|
2113
2135
|
}), null, 16, Rs),
|
|
2114
|
-
s.label ? (o(),
|
|
2136
|
+
s.label ? (o(), i("span", {
|
|
2115
2137
|
key: 0,
|
|
2116
2138
|
for: s.id,
|
|
2117
2139
|
class: "mc-toggle__label"
|
|
@@ -2119,34 +2141,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2119
2141
|
], 8, Ns)
|
|
2120
2142
|
], 2));
|
|
2121
2143
|
}
|
|
2122
|
-
}), Hs = /* @__PURE__ */ m(Us, [["__scopeId", "data-v-
|
|
2123
|
-
__name: "MTooltip",
|
|
2124
|
-
props: {
|
|
2125
|
-
id: {},
|
|
2126
|
-
text: {},
|
|
2127
|
-
position: { default: "top" },
|
|
2128
|
-
pointer: { type: Boolean, default: !0 }
|
|
2129
|
-
},
|
|
2130
|
-
setup(r) {
|
|
2131
|
-
const e = r, a = v(() => ({
|
|
2132
|
-
[`mc-tooltip--${e.position}`]: e.position,
|
|
2133
|
-
"mc-tooltip--no-pointer": !e.pointer
|
|
2134
|
-
}));
|
|
2135
|
-
return (t, i) => (o(), n("div", Ks, [
|
|
2136
|
-
d("div", {
|
|
2137
|
-
class: g(["mc-tooltip", a.value]),
|
|
2138
|
-
"aria-describedby": t.id
|
|
2139
|
-
}, [
|
|
2140
|
-
k(t.$slots, "default", {}, void 0, !0),
|
|
2141
|
-
d("span", {
|
|
2142
|
-
id: t.id,
|
|
2143
|
-
class: "mc-tooltip__content",
|
|
2144
|
-
role: "tooltip"
|
|
2145
|
-
}, b(t.text), 9, Qs)
|
|
2146
|
-
], 10, Es)
|
|
2147
|
-
]));
|
|
2148
|
-
}
|
|
2149
|
-
}), Vo = /* @__PURE__ */ m(Js, [["__scopeId", "data-v-f90a7be6"]]), Ws = /* @__PURE__ */ $({
|
|
2144
|
+
}), Hs = /* @__PURE__ */ m(Us, [["__scopeId", "data-v-3f62827d"]]), Ks = /* @__PURE__ */ $({
|
|
2150
2145
|
__name: "MToggleGroup",
|
|
2151
2146
|
props: {
|
|
2152
2147
|
name: {},
|
|
@@ -2159,76 +2154,102 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2159
2154
|
const a = r, t = z([]);
|
|
2160
2155
|
T(
|
|
2161
2156
|
() => a.modelValue,
|
|
2162
|
-
(
|
|
2163
|
-
t.value =
|
|
2157
|
+
(u) => {
|
|
2158
|
+
t.value = u || [];
|
|
2164
2159
|
},
|
|
2165
2160
|
{ immediate: !0 }
|
|
2166
2161
|
);
|
|
2167
|
-
const
|
|
2162
|
+
const n = (u, _) => {
|
|
2168
2163
|
let c = [...t.value];
|
|
2169
|
-
|
|
2164
|
+
u && !c.includes(_) ? c.push(_) : c = c.filter((f) => f !== _), p("update:modelValue", c), t.value = c;
|
|
2170
2165
|
}, s = v(() => ({
|
|
2171
2166
|
"mc-field__container--inline": a.inline
|
|
2172
2167
|
})), l = v(() => ({
|
|
2173
2168
|
"mc-field__container--inline__item": a.inline
|
|
2174
|
-
})),
|
|
2175
|
-
return (
|
|
2169
|
+
})), p = e;
|
|
2170
|
+
return (u, _) => (o(), i("div", {
|
|
2176
2171
|
class: g(s.value)
|
|
2177
2172
|
}, [
|
|
2178
|
-
(o(!0),
|
|
2173
|
+
(o(!0), i(A, null, P(u.options, (c) => (o(), B(Hs, {
|
|
2179
2174
|
id: c.id,
|
|
2180
2175
|
key: c.id,
|
|
2181
2176
|
label: c.label,
|
|
2182
2177
|
"is-invalid": c.isInvalid,
|
|
2183
|
-
name:
|
|
2178
|
+
name: u.name,
|
|
2184
2179
|
class: g(l.value),
|
|
2185
|
-
"model-value":
|
|
2180
|
+
"model-value": u.modelValue ? u.modelValue.includes(c.value) : void 0,
|
|
2186
2181
|
disabled: c.disabled,
|
|
2187
|
-
"onUpdate:modelValue": (f) =>
|
|
2182
|
+
"onUpdate:modelValue": (f) => n(f, c.value)
|
|
2188
2183
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
2189
2184
|
], 2));
|
|
2190
2185
|
}
|
|
2191
|
-
}),
|
|
2186
|
+
}), wo = /* @__PURE__ */ m(Ks, [["__scopeId", "data-v-2af0db8a"]]), Es = ["aria-describedby"], Qs = ["id"], Js = /* @__PURE__ */ $({
|
|
2187
|
+
__name: "MTooltip",
|
|
2188
|
+
props: {
|
|
2189
|
+
id: {},
|
|
2190
|
+
text: {},
|
|
2191
|
+
position: { default: "top" },
|
|
2192
|
+
pointer: { type: Boolean, default: !0 }
|
|
2193
|
+
},
|
|
2194
|
+
setup(r) {
|
|
2195
|
+
const e = r, a = v(() => ({
|
|
2196
|
+
[`mc-tooltip--${e.position}`]: e.position,
|
|
2197
|
+
"mc-tooltip--no-pointer": !e.pointer
|
|
2198
|
+
}));
|
|
2199
|
+
return (t, n) => (o(), i("div", {
|
|
2200
|
+
class: g(["mc-tooltip", a.value]),
|
|
2201
|
+
"aria-describedby": t.id
|
|
2202
|
+
}, [
|
|
2203
|
+
k(t.$slots, "default", {}, void 0, !0),
|
|
2204
|
+
d("span", {
|
|
2205
|
+
id: t.id,
|
|
2206
|
+
class: "mc-tooltip__content",
|
|
2207
|
+
role: "tooltip"
|
|
2208
|
+
}, b(t.text), 9, Qs)
|
|
2209
|
+
], 10, Es));
|
|
2210
|
+
}
|
|
2211
|
+
}), Vo = /* @__PURE__ */ m(Js, [["__scopeId", "data-v-424718c4"]]);
|
|
2192
2212
|
export {
|
|
2193
|
-
|
|
2194
|
-
|
|
2213
|
+
Xs as MAvatar,
|
|
2214
|
+
Ys as MBreadcrumb,
|
|
2195
2215
|
N as MButton,
|
|
2196
|
-
|
|
2197
|
-
|
|
2216
|
+
Zs as MCallout,
|
|
2217
|
+
Te as MCheckbox,
|
|
2198
2218
|
xs as MCheckboxGroup,
|
|
2199
2219
|
eo as MCircularProgressbar,
|
|
2200
|
-
|
|
2201
|
-
|
|
2220
|
+
ao as MContainer,
|
|
2221
|
+
to as MDatepicker,
|
|
2202
2222
|
Ze as MDivider,
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2223
|
+
so as MDrawer,
|
|
2224
|
+
oo as MField,
|
|
2225
|
+
lo as MFieldGroup,
|
|
2226
|
+
no as MFlag,
|
|
2227
|
+
S as MIconButton,
|
|
2228
|
+
Da as MLinearProgressbarBuffer,
|
|
2229
|
+
io as MLinearProgressbarPercentage,
|
|
2210
2230
|
ce as MLink,
|
|
2211
2231
|
E as MLoader,
|
|
2212
2232
|
ro as MLoadingOverlay,
|
|
2213
2233
|
co as MModal,
|
|
2214
|
-
|
|
2234
|
+
at as MNumberBadge,
|
|
2215
2235
|
J as MOverlay,
|
|
2216
2236
|
uo as MPagination,
|
|
2217
2237
|
po as MPasswordInput,
|
|
2218
2238
|
mo as MPincode,
|
|
2219
|
-
|
|
2239
|
+
_o as MQuantitySelector,
|
|
2220
2240
|
Ut as MRadio,
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2241
|
+
vo as MRadioGroup,
|
|
2242
|
+
nt as MSelect,
|
|
2243
|
+
bo as MStatusBadge,
|
|
2244
|
+
Et as MStatusDot,
|
|
2245
|
+
fo as MStatusNotification,
|
|
2246
|
+
ho as MTabs,
|
|
2247
|
+
$o as MTag,
|
|
2248
|
+
go as MTextArea,
|
|
2249
|
+
yo as MTextInput,
|
|
2250
|
+
ko as MToaster,
|
|
2230
2251
|
Hs as MToggle,
|
|
2231
|
-
|
|
2252
|
+
wo as MToggleGroup,
|
|
2232
2253
|
Vo as MTooltip
|
|
2233
2254
|
};
|
|
2234
2255
|
//# sourceMappingURL=mozaic-vue.js.map
|