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