@mozaic-ds/vue 1.0.0-beta.5 → 1.0.0-beta.7
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 +97 -97
- package/dist/mozaic-vue.js +103 -104
- 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/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/main.ts +22 -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 v,
|
|
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 v, createBlock as w, openBlock as l, resolveDynamicComponent as j, normalizeClass as $, withCtx as S, createElementBlock as n, createCommentVNode as h, createElementVNode as d, renderSlot as g, Fragment as B, renderList as C, createVNode as V, createTextVNode as M, toDisplayString as f, normalizeStyle as Z, mergeProps as k, ref as I, watch as O, withDirectives as T, vModelDynamic as P, vModelText as N } from "vue";
|
|
2
|
+
const G = {
|
|
24
3
|
key: 0,
|
|
25
4
|
class: "mc-link__icon",
|
|
26
5
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
6
|
+
}, U = { class: "mc-link__label" }, D = {
|
|
28
7
|
key: 1,
|
|
29
8
|
class: "mc-link__icon",
|
|
30
9
|
"aria-hidden": "true"
|
|
31
|
-
},
|
|
10
|
+
}, F = /* @__PURE__ */ y({
|
|
32
11
|
__name: "MLink",
|
|
33
12
|
props: {
|
|
34
13
|
iconPosition: { default: "left" },
|
|
@@ -53,20 +32,25 @@ const U = /* @__PURE__ */ y({
|
|
|
53
32
|
to: e.router ? e.href : void 0
|
|
54
33
|
}, {
|
|
55
34
|
default: S(() => [
|
|
56
|
-
e.$slots.icon && e.iconPosition == "left" ? (l(), n("span",
|
|
35
|
+
e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", G, [
|
|
57
36
|
g(e.$slots, "icon", {}, void 0, !0)
|
|
58
37
|
])) : h("", !0),
|
|
59
|
-
d("span",
|
|
38
|
+
d("span", U, [
|
|
60
39
|
g(e.$slots, "default", {}, void 0, !0)
|
|
61
40
|
]),
|
|
62
|
-
e.$slots.icon && e.iconPosition == "right" ? (l(), n("span",
|
|
41
|
+
e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", D, [
|
|
63
42
|
g(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
|
+
}), _ = (o, a) => {
|
|
49
|
+
const t = o.__vccOpts || o;
|
|
50
|
+
for (const [e, i] of a)
|
|
51
|
+
t[e] = i;
|
|
52
|
+
return t;
|
|
53
|
+
}, R = /* @__PURE__ */ _(F, [["__scopeId", "data-v-df607c25"]]), A = { class: "mc-breadcrumb__container" }, H = /* @__PURE__ */ y({
|
|
70
54
|
__name: "MBreadcrumb",
|
|
71
55
|
props: {
|
|
72
56
|
appearance: {},
|
|
@@ -83,12 +67,12 @@ const U = /* @__PURE__ */ y({
|
|
|
83
67
|
class: $(["mc-breadcrumb", t.value]),
|
|
84
68
|
"aria-label": "Breadcrumb"
|
|
85
69
|
}, [
|
|
86
|
-
d("ul",
|
|
70
|
+
d("ul", A, [
|
|
87
71
|
(l(!0), n(B, null, C(i.links, (u, r) => (l(), n("li", {
|
|
88
72
|
class: "mc-breadcrumb__item",
|
|
89
73
|
key: `breadcrumb-${r}`
|
|
90
74
|
}, [
|
|
91
|
-
V(
|
|
75
|
+
V(R, {
|
|
92
76
|
href: u.href,
|
|
93
77
|
router: u.router,
|
|
94
78
|
appearance: i.appearance,
|
|
@@ -107,11 +91,11 @@ const U = /* @__PURE__ */ y({
|
|
|
107
91
|
])
|
|
108
92
|
], 2));
|
|
109
93
|
}
|
|
110
|
-
}),
|
|
94
|
+
}), Xa = /* @__PURE__ */ _(H, [["__scopeId", "data-v-09df4905"]]), E = { class: "mc-loader__spinner" }, Q = ["viewBox"], W = ["r"], J = {
|
|
111
95
|
key: 0,
|
|
112
96
|
class: "mc-loader__text",
|
|
113
97
|
role: "status"
|
|
114
|
-
},
|
|
98
|
+
}, K = /* @__PURE__ */ y({
|
|
115
99
|
__name: "MLoader",
|
|
116
100
|
props: {
|
|
117
101
|
appearance: { default: "standard" },
|
|
@@ -152,7 +136,7 @@ const U = /* @__PURE__ */ y({
|
|
|
152
136
|
return (s, u) => (l(), n("div", {
|
|
153
137
|
class: $(["mc-loader", t.value])
|
|
154
138
|
}, [
|
|
155
|
-
d("span",
|
|
139
|
+
d("span", E, [
|
|
156
140
|
(l(), n("svg", {
|
|
157
141
|
class: "mc-loader__icon",
|
|
158
142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -164,26 +148,26 @@ const U = /* @__PURE__ */ y({
|
|
|
164
148
|
cx: "50%",
|
|
165
149
|
cy: "50%",
|
|
166
150
|
r: i.value
|
|
167
|
-
}, null, 8,
|
|
168
|
-
], 8,
|
|
151
|
+
}, null, 8, W)
|
|
152
|
+
], 8, Q))
|
|
169
153
|
]),
|
|
170
|
-
s.text ? (l(), n("p",
|
|
154
|
+
s.text ? (l(), n("p", J, f(s.text), 1)) : h("", !0)
|
|
171
155
|
], 2));
|
|
172
156
|
}
|
|
173
|
-
}),
|
|
157
|
+
}), X = /* @__PURE__ */ _(K, [["__scopeId", "data-v-56c66912"]]), Y = ["disabled", "type"], x = {
|
|
174
158
|
key: 0,
|
|
175
159
|
class: "mc-button__icon"
|
|
176
|
-
},
|
|
160
|
+
}, ee = {
|
|
177
161
|
key: 1,
|
|
178
162
|
class: "mc-button__icon",
|
|
179
163
|
style: { position: "absolute" }
|
|
180
|
-
},
|
|
164
|
+
}, ae = {
|
|
181
165
|
key: 2,
|
|
182
166
|
class: "mc-button__icon"
|
|
183
|
-
},
|
|
167
|
+
}, se = {
|
|
184
168
|
key: 4,
|
|
185
169
|
class: "mc-button__icon"
|
|
186
|
-
},
|
|
170
|
+
}, te = /* @__PURE__ */ y({
|
|
187
171
|
__name: "MButton",
|
|
188
172
|
props: {
|
|
189
173
|
appearance: { default: "standard" },
|
|
@@ -208,16 +192,16 @@ const U = /* @__PURE__ */ y({
|
|
|
208
192
|
disabled: e.disabled,
|
|
209
193
|
type: e.type
|
|
210
194
|
}, [
|
|
211
|
-
e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span",
|
|
195
|
+
e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", x, [
|
|
212
196
|
g(e.$slots, "icon", {}, void 0, !0)
|
|
213
197
|
])) : h("", !0),
|
|
214
|
-
e.isLoading ? (l(), n("span",
|
|
215
|
-
V(
|
|
198
|
+
e.isLoading ? (l(), n("span", ee, [
|
|
199
|
+
V(X, {
|
|
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",
|
|
204
|
+
e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", ae, [
|
|
221
205
|
g(e.$slots, "icon", {}, void 0, !0)
|
|
222
206
|
])) : (l(), n("span", {
|
|
223
207
|
key: 3,
|
|
@@ -228,12 +212,12 @@ const U = /* @__PURE__ */ y({
|
|
|
228
212
|
i[0] || (i[0] = M("Button Label"))
|
|
229
213
|
], !0)
|
|
230
214
|
], 4)),
|
|
231
|
-
e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span",
|
|
215
|
+
e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", se, [
|
|
232
216
|
g(e.$slots, "icon", {}, void 0, !0)
|
|
233
217
|
])) : h("", !0)
|
|
234
|
-
], 10,
|
|
218
|
+
], 10, Y));
|
|
235
219
|
}
|
|
236
|
-
}),
|
|
220
|
+
}), le = /* @__PURE__ */ _(te, [["__scopeId", "data-v-f4f43ab6"]]), ne = { class: "mc-checkbox" }, oe = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], ie = ["for"], de = /* @__PURE__ */ y({
|
|
237
221
|
__name: "MCheckbox",
|
|
238
222
|
props: {
|
|
239
223
|
id: {},
|
|
@@ -249,7 +233,7 @@ const U = /* @__PURE__ */ y({
|
|
|
249
233
|
const t = o, e = v(() => ({
|
|
250
234
|
"is-invalid": t.isInvalid
|
|
251
235
|
})), i = a;
|
|
252
|
-
return (s, u) => (l(), n("div",
|
|
236
|
+
return (s, u) => (l(), n("div", ne, [
|
|
253
237
|
d("input", k({
|
|
254
238
|
id: s.id,
|
|
255
239
|
type: "checkbox",
|
|
@@ -261,15 +245,15 @@ const U = /* @__PURE__ */ y({
|
|
|
261
245
|
"aria-invalid": s.isInvalid
|
|
262
246
|
}, s.$attrs, {
|
|
263
247
|
onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
|
|
264
|
-
}), null, 16,
|
|
248
|
+
}), null, 16, oe),
|
|
265
249
|
s.label ? (l(), n("label", {
|
|
266
250
|
key: 0,
|
|
267
251
|
for: s.id,
|
|
268
252
|
class: "mc-checkbox__label"
|
|
269
|
-
}, f(s.label), 9,
|
|
253
|
+
}, f(s.label), 9, ie)) : h("", !0)
|
|
270
254
|
]));
|
|
271
255
|
}
|
|
272
|
-
}),
|
|
256
|
+
}), re = /* @__PURE__ */ _(de, [["__scopeId", "data-v-37fd0a35"]]), ce = /* @__PURE__ */ y({
|
|
273
257
|
__name: "MCheckboxGroup",
|
|
274
258
|
props: {
|
|
275
259
|
name: {},
|
|
@@ -298,7 +282,7 @@ const U = /* @__PURE__ */ y({
|
|
|
298
282
|
return (p, c) => (l(), n("div", {
|
|
299
283
|
class: $(["mc-field__container", s.value])
|
|
300
284
|
}, [
|
|
301
|
-
(l(!0), n(B, null, C(p.options, (m) => (l(), w(
|
|
285
|
+
(l(!0), n(B, null, C(p.options, (m) => (l(), w(re, {
|
|
302
286
|
id: m.id,
|
|
303
287
|
key: m.id,
|
|
304
288
|
label: m.label,
|
|
@@ -311,10 +295,10 @@ const U = /* @__PURE__ */ y({
|
|
|
311
295
|
}, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
312
296
|
], 2));
|
|
313
297
|
}
|
|
314
|
-
}),
|
|
298
|
+
}), Ya = /* @__PURE__ */ _(ce, [["__scopeId", "data-v-8ee4699f"]]), ue = { class: "mc-field" }, pe = ["for"], me = {
|
|
315
299
|
key: 0,
|
|
316
300
|
class: "mc-field__requirement"
|
|
317
|
-
},
|
|
301
|
+
}, _e = ["id"], ve = { class: "mc-field__content" }, be = ["id"], fe = /* @__PURE__ */ y({
|
|
318
302
|
__name: "MField",
|
|
319
303
|
props: {
|
|
320
304
|
id: {},
|
|
@@ -332,36 +316,36 @@ const U = /* @__PURE__ */ y({
|
|
|
332
316
|
"is-valid": a.isValid,
|
|
333
317
|
"is-invalid": a.isInvalid
|
|
334
318
|
}));
|
|
335
|
-
return (e, i) => (l(), n("div",
|
|
319
|
+
return (e, i) => (l(), n("div", ue, [
|
|
336
320
|
d("label", {
|
|
337
321
|
class: "mc-field__label",
|
|
338
322
|
for: e.id
|
|
339
323
|
}, [
|
|
340
324
|
M(f(e.label) + " ", 1),
|
|
341
|
-
e.requirementText ? (l(), n("span",
|
|
342
|
-
], 8,
|
|
325
|
+
e.requirementText ? (l(), n("span", me, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
|
|
326
|
+
], 8, pe),
|
|
343
327
|
e.helpId && e.helpText ? (l(), n("span", {
|
|
344
328
|
key: 0,
|
|
345
329
|
id: e.helpId,
|
|
346
330
|
class: "mc-field__help"
|
|
347
|
-
}, f(e.helpText), 9,
|
|
348
|
-
d("div",
|
|
331
|
+
}, f(e.helpText), 9, _e)) : h("", !0),
|
|
332
|
+
d("div", ve, [
|
|
349
333
|
g(e.$slots, "default", {}, void 0, !0)
|
|
350
334
|
]),
|
|
351
335
|
(e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
|
|
352
336
|
key: 1,
|
|
353
337
|
class: $(["mc-field__validation-message", t.value]),
|
|
354
338
|
id: e.messageId
|
|
355
|
-
}, f(e.message), 11,
|
|
339
|
+
}, f(e.message), 11, be)) : h("", !0)
|
|
356
340
|
]));
|
|
357
341
|
}
|
|
358
|
-
}),
|
|
342
|
+
}), xa = /* @__PURE__ */ _(fe, [["__scopeId", "data-v-ead078c4"]]), he = { class: "mc-field--group" }, $e = ["for"], ye = {
|
|
359
343
|
key: 0,
|
|
360
344
|
class: "mc-field__requirement"
|
|
361
|
-
},
|
|
345
|
+
}, ge = {
|
|
362
346
|
key: 0,
|
|
363
347
|
class: "mc-field__help"
|
|
364
|
-
},
|
|
348
|
+
}, Ve = { class: "mc-field__content" }, ke = /* @__PURE__ */ y({
|
|
365
349
|
__name: "MFieldGroup",
|
|
366
350
|
props: {
|
|
367
351
|
id: {},
|
|
@@ -377,16 +361,16 @@ const U = /* @__PURE__ */ y({
|
|
|
377
361
|
"is-valid": a.isValid,
|
|
378
362
|
"is-invalid": a.isInvalid
|
|
379
363
|
}));
|
|
380
|
-
return (e, i) => (l(), n("fieldset",
|
|
364
|
+
return (e, i) => (l(), n("fieldset", he, [
|
|
381
365
|
d("legend", {
|
|
382
366
|
class: "mc-field__legend",
|
|
383
367
|
for: e.id
|
|
384
368
|
}, [
|
|
385
369
|
M(f(e.legend) + " ", 1),
|
|
386
|
-
e.requirementText ? (l(), n("span",
|
|
387
|
-
], 8,
|
|
388
|
-
e.helpText ? (l(), n("span",
|
|
389
|
-
d("div",
|
|
370
|
+
e.requirementText ? (l(), n("span", ye, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
|
|
371
|
+
], 8, $e),
|
|
372
|
+
e.helpText ? (l(), n("span", ge, f(e.helpText), 1)) : h("", !0),
|
|
373
|
+
d("div", Ve, [
|
|
390
374
|
g(e.$slots, "default", {}, void 0, !0)
|
|
391
375
|
]),
|
|
392
376
|
(e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
|
|
@@ -395,7 +379,7 @@ const U = /* @__PURE__ */ y({
|
|
|
395
379
|
}, f(e.message), 3)) : h("", !0)
|
|
396
380
|
]));
|
|
397
381
|
}
|
|
398
|
-
}),
|
|
382
|
+
}), es = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-fc0c08dc"]]), Ie = ["disabled", "type"], we = { class: "mc-button__icon" }, Be = /* @__PURE__ */ y({
|
|
399
383
|
__name: "MIconButton",
|
|
400
384
|
props: {
|
|
401
385
|
appearance: { default: "standard" },
|
|
@@ -417,12 +401,28 @@ const U = /* @__PURE__ */ y({
|
|
|
417
401
|
disabled: e.disabled,
|
|
418
402
|
type: e.type
|
|
419
403
|
}, [
|
|
420
|
-
d("span",
|
|
404
|
+
d("span", we, [
|
|
421
405
|
g(e.$slots, "icon", {}, void 0, !0)
|
|
422
406
|
])
|
|
423
|
-
], 10,
|
|
407
|
+
], 10, Ie));
|
|
408
|
+
}
|
|
409
|
+
}), as = /* @__PURE__ */ _(Be, [["__scopeId", "data-v-abf78562"]]), Ce = /* @__PURE__ */ y({
|
|
410
|
+
__name: "MNumberBadge",
|
|
411
|
+
props: {
|
|
412
|
+
label: {},
|
|
413
|
+
appearance: { default: "standard" },
|
|
414
|
+
size: { default: "s" }
|
|
415
|
+
},
|
|
416
|
+
setup(o) {
|
|
417
|
+
const a = o, t = v(() => ({
|
|
418
|
+
[`mc-number-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
|
|
419
|
+
[`mc-number-badge--${a.size}`]: a.size && a.size != "s"
|
|
420
|
+
}));
|
|
421
|
+
return (e, i) => (l(), n("span", {
|
|
422
|
+
class: $(["mc-number-badge", t.value])
|
|
423
|
+
}, f(e.label), 3));
|
|
424
424
|
}
|
|
425
|
-
}), ss = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-
|
|
425
|
+
}), ss = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-7e6acb92"]]), Me = ["aria-labelledby"], ze = /* @__PURE__ */ y({
|
|
426
426
|
__name: "MOverlay",
|
|
427
427
|
props: {
|
|
428
428
|
isVisible: { type: Boolean },
|
|
@@ -520,7 +520,7 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
|
|
|
520
520
|
d("span", qe, f(b.clearLabel), 1)
|
|
521
521
|
])
|
|
522
522
|
])) : h("", !0),
|
|
523
|
-
V(
|
|
523
|
+
V(le, {
|
|
524
524
|
ref: "button",
|
|
525
525
|
role: "switch",
|
|
526
526
|
"aria-checked": c.value,
|
|
@@ -547,12 +547,12 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
|
|
|
547
547
|
default: "currentColor"
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
},
|
|
550
|
+
}, Ne = {
|
|
551
551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
552
552
|
viewBox: "0 0 24 24"
|
|
553
553
|
};
|
|
554
|
-
function
|
|
555
|
-
return l(), n("svg",
|
|
554
|
+
function Ge(o, a, t, e, i, s) {
|
|
555
|
+
return l(), n("svg", Ne, a[0] || (a[0] = [
|
|
556
556
|
d("g", { "clip-path": "url(#a)" }, [
|
|
557
557
|
d("path", {
|
|
558
558
|
"fill-rule": "evenodd",
|
|
@@ -570,7 +570,7 @@ function Ue(o, a, t, e, i, s) {
|
|
|
570
570
|
], -1)
|
|
571
571
|
]));
|
|
572
572
|
}
|
|
573
|
-
const
|
|
573
|
+
const Ue = /* @__PURE__ */ _(Pe, [["render", Ge]]), De = {
|
|
574
574
|
name: "Less24",
|
|
575
575
|
props: {
|
|
576
576
|
/**
|
|
@@ -581,12 +581,12 @@ const De = /* @__PURE__ */ _(Pe, [["render", Ue]]), Fe = {
|
|
|
581
581
|
default: "currentColor"
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
},
|
|
584
|
+
}, Fe = {
|
|
585
585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
586
586
|
viewBox: "0 0 24 24"
|
|
587
587
|
};
|
|
588
588
|
function Re(o, a, t, e, i, s) {
|
|
589
|
-
return l(), n("svg",
|
|
589
|
+
return l(), n("svg", Fe, a[0] || (a[0] = [
|
|
590
590
|
d("g", { "clip-path": "url(#a)" }, [
|
|
591
591
|
d("path", {
|
|
592
592
|
"fill-rule": "evenodd",
|
|
@@ -604,7 +604,7 @@ function Re(o, a, t, e, i, s) {
|
|
|
604
604
|
], -1)
|
|
605
605
|
]));
|
|
606
606
|
}
|
|
607
|
-
const Ae = /* @__PURE__ */ _(
|
|
607
|
+
const Ae = /* @__PURE__ */ _(De, [["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({
|
|
608
608
|
__name: "MQuantitySelector",
|
|
609
609
|
props: {
|
|
610
610
|
id: {},
|
|
@@ -657,7 +657,7 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
657
657
|
}, c.$attrs, {
|
|
658
658
|
onChange: m[1] || (m[1] = (b) => r(Number(b.target.value)))
|
|
659
659
|
}), null, 16, He), [
|
|
660
|
-
[
|
|
660
|
+
[N, e.value]
|
|
661
661
|
]),
|
|
662
662
|
c.readonly ? h("", !0) : (l(), n("button", {
|
|
663
663
|
key: 0,
|
|
@@ -669,7 +669,7 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
669
669
|
onClick: s
|
|
670
670
|
}, [
|
|
671
671
|
d("span", Qe, [
|
|
672
|
-
V(
|
|
672
|
+
V(Ue)
|
|
673
673
|
]),
|
|
674
674
|
d("span", We, f(c.incrementlabel), 1)
|
|
675
675
|
], 8, Ee)),
|
|
@@ -791,9 +791,8 @@ const Ae = /* @__PURE__ */ _(Fe, [["render", Re]]), He = ["id", "name", "disable
|
|
|
791
791
|
s.placeholder ? (l(), n("option", oa, " -- " + f(s.placeholder) + " -- ", 1)) : h("", !0),
|
|
792
792
|
(l(!0), n(B, null, C(s.options, (r, p) => (l(), n("option", k({
|
|
793
793
|
key: p,
|
|
794
|
-
value: r.value
|
|
795
|
-
|
|
796
|
-
}, r.attributes, {
|
|
794
|
+
value: r.value
|
|
795
|
+
}, { ref_for: !0 }, r.attributes, {
|
|
797
796
|
disabled: r.disabled
|
|
798
797
|
}), f(r.text), 17, ia))), 128))
|
|
799
798
|
], 16, na));
|
|
@@ -1012,7 +1011,7 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1012
1011
|
])) : h("", !0)
|
|
1013
1012
|
], 2));
|
|
1014
1013
|
}
|
|
1015
|
-
}), rs = /* @__PURE__ */ _(Pa, [["__scopeId", "data-v-d6e3be16"]]),
|
|
1014
|
+
}), rs = /* @__PURE__ */ _(Pa, [["__scopeId", "data-v-d6e3be16"]]), Na = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], Ga = /* @__PURE__ */ y({
|
|
1016
1015
|
__name: "MTextArea",
|
|
1017
1016
|
props: {
|
|
1018
1017
|
id: {},
|
|
@@ -1045,12 +1044,12 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1045
1044
|
readonly: s.readonly
|
|
1046
1045
|
}, s.$attrs, {
|
|
1047
1046
|
onInput: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
|
|
1048
|
-
}), null, 16,
|
|
1047
|
+
}), null, 16, Na));
|
|
1049
1048
|
}
|
|
1050
|
-
}), cs = /* @__PURE__ */ _(
|
|
1049
|
+
}), cs = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-8184b69c"]]), Ua = {
|
|
1051
1050
|
key: 0,
|
|
1052
1051
|
class: "mc-text-input__icon"
|
|
1053
|
-
},
|
|
1052
|
+
}, Da = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Fa = {
|
|
1054
1053
|
key: 1,
|
|
1055
1054
|
class: "mc-controls-options"
|
|
1056
1055
|
}, Ra = /* @__PURE__ */ y({
|
|
@@ -1079,7 +1078,7 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1079
1078
|
return (r, p) => (l(), n("div", {
|
|
1080
1079
|
class: $(["mc-text-input", e.value])
|
|
1081
1080
|
}, [
|
|
1082
|
-
r.$slots.icon ? (l(), n("span",
|
|
1081
|
+
r.$slots.icon ? (l(), n("span", Ua, [
|
|
1083
1082
|
g(r.$slots, "icon", {}, void 0, !0)
|
|
1084
1083
|
])) : h("", !0),
|
|
1085
1084
|
d("input", k({
|
|
@@ -1094,8 +1093,8 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1094
1093
|
readonly: r.readonly
|
|
1095
1094
|
}, r.$attrs, {
|
|
1096
1095
|
onInput: p[0] || (p[0] = (c) => u("update:modelValue", c.target.value))
|
|
1097
|
-
}), null, 16,
|
|
1098
|
-
r.isClearable && i.value ? (l(), n("div",
|
|
1096
|
+
}), null, 16, Da),
|
|
1097
|
+
r.isClearable && i.value ? (l(), n("div", Fa, [
|
|
1099
1098
|
d("button", {
|
|
1100
1099
|
type: "button",
|
|
1101
1100
|
class: "mc-controls-options__button",
|
|
@@ -1194,16 +1193,16 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
|
|
|
1194
1193
|
}
|
|
1195
1194
|
}), ps = /* @__PURE__ */ _(Ja, [["__scopeId", "data-v-c6b10172"]]);
|
|
1196
1195
|
export {
|
|
1197
|
-
Xa as
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
xa as
|
|
1202
|
-
es as
|
|
1203
|
-
as as
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1196
|
+
Xa as MBreadcrumb,
|
|
1197
|
+
le as MButton,
|
|
1198
|
+
re as MCheckbox,
|
|
1199
|
+
Ya as MCheckboxGroup,
|
|
1200
|
+
xa as MField,
|
|
1201
|
+
es as MFieldGroup,
|
|
1202
|
+
as as MIconButton,
|
|
1203
|
+
R as MLink,
|
|
1204
|
+
X as MLoader,
|
|
1205
|
+
ss as MNumberBadge,
|
|
1207
1206
|
ts as MOverlay,
|
|
1208
1207
|
ls as MPasswordInput,
|
|
1209
1208
|
ns as MQuantitySelector,
|