@mozaic-ds/vue 1.0.0-beta.5 → 1.0.0-beta.8
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 +19 -160
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.d.ts +324 -141
- package/dist/mozaic-vue.js +870 -542
- package/dist/mozaic-vue.js.map +1 -1
- package/dist/mozaic-vue.umd.cjs +1 -1
- package/dist/mozaic-vue.umd.cjs.map +1 -1
- package/package.json +2 -2
- package/src/components/GettingStarted.mdx +1 -1
- package/src/components/Introduction.mdx +35 -9
- package/src/components/Support.mdx +1 -1
- package/src/components/breadcrumb/MBreadcrumb.stories.ts +27 -0
- package/src/components/divider/MDivider.spec.ts +57 -0
- package/src/components/divider/MDivider.stories.ts +64 -0
- package/src/components/divider/MDivider.vue +56 -0
- package/src/components/link/MLink.vue +1 -1
- package/src/components/numberbadge/MNumberBadge.spec.ts +56 -0
- package/src/components/{badge/MBadge.stories.ts → numberbadge/MNumberBadge.stories.ts} +8 -8
- package/src/components/{badge/MBadge.vue → numberbadge/MNumberBadge.vue} +4 -4
- package/src/components/pagination/MPagination.spec.ts +123 -0
- package/src/components/pagination/MPagination.stories.ts +83 -0
- package/src/components/pagination/MPagination.vue +140 -0
- package/src/components/tabs/MTabs.stories.ts +104 -0
- package/src/components/tabs/MTabs.vue +113 -0
- package/src/components/tabs/Mtabs.spec.ts +154 -0
- package/src/components/tag/MTag.spec.ts +107 -0
- package/src/components/tag/MTag.stories.ts +75 -0
- package/src/components/tag/MTag.vue +154 -0
- package/src/main.ts +26 -47
- package/src/components/badge/MBadge.spec.ts +0 -16
package/dist/mozaic-vue.js
CHANGED
|
@@ -1,34 +1,13 @@
|
|
|
1
|
-
import { defineComponent as y, computed as
|
|
2
|
-
const
|
|
3
|
-
__name: "MBadge",
|
|
4
|
-
props: {
|
|
5
|
-
label: {},
|
|
6
|
-
appearance: { default: "standard" },
|
|
7
|
-
size: { default: "s" }
|
|
8
|
-
},
|
|
9
|
-
setup(o) {
|
|
10
|
-
const a = o, t = v(() => ({
|
|
11
|
-
[`mc-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
12
|
-
[`mc-badge--${a.size}`]: a.size && a.size != "s"
|
|
13
|
-
}));
|
|
14
|
-
return (e, i) => (l(), n("span", {
|
|
15
|
-
class: $(["mc-badge", t.value])
|
|
16
|
-
}, f(e.label), 3));
|
|
17
|
-
}
|
|
18
|
-
}), _ = (o, a) => {
|
|
19
|
-
const t = o.__vccOpts || o;
|
|
20
|
-
for (const [e, i] of a)
|
|
21
|
-
t[e] = i;
|
|
22
|
-
return t;
|
|
23
|
-
}, Xa = /* @__PURE__ */ _(U, [["__scopeId", "data-v-b427cc61"]]), D = {
|
|
1
|
+
import { defineComponent as y, computed as b, createBlock as C, openBlock as l, resolveDynamicComponent as j, normalizeClass as $, withCtx as M, createElementBlock as n, createCommentVNode as h, createElementVNode as i, renderSlot as V, Fragment as z, renderList as L, createVNode as g, createTextVNode as S, toDisplayString as f, normalizeStyle as U, mergeProps as k, ref as B, watch as O, withDirectives as D, vModelDynamic as F, vModelText as G } from "vue";
|
|
2
|
+
const R = {
|
|
24
3
|
key: 0,
|
|
25
4
|
class: "mc-link__icon",
|
|
26
5
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
6
|
+
}, A = { class: "mc-link__label" }, H = {
|
|
28
7
|
key: 1,
|
|
29
8
|
class: "mc-link__icon",
|
|
30
9
|
"aria-hidden": "true"
|
|
31
|
-
},
|
|
10
|
+
}, E = /* @__PURE__ */ y({
|
|
32
11
|
__name: "MLink",
|
|
33
12
|
props: {
|
|
34
13
|
iconPosition: { default: "left" },
|
|
@@ -39,67 +18,72 @@ const U = /* @__PURE__ */ y({
|
|
|
39
18
|
inline: { type: Boolean },
|
|
40
19
|
router: { type: Boolean }
|
|
41
20
|
},
|
|
42
|
-
setup(
|
|
43
|
-
const a =
|
|
21
|
+
setup(d) {
|
|
22
|
+
const a = d, s = b(() => ({
|
|
44
23
|
[`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
45
24
|
[`mc-link--${a.size}`]: a.size && a.size != "s",
|
|
46
25
|
"mc-link--inline": a.inline,
|
|
47
26
|
"mc-link--stand-alone": !a.inline
|
|
48
27
|
}));
|
|
49
|
-
return (e,
|
|
50
|
-
class: $(["mc-link",
|
|
28
|
+
return (e, o) => (l(), C(j(e.router ? "router-link" : "a"), {
|
|
29
|
+
class: $(["mc-link", s.value]),
|
|
51
30
|
href: e.href,
|
|
52
31
|
target: e.target,
|
|
53
32
|
to: e.router ? e.href : void 0
|
|
54
33
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
e.$slots.icon && e.iconPosition == "left" ? (l(), n("span",
|
|
57
|
-
|
|
34
|
+
default: M(() => [
|
|
35
|
+
e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", R, [
|
|
36
|
+
V(e.$slots, "icon", {}, void 0, !0)
|
|
58
37
|
])) : h("", !0),
|
|
59
|
-
|
|
60
|
-
|
|
38
|
+
i("span", A, [
|
|
39
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
61
40
|
]),
|
|
62
|
-
e.$slots.icon && e.iconPosition == "right" ? (l(), n("span",
|
|
63
|
-
|
|
41
|
+
e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", H, [
|
|
42
|
+
V(e.$slots, "icon", {}, void 0, !0)
|
|
64
43
|
])) : h("", !0)
|
|
65
44
|
]),
|
|
66
45
|
_: 3
|
|
67
46
|
}, 8, ["class", "href", "target", "to"]));
|
|
68
47
|
}
|
|
69
|
-
}),
|
|
48
|
+
}), v = (d, a) => {
|
|
49
|
+
const s = d.__vccOpts || d;
|
|
50
|
+
for (const [e, o] of a)
|
|
51
|
+
s[e] = o;
|
|
52
|
+
return s;
|
|
53
|
+
}, Q = /* @__PURE__ */ v(E, [["__scopeId", "data-v-df607c25"]]), W = { class: "mc-breadcrumb__container" }, J = /* @__PURE__ */ y({
|
|
70
54
|
__name: "MBreadcrumb",
|
|
71
55
|
props: {
|
|
72
56
|
appearance: {},
|
|
73
57
|
links: {}
|
|
74
58
|
},
|
|
75
|
-
setup(
|
|
76
|
-
const a =
|
|
59
|
+
setup(d) {
|
|
60
|
+
const a = d, s = b(() => ({
|
|
77
61
|
[`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
|
|
78
|
-
})), e = (
|
|
79
|
-
var
|
|
80
|
-
return
|
|
62
|
+
})), e = (o) => {
|
|
63
|
+
var t;
|
|
64
|
+
return o === (((t = a.links) == null ? void 0 : t.length) ?? 0) - 1;
|
|
81
65
|
};
|
|
82
|
-
return (
|
|
83
|
-
class: $(["mc-breadcrumb",
|
|
66
|
+
return (o, t) => (l(), n("nav", {
|
|
67
|
+
class: $(["mc-breadcrumb", s.value]),
|
|
84
68
|
"aria-label": "Breadcrumb"
|
|
85
69
|
}, [
|
|
86
|
-
|
|
87
|
-
(l(!0), n(
|
|
70
|
+
i("ul", W, [
|
|
71
|
+
(l(!0), n(z, null, L(o.links, (c, u) => (l(), n("li", {
|
|
88
72
|
class: "mc-breadcrumb__item",
|
|
89
|
-
key: `breadcrumb-${
|
|
73
|
+
key: `breadcrumb-${u}`
|
|
90
74
|
}, [
|
|
91
|
-
|
|
92
|
-
href:
|
|
93
|
-
router:
|
|
94
|
-
appearance:
|
|
75
|
+
g(Q, {
|
|
76
|
+
href: c.href,
|
|
77
|
+
router: c.router,
|
|
78
|
+
appearance: o.appearance,
|
|
95
79
|
inline: "",
|
|
96
80
|
class: $({
|
|
97
|
-
"mc-breadcrumb__current": e(
|
|
81
|
+
"mc-breadcrumb__current": e(u)
|
|
98
82
|
}),
|
|
99
|
-
"aria-current": e(
|
|
83
|
+
"aria-current": e(u) ? "page" : void 0
|
|
100
84
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
85
|
+
default: M(() => [
|
|
86
|
+
S(f(c.label), 1)
|
|
103
87
|
]),
|
|
104
88
|
_: 2
|
|
105
89
|
}, 1032, ["href", "router", "appearance", "class", "aria-current"])
|
|
@@ -107,83 +91,83 @@ const U = /* @__PURE__ */ y({
|
|
|
107
91
|
])
|
|
108
92
|
], 2));
|
|
109
93
|
}
|
|
110
|
-
}),
|
|
94
|
+
}), Lt = /* @__PURE__ */ v(J, [["__scopeId", "data-v-09df4905"]]), K = { class: "mc-loader__spinner" }, X = ["viewBox"], Y = ["r"], x = {
|
|
111
95
|
key: 0,
|
|
112
96
|
class: "mc-loader__text",
|
|
113
97
|
role: "status"
|
|
114
|
-
},
|
|
98
|
+
}, ee = /* @__PURE__ */ y({
|
|
115
99
|
__name: "MLoader",
|
|
116
100
|
props: {
|
|
117
101
|
appearance: { default: "standard" },
|
|
118
102
|
size: { default: "m" },
|
|
119
103
|
text: {}
|
|
120
104
|
},
|
|
121
|
-
setup(
|
|
122
|
-
const a =
|
|
105
|
+
setup(d) {
|
|
106
|
+
const a = d, s = b(() => ({
|
|
123
107
|
[`mc-loader--${a.size}`]: a.size && a.size !== "m",
|
|
124
108
|
[`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard"
|
|
125
|
-
})), e =
|
|
126
|
-
let
|
|
109
|
+
})), e = b(() => {
|
|
110
|
+
let t;
|
|
127
111
|
switch (a.size) {
|
|
128
112
|
case "s":
|
|
129
|
-
|
|
113
|
+
t = "0 0 24 24";
|
|
130
114
|
break;
|
|
131
115
|
case "l":
|
|
132
|
-
|
|
116
|
+
t = "0 0 64 64";
|
|
133
117
|
break;
|
|
134
118
|
default:
|
|
135
|
-
|
|
119
|
+
t = "0 0 32 32";
|
|
136
120
|
}
|
|
137
|
-
return
|
|
138
|
-
}),
|
|
139
|
-
let
|
|
121
|
+
return t;
|
|
122
|
+
}), o = b(() => {
|
|
123
|
+
let t;
|
|
140
124
|
switch (a.size) {
|
|
141
125
|
case "s":
|
|
142
|
-
|
|
126
|
+
t = 6;
|
|
143
127
|
break;
|
|
144
128
|
case "l":
|
|
145
|
-
|
|
129
|
+
t = 19;
|
|
146
130
|
break;
|
|
147
131
|
default:
|
|
148
|
-
|
|
132
|
+
t = 9;
|
|
149
133
|
}
|
|
150
|
-
return
|
|
134
|
+
return t;
|
|
151
135
|
});
|
|
152
|
-
return (
|
|
153
|
-
class: $(["mc-loader",
|
|
136
|
+
return (t, c) => (l(), n("div", {
|
|
137
|
+
class: $(["mc-loader", s.value])
|
|
154
138
|
}, [
|
|
155
|
-
|
|
139
|
+
i("span", K, [
|
|
156
140
|
(l(), n("svg", {
|
|
157
141
|
class: "mc-loader__icon",
|
|
158
142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
159
143
|
viewBox: e.value,
|
|
160
144
|
"aria-hidden": "true"
|
|
161
145
|
}, [
|
|
162
|
-
|
|
146
|
+
i("circle", {
|
|
163
147
|
class: "mc-loader__path",
|
|
164
148
|
cx: "50%",
|
|
165
149
|
cy: "50%",
|
|
166
|
-
r:
|
|
167
|
-
}, null, 8,
|
|
168
|
-
], 8,
|
|
150
|
+
r: o.value
|
|
151
|
+
}, null, 8, Y)
|
|
152
|
+
], 8, X))
|
|
169
153
|
]),
|
|
170
|
-
|
|
154
|
+
t.text ? (l(), n("p", x, f(t.text), 1)) : h("", !0)
|
|
171
155
|
], 2));
|
|
172
156
|
}
|
|
173
|
-
}),
|
|
157
|
+
}), ae = /* @__PURE__ */ v(ee, [["__scopeId", "data-v-56c66912"]]), te = ["disabled", "type"], se = {
|
|
174
158
|
key: 0,
|
|
175
159
|
class: "mc-button__icon"
|
|
176
|
-
},
|
|
160
|
+
}, le = {
|
|
177
161
|
key: 1,
|
|
178
162
|
class: "mc-button__icon",
|
|
179
163
|
style: { position: "absolute" }
|
|
180
|
-
},
|
|
164
|
+
}, ne = {
|
|
181
165
|
key: 2,
|
|
182
166
|
class: "mc-button__icon"
|
|
183
|
-
},
|
|
167
|
+
}, oe = {
|
|
184
168
|
key: 4,
|
|
185
169
|
class: "mc-button__icon"
|
|
186
|
-
},
|
|
170
|
+
}, ie = /* @__PURE__ */ y({
|
|
187
171
|
__name: "MButton",
|
|
188
172
|
props: {
|
|
189
173
|
appearance: { default: "standard" },
|
|
@@ -195,45 +179,45 @@ const U = /* @__PURE__ */ y({
|
|
|
195
179
|
type: { default: "button" },
|
|
196
180
|
isLoading: { type: Boolean }
|
|
197
181
|
},
|
|
198
|
-
setup(
|
|
199
|
-
const a =
|
|
182
|
+
setup(d) {
|
|
183
|
+
const a = d, s = b(() => ({
|
|
200
184
|
[`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
201
185
|
[`mc-button--${a.size}`]: a.size && a.size != "m",
|
|
202
186
|
"mc-button--ghost": a.ghost,
|
|
203
187
|
"mc-button--outlined": a.outlined,
|
|
204
188
|
"mc-button--icon-only": a.iconPosition == "only"
|
|
205
189
|
}));
|
|
206
|
-
return (e,
|
|
207
|
-
class: $(["mc-button",
|
|
190
|
+
return (e, o) => (l(), n("button", {
|
|
191
|
+
class: $(["mc-button", s.value]),
|
|
208
192
|
disabled: e.disabled,
|
|
209
193
|
type: e.type
|
|
210
194
|
}, [
|
|
211
|
-
e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span",
|
|
212
|
-
|
|
195
|
+
e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", se, [
|
|
196
|
+
V(e.$slots, "icon", {}, void 0, !0)
|
|
213
197
|
])) : h("", !0),
|
|
214
|
-
e.isLoading ? (l(), n("span",
|
|
215
|
-
|
|
198
|
+
e.isLoading ? (l(), n("span", le, [
|
|
199
|
+
g(ae, {
|
|
216
200
|
style: { color: "currentColor" },
|
|
217
201
|
size: "s"
|
|
218
202
|
})
|
|
219
203
|
])) : h("", !0),
|
|
220
|
-
e.$slots.icon && e.iconPosition == "only" ? (l(), n("span",
|
|
221
|
-
|
|
204
|
+
e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", ne, [
|
|
205
|
+
V(e.$slots, "icon", {}, void 0, !0)
|
|
222
206
|
])) : (l(), n("span", {
|
|
223
207
|
key: 3,
|
|
224
208
|
class: "mc-button__label",
|
|
225
|
-
style:
|
|
209
|
+
style: U({ visibility: e.isLoading ? "hidden" : "visible" })
|
|
226
210
|
}, [
|
|
227
|
-
|
|
228
|
-
|
|
211
|
+
V(e.$slots, "default", {}, () => [
|
|
212
|
+
o[0] || (o[0] = S("Button Label"))
|
|
229
213
|
], !0)
|
|
230
214
|
], 4)),
|
|
231
|
-
e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span",
|
|
232
|
-
|
|
215
|
+
e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", oe, [
|
|
216
|
+
V(e.$slots, "icon", {}, void 0, !0)
|
|
233
217
|
])) : h("", !0)
|
|
234
|
-
], 10,
|
|
218
|
+
], 10, te));
|
|
235
219
|
}
|
|
236
|
-
}),
|
|
220
|
+
}), T = /* @__PURE__ */ v(ie, [["__scopeId", "data-v-f4f43ab6"]]), de = { class: "mc-checkbox" }, re = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], ce = ["for"], ue = /* @__PURE__ */ y({
|
|
237
221
|
__name: "MCheckbox",
|
|
238
222
|
props: {
|
|
239
223
|
id: {},
|
|
@@ -245,31 +229,31 @@ const U = /* @__PURE__ */ y({
|
|
|
245
229
|
disabled: { type: Boolean }
|
|
246
230
|
},
|
|
247
231
|
emits: ["update:modelValue"],
|
|
248
|
-
setup(
|
|
249
|
-
const
|
|
250
|
-
"is-invalid":
|
|
251
|
-
})),
|
|
252
|
-
return (
|
|
253
|
-
|
|
254
|
-
id:
|
|
232
|
+
setup(d, { emit: a }) {
|
|
233
|
+
const s = d, e = b(() => ({
|
|
234
|
+
"is-invalid": s.isInvalid
|
|
235
|
+
})), o = a;
|
|
236
|
+
return (t, c) => (l(), n("div", de, [
|
|
237
|
+
i("input", k({
|
|
238
|
+
id: t.id,
|
|
255
239
|
type: "checkbox",
|
|
256
240
|
class: ["mc-checkbox__input", e.value],
|
|
257
|
-
name:
|
|
258
|
-
checked:
|
|
259
|
-
indeterminate:
|
|
260
|
-
disabled:
|
|
261
|
-
"aria-invalid":
|
|
262
|
-
},
|
|
263
|
-
onChange:
|
|
264
|
-
}), null, 16,
|
|
265
|
-
|
|
241
|
+
name: t.name,
|
|
242
|
+
checked: t.modelValue,
|
|
243
|
+
indeterminate: t.indeterminate,
|
|
244
|
+
disabled: t.disabled,
|
|
245
|
+
"aria-invalid": t.isInvalid
|
|
246
|
+
}, t.$attrs, {
|
|
247
|
+
onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
|
|
248
|
+
}), null, 16, re),
|
|
249
|
+
t.label ? (l(), n("label", {
|
|
266
250
|
key: 0,
|
|
267
|
-
for:
|
|
251
|
+
for: t.id,
|
|
268
252
|
class: "mc-checkbox__label"
|
|
269
|
-
}, f(
|
|
253
|
+
}, f(t.label), 9, ce)) : h("", !0)
|
|
270
254
|
]));
|
|
271
255
|
}
|
|
272
|
-
}),
|
|
256
|
+
}), pe = /* @__PURE__ */ v(ue, [["__scopeId", "data-v-37fd0a35"]]), me = /* @__PURE__ */ y({
|
|
273
257
|
__name: "MCheckboxGroup",
|
|
274
258
|
props: {
|
|
275
259
|
name: {},
|
|
@@ -278,43 +262,63 @@ const U = /* @__PURE__ */ y({
|
|
|
278
262
|
inline: { type: Boolean }
|
|
279
263
|
},
|
|
280
264
|
emits: ["update:modelValue"],
|
|
281
|
-
setup(
|
|
282
|
-
const
|
|
265
|
+
setup(d, { emit: a }) {
|
|
266
|
+
const s = d, e = B([]);
|
|
283
267
|
O(
|
|
284
|
-
() =>
|
|
268
|
+
() => s.modelValue,
|
|
285
269
|
(p) => {
|
|
286
270
|
e.value = p || [];
|
|
287
271
|
},
|
|
288
272
|
{ immediate: !0 }
|
|
289
273
|
);
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
p && !
|
|
293
|
-
},
|
|
294
|
-
"mc-field__container--inline":
|
|
295
|
-
})),
|
|
296
|
-
"mc-field__container--inline__item":
|
|
297
|
-
})),
|
|
298
|
-
return (p,
|
|
299
|
-
class: $(["mc-field__container",
|
|
274
|
+
const o = (p, m) => {
|
|
275
|
+
let r = [...e.value];
|
|
276
|
+
p && !r.includes(m) ? r.push(m) : r = r.filter((_) => _ !== m), u("update:modelValue", r), e.value = r;
|
|
277
|
+
}, t = b(() => ({
|
|
278
|
+
"mc-field__container--inline": s.inline
|
|
279
|
+
})), c = b(() => ({
|
|
280
|
+
"mc-field__container--inline__item": s.inline
|
|
281
|
+
})), u = a;
|
|
282
|
+
return (p, m) => (l(), n("div", {
|
|
283
|
+
class: $(["mc-field__container", t.value])
|
|
300
284
|
}, [
|
|
301
|
-
(l(!0), n(
|
|
302
|
-
id:
|
|
303
|
-
key:
|
|
304
|
-
label:
|
|
305
|
-
"is-invalid":
|
|
285
|
+
(l(!0), n(z, null, L(p.options, (r) => (l(), C(pe, {
|
|
286
|
+
id: r.id,
|
|
287
|
+
key: r.id,
|
|
288
|
+
label: r.label,
|
|
289
|
+
"is-invalid": r.isInvalid,
|
|
306
290
|
name: p.name,
|
|
307
|
-
class: $(["mc-field__item",
|
|
308
|
-
"model-value": p.modelValue ? p.modelValue.includes(
|
|
309
|
-
disabled:
|
|
310
|
-
"onUpdate:modelValue": (
|
|
291
|
+
class: $(["mc-field__item", c.value]),
|
|
292
|
+
"model-value": p.modelValue ? p.modelValue.includes(r.value) : void 0,
|
|
293
|
+
disabled: r.disabled,
|
|
294
|
+
"onUpdate:modelValue": (_) => o(_, r.value)
|
|
311
295
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
312
296
|
], 2));
|
|
313
297
|
}
|
|
314
|
-
}),
|
|
298
|
+
}), St = /* @__PURE__ */ v(me, [["__scopeId", "data-v-8ee4699f"]]), _e = { class: "mc-divider" }, ve = /* @__PURE__ */ y({
|
|
299
|
+
__name: "MDivider",
|
|
300
|
+
props: {
|
|
301
|
+
orientation: { default: "horizontal" },
|
|
302
|
+
style: { default: "primary" },
|
|
303
|
+
size: { default: "s" }
|
|
304
|
+
},
|
|
305
|
+
setup(d) {
|
|
306
|
+
const a = d, s = b(() => ({
|
|
307
|
+
[`mc-divider-${a.orientation}`]: a.orientation,
|
|
308
|
+
[`mc-divider-horizontal--${a.style}`]: a.style && a.style != "primary",
|
|
309
|
+
[`mc-divider-horizontal--${a.size}`]: a.size && a.size != "s"
|
|
310
|
+
}));
|
|
311
|
+
return (e, o) => (l(), n("div", _e, [
|
|
312
|
+
i("div", {
|
|
313
|
+
class: $(s.value)
|
|
314
|
+
}, null, 2),
|
|
315
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
316
|
+
]));
|
|
317
|
+
}
|
|
318
|
+
}), be = /* @__PURE__ */ v(ve, [["__scopeId", "data-v-b2b223a3"]]), fe = { class: "mc-field" }, he = ["for"], $e = {
|
|
315
319
|
key: 0,
|
|
316
320
|
class: "mc-field__requirement"
|
|
317
|
-
},
|
|
321
|
+
}, ye = ["id"], ge = { class: "mc-field__content" }, ke = ["id"], Ve = /* @__PURE__ */ y({
|
|
318
322
|
__name: "MField",
|
|
319
323
|
props: {
|
|
320
324
|
id: {},
|
|
@@ -327,41 +331,41 @@ const U = /* @__PURE__ */ y({
|
|
|
327
331
|
messageId: {},
|
|
328
332
|
message: {}
|
|
329
333
|
},
|
|
330
|
-
setup(
|
|
331
|
-
const a =
|
|
334
|
+
setup(d) {
|
|
335
|
+
const a = d, s = b(() => ({
|
|
332
336
|
"is-valid": a.isValid,
|
|
333
337
|
"is-invalid": a.isInvalid
|
|
334
338
|
}));
|
|
335
|
-
return (e,
|
|
336
|
-
|
|
339
|
+
return (e, o) => (l(), n("div", fe, [
|
|
340
|
+
i("label", {
|
|
337
341
|
class: "mc-field__label",
|
|
338
342
|
for: e.id
|
|
339
343
|
}, [
|
|
340
|
-
|
|
341
|
-
e.requirementText ? (l(), n("span",
|
|
342
|
-
], 8,
|
|
344
|
+
S(f(e.label) + " ", 1),
|
|
345
|
+
e.requirementText ? (l(), n("span", $e, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
|
|
346
|
+
], 8, he),
|
|
343
347
|
e.helpId && e.helpText ? (l(), n("span", {
|
|
344
348
|
key: 0,
|
|
345
349
|
id: e.helpId,
|
|
346
350
|
class: "mc-field__help"
|
|
347
|
-
}, f(e.helpText), 9,
|
|
348
|
-
|
|
349
|
-
|
|
351
|
+
}, f(e.helpText), 9, ye)) : h("", !0),
|
|
352
|
+
i("div", ge, [
|
|
353
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
350
354
|
]),
|
|
351
355
|
(e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
|
|
352
356
|
key: 1,
|
|
353
|
-
class: $(["mc-field__validation-message",
|
|
357
|
+
class: $(["mc-field__validation-message", s.value]),
|
|
354
358
|
id: e.messageId
|
|
355
|
-
}, f(e.message), 11,
|
|
359
|
+
}, f(e.message), 11, ke)) : h("", !0)
|
|
356
360
|
]));
|
|
357
361
|
}
|
|
358
|
-
}),
|
|
362
|
+
}), Ot = /* @__PURE__ */ v(Ve, [["__scopeId", "data-v-ead078c4"]]), Ce = { class: "mc-field--group" }, we = ["for"], Ie = {
|
|
359
363
|
key: 0,
|
|
360
364
|
class: "mc-field__requirement"
|
|
361
|
-
},
|
|
365
|
+
}, Be = {
|
|
362
366
|
key: 0,
|
|
363
367
|
class: "mc-field__help"
|
|
364
|
-
},
|
|
368
|
+
}, Me = { class: "mc-field__content" }, ze = /* @__PURE__ */ y({
|
|
365
369
|
__name: "MFieldGroup",
|
|
366
370
|
props: {
|
|
367
371
|
id: {},
|
|
@@ -372,30 +376,30 @@ const U = /* @__PURE__ */ y({
|
|
|
372
376
|
isInvalid: { type: Boolean },
|
|
373
377
|
message: {}
|
|
374
378
|
},
|
|
375
|
-
setup(
|
|
376
|
-
const a =
|
|
379
|
+
setup(d) {
|
|
380
|
+
const a = d, s = b(() => ({
|
|
377
381
|
"is-valid": a.isValid,
|
|
378
382
|
"is-invalid": a.isInvalid
|
|
379
383
|
}));
|
|
380
|
-
return (e,
|
|
381
|
-
|
|
384
|
+
return (e, o) => (l(), n("fieldset", Ce, [
|
|
385
|
+
i("legend", {
|
|
382
386
|
class: "mc-field__legend",
|
|
383
387
|
for: e.id
|
|
384
388
|
}, [
|
|
385
|
-
|
|
386
|
-
e.requirementText ? (l(), n("span",
|
|
387
|
-
], 8,
|
|
388
|
-
e.helpText ? (l(), n("span",
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
S(f(e.legend) + " ", 1),
|
|
390
|
+
e.requirementText ? (l(), n("span", Ie, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
|
|
391
|
+
], 8, we),
|
|
392
|
+
e.helpText ? (l(), n("span", Be, f(e.helpText), 1)) : h("", !0),
|
|
393
|
+
i("div", Me, [
|
|
394
|
+
V(e.$slots, "default", {}, void 0, !0)
|
|
391
395
|
]),
|
|
392
396
|
(e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
|
|
393
397
|
key: 1,
|
|
394
|
-
class: $(["mc-field__validation-message",
|
|
398
|
+
class: $(["mc-field__validation-message", s.value])
|
|
395
399
|
}, f(e.message), 3)) : h("", !0)
|
|
396
400
|
]));
|
|
397
401
|
}
|
|
398
|
-
}),
|
|
402
|
+
}), Tt = /* @__PURE__ */ v(ze, [["__scopeId", "data-v-fc0c08dc"]]), Le = ["disabled", "type"], Se = { class: "mc-button__icon" }, Oe = /* @__PURE__ */ y({
|
|
399
403
|
__name: "MIconButton",
|
|
400
404
|
props: {
|
|
401
405
|
appearance: { default: "standard" },
|
|
@@ -405,43 +409,274 @@ const U = /* @__PURE__ */ y({
|
|
|
405
409
|
outlined: { type: Boolean },
|
|
406
410
|
type: { default: "button" }
|
|
407
411
|
},
|
|
408
|
-
setup(
|
|
409
|
-
const a =
|
|
412
|
+
setup(d) {
|
|
413
|
+
const a = d, s = b(() => ({
|
|
410
414
|
[`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
411
415
|
[`mc-button--${a.size}`]: a.size && a.size != "m",
|
|
412
416
|
"mc-button--ghost": a.ghost,
|
|
413
417
|
"mc-button--outlined": a.outlined
|
|
414
418
|
}));
|
|
415
|
-
return (e,
|
|
416
|
-
class: $(["mc-button mc-button--icon-button",
|
|
419
|
+
return (e, o) => (l(), n("button", {
|
|
420
|
+
class: $(["mc-button mc-button--icon-button", s.value]),
|
|
417
421
|
disabled: e.disabled,
|
|
418
422
|
type: e.type
|
|
419
423
|
}, [
|
|
420
|
-
|
|
421
|
-
|
|
424
|
+
i("span", Se, [
|
|
425
|
+
V(e.$slots, "icon", {}, void 0, !0)
|
|
422
426
|
])
|
|
423
|
-
], 10,
|
|
427
|
+
], 10, Le));
|
|
424
428
|
}
|
|
425
|
-
}),
|
|
429
|
+
}), P = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-abf78562"]]), Te = /* @__PURE__ */ y({
|
|
430
|
+
__name: "MNumberBadge",
|
|
431
|
+
props: {
|
|
432
|
+
label: {},
|
|
433
|
+
appearance: { default: "standard" },
|
|
434
|
+
size: { default: "s" }
|
|
435
|
+
},
|
|
436
|
+
setup(d) {
|
|
437
|
+
const a = d, s = b(() => ({
|
|
438
|
+
[`mc-number-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
439
|
+
[`mc-number-badge--${a.size}`]: a.size && a.size != "s"
|
|
440
|
+
}));
|
|
441
|
+
return (e, o) => (l(), n("span", {
|
|
442
|
+
class: $(["mc-number-badge", s.value])
|
|
443
|
+
}, f(e.label), 3));
|
|
444
|
+
}
|
|
445
|
+
}), je = /* @__PURE__ */ v(Te, [["__scopeId", "data-v-7e6acb92"]]), qe = ["aria-labelledby"], Pe = /* @__PURE__ */ y({
|
|
426
446
|
__name: "MOverlay",
|
|
427
447
|
props: {
|
|
428
448
|
isVisible: { type: Boolean },
|
|
429
449
|
dialogLabel: {}
|
|
430
450
|
},
|
|
431
|
-
setup(
|
|
432
|
-
return (a,
|
|
451
|
+
setup(d) {
|
|
452
|
+
return (a, s) => (l(), n("div", {
|
|
433
453
|
class: $(["mc-overlay", { "is-visible": a.isVisible }])
|
|
434
454
|
}, [
|
|
435
|
-
|
|
455
|
+
i("div", {
|
|
436
456
|
role: "dialog",
|
|
437
457
|
tabindex: "-1",
|
|
438
458
|
"aria-labelledby": a.dialogLabel
|
|
439
459
|
}, [
|
|
440
|
-
|
|
441
|
-
], 8,
|
|
460
|
+
V(a.$slots, "default", {}, void 0, !0)
|
|
461
|
+
], 8, qe)
|
|
442
462
|
], 2));
|
|
443
463
|
}
|
|
444
|
-
}),
|
|
464
|
+
}), jt = /* @__PURE__ */ v(Pe, [["__scopeId", "data-v-db90fdb3"]]), Ze = ["id", "name", "value", "disabled"], Ne = {
|
|
465
|
+
key: 0,
|
|
466
|
+
value: "",
|
|
467
|
+
disabled: ""
|
|
468
|
+
}, De = ["value", "disabled"], Ue = /* @__PURE__ */ y({
|
|
469
|
+
__name: "MSelect",
|
|
470
|
+
props: {
|
|
471
|
+
id: {},
|
|
472
|
+
name: {},
|
|
473
|
+
options: {},
|
|
474
|
+
modelValue: {},
|
|
475
|
+
placeholder: {},
|
|
476
|
+
isInvalid: { type: Boolean },
|
|
477
|
+
disabled: { type: Boolean },
|
|
478
|
+
size: { default: "m" },
|
|
479
|
+
readonly: { type: Boolean }
|
|
480
|
+
},
|
|
481
|
+
emits: ["update:modelValue"],
|
|
482
|
+
setup(d, { emit: a }) {
|
|
483
|
+
const s = d, e = b(() => ({
|
|
484
|
+
[`mc-select--${s.size}`]: s.size && s.size != "m",
|
|
485
|
+
"mc-select--readonly": s.readonly,
|
|
486
|
+
"is-invalid": s.isInvalid
|
|
487
|
+
})), o = a;
|
|
488
|
+
return (t, c) => (l(), n("select", k({
|
|
489
|
+
id: t.id,
|
|
490
|
+
class: ["mc-select", e.value],
|
|
491
|
+
name: t.name,
|
|
492
|
+
value: t.modelValue,
|
|
493
|
+
disabled: t.disabled
|
|
494
|
+
}, t.$attrs, {
|
|
495
|
+
onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.value))
|
|
496
|
+
}), [
|
|
497
|
+
t.placeholder ? (l(), n("option", Ne, " -- " + f(t.placeholder) + " -- ", 1)) : h("", !0),
|
|
498
|
+
(l(!0), n(z, null, L(t.options, (u, p) => (l(), n("option", k({
|
|
499
|
+
key: p,
|
|
500
|
+
value: u.value
|
|
501
|
+
}, { ref_for: !0 }, u.attributes, {
|
|
502
|
+
disabled: u.disabled
|
|
503
|
+
}), f(u.text), 17, De))), 128))
|
|
504
|
+
], 16, Ze));
|
|
505
|
+
}
|
|
506
|
+
}), Fe = /* @__PURE__ */ v(Ue, [["__scopeId", "data-v-68c735e4"]]), Ge = {
|
|
507
|
+
name: "ChevronLeft24",
|
|
508
|
+
props: {
|
|
509
|
+
/**
|
|
510
|
+
* Icon color
|
|
511
|
+
*/
|
|
512
|
+
color: {
|
|
513
|
+
type: String,
|
|
514
|
+
default: "currentColor"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}, Re = {
|
|
518
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
519
|
+
viewBox: "0 0 24 24"
|
|
520
|
+
};
|
|
521
|
+
function Ae(d, a, s, e, o, t) {
|
|
522
|
+
return l(), n("svg", Re, a[0] || (a[0] = [
|
|
523
|
+
i("g", { "clip-path": "url(#a)" }, [
|
|
524
|
+
i("path", {
|
|
525
|
+
"fill-rule": "evenodd",
|
|
526
|
+
d: "M15.207 6.293a1 1 0 0 1 0 1.414L10.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 0Z"
|
|
527
|
+
})
|
|
528
|
+
], -1),
|
|
529
|
+
i("defs", null, [
|
|
530
|
+
i("clipPath", { id: "a" }, [
|
|
531
|
+
i("rect", {
|
|
532
|
+
width: "24",
|
|
533
|
+
height: "24",
|
|
534
|
+
fill: "#fff"
|
|
535
|
+
})
|
|
536
|
+
])
|
|
537
|
+
], -1)
|
|
538
|
+
]));
|
|
539
|
+
}
|
|
540
|
+
const Z = /* @__PURE__ */ v(Ge, [["render", Ae]]), He = {
|
|
541
|
+
name: "ChevronRight24",
|
|
542
|
+
props: {
|
|
543
|
+
/**
|
|
544
|
+
* Icon color
|
|
545
|
+
*/
|
|
546
|
+
color: {
|
|
547
|
+
type: String,
|
|
548
|
+
default: "currentColor"
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}, Ee = {
|
|
552
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
553
|
+
viewBox: "0 0 24 24"
|
|
554
|
+
};
|
|
555
|
+
function Qe(d, a, s, e, o, t) {
|
|
556
|
+
return l(), n("svg", Ee, a[0] || (a[0] = [
|
|
557
|
+
i("g", { "clip-path": "url(#a)" }, [
|
|
558
|
+
i("path", {
|
|
559
|
+
"fill-rule": "evenodd",
|
|
560
|
+
d: "M8.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.414L13.086 12 8.793 7.707a1 1 0 0 1 0-1.414Z"
|
|
561
|
+
})
|
|
562
|
+
], -1),
|
|
563
|
+
i("defs", null, [
|
|
564
|
+
i("clipPath", { id: "a" }, [
|
|
565
|
+
i("rect", {
|
|
566
|
+
width: "24",
|
|
567
|
+
height: "24",
|
|
568
|
+
fill: "#fff"
|
|
569
|
+
})
|
|
570
|
+
])
|
|
571
|
+
], -1)
|
|
572
|
+
]));
|
|
573
|
+
}
|
|
574
|
+
const N = /* @__PURE__ */ v(He, [["render", Qe]]), We = {
|
|
575
|
+
class: "mc-pagination",
|
|
576
|
+
role: "navigation",
|
|
577
|
+
"aria-label": "pagination"
|
|
578
|
+
}, Je = {
|
|
579
|
+
key: 2,
|
|
580
|
+
class: "mc-pagination__field"
|
|
581
|
+
}, Ke = {
|
|
582
|
+
key: 3,
|
|
583
|
+
class: "mc-pagination__label",
|
|
584
|
+
"aria-current": "page"
|
|
585
|
+
}, Xe = /* @__PURE__ */ y({
|
|
586
|
+
__name: "MPagination",
|
|
587
|
+
props: {
|
|
588
|
+
id: {},
|
|
589
|
+
modelValue: {},
|
|
590
|
+
compact: { type: Boolean },
|
|
591
|
+
options: {},
|
|
592
|
+
selectLabel: {}
|
|
593
|
+
},
|
|
594
|
+
emits: ["update:modelValue"],
|
|
595
|
+
setup(d, { emit: a }) {
|
|
596
|
+
const s = d, e = a, o = B(s.modelValue);
|
|
597
|
+
O(o, (r) => {
|
|
598
|
+
r !== s.modelValue && e("update:modelValue", r);
|
|
599
|
+
});
|
|
600
|
+
const t = b(
|
|
601
|
+
() => s.options.findIndex((r) => r.value === o.value)
|
|
602
|
+
), c = b(() => t.value === 0), u = b(() => t.value === s.options.length - 1), p = () => {
|
|
603
|
+
const r = s.options.findIndex(
|
|
604
|
+
(_) => _.value === o.value
|
|
605
|
+
);
|
|
606
|
+
r > 0 && (o.value = s.options[r - 1].value, e("update:modelValue", s.options[r - 1].value));
|
|
607
|
+
}, m = () => {
|
|
608
|
+
const r = s.options.findIndex(
|
|
609
|
+
(_) => _.value === o.value
|
|
610
|
+
);
|
|
611
|
+
r < s.options.length - 1 && (o.value = s.options[r + 1].value, e("update:modelValue", s.options[r + 1].value));
|
|
612
|
+
};
|
|
613
|
+
return (r, _) => {
|
|
614
|
+
var I;
|
|
615
|
+
return l(), n("nav", We, [
|
|
616
|
+
r.compact ? (l(), C(P, {
|
|
617
|
+
key: 1,
|
|
618
|
+
outlined: "",
|
|
619
|
+
"aria-label": "Previous page",
|
|
620
|
+
disabled: c.value,
|
|
621
|
+
onClick: p
|
|
622
|
+
}, {
|
|
623
|
+
icon: M(() => [
|
|
624
|
+
g(Z)
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
}, 8, ["disabled"])) : (l(), C(T, {
|
|
628
|
+
key: 0,
|
|
629
|
+
"icon-position": "only",
|
|
630
|
+
"aria-label": "Previous page",
|
|
631
|
+
disabled: c.value,
|
|
632
|
+
onClick: p
|
|
633
|
+
}, {
|
|
634
|
+
icon: M(() => [
|
|
635
|
+
g(Z)
|
|
636
|
+
]),
|
|
637
|
+
_: 1
|
|
638
|
+
}, 8, ["disabled"])),
|
|
639
|
+
r.compact ? h("", !0) : (l(), n("div", Je, [
|
|
640
|
+
g(Fe, {
|
|
641
|
+
class: "mc-pagination__select",
|
|
642
|
+
id: r.id,
|
|
643
|
+
modelValue: o.value,
|
|
644
|
+
"onUpdate:modelValue": [
|
|
645
|
+
_[0] || (_[0] = (w) => o.value = w),
|
|
646
|
+
_[1] || (_[1] = (w) => e("update:modelValue", Number(w)))
|
|
647
|
+
],
|
|
648
|
+
options: r.options,
|
|
649
|
+
"aria-label": r.selectLabel
|
|
650
|
+
}, null, 8, ["id", "modelValue", "options", "aria-label"])
|
|
651
|
+
])),
|
|
652
|
+
r.compact ? (l(), n("span", Ke, f((I = r.options.find((w) => w.value === o.value)) == null ? void 0 : I.text), 1)) : h("", !0),
|
|
653
|
+
r.compact ? (l(), C(P, {
|
|
654
|
+
key: 5,
|
|
655
|
+
outlined: "",
|
|
656
|
+
"aria-label": "Next page",
|
|
657
|
+
disabled: u.value,
|
|
658
|
+
onClick: m
|
|
659
|
+
}, {
|
|
660
|
+
icon: M(() => [
|
|
661
|
+
g(N)
|
|
662
|
+
]),
|
|
663
|
+
_: 1
|
|
664
|
+
}, 8, ["disabled"])) : (l(), C(T, {
|
|
665
|
+
key: 4,
|
|
666
|
+
"icon-position": "only",
|
|
667
|
+
"aria-label": "Next page",
|
|
668
|
+
disabled: u.value,
|
|
669
|
+
onClick: m
|
|
670
|
+
}, {
|
|
671
|
+
icon: M(() => [
|
|
672
|
+
g(N)
|
|
673
|
+
]),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["disabled"]))
|
|
676
|
+
]);
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
}), qt = /* @__PURE__ */ v(Xe, [["__scopeId", "data-v-f959ec90"]]), Ye = {
|
|
445
680
|
name: "CrossCircleFilled24",
|
|
446
681
|
props: {
|
|
447
682
|
/**
|
|
@@ -452,22 +687,22 @@ const U = /* @__PURE__ */ y({
|
|
|
452
687
|
default: "currentColor"
|
|
453
688
|
}
|
|
454
689
|
}
|
|
455
|
-
},
|
|
690
|
+
}, xe = {
|
|
456
691
|
xmlns: "http://www.w3.org/2000/svg",
|
|
457
692
|
viewBox: "0 0 24 24"
|
|
458
693
|
};
|
|
459
|
-
function
|
|
460
|
-
return l(), n("svg",
|
|
461
|
-
|
|
694
|
+
function ea(d, a, s, e, o, t) {
|
|
695
|
+
return l(), n("svg", xe, a[0] || (a[0] = [
|
|
696
|
+
i("path", {
|
|
462
697
|
"fill-rule": "evenodd",
|
|
463
698
|
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
699
|
}, null, -1)
|
|
465
700
|
]));
|
|
466
701
|
}
|
|
467
|
-
const q = /* @__PURE__ */
|
|
702
|
+
const q = /* @__PURE__ */ v(Ye, [["render", ea]]), aa = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], ta = {
|
|
468
703
|
key: 0,
|
|
469
704
|
class: "mc-controls-options"
|
|
470
|
-
},
|
|
705
|
+
}, sa = { class: "mc-controls-options__label" }, la = /* @__PURE__ */ y({
|
|
471
706
|
__name: "MPasswordInput",
|
|
472
707
|
props: {
|
|
473
708
|
id: {},
|
|
@@ -482,61 +717,61 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
|
|
|
482
717
|
buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
|
|
483
718
|
},
|
|
484
719
|
emits: ["update:modelValue"],
|
|
485
|
-
setup(
|
|
486
|
-
const
|
|
487
|
-
"is-invalid":
|
|
488
|
-
})),
|
|
489
|
-
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
}, p =
|
|
493
|
-
return (
|
|
720
|
+
setup(d, { emit: a }) {
|
|
721
|
+
const s = d, e = b(() => ({
|
|
722
|
+
"is-invalid": s.isInvalid
|
|
723
|
+
})), o = B(s.modelValue), t = B(!1), c = () => {
|
|
724
|
+
o.value = "", r("update:modelValue", "");
|
|
725
|
+
}, u = () => {
|
|
726
|
+
t.value = !t.value;
|
|
727
|
+
}, p = b(() => t.value ? "text" : "password"), m = b(() => t.value ? "true" : "false"), r = a;
|
|
728
|
+
return (_, I) => (l(), n("div", {
|
|
494
729
|
class: $(["mc-password-input mc-text-input", e.value])
|
|
495
730
|
}, [
|
|
496
|
-
|
|
731
|
+
D(i("input", k({
|
|
497
732
|
class: "mc-password-input__control mc-text-input__control",
|
|
498
|
-
"onUpdate:modelValue":
|
|
499
|
-
id:
|
|
733
|
+
"onUpdate:modelValue": I[0] || (I[0] = (w) => o.value = w),
|
|
734
|
+
id: _.id,
|
|
500
735
|
type: p.value,
|
|
501
|
-
name:
|
|
502
|
-
placeholder:
|
|
503
|
-
disabled:
|
|
504
|
-
"aria-invalid":
|
|
505
|
-
readonly:
|
|
506
|
-
},
|
|
507
|
-
onInput:
|
|
508
|
-
}), null, 16,
|
|
509
|
-
[
|
|
736
|
+
name: _.name,
|
|
737
|
+
placeholder: _.placeholder,
|
|
738
|
+
disabled: _.disabled,
|
|
739
|
+
"aria-invalid": _.isInvalid,
|
|
740
|
+
readonly: _.readonly
|
|
741
|
+
}, _.$attrs, {
|
|
742
|
+
onInput: I[1] || (I[1] = (w) => r("update:modelValue", w.target.value))
|
|
743
|
+
}), null, 16, aa), [
|
|
744
|
+
[F, o.value]
|
|
510
745
|
]),
|
|
511
|
-
|
|
512
|
-
|
|
746
|
+
_.isClearable && o.value ? (l(), n("div", ta, [
|
|
747
|
+
i("button", {
|
|
513
748
|
class: "mc-controls-options__button",
|
|
514
|
-
onClick:
|
|
749
|
+
onClick: c
|
|
515
750
|
}, [
|
|
516
|
-
|
|
751
|
+
g(q, {
|
|
517
752
|
class: "mc-controls-options__icon",
|
|
518
753
|
"aria-hidden": "true"
|
|
519
754
|
}),
|
|
520
|
-
|
|
755
|
+
i("span", sa, f(_.clearLabel), 1)
|
|
521
756
|
])
|
|
522
757
|
])) : h("", !0),
|
|
523
|
-
|
|
758
|
+
g(T, {
|
|
524
759
|
ref: "button",
|
|
525
760
|
role: "switch",
|
|
526
|
-
"aria-checked":
|
|
527
|
-
disabled:
|
|
528
|
-
onClick:
|
|
761
|
+
"aria-checked": m.value,
|
|
762
|
+
disabled: _.disabled,
|
|
763
|
+
onClick: u,
|
|
529
764
|
size: "s",
|
|
530
765
|
ghost: ""
|
|
531
766
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
|
|
767
|
+
default: M(() => [
|
|
768
|
+
S(f(t.value ? _.buttonLabel.hide : _.buttonLabel.show), 1)
|
|
534
769
|
]),
|
|
535
770
|
_: 1
|
|
536
771
|
}, 8, ["aria-checked", "disabled"])
|
|
537
772
|
], 2));
|
|
538
773
|
}
|
|
539
|
-
}),
|
|
774
|
+
}), Pt = /* @__PURE__ */ v(la, [["__scopeId", "data-v-a5164b59"]]), na = {
|
|
540
775
|
name: "More24",
|
|
541
776
|
props: {
|
|
542
777
|
/**
|
|
@@ -547,21 +782,21 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
|
|
|
547
782
|
default: "currentColor"
|
|
548
783
|
}
|
|
549
784
|
}
|
|
550
|
-
},
|
|
785
|
+
}, oa = {
|
|
551
786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
552
787
|
viewBox: "0 0 24 24"
|
|
553
788
|
};
|
|
554
|
-
function
|
|
555
|
-
return l(), n("svg",
|
|
556
|
-
|
|
557
|
-
|
|
789
|
+
function ia(d, a, s, e, o, t) {
|
|
790
|
+
return l(), n("svg", oa, a[0] || (a[0] = [
|
|
791
|
+
i("g", { "clip-path": "url(#a)" }, [
|
|
792
|
+
i("path", {
|
|
558
793
|
"fill-rule": "evenodd",
|
|
559
794
|
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"
|
|
560
795
|
})
|
|
561
796
|
], -1),
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
797
|
+
i("defs", null, [
|
|
798
|
+
i("clipPath", { id: "a" }, [
|
|
799
|
+
i("rect", {
|
|
565
800
|
width: "24",
|
|
566
801
|
height: "24",
|
|
567
802
|
fill: "#fff"
|
|
@@ -570,7 +805,7 @@ function Ue(o, a, t, e, i, s) {
|
|
|
570
805
|
], -1)
|
|
571
806
|
]));
|
|
572
807
|
}
|
|
573
|
-
const
|
|
808
|
+
const da = /* @__PURE__ */ v(na, [["render", ia]]), ra = {
|
|
574
809
|
name: "Less24",
|
|
575
810
|
props: {
|
|
576
811
|
/**
|
|
@@ -581,21 +816,21 @@ const De = /* @__PURE__ */ _(Pe, [["render", Ue]]), Fe = {
|
|
|
581
816
|
default: "currentColor"
|
|
582
817
|
}
|
|
583
818
|
}
|
|
584
|
-
},
|
|
819
|
+
}, ca = {
|
|
585
820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
586
821
|
viewBox: "0 0 24 24"
|
|
587
822
|
};
|
|
588
|
-
function
|
|
589
|
-
return l(), n("svg",
|
|
590
|
-
|
|
591
|
-
|
|
823
|
+
function ua(d, a, s, e, o, t) {
|
|
824
|
+
return l(), n("svg", ca, a[0] || (a[0] = [
|
|
825
|
+
i("g", { "clip-path": "url(#a)" }, [
|
|
826
|
+
i("path", {
|
|
592
827
|
"fill-rule": "evenodd",
|
|
593
828
|
d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"
|
|
594
829
|
})
|
|
595
830
|
], -1),
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
831
|
+
i("defs", null, [
|
|
832
|
+
i("clipPath", { id: "a" }, [
|
|
833
|
+
i("rect", {
|
|
599
834
|
width: "24",
|
|
600
835
|
height: "24",
|
|
601
836
|
fill: "#fff"
|
|
@@ -604,7 +839,7 @@ function Re(o, a, t, e, i, s) {
|
|
|
604
839
|
], -1)
|
|
605
840
|
]));
|
|
606
841
|
}
|
|
607
|
-
const
|
|
842
|
+
const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], _a = ["aria-controls", "disabled"], va = { class: "mc-quantity-selector__icon" }, ba = { class: "mc-quantity-selector__label" }, fa = ["aria-controls", "disabled"], ha = { class: "mc-quantity-selector__icon" }, $a = { class: "mc-quantity-selector__label" }, ya = /* @__PURE__ */ y({
|
|
608
843
|
__name: "MQuantitySelector",
|
|
609
844
|
props: {
|
|
610
845
|
id: {},
|
|
@@ -621,75 +856,75 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
621
856
|
decrementLabel: { default: "Decrement" }
|
|
622
857
|
},
|
|
623
858
|
emits: ["update:modelValue"],
|
|
624
|
-
setup(
|
|
625
|
-
const
|
|
626
|
-
O(e, (
|
|
627
|
-
|
|
859
|
+
setup(d, { emit: a }) {
|
|
860
|
+
const s = d, e = B(s.modelValue);
|
|
861
|
+
O(e, (m) => {
|
|
862
|
+
m !== s.modelValue && p("update:modelValue", m);
|
|
628
863
|
});
|
|
629
|
-
const
|
|
630
|
-
[`mc-quantity-selector--${
|
|
631
|
-
"is-invalid":
|
|
632
|
-
})),
|
|
633
|
-
e.value +
|
|
634
|
-
},
|
|
635
|
-
e.value -
|
|
636
|
-
},
|
|
637
|
-
e.value =
|
|
864
|
+
const o = b(() => ({
|
|
865
|
+
[`mc-quantity-selector--${s.size}`]: s.size && s.size != "m",
|
|
866
|
+
"is-invalid": s.isInvalid
|
|
867
|
+
})), t = () => {
|
|
868
|
+
e.value + s.step <= s.max ? e.value += s.step : e.value = s.max;
|
|
869
|
+
}, c = () => {
|
|
870
|
+
e.value - s.step > s.min ? e.value -= s.step : e.value = s.min;
|
|
871
|
+
}, u = (m) => {
|
|
872
|
+
e.value = m, e.value > s.max && (e.value = s.max), e.value <= s.min && (e.value = s.min), p("update:modelValue", e.value);
|
|
638
873
|
}, p = a;
|
|
639
|
-
return (
|
|
640
|
-
class: $(["mc-quantity-selector",
|
|
874
|
+
return (m, r) => (l(), n("div", {
|
|
875
|
+
class: $(["mc-quantity-selector", o.value])
|
|
641
876
|
}, [
|
|
642
|
-
|
|
643
|
-
id:
|
|
644
|
-
"onUpdate:modelValue":
|
|
877
|
+
D(i("input", k({
|
|
878
|
+
id: m.id,
|
|
879
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => e.value = _),
|
|
645
880
|
class: "mc-quantity-selector__control",
|
|
646
881
|
type: "number",
|
|
647
|
-
name:
|
|
648
|
-
disabled:
|
|
649
|
-
min:
|
|
650
|
-
max:
|
|
651
|
-
step:
|
|
652
|
-
readonly:
|
|
653
|
-
"aria-invalid":
|
|
654
|
-
"aria-valuemin":
|
|
655
|
-
"aria-valuemax":
|
|
882
|
+
name: m.name,
|
|
883
|
+
disabled: m.disabled,
|
|
884
|
+
min: m.min,
|
|
885
|
+
max: m.max,
|
|
886
|
+
step: m.step,
|
|
887
|
+
readonly: m.readonly,
|
|
888
|
+
"aria-invalid": m.isInvalid,
|
|
889
|
+
"aria-valuemin": m.min,
|
|
890
|
+
"aria-valuemax": m.max,
|
|
656
891
|
"aria-valuenow": e.value
|
|
657
|
-
},
|
|
658
|
-
onChange:
|
|
659
|
-
}), null, 16,
|
|
892
|
+
}, m.$attrs, {
|
|
893
|
+
onChange: r[1] || (r[1] = (_) => u(Number(_.target.value)))
|
|
894
|
+
}), null, 16, ma), [
|
|
660
895
|
[G, e.value]
|
|
661
896
|
]),
|
|
662
|
-
|
|
897
|
+
m.readonly ? h("", !0) : (l(), n("button", {
|
|
663
898
|
key: 0,
|
|
664
899
|
type: "button",
|
|
665
|
-
"aria-controls":
|
|
900
|
+
"aria-controls": m.id,
|
|
666
901
|
class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
|
|
667
902
|
tabindex: "-1",
|
|
668
|
-
disabled:
|
|
669
|
-
onClick:
|
|
903
|
+
disabled: m.disabled || e.value === m.max,
|
|
904
|
+
onClick: t
|
|
670
905
|
}, [
|
|
671
|
-
|
|
672
|
-
|
|
906
|
+
i("span", va, [
|
|
907
|
+
g(da)
|
|
673
908
|
]),
|
|
674
|
-
|
|
675
|
-
], 8,
|
|
676
|
-
|
|
909
|
+
i("span", ba, f(m.incrementlabel), 1)
|
|
910
|
+
], 8, _a)),
|
|
911
|
+
m.readonly ? h("", !0) : (l(), n("button", {
|
|
677
912
|
key: 1,
|
|
678
913
|
type: "button",
|
|
679
|
-
"aria-controls":
|
|
914
|
+
"aria-controls": m.id,
|
|
680
915
|
class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
|
|
681
916
|
tabindex: "-1",
|
|
682
|
-
disabled:
|
|
683
|
-
onClick:
|
|
917
|
+
disabled: m.disabled || e.value === m.min,
|
|
918
|
+
onClick: c
|
|
684
919
|
}, [
|
|
685
|
-
|
|
686
|
-
|
|
920
|
+
i("span", ha, [
|
|
921
|
+
g(pa)
|
|
687
922
|
]),
|
|
688
|
-
|
|
689
|
-
], 8,
|
|
923
|
+
i("span", $a, f(m.decrementLabel), 1)
|
|
924
|
+
], 8, fa))
|
|
690
925
|
], 2));
|
|
691
926
|
}
|
|
692
|
-
}),
|
|
927
|
+
}), Zt = /* @__PURE__ */ v(ya, [["__scopeId", "data-v-a732650a"]]), ga = { class: "mc-radio" }, ka = ["id", "name", "checked", "disabled", "aria-invalid"], Va = ["for"], Ca = /* @__PURE__ */ y({
|
|
693
928
|
__name: "MRadio",
|
|
694
929
|
props: {
|
|
695
930
|
id: {},
|
|
@@ -700,30 +935,30 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
700
935
|
disabled: { type: Boolean }
|
|
701
936
|
},
|
|
702
937
|
emits: ["update:modelValue"],
|
|
703
|
-
setup(
|
|
704
|
-
const
|
|
705
|
-
"is-invalid":
|
|
706
|
-
})),
|
|
707
|
-
return (
|
|
708
|
-
|
|
709
|
-
id:
|
|
938
|
+
setup(d, { emit: a }) {
|
|
939
|
+
const s = d, e = b(() => ({
|
|
940
|
+
"is-invalid": s.isInvalid
|
|
941
|
+
})), o = a;
|
|
942
|
+
return (t, c) => (l(), n("div", ga, [
|
|
943
|
+
i("input", k({
|
|
944
|
+
id: t.id,
|
|
710
945
|
type: "radio",
|
|
711
946
|
class: ["mc-radio__input", e.value],
|
|
712
|
-
name:
|
|
713
|
-
checked:
|
|
714
|
-
disabled:
|
|
715
|
-
"aria-invalid":
|
|
716
|
-
},
|
|
717
|
-
onChange:
|
|
718
|
-
}), null, 16,
|
|
719
|
-
|
|
947
|
+
name: t.name,
|
|
948
|
+
checked: t.modelValue,
|
|
949
|
+
disabled: t.disabled,
|
|
950
|
+
"aria-invalid": t.isInvalid
|
|
951
|
+
}, t.$attrs, {
|
|
952
|
+
onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
|
|
953
|
+
}), null, 16, ka),
|
|
954
|
+
t.label ? (l(), n("label", {
|
|
720
955
|
key: 0,
|
|
721
|
-
for:
|
|
956
|
+
for: t.id,
|
|
722
957
|
class: "mc-radio__label"
|
|
723
|
-
}, f(
|
|
958
|
+
}, f(t.label), 9, Va)) : h("", !0)
|
|
724
959
|
]));
|
|
725
960
|
}
|
|
726
|
-
}),
|
|
961
|
+
}), wa = /* @__PURE__ */ v(Ca, [["__scopeId", "data-v-da78938c"]]), Ia = /* @__PURE__ */ y({
|
|
727
962
|
__name: "MRadioGroup",
|
|
728
963
|
props: {
|
|
729
964
|
name: {},
|
|
@@ -733,104 +968,61 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
733
968
|
inline: { type: Boolean }
|
|
734
969
|
},
|
|
735
970
|
emits: ["update:modelValue"],
|
|
736
|
-
setup(
|
|
737
|
-
const
|
|
738
|
-
"mc-field__container--inline":
|
|
739
|
-
})),
|
|
740
|
-
"mc-field__container--inline__item":
|
|
741
|
-
})),
|
|
742
|
-
return (
|
|
971
|
+
setup(d, { emit: a }) {
|
|
972
|
+
const s = d, e = b(() => ({
|
|
973
|
+
"mc-field__container--inline": s.inline
|
|
974
|
+
})), o = b(() => ({
|
|
975
|
+
"mc-field__container--inline__item": s.inline
|
|
976
|
+
})), t = a;
|
|
977
|
+
return (c, u) => (l(), n("div", {
|
|
743
978
|
class: $(["mc-field__container", e.value])
|
|
744
979
|
}, [
|
|
745
|
-
(l(!0), n(
|
|
980
|
+
(l(!0), n(z, null, L(c.options, (p) => (l(), C(wa, {
|
|
746
981
|
id: p.id,
|
|
747
982
|
key: p.id,
|
|
748
983
|
label: p.label,
|
|
749
|
-
"is-invalid":
|
|
750
|
-
name:
|
|
751
|
-
class: $(["mc-field__item",
|
|
752
|
-
"model-value":
|
|
984
|
+
"is-invalid": c.isInvalid,
|
|
985
|
+
name: c.name,
|
|
986
|
+
class: $(["mc-field__item", o.value]),
|
|
987
|
+
"model-value": c.modelValue === p.value,
|
|
753
988
|
disabled: p.disabled,
|
|
754
|
-
"onUpdate:modelValue": (
|
|
989
|
+
"onUpdate:modelValue": (m) => m ? t("update:modelValue", p.value) : null
|
|
755
990
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
756
991
|
], 2));
|
|
757
992
|
}
|
|
758
|
-
}),
|
|
759
|
-
key: 0,
|
|
760
|
-
value: "",
|
|
761
|
-
disabled: ""
|
|
762
|
-
}, ia = ["value", "disabled"], da = /* @__PURE__ */ y({
|
|
763
|
-
__name: "MSelect",
|
|
764
|
-
props: {
|
|
765
|
-
id: {},
|
|
766
|
-
name: {},
|
|
767
|
-
options: {},
|
|
768
|
-
modelValue: {},
|
|
769
|
-
placeholder: {},
|
|
770
|
-
isInvalid: { type: Boolean },
|
|
771
|
-
disabled: { type: Boolean },
|
|
772
|
-
size: { default: "m" },
|
|
773
|
-
readonly: { type: Boolean }
|
|
774
|
-
},
|
|
775
|
-
emits: ["update:modelValue"],
|
|
776
|
-
setup(o, { emit: a }) {
|
|
777
|
-
const t = o, e = v(() => ({
|
|
778
|
-
[`mc-select--${t.size}`]: t.size && t.size != "m",
|
|
779
|
-
"mc-select--readonly": t.readonly,
|
|
780
|
-
"is-invalid": t.isInvalid
|
|
781
|
-
})), i = a;
|
|
782
|
-
return (s, u) => (l(), n("select", k({
|
|
783
|
-
id: s.id,
|
|
784
|
-
class: ["mc-select", e.value],
|
|
785
|
-
name: s.name,
|
|
786
|
-
value: s.modelValue,
|
|
787
|
-
disabled: s.disabled
|
|
788
|
-
}, s.$attrs, {
|
|
789
|
-
onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
|
|
790
|
-
}), [
|
|
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({
|
|
793
|
-
key: p,
|
|
794
|
-
value: r.value,
|
|
795
|
-
ref_for: !0
|
|
796
|
-
}, r.attributes, {
|
|
797
|
-
disabled: r.disabled
|
|
798
|
-
}), f(r.text), 17, ia))), 128))
|
|
799
|
-
], 16, na));
|
|
800
|
-
}
|
|
801
|
-
}), is = /* @__PURE__ */ _(da, [["__scopeId", "data-v-68c735e4"]]), ra = /* @__PURE__ */ y({
|
|
993
|
+
}), Nt = /* @__PURE__ */ v(Ia, [["__scopeId", "data-v-d2f5e103"]]), Ba = /* @__PURE__ */ y({
|
|
802
994
|
__name: "MStatusDot",
|
|
803
995
|
props: {
|
|
804
996
|
status: { default: "info" },
|
|
805
997
|
size: {}
|
|
806
998
|
},
|
|
807
|
-
setup(
|
|
808
|
-
const a =
|
|
999
|
+
setup(d) {
|
|
1000
|
+
const a = d, s = b(() => ({
|
|
809
1001
|
[`mc-status-dot--${a.status}`]: a.status && a.status != "info",
|
|
810
1002
|
[`mc-status-dot--${a.size}`]: a.size && a.size != "m"
|
|
811
1003
|
}));
|
|
812
|
-
return (e,
|
|
813
|
-
class: $(["mc-status-dot",
|
|
1004
|
+
return (e, o) => (l(), n("span", {
|
|
1005
|
+
class: $(["mc-status-dot", s.value])
|
|
814
1006
|
}, null, 2));
|
|
815
1007
|
}
|
|
816
|
-
}),
|
|
1008
|
+
}), Ma = /* @__PURE__ */ v(Ba, [["__scopeId", "data-v-417b563f"]]), za = { class: "mc-status-badge__label" }, La = /* @__PURE__ */ y({
|
|
817
1009
|
__name: "MStatusBadge",
|
|
818
1010
|
props: {
|
|
819
1011
|
label: {},
|
|
820
1012
|
status: { default: "info" }
|
|
821
1013
|
},
|
|
822
|
-
setup(
|
|
823
|
-
const a =
|
|
1014
|
+
setup(d) {
|
|
1015
|
+
const a = d, s = b(() => ({
|
|
824
1016
|
[`mc-status-badge--${a.status}`]: a.status && a.status != "info"
|
|
825
1017
|
}));
|
|
826
|
-
return (e,
|
|
827
|
-
class: $(["mc-status-badge",
|
|
1018
|
+
return (e, o) => (l(), n("div", {
|
|
1019
|
+
class: $(["mc-status-badge", s.value])
|
|
828
1020
|
}, [
|
|
829
|
-
|
|
830
|
-
|
|
1021
|
+
g(Ma, { status: e.status }, null, 8, ["status"]),
|
|
1022
|
+
i("span", za, f(e.label), 1)
|
|
831
1023
|
], 2));
|
|
832
1024
|
}
|
|
833
|
-
}),
|
|
1025
|
+
}), Dt = /* @__PURE__ */ v(La, [["__scopeId", "data-v-3e437a03"]]), Sa = {
|
|
834
1026
|
name: "Cross20",
|
|
835
1027
|
props: {
|
|
836
1028
|
/**
|
|
@@ -841,21 +1033,21 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
841
1033
|
default: "currentColor"
|
|
842
1034
|
}
|
|
843
1035
|
}
|
|
844
|
-
},
|
|
1036
|
+
}, Oa = {
|
|
845
1037
|
xmlns: "http://www.w3.org/2000/svg",
|
|
846
1038
|
viewBox: "0 0 20 20"
|
|
847
1039
|
};
|
|
848
|
-
function
|
|
849
|
-
return l(), n("svg",
|
|
850
|
-
|
|
851
|
-
|
|
1040
|
+
function Ta(d, a, s, e, o, t) {
|
|
1041
|
+
return l(), n("svg", Oa, a[0] || (a[0] = [
|
|
1042
|
+
i("g", { "clip-path": "url(#a)" }, [
|
|
1043
|
+
i("path", {
|
|
852
1044
|
"fill-rule": "evenodd",
|
|
853
1045
|
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
1046
|
})
|
|
855
1047
|
], -1),
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1048
|
+
i("defs", null, [
|
|
1049
|
+
i("clipPath", { id: "a" }, [
|
|
1050
|
+
i("rect", {
|
|
859
1051
|
width: "20",
|
|
860
1052
|
height: "20",
|
|
861
1053
|
fill: "#fff"
|
|
@@ -864,7 +1056,7 @@ function va(o, a, t, e, i, s) {
|
|
|
864
1056
|
], -1)
|
|
865
1057
|
]));
|
|
866
1058
|
}
|
|
867
|
-
const
|
|
1059
|
+
const ja = /* @__PURE__ */ v(Sa, [["render", Ta]]), qa = {
|
|
868
1060
|
name: "InfoCircle32",
|
|
869
1061
|
props: {
|
|
870
1062
|
/**
|
|
@@ -875,19 +1067,19 @@ const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
|
|
|
875
1067
|
default: "currentColor"
|
|
876
1068
|
}
|
|
877
1069
|
}
|
|
878
|
-
},
|
|
1070
|
+
}, Pa = {
|
|
879
1071
|
xmlns: "http://www.w3.org/2000/svg",
|
|
880
1072
|
viewBox: "0 0 32 32"
|
|
881
1073
|
};
|
|
882
|
-
function
|
|
883
|
-
return l(), n("svg",
|
|
884
|
-
|
|
1074
|
+
function Za(d, a, s, e, o, t) {
|
|
1075
|
+
return l(), n("svg", Pa, a[0] || (a[0] = [
|
|
1076
|
+
i("path", {
|
|
885
1077
|
"fill-rule": "evenodd",
|
|
886
1078
|
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
1079
|
}, null, -1)
|
|
888
1080
|
]));
|
|
889
1081
|
}
|
|
890
|
-
const
|
|
1082
|
+
const Na = /* @__PURE__ */ v(qa, [["render", Za]]), Da = {
|
|
891
1083
|
name: "WarningCircle32",
|
|
892
1084
|
props: {
|
|
893
1085
|
/**
|
|
@@ -898,19 +1090,19 @@ const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
|
|
|
898
1090
|
default: "currentColor"
|
|
899
1091
|
}
|
|
900
1092
|
}
|
|
901
|
-
},
|
|
1093
|
+
}, Ua = {
|
|
902
1094
|
xmlns: "http://www.w3.org/2000/svg",
|
|
903
1095
|
viewBox: "0 0 32 32"
|
|
904
1096
|
};
|
|
905
|
-
function
|
|
906
|
-
return l(), n("svg",
|
|
907
|
-
|
|
1097
|
+
function Fa(d, a, s, e, o, t) {
|
|
1098
|
+
return l(), n("svg", Ua, a[0] || (a[0] = [
|
|
1099
|
+
i("path", {
|
|
908
1100
|
"fill-rule": "evenodd",
|
|
909
1101
|
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
1102
|
}, null, -1)
|
|
911
1103
|
]));
|
|
912
1104
|
}
|
|
913
|
-
const
|
|
1105
|
+
const Ga = /* @__PURE__ */ v(Da, [["render", Fa]]), Ra = {
|
|
914
1106
|
name: "CrossCircle32",
|
|
915
1107
|
props: {
|
|
916
1108
|
/**
|
|
@@ -921,19 +1113,19 @@ const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
|
|
|
921
1113
|
default: "currentColor"
|
|
922
1114
|
}
|
|
923
1115
|
}
|
|
924
|
-
},
|
|
1116
|
+
}, Aa = {
|
|
925
1117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
926
1118
|
viewBox: "0 0 32 32"
|
|
927
1119
|
};
|
|
928
|
-
function
|
|
929
|
-
return l(), n("svg",
|
|
930
|
-
|
|
1120
|
+
function Ha(d, a, s, e, o, t) {
|
|
1121
|
+
return l(), n("svg", Aa, a[0] || (a[0] = [
|
|
1122
|
+
i("path", {
|
|
931
1123
|
"fill-rule": "evenodd",
|
|
932
1124
|
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
1125
|
}, null, -1)
|
|
934
1126
|
]));
|
|
935
1127
|
}
|
|
936
|
-
const
|
|
1128
|
+
const Ea = /* @__PURE__ */ v(Ra, [["render", Ha]]), Qa = {
|
|
937
1129
|
name: "CheckCircle32",
|
|
938
1130
|
props: {
|
|
939
1131
|
/**
|
|
@@ -944,22 +1136,22 @@ const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
|
|
|
944
1136
|
default: "currentColor"
|
|
945
1137
|
}
|
|
946
1138
|
}
|
|
947
|
-
},
|
|
1139
|
+
}, Wa = {
|
|
948
1140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
949
1141
|
viewBox: "0 0 32 32"
|
|
950
1142
|
};
|
|
951
|
-
function
|
|
952
|
-
return l(), n("svg",
|
|
953
|
-
|
|
1143
|
+
function Ja(d, a, s, e, o, t) {
|
|
1144
|
+
return l(), n("svg", Wa, a[0] || (a[0] = [
|
|
1145
|
+
i("path", {
|
|
954
1146
|
"fill-rule": "evenodd",
|
|
955
1147
|
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
1148
|
}, null, -1)
|
|
957
1149
|
]));
|
|
958
1150
|
}
|
|
959
|
-
const
|
|
1151
|
+
const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-notification__content" }, Ya = { class: "mc-status-notification__title" }, xa = { class: "mc-status-notification__message" }, et = {
|
|
960
1152
|
key: 0,
|
|
961
1153
|
class: "mc-status-notification__footer"
|
|
962
|
-
},
|
|
1154
|
+
}, at = /* @__PURE__ */ y({
|
|
963
1155
|
__name: "MStatusNotification",
|
|
964
1156
|
props: {
|
|
965
1157
|
title: {},
|
|
@@ -968,51 +1160,183 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
968
1160
|
closable: { type: Boolean }
|
|
969
1161
|
},
|
|
970
1162
|
emits: ["close"],
|
|
971
|
-
setup(
|
|
972
|
-
const
|
|
973
|
-
[`mc-status-notification--${
|
|
974
|
-
})),
|
|
975
|
-
switch (
|
|
1163
|
+
setup(d, { emit: a }) {
|
|
1164
|
+
const s = d, e = b(() => ({
|
|
1165
|
+
[`mc-status-notification--${s.status}`]: s.status && s.status != "info"
|
|
1166
|
+
})), o = b(() => {
|
|
1167
|
+
switch (s.status) {
|
|
976
1168
|
case "success":
|
|
977
|
-
return
|
|
1169
|
+
return Ka;
|
|
978
1170
|
case "warning":
|
|
979
|
-
return
|
|
1171
|
+
return Ga;
|
|
980
1172
|
case "error":
|
|
981
|
-
return
|
|
1173
|
+
return Ea;
|
|
982
1174
|
case "info":
|
|
983
1175
|
default:
|
|
984
|
-
return
|
|
1176
|
+
return Na;
|
|
985
1177
|
}
|
|
986
|
-
}),
|
|
987
|
-
return (
|
|
1178
|
+
}), t = a;
|
|
1179
|
+
return (c, u) => (l(), n("section", {
|
|
988
1180
|
class: $(["mc-status-notification", e.value]),
|
|
989
1181
|
role: "status"
|
|
990
1182
|
}, [
|
|
991
|
-
(l(),
|
|
1183
|
+
(l(), C(j(o.value), {
|
|
992
1184
|
class: "mc-status-notification__icon",
|
|
993
1185
|
"aria-hidden": "true"
|
|
994
1186
|
})),
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1187
|
+
i("div", Xa, [
|
|
1188
|
+
i("h2", Ya, f(c.title), 1),
|
|
1189
|
+
i("p", xa, f(c.description), 1),
|
|
1190
|
+
c.$slots.footer ? (l(), n("div", et, [
|
|
1191
|
+
V(c.$slots, "footer", {}, void 0, !0)
|
|
1000
1192
|
])) : h("", !0)
|
|
1001
1193
|
]),
|
|
1002
|
-
|
|
1194
|
+
c.closable ? (l(), n("button", {
|
|
1003
1195
|
key: 0,
|
|
1004
1196
|
class: "mc-status-notification-closable__close",
|
|
1005
|
-
onClick:
|
|
1197
|
+
onClick: u[0] || (u[0] = (p) => t("close"))
|
|
1006
1198
|
}, [
|
|
1007
|
-
|
|
1199
|
+
g(ja, {
|
|
1008
1200
|
class: "mc-status-notification-closable__icon",
|
|
1009
1201
|
"aria-hidden": "true"
|
|
1010
1202
|
}),
|
|
1011
|
-
|
|
1203
|
+
u[1] || (u[1] = i("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
|
|
1012
1204
|
])) : h("", !0)
|
|
1013
1205
|
], 2));
|
|
1014
1206
|
}
|
|
1015
|
-
}),
|
|
1207
|
+
}), Ut = /* @__PURE__ */ v(at, [["__scopeId", "data-v-d6e3be16"]]), tt = ["aria-label"], st = ["aria-selected", "onClick"], lt = {
|
|
1208
|
+
key: 0,
|
|
1209
|
+
class: "mc-tabs__icon"
|
|
1210
|
+
}, nt = { class: "mc-tabs__label" }, ot = /* @__PURE__ */ y({
|
|
1211
|
+
__name: "MTabs",
|
|
1212
|
+
props: {
|
|
1213
|
+
description: {},
|
|
1214
|
+
divider: { type: Boolean, default: !0 },
|
|
1215
|
+
centered: { type: Boolean },
|
|
1216
|
+
modelValue: { default: 0 },
|
|
1217
|
+
tabs: {}
|
|
1218
|
+
},
|
|
1219
|
+
emits: ["update:modelValue"],
|
|
1220
|
+
setup(d, { emit: a }) {
|
|
1221
|
+
const s = d, e = b(() => ({
|
|
1222
|
+
"mc-tabs--centered": s.centered
|
|
1223
|
+
})), o = B(s.modelValue), t = (p) => {
|
|
1224
|
+
s.tabs[p].disabled || p !== o.value && (o.value = p, u("update:modelValue", p));
|
|
1225
|
+
}, c = (p) => o.value === p, u = a;
|
|
1226
|
+
return (p, m) => (l(), n("nav", {
|
|
1227
|
+
class: $(["mc-tabs", e.value])
|
|
1228
|
+
}, [
|
|
1229
|
+
i("ul", {
|
|
1230
|
+
role: "tablist",
|
|
1231
|
+
class: "mc-tabs__list",
|
|
1232
|
+
"aria-label": p.description
|
|
1233
|
+
}, [
|
|
1234
|
+
(l(!0), n(z, null, L(p.tabs, (r, _) => (l(), n("li", {
|
|
1235
|
+
key: `tab-${_}`,
|
|
1236
|
+
role: "presentation",
|
|
1237
|
+
class: "mc-tabs__item"
|
|
1238
|
+
}, [
|
|
1239
|
+
i("button", {
|
|
1240
|
+
ref_for: !0,
|
|
1241
|
+
ref: "tab",
|
|
1242
|
+
role: "tab",
|
|
1243
|
+
class: $(["mc-tabs__tab", {
|
|
1244
|
+
"mc-tabs__tab--selected": c(_),
|
|
1245
|
+
"mc-tabs__tab--disabled": r.disabled
|
|
1246
|
+
}]),
|
|
1247
|
+
"aria-selected": c(_),
|
|
1248
|
+
type: "button",
|
|
1249
|
+
onClick: (I) => t(_)
|
|
1250
|
+
}, [
|
|
1251
|
+
r.icon ? (l(), n("span", lt, [
|
|
1252
|
+
(l(), C(j(r.icon)))
|
|
1253
|
+
])) : h("", !0),
|
|
1254
|
+
i("div", nt, [
|
|
1255
|
+
i("span", null, f(r.label), 1)
|
|
1256
|
+
])
|
|
1257
|
+
], 10, st)
|
|
1258
|
+
]))), 128))
|
|
1259
|
+
], 8, tt),
|
|
1260
|
+
p.divider ? (l(), C(be, { key: 0 })) : h("", !0)
|
|
1261
|
+
], 2));
|
|
1262
|
+
}
|
|
1263
|
+
}), Ft = /* @__PURE__ */ v(ot, [["__scopeId", "data-v-fcad128f"]]), it = ["for"], dt = ["id", "name", "checked", "disabled"], rt = { class: "mc-tag__label" }, ct = ["disabled"], ut = { class: "mc-tag__label" }, pt = ["disabled"], mt = { class: "mc-tag__label" }, _t = { class: "mc-tag__label" }, vt = { class: "mc-tag__label" }, bt = /* @__PURE__ */ y({
|
|
1264
|
+
__name: "MTag",
|
|
1265
|
+
props: {
|
|
1266
|
+
type: { default: "informative" },
|
|
1267
|
+
size: {},
|
|
1268
|
+
id: {},
|
|
1269
|
+
name: {},
|
|
1270
|
+
label: {},
|
|
1271
|
+
modelValue: { type: Boolean },
|
|
1272
|
+
disabled: { type: Boolean },
|
|
1273
|
+
contextualisedNumber: { default: 99 },
|
|
1274
|
+
removableLabel: {}
|
|
1275
|
+
},
|
|
1276
|
+
emits: ["update:modelValue", "remove-tag"],
|
|
1277
|
+
setup(d, { emit: a }) {
|
|
1278
|
+
const s = d, e = b(() => ({
|
|
1279
|
+
[`mc-tag-${s.type}`]: s.type && s.type != "informative",
|
|
1280
|
+
[`mc-tag--${s.size}`]: s.size && s.size != "m"
|
|
1281
|
+
})), o = a;
|
|
1282
|
+
return (t, c) => t.type === "selectable" ? (l(), n("label", {
|
|
1283
|
+
key: 0,
|
|
1284
|
+
for: t.id,
|
|
1285
|
+
class: $(["mc-tag", e.value])
|
|
1286
|
+
}, [
|
|
1287
|
+
i("input", k({
|
|
1288
|
+
type: "checkbox",
|
|
1289
|
+
class: "mc-tag__input",
|
|
1290
|
+
id: t.id,
|
|
1291
|
+
name: t.name,
|
|
1292
|
+
checked: t.modelValue,
|
|
1293
|
+
disabled: t.disabled,
|
|
1294
|
+
onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
|
|
1295
|
+
}, t.$attrs), null, 16, dt),
|
|
1296
|
+
i("span", rt, f(t.label), 1)
|
|
1297
|
+
], 10, it)) : t.type === "interactive" ? (l(), n("button", k({
|
|
1298
|
+
key: 1,
|
|
1299
|
+
class: ["mc-tag", e.value],
|
|
1300
|
+
type: "button",
|
|
1301
|
+
disabled: t.disabled
|
|
1302
|
+
}, t.$attrs), [
|
|
1303
|
+
i("span", ut, f(t.label), 1)
|
|
1304
|
+
], 16, ct)) : t.type === "contextualised" ? (l(), n("button", k({
|
|
1305
|
+
key: 2,
|
|
1306
|
+
class: ["mc-tag", e.value],
|
|
1307
|
+
type: "button",
|
|
1308
|
+
disabled: t.disabled
|
|
1309
|
+
}, t.$attrs), [
|
|
1310
|
+
g(je, {
|
|
1311
|
+
appearance: "inverse",
|
|
1312
|
+
label: t.contextualisedNumber,
|
|
1313
|
+
size: t.size === "l" ? "m" : void 0
|
|
1314
|
+
}, null, 8, ["label", "size"]),
|
|
1315
|
+
i("span", mt, f(t.label), 1)
|
|
1316
|
+
], 16, pt)) : t.type === "removable" ? (l(), n("span", k({
|
|
1317
|
+
key: 3,
|
|
1318
|
+
class: ["mc-tag", e.value]
|
|
1319
|
+
}, t.$attrs), [
|
|
1320
|
+
i("span", _t, f(t.label), 1),
|
|
1321
|
+
i("button", {
|
|
1322
|
+
class: "mc-tag-removable__remove",
|
|
1323
|
+
type: "button",
|
|
1324
|
+
onClick: c[1] || (c[1] = (u) => t.id && o("remove-tag", t.id))
|
|
1325
|
+
}, [
|
|
1326
|
+
g(q, {
|
|
1327
|
+
class: "mc-tag-removable__icon",
|
|
1328
|
+
"aria-hidden": "true"
|
|
1329
|
+
}),
|
|
1330
|
+
c[2] || (c[2] = i("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
|
|
1331
|
+
])
|
|
1332
|
+
], 16)) : (l(), n("span", k({
|
|
1333
|
+
key: 4,
|
|
1334
|
+
class: ["mc-tag", e.value]
|
|
1335
|
+
}, t.$attrs), [
|
|
1336
|
+
i("span", vt, f(t.label), 1)
|
|
1337
|
+
], 16));
|
|
1338
|
+
}
|
|
1339
|
+
}), Gt = /* @__PURE__ */ v(bt, [["__scopeId", "data-v-6a66ee2d"]]), ft = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ht = /* @__PURE__ */ y({
|
|
1016
1340
|
__name: "MTextArea",
|
|
1017
1341
|
props: {
|
|
1018
1342
|
id: {},
|
|
@@ -1027,33 +1351,33 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1027
1351
|
readonly: { type: Boolean }
|
|
1028
1352
|
},
|
|
1029
1353
|
emits: ["update:modelValue"],
|
|
1030
|
-
setup(
|
|
1031
|
-
const
|
|
1032
|
-
"is-invalid":
|
|
1033
|
-
})),
|
|
1034
|
-
return (
|
|
1035
|
-
id:
|
|
1354
|
+
setup(d, { emit: a }) {
|
|
1355
|
+
const s = d, e = b(() => ({
|
|
1356
|
+
"is-invalid": s.isInvalid
|
|
1357
|
+
})), o = a;
|
|
1358
|
+
return (t, c) => (l(), n("textarea", k({
|
|
1359
|
+
id: t.id,
|
|
1036
1360
|
class: ["mc-textarea", e.value],
|
|
1037
|
-
"aria-invalid":
|
|
1038
|
-
value:
|
|
1039
|
-
name:
|
|
1040
|
-
placeholder:
|
|
1041
|
-
disabled:
|
|
1042
|
-
minlength:
|
|
1043
|
-
maxlength:
|
|
1044
|
-
rows:
|
|
1045
|
-
readonly:
|
|
1046
|
-
},
|
|
1047
|
-
onInput:
|
|
1048
|
-
}), null, 16,
|
|
1361
|
+
"aria-invalid": t.isInvalid,
|
|
1362
|
+
value: t.modelValue,
|
|
1363
|
+
name: t.name,
|
|
1364
|
+
placeholder: t.placeholder,
|
|
1365
|
+
disabled: t.disabled,
|
|
1366
|
+
minlength: t.minLength,
|
|
1367
|
+
maxlength: t.maxLength,
|
|
1368
|
+
rows: t.rows,
|
|
1369
|
+
readonly: t.readonly
|
|
1370
|
+
}, t.$attrs, {
|
|
1371
|
+
onInput: c[0] || (c[0] = (u) => o("update:modelValue", u.target.value))
|
|
1372
|
+
}), null, 16, ft));
|
|
1049
1373
|
}
|
|
1050
|
-
}),
|
|
1374
|
+
}), Rt = /* @__PURE__ */ v(ht, [["__scopeId", "data-v-8184b69c"]]), $t = {
|
|
1051
1375
|
key: 0,
|
|
1052
1376
|
class: "mc-text-input__icon"
|
|
1053
|
-
},
|
|
1377
|
+
}, yt = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], gt = {
|
|
1054
1378
|
key: 1,
|
|
1055
1379
|
class: "mc-controls-options"
|
|
1056
|
-
},
|
|
1380
|
+
}, kt = /* @__PURE__ */ y({
|
|
1057
1381
|
__name: "MTextInput",
|
|
1058
1382
|
props: {
|
|
1059
1383
|
id: {},
|
|
@@ -1069,48 +1393,48 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1069
1393
|
clearLabel: { default: "clear content" }
|
|
1070
1394
|
},
|
|
1071
1395
|
emits: ["update:modelValue"],
|
|
1072
|
-
setup(
|
|
1073
|
-
const
|
|
1074
|
-
[`mc-text-input--${
|
|
1075
|
-
"is-invalid":
|
|
1076
|
-
})),
|
|
1077
|
-
|
|
1078
|
-
},
|
|
1079
|
-
return (
|
|
1396
|
+
setup(d, { emit: a }) {
|
|
1397
|
+
const s = d, e = b(() => ({
|
|
1398
|
+
[`mc-text-input--${s.size}`]: s.size && s.size != "m",
|
|
1399
|
+
"is-invalid": s.isInvalid
|
|
1400
|
+
})), o = B(s.modelValue), t = () => {
|
|
1401
|
+
o.value = "", c("update:modelValue", "");
|
|
1402
|
+
}, c = a;
|
|
1403
|
+
return (u, p) => (l(), n("div", {
|
|
1080
1404
|
class: $(["mc-text-input", e.value])
|
|
1081
1405
|
}, [
|
|
1082
|
-
|
|
1083
|
-
|
|
1406
|
+
u.$slots.icon ? (l(), n("span", $t, [
|
|
1407
|
+
V(u.$slots, "icon", {}, void 0, !0)
|
|
1084
1408
|
])) : h("", !0),
|
|
1085
|
-
|
|
1086
|
-
id:
|
|
1409
|
+
i("input", k({
|
|
1410
|
+
id: u.id,
|
|
1087
1411
|
class: "mc-text-input__control",
|
|
1088
|
-
value:
|
|
1089
|
-
type:
|
|
1090
|
-
name:
|
|
1091
|
-
placeholder:
|
|
1092
|
-
disabled:
|
|
1093
|
-
"aria-invalid":
|
|
1094
|
-
readonly:
|
|
1095
|
-
},
|
|
1096
|
-
onInput: p[0] || (p[0] = (
|
|
1097
|
-
}), null, 16,
|
|
1098
|
-
|
|
1099
|
-
|
|
1412
|
+
value: o.value,
|
|
1413
|
+
type: u.inputType,
|
|
1414
|
+
name: u.name,
|
|
1415
|
+
placeholder: u.placeholder,
|
|
1416
|
+
disabled: u.disabled,
|
|
1417
|
+
"aria-invalid": u.isInvalid,
|
|
1418
|
+
readonly: u.readonly
|
|
1419
|
+
}, u.$attrs, {
|
|
1420
|
+
onInput: p[0] || (p[0] = (m) => c("update:modelValue", m.target.value))
|
|
1421
|
+
}), null, 16, yt),
|
|
1422
|
+
u.isClearable && o.value ? (l(), n("div", gt, [
|
|
1423
|
+
i("button", {
|
|
1100
1424
|
type: "button",
|
|
1101
1425
|
class: "mc-controls-options__button",
|
|
1102
|
-
onClick:
|
|
1426
|
+
onClick: t
|
|
1103
1427
|
}, [
|
|
1104
|
-
|
|
1428
|
+
g(q, {
|
|
1105
1429
|
class: "mc-controls-options__icon",
|
|
1106
1430
|
"aria-hidden": "true"
|
|
1107
1431
|
}),
|
|
1108
|
-
p[1] || (p[1] =
|
|
1432
|
+
p[1] || (p[1] = i("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
|
|
1109
1433
|
])
|
|
1110
1434
|
])) : h("", !0)
|
|
1111
1435
|
], 2));
|
|
1112
1436
|
}
|
|
1113
|
-
}),
|
|
1437
|
+
}), At = /* @__PURE__ */ v(kt, [["__scopeId", "data-v-38f67338"]]), Vt = ["for"], Ct = ["id", "name", "checked", "disabled"], wt = ["for"], It = /* @__PURE__ */ y({
|
|
1114
1438
|
__name: "MToggle",
|
|
1115
1439
|
props: {
|
|
1116
1440
|
id: {},
|
|
@@ -1121,36 +1445,36 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1121
1445
|
disabled: { type: Boolean }
|
|
1122
1446
|
},
|
|
1123
1447
|
emits: ["update:modelValue"],
|
|
1124
|
-
setup(
|
|
1125
|
-
const
|
|
1126
|
-
[`mc-toggle--${
|
|
1127
|
-
})),
|
|
1128
|
-
return (
|
|
1448
|
+
setup(d, { emit: a }) {
|
|
1449
|
+
const s = d, e = b(() => ({
|
|
1450
|
+
[`mc-toggle--${s.size}`]: s.size && s.size != "s"
|
|
1451
|
+
})), o = a;
|
|
1452
|
+
return (t, c) => (l(), n("div", {
|
|
1129
1453
|
class: $(["mc-toggle", e.value])
|
|
1130
1454
|
}, [
|
|
1131
|
-
|
|
1455
|
+
i("label", {
|
|
1132
1456
|
class: "mc-toggle__container",
|
|
1133
|
-
for:
|
|
1457
|
+
for: t.id
|
|
1134
1458
|
}, [
|
|
1135
|
-
|
|
1136
|
-
id:
|
|
1459
|
+
i("input", k({
|
|
1460
|
+
id: t.id,
|
|
1137
1461
|
type: "checkbox",
|
|
1138
1462
|
class: "mc-toggle__input",
|
|
1139
|
-
name:
|
|
1140
|
-
checked:
|
|
1141
|
-
disabled:
|
|
1142
|
-
},
|
|
1143
|
-
onChange:
|
|
1144
|
-
}), null, 16,
|
|
1145
|
-
|
|
1463
|
+
name: t.name,
|
|
1464
|
+
checked: t.modelValue,
|
|
1465
|
+
disabled: t.disabled
|
|
1466
|
+
}, t.$attrs, {
|
|
1467
|
+
onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
|
|
1468
|
+
}), null, 16, Ct),
|
|
1469
|
+
t.label ? (l(), n("span", {
|
|
1146
1470
|
key: 0,
|
|
1147
|
-
for:
|
|
1471
|
+
for: t.id,
|
|
1148
1472
|
class: "mc-toggle__label"
|
|
1149
|
-
}, f(
|
|
1150
|
-
], 8,
|
|
1473
|
+
}, f(t.label), 9, wt)) : h("", !0)
|
|
1474
|
+
], 8, Vt)
|
|
1151
1475
|
], 2));
|
|
1152
1476
|
}
|
|
1153
|
-
}),
|
|
1477
|
+
}), Bt = /* @__PURE__ */ v(It, [["__scopeId", "data-v-5be734e7"]]), Mt = /* @__PURE__ */ y({
|
|
1154
1478
|
__name: "MToggleGroup",
|
|
1155
1479
|
props: {
|
|
1156
1480
|
name: {},
|
|
@@ -1159,62 +1483,66 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1159
1483
|
inline: { type: Boolean }
|
|
1160
1484
|
},
|
|
1161
1485
|
emits: ["update:modelValue"],
|
|
1162
|
-
setup(
|
|
1163
|
-
const
|
|
1486
|
+
setup(d, { emit: a }) {
|
|
1487
|
+
const s = d, e = B([]);
|
|
1164
1488
|
O(
|
|
1165
|
-
() =>
|
|
1489
|
+
() => s.modelValue,
|
|
1166
1490
|
(p) => {
|
|
1167
1491
|
e.value = p || [];
|
|
1168
1492
|
},
|
|
1169
1493
|
{ immediate: !0 }
|
|
1170
1494
|
);
|
|
1171
|
-
const
|
|
1172
|
-
let
|
|
1173
|
-
p && !
|
|
1174
|
-
},
|
|
1175
|
-
"mc-field__container--inline":
|
|
1176
|
-
})),
|
|
1177
|
-
"mc-field__container--inline__item":
|
|
1178
|
-
})),
|
|
1179
|
-
return (p,
|
|
1180
|
-
class: $(
|
|
1495
|
+
const o = (p, m) => {
|
|
1496
|
+
let r = [...e.value];
|
|
1497
|
+
p && !r.includes(m) ? r.push(m) : r = r.filter((_) => _ !== m), u("update:modelValue", r), e.value = r;
|
|
1498
|
+
}, t = b(() => ({
|
|
1499
|
+
"mc-field__container--inline": s.inline
|
|
1500
|
+
})), c = b(() => ({
|
|
1501
|
+
"mc-field__container--inline__item": s.inline
|
|
1502
|
+
})), u = a;
|
|
1503
|
+
return (p, m) => (l(), n("div", {
|
|
1504
|
+
class: $(t.value)
|
|
1181
1505
|
}, [
|
|
1182
|
-
(l(!0), n(
|
|
1183
|
-
id:
|
|
1184
|
-
key:
|
|
1185
|
-
label:
|
|
1186
|
-
"is-invalid":
|
|
1506
|
+
(l(!0), n(z, null, L(p.options, (r) => (l(), C(Bt, {
|
|
1507
|
+
id: r.id,
|
|
1508
|
+
key: r.id,
|
|
1509
|
+
label: r.label,
|
|
1510
|
+
"is-invalid": r.isInvalid,
|
|
1187
1511
|
name: p.name,
|
|
1188
|
-
class: $(
|
|
1189
|
-
"model-value": p.modelValue ? p.modelValue.includes(
|
|
1190
|
-
disabled:
|
|
1191
|
-
"onUpdate:modelValue": (
|
|
1512
|
+
class: $(c.value),
|
|
1513
|
+
"model-value": p.modelValue ? p.modelValue.includes(r.value) : void 0,
|
|
1514
|
+
disabled: r.disabled,
|
|
1515
|
+
"onUpdate:modelValue": (_) => o(_, r.value)
|
|
1192
1516
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
1193
1517
|
], 2));
|
|
1194
1518
|
}
|
|
1195
|
-
}),
|
|
1519
|
+
}), Ht = /* @__PURE__ */ v(Mt, [["__scopeId", "data-v-c6b10172"]]);
|
|
1196
1520
|
export {
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1521
|
+
Lt as MBreadcrumb,
|
|
1522
|
+
T as MButton,
|
|
1523
|
+
pe as MCheckbox,
|
|
1524
|
+
St as MCheckboxGroup,
|
|
1525
|
+
be as MDivider,
|
|
1526
|
+
Ot as MField,
|
|
1527
|
+
Tt as MFieldGroup,
|
|
1528
|
+
P as MIconButton,
|
|
1529
|
+
Q as MLink,
|
|
1530
|
+
ae as MLoader,
|
|
1531
|
+
je as MNumberBadge,
|
|
1532
|
+
jt as MOverlay,
|
|
1533
|
+
qt as MPagination,
|
|
1534
|
+
Pt as MPasswordInput,
|
|
1535
|
+
Zt as MQuantitySelector,
|
|
1536
|
+
wa as MRadio,
|
|
1537
|
+
Nt as MRadioGroup,
|
|
1538
|
+
Fe as MSelect,
|
|
1539
|
+
Dt as MStatusBadge,
|
|
1540
|
+
Ut as MStatusNotification,
|
|
1541
|
+
Ft as MTabs,
|
|
1542
|
+
Gt as MTag,
|
|
1543
|
+
Rt as MTextArea,
|
|
1544
|
+
At as MTextInput,
|
|
1545
|
+
Bt as MToggle,
|
|
1546
|
+
Ht as MToggleGroup
|
|
1219
1547
|
};
|
|
1220
1548
|
//# sourceMappingURL=mozaic-vue.js.map
|