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