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