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