@mozaic-ds/vue 1.0.0-beta.4 → 1.0.0-beta.5
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/README.md +14 -6
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +349 -67
- package/dist/mozaic-vue.js +670 -327
- 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 +3 -2
- package/src/components/GettingStarted.mdx +15 -4
- package/src/components/badge/MBadge.stories.ts +1 -1
- package/src/components/breadcrumb/MBreadcrumb.spec.ts +105 -0
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +57 -0
- package/src/components/breadcrumb/MBreadcrumb.vue +70 -0
- package/src/components/button/MButton.stories.ts +1 -1
- package/src/components/checkbox/MCheckbox.stories.ts +1 -1
- package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +1 -1
- package/src/components/checkboxgroup/MCheckboxGroup.vue +2 -2
- package/src/components/field/MField.stories.ts +1 -1
- package/src/components/fieldgroup/MFieldGroup.stories.ts +175 -26
- package/src/components/iconbutton/MIconButton.stories.ts +1 -1
- package/src/components/loader/MLoader.stories.ts +1 -1
- package/src/components/passwordinput/MPasswordInput.spec.ts +104 -0
- package/src/components/passwordinput/MPasswordInput.stories.ts +75 -0
- package/src/components/passwordinput/MPasswordInput.vue +149 -0
- package/src/components/quantityselector/MQuantitySelector.stories.ts +1 -1
- package/src/components/radio/MRadio.stories.ts +1 -1
- package/src/components/radiogroup/MRadioGroup.stories.ts +1 -1
- package/src/components/select/MSelect.stories.ts +1 -1
- package/src/components/statusbadge/MStatusBadge.stories.ts +5 -5
- package/src/components/statusbadge/MStatusBadge.vue +6 -6
- package/src/components/statusdot/MStatusDot.spec.ts +51 -0
- package/src/components/statusdot/MStatusDot.stories.ts +48 -0
- package/src/components/{statusbadge → statusdot}/MStatusDot.vue +8 -4
- package/src/components/statusnotification/MStatusNotification.spec.ts +99 -0
- package/src/components/statusnotification/MStatusNotification.stories.ts +96 -0
- package/src/components/statusnotification/MStatusNotification.vue +106 -0
- package/src/components/textarea/MTextArea.stories.ts +1 -1
- package/src/components/textinput/MTextInput.stories.ts +1 -1
- package/src/components/toggle/MToggle.stories.ts +2 -2
- package/src/components/togglegroup/MToggleGroup.spec.ts +78 -0
- package/src/components/togglegroup/MToggleGroup.stories.ts +61 -0
- package/src/components/togglegroup/MToggleGroup.vue +97 -0
- package/src/main.ts +8 -0
package/dist/mozaic-vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as y, computed as v, createElementBlock as n, openBlock as l, normalizeClass as $, toDisplayString as f, createBlock as w, resolveDynamicComponent as j, withCtx as S, createCommentVNode as h, createElementVNode as d, renderSlot as g, Fragment as B, renderList as C, createVNode as V, createTextVNode as M, normalizeStyle as Z, mergeProps as k, ref as I, watch as O, withDirectives as T, vModelDynamic as P, vModelText as G } from "vue";
|
|
2
|
+
const U = /* @__PURE__ */ y({
|
|
3
3
|
__name: "MBadge",
|
|
4
4
|
props: {
|
|
5
5
|
label: {},
|
|
@@ -7,24 +7,111 @@ const S = /* @__PURE__ */ f({
|
|
|
7
7
|
size: { default: "s" }
|
|
8
8
|
},
|
|
9
9
|
setup(o) {
|
|
10
|
-
const a = o, t =
|
|
10
|
+
const a = o, t = v(() => ({
|
|
11
11
|
[`mc-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
12
12
|
[`mc-badge--${a.size}`]: a.size && a.size != "s"
|
|
13
13
|
}));
|
|
14
14
|
return (e, i) => (l(), n("span", {
|
|
15
|
-
class:
|
|
16
|
-
},
|
|
15
|
+
class: $(["mc-badge", t.value])
|
|
16
|
+
}, f(e.label), 3));
|
|
17
17
|
}
|
|
18
18
|
}), _ = (o, a) => {
|
|
19
19
|
const t = o.__vccOpts || o;
|
|
20
20
|
for (const [e, i] of a)
|
|
21
21
|
t[e] = i;
|
|
22
22
|
return t;
|
|
23
|
-
},
|
|
23
|
+
}, Xa = /* @__PURE__ */ _(U, [["__scopeId", "data-v-b427cc61"]]), D = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "mc-link__icon",
|
|
26
|
+
"aria-hidden": "true"
|
|
27
|
+
}, F = { class: "mc-link__label" }, N = {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "mc-link__icon",
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
}, R = /* @__PURE__ */ y({
|
|
32
|
+
__name: "MLink",
|
|
33
|
+
props: {
|
|
34
|
+
iconPosition: { default: "left" },
|
|
35
|
+
appearance: { default: "standard" },
|
|
36
|
+
size: { default: "s" },
|
|
37
|
+
href: { default: void 0 },
|
|
38
|
+
target: { default: void 0 },
|
|
39
|
+
inline: { type: Boolean },
|
|
40
|
+
router: { type: Boolean }
|
|
41
|
+
},
|
|
42
|
+
setup(o) {
|
|
43
|
+
const a = o, t = v(() => ({
|
|
44
|
+
[`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
45
|
+
[`mc-link--${a.size}`]: a.size && a.size != "s",
|
|
46
|
+
"mc-link--inline": a.inline,
|
|
47
|
+
"mc-link--stand-alone": !a.inline
|
|
48
|
+
}));
|
|
49
|
+
return (e, i) => (l(), w(j(e.router ? "router-link" : "a"), {
|
|
50
|
+
class: $(["mc-link", t.value]),
|
|
51
|
+
href: e.href,
|
|
52
|
+
target: e.target,
|
|
53
|
+
to: e.router ? e.href : void 0
|
|
54
|
+
}, {
|
|
55
|
+
default: S(() => [
|
|
56
|
+
e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", D, [
|
|
57
|
+
g(e.$slots, "icon", {}, void 0, !0)
|
|
58
|
+
])) : h("", !0),
|
|
59
|
+
d("span", F, [
|
|
60
|
+
g(e.$slots, "default", {}, void 0, !0)
|
|
61
|
+
]),
|
|
62
|
+
e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", N, [
|
|
63
|
+
g(e.$slots, "icon", {}, void 0, !0)
|
|
64
|
+
])) : h("", !0)
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 8, ["class", "href", "target", "to"]));
|
|
68
|
+
}
|
|
69
|
+
}), A = /* @__PURE__ */ _(R, [["__scopeId", "data-v-ad3d954f"]]), H = { class: "mc-breadcrumb__container" }, E = /* @__PURE__ */ y({
|
|
70
|
+
__name: "MBreadcrumb",
|
|
71
|
+
props: {
|
|
72
|
+
appearance: {},
|
|
73
|
+
links: {}
|
|
74
|
+
},
|
|
75
|
+
setup(o) {
|
|
76
|
+
const a = o, t = v(() => ({
|
|
77
|
+
[`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
|
|
78
|
+
})), e = (i) => {
|
|
79
|
+
var s;
|
|
80
|
+
return i === (((s = a.links) == null ? void 0 : s.length) ?? 0) - 1;
|
|
81
|
+
};
|
|
82
|
+
return (i, s) => (l(), n("nav", {
|
|
83
|
+
class: $(["mc-breadcrumb", t.value]),
|
|
84
|
+
"aria-label": "Breadcrumb"
|
|
85
|
+
}, [
|
|
86
|
+
d("ul", H, [
|
|
87
|
+
(l(!0), n(B, null, C(i.links, (u, r) => (l(), n("li", {
|
|
88
|
+
class: "mc-breadcrumb__item",
|
|
89
|
+
key: `breadcrumb-${r}`
|
|
90
|
+
}, [
|
|
91
|
+
V(A, {
|
|
92
|
+
href: u.href,
|
|
93
|
+
router: u.router,
|
|
94
|
+
appearance: i.appearance,
|
|
95
|
+
inline: "",
|
|
96
|
+
class: $({
|
|
97
|
+
"mc-breadcrumb__current": e(r)
|
|
98
|
+
}),
|
|
99
|
+
"aria-current": e(r) ? "page" : void 0
|
|
100
|
+
}, {
|
|
101
|
+
default: S(() => [
|
|
102
|
+
M(f(u.label), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["href", "router", "appearance", "class", "aria-current"])
|
|
106
|
+
]))), 128))
|
|
107
|
+
])
|
|
108
|
+
], 2));
|
|
109
|
+
}
|
|
110
|
+
}), Ya = /* @__PURE__ */ _(E, [["__scopeId", "data-v-09df4905"]]), Q = { class: "mc-loader__spinner" }, W = ["viewBox"], J = ["r"], K = {
|
|
24
111
|
key: 0,
|
|
25
112
|
class: "mc-loader__text",
|
|
26
113
|
role: "status"
|
|
27
|
-
},
|
|
114
|
+
}, X = /* @__PURE__ */ y({
|
|
28
115
|
__name: "MLoader",
|
|
29
116
|
props: {
|
|
30
117
|
appearance: { default: "standard" },
|
|
@@ -32,10 +119,10 @@ const S = /* @__PURE__ */ f({
|
|
|
32
119
|
text: {}
|
|
33
120
|
},
|
|
34
121
|
setup(o) {
|
|
35
|
-
const a = o, t =
|
|
122
|
+
const a = o, t = v(() => ({
|
|
36
123
|
[`mc-loader--${a.size}`]: a.size && a.size !== "m",
|
|
37
124
|
[`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard"
|
|
38
|
-
})), e =
|
|
125
|
+
})), e = v(() => {
|
|
39
126
|
let s;
|
|
40
127
|
switch (a.size) {
|
|
41
128
|
case "s":
|
|
@@ -48,7 +135,7 @@ const S = /* @__PURE__ */ f({
|
|
|
48
135
|
s = "0 0 32 32";
|
|
49
136
|
}
|
|
50
137
|
return s;
|
|
51
|
-
}), i =
|
|
138
|
+
}), i = v(() => {
|
|
52
139
|
let s;
|
|
53
140
|
switch (a.size) {
|
|
54
141
|
case "s":
|
|
@@ -63,40 +150,40 @@ const S = /* @__PURE__ */ f({
|
|
|
63
150
|
return s;
|
|
64
151
|
});
|
|
65
152
|
return (s, u) => (l(), n("div", {
|
|
66
|
-
class:
|
|
153
|
+
class: $(["mc-loader", t.value])
|
|
67
154
|
}, [
|
|
68
|
-
|
|
155
|
+
d("span", Q, [
|
|
69
156
|
(l(), n("svg", {
|
|
70
157
|
class: "mc-loader__icon",
|
|
71
158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
72
159
|
viewBox: e.value,
|
|
73
160
|
"aria-hidden": "true"
|
|
74
161
|
}, [
|
|
75
|
-
|
|
162
|
+
d("circle", {
|
|
76
163
|
class: "mc-loader__path",
|
|
77
164
|
cx: "50%",
|
|
78
165
|
cy: "50%",
|
|
79
166
|
r: i.value
|
|
80
|
-
}, null, 8,
|
|
81
|
-
], 8,
|
|
167
|
+
}, null, 8, J)
|
|
168
|
+
], 8, W))
|
|
82
169
|
]),
|
|
83
|
-
s.text ? (l(), n("p",
|
|
170
|
+
s.text ? (l(), n("p", K, f(s.text), 1)) : h("", !0)
|
|
84
171
|
], 2));
|
|
85
172
|
}
|
|
86
|
-
}),
|
|
173
|
+
}), Y = /* @__PURE__ */ _(X, [["__scopeId", "data-v-56c66912"]]), x = ["disabled", "type"], ee = {
|
|
87
174
|
key: 0,
|
|
88
175
|
class: "mc-button__icon"
|
|
89
|
-
},
|
|
176
|
+
}, ae = {
|
|
90
177
|
key: 1,
|
|
91
178
|
class: "mc-button__icon",
|
|
92
179
|
style: { position: "absolute" }
|
|
93
|
-
},
|
|
180
|
+
}, se = {
|
|
94
181
|
key: 2,
|
|
95
182
|
class: "mc-button__icon"
|
|
96
|
-
},
|
|
183
|
+
}, te = {
|
|
97
184
|
key: 4,
|
|
98
185
|
class: "mc-button__icon"
|
|
99
|
-
},
|
|
186
|
+
}, le = /* @__PURE__ */ y({
|
|
100
187
|
__name: "MButton",
|
|
101
188
|
props: {
|
|
102
189
|
appearance: { default: "standard" },
|
|
@@ -109,7 +196,7 @@ const S = /* @__PURE__ */ f({
|
|
|
109
196
|
isLoading: { type: Boolean }
|
|
110
197
|
},
|
|
111
198
|
setup(o) {
|
|
112
|
-
const a = o, t =
|
|
199
|
+
const a = o, t = v(() => ({
|
|
113
200
|
[`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
114
201
|
[`mc-button--${a.size}`]: a.size && a.size != "m",
|
|
115
202
|
"mc-button--ghost": a.ghost,
|
|
@@ -117,36 +204,36 @@ const S = /* @__PURE__ */ f({
|
|
|
117
204
|
"mc-button--icon-only": a.iconPosition == "only"
|
|
118
205
|
}));
|
|
119
206
|
return (e, i) => (l(), n("button", {
|
|
120
|
-
class:
|
|
207
|
+
class: $(["mc-button", t.value]),
|
|
121
208
|
disabled: e.disabled,
|
|
122
209
|
type: e.type
|
|
123
210
|
}, [
|
|
124
|
-
e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span",
|
|
125
|
-
|
|
126
|
-
])) :
|
|
127
|
-
e.isLoading ? (l(), n("span",
|
|
128
|
-
V(
|
|
211
|
+
e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", ee, [
|
|
212
|
+
g(e.$slots, "icon", {}, void 0, !0)
|
|
213
|
+
])) : h("", !0),
|
|
214
|
+
e.isLoading ? (l(), n("span", ae, [
|
|
215
|
+
V(Y, {
|
|
129
216
|
style: { color: "currentColor" },
|
|
130
217
|
size: "s"
|
|
131
218
|
})
|
|
132
|
-
])) :
|
|
133
|
-
e.$slots.icon && e.iconPosition == "only" ? (l(), n("span",
|
|
134
|
-
|
|
219
|
+
])) : h("", !0),
|
|
220
|
+
e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", se, [
|
|
221
|
+
g(e.$slots, "icon", {}, void 0, !0)
|
|
135
222
|
])) : (l(), n("span", {
|
|
136
223
|
key: 3,
|
|
137
224
|
class: "mc-button__label",
|
|
138
|
-
style:
|
|
225
|
+
style: Z({ visibility: e.isLoading ? "hidden" : "visible" })
|
|
139
226
|
}, [
|
|
140
|
-
|
|
141
|
-
i[0] || (i[0] =
|
|
227
|
+
g(e.$slots, "default", {}, () => [
|
|
228
|
+
i[0] || (i[0] = M("Button Label"))
|
|
142
229
|
], !0)
|
|
143
230
|
], 4)),
|
|
144
|
-
e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span",
|
|
145
|
-
|
|
146
|
-
])) :
|
|
147
|
-
], 10,
|
|
231
|
+
e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", te, [
|
|
232
|
+
g(e.$slots, "icon", {}, void 0, !0)
|
|
233
|
+
])) : h("", !0)
|
|
234
|
+
], 10, x));
|
|
148
235
|
}
|
|
149
|
-
}),
|
|
236
|
+
}), ne = /* @__PURE__ */ _(le, [["__scopeId", "data-v-f4f43ab6"]]), oe = { class: "mc-checkbox" }, ie = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], de = ["for"], re = /* @__PURE__ */ y({
|
|
150
237
|
__name: "MCheckbox",
|
|
151
238
|
props: {
|
|
152
239
|
id: {},
|
|
@@ -159,11 +246,11 @@ const S = /* @__PURE__ */ f({
|
|
|
159
246
|
},
|
|
160
247
|
emits: ["update:modelValue"],
|
|
161
248
|
setup(o, { emit: a }) {
|
|
162
|
-
const t = o, e =
|
|
249
|
+
const t = o, e = v(() => ({
|
|
163
250
|
"is-invalid": t.isInvalid
|
|
164
251
|
})), i = a;
|
|
165
|
-
return (s, u) => (l(), n("div",
|
|
166
|
-
|
|
252
|
+
return (s, u) => (l(), n("div", oe, [
|
|
253
|
+
d("input", k({
|
|
167
254
|
id: s.id,
|
|
168
255
|
type: "checkbox",
|
|
169
256
|
class: ["mc-checkbox__input", e.value],
|
|
@@ -173,16 +260,16 @@ const S = /* @__PURE__ */ f({
|
|
|
173
260
|
disabled: s.disabled,
|
|
174
261
|
"aria-invalid": s.isInvalid
|
|
175
262
|
}, s.$attrs, {
|
|
176
|
-
onChange: u[0] || (u[0] = (
|
|
177
|
-
}), null, 16,
|
|
263
|
+
onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
|
|
264
|
+
}), null, 16, ie),
|
|
178
265
|
s.label ? (l(), n("label", {
|
|
179
266
|
key: 0,
|
|
180
267
|
for: s.id,
|
|
181
268
|
class: "mc-checkbox__label"
|
|
182
|
-
},
|
|
269
|
+
}, f(s.label), 9, de)) : h("", !0)
|
|
183
270
|
]));
|
|
184
271
|
}
|
|
185
|
-
}),
|
|
272
|
+
}), ce = /* @__PURE__ */ _(re, [["__scopeId", "data-v-37fd0a35"]]), ue = /* @__PURE__ */ y({
|
|
186
273
|
__name: "MCheckboxGroup",
|
|
187
274
|
props: {
|
|
188
275
|
name: {},
|
|
@@ -192,42 +279,42 @@ const S = /* @__PURE__ */ f({
|
|
|
192
279
|
},
|
|
193
280
|
emits: ["update:modelValue"],
|
|
194
281
|
setup(o, { emit: a }) {
|
|
195
|
-
const t = o, e =
|
|
196
|
-
|
|
282
|
+
const t = o, e = I([]);
|
|
283
|
+
O(
|
|
197
284
|
() => t.modelValue,
|
|
198
285
|
(p) => {
|
|
199
286
|
e.value = p || [];
|
|
200
287
|
},
|
|
201
288
|
{ immediate: !0 }
|
|
202
289
|
);
|
|
203
|
-
const i = (p,
|
|
204
|
-
let
|
|
205
|
-
p && !
|
|
206
|
-
}, s =
|
|
290
|
+
const i = (p, c) => {
|
|
291
|
+
let m = [...e.value];
|
|
292
|
+
p && !m.includes(c) ? m.push(c) : m = m.filter((b) => b !== c), r("update:modelValue", m), e.value = m;
|
|
293
|
+
}, s = v(() => ({
|
|
207
294
|
"mc-field__container--inline": t.inline
|
|
208
|
-
})), u =
|
|
295
|
+
})), u = v(() => ({
|
|
209
296
|
"mc-field__container--inline__item": t.inline
|
|
210
|
-
})),
|
|
211
|
-
return (p,
|
|
212
|
-
class:
|
|
297
|
+
})), r = a;
|
|
298
|
+
return (p, c) => (l(), n("div", {
|
|
299
|
+
class: $(["mc-field__container", s.value])
|
|
213
300
|
}, [
|
|
214
|
-
(l(!0), n(
|
|
215
|
-
id:
|
|
216
|
-
key:
|
|
217
|
-
label:
|
|
218
|
-
"is-invalid":
|
|
301
|
+
(l(!0), n(B, null, C(p.options, (m) => (l(), w(ce, {
|
|
302
|
+
id: m.id,
|
|
303
|
+
key: m.id,
|
|
304
|
+
label: m.label,
|
|
305
|
+
"is-invalid": m.isInvalid,
|
|
219
306
|
name: p.name,
|
|
220
|
-
class:
|
|
221
|
-
"model-value": p.modelValue ? p.modelValue.includes(
|
|
222
|
-
disabled:
|
|
223
|
-
"onUpdate:modelValue": (
|
|
307
|
+
class: $(["mc-field__item", u.value]),
|
|
308
|
+
"model-value": p.modelValue ? p.modelValue.includes(m.value) : void 0,
|
|
309
|
+
disabled: m.disabled,
|
|
310
|
+
"onUpdate:modelValue": (b) => i(b, m.value)
|
|
224
311
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
225
312
|
], 2));
|
|
226
313
|
}
|
|
227
|
-
}),
|
|
314
|
+
}), xa = /* @__PURE__ */ _(ue, [["__scopeId", "data-v-8ee4699f"]]), pe = { class: "mc-field" }, me = ["for"], _e = {
|
|
228
315
|
key: 0,
|
|
229
316
|
class: "mc-field__requirement"
|
|
230
|
-
},
|
|
317
|
+
}, ve = ["id"], be = { class: "mc-field__content" }, fe = ["id"], he = /* @__PURE__ */ y({
|
|
231
318
|
__name: "MField",
|
|
232
319
|
props: {
|
|
233
320
|
id: {},
|
|
@@ -241,40 +328,40 @@ const S = /* @__PURE__ */ f({
|
|
|
241
328
|
message: {}
|
|
242
329
|
},
|
|
243
330
|
setup(o) {
|
|
244
|
-
const a = o, t =
|
|
331
|
+
const a = o, t = v(() => ({
|
|
245
332
|
"is-valid": a.isValid,
|
|
246
333
|
"is-invalid": a.isInvalid
|
|
247
334
|
}));
|
|
248
|
-
return (e, i) => (l(), n("div",
|
|
249
|
-
|
|
335
|
+
return (e, i) => (l(), n("div", pe, [
|
|
336
|
+
d("label", {
|
|
250
337
|
class: "mc-field__label",
|
|
251
338
|
for: e.id
|
|
252
339
|
}, [
|
|
253
|
-
|
|
254
|
-
e.requirementText ? (l(), n("span",
|
|
255
|
-
], 8,
|
|
340
|
+
M(f(e.label) + " ", 1),
|
|
341
|
+
e.requirementText ? (l(), n("span", _e, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
|
|
342
|
+
], 8, me),
|
|
256
343
|
e.helpId && e.helpText ? (l(), n("span", {
|
|
257
344
|
key: 0,
|
|
258
345
|
id: e.helpId,
|
|
259
346
|
class: "mc-field__help"
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
|
|
347
|
+
}, f(e.helpText), 9, ve)) : h("", !0),
|
|
348
|
+
d("div", be, [
|
|
349
|
+
g(e.$slots, "default", {}, void 0, !0)
|
|
263
350
|
]),
|
|
264
351
|
(e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
|
|
265
352
|
key: 1,
|
|
266
|
-
class:
|
|
353
|
+
class: $(["mc-field__validation-message", t.value]),
|
|
267
354
|
id: e.messageId
|
|
268
|
-
},
|
|
355
|
+
}, f(e.message), 11, fe)) : h("", !0)
|
|
269
356
|
]));
|
|
270
357
|
}
|
|
271
|
-
}),
|
|
358
|
+
}), es = /* @__PURE__ */ _(he, [["__scopeId", "data-v-ead078c4"]]), $e = { class: "mc-field--group" }, ye = ["for"], ge = {
|
|
272
359
|
key: 0,
|
|
273
360
|
class: "mc-field__requirement"
|
|
274
|
-
},
|
|
361
|
+
}, Ve = {
|
|
275
362
|
key: 0,
|
|
276
363
|
class: "mc-field__help"
|
|
277
|
-
},
|
|
364
|
+
}, ke = { class: "mc-field__content" }, Ie = /* @__PURE__ */ y({
|
|
278
365
|
__name: "MFieldGroup",
|
|
279
366
|
props: {
|
|
280
367
|
id: {},
|
|
@@ -286,29 +373,29 @@ const S = /* @__PURE__ */ f({
|
|
|
286
373
|
message: {}
|
|
287
374
|
},
|
|
288
375
|
setup(o) {
|
|
289
|
-
const a = o, t =
|
|
376
|
+
const a = o, t = v(() => ({
|
|
290
377
|
"is-valid": a.isValid,
|
|
291
378
|
"is-invalid": a.isInvalid
|
|
292
379
|
}));
|
|
293
|
-
return (e, i) => (l(), n("fieldset",
|
|
294
|
-
|
|
380
|
+
return (e, i) => (l(), n("fieldset", $e, [
|
|
381
|
+
d("legend", {
|
|
295
382
|
class: "mc-field__legend",
|
|
296
383
|
for: e.id
|
|
297
384
|
}, [
|
|
298
|
-
|
|
299
|
-
e.requirementText ? (l(), n("span",
|
|
300
|
-
], 8,
|
|
301
|
-
e.helpText ? (l(), n("span",
|
|
302
|
-
|
|
303
|
-
|
|
385
|
+
M(f(e.legend) + " ", 1),
|
|
386
|
+
e.requirementText ? (l(), n("span", ge, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
|
|
387
|
+
], 8, ye),
|
|
388
|
+
e.helpText ? (l(), n("span", Ve, f(e.helpText), 1)) : h("", !0),
|
|
389
|
+
d("div", ke, [
|
|
390
|
+
g(e.$slots, "default", {}, void 0, !0)
|
|
304
391
|
]),
|
|
305
392
|
(e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
|
|
306
393
|
key: 1,
|
|
307
|
-
class:
|
|
308
|
-
},
|
|
394
|
+
class: $(["mc-field__validation-message", t.value])
|
|
395
|
+
}, f(e.message), 3)) : h("", !0)
|
|
309
396
|
]));
|
|
310
397
|
}
|
|
311
|
-
}),
|
|
398
|
+
}), as = /* @__PURE__ */ _(Ie, [["__scopeId", "data-v-fc0c08dc"]]), we = ["disabled", "type"], Be = { class: "mc-button__icon" }, Ce = /* @__PURE__ */ y({
|
|
312
399
|
__name: "MIconButton",
|
|
313
400
|
props: {
|
|
314
401
|
appearance: { default: "standard" },
|
|
@@ -319,69 +406,23 @@ const S = /* @__PURE__ */ f({
|
|
|
319
406
|
type: { default: "button" }
|
|
320
407
|
},
|
|
321
408
|
setup(o) {
|
|
322
|
-
const a = o, t =
|
|
409
|
+
const a = o, t = v(() => ({
|
|
323
410
|
[`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
324
411
|
[`mc-button--${a.size}`]: a.size && a.size != "m",
|
|
325
412
|
"mc-button--ghost": a.ghost,
|
|
326
413
|
"mc-button--outlined": a.outlined
|
|
327
414
|
}));
|
|
328
415
|
return (e, i) => (l(), n("button", {
|
|
329
|
-
class:
|
|
416
|
+
class: $(["mc-button mc-button--icon-button", t.value]),
|
|
330
417
|
disabled: e.disabled,
|
|
331
418
|
type: e.type
|
|
332
419
|
}, [
|
|
333
|
-
|
|
334
|
-
|
|
420
|
+
d("span", Be, [
|
|
421
|
+
g(e.$slots, "icon", {}, void 0, !0)
|
|
335
422
|
])
|
|
336
|
-
], 10,
|
|
337
|
-
}
|
|
338
|
-
}), ha = /* @__PURE__ */ _(ve, [["__scopeId", "data-v-abf78562"]]), be = {
|
|
339
|
-
key: 0,
|
|
340
|
-
class: "mc-link__icon",
|
|
341
|
-
"aria-hidden": "true"
|
|
342
|
-
}, fe = { class: "mc-link__label" }, he = {
|
|
343
|
-
key: 1,
|
|
344
|
-
class: "mc-link__icon",
|
|
345
|
-
"aria-hidden": "true"
|
|
346
|
-
}, ye = /* @__PURE__ */ f({
|
|
347
|
-
__name: "MLink",
|
|
348
|
-
props: {
|
|
349
|
-
iconPosition: { default: "left" },
|
|
350
|
-
appearance: { default: "standard" },
|
|
351
|
-
size: { default: "s" },
|
|
352
|
-
href: { default: void 0 },
|
|
353
|
-
target: { default: void 0 },
|
|
354
|
-
inline: { type: Boolean },
|
|
355
|
-
router: { type: Boolean }
|
|
356
|
-
},
|
|
357
|
-
setup(o) {
|
|
358
|
-
const a = o, t = m(() => ({
|
|
359
|
-
[`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
360
|
-
[`mc-link--${a.size}`]: a.size && a.size != "s",
|
|
361
|
-
"mc-link--inline": a.inline,
|
|
362
|
-
"mc-link--stand-alone": !a.inline
|
|
363
|
-
}));
|
|
364
|
-
return (e, i) => (l(), w(O(e.router ? "router-link" : "a"), {
|
|
365
|
-
class: y(["mc-link", t.value]),
|
|
366
|
-
href: e.href,
|
|
367
|
-
target: e.target,
|
|
368
|
-
to: e.router ? e.href : void 0
|
|
369
|
-
}, {
|
|
370
|
-
default: T(() => [
|
|
371
|
-
e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", be, [
|
|
372
|
-
$(e.$slots, "icon", {}, void 0, !0)
|
|
373
|
-
])) : v("", !0),
|
|
374
|
-
r("span", fe, [
|
|
375
|
-
$(e.$slots, "default", {}, void 0, !0)
|
|
376
|
-
]),
|
|
377
|
-
e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", he, [
|
|
378
|
-
$(e.$slots, "icon", {}, void 0, !0)
|
|
379
|
-
])) : v("", !0)
|
|
380
|
-
]),
|
|
381
|
-
_: 3
|
|
382
|
-
}, 8, ["class", "href", "target", "to"]));
|
|
423
|
+
], 10, we));
|
|
383
424
|
}
|
|
384
|
-
}),
|
|
425
|
+
}), ss = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-abf78562"]]), Me = ["aria-labelledby"], ze = /* @__PURE__ */ y({
|
|
385
426
|
__name: "MOverlay",
|
|
386
427
|
props: {
|
|
387
428
|
isVisible: { type: Boolean },
|
|
@@ -389,18 +430,113 @@ const S = /* @__PURE__ */ f({
|
|
|
389
430
|
},
|
|
390
431
|
setup(o) {
|
|
391
432
|
return (a, t) => (l(), n("div", {
|
|
392
|
-
class:
|
|
433
|
+
class: $(["mc-overlay", { "is-visible": a.isVisible }])
|
|
393
434
|
}, [
|
|
394
|
-
|
|
435
|
+
d("div", {
|
|
395
436
|
role: "dialog",
|
|
396
437
|
tabindex: "-1",
|
|
397
438
|
"aria-labelledby": a.dialogLabel
|
|
398
439
|
}, [
|
|
399
|
-
|
|
400
|
-
], 8,
|
|
440
|
+
g(a.$slots, "default", {}, void 0, !0)
|
|
441
|
+
], 8, Me)
|
|
442
|
+
], 2));
|
|
443
|
+
}
|
|
444
|
+
}), ts = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-db90fdb3"]]), Le = {
|
|
445
|
+
name: "CrossCircleFilled24",
|
|
446
|
+
props: {
|
|
447
|
+
/**
|
|
448
|
+
* Icon color
|
|
449
|
+
*/
|
|
450
|
+
color: {
|
|
451
|
+
type: String,
|
|
452
|
+
default: "currentColor"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}, Se = {
|
|
456
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
457
|
+
viewBox: "0 0 24 24"
|
|
458
|
+
};
|
|
459
|
+
function Oe(o, a, t, e, i, s) {
|
|
460
|
+
return l(), n("svg", Se, a[0] || (a[0] = [
|
|
461
|
+
d("path", {
|
|
462
|
+
"fill-rule": "evenodd",
|
|
463
|
+
d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM8.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.414Z"
|
|
464
|
+
}, null, -1)
|
|
465
|
+
]));
|
|
466
|
+
}
|
|
467
|
+
const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Te = {
|
|
468
|
+
key: 0,
|
|
469
|
+
class: "mc-controls-options"
|
|
470
|
+
}, qe = { class: "mc-controls-options__label" }, Ze = /* @__PURE__ */ y({
|
|
471
|
+
__name: "MPasswordInput",
|
|
472
|
+
props: {
|
|
473
|
+
id: {},
|
|
474
|
+
name: {},
|
|
475
|
+
modelValue: {},
|
|
476
|
+
placeholder: {},
|
|
477
|
+
isInvalid: { type: Boolean },
|
|
478
|
+
disabled: { type: Boolean },
|
|
479
|
+
readonly: { type: Boolean },
|
|
480
|
+
isClearable: { type: Boolean },
|
|
481
|
+
clearLabel: { default: "Clear content" },
|
|
482
|
+
buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
|
|
483
|
+
},
|
|
484
|
+
emits: ["update:modelValue"],
|
|
485
|
+
setup(o, { emit: a }) {
|
|
486
|
+
const t = o, e = v(() => ({
|
|
487
|
+
"is-invalid": t.isInvalid
|
|
488
|
+
})), i = I(t.modelValue), s = I(!1), u = () => {
|
|
489
|
+
i.value = "", m("update:modelValue", "");
|
|
490
|
+
}, r = () => {
|
|
491
|
+
s.value = !s.value;
|
|
492
|
+
}, p = v(() => s.value ? "text" : "password"), c = v(() => s.value ? "true" : "false"), m = a;
|
|
493
|
+
return (b, z) => (l(), n("div", {
|
|
494
|
+
class: $(["mc-password-input mc-text-input", e.value])
|
|
495
|
+
}, [
|
|
496
|
+
T(d("input", k({
|
|
497
|
+
class: "mc-password-input__control mc-text-input__control",
|
|
498
|
+
"onUpdate:modelValue": z[0] || (z[0] = (L) => i.value = L),
|
|
499
|
+
id: b.id,
|
|
500
|
+
type: p.value,
|
|
501
|
+
name: b.name,
|
|
502
|
+
placeholder: b.placeholder,
|
|
503
|
+
disabled: b.disabled,
|
|
504
|
+
"aria-invalid": b.isInvalid,
|
|
505
|
+
readonly: b.readonly
|
|
506
|
+
}, b.$attrs, {
|
|
507
|
+
onInput: z[1] || (z[1] = (L) => m("update:modelValue", L.target.value))
|
|
508
|
+
}), null, 16, je), [
|
|
509
|
+
[P, i.value]
|
|
510
|
+
]),
|
|
511
|
+
b.isClearable && i.value ? (l(), n("div", Te, [
|
|
512
|
+
d("button", {
|
|
513
|
+
class: "mc-controls-options__button",
|
|
514
|
+
onClick: u
|
|
515
|
+
}, [
|
|
516
|
+
V(q, {
|
|
517
|
+
class: "mc-controls-options__icon",
|
|
518
|
+
"aria-hidden": "true"
|
|
519
|
+
}),
|
|
520
|
+
d("span", qe, f(b.clearLabel), 1)
|
|
521
|
+
])
|
|
522
|
+
])) : h("", !0),
|
|
523
|
+
V(ne, {
|
|
524
|
+
ref: "button",
|
|
525
|
+
role: "switch",
|
|
526
|
+
"aria-checked": c.value,
|
|
527
|
+
disabled: b.disabled,
|
|
528
|
+
onClick: r,
|
|
529
|
+
size: "s",
|
|
530
|
+
ghost: ""
|
|
531
|
+
}, {
|
|
532
|
+
default: S(() => [
|
|
533
|
+
M(f(s.value ? b.buttonLabel.hide : b.buttonLabel.show), 1)
|
|
534
|
+
]),
|
|
535
|
+
_: 1
|
|
536
|
+
}, 8, ["aria-checked", "disabled"])
|
|
401
537
|
], 2));
|
|
402
538
|
}
|
|
403
|
-
}),
|
|
539
|
+
}), ls = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-a5164b59"]]), Pe = {
|
|
404
540
|
name: "More24",
|
|
405
541
|
props: {
|
|
406
542
|
/**
|
|
@@ -411,21 +547,21 @@ const S = /* @__PURE__ */ f({
|
|
|
411
547
|
default: "currentColor"
|
|
412
548
|
}
|
|
413
549
|
}
|
|
414
|
-
},
|
|
550
|
+
}, Ge = {
|
|
415
551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
416
552
|
viewBox: "0 0 24 24"
|
|
417
553
|
};
|
|
418
|
-
function
|
|
419
|
-
return l(), n("svg",
|
|
420
|
-
|
|
421
|
-
|
|
554
|
+
function Ue(o, a, t, e, i, s) {
|
|
555
|
+
return l(), n("svg", Ge, a[0] || (a[0] = [
|
|
556
|
+
d("g", { "clip-path": "url(#a)" }, [
|
|
557
|
+
d("path", {
|
|
422
558
|
"fill-rule": "evenodd",
|
|
423
559
|
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-6V5Z"
|
|
424
560
|
})
|
|
425
561
|
], -1),
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
562
|
+
d("defs", null, [
|
|
563
|
+
d("clipPath", { id: "a" }, [
|
|
564
|
+
d("rect", {
|
|
429
565
|
width: "24",
|
|
430
566
|
height: "24",
|
|
431
567
|
fill: "#fff"
|
|
@@ -434,7 +570,7 @@ function Ie(o, a, t, e, i, s) {
|
|
|
434
570
|
], -1)
|
|
435
571
|
]));
|
|
436
572
|
}
|
|
437
|
-
const
|
|
573
|
+
const De = /* @__PURE__ */ _(Pe, [["render", Ue]]), Fe = {
|
|
438
574
|
name: "Less24",
|
|
439
575
|
props: {
|
|
440
576
|
/**
|
|
@@ -445,21 +581,21 @@ const Be = /* @__PURE__ */ _(ke, [["render", Ie]]), Me = {
|
|
|
445
581
|
default: "currentColor"
|
|
446
582
|
}
|
|
447
583
|
}
|
|
448
|
-
},
|
|
584
|
+
}, Ne = {
|
|
449
585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
450
586
|
viewBox: "0 0 24 24"
|
|
451
587
|
};
|
|
452
|
-
function
|
|
453
|
-
return l(), n("svg",
|
|
454
|
-
|
|
455
|
-
|
|
588
|
+
function Re(o, a, t, e, i, s) {
|
|
589
|
+
return l(), n("svg", Ne, a[0] || (a[0] = [
|
|
590
|
+
d("g", { "clip-path": "url(#a)" }, [
|
|
591
|
+
d("path", {
|
|
456
592
|
"fill-rule": "evenodd",
|
|
457
593
|
d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"
|
|
458
594
|
})
|
|
459
595
|
], -1),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
596
|
+
d("defs", null, [
|
|
597
|
+
d("clipPath", { id: "a" }, [
|
|
598
|
+
d("rect", {
|
|
463
599
|
width: "24",
|
|
464
600
|
height: "24",
|
|
465
601
|
fill: "#fff"
|
|
@@ -468,7 +604,7 @@ function we(o, a, t, e, i, s) {
|
|
|
468
604
|
], -1)
|
|
469
605
|
]));
|
|
470
606
|
}
|
|
471
|
-
const
|
|
607
|
+
const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Ee = ["aria-controls", "disabled"], Qe = { class: "mc-quantity-selector__icon" }, We = { class: "mc-quantity-selector__label" }, Je = ["aria-controls", "disabled"], Ke = { class: "mc-quantity-selector__icon" }, Xe = { class: "mc-quantity-selector__label" }, Ye = /* @__PURE__ */ y({
|
|
472
608
|
__name: "MQuantitySelector",
|
|
473
609
|
props: {
|
|
474
610
|
id: {},
|
|
@@ -486,74 +622,74 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
486
622
|
},
|
|
487
623
|
emits: ["update:modelValue"],
|
|
488
624
|
setup(o, { emit: a }) {
|
|
489
|
-
const t = o, e =
|
|
490
|
-
|
|
491
|
-
|
|
625
|
+
const t = o, e = I(t.modelValue);
|
|
626
|
+
O(e, (c) => {
|
|
627
|
+
c !== t.modelValue && p("update:modelValue", c);
|
|
492
628
|
});
|
|
493
|
-
const i =
|
|
629
|
+
const i = v(() => ({
|
|
494
630
|
[`mc-quantity-selector--${t.size}`]: t.size && t.size != "m",
|
|
495
631
|
"is-invalid": t.isInvalid
|
|
496
632
|
})), s = () => {
|
|
497
633
|
e.value + t.step <= t.max ? e.value += t.step : e.value = t.max;
|
|
498
634
|
}, u = () => {
|
|
499
635
|
e.value - t.step > t.min ? e.value -= t.step : e.value = t.min;
|
|
500
|
-
},
|
|
501
|
-
e.value =
|
|
636
|
+
}, r = (c) => {
|
|
637
|
+
e.value = c, e.value > t.max && (e.value = t.max), e.value <= t.min && (e.value = t.min), p("update:modelValue", e.value);
|
|
502
638
|
}, p = a;
|
|
503
|
-
return (
|
|
504
|
-
class:
|
|
639
|
+
return (c, m) => (l(), n("div", {
|
|
640
|
+
class: $(["mc-quantity-selector", i.value])
|
|
505
641
|
}, [
|
|
506
|
-
|
|
507
|
-
id:
|
|
508
|
-
"onUpdate:modelValue":
|
|
642
|
+
T(d("input", k({
|
|
643
|
+
id: c.id,
|
|
644
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => e.value = b),
|
|
509
645
|
class: "mc-quantity-selector__control",
|
|
510
646
|
type: "number",
|
|
511
|
-
name:
|
|
512
|
-
disabled:
|
|
513
|
-
min:
|
|
514
|
-
max:
|
|
515
|
-
step:
|
|
516
|
-
readonly:
|
|
517
|
-
"aria-invalid":
|
|
518
|
-
"aria-valuemin":
|
|
519
|
-
"aria-valuemax":
|
|
647
|
+
name: c.name,
|
|
648
|
+
disabled: c.disabled,
|
|
649
|
+
min: c.min,
|
|
650
|
+
max: c.max,
|
|
651
|
+
step: c.step,
|
|
652
|
+
readonly: c.readonly,
|
|
653
|
+
"aria-invalid": c.isInvalid,
|
|
654
|
+
"aria-valuemin": c.min,
|
|
655
|
+
"aria-valuemax": c.max,
|
|
520
656
|
"aria-valuenow": e.value
|
|
521
|
-
},
|
|
522
|
-
onChange:
|
|
523
|
-
}), null, 16,
|
|
524
|
-
[
|
|
657
|
+
}, c.$attrs, {
|
|
658
|
+
onChange: m[1] || (m[1] = (b) => r(Number(b.target.value)))
|
|
659
|
+
}), null, 16, He), [
|
|
660
|
+
[G, e.value]
|
|
525
661
|
]),
|
|
526
|
-
|
|
662
|
+
c.readonly ? h("", !0) : (l(), n("button", {
|
|
527
663
|
key: 0,
|
|
528
664
|
type: "button",
|
|
529
|
-
"aria-controls":
|
|
665
|
+
"aria-controls": c.id,
|
|
530
666
|
class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
|
|
531
667
|
tabindex: "-1",
|
|
532
|
-
disabled:
|
|
668
|
+
disabled: c.disabled || e.value === c.max,
|
|
533
669
|
onClick: s
|
|
534
670
|
}, [
|
|
535
|
-
|
|
536
|
-
V(
|
|
671
|
+
d("span", Qe, [
|
|
672
|
+
V(De)
|
|
537
673
|
]),
|
|
538
|
-
|
|
539
|
-
], 8,
|
|
540
|
-
|
|
674
|
+
d("span", We, f(c.incrementlabel), 1)
|
|
675
|
+
], 8, Ee)),
|
|
676
|
+
c.readonly ? h("", !0) : (l(), n("button", {
|
|
541
677
|
key: 1,
|
|
542
678
|
type: "button",
|
|
543
|
-
"aria-controls":
|
|
679
|
+
"aria-controls": c.id,
|
|
544
680
|
class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
|
|
545
681
|
tabindex: "-1",
|
|
546
|
-
disabled:
|
|
682
|
+
disabled: c.disabled || e.value === c.min,
|
|
547
683
|
onClick: u
|
|
548
684
|
}, [
|
|
549
|
-
|
|
550
|
-
V(
|
|
685
|
+
d("span", Ke, [
|
|
686
|
+
V(Ae)
|
|
551
687
|
]),
|
|
552
|
-
|
|
553
|
-
], 8,
|
|
688
|
+
d("span", Xe, f(c.decrementLabel), 1)
|
|
689
|
+
], 8, Je))
|
|
554
690
|
], 2));
|
|
555
691
|
}
|
|
556
|
-
}),
|
|
692
|
+
}), ns = /* @__PURE__ */ _(Ye, [["__scopeId", "data-v-a732650a"]]), xe = { class: "mc-radio" }, ea = ["id", "name", "checked", "disabled", "aria-invalid"], aa = ["for"], sa = /* @__PURE__ */ y({
|
|
557
693
|
__name: "MRadio",
|
|
558
694
|
props: {
|
|
559
695
|
id: {},
|
|
@@ -565,11 +701,11 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
565
701
|
},
|
|
566
702
|
emits: ["update:modelValue"],
|
|
567
703
|
setup(o, { emit: a }) {
|
|
568
|
-
const t = o, e =
|
|
704
|
+
const t = o, e = v(() => ({
|
|
569
705
|
"is-invalid": t.isInvalid
|
|
570
706
|
})), i = a;
|
|
571
|
-
return (s, u) => (l(), n("div",
|
|
572
|
-
|
|
707
|
+
return (s, u) => (l(), n("div", xe, [
|
|
708
|
+
d("input", k({
|
|
573
709
|
id: s.id,
|
|
574
710
|
type: "radio",
|
|
575
711
|
class: ["mc-radio__input", e.value],
|
|
@@ -578,16 +714,16 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
578
714
|
disabled: s.disabled,
|
|
579
715
|
"aria-invalid": s.isInvalid
|
|
580
716
|
}, s.$attrs, {
|
|
581
|
-
onChange: u[0] || (u[0] = (
|
|
582
|
-
}), null, 16,
|
|
717
|
+
onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
|
|
718
|
+
}), null, 16, ea),
|
|
583
719
|
s.label ? (l(), n("label", {
|
|
584
720
|
key: 0,
|
|
585
721
|
for: s.id,
|
|
586
722
|
class: "mc-radio__label"
|
|
587
|
-
},
|
|
723
|
+
}, f(s.label), 9, aa)) : h("", !0)
|
|
588
724
|
]));
|
|
589
725
|
}
|
|
590
|
-
}),
|
|
726
|
+
}), ta = /* @__PURE__ */ _(sa, [["__scopeId", "data-v-da78938c"]]), la = /* @__PURE__ */ y({
|
|
591
727
|
__name: "MRadioGroup",
|
|
592
728
|
props: {
|
|
593
729
|
name: {},
|
|
@@ -598,32 +734,32 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
598
734
|
},
|
|
599
735
|
emits: ["update:modelValue"],
|
|
600
736
|
setup(o, { emit: a }) {
|
|
601
|
-
const t = o, e =
|
|
737
|
+
const t = o, e = v(() => ({
|
|
602
738
|
"mc-field__container--inline": t.inline
|
|
603
|
-
})), i =
|
|
739
|
+
})), i = v(() => ({
|
|
604
740
|
"mc-field__container--inline__item": t.inline
|
|
605
741
|
})), s = a;
|
|
606
|
-
return (u,
|
|
607
|
-
class:
|
|
742
|
+
return (u, r) => (l(), n("div", {
|
|
743
|
+
class: $(["mc-field__container", e.value])
|
|
608
744
|
}, [
|
|
609
|
-
(l(!0), n(
|
|
745
|
+
(l(!0), n(B, null, C(u.options, (p) => (l(), w(ta, {
|
|
610
746
|
id: p.id,
|
|
611
747
|
key: p.id,
|
|
612
748
|
label: p.label,
|
|
613
749
|
"is-invalid": u.isInvalid,
|
|
614
750
|
name: u.name,
|
|
615
|
-
class:
|
|
751
|
+
class: $(["mc-field__item", i.value]),
|
|
616
752
|
"model-value": u.modelValue === p.value,
|
|
617
753
|
disabled: p.disabled,
|
|
618
|
-
"onUpdate:modelValue": (
|
|
754
|
+
"onUpdate:modelValue": (c) => c ? s("update:modelValue", p.value) : null
|
|
619
755
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
620
756
|
], 2));
|
|
621
757
|
}
|
|
622
|
-
}),
|
|
758
|
+
}), os = /* @__PURE__ */ _(la, [["__scopeId", "data-v-d2f5e103"]]), na = ["id", "name", "value", "disabled"], oa = {
|
|
623
759
|
key: 0,
|
|
624
760
|
value: "",
|
|
625
761
|
disabled: ""
|
|
626
|
-
},
|
|
762
|
+
}, ia = ["value", "disabled"], da = /* @__PURE__ */ y({
|
|
627
763
|
__name: "MSelect",
|
|
628
764
|
props: {
|
|
629
765
|
id: {},
|
|
@@ -638,61 +774,245 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
638
774
|
},
|
|
639
775
|
emits: ["update:modelValue"],
|
|
640
776
|
setup(o, { emit: a }) {
|
|
641
|
-
const t = o, e =
|
|
777
|
+
const t = o, e = v(() => ({
|
|
642
778
|
[`mc-select--${t.size}`]: t.size && t.size != "m",
|
|
643
779
|
"mc-select--readonly": t.readonly,
|
|
644
780
|
"is-invalid": t.isInvalid
|
|
645
781
|
})), i = a;
|
|
646
|
-
return (s, u) => (l(), n("select",
|
|
782
|
+
return (s, u) => (l(), n("select", k({
|
|
647
783
|
id: s.id,
|
|
648
784
|
class: ["mc-select", e.value],
|
|
649
785
|
name: s.name,
|
|
650
786
|
value: s.modelValue,
|
|
651
787
|
disabled: s.disabled
|
|
652
788
|
}, s.$attrs, {
|
|
653
|
-
onChange: u[0] || (u[0] = (
|
|
789
|
+
onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
|
|
654
790
|
}), [
|
|
655
|
-
s.placeholder ? (l(), n("option",
|
|
656
|
-
(l(!0), n(
|
|
791
|
+
s.placeholder ? (l(), n("option", oa, " -- " + f(s.placeholder) + " -- ", 1)) : h("", !0),
|
|
792
|
+
(l(!0), n(B, null, C(s.options, (r, p) => (l(), n("option", k({
|
|
657
793
|
key: p,
|
|
658
|
-
value:
|
|
794
|
+
value: r.value,
|
|
659
795
|
ref_for: !0
|
|
660
|
-
},
|
|
661
|
-
disabled:
|
|
662
|
-
}),
|
|
663
|
-
], 16,
|
|
796
|
+
}, r.attributes, {
|
|
797
|
+
disabled: r.disabled
|
|
798
|
+
}), f(r.text), 17, ia))), 128))
|
|
799
|
+
], 16, na));
|
|
664
800
|
}
|
|
665
|
-
}),
|
|
801
|
+
}), is = /* @__PURE__ */ _(da, [["__scopeId", "data-v-68c735e4"]]), ra = /* @__PURE__ */ y({
|
|
666
802
|
__name: "MStatusDot",
|
|
667
803
|
props: {
|
|
668
|
-
|
|
804
|
+
status: { default: "info" },
|
|
805
|
+
size: {}
|
|
669
806
|
},
|
|
670
807
|
setup(o) {
|
|
671
|
-
const a = o, t =
|
|
672
|
-
[`mc-status-dot--${a.
|
|
808
|
+
const a = o, t = v(() => ({
|
|
809
|
+
[`mc-status-dot--${a.status}`]: a.status && a.status != "info",
|
|
810
|
+
[`mc-status-dot--${a.size}`]: a.size && a.size != "m"
|
|
673
811
|
}));
|
|
674
812
|
return (e, i) => (l(), n("span", {
|
|
675
|
-
class:
|
|
813
|
+
class: $(["mc-status-dot", t.value])
|
|
676
814
|
}, null, 2));
|
|
677
815
|
}
|
|
678
|
-
}),
|
|
816
|
+
}), ca = /* @__PURE__ */ _(ra, [["__scopeId", "data-v-417b563f"]]), ua = { class: "mc-status-badge__label" }, pa = /* @__PURE__ */ y({
|
|
679
817
|
__name: "MStatusBadge",
|
|
680
818
|
props: {
|
|
681
819
|
label: {},
|
|
682
|
-
|
|
820
|
+
status: { default: "info" }
|
|
683
821
|
},
|
|
684
822
|
setup(o) {
|
|
685
|
-
const a = o, t =
|
|
686
|
-
[`mc-status-badge--${a.
|
|
823
|
+
const a = o, t = v(() => ({
|
|
824
|
+
[`mc-status-badge--${a.status}`]: a.status && a.status != "info"
|
|
687
825
|
}));
|
|
688
826
|
return (e, i) => (l(), n("div", {
|
|
689
|
-
class:
|
|
827
|
+
class: $(["mc-status-badge", t.value])
|
|
690
828
|
}, [
|
|
691
|
-
V(
|
|
692
|
-
|
|
829
|
+
V(ca, { status: e.status }, null, 8, ["status"]),
|
|
830
|
+
d("span", ua, f(e.label), 1)
|
|
693
831
|
], 2));
|
|
694
832
|
}
|
|
695
|
-
}),
|
|
833
|
+
}), ds = /* @__PURE__ */ _(pa, [["__scopeId", "data-v-3e437a03"]]), ma = {
|
|
834
|
+
name: "Cross20",
|
|
835
|
+
props: {
|
|
836
|
+
/**
|
|
837
|
+
* Icon color
|
|
838
|
+
*/
|
|
839
|
+
color: {
|
|
840
|
+
type: String,
|
|
841
|
+
default: "currentColor"
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}, _a = {
|
|
845
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
846
|
+
viewBox: "0 0 20 20"
|
|
847
|
+
};
|
|
848
|
+
function va(o, a, t, e, i, s) {
|
|
849
|
+
return l(), n("svg", _a, a[0] || (a[0] = [
|
|
850
|
+
d("g", { "clip-path": "url(#a)" }, [
|
|
851
|
+
d("path", {
|
|
852
|
+
"fill-rule": "evenodd",
|
|
853
|
+
d: "M16.364 4.697a.75.75 0 1 0-1.061-1.06L10 8.938 4.697 3.636a.75.75 0 0 0-1.06 1.06L8.938 10l-5.303 5.303a.75.75 0 0 0 1.061 1.06L10 11.06l5.303 5.303a.75.75 0 0 0 1.06-1.06L11.062 10l5.303-5.303Z"
|
|
854
|
+
})
|
|
855
|
+
], -1),
|
|
856
|
+
d("defs", null, [
|
|
857
|
+
d("clipPath", { id: "a" }, [
|
|
858
|
+
d("rect", {
|
|
859
|
+
width: "20",
|
|
860
|
+
height: "20",
|
|
861
|
+
fill: "#fff"
|
|
862
|
+
})
|
|
863
|
+
])
|
|
864
|
+
], -1)
|
|
865
|
+
]));
|
|
866
|
+
}
|
|
867
|
+
const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
|
|
868
|
+
name: "InfoCircle32",
|
|
869
|
+
props: {
|
|
870
|
+
/**
|
|
871
|
+
* Icon color
|
|
872
|
+
*/
|
|
873
|
+
color: {
|
|
874
|
+
type: String,
|
|
875
|
+
default: "currentColor"
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}, ha = {
|
|
879
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
880
|
+
viewBox: "0 0 32 32"
|
|
881
|
+
};
|
|
882
|
+
function $a(o, a, t, e, i, s) {
|
|
883
|
+
return l(), n("svg", ha, a[0] || (a[0] = [
|
|
884
|
+
d("path", {
|
|
885
|
+
"fill-rule": "evenodd",
|
|
886
|
+
d: "M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5ZM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16Zm13-2.333a1 1 0 0 1 1 1v6.666a1 1 0 1 1-2 0v-6.666a1 1 0 0 1 1-1ZM16 12a1.333 1.333 0 1 0 0-2.667A1.333 1.333 0 0 0 16 12Z"
|
|
887
|
+
}, null, -1)
|
|
888
|
+
]));
|
|
889
|
+
}
|
|
890
|
+
const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
|
|
891
|
+
name: "WarningCircle32",
|
|
892
|
+
props: {
|
|
893
|
+
/**
|
|
894
|
+
* Icon color
|
|
895
|
+
*/
|
|
896
|
+
color: {
|
|
897
|
+
type: String,
|
|
898
|
+
default: "currentColor"
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}, Va = {
|
|
902
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
903
|
+
viewBox: "0 0 32 32"
|
|
904
|
+
};
|
|
905
|
+
function ka(o, a, t, e, i, s) {
|
|
906
|
+
return l(), n("svg", Va, a[0] || (a[0] = [
|
|
907
|
+
d("path", {
|
|
908
|
+
"fill-rule": "evenodd",
|
|
909
|
+
d: "M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5ZM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16Zm13-6.333a1 1 0 0 1 1 1v6.666a1 1 0 1 1-2 0v-6.666a1 1 0 0 1 1-1Zm0 13A1.333 1.333 0 1 0 16 20a1.333 1.333 0 0 0 0 2.667Z"
|
|
910
|
+
}, null, -1)
|
|
911
|
+
]));
|
|
912
|
+
}
|
|
913
|
+
const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
|
|
914
|
+
name: "CrossCircle32",
|
|
915
|
+
props: {
|
|
916
|
+
/**
|
|
917
|
+
* Icon color
|
|
918
|
+
*/
|
|
919
|
+
color: {
|
|
920
|
+
type: String,
|
|
921
|
+
default: "currentColor"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}, Ba = {
|
|
925
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
926
|
+
viewBox: "0 0 32 32"
|
|
927
|
+
};
|
|
928
|
+
function Ca(o, a, t, e, i, s) {
|
|
929
|
+
return l(), n("svg", Ba, a[0] || (a[0] = [
|
|
930
|
+
d("path", {
|
|
931
|
+
"fill-rule": "evenodd",
|
|
932
|
+
d: "M5 16C5 9.925 9.925 5 16 5s11 4.925 11 11-4.925 11-11 11S5 22.075 5 16ZM16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3Zm-3.293 8.293a1 1 0 0 0-1.414 1.414L14.586 16l-3.293 3.293a1 1 0 0 0 1.414 1.414L16 17.414l3.293 3.293a1 1 0 0 0 1.414-1.414L17.414 16l3.293-3.293a1 1 0 0 0-1.414-1.414L16 14.586l-3.293-3.293Z"
|
|
933
|
+
}, null, -1)
|
|
934
|
+
]));
|
|
935
|
+
}
|
|
936
|
+
const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
|
|
937
|
+
name: "CheckCircle32",
|
|
938
|
+
props: {
|
|
939
|
+
/**
|
|
940
|
+
* Icon color
|
|
941
|
+
*/
|
|
942
|
+
color: {
|
|
943
|
+
type: String,
|
|
944
|
+
default: "currentColor"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}, La = {
|
|
948
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
949
|
+
viewBox: "0 0 32 32"
|
|
950
|
+
};
|
|
951
|
+
function Sa(o, a, t, e, i, s) {
|
|
952
|
+
return l(), n("svg", La, a[0] || (a[0] = [
|
|
953
|
+
d("path", {
|
|
954
|
+
"fill-rule": "evenodd",
|
|
955
|
+
d: "M5 16C5 9.925 9.925 5 16 5s11 4.925 11 11-4.925 11-11 11S5 22.075 5 16ZM16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3Zm6.707 10.374a1 1 0 0 0-1.414-1.414l-6.626 6.626-3.293-3.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l7.333-7.333Z"
|
|
956
|
+
}, null, -1)
|
|
957
|
+
]));
|
|
958
|
+
}
|
|
959
|
+
const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-notification__content" }, Ta = { class: "mc-status-notification__title" }, qa = { class: "mc-status-notification__message" }, Za = {
|
|
960
|
+
key: 0,
|
|
961
|
+
class: "mc-status-notification__footer"
|
|
962
|
+
}, Pa = /* @__PURE__ */ y({
|
|
963
|
+
__name: "MStatusNotification",
|
|
964
|
+
props: {
|
|
965
|
+
title: {},
|
|
966
|
+
description: {},
|
|
967
|
+
status: { default: "info" },
|
|
968
|
+
closable: { type: Boolean }
|
|
969
|
+
},
|
|
970
|
+
emits: ["close"],
|
|
971
|
+
setup(o, { emit: a }) {
|
|
972
|
+
const t = o, e = v(() => ({
|
|
973
|
+
[`mc-status-notification--${t.status}`]: t.status && t.status != "info"
|
|
974
|
+
})), i = v(() => {
|
|
975
|
+
switch (t.status) {
|
|
976
|
+
case "success":
|
|
977
|
+
return Oa;
|
|
978
|
+
case "warning":
|
|
979
|
+
return Ia;
|
|
980
|
+
case "error":
|
|
981
|
+
return Ma;
|
|
982
|
+
case "info":
|
|
983
|
+
default:
|
|
984
|
+
return ya;
|
|
985
|
+
}
|
|
986
|
+
}), s = a;
|
|
987
|
+
return (u, r) => (l(), n("section", {
|
|
988
|
+
class: $(["mc-status-notification", e.value]),
|
|
989
|
+
role: "status"
|
|
990
|
+
}, [
|
|
991
|
+
(l(), w(j(i.value), {
|
|
992
|
+
class: "mc-status-notification__icon",
|
|
993
|
+
"aria-hidden": "true"
|
|
994
|
+
})),
|
|
995
|
+
d("div", ja, [
|
|
996
|
+
d("h2", Ta, f(u.title), 1),
|
|
997
|
+
d("p", qa, f(u.description), 1),
|
|
998
|
+
u.$slots.footer ? (l(), n("div", Za, [
|
|
999
|
+
g(u.$slots, "footer", {}, void 0, !0)
|
|
1000
|
+
])) : h("", !0)
|
|
1001
|
+
]),
|
|
1002
|
+
u.closable ? (l(), n("button", {
|
|
1003
|
+
key: 0,
|
|
1004
|
+
class: "mc-status-notification-closable__close",
|
|
1005
|
+
onClick: r[0] || (r[0] = (p) => s("close"))
|
|
1006
|
+
}, [
|
|
1007
|
+
V(ba, {
|
|
1008
|
+
class: "mc-status-notification-closable__icon",
|
|
1009
|
+
"aria-hidden": "true"
|
|
1010
|
+
}),
|
|
1011
|
+
r[1] || (r[1] = d("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
|
|
1012
|
+
])) : h("", !0)
|
|
1013
|
+
], 2));
|
|
1014
|
+
}
|
|
1015
|
+
}), rs = /* @__PURE__ */ _(Pa, [["__scopeId", "data-v-d6e3be16"]]), Ga = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], Ua = /* @__PURE__ */ y({
|
|
696
1016
|
__name: "MTextArea",
|
|
697
1017
|
props: {
|
|
698
1018
|
id: {},
|
|
@@ -708,10 +1028,10 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
708
1028
|
},
|
|
709
1029
|
emits: ["update:modelValue"],
|
|
710
1030
|
setup(o, { emit: a }) {
|
|
711
|
-
const t = o, e =
|
|
1031
|
+
const t = o, e = v(() => ({
|
|
712
1032
|
"is-invalid": t.isInvalid
|
|
713
1033
|
})), i = a;
|
|
714
|
-
return (s, u) => (l(), n("textarea",
|
|
1034
|
+
return (s, u) => (l(), n("textarea", k({
|
|
715
1035
|
id: s.id,
|
|
716
1036
|
class: ["mc-textarea", e.value],
|
|
717
1037
|
"aria-invalid": s.isInvalid,
|
|
@@ -724,39 +1044,16 @@ const Ce = /* @__PURE__ */ _(Me, [["render", we]]), Le = ["id", "name", "disable
|
|
|
724
1044
|
rows: s.rows,
|
|
725
1045
|
readonly: s.readonly
|
|
726
1046
|
}, s.$attrs, {
|
|
727
|
-
onInput: u[0] || (u[0] = (
|
|
728
|
-
}), null, 16,
|
|
729
|
-
}
|
|
730
|
-
}), Ba = /* @__PURE__ */ _(xe, [["__scopeId", "data-v-8184b69c"]]), ea = {
|
|
731
|
-
name: "CrossCircleFilled24",
|
|
732
|
-
props: {
|
|
733
|
-
/**
|
|
734
|
-
* Icon color
|
|
735
|
-
*/
|
|
736
|
-
color: {
|
|
737
|
-
type: String,
|
|
738
|
-
default: "currentColor"
|
|
739
|
-
}
|
|
1047
|
+
onInput: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
|
|
1048
|
+
}), null, 16, Ga));
|
|
740
1049
|
}
|
|
741
|
-
},
|
|
742
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
743
|
-
viewBox: "0 0 24 24"
|
|
744
|
-
};
|
|
745
|
-
function sa(o, a, t, e, i, s) {
|
|
746
|
-
return l(), n("svg", aa, a[0] || (a[0] = [
|
|
747
|
-
r("path", {
|
|
748
|
-
"fill-rule": "evenodd",
|
|
749
|
-
d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM8.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.414Z"
|
|
750
|
-
}, null, -1)
|
|
751
|
-
]));
|
|
752
|
-
}
|
|
753
|
-
const ta = /* @__PURE__ */ _(ea, [["render", sa]]), la = {
|
|
1050
|
+
}), cs = /* @__PURE__ */ _(Ua, [["__scopeId", "data-v-8184b69c"]]), Da = {
|
|
754
1051
|
key: 0,
|
|
755
1052
|
class: "mc-text-input__icon"
|
|
756
|
-
},
|
|
1053
|
+
}, Fa = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Na = {
|
|
757
1054
|
key: 1,
|
|
758
1055
|
class: "mc-controls-options"
|
|
759
|
-
},
|
|
1056
|
+
}, Ra = /* @__PURE__ */ y({
|
|
760
1057
|
__name: "MTextInput",
|
|
761
1058
|
props: {
|
|
762
1059
|
id: {},
|
|
@@ -773,47 +1070,47 @@ const ta = /* @__PURE__ */ _(ea, [["render", sa]]), la = {
|
|
|
773
1070
|
},
|
|
774
1071
|
emits: ["update:modelValue"],
|
|
775
1072
|
setup(o, { emit: a }) {
|
|
776
|
-
const t = o, e =
|
|
1073
|
+
const t = o, e = v(() => ({
|
|
777
1074
|
[`mc-text-input--${t.size}`]: t.size && t.size != "m",
|
|
778
1075
|
"is-invalid": t.isInvalid
|
|
779
|
-
})), i =
|
|
1076
|
+
})), i = I(t.modelValue), s = () => {
|
|
780
1077
|
i.value = "", u("update:modelValue", "");
|
|
781
1078
|
}, u = a;
|
|
782
|
-
return (
|
|
783
|
-
class:
|
|
1079
|
+
return (r, p) => (l(), n("div", {
|
|
1080
|
+
class: $(["mc-text-input", e.value])
|
|
784
1081
|
}, [
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
])) :
|
|
788
|
-
|
|
789
|
-
id:
|
|
1082
|
+
r.$slots.icon ? (l(), n("span", Da, [
|
|
1083
|
+
g(r.$slots, "icon", {}, void 0, !0)
|
|
1084
|
+
])) : h("", !0),
|
|
1085
|
+
d("input", k({
|
|
1086
|
+
id: r.id,
|
|
790
1087
|
class: "mc-text-input__control",
|
|
791
1088
|
value: i.value,
|
|
792
|
-
type:
|
|
793
|
-
name:
|
|
794
|
-
placeholder:
|
|
795
|
-
disabled:
|
|
796
|
-
"aria-invalid":
|
|
797
|
-
readonly:
|
|
798
|
-
},
|
|
799
|
-
onInput: p[0] || (p[0] = (
|
|
800
|
-
}), null, 16,
|
|
801
|
-
|
|
802
|
-
|
|
1089
|
+
type: r.inputType,
|
|
1090
|
+
name: r.name,
|
|
1091
|
+
placeholder: r.placeholder,
|
|
1092
|
+
disabled: r.disabled,
|
|
1093
|
+
"aria-invalid": r.isInvalid,
|
|
1094
|
+
readonly: r.readonly
|
|
1095
|
+
}, r.$attrs, {
|
|
1096
|
+
onInput: p[0] || (p[0] = (c) => u("update:modelValue", c.target.value))
|
|
1097
|
+
}), null, 16, Fa),
|
|
1098
|
+
r.isClearable && i.value ? (l(), n("div", Na, [
|
|
1099
|
+
d("button", {
|
|
803
1100
|
type: "button",
|
|
804
1101
|
class: "mc-controls-options__button",
|
|
805
1102
|
onClick: s
|
|
806
1103
|
}, [
|
|
807
|
-
V(
|
|
1104
|
+
V(q, {
|
|
808
1105
|
class: "mc-controls-options__icon",
|
|
809
1106
|
"aria-hidden": "true"
|
|
810
1107
|
}),
|
|
811
|
-
p[1] || (p[1] =
|
|
1108
|
+
p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
|
|
812
1109
|
])
|
|
813
|
-
])) :
|
|
1110
|
+
])) : h("", !0)
|
|
814
1111
|
], 2));
|
|
815
1112
|
}
|
|
816
|
-
}),
|
|
1113
|
+
}), us = /* @__PURE__ */ _(Ra, [["__scopeId", "data-v-38f67338"]]), Aa = ["for"], Ha = ["id", "name", "checked", "disabled"], Ea = ["for"], Qa = /* @__PURE__ */ y({
|
|
817
1114
|
__name: "MToggle",
|
|
818
1115
|
props: {
|
|
819
1116
|
id: {},
|
|
@@ -825,17 +1122,17 @@ const ta = /* @__PURE__ */ _(ea, [["render", sa]]), la = {
|
|
|
825
1122
|
},
|
|
826
1123
|
emits: ["update:modelValue"],
|
|
827
1124
|
setup(o, { emit: a }) {
|
|
828
|
-
const t = o, e =
|
|
1125
|
+
const t = o, e = v(() => ({
|
|
829
1126
|
[`mc-toggle--${t.size}`]: t.size && t.size != "s"
|
|
830
1127
|
})), i = a;
|
|
831
1128
|
return (s, u) => (l(), n("div", {
|
|
832
|
-
class:
|
|
1129
|
+
class: $(["mc-toggle", e.value])
|
|
833
1130
|
}, [
|
|
834
|
-
|
|
1131
|
+
d("label", {
|
|
835
1132
|
class: "mc-toggle__container",
|
|
836
1133
|
for: s.id
|
|
837
1134
|
}, [
|
|
838
|
-
|
|
1135
|
+
d("input", k({
|
|
839
1136
|
id: s.id,
|
|
840
1137
|
type: "checkbox",
|
|
841
1138
|
class: "mc-toggle__input",
|
|
@@ -843,35 +1140,81 @@ const ta = /* @__PURE__ */ _(ea, [["render", sa]]), la = {
|
|
|
843
1140
|
checked: s.modelValue,
|
|
844
1141
|
disabled: s.disabled
|
|
845
1142
|
}, s.$attrs, {
|
|
846
|
-
onChange: u[0] || (u[0] = (
|
|
847
|
-
}), null, 16,
|
|
1143
|
+
onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
|
|
1144
|
+
}), null, 16, Ha),
|
|
848
1145
|
s.label ? (l(), n("span", {
|
|
849
1146
|
key: 0,
|
|
850
1147
|
for: s.id,
|
|
851
1148
|
class: "mc-toggle__label"
|
|
852
|
-
},
|
|
853
|
-
], 8,
|
|
1149
|
+
}, f(s.label), 9, Ea)) : h("", !0)
|
|
1150
|
+
], 8, Aa)
|
|
1151
|
+
], 2));
|
|
1152
|
+
}
|
|
1153
|
+
}), Wa = /* @__PURE__ */ _(Qa, [["__scopeId", "data-v-5be734e7"]]), Ja = /* @__PURE__ */ y({
|
|
1154
|
+
__name: "MToggleGroup",
|
|
1155
|
+
props: {
|
|
1156
|
+
name: {},
|
|
1157
|
+
modelValue: {},
|
|
1158
|
+
options: {},
|
|
1159
|
+
inline: { type: Boolean }
|
|
1160
|
+
},
|
|
1161
|
+
emits: ["update:modelValue"],
|
|
1162
|
+
setup(o, { emit: a }) {
|
|
1163
|
+
const t = o, e = I([]);
|
|
1164
|
+
O(
|
|
1165
|
+
() => t.modelValue,
|
|
1166
|
+
(p) => {
|
|
1167
|
+
e.value = p || [];
|
|
1168
|
+
},
|
|
1169
|
+
{ immediate: !0 }
|
|
1170
|
+
);
|
|
1171
|
+
const i = (p, c) => {
|
|
1172
|
+
let m = [...e.value];
|
|
1173
|
+
p && !m.includes(c) ? m.push(c) : m = m.filter((b) => b !== c), r("update:modelValue", m), e.value = m;
|
|
1174
|
+
}, s = v(() => ({
|
|
1175
|
+
"mc-field__container--inline": t.inline
|
|
1176
|
+
})), u = v(() => ({
|
|
1177
|
+
"mc-field__container--inline__item": t.inline
|
|
1178
|
+
})), r = a;
|
|
1179
|
+
return (p, c) => (l(), n("div", {
|
|
1180
|
+
class: $(s.value)
|
|
1181
|
+
}, [
|
|
1182
|
+
(l(!0), n(B, null, C(p.options, (m) => (l(), w(Wa, {
|
|
1183
|
+
id: m.id,
|
|
1184
|
+
key: m.id,
|
|
1185
|
+
label: m.label,
|
|
1186
|
+
"is-invalid": m.isInvalid,
|
|
1187
|
+
name: p.name,
|
|
1188
|
+
class: $(u.value),
|
|
1189
|
+
"model-value": p.modelValue ? p.modelValue.includes(m.value) : void 0,
|
|
1190
|
+
disabled: m.disabled,
|
|
1191
|
+
"onUpdate:modelValue": (b) => i(b, m.value)
|
|
1192
|
+
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
854
1193
|
], 2));
|
|
855
1194
|
}
|
|
856
|
-
}),
|
|
1195
|
+
}), ps = /* @__PURE__ */ _(Ja, [["__scopeId", "data-v-c6b10172"]]);
|
|
857
1196
|
export {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1197
|
+
Xa as MBadge,
|
|
1198
|
+
Ya as MBreadcrumb,
|
|
1199
|
+
ne as MButton,
|
|
1200
|
+
ce as MCheckbox,
|
|
1201
|
+
xa as MCheckboxGroup,
|
|
1202
|
+
es as MField,
|
|
1203
|
+
as as MFieldGroup,
|
|
1204
|
+
ss as MIconButton,
|
|
1205
|
+
A as MLink,
|
|
1206
|
+
Y as MLoader,
|
|
1207
|
+
ts as MOverlay,
|
|
1208
|
+
ls as MPasswordInput,
|
|
1209
|
+
ns as MQuantitySelector,
|
|
1210
|
+
ta as MRadio,
|
|
1211
|
+
os as MRadioGroup,
|
|
1212
|
+
is as MSelect,
|
|
1213
|
+
ds as MStatusBadge,
|
|
1214
|
+
rs as MStatusNotification,
|
|
1215
|
+
cs as MTextArea,
|
|
1216
|
+
us as MTextInput,
|
|
1217
|
+
Wa as MToggle,
|
|
1218
|
+
ps as MToggleGroup
|
|
876
1219
|
};
|
|
877
1220
|
//# sourceMappingURL=mozaic-vue.js.map
|