@mozaic-ds/vue 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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 F, withCtx as M, createCommentVNode as h, createElementVNode as d, Fragment as P, renderList as D, createVNode as w, createTextVNode as q, toDisplayString as b, normalizeStyle as H, mergeProps as I, 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,8 +16,8 @@ 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
|
}, Ys = /* @__PURE__ */ m(le, [["__scopeId", "data-v-4fdb6762"]]), ne = {
|
|
23
23
|
key: 0,
|
|
@@ -45,20 +45,20 @@ const le = /* @__PURE__ */ $({
|
|
|
45
45
|
"mc-link--inline": e.inline,
|
|
46
46
|
"mc-link--stand-alone": !e.inline
|
|
47
47
|
}));
|
|
48
|
-
return (t,
|
|
48
|
+
return (t, n) => (o(), B(F(t.router ? "router-link" : "a"), {
|
|
49
49
|
class: g(["mc-link", a.value]),
|
|
50
50
|
href: t.href,
|
|
51
51
|
target: t.target,
|
|
52
52
|
to: t.router ? t.href : void 0
|
|
53
53
|
}, {
|
|
54
54
|
default: M(() => [
|
|
55
|
-
t.$slots.icon && t.iconPosition == "left" ? (o(),
|
|
55
|
+
t.$slots.icon && t.iconPosition == "left" ? (o(), i("span", ne, [
|
|
56
56
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
57
57
|
])) : h("", !0),
|
|
58
58
|
d("span", ie, [
|
|
59
59
|
k(t.$slots, "default", {}, void 0, !0)
|
|
60
60
|
]),
|
|
61
|
-
t.$slots.icon && t.iconPosition == "right" ? (o(),
|
|
61
|
+
t.$slots.icon && t.iconPosition == "right" ? (o(), i("span", re, [
|
|
62
62
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
63
63
|
])) : h("", !0)
|
|
64
64
|
]),
|
|
@@ -74,25 +74,25 @@ const le = /* @__PURE__ */ $({
|
|
|
74
74
|
setup(r) {
|
|
75
75
|
const e = r, a = v(() => ({
|
|
76
76
|
[`mc-breadcrumb--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
77
|
-
})), t = (
|
|
78
|
-
return (
|
|
77
|
+
})), t = (n) => n === (e.links?.length ?? 0) - 1;
|
|
78
|
+
return (n, s) => (o(), i("nav", {
|
|
79
79
|
class: g(["mc-breadcrumb", a.value]),
|
|
80
80
|
"aria-label": "Breadcrumb"
|
|
81
81
|
}, [
|
|
82
82
|
d("ul", ue, [
|
|
83
|
-
(o(!0),
|
|
83
|
+
(o(!0), i(P, null, D(n.links, (l, p) => (o(), i("li", {
|
|
84
84
|
class: "mc-breadcrumb__item",
|
|
85
|
-
key: `breadcrumb-${
|
|
85
|
+
key: `breadcrumb-${p}`
|
|
86
86
|
}, [
|
|
87
87
|
w(ce, {
|
|
88
88
|
href: l.href,
|
|
89
89
|
router: l.router,
|
|
90
|
-
appearance:
|
|
90
|
+
appearance: n.appearance,
|
|
91
91
|
inline: "",
|
|
92
92
|
class: g({
|
|
93
|
-
"mc-breadcrumb__current": t(
|
|
93
|
+
"mc-breadcrumb__current": t(p)
|
|
94
94
|
}),
|
|
95
|
-
"aria-current": t(
|
|
95
|
+
"aria-current": t(p) ? "page" : void 0
|
|
96
96
|
}, {
|
|
97
97
|
default: M(() => [
|
|
98
98
|
q(b(l.label), 1)
|
|
@@ -132,7 +132,7 @@ const le = /* @__PURE__ */ $({
|
|
|
132
132
|
s = "0 0 32 32";
|
|
133
133
|
}
|
|
134
134
|
return s;
|
|
135
|
-
}),
|
|
135
|
+
}), n = v(() => {
|
|
136
136
|
let s;
|
|
137
137
|
switch (e.size) {
|
|
138
138
|
case "s":
|
|
@@ -146,11 +146,11 @@ const le = /* @__PURE__ */ $({
|
|
|
146
146
|
}
|
|
147
147
|
return s;
|
|
148
148
|
});
|
|
149
|
-
return (s, l) => (o(),
|
|
149
|
+
return (s, l) => (o(), i("div", {
|
|
150
150
|
class: g(["mc-loader", a.value])
|
|
151
151
|
}, [
|
|
152
152
|
d("span", me, [
|
|
153
|
-
(o(),
|
|
153
|
+
(o(), i("svg", {
|
|
154
154
|
class: "mc-loader__icon",
|
|
155
155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
156
156
|
viewBox: t.value,
|
|
@@ -160,11 +160,11 @@ const le = /* @__PURE__ */ $({
|
|
|
160
160
|
class: "mc-loader__path",
|
|
161
161
|
cx: "50%",
|
|
162
162
|
cy: "50%",
|
|
163
|
-
r:
|
|
163
|
+
r: n.value
|
|
164
164
|
}, null, 8, ve)
|
|
165
165
|
], 8, _e))
|
|
166
166
|
]),
|
|
167
|
-
s.text ? (o(),
|
|
167
|
+
s.text ? (o(), i("p", be, b(s.text), 1)) : h("", !0)
|
|
168
168
|
], 2));
|
|
169
169
|
}
|
|
170
170
|
}), E = /* @__PURE__ */ m(fe, [["__scopeId", "data-v-998c550b"]]), he = ["disabled", "type"], $e = {
|
|
@@ -200,32 +200,32 @@ const le = /* @__PURE__ */ $({
|
|
|
200
200
|
"mc-button--outlined": e.outlined,
|
|
201
201
|
"mc-button--icon-only": e.iconPosition == "only"
|
|
202
202
|
}));
|
|
203
|
-
return (t,
|
|
203
|
+
return (t, n) => (o(), i("button", {
|
|
204
204
|
class: g(["mc-button", a.value]),
|
|
205
205
|
disabled: t.disabled,
|
|
206
206
|
type: t.type
|
|
207
207
|
}, [
|
|
208
|
-
t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (o(),
|
|
208
|
+
t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (o(), i("span", $e, [
|
|
209
209
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
210
210
|
])) : h("", !0),
|
|
211
|
-
t.isLoading ? (o(),
|
|
211
|
+
t.isLoading ? (o(), i("span", ge, [
|
|
212
212
|
w(E, {
|
|
213
213
|
style: { color: "currentColor" },
|
|
214
214
|
size: "s"
|
|
215
215
|
})
|
|
216
216
|
])) : h("", !0),
|
|
217
|
-
t.$slots.icon && t.iconPosition == "only" ? (o(),
|
|
217
|
+
t.$slots.icon && t.iconPosition == "only" ? (o(), i("span", ye, [
|
|
218
218
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
219
|
-
])) : (o(),
|
|
219
|
+
])) : (o(), i("span", {
|
|
220
220
|
key: 3,
|
|
221
221
|
class: "mc-button__label",
|
|
222
222
|
style: H({ visibility: t.isLoading ? "hidden" : "visible" })
|
|
223
223
|
}, [
|
|
224
224
|
k(t.$slots, "default", {}, () => [
|
|
225
|
-
|
|
225
|
+
n[0] || (n[0] = q("Button Label", -1))
|
|
226
226
|
], !0)
|
|
227
227
|
], 4)),
|
|
228
|
-
t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (o(),
|
|
228
|
+
t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (o(), i("span", ke, [
|
|
229
229
|
k(t.$slots, "icon", {}, void 0, !0)
|
|
230
230
|
])) : h("", !0)
|
|
231
231
|
], 10, he));
|
|
@@ -246,11 +246,11 @@ const le = /* @__PURE__ */ $({
|
|
|
246
246
|
setup(r, { emit: e }) {
|
|
247
247
|
const a = r, t = v(() => ({
|
|
248
248
|
"is-invalid": a.isInvalid
|
|
249
|
-
})),
|
|
249
|
+
})), n = v(() => ({
|
|
250
250
|
"mc-checkbox--indented": a.indented
|
|
251
251
|
})), s = e;
|
|
252
|
-
return (l,
|
|
253
|
-
class: g(["mc-checkbox",
|
|
252
|
+
return (l, p) => (o(), i("div", {
|
|
253
|
+
class: g(["mc-checkbox", n.value])
|
|
254
254
|
}, [
|
|
255
255
|
d("input", I({
|
|
256
256
|
id: l.id,
|
|
@@ -262,9 +262,9 @@ const le = /* @__PURE__ */ $({
|
|
|
262
262
|
disabled: l.disabled,
|
|
263
263
|
"aria-invalid": l.isInvalid
|
|
264
264
|
}, l.$attrs, {
|
|
265
|
-
onChange:
|
|
265
|
+
onChange: p[0] || (p[0] = (u) => s("update:modelValue", u.target.checked))
|
|
266
266
|
}), null, 16, Ve),
|
|
267
|
-
l.label ? (o(),
|
|
267
|
+
l.label ? (o(), i("label", {
|
|
268
268
|
key: 0,
|
|
269
269
|
for: l.id,
|
|
270
270
|
class: "mc-checkbox__label"
|
|
@@ -284,33 +284,33 @@ const le = /* @__PURE__ */ $({
|
|
|
284
284
|
const a = r, t = z([]);
|
|
285
285
|
T(
|
|
286
286
|
() => a.modelValue,
|
|
287
|
-
(
|
|
288
|
-
t.value =
|
|
287
|
+
(u) => {
|
|
288
|
+
t.value = u || [];
|
|
289
289
|
},
|
|
290
290
|
{ immediate: !0 }
|
|
291
291
|
);
|
|
292
|
-
const
|
|
292
|
+
const n = (u, _) => {
|
|
293
293
|
let c = [...t.value];
|
|
294
|
-
|
|
294
|
+
u && !c.includes(_) ? c.push(_) : c = c.filter((f) => f !== _), p("update:modelValue", c), t.value = c;
|
|
295
295
|
}, s = v(() => ({
|
|
296
296
|
"mc-field__container--inline": a.inline
|
|
297
297
|
})), l = v(() => ({
|
|
298
298
|
"mc-field__container--inline__item": a.inline
|
|
299
|
-
})),
|
|
300
|
-
return (
|
|
299
|
+
})), p = e;
|
|
300
|
+
return (u, _) => (o(), i("div", {
|
|
301
301
|
class: g(["mc-field__container", s.value])
|
|
302
302
|
}, [
|
|
303
|
-
(o(!0),
|
|
303
|
+
(o(!0), i(P, null, D(u.options, (c) => (o(), B(Ce, {
|
|
304
304
|
id: c.id,
|
|
305
305
|
key: c.id,
|
|
306
306
|
label: c.label,
|
|
307
307
|
"is-invalid": c.isInvalid,
|
|
308
|
-
name:
|
|
308
|
+
name: u.name,
|
|
309
309
|
class: g(["mc-field__item", l.value]),
|
|
310
|
-
"model-value":
|
|
310
|
+
"model-value": u.modelValue ? u.modelValue.includes(c.value) : void 0,
|
|
311
311
|
disabled: c.disabled,
|
|
312
312
|
indented: c.indented,
|
|
313
|
-
"onUpdate:modelValue": (f) =>
|
|
313
|
+
"onUpdate:modelValue": (f) => n(f, c.value)
|
|
314
314
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "indented", "onUpdate:modelValue"]))), 128))
|
|
315
315
|
], 2));
|
|
316
316
|
}
|
|
@@ -336,7 +336,7 @@ const le = /* @__PURE__ */ $({
|
|
|
336
336
|
const e = r, a = v(() => ({
|
|
337
337
|
[`mc-circular-progressbar--${e.size}`]: e.size && e.size != "l"
|
|
338
338
|
}));
|
|
339
|
-
return (t,
|
|
339
|
+
return (t, n) => (o(), i("div", {
|
|
340
340
|
class: g(["mc-circular-progressbar", a.value]),
|
|
341
341
|
role: "progressbar",
|
|
342
342
|
style: H(`--progress-value: ${t.value};`),
|
|
@@ -344,7 +344,7 @@ const le = /* @__PURE__ */ $({
|
|
|
344
344
|
"aria-valuemin": 0,
|
|
345
345
|
"aria-valuemax": 100
|
|
346
346
|
}, [
|
|
347
|
-
|
|
347
|
+
n[1] || (n[1] = d("svg", {
|
|
348
348
|
class: "mc-circular-progressbar__line",
|
|
349
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
350
350
|
"aria-hidden": "true",
|
|
@@ -363,13 +363,13 @@ const le = /* @__PURE__ */ $({
|
|
|
363
363
|
r: "46"
|
|
364
364
|
})
|
|
365
365
|
], -1)),
|
|
366
|
-
t.type === "percentage" ? (o(),
|
|
366
|
+
t.type === "percentage" ? (o(), i("div", Le, [
|
|
367
367
|
d("p", je, b(t.value), 1),
|
|
368
|
-
|
|
368
|
+
n[0] || (n[0] = d("p", { class: "mc-circular-progressbar__unit" }, "%", -1))
|
|
369
369
|
])) : h("", !0),
|
|
370
|
-
t.type === "content" ? (o(),
|
|
370
|
+
t.type === "content" ? (o(), i("div", Oe, [
|
|
371
371
|
d("p", Te, b(t.contentValue), 1),
|
|
372
|
-
t.additionalInfo ? (o(),
|
|
372
|
+
t.additionalInfo ? (o(), i("p", Se, b(t.additionalInfo), 1)) : h("", !0)
|
|
373
373
|
])) : h("", !0)
|
|
374
374
|
], 14, ze));
|
|
375
375
|
}
|
|
@@ -387,7 +387,7 @@ const le = /* @__PURE__ */ $({
|
|
|
387
387
|
const e = r, a = v(() => ({
|
|
388
388
|
[`mc-callout--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
389
389
|
}));
|
|
390
|
-
return (t,
|
|
390
|
+
return (t, n) => (o(), i("section", {
|
|
391
391
|
class: g(["mc-callout", a.value]),
|
|
392
392
|
role: "status"
|
|
393
393
|
}, [
|
|
@@ -397,7 +397,7 @@ const le = /* @__PURE__ */ $({
|
|
|
397
397
|
d("div", qe, [
|
|
398
398
|
d("h2", Fe, b(t.title), 1),
|
|
399
399
|
d("p", Ae, b(t.description), 1),
|
|
400
|
-
t.$slots.footer ? (o(),
|
|
400
|
+
t.$slots.footer ? (o(), i("div", Ne, [
|
|
401
401
|
k(t.$slots, "footer", {}, void 0, !0)
|
|
402
402
|
])) : h("", !0)
|
|
403
403
|
])
|
|
@@ -412,7 +412,7 @@ const le = /* @__PURE__ */ $({
|
|
|
412
412
|
const e = r, a = v(() => ({
|
|
413
413
|
"ml-container--fluid": e.fluid
|
|
414
414
|
}));
|
|
415
|
-
return (t,
|
|
415
|
+
return (t, n) => (o(), i("div", {
|
|
416
416
|
class: g(["ml-container", a.value])
|
|
417
417
|
}, [
|
|
418
418
|
k(t.$slots, "default", {}, void 0, !0)
|
|
@@ -430,8 +430,8 @@ const le = /* @__PURE__ */ $({
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
}, He = ["fill"];
|
|
433
|
-
function Ke(r, e, a, t,
|
|
434
|
-
return o(),
|
|
433
|
+
function Ke(r, e, a, t, n, s) {
|
|
434
|
+
return o(), i("svg", {
|
|
435
435
|
"aria-hidden": "true",
|
|
436
436
|
fill: a.color,
|
|
437
437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -466,25 +466,25 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
|
|
|
466
466
|
const a = r, t = v(() => ({
|
|
467
467
|
[`mc-text-input--${a.size} mc-datepicker--${a.size}`]: a.size && a.size != "m",
|
|
468
468
|
"is-invalid": a.isInvalid
|
|
469
|
-
})),
|
|
470
|
-
|
|
469
|
+
})), n = z(a.modelValue), s = () => {
|
|
470
|
+
n.value = "", l("update:modelValue", "");
|
|
471
471
|
}, l = e;
|
|
472
|
-
return (
|
|
472
|
+
return (p, u) => (o(), i("div", {
|
|
473
473
|
class: g(["mc-datepicker mc-text-input", t.value])
|
|
474
474
|
}, [
|
|
475
475
|
d("input", I({
|
|
476
|
-
id:
|
|
476
|
+
id: p.id,
|
|
477
477
|
class: "mc-datepicker__control mc-text-input__control",
|
|
478
|
-
value:
|
|
478
|
+
value: n.value,
|
|
479
479
|
type: "date",
|
|
480
|
-
name:
|
|
481
|
-
disabled:
|
|
482
|
-
"aria-invalid":
|
|
483
|
-
readonly:
|
|
484
|
-
},
|
|
485
|
-
onInput:
|
|
480
|
+
name: p.name,
|
|
481
|
+
disabled: p.disabled,
|
|
482
|
+
"aria-invalid": p.isInvalid,
|
|
483
|
+
readonly: p.readonly
|
|
484
|
+
}, p.$attrs, {
|
|
485
|
+
onInput: u[0] || (u[0] = (_) => l("update:modelValue", _.target.value))
|
|
486
486
|
}), null, 16, Ee),
|
|
487
|
-
|
|
487
|
+
p.isClearable && n.value ? (o(), i("div", Qe, [
|
|
488
488
|
d("button", {
|
|
489
489
|
type: "button",
|
|
490
490
|
class: "mc-controls-options__button",
|
|
@@ -494,7 +494,7 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
|
|
|
494
494
|
class: "mc-controls-options__icon",
|
|
495
495
|
"aria-hidden": "true"
|
|
496
496
|
}),
|
|
497
|
-
d("span", Je, b(
|
|
497
|
+
d("span", Je, b(p.clearLabel), 1)
|
|
498
498
|
])
|
|
499
499
|
])) : h("", !0)
|
|
500
500
|
], 2));
|
|
@@ -512,7 +512,7 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
|
|
|
512
512
|
[`mc-divider-horizontal--${e.style}`]: e.style && e.style != "primary",
|
|
513
513
|
[`mc-divider-horizontal--${e.size}`]: e.size && e.size != "s"
|
|
514
514
|
}));
|
|
515
|
-
return (t,
|
|
515
|
+
return (t, n) => (o(), i("div", Xe, [
|
|
516
516
|
d("div", {
|
|
517
517
|
class: g(a.value)
|
|
518
518
|
}, null, 2),
|
|
@@ -531,8 +531,8 @@ const A = /* @__PURE__ */ m(Ue, [["render", Ke]]), Ee = ["id", "value", "name",
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}, ea = ["fill"];
|
|
534
|
-
function aa(r, e, a, t,
|
|
535
|
-
return o(),
|
|
534
|
+
function aa(r, e, a, t, n, s) {
|
|
535
|
+
return o(), i("svg", {
|
|
536
536
|
"aria-hidden": "true",
|
|
537
537
|
fill: a.color,
|
|
538
538
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -558,8 +558,8 @@ const ta = /* @__PURE__ */ m(xe, [["render", aa]]), sa = {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
}, oa = ["fill"];
|
|
561
|
-
function la(r, e, a, t,
|
|
562
|
-
return o(),
|
|
561
|
+
function la(r, e, a, t, n, s) {
|
|
562
|
+
return o(), i("svg", {
|
|
563
563
|
"aria-hidden": "true",
|
|
564
564
|
fill: a.color,
|
|
565
565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -590,7 +590,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
590
590
|
"mc-button--ghost": e.ghost,
|
|
591
591
|
"mc-button--outlined": e.outlined
|
|
592
592
|
}));
|
|
593
|
-
return (t,
|
|
593
|
+
return (t, n) => (o(), i("button", {
|
|
594
594
|
class: g(["mc-button mc-button--icon-button", a.value]),
|
|
595
595
|
disabled: t.disabled,
|
|
596
596
|
type: t.type
|
|
@@ -600,14 +600,14 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
600
600
|
])
|
|
601
601
|
], 10, na));
|
|
602
602
|
}
|
|
603
|
-
}),
|
|
603
|
+
}), S = /* @__PURE__ */ m(ra, [["__scopeId", "data-v-abf78562"]]), da = ["aria-labelledby"], ca = /* @__PURE__ */ $({
|
|
604
604
|
__name: "MOverlay",
|
|
605
605
|
props: {
|
|
606
606
|
isVisible: { type: Boolean },
|
|
607
607
|
dialogLabel: {}
|
|
608
608
|
},
|
|
609
609
|
setup(r) {
|
|
610
|
-
return (e, a) => (o(),
|
|
610
|
+
return (e, a) => (o(), i("div", {
|
|
611
611
|
class: g(["mc-overlay", { "is-visible": e.isVisible }])
|
|
612
612
|
}, [
|
|
613
613
|
d("div", {
|
|
@@ -657,10 +657,10 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
657
657
|
s("update:open", l);
|
|
658
658
|
}
|
|
659
659
|
);
|
|
660
|
-
const
|
|
660
|
+
const n = () => {
|
|
661
661
|
s("update:open", !1);
|
|
662
662
|
}, s = e;
|
|
663
|
-
return (l,
|
|
663
|
+
return (l, p) => (o(), B(J, {
|
|
664
664
|
"is-visible": l.open,
|
|
665
665
|
dialogLabel: "drawerTitle"
|
|
666
666
|
}, {
|
|
@@ -673,16 +673,16 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
673
673
|
tabindex: "-1",
|
|
674
674
|
"aria-hidden": !l.open
|
|
675
675
|
}, l.$attrs, {
|
|
676
|
-
onKeydown: R(
|
|
676
|
+
onKeydown: R(n, ["esc"])
|
|
677
677
|
}), [
|
|
678
678
|
d("div", pa, [
|
|
679
679
|
d("div", ma, [
|
|
680
|
-
l.back ? (o(), B(
|
|
680
|
+
l.back ? (o(), B(S, {
|
|
681
681
|
key: 0,
|
|
682
682
|
class: "mc-drawer__back",
|
|
683
683
|
"aria-label": "Back",
|
|
684
684
|
ghost: "",
|
|
685
|
-
onClick:
|
|
685
|
+
onClick: p[0] || (p[0] = (u) => s("back"))
|
|
686
686
|
}, {
|
|
687
687
|
icon: M(() => [
|
|
688
688
|
w(ta, { "aria-hidden": "true" })
|
|
@@ -690,11 +690,11 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
690
690
|
_: 1
|
|
691
691
|
})) : h("", !0),
|
|
692
692
|
d("h2", _a, b(l.title), 1),
|
|
693
|
-
w(
|
|
693
|
+
w(S, {
|
|
694
694
|
class: "mc-drawer__close",
|
|
695
695
|
"aria-label": "Close",
|
|
696
696
|
ghost: "",
|
|
697
|
-
onClick:
|
|
697
|
+
onClick: n
|
|
698
698
|
}, {
|
|
699
699
|
icon: M(() => [
|
|
700
700
|
w(Q, { "aria-hidden": "true" })
|
|
@@ -704,11 +704,11 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
704
704
|
]),
|
|
705
705
|
d("div", va, [
|
|
706
706
|
d("div", ba, [
|
|
707
|
-
l.contentTitle ? (o(),
|
|
707
|
+
l.contentTitle ? (o(), i("h2", fa, b(l.contentTitle), 1)) : h("", !0),
|
|
708
708
|
k(l.$slots, "default", {}, void 0, !0)
|
|
709
709
|
])
|
|
710
710
|
]),
|
|
711
|
-
l.$slots.footer ? (o(),
|
|
711
|
+
l.$slots.footer ? (o(), i("div", ha, [
|
|
712
712
|
k(l.$slots, "footer", {}, void 0, !0)
|
|
713
713
|
])) : h("", !0)
|
|
714
714
|
])
|
|
@@ -738,15 +738,15 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
738
738
|
"is-valid": e.isValid,
|
|
739
739
|
"is-invalid": e.isInvalid
|
|
740
740
|
}));
|
|
741
|
-
return (t,
|
|
741
|
+
return (t, n) => (o(), i("div", ga, [
|
|
742
742
|
d("label", {
|
|
743
743
|
class: "mc-field__label",
|
|
744
744
|
for: t.id
|
|
745
745
|
}, [
|
|
746
746
|
q(b(t.label) + " ", 1),
|
|
747
|
-
t.requirementText ? (o(),
|
|
747
|
+
t.requirementText ? (o(), i("span", ka, "(" + b(t.requirementText) + ")", 1)) : h("", !0)
|
|
748
748
|
], 8, ya),
|
|
749
|
-
t.helpId && t.helpText ? (o(),
|
|
749
|
+
t.helpId && t.helpText ? (o(), i("span", {
|
|
750
750
|
key: 0,
|
|
751
751
|
id: t.helpId,
|
|
752
752
|
class: "mc-field__help"
|
|
@@ -754,7 +754,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
754
754
|
d("div", Va, [
|
|
755
755
|
k(t.$slots, "default", {}, void 0, !0)
|
|
756
756
|
]),
|
|
757
|
-
(t.isValid || t.isInvalid) && t.message ? (o(),
|
|
757
|
+
(t.isValid || t.isInvalid) && t.message ? (o(), i("span", {
|
|
758
758
|
key: 1,
|
|
759
759
|
class: g(["mc-field__validation-message", a.value]),
|
|
760
760
|
id: t.messageId
|
|
@@ -783,19 +783,19 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
783
783
|
"is-valid": e.isValid,
|
|
784
784
|
"is-invalid": e.isInvalid
|
|
785
785
|
}));
|
|
786
|
-
return (t,
|
|
786
|
+
return (t, n) => (o(), i("fieldset", Ca, [
|
|
787
787
|
d("legend", {
|
|
788
788
|
class: "mc-field__legend",
|
|
789
789
|
for: t.id
|
|
790
790
|
}, [
|
|
791
791
|
q(b(t.legend) + " ", 1),
|
|
792
|
-
t.requirementText ? (o(),
|
|
792
|
+
t.requirementText ? (o(), i("span", za, "(" + b(t.requirementText) + ")", 1)) : h("", !0)
|
|
793
793
|
], 8, Ma),
|
|
794
|
-
t.helpText ? (o(),
|
|
794
|
+
t.helpText ? (o(), i("span", La, b(t.helpText), 1)) : h("", !0),
|
|
795
795
|
d("div", ja, [
|
|
796
796
|
k(t.$slots, "default", {}, void 0, !0)
|
|
797
797
|
]),
|
|
798
|
-
(t.isValid || t.isInvalid) && t.message ? (o(),
|
|
798
|
+
(t.isValid || t.isInvalid) && t.message ? (o(), i("span", {
|
|
799
799
|
key: 1,
|
|
800
800
|
class: g(["mc-field__validation-message", a.value])
|
|
801
801
|
}, b(t.message), 3)) : h("", !0)
|
|
@@ -811,7 +811,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
811
811
|
const e = r, a = v(() => ({
|
|
812
812
|
[`mc-flag--${e.appearance}`]: e.appearance && e.appearance != "standard"
|
|
813
813
|
}));
|
|
814
|
-
return (t,
|
|
814
|
+
return (t, n) => (o(), i("div", {
|
|
815
815
|
class: g(["mc-flag", a.value])
|
|
816
816
|
}, [
|
|
817
817
|
d("span", Ta, b(t.label), 1)
|
|
@@ -824,7 +824,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
824
824
|
text: {}
|
|
825
825
|
},
|
|
826
826
|
setup(r) {
|
|
827
|
-
return (e, a) => (o(),
|
|
827
|
+
return (e, a) => (o(), i("div", {
|
|
828
828
|
class: g(["mc-loading-loader", { "is-visible": e.isVisible }])
|
|
829
829
|
}, [
|
|
830
830
|
d("div", I({
|
|
@@ -871,10 +871,10 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
871
871
|
s("update:open", l);
|
|
872
872
|
}
|
|
873
873
|
);
|
|
874
|
-
const
|
|
874
|
+
const n = () => {
|
|
875
875
|
s("update:open", !1);
|
|
876
876
|
}, s = e;
|
|
877
|
-
return (l,
|
|
877
|
+
return (l, p) => (o(), B(J, {
|
|
878
878
|
"is-visible": l.open,
|
|
879
879
|
dialogLabel: "modalTitle"
|
|
880
880
|
}, {
|
|
@@ -887,20 +887,20 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
887
887
|
tabindex: "-1",
|
|
888
888
|
"aria-hidden": !l.open
|
|
889
889
|
}, l.$attrs, {
|
|
890
|
-
onKeydown: R(
|
|
890
|
+
onKeydown: R(n, ["esc"])
|
|
891
891
|
}), [
|
|
892
892
|
d("div", Fa, [
|
|
893
893
|
d("header", Aa, [
|
|
894
|
-
l.$slots.icon ? (o(),
|
|
894
|
+
l.$slots.icon ? (o(), i("span", Na, [
|
|
895
895
|
k(l.$slots, "icon", {}, void 0, !0)
|
|
896
896
|
])) : h("", !0),
|
|
897
897
|
d("h2", Ra, b(l.title), 1),
|
|
898
|
-
l.closable ? (o(), B(
|
|
898
|
+
l.closable ? (o(), B(S, {
|
|
899
899
|
key: 1,
|
|
900
900
|
class: "mc-modal__close",
|
|
901
901
|
"aria-label": "Close",
|
|
902
902
|
ghost: "",
|
|
903
|
-
onClick:
|
|
903
|
+
onClick: n
|
|
904
904
|
}, {
|
|
905
905
|
icon: M(() => [
|
|
906
906
|
w(Q, { "aria-hidden": "true" })
|
|
@@ -912,7 +912,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
912
912
|
d("p", null, b(l.description), 1),
|
|
913
913
|
k(l.$slots, "default", {}, void 0, !0)
|
|
914
914
|
]),
|
|
915
|
-
l.$slots.footer ? (o(),
|
|
915
|
+
l.$slots.footer ? (o(), i("footer", Ua, [
|
|
916
916
|
d("span", Ha, [
|
|
917
917
|
k(l.$slots, "link", {}, void 0, !0)
|
|
918
918
|
]),
|
|
@@ -936,7 +936,7 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
936
936
|
[`mc-number-badge--${e.appearance}`]: e.appearance && e.appearance != "standard",
|
|
937
937
|
[`mc-number-badge--${e.size}`]: e.size && e.size != "s"
|
|
938
938
|
}));
|
|
939
|
-
return (t,
|
|
939
|
+
return (t, n) => (o(), i("span", {
|
|
940
940
|
class: g(["mc-number-badge", a.value])
|
|
941
941
|
}, b(t.label), 3));
|
|
942
942
|
}
|
|
@@ -963,23 +963,23 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
963
963
|
[`mc-select--${a.size}`]: a.size && a.size != "m",
|
|
964
964
|
"mc-select--readonly": a.readonly,
|
|
965
965
|
"is-invalid": a.isInvalid
|
|
966
|
-
})),
|
|
967
|
-
return (s, l) => (o(),
|
|
966
|
+
})), n = e;
|
|
967
|
+
return (s, l) => (o(), i("select", I({
|
|
968
968
|
id: s.id,
|
|
969
969
|
class: ["mc-select", t.value],
|
|
970
970
|
name: s.name,
|
|
971
971
|
value: s.modelValue,
|
|
972
972
|
disabled: s.disabled
|
|
973
973
|
}, s.$attrs, {
|
|
974
|
-
onChange: l[0] || (l[0] = (
|
|
974
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.value))
|
|
975
975
|
}), [
|
|
976
|
-
s.placeholder ? (o(),
|
|
977
|
-
(o(!0),
|
|
978
|
-
key:
|
|
979
|
-
value:
|
|
980
|
-
}, { ref_for: !0 },
|
|
981
|
-
disabled:
|
|
982
|
-
}), b(
|
|
976
|
+
s.placeholder ? (o(), i("option", Wa, " -- " + b(s.placeholder) + " -- ", 1)) : h("", !0),
|
|
977
|
+
(o(!0), i(P, null, D(s.options, (p, u) => (o(), i("option", I({
|
|
978
|
+
key: u,
|
|
979
|
+
value: p.value
|
|
980
|
+
}, { ref_for: !0 }, p.attributes, {
|
|
981
|
+
disabled: p.disabled
|
|
982
|
+
}), b(p.text), 17, Xa))), 128))
|
|
983
983
|
], 16, Ja));
|
|
984
984
|
}
|
|
985
985
|
}), Za = /* @__PURE__ */ m(Ya, [["__scopeId", "data-v-68c735e4"]]), xa = {
|
|
@@ -994,8 +994,8 @@ const Q = /* @__PURE__ */ m(sa, [["render", la]]), na = ["disabled", "type"], ia
|
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
}, et = ["fill"];
|
|
997
|
-
function at(r, e, a, t,
|
|
998
|
-
return o(),
|
|
997
|
+
function at(r, e, a, t, n, s) {
|
|
998
|
+
return o(), i("svg", {
|
|
999
999
|
"aria-hidden": "true",
|
|
1000
1000
|
fill: a.color,
|
|
1001
1001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1021,8 +1021,8 @@ const G = /* @__PURE__ */ m(xa, [["render", at]]), tt = {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
}, st = ["fill"];
|
|
1024
|
-
function ot(r, e, a, t,
|
|
1025
|
-
return o(),
|
|
1024
|
+
function ot(r, e, a, t, n, s) {
|
|
1025
|
+
return o(), i("svg", {
|
|
1026
1026
|
"aria-hidden": "true",
|
|
1027
1027
|
fill: a.color,
|
|
1028
1028
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1058,32 +1058,32 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1058
1058
|
},
|
|
1059
1059
|
emits: ["update:modelValue"],
|
|
1060
1060
|
setup(r, { emit: e }) {
|
|
1061
|
-
const a = r, t = e,
|
|
1062
|
-
T(
|
|
1061
|
+
const a = r, t = e, n = z(a.modelValue);
|
|
1062
|
+
T(n, (c) => {
|
|
1063
1063
|
c !== a.modelValue && t("update:modelValue", c);
|
|
1064
1064
|
});
|
|
1065
1065
|
const s = v(
|
|
1066
|
-
() => a.options.findIndex((c) => c.value ===
|
|
1067
|
-
), l = v(() => s.value === 0),
|
|
1066
|
+
() => a.options.findIndex((c) => c.value === n.value)
|
|
1067
|
+
), l = v(() => s.value === 0), p = v(
|
|
1068
1068
|
() => s.value === a.options.length - 1
|
|
1069
|
-
),
|
|
1069
|
+
), u = () => {
|
|
1070
1070
|
const c = a.options.findIndex(
|
|
1071
|
-
(f) => f.value ===
|
|
1071
|
+
(f) => f.value === n.value
|
|
1072
1072
|
);
|
|
1073
|
-
c > 0 && (
|
|
1073
|
+
c > 0 && (n.value = a.options[c - 1].value, t("update:modelValue", a.options[c - 1].value));
|
|
1074
1074
|
}, _ = () => {
|
|
1075
1075
|
const c = a.options.findIndex(
|
|
1076
|
-
(f) => f.value ===
|
|
1076
|
+
(f) => f.value === n.value
|
|
1077
1077
|
);
|
|
1078
|
-
c < a.options.length - 1 && (
|
|
1078
|
+
c < a.options.length - 1 && (n.value = a.options[c + 1].value, t("update:modelValue", a.options[c + 1].value));
|
|
1079
1079
|
};
|
|
1080
|
-
return (c, f) => (o(),
|
|
1081
|
-
c.compact ? (o(), B(
|
|
1080
|
+
return (c, f) => (o(), i("nav", lt, [
|
|
1081
|
+
c.compact ? (o(), B(S, {
|
|
1082
1082
|
key: 1,
|
|
1083
1083
|
outlined: "",
|
|
1084
1084
|
"aria-label": "Previous page",
|
|
1085
1085
|
disabled: l.value,
|
|
1086
|
-
onClick:
|
|
1086
|
+
onClick: u
|
|
1087
1087
|
}, {
|
|
1088
1088
|
icon: M(() => [
|
|
1089
1089
|
w(G)
|
|
@@ -1094,32 +1094,32 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1094
1094
|
"icon-position": "only",
|
|
1095
1095
|
"aria-label": "Previous page",
|
|
1096
1096
|
disabled: l.value,
|
|
1097
|
-
onClick:
|
|
1097
|
+
onClick: u
|
|
1098
1098
|
}, {
|
|
1099
1099
|
icon: M(() => [
|
|
1100
1100
|
w(G)
|
|
1101
1101
|
]),
|
|
1102
1102
|
_: 1
|
|
1103
1103
|
}, 8, ["disabled"])),
|
|
1104
|
-
c.compact ? h("", !0) : (o(),
|
|
1104
|
+
c.compact ? h("", !0) : (o(), i("div", nt, [
|
|
1105
1105
|
w(Za, {
|
|
1106
1106
|
class: "mc-pagination__select",
|
|
1107
1107
|
id: c.id,
|
|
1108
|
-
modelValue:
|
|
1108
|
+
modelValue: n.value,
|
|
1109
1109
|
"onUpdate:modelValue": [
|
|
1110
|
-
f[0] || (f[0] = (C) =>
|
|
1110
|
+
f[0] || (f[0] = (C) => n.value = C),
|
|
1111
1111
|
f[1] || (f[1] = (C) => t("update:modelValue", Number(C)))
|
|
1112
1112
|
],
|
|
1113
1113
|
options: c.options,
|
|
1114
1114
|
"aria-label": c.selectLabel
|
|
1115
1115
|
}, null, 8, ["id", "modelValue", "options", "aria-label"])
|
|
1116
1116
|
])),
|
|
1117
|
-
c.compact ? (o(),
|
|
1118
|
-
c.compact ? (o(), B(
|
|
1117
|
+
c.compact ? (o(), i("span", it, b(c.options.find((C) => C.value === n.value)?.text), 1)) : h("", !0),
|
|
1118
|
+
c.compact ? (o(), B(S, {
|
|
1119
1119
|
key: 5,
|
|
1120
1120
|
outlined: "",
|
|
1121
1121
|
"aria-label": "Next page",
|
|
1122
|
-
disabled:
|
|
1122
|
+
disabled: p.value,
|
|
1123
1123
|
onClick: _
|
|
1124
1124
|
}, {
|
|
1125
1125
|
icon: M(() => [
|
|
@@ -1130,7 +1130,7 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1130
1130
|
key: 4,
|
|
1131
1131
|
"icon-position": "only",
|
|
1132
1132
|
"aria-label": "Next page",
|
|
1133
|
-
disabled:
|
|
1133
|
+
disabled: p.value,
|
|
1134
1134
|
onClick: _
|
|
1135
1135
|
}, {
|
|
1136
1136
|
icon: M(() => [
|
|
@@ -1161,19 +1161,19 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1161
1161
|
setup(r, { emit: e }) {
|
|
1162
1162
|
const a = r, t = v(() => ({
|
|
1163
1163
|
"is-invalid": a.isInvalid
|
|
1164
|
-
})),
|
|
1165
|
-
|
|
1166
|
-
},
|
|
1164
|
+
})), n = z(a.modelValue), s = z(!1), l = () => {
|
|
1165
|
+
n.value = "", c("update:modelValue", "");
|
|
1166
|
+
}, p = () => {
|
|
1167
1167
|
s.value = !s.value;
|
|
1168
|
-
},
|
|
1169
|
-
return (f, C) => (o(),
|
|
1168
|
+
}, u = v(() => s.value ? "text" : "password"), _ = v(() => s.value ? "true" : "false"), c = e;
|
|
1169
|
+
return (f, C) => (o(), i("div", {
|
|
1170
1170
|
class: g(["mc-password-input mc-text-input", t.value])
|
|
1171
1171
|
}, [
|
|
1172
1172
|
K(d("input", I({
|
|
1173
1173
|
class: "mc-password-input__control mc-text-input__control",
|
|
1174
|
-
"onUpdate:modelValue": C[0] || (C[0] = (y) =>
|
|
1174
|
+
"onUpdate:modelValue": C[0] || (C[0] = (y) => n.value = y),
|
|
1175
1175
|
id: f.id,
|
|
1176
|
-
type:
|
|
1176
|
+
type: u.value,
|
|
1177
1177
|
name: f.name,
|
|
1178
1178
|
placeholder: f.placeholder,
|
|
1179
1179
|
disabled: f.disabled,
|
|
@@ -1182,9 +1182,9 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1182
1182
|
}, f.$attrs, {
|
|
1183
1183
|
onInput: C[1] || (C[1] = (y) => c("update:modelValue", y.target.value))
|
|
1184
1184
|
}), null, 16, dt), [
|
|
1185
|
-
[ee,
|
|
1185
|
+
[ee, n.value]
|
|
1186
1186
|
]),
|
|
1187
|
-
f.isClearable &&
|
|
1187
|
+
f.isClearable && n.value ? (o(), i("div", ct, [
|
|
1188
1188
|
d("button", {
|
|
1189
1189
|
class: "mc-controls-options__button",
|
|
1190
1190
|
onClick: l
|
|
@@ -1201,7 +1201,7 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1201
1201
|
role: "switch",
|
|
1202
1202
|
"aria-checked": _.value,
|
|
1203
1203
|
disabled: f.disabled,
|
|
1204
|
-
onClick:
|
|
1204
|
+
onClick: p,
|
|
1205
1205
|
size: "s",
|
|
1206
1206
|
ghost: ""
|
|
1207
1207
|
}, {
|
|
@@ -1227,7 +1227,7 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1227
1227
|
setup(r, { emit: e }) {
|
|
1228
1228
|
const a = r, t = v(() => ({
|
|
1229
1229
|
"is-invalid": a.isInvalid
|
|
1230
|
-
})),
|
|
1230
|
+
})), n = e, s = z(Array(a.length).fill("")), l = z([]), p = (y, V) => {
|
|
1231
1231
|
l.value[V] = y;
|
|
1232
1232
|
};
|
|
1233
1233
|
T(
|
|
@@ -1238,29 +1238,29 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1238
1238
|
},
|
|
1239
1239
|
{ immediate: !0 }
|
|
1240
1240
|
);
|
|
1241
|
-
const
|
|
1241
|
+
const u = (y) => {
|
|
1242
1242
|
ae(() => l.value[y]?.focus());
|
|
1243
1243
|
}, _ = (y, V) => {
|
|
1244
1244
|
const O = y.target.value.replace(/\D/g, "");
|
|
1245
|
-
O ? (s.value[V] = O[0],
|
|
1245
|
+
O ? (s.value[V] = O[0], n("update:modelValue", s.value.join("")), V + 1 < a.length && u(V + 1)) : (s.value[V] = "", n("update:modelValue", s.value.join("")));
|
|
1246
1246
|
}, c = (y, V) => {
|
|
1247
|
-
y.key === "ArrowLeft" && V > 0 ?
|
|
1247
|
+
y.key === "ArrowLeft" && V > 0 ? u(V - 1) : y.key === "ArrowRight" && V < a.length - 1 ? u(V + 1) : y.key === "Backspace" && f(y, V);
|
|
1248
1248
|
}, f = (y, V) => {
|
|
1249
|
-
s.value[V] === "" && V > 0 && (s.value[V - 1] = "",
|
|
1249
|
+
s.value[V] === "" && V > 0 && (s.value[V - 1] = "", n("update:modelValue", s.value.join("")), u(V - 1));
|
|
1250
1250
|
}, C = (y) => {
|
|
1251
1251
|
y.preventDefault();
|
|
1252
1252
|
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] ?? ""),
|
|
1253
|
+
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
1254
|
};
|
|
1255
|
-
return (y, V) => (o(),
|
|
1255
|
+
return (y, V) => (o(), i("div", {
|
|
1256
1256
|
class: g(["mc-pincode-input", t.value]),
|
|
1257
1257
|
onPaste: C
|
|
1258
1258
|
}, [
|
|
1259
|
-
(o(!0),
|
|
1259
|
+
(o(!0), i(P, null, D(s.value, (O, L) => (o(), i("input", I({
|
|
1260
1260
|
key: L,
|
|
1261
1261
|
id: `pincodeItem${L}`,
|
|
1262
1262
|
ref_for: !0,
|
|
1263
|
-
ref: (j) =>
|
|
1263
|
+
ref: (j) => p(j, L),
|
|
1264
1264
|
type: "text",
|
|
1265
1265
|
inputmode: "numeric",
|
|
1266
1266
|
maxlength: "1",
|
|
@@ -1290,7 +1290,7 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1290
1290
|
const e = r, a = v(() => ({
|
|
1291
1291
|
[`mc-linear-progressbar-buffer--${e.size}`]: e.size && e.size != "m"
|
|
1292
1292
|
}));
|
|
1293
|
-
return (t,
|
|
1293
|
+
return (t, n) => (o(), i("div", {
|
|
1294
1294
|
class: g(["mc-linear-progressbar-buffer", a.value])
|
|
1295
1295
|
}, [
|
|
1296
1296
|
d("div", I({
|
|
@@ -1309,7 +1309,7 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1309
1309
|
value: { default: 0 }
|
|
1310
1310
|
},
|
|
1311
1311
|
setup(r) {
|
|
1312
|
-
return (e, a) => (o(),
|
|
1312
|
+
return (e, a) => (o(), i("div", ht, [
|
|
1313
1313
|
d("div", I({
|
|
1314
1314
|
class: "mc-linear-progressbar-percentage__indicator",
|
|
1315
1315
|
role: "progressbar",
|
|
@@ -1339,8 +1339,8 @@ const U = /* @__PURE__ */ m(tt, [["render", ot]]), lt = {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
}, Vt = ["fill"];
|
|
1342
|
-
function It(r, e, a, t,
|
|
1343
|
-
return o(),
|
|
1342
|
+
function It(r, e, a, t, n, s) {
|
|
1343
|
+
return o(), i("svg", {
|
|
1344
1344
|
"aria-hidden": "true",
|
|
1345
1345
|
fill: a.color,
|
|
1346
1346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1366,8 +1366,8 @@ const Bt = /* @__PURE__ */ m(wt, [["render", It]]), Ct = {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}, Mt = ["fill"];
|
|
1369
|
-
function zt(r, e, a, t,
|
|
1370
|
-
return o(),
|
|
1369
|
+
function zt(r, e, a, t, n, s) {
|
|
1370
|
+
return o(), i("svg", {
|
|
1371
1371
|
"aria-hidden": "true",
|
|
1372
1372
|
fill: a.color,
|
|
1373
1373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1401,20 +1401,20 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1401
1401
|
setup(r, { emit: e }) {
|
|
1402
1402
|
const a = r, t = z(a.modelValue);
|
|
1403
1403
|
T(t, (_) => {
|
|
1404
|
-
_ !== a.modelValue &&
|
|
1404
|
+
_ !== a.modelValue && u("update:modelValue", _);
|
|
1405
1405
|
});
|
|
1406
|
-
const
|
|
1406
|
+
const n = v(() => ({
|
|
1407
1407
|
[`mc-quantity-selector--${a.size}`]: a.size && a.size != "m",
|
|
1408
1408
|
"is-invalid": a.isInvalid
|
|
1409
1409
|
})), s = () => {
|
|
1410
1410
|
t.value + a.step <= a.max ? t.value += a.step : t.value = a.max;
|
|
1411
1411
|
}, l = () => {
|
|
1412
1412
|
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",
|
|
1413
|
+
}, p = (_) => {
|
|
1414
|
+
t.value = _, t.value > a.max && (t.value = a.max), t.value <= a.min && (t.value = a.min), u("update:modelValue", t.value);
|
|
1415
|
+
}, u = e;
|
|
1416
|
+
return (_, c) => (o(), i("div", {
|
|
1417
|
+
class: g(["mc-quantity-selector", n.value])
|
|
1418
1418
|
}, [
|
|
1419
1419
|
K(d("input", I({
|
|
1420
1420
|
id: _.id,
|
|
@@ -1432,11 +1432,11 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1432
1432
|
"aria-valuemax": _.max,
|
|
1433
1433
|
"aria-valuenow": t.value
|
|
1434
1434
|
}, _.$attrs, {
|
|
1435
|
-
onChange: c[1] || (c[1] = (f) =>
|
|
1435
|
+
onChange: c[1] || (c[1] = (f) => p(Number(f.target.value)))
|
|
1436
1436
|
}), null, 16, jt), [
|
|
1437
1437
|
[te, t.value]
|
|
1438
1438
|
]),
|
|
1439
|
-
_.readonly ? h("", !0) : (o(),
|
|
1439
|
+
_.readonly ? h("", !0) : (o(), i("button", {
|
|
1440
1440
|
key: 0,
|
|
1441
1441
|
type: "button",
|
|
1442
1442
|
"aria-controls": _.id,
|
|
@@ -1450,7 +1450,7 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1450
1450
|
]),
|
|
1451
1451
|
d("span", St, b(_.incrementlabel), 1)
|
|
1452
1452
|
], 8, Ot)),
|
|
1453
|
-
_.readonly ? h("", !0) : (o(),
|
|
1453
|
+
_.readonly ? h("", !0) : (o(), i("button", {
|
|
1454
1454
|
key: 1,
|
|
1455
1455
|
type: "button",
|
|
1456
1456
|
"aria-controls": _.id,
|
|
@@ -1480,8 +1480,8 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1480
1480
|
setup(r, { emit: e }) {
|
|
1481
1481
|
const a = r, t = v(() => ({
|
|
1482
1482
|
"is-invalid": a.isInvalid
|
|
1483
|
-
})),
|
|
1484
|
-
return (s, l) => (o(),
|
|
1483
|
+
})), n = e;
|
|
1484
|
+
return (s, l) => (o(), i("div", At, [
|
|
1485
1485
|
d("input", I({
|
|
1486
1486
|
id: s.id,
|
|
1487
1487
|
type: "radio",
|
|
@@ -1491,9 +1491,9 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1491
1491
|
disabled: s.disabled,
|
|
1492
1492
|
"aria-invalid": s.isInvalid
|
|
1493
1493
|
}, s.$attrs, {
|
|
1494
|
-
onChange: l[0] || (l[0] = (
|
|
1494
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
|
|
1495
1495
|
}), null, 16, Nt),
|
|
1496
|
-
s.label ? (o(),
|
|
1496
|
+
s.label ? (o(), i("label", {
|
|
1497
1497
|
key: 0,
|
|
1498
1498
|
for: s.id,
|
|
1499
1499
|
class: "mc-radio__label"
|
|
@@ -1513,22 +1513,22 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1513
1513
|
setup(r, { emit: e }) {
|
|
1514
1514
|
const a = r, t = v(() => ({
|
|
1515
1515
|
"mc-field__container--inline": a.inline
|
|
1516
|
-
})),
|
|
1516
|
+
})), n = v(() => ({
|
|
1517
1517
|
"mc-field__container--inline__item": a.inline
|
|
1518
1518
|
})), s = e;
|
|
1519
|
-
return (l,
|
|
1519
|
+
return (l, p) => (o(), i("div", {
|
|
1520
1520
|
class: g(["mc-field__container", t.value])
|
|
1521
1521
|
}, [
|
|
1522
|
-
(o(!0),
|
|
1523
|
-
id:
|
|
1524
|
-
key:
|
|
1525
|
-
label:
|
|
1522
|
+
(o(!0), i(P, null, D(l.options, (u) => (o(), B(Ut, {
|
|
1523
|
+
id: u.id,
|
|
1524
|
+
key: u.id,
|
|
1525
|
+
label: u.label,
|
|
1526
1526
|
"is-invalid": l.isInvalid,
|
|
1527
1527
|
name: l.name,
|
|
1528
|
-
class: g(["mc-field__item",
|
|
1529
|
-
"model-value": l.modelValue ===
|
|
1530
|
-
disabled:
|
|
1531
|
-
"onUpdate:modelValue": (_) => _ ? s("update:modelValue",
|
|
1528
|
+
class: g(["mc-field__item", n.value]),
|
|
1529
|
+
"model-value": l.modelValue === u.value,
|
|
1530
|
+
disabled: u.disabled,
|
|
1531
|
+
"onUpdate:modelValue": (_) => _ ? s("update:modelValue", u.value) : null
|
|
1532
1532
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
1533
1533
|
], 2));
|
|
1534
1534
|
}
|
|
@@ -1543,7 +1543,7 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1543
1543
|
[`mc-status-dot--${e.status}`]: e.status && e.status != "info",
|
|
1544
1544
|
[`mc-status-dot--${e.size}`]: e.size && e.size != "m"
|
|
1545
1545
|
}));
|
|
1546
|
-
return (t,
|
|
1546
|
+
return (t, n) => (o(), i("span", {
|
|
1547
1547
|
class: g(["mc-status-dot", a.value])
|
|
1548
1548
|
}, null, 2));
|
|
1549
1549
|
}
|
|
@@ -1557,7 +1557,7 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1557
1557
|
const e = r, a = v(() => ({
|
|
1558
1558
|
[`mc-status-badge--${e.status}`]: e.status && e.status != "info"
|
|
1559
1559
|
}));
|
|
1560
|
-
return (t,
|
|
1560
|
+
return (t, n) => (o(), i("div", {
|
|
1561
1561
|
class: g(["mc-status-badge", a.value])
|
|
1562
1562
|
}, [
|
|
1563
1563
|
w(Et, { status: t.status }, null, 8, ["status"]),
|
|
@@ -1576,8 +1576,8 @@ const Lt = /* @__PURE__ */ m(Ct, [["render", zt]]), jt = ["id", "name", "disable
|
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
}, Xt = ["fill"];
|
|
1579
|
-
function Yt(r, e, a, t,
|
|
1580
|
-
return o(),
|
|
1579
|
+
function Yt(r, e, a, t, n, s) {
|
|
1580
|
+
return o(), i("svg", {
|
|
1581
1581
|
"aria-hidden": "true",
|
|
1582
1582
|
fill: a.color,
|
|
1583
1583
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1603,8 +1603,8 @@ const W = /* @__PURE__ */ m(Wt, [["render", Yt]]), Zt = {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
1605
|
}, xt = ["fill"];
|
|
1606
|
-
function es(r, e, a, t,
|
|
1607
|
-
return o(),
|
|
1606
|
+
function es(r, e, a, t, n, s) {
|
|
1607
|
+
return o(), i("svg", {
|
|
1608
1608
|
"aria-hidden": "true",
|
|
1609
1609
|
fill: a.color,
|
|
1610
1610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1630,8 +1630,8 @@ const X = /* @__PURE__ */ m(Zt, [["render", es]]), as = {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
1632
|
}, ts = ["fill"];
|
|
1633
|
-
function ss(r, e, a, t,
|
|
1634
|
-
return o(),
|
|
1633
|
+
function ss(r, e, a, t, n, s) {
|
|
1634
|
+
return o(), i("svg", {
|
|
1635
1635
|
"aria-hidden": "true",
|
|
1636
1636
|
fill: a.color,
|
|
1637
1637
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1657,8 +1657,8 @@ const Y = /* @__PURE__ */ m(as, [["render", ss]]), os = {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
1659
1659
|
}, ls = ["fill"];
|
|
1660
|
-
function ns(r, e, a, t,
|
|
1661
|
-
return o(),
|
|
1660
|
+
function ns(r, e, a, t, n, s) {
|
|
1661
|
+
return o(), i("svg", {
|
|
1662
1662
|
"aria-hidden": "true",
|
|
1663
1663
|
fill: a.color,
|
|
1664
1664
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1684,8 +1684,8 @@ const Z = /* @__PURE__ */ m(os, [["render", ns]]), is = {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
}, rs = ["fill"];
|
|
1687
|
-
function ds(r, e, a, t,
|
|
1688
|
-
return o(),
|
|
1687
|
+
function ds(r, e, a, t, n, s) {
|
|
1688
|
+
return o(), i("svg", {
|
|
1689
1689
|
"aria-hidden": "true",
|
|
1690
1690
|
fill: a.color,
|
|
1691
1691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1714,7 +1714,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1714
1714
|
setup(r, { emit: e }) {
|
|
1715
1715
|
const a = r, t = v(() => ({
|
|
1716
1716
|
[`mc-status-notification--${a.status}`]: a.status && a.status != "info"
|
|
1717
|
-
})),
|
|
1717
|
+
})), n = v(() => {
|
|
1718
1718
|
switch (a.status) {
|
|
1719
1719
|
case "success":
|
|
1720
1720
|
return x;
|
|
@@ -1727,35 +1727,40 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1727
1727
|
return X;
|
|
1728
1728
|
}
|
|
1729
1729
|
}), s = e;
|
|
1730
|
-
return (l,
|
|
1730
|
+
return (l, p) => (o(), i("section", {
|
|
1731
1731
|
class: g(["mc-status-notification", t.value]),
|
|
1732
1732
|
role: "status"
|
|
1733
1733
|
}, [
|
|
1734
|
-
(o(), B(F(
|
|
1734
|
+
(o(), B(F(n.value), {
|
|
1735
1735
|
class: "mc-status-notification__icon",
|
|
1736
1736
|
"aria-hidden": "true"
|
|
1737
1737
|
})),
|
|
1738
1738
|
d("div", cs, [
|
|
1739
1739
|
d("h2", us, b(l.title), 1),
|
|
1740
1740
|
d("p", ps, b(l.description), 1),
|
|
1741
|
-
l.$slots.footer ? (o(),
|
|
1741
|
+
l.$slots.footer ? (o(), i("div", ms, [
|
|
1742
1742
|
k(l.$slots, "footer", {}, void 0, !0)
|
|
1743
1743
|
])) : h("", !0)
|
|
1744
1744
|
]),
|
|
1745
|
-
l.closable ? (o(),
|
|
1745
|
+
l.closable ? (o(), B(S, {
|
|
1746
1746
|
key: 0,
|
|
1747
1747
|
class: "mc-status-notification-closable__close",
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1748
|
+
size: "s",
|
|
1749
|
+
ghost: "",
|
|
1750
|
+
"aria-label": "Close",
|
|
1751
|
+
onClick: p[0] || (p[0] = (u) => s("close"))
|
|
1752
|
+
}, {
|
|
1753
|
+
icon: M(() => [
|
|
1754
|
+
w(W, {
|
|
1755
|
+
class: "mc-button__icon",
|
|
1756
|
+
"aria-hidden": "true"
|
|
1757
|
+
})
|
|
1758
|
+
]),
|
|
1759
|
+
_: 1
|
|
1760
|
+
})) : h("", !0)
|
|
1756
1761
|
], 2));
|
|
1757
1762
|
}
|
|
1758
|
-
}), ho = /* @__PURE__ */ m(_s, [["__scopeId", "data-v-
|
|
1763
|
+
}), ho = /* @__PURE__ */ m(_s, [["__scopeId", "data-v-2c7c85ad"]]), vs = ["aria-label"], bs = ["aria-selected", "onClick"], fs = {
|
|
1759
1764
|
key: 0,
|
|
1760
1765
|
class: "mc-tabs__icon"
|
|
1761
1766
|
}, hs = { class: "mc-tabs__label" }, $s = /* @__PURE__ */ $({
|
|
@@ -1771,18 +1776,18 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1771
1776
|
setup(r, { emit: e }) {
|
|
1772
1777
|
const a = r, t = v(() => ({
|
|
1773
1778
|
"mc-tabs--centered": a.centered
|
|
1774
|
-
})),
|
|
1775
|
-
a.tabs[
|
|
1776
|
-
}, l = (
|
|
1777
|
-
return (
|
|
1779
|
+
})), n = z(a.modelValue), s = (u) => {
|
|
1780
|
+
a.tabs[u].disabled || u !== n.value && (n.value = u, p("update:modelValue", u));
|
|
1781
|
+
}, l = (u) => n.value === u, p = e;
|
|
1782
|
+
return (u, _) => (o(), i("nav", {
|
|
1778
1783
|
class: g(["mc-tabs", t.value])
|
|
1779
1784
|
}, [
|
|
1780
1785
|
d("ul", {
|
|
1781
1786
|
role: "tablist",
|
|
1782
1787
|
class: "mc-tabs__list",
|
|
1783
|
-
"aria-label":
|
|
1788
|
+
"aria-label": u.description
|
|
1784
1789
|
}, [
|
|
1785
|
-
(o(!0),
|
|
1790
|
+
(o(!0), i(P, null, D(u.tabs, (c, f) => (o(), i("li", {
|
|
1786
1791
|
key: `tab-${f}`,
|
|
1787
1792
|
role: "presentation",
|
|
1788
1793
|
class: "mc-tabs__item"
|
|
@@ -1799,7 +1804,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1799
1804
|
type: "button",
|
|
1800
1805
|
onClick: (C) => s(f)
|
|
1801
1806
|
}, [
|
|
1802
|
-
c.icon ? (o(),
|
|
1807
|
+
c.icon ? (o(), i("span", fs, [
|
|
1803
1808
|
(o(), B(F(c.icon)))
|
|
1804
1809
|
])) : h("", !0),
|
|
1805
1810
|
d("div", hs, [
|
|
@@ -1808,7 +1813,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1808
1813
|
], 10, bs)
|
|
1809
1814
|
]))), 128))
|
|
1810
1815
|
], 8, vs),
|
|
1811
|
-
|
|
1816
|
+
u.divider ? (o(), B(Ze, { key: 0 })) : h("", !0)
|
|
1812
1817
|
], 2));
|
|
1813
1818
|
}
|
|
1814
1819
|
}), $o = /* @__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__ */ $({
|
|
@@ -1829,8 +1834,8 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1829
1834
|
const a = r, t = v(() => ({
|
|
1830
1835
|
[`mc-tag-${a.type}`]: a.type && a.type != "informative",
|
|
1831
1836
|
[`mc-tag--${a.size}`]: a.size && a.size != "m"
|
|
1832
|
-
})),
|
|
1833
|
-
return (s, l) => s.type === "selectable" ? (o(),
|
|
1837
|
+
})), n = e;
|
|
1838
|
+
return (s, l) => s.type === "selectable" ? (o(), i("label", {
|
|
1834
1839
|
key: 0,
|
|
1835
1840
|
for: s.id,
|
|
1836
1841
|
class: g(["mc-tag", t.value])
|
|
@@ -1842,17 +1847,17 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1842
1847
|
name: s.name,
|
|
1843
1848
|
checked: s.modelValue,
|
|
1844
1849
|
disabled: s.disabled,
|
|
1845
|
-
onChange: l[0] || (l[0] = (
|
|
1850
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
|
|
1846
1851
|
}, s.$attrs), null, 16, ys),
|
|
1847
1852
|
d("span", ks, b(s.label), 1)
|
|
1848
|
-
], 10, gs)) : s.type === "interactive" ? (o(),
|
|
1853
|
+
], 10, gs)) : s.type === "interactive" ? (o(), i("button", I({
|
|
1849
1854
|
key: 1,
|
|
1850
1855
|
class: ["mc-tag", t.value],
|
|
1851
1856
|
type: "button",
|
|
1852
1857
|
disabled: s.disabled
|
|
1853
1858
|
}, s.$attrs), [
|
|
1854
1859
|
d("span", Vs, b(s.label), 1)
|
|
1855
|
-
], 16, ws)) : s.type === "contextualised" ? (o(),
|
|
1860
|
+
], 16, ws)) : s.type === "contextualised" ? (o(), i("button", I({
|
|
1856
1861
|
key: 2,
|
|
1857
1862
|
class: ["mc-tag", t.value],
|
|
1858
1863
|
type: "button",
|
|
@@ -1864,7 +1869,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1864
1869
|
size: s.size === "l" ? "m" : void 0
|
|
1865
1870
|
}, null, 8, ["label", "size"]),
|
|
1866
1871
|
d("span", Bs, b(s.label), 1)
|
|
1867
|
-
], 16, Is)) : s.type === "removable" ? (o(),
|
|
1872
|
+
], 16, Is)) : s.type === "removable" ? (o(), i("span", I({
|
|
1868
1873
|
key: 3,
|
|
1869
1874
|
class: ["mc-tag", t.value]
|
|
1870
1875
|
}, s.$attrs), [
|
|
@@ -1872,7 +1877,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1872
1877
|
d("button", {
|
|
1873
1878
|
class: "mc-tag-removable__remove",
|
|
1874
1879
|
type: "button",
|
|
1875
|
-
onClick: l[1] || (l[1] = (
|
|
1880
|
+
onClick: l[1] || (l[1] = (p) => s.id && n("remove-tag", s.id))
|
|
1876
1881
|
}, [
|
|
1877
1882
|
w(A, {
|
|
1878
1883
|
class: "mc-tag-removable__icon",
|
|
@@ -1880,7 +1885,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1880
1885
|
}),
|
|
1881
1886
|
l[2] || (l[2] = d("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
|
|
1882
1887
|
])
|
|
1883
|
-
], 16)) : (o(),
|
|
1888
|
+
], 16)) : (o(), i("span", I({
|
|
1884
1889
|
key: 4,
|
|
1885
1890
|
class: ["mc-tag", t.value]
|
|
1886
1891
|
}, s.$attrs), [
|
|
@@ -1905,8 +1910,8 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1905
1910
|
setup(r, { emit: e }) {
|
|
1906
1911
|
const a = r, t = v(() => ({
|
|
1907
1912
|
"is-invalid": a.isInvalid
|
|
1908
|
-
})),
|
|
1909
|
-
return (s, l) => (o(),
|
|
1913
|
+
})), n = e;
|
|
1914
|
+
return (s, l) => (o(), i("textarea", I({
|
|
1910
1915
|
id: s.id,
|
|
1911
1916
|
class: ["mc-textarea", t.value],
|
|
1912
1917
|
"aria-invalid": s.isInvalid,
|
|
@@ -1919,7 +1924,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1919
1924
|
rows: s.rows,
|
|
1920
1925
|
readonly: s.readonly
|
|
1921
1926
|
}, s.$attrs, {
|
|
1922
|
-
onInput: l[0] || (l[0] = (
|
|
1927
|
+
onInput: l[0] || (l[0] = (p) => n("update:modelValue", p.target.value))
|
|
1923
1928
|
}), null, 16, Ls));
|
|
1924
1929
|
}
|
|
1925
1930
|
}), yo = /* @__PURE__ */ m(js, [["__scopeId", "data-v-8184b69c"]]), Os = {
|
|
@@ -1948,13 +1953,13 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1948
1953
|
const a = r, t = v(() => ({
|
|
1949
1954
|
[`mc-text-input--${a.size}`]: a.size && a.size != "m",
|
|
1950
1955
|
"is-invalid": a.isInvalid
|
|
1951
|
-
})),
|
|
1956
|
+
})), n = () => {
|
|
1952
1957
|
s("update:modelValue", "");
|
|
1953
1958
|
}, s = e;
|
|
1954
|
-
return (l,
|
|
1959
|
+
return (l, p) => (o(), i("div", {
|
|
1955
1960
|
class: g(["mc-text-input", t.value])
|
|
1956
1961
|
}, [
|
|
1957
|
-
l.$slots.icon ? (o(),
|
|
1962
|
+
l.$slots.icon ? (o(), i("span", Os, [
|
|
1958
1963
|
k(l.$slots, "icon", {}, void 0, !0)
|
|
1959
1964
|
])) : h("", !0),
|
|
1960
1965
|
d("input", I({
|
|
@@ -1968,19 +1973,19 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
1968
1973
|
"aria-invalid": l.isInvalid,
|
|
1969
1974
|
readonly: l.readonly
|
|
1970
1975
|
}, l.$attrs, {
|
|
1971
|
-
onInput:
|
|
1976
|
+
onInput: p[0] || (p[0] = (u) => s("update:modelValue", u.target.value))
|
|
1972
1977
|
}), null, 16, Ts),
|
|
1973
|
-
l.isClearable && l.modelValue ? (o(),
|
|
1978
|
+
l.isClearable && l.modelValue ? (o(), i("div", Ss, [
|
|
1974
1979
|
d("button", {
|
|
1975
1980
|
type: "button",
|
|
1976
1981
|
class: "mc-controls-options__button",
|
|
1977
|
-
onClick:
|
|
1982
|
+
onClick: n
|
|
1978
1983
|
}, [
|
|
1979
1984
|
w(A, {
|
|
1980
1985
|
class: "mc-controls-options__icon",
|
|
1981
1986
|
"aria-hidden": "true"
|
|
1982
1987
|
}),
|
|
1983
|
-
|
|
1988
|
+
p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
|
|
1984
1989
|
])
|
|
1985
1990
|
])) : h("", !0)
|
|
1986
1991
|
], 2));
|
|
@@ -2005,7 +2010,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2005
2010
|
"is-open": a.open,
|
|
2006
2011
|
[`mc-toaster--${a.status}`]: a.status && a.status != "info",
|
|
2007
2012
|
[`mc-toaster--${a.position}`]: a.position && a.position != "top"
|
|
2008
|
-
})),
|
|
2013
|
+
})), n = v(() => {
|
|
2009
2014
|
switch (a.status) {
|
|
2010
2015
|
case "success":
|
|
2011
2016
|
return x;
|
|
@@ -2026,36 +2031,36 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2026
2031
|
);
|
|
2027
2032
|
const s = () => {
|
|
2028
2033
|
l("update:open", !1);
|
|
2029
|
-
}, l = e,
|
|
2030
|
-
let
|
|
2034
|
+
}, l = e, p = z(0);
|
|
2035
|
+
let u = null, _ = null;
|
|
2031
2036
|
return se(() => {
|
|
2032
2037
|
if (a.timeout)
|
|
2033
2038
|
if (a.progress) {
|
|
2034
2039
|
const C = 100 / (a.timeout / 100);
|
|
2035
|
-
|
|
2036
|
-
|
|
2040
|
+
u = setInterval(() => {
|
|
2041
|
+
p.value += C, p.value >= 100 && (p.value = 100, s(), clearInterval(u));
|
|
2037
2042
|
}, 100);
|
|
2038
2043
|
} else
|
|
2039
2044
|
_ = setTimeout(() => {
|
|
2040
2045
|
s();
|
|
2041
2046
|
}, a.timeout);
|
|
2042
2047
|
}), oe(() => {
|
|
2043
|
-
a.timeout && (
|
|
2044
|
-
}), (c, f) => (o(),
|
|
2048
|
+
a.timeout && (u && clearInterval(u), _ && clearTimeout(_));
|
|
2049
|
+
}), (c, f) => (o(), i("section", {
|
|
2045
2050
|
class: g(["mc-toaster", t.value]),
|
|
2046
2051
|
role: "status"
|
|
2047
2052
|
}, [
|
|
2048
|
-
(o(), B(F(
|
|
2053
|
+
(o(), B(F(n.value), {
|
|
2049
2054
|
class: "mc-toaster__icon",
|
|
2050
2055
|
"aria-hidden": "true"
|
|
2051
2056
|
})),
|
|
2052
2057
|
d("div", Ds, [
|
|
2053
2058
|
d("p", qs, b(c.description), 1),
|
|
2054
|
-
c.$slots.action ? (o(),
|
|
2059
|
+
c.$slots.action ? (o(), i("div", Fs, [
|
|
2055
2060
|
k(c.$slots, "action", {}, void 0, !0)
|
|
2056
2061
|
])) : h("", !0)
|
|
2057
2062
|
]),
|
|
2058
|
-
c.closable ? (o(), B(
|
|
2063
|
+
c.closable ? (o(), B(S, {
|
|
2059
2064
|
key: 0,
|
|
2060
2065
|
class: "mc-toaster__close",
|
|
2061
2066
|
appearance: "inverse",
|
|
@@ -2075,7 +2080,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2075
2080
|
c.progress ? (o(), B(ft, {
|
|
2076
2081
|
key: 1,
|
|
2077
2082
|
class: "mc-toaster__indicator",
|
|
2078
|
-
value:
|
|
2083
|
+
value: p.value
|
|
2079
2084
|
}, null, 8, ["value"])) : h("", !0)
|
|
2080
2085
|
], 2));
|
|
2081
2086
|
}
|
|
@@ -2093,8 +2098,8 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2093
2098
|
setup(r, { emit: e }) {
|
|
2094
2099
|
const a = r, t = v(() => ({
|
|
2095
2100
|
[`mc-toggle--${a.size}`]: a.size && a.size != "s"
|
|
2096
|
-
})),
|
|
2097
|
-
return (s, l) => (o(),
|
|
2101
|
+
})), n = e;
|
|
2102
|
+
return (s, l) => (o(), i("div", {
|
|
2098
2103
|
class: g(["mc-toggle", t.value])
|
|
2099
2104
|
}, [
|
|
2100
2105
|
d("label", {
|
|
@@ -2109,9 +2114,9 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2109
2114
|
checked: s.modelValue,
|
|
2110
2115
|
disabled: s.disabled
|
|
2111
2116
|
}, s.$attrs, {
|
|
2112
|
-
onChange: l[0] || (l[0] = (
|
|
2117
|
+
onChange: l[0] || (l[0] = (p) => n("update:modelValue", p.target.checked))
|
|
2113
2118
|
}), null, 16, Rs),
|
|
2114
|
-
s.label ? (o(),
|
|
2119
|
+
s.label ? (o(), i("span", {
|
|
2115
2120
|
key: 0,
|
|
2116
2121
|
for: s.id,
|
|
2117
2122
|
class: "mc-toggle__label"
|
|
@@ -2132,7 +2137,7 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2132
2137
|
[`mc-tooltip--${e.position}`]: e.position,
|
|
2133
2138
|
"mc-tooltip--no-pointer": !e.pointer
|
|
2134
2139
|
}));
|
|
2135
|
-
return (t,
|
|
2140
|
+
return (t, n) => (o(), i("div", Ks, [
|
|
2136
2141
|
d("div", {
|
|
2137
2142
|
class: g(["mc-tooltip", a.value]),
|
|
2138
2143
|
"aria-describedby": t.id
|
|
@@ -2159,32 +2164,32 @@ const x = /* @__PURE__ */ m(is, [["render", ds]]), cs = { class: "mc-status-noti
|
|
|
2159
2164
|
const a = r, t = z([]);
|
|
2160
2165
|
T(
|
|
2161
2166
|
() => a.modelValue,
|
|
2162
|
-
(
|
|
2163
|
-
t.value =
|
|
2167
|
+
(u) => {
|
|
2168
|
+
t.value = u || [];
|
|
2164
2169
|
},
|
|
2165
2170
|
{ immediate: !0 }
|
|
2166
2171
|
);
|
|
2167
|
-
const
|
|
2172
|
+
const n = (u, _) => {
|
|
2168
2173
|
let c = [...t.value];
|
|
2169
|
-
|
|
2174
|
+
u && !c.includes(_) ? c.push(_) : c = c.filter((f) => f !== _), p("update:modelValue", c), t.value = c;
|
|
2170
2175
|
}, s = v(() => ({
|
|
2171
2176
|
"mc-field__container--inline": a.inline
|
|
2172
2177
|
})), l = v(() => ({
|
|
2173
2178
|
"mc-field__container--inline__item": a.inline
|
|
2174
|
-
})),
|
|
2175
|
-
return (
|
|
2179
|
+
})), p = e;
|
|
2180
|
+
return (u, _) => (o(), i("div", {
|
|
2176
2181
|
class: g(s.value)
|
|
2177
2182
|
}, [
|
|
2178
|
-
(o(!0),
|
|
2183
|
+
(o(!0), i(P, null, D(u.options, (c) => (o(), B(Hs, {
|
|
2179
2184
|
id: c.id,
|
|
2180
2185
|
key: c.id,
|
|
2181
2186
|
label: c.label,
|
|
2182
2187
|
"is-invalid": c.isInvalid,
|
|
2183
|
-
name:
|
|
2188
|
+
name: u.name,
|
|
2184
2189
|
class: g(l.value),
|
|
2185
|
-
"model-value":
|
|
2190
|
+
"model-value": u.modelValue ? u.modelValue.includes(c.value) : void 0,
|
|
2186
2191
|
disabled: c.disabled,
|
|
2187
|
-
"onUpdate:modelValue": (f) =>
|
|
2192
|
+
"onUpdate:modelValue": (f) => n(f, c.value)
|
|
2188
2193
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
2189
2194
|
], 2));
|
|
2190
2195
|
}
|
|
@@ -2204,7 +2209,7 @@ export {
|
|
|
2204
2209
|
lo as MField,
|
|
2205
2210
|
no as MFieldGroup,
|
|
2206
2211
|
io as MFlag,
|
|
2207
|
-
|
|
2212
|
+
S as MIconButton,
|
|
2208
2213
|
ft as MLinearProgressbarBuffer,
|
|
2209
2214
|
_o as MLinearProgressbarPercentage,
|
|
2210
2215
|
ce as MLink,
|