@mobileaction/action-kit 1.1.35 → 1.1.37
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/dist/action-kit.js +4 -4
- package/dist/action-kit.mjs +448 -421
- package/dist/components/side-menu/add-new-app-button/index.vue.d.ts +48 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/side-menu/add-new-app-button/index.vue.d.ts +36 -0
- package/dist/src/components/side-menu/add-new-app-button/stories/constants.d.ts +4 -0
- package/dist/src/components/side-menu/add-new-app-button/stories/default.stories.d.ts +7 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/action-kit.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as k, computed as c, defineAsyncComponent as Ce, openBlock as n, createBlock as d, resolveDynamicComponent as
|
|
2
|
-
import { Button as he, Switch as Ne, Tooltip as De, Form as Le, FormItem as Re, Avatar as Fe, Select as je, InputPassword as Ee, Input as Ve, Textarea as
|
|
1
|
+
import { defineComponent as k, computed as c, defineAsyncComponent as Ce, openBlock as n, createBlock as d, resolveDynamicComponent as X, unref as t, normalizeClass as R, mergeProps as w, createSlots as H, renderList as j, withCtx as g, renderSlot as _, createElementVNode as f, createVNode as M, createTextVNode as N, toDisplayString as C, createElementBlock as p, isRef as J, createCommentVNode as v, ref as L, Fragment as O, useSlots as oe, useAttrs as we, watch as se, Transition as fe, onMounted as _e, onBeforeUnmount as xe, normalizeStyle as ee, h as Me, createApp as Be, onUnmounted as ze, withDirectives as Z, withModifiers as Se, vShow as Y, normalizeProps as Ie, reactive as Ae, readonly as Te, toRefs as Pe } from "vue";
|
|
2
|
+
import { Button as he, Switch as Ne, Tooltip as De, Form as Le, FormItem as Re, Avatar as Fe, Select as je, InputPassword as Ee, Input as Ve, Textarea as qe, SelectOption as Ue, Checkbox as Oe, CheckboxGroup as He, Radio as We, RadioGroup as Ge, Alert as Je, Modal as Ke, Dropdown as Ze } from "ant-design-vue";
|
|
3
3
|
const ae = (a, s) => {
|
|
4
4
|
const e = a[s];
|
|
5
5
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((o, i) => {
|
|
6
6
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(i.bind(null, new Error("Unknown variable dynamic import: " + s)));
|
|
7
7
|
});
|
|
8
|
-
},
|
|
8
|
+
}, Et = ["xs", "sm", "md", "lg", "xl"], Ye = {
|
|
9
9
|
xs: "w-4 h-4",
|
|
10
10
|
sm: "w-5 h-5",
|
|
11
11
|
md: "w-6 h-6",
|
|
@@ -35,13 +35,13 @@ const ae = (a, s) => {
|
|
|
35
35
|
Ye[s.size],
|
|
36
36
|
{ "animate-spin": s.spin }
|
|
37
37
|
]);
|
|
38
|
-
return (l, r) => (n(), d(
|
|
38
|
+
return (l, r) => (n(), d(X(t(o)), {
|
|
39
39
|
class: R(t(i))
|
|
40
40
|
}, null, 8, ["class"]));
|
|
41
41
|
}
|
|
42
42
|
}), Qe = {
|
|
43
43
|
name: "MaButton"
|
|
44
|
-
},
|
|
44
|
+
}, K = /* @__PURE__ */ k({
|
|
45
45
|
...Qe,
|
|
46
46
|
props: {
|
|
47
47
|
type: { default: "primary" },
|
|
@@ -74,7 +74,7 @@ const ae = (a, s) => {
|
|
|
74
74
|
"ak-button--disabled": l.value
|
|
75
75
|
}
|
|
76
76
|
]), i = c(() => s?.loading || s?.icon), l = c(() => s?.disabled || s?.loading);
|
|
77
|
-
return (r, m) => (n(), d(t(he),
|
|
77
|
+
return (r, m) => (n(), d(t(he), w({
|
|
78
78
|
class: t(o),
|
|
79
79
|
href: s.href,
|
|
80
80
|
target: s.target,
|
|
@@ -82,10 +82,10 @@ const ae = (a, s) => {
|
|
|
82
82
|
type: t(e),
|
|
83
83
|
role: "button"
|
|
84
84
|
}, r.$attrs, { "prefix-cls": "antd-btn" }), H({ _: 2 }, [
|
|
85
|
-
j(r.$slots, (
|
|
85
|
+
j(r.$slots, (h, u) => ({
|
|
86
86
|
name: u,
|
|
87
87
|
fn: g(() => [
|
|
88
|
-
|
|
88
|
+
_(r.$slots, u)
|
|
89
89
|
])
|
|
90
90
|
})),
|
|
91
91
|
t(i) ? {
|
|
@@ -106,13 +106,13 @@ const ae = (a, s) => {
|
|
|
106
106
|
]), 1040, ["class", "href", "target", "disabled", "type"]));
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
const
|
|
109
|
+
const Vt = [
|
|
110
110
|
"primary",
|
|
111
111
|
"secondary",
|
|
112
112
|
"link",
|
|
113
113
|
"grey-link",
|
|
114
114
|
"social"
|
|
115
|
-
],
|
|
115
|
+
], qt = [
|
|
116
116
|
"dark",
|
|
117
117
|
"plain",
|
|
118
118
|
"info",
|
|
@@ -128,17 +128,17 @@ const Et = [
|
|
|
128
128
|
], Ut = [
|
|
129
129
|
"default",
|
|
130
130
|
"round"
|
|
131
|
-
],
|
|
131
|
+
], Ot = [
|
|
132
132
|
"_blank",
|
|
133
133
|
"_self",
|
|
134
134
|
"_top",
|
|
135
135
|
"_parent"
|
|
136
|
-
],
|
|
136
|
+
], Ht = [
|
|
137
137
|
"left",
|
|
138
138
|
"right"
|
|
139
139
|
], ss = { class: "icon-wrapper" }, os = {
|
|
140
140
|
name: "MaTrackButton"
|
|
141
|
-
},
|
|
141
|
+
}, Wt = /* @__PURE__ */ k({
|
|
142
142
|
...os,
|
|
143
143
|
props: {
|
|
144
144
|
variant: { default: "default" },
|
|
@@ -169,7 +169,7 @@ const Et = [
|
|
|
169
169
|
]), o = c(
|
|
170
170
|
() => s.loading ? "loader" : s?.showClose ? "close-circle" : s?.tracked ? "tick-circle-bold" : "add"
|
|
171
171
|
), i = c(() => s.size === "lg" ? "sm" : "xs");
|
|
172
|
-
return (l, r) => (n(), d(t(he),
|
|
172
|
+
return (l, r) => (n(), d(t(he), w(l.$attrs, {
|
|
173
173
|
class: t(e),
|
|
174
174
|
disabled: s?.disabled || s?.loading,
|
|
175
175
|
role: "button",
|
|
@@ -185,22 +185,22 @@ const Et = [
|
|
|
185
185
|
])
|
|
186
186
|
]),
|
|
187
187
|
default: g(() => [
|
|
188
|
-
|
|
188
|
+
N(" " + C(a.keyword) + " ", 1)
|
|
189
189
|
]),
|
|
190
190
|
_: 2
|
|
191
191
|
}, [
|
|
192
|
-
j(l.$slots, (m,
|
|
193
|
-
name:
|
|
192
|
+
j(l.$slots, (m, h) => ({
|
|
193
|
+
name: h,
|
|
194
194
|
fn: g(() => [
|
|
195
|
-
|
|
195
|
+
_(l.$slots, h)
|
|
196
196
|
])
|
|
197
197
|
}))
|
|
198
198
|
]), 1040, ["class", "disabled"]));
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
|
-
const
|
|
201
|
+
const Gt = [
|
|
202
202
|
"default"
|
|
203
|
-
],
|
|
203
|
+
], Jt = [
|
|
204
204
|
"sm",
|
|
205
205
|
"md",
|
|
206
206
|
"lg"
|
|
@@ -215,7 +215,7 @@ const Wt = [
|
|
|
215
215
|
class: "ma-toggle__titles__sub-title"
|
|
216
216
|
}, is = {
|
|
217
217
|
name: "MaToggle"
|
|
218
|
-
},
|
|
218
|
+
}, Kt = /* @__PURE__ */ k({
|
|
219
219
|
...is,
|
|
220
220
|
props: {
|
|
221
221
|
size: { default: "default" },
|
|
@@ -246,7 +246,7 @@ const Wt = [
|
|
|
246
246
|
return (l, r) => (n(), p("div", {
|
|
247
247
|
class: R(t(i))
|
|
248
248
|
}, [
|
|
249
|
-
M(t(Ne),
|
|
249
|
+
M(t(Ne), w({
|
|
250
250
|
class: "ma-toggle__switch",
|
|
251
251
|
checked: t(o),
|
|
252
252
|
"onUpdate:checked": r[0] || (r[0] = (m) => J(o) ? o.value = m : null)
|
|
@@ -265,13 +265,13 @@ const Wt = [
|
|
|
265
265
|
], 2));
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
const
|
|
268
|
+
const Zt = [
|
|
269
269
|
"small",
|
|
270
270
|
"default",
|
|
271
271
|
"large"
|
|
272
272
|
], ls = ["aria-checked", "disabled"], rs = {
|
|
273
273
|
name: "MaSwitch"
|
|
274
|
-
},
|
|
274
|
+
}, Yt = /* @__PURE__ */ k({
|
|
275
275
|
...rs,
|
|
276
276
|
props: {
|
|
277
277
|
active: null,
|
|
@@ -304,7 +304,7 @@ const Kt = [
|
|
|
304
304
|
]), l = (r) => {
|
|
305
305
|
e.disabled || (o.value = r);
|
|
306
306
|
};
|
|
307
|
-
return (r, m) => (n(), p("button",
|
|
307
|
+
return (r, m) => (n(), p("button", w(r.$attrs, {
|
|
308
308
|
class: t(i),
|
|
309
309
|
type: "button",
|
|
310
310
|
role: "switch",
|
|
@@ -313,7 +313,7 @@ const Kt = [
|
|
|
313
313
|
}), [
|
|
314
314
|
f("span", {
|
|
315
315
|
class: R({ active: e.active === e.leftValue }),
|
|
316
|
-
onClick: m[0] || (m[0] = (
|
|
316
|
+
onClick: m[0] || (m[0] = (h) => l(e.leftValue))
|
|
317
317
|
}, [
|
|
318
318
|
M(b, {
|
|
319
319
|
name: e.leftIcon
|
|
@@ -321,7 +321,7 @@ const Kt = [
|
|
|
321
321
|
], 2),
|
|
322
322
|
f("span", {
|
|
323
323
|
class: R({ active: e.active === e.rightValue }),
|
|
324
|
-
onClick: m[1] || (m[1] = (
|
|
324
|
+
onClick: m[1] || (m[1] = (h) => l(e.rightValue))
|
|
325
325
|
}, [
|
|
326
326
|
M(b, {
|
|
327
327
|
name: e.rightIcon
|
|
@@ -330,7 +330,7 @@ const Kt = [
|
|
|
330
330
|
], 16, ls));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
const
|
|
333
|
+
const Xt = [
|
|
334
334
|
"primary",
|
|
335
335
|
"secondary"
|
|
336
336
|
], cs = { class: "ak-tooltip-overlay__content" }, ps = { class: "ak-tooltip-overlay__content__title" }, us = {
|
|
@@ -365,9 +365,9 @@ const Yt = [
|
|
|
365
365
|
].join(" ")), i = L(s.defaultVisible), l = () => {
|
|
366
366
|
i.value = !1;
|
|
367
367
|
};
|
|
368
|
-
return (r, m) => (n(), d(t(De),
|
|
368
|
+
return (r, m) => (n(), d(t(De), w(r.$attrs, {
|
|
369
369
|
visible: i.value,
|
|
370
|
-
"onUpdate:visible": m[0] || (m[0] = (
|
|
370
|
+
"onUpdate:visible": m[0] || (m[0] = (h) => i.value = h),
|
|
371
371
|
class: t(e),
|
|
372
372
|
placement: s.placement,
|
|
373
373
|
trigger: s.trigger,
|
|
@@ -380,15 +380,15 @@ const Yt = [
|
|
|
380
380
|
size: "xs",
|
|
381
381
|
name: s.icon
|
|
382
382
|
}, null, 8, ["name"])) : v("", !0),
|
|
383
|
-
|
|
383
|
+
_(r.$slots, "icon"),
|
|
384
384
|
f("div", cs, [
|
|
385
385
|
f("span", ps, [
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
N(C(s.title) + " ", 1),
|
|
387
|
+
_(r.$slots, "title")
|
|
388
388
|
]),
|
|
389
389
|
s?.description || r.$slots.description ? (n(), p("span", us, [
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
N(C(s.description) + " ", 1),
|
|
391
|
+
_(r.$slots, "description")
|
|
392
392
|
])) : v("", !0)
|
|
393
393
|
]),
|
|
394
394
|
s.closable ? (n(), d(b, {
|
|
@@ -400,13 +400,13 @@ const Yt = [
|
|
|
400
400
|
})) : v("", !0)
|
|
401
401
|
]),
|
|
402
402
|
default: g(() => [
|
|
403
|
-
|
|
403
|
+
_(r.$slots, "default")
|
|
404
404
|
]),
|
|
405
405
|
_: 3
|
|
406
406
|
}, 16, ["visible", "class", "placement", "trigger", "overlayClassName"]));
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
|
-
const
|
|
409
|
+
const Qt = [
|
|
410
410
|
"top",
|
|
411
411
|
"left",
|
|
412
412
|
"right",
|
|
@@ -419,10 +419,10 @@ const Xt = [
|
|
|
419
419
|
"leftBottom",
|
|
420
420
|
"rightTop",
|
|
421
421
|
"rightBottom"
|
|
422
|
-
],
|
|
422
|
+
], en = [
|
|
423
423
|
"primary",
|
|
424
424
|
"secondary"
|
|
425
|
-
],
|
|
425
|
+
], sn = [
|
|
426
426
|
"hover",
|
|
427
427
|
"focus",
|
|
428
428
|
"click",
|
|
@@ -452,7 +452,7 @@ function _s(a, s, e, o, i, l) {
|
|
|
452
452
|
}
|
|
453
453
|
const hs = /* @__PURE__ */ gs(ms, [["render", _s]]), ys = {
|
|
454
454
|
name: "MaForm"
|
|
455
|
-
},
|
|
455
|
+
}, on = /* @__PURE__ */ k({
|
|
456
456
|
...ys,
|
|
457
457
|
props: {
|
|
458
458
|
nonHubspotFormsIgnore: { type: Boolean, default: !0 }
|
|
@@ -465,7 +465,7 @@ const hs = /* @__PURE__ */ gs(ms, [["render", _s]]), ys = {
|
|
|
465
465
|
resetFields: () => o.value.resetFields(),
|
|
466
466
|
scrollToField: () => o.value.scrollToField(),
|
|
467
467
|
validateFields: () => o.value.validateFields()
|
|
468
|
-
}), (u, B) => (n(), d(t(Le),
|
|
468
|
+
}), (u, B) => (n(), d(t(Le), w(u.$attrs, {
|
|
469
469
|
class: "ma-form",
|
|
470
470
|
"prefix-cls": "antd-form",
|
|
471
471
|
ref_key: "form",
|
|
@@ -473,7 +473,7 @@ const hs = /* @__PURE__ */ gs(ms, [["render", _s]]), ys = {
|
|
|
473
473
|
}), {
|
|
474
474
|
default: g(() => [
|
|
475
475
|
e.nonHubspotFormsIgnore ? (n(), d(hs, { key: 0 })) : v("", !0),
|
|
476
|
-
|
|
476
|
+
_(u.$slots, "default")
|
|
477
477
|
]),
|
|
478
478
|
_: 3
|
|
479
479
|
}, 16));
|
|
@@ -481,22 +481,22 @@ const hs = /* @__PURE__ */ gs(ms, [["render", _s]]), ys = {
|
|
|
481
481
|
});
|
|
482
482
|
const bs = {
|
|
483
483
|
name: "MaFormItem"
|
|
484
|
-
},
|
|
484
|
+
}, tn = /* @__PURE__ */ k({
|
|
485
485
|
...bs,
|
|
486
486
|
setup(a) {
|
|
487
|
-
return (s, e) => (n(), d(t(Re),
|
|
487
|
+
return (s, e) => (n(), d(t(Re), w(s.$attrs, {
|
|
488
488
|
class: "ma-form-item",
|
|
489
489
|
"prefix-cls": "antd-form"
|
|
490
490
|
}), H({ _: 2 }, [
|
|
491
491
|
j(s.$slots, (o, i) => ({
|
|
492
492
|
name: i,
|
|
493
493
|
fn: g(() => [
|
|
494
|
-
|
|
494
|
+
_(s.$slots, i)
|
|
495
495
|
])
|
|
496
496
|
}))
|
|
497
497
|
]), 1040));
|
|
498
498
|
}
|
|
499
|
-
}),
|
|
499
|
+
}), nn = [
|
|
500
500
|
"horizontal",
|
|
501
501
|
"vertical",
|
|
502
502
|
"inline"
|
|
@@ -515,7 +515,7 @@ const bs = {
|
|
|
515
515
|
small: "small",
|
|
516
516
|
medium: "medium",
|
|
517
517
|
large: "large"
|
|
518
|
-
},
|
|
518
|
+
}, an = {
|
|
519
519
|
usd: "USD",
|
|
520
520
|
eur: "EUR",
|
|
521
521
|
gbp: "GBP",
|
|
@@ -535,7 +535,7 @@ const bs = {
|
|
|
535
535
|
}, xs = /* @__PURE__ */ k({
|
|
536
536
|
...ws,
|
|
537
537
|
setup(a) {
|
|
538
|
-
return (s, e) => (n(), d(t(Fe),
|
|
538
|
+
return (s, e) => (n(), d(t(Fe), w(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
|
|
539
539
|
}
|
|
540
540
|
}), Ms = { class: "dropdown-wrapper" }, Bs = { class: "mobile-header" }, zs = /* @__PURE__ */ f("label", null, "Select", -1), Ss = {
|
|
541
541
|
name: "MaDropdownRender"
|
|
@@ -571,19 +571,19 @@ const bs = {
|
|
|
571
571
|
onClick: l
|
|
572
572
|
}),
|
|
573
573
|
zs,
|
|
574
|
-
M(
|
|
574
|
+
M(K, {
|
|
575
575
|
type: "grey-link",
|
|
576
576
|
onClick: l
|
|
577
577
|
}, {
|
|
578
578
|
default: g(() => [
|
|
579
|
-
|
|
579
|
+
N("Done")
|
|
580
580
|
]),
|
|
581
581
|
_: 1
|
|
582
582
|
})
|
|
583
583
|
]),
|
|
584
584
|
M(js, {
|
|
585
585
|
value: t(i),
|
|
586
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
586
|
+
"onUpdate:value": m[0] || (m[0] = (h) => J(i) ? i.value = h : null),
|
|
587
587
|
autofocus: "",
|
|
588
588
|
placeholder: "Search",
|
|
589
589
|
"prefix-icon": "search-normal"
|
|
@@ -632,10 +632,10 @@ const bs = {
|
|
|
632
632
|
get() {
|
|
633
633
|
return e.value;
|
|
634
634
|
},
|
|
635
|
-
set(
|
|
636
|
-
s("update:value",
|
|
635
|
+
set(x) {
|
|
636
|
+
s("update:value", x);
|
|
637
637
|
}
|
|
638
|
-
}),
|
|
638
|
+
}), h = c(() => [
|
|
639
639
|
"ma-select",
|
|
640
640
|
`ma-select--${e.size}`,
|
|
641
641
|
{
|
|
@@ -651,18 +651,18 @@ const bs = {
|
|
|
651
651
|
e?.dropdownClassName,
|
|
652
652
|
"ma-select-dropdown",
|
|
653
653
|
!e?.mode && (o?.prefixIcon || e?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
654
|
-
].join(" ")), B = c(() => e?.loading ? "loader" : e?.suffixIcon), I = c(() => Object.keys(o).filter((
|
|
654
|
+
].join(" ")), B = c(() => e?.loading ? "loader" : e?.suffixIcon), I = c(() => Object.keys(o).filter((x) => !["option"].includes(x))), S = c(() => e?.showArrow || !e?.mode), P = () => {
|
|
655
655
|
l.value = !0;
|
|
656
|
-
}, $ = (
|
|
657
|
-
l.value =
|
|
656
|
+
}, $ = (x) => {
|
|
657
|
+
l.value = x, i.value = "";
|
|
658
658
|
}, A = c(() => !r.value && e?.showSearch), z = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : e?.listHeight, E = () => {
|
|
659
659
|
l.value = !1;
|
|
660
660
|
};
|
|
661
|
-
return (
|
|
661
|
+
return (x, V) => (n(), d(t(je), w({
|
|
662
662
|
value: t(m),
|
|
663
|
-
"onUpdate:value": V[1] || (V[1] = (
|
|
664
|
-
},
|
|
665
|
-
class: t(
|
|
663
|
+
"onUpdate:value": V[1] || (V[1] = (D) => J(m) ? m.value = D : null)
|
|
664
|
+
}, x.$attrs, {
|
|
665
|
+
class: t(h),
|
|
666
666
|
allowClear: e?.allowClear,
|
|
667
667
|
autoClearSearchValue: e?.autoClearSearchValue,
|
|
668
668
|
autofocus: e?.autofocus,
|
|
@@ -690,8 +690,8 @@ const bs = {
|
|
|
690
690
|
spin: e?.loading,
|
|
691
691
|
name: t(B) || "chevron-down"
|
|
692
692
|
}, null, 8, ["spin", "name"]),
|
|
693
|
-
|
|
694
|
-
|
|
693
|
+
x.$slots?.prefixIcon || e?.prefixIcon ? (n(), p("div", As, [
|
|
694
|
+
_(x.$slots, "prefixIcon", {}, () => [
|
|
695
695
|
e?.prefixIcon ? (n(), d(b, {
|
|
696
696
|
key: 0,
|
|
697
697
|
name: e?.prefixIcon
|
|
@@ -706,18 +706,18 @@ const bs = {
|
|
|
706
706
|
]),
|
|
707
707
|
_: 2
|
|
708
708
|
}, [
|
|
709
|
-
j(t(I), (
|
|
710
|
-
name:
|
|
709
|
+
j(t(I), (D) => ({
|
|
710
|
+
name: D,
|
|
711
711
|
fn: g(() => [
|
|
712
|
-
|
|
712
|
+
_(x.$slots, D)
|
|
713
713
|
])
|
|
714
714
|
})),
|
|
715
|
-
|
|
715
|
+
x.$slots.option ? {
|
|
716
716
|
name: "option",
|
|
717
|
-
fn: g(({ label:
|
|
718
|
-
|
|
719
|
-
label:
|
|
720
|
-
value:
|
|
717
|
+
fn: g(({ label: D, value: q }) => [
|
|
718
|
+
_(x.$slots, "option", {
|
|
719
|
+
label: D,
|
|
720
|
+
value: q
|
|
721
721
|
})
|
|
722
722
|
]),
|
|
723
723
|
key: "0"
|
|
@@ -741,24 +741,24 @@ const bs = {
|
|
|
741
741
|
]),
|
|
742
742
|
key: "2"
|
|
743
743
|
} : void 0,
|
|
744
|
-
|
|
744
|
+
x.$slots.notFoundContent ? void 0 : {
|
|
745
745
|
name: "notFoundContent",
|
|
746
746
|
fn: g(() => [
|
|
747
747
|
M(b, {
|
|
748
748
|
size: "sm",
|
|
749
749
|
name: "warning"
|
|
750
750
|
}),
|
|
751
|
-
|
|
751
|
+
N(" No result found! ")
|
|
752
752
|
]),
|
|
753
753
|
key: "3"
|
|
754
754
|
},
|
|
755
755
|
t(r) && l.value ? {
|
|
756
756
|
name: "dropdownRender",
|
|
757
|
-
fn: g(({ menuNode:
|
|
757
|
+
fn: g(({ menuNode: D }) => [
|
|
758
758
|
M(Is, {
|
|
759
759
|
filter: i.value,
|
|
760
|
-
"onUpdate:filter": V[0] || (V[0] = (
|
|
761
|
-
menu:
|
|
760
|
+
"onUpdate:filter": V[0] || (V[0] = (q) => i.value = q),
|
|
761
|
+
menu: D,
|
|
762
762
|
onCloseDropdown: E
|
|
763
763
|
}, null, 8, ["filter", "menu"])
|
|
764
764
|
]),
|
|
@@ -818,44 +818,44 @@ const Ns = ["for"], Ds = {
|
|
|
818
818
|
{
|
|
819
819
|
"ak-input--filled": e?.value
|
|
820
820
|
}
|
|
821
|
-
]), m = c(() => ["ak-input__input", e?.inputClass]),
|
|
821
|
+
]), m = c(() => ["ak-input__input", e?.inputClass]), h = c({
|
|
822
822
|
get() {
|
|
823
823
|
return e.value;
|
|
824
824
|
},
|
|
825
|
-
set(
|
|
826
|
-
s("update:value",
|
|
825
|
+
set(x) {
|
|
826
|
+
s("update:value", x);
|
|
827
827
|
}
|
|
828
828
|
}), u = c(() => e.amountCurrency ? $s[e.amountCurrency] : null), B = c({
|
|
829
829
|
get() {
|
|
830
830
|
return e.amountCurrency;
|
|
831
831
|
},
|
|
832
|
-
set(
|
|
833
|
-
s("update:amountCurrency",
|
|
832
|
+
set(x) {
|
|
833
|
+
s("update:amountCurrency", x);
|
|
834
834
|
}
|
|
835
835
|
}), I = c(() => e.type === G.password ? Ee : Ve), S = c(() => e.type === G.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), P = c(() => e.type === G.url ? "https" : e?.addonBefore), $ = c(() => {
|
|
836
|
-
let
|
|
837
|
-
return o?.class && delete
|
|
838
|
-
}), A = (
|
|
839
|
-
s("change",
|
|
840
|
-
}, z = (
|
|
841
|
-
s("currency-change",
|
|
836
|
+
let x = { ...o, ...S.value };
|
|
837
|
+
return o?.class && delete x?.class, x;
|
|
838
|
+
}), A = (x) => {
|
|
839
|
+
s("change", x);
|
|
840
|
+
}, z = (x) => {
|
|
841
|
+
s("currency-change", x);
|
|
842
842
|
}, E = () => {
|
|
843
843
|
i.value.focus();
|
|
844
844
|
};
|
|
845
|
-
return (
|
|
845
|
+
return (x, V) => (n(), p("div", {
|
|
846
846
|
class: R(t(r))
|
|
847
847
|
}, [
|
|
848
|
-
|
|
848
|
+
_(x.$slots, "title"),
|
|
849
849
|
e.title ? (n(), p("label", {
|
|
850
850
|
key: 0,
|
|
851
851
|
onClick: E,
|
|
852
852
|
class: "ak-input__title",
|
|
853
|
-
for:
|
|
853
|
+
for: x.$attrs?.id
|
|
854
854
|
}, C(e.title), 9, Ns)) : v("", !0),
|
|
855
855
|
e.type !== "textarea" ? (n(), p("div", Ds, [
|
|
856
|
-
(n(), d(
|
|
857
|
-
value: t(
|
|
858
|
-
"onUpdate:value": V[1] || (V[1] = (
|
|
856
|
+
(n(), d(X(t(I)), w({
|
|
857
|
+
value: t(h),
|
|
858
|
+
"onUpdate:value": V[1] || (V[1] = (D) => J(h) ? h.value = D : null)
|
|
859
859
|
}, t($), {
|
|
860
860
|
allowClear: e?.allowClear,
|
|
861
861
|
type: t(l),
|
|
@@ -883,7 +883,7 @@ const Ns = ["for"], Ds = {
|
|
|
883
883
|
e.type === "amount" ? (n(), d(Ps, {
|
|
884
884
|
key: 0,
|
|
885
885
|
value: t(B),
|
|
886
|
-
"onUpdate:value": V[0] || (V[0] = (
|
|
886
|
+
"onUpdate:value": V[0] || (V[0] = (D) => J(B) ? B.value = D : null),
|
|
887
887
|
onChange: z,
|
|
888
888
|
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
889
889
|
options: t(Cs),
|
|
@@ -898,17 +898,17 @@ const Ns = ["for"], Ds = {
|
|
|
898
898
|
]),
|
|
899
899
|
_: 2
|
|
900
900
|
}, [
|
|
901
|
-
j(
|
|
902
|
-
name:
|
|
901
|
+
j(x.$slots, (D, q) => ({
|
|
902
|
+
name: q,
|
|
903
903
|
fn: g(() => [
|
|
904
|
-
|
|
904
|
+
_(x.$slots, q)
|
|
905
905
|
])
|
|
906
906
|
}))
|
|
907
907
|
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter", "class"]))
|
|
908
|
-
])) : (n(), d(t(
|
|
908
|
+
])) : (n(), d(t(qe), w({
|
|
909
909
|
key: 2,
|
|
910
|
-
value: t(
|
|
911
|
-
"onUpdate:value": V[2] || (V[2] = (
|
|
910
|
+
value: t(h),
|
|
911
|
+
"onUpdate:value": V[2] || (V[2] = (D) => J(h) ? h.value = D : null)
|
|
912
912
|
}, t($), {
|
|
913
913
|
class: t(m),
|
|
914
914
|
disabled: e?.disabled,
|
|
@@ -917,45 +917,45 @@ const Ns = ["for"], Ds = {
|
|
|
917
917
|
ref_key: "inputRef",
|
|
918
918
|
ref: i
|
|
919
919
|
}), H({ _: 2 }, [
|
|
920
|
-
j(
|
|
921
|
-
name:
|
|
920
|
+
j(x.$slots, (D, q) => ({
|
|
921
|
+
name: q,
|
|
922
922
|
fn: g(() => [
|
|
923
|
-
|
|
923
|
+
_(x.$slots, q)
|
|
924
924
|
])
|
|
925
925
|
}))
|
|
926
926
|
]), 1040, ["value", "class", "disabled", "placeholder"])),
|
|
927
|
-
|
|
927
|
+
_(x.$slots, "hint"),
|
|
928
928
|
e.hintText ? (n(), p("div", Rs, C(e.hintText), 1)) : v("", !0)
|
|
929
929
|
], 2));
|
|
930
930
|
}
|
|
931
931
|
});
|
|
932
932
|
const Es = {
|
|
933
933
|
name: "MaSelectOption"
|
|
934
|
-
},
|
|
934
|
+
}, ln = /* @__PURE__ */ k({
|
|
935
935
|
...Es,
|
|
936
936
|
setup(a) {
|
|
937
|
-
return (s, e) => (n(), d(t(
|
|
937
|
+
return (s, e) => (n(), d(t(Ue), w(s.$attrs, {
|
|
938
938
|
class: "ma-select-option",
|
|
939
939
|
"prefix-cls": "antd-select"
|
|
940
940
|
}), H({ _: 2 }, [
|
|
941
941
|
j(s.$slots, (o, i) => ({
|
|
942
942
|
name: i,
|
|
943
943
|
fn: g(() => [
|
|
944
|
-
|
|
944
|
+
_(s.$slots, i)
|
|
945
945
|
])
|
|
946
946
|
}))
|
|
947
947
|
]), 1040));
|
|
948
948
|
}
|
|
949
|
-
}),
|
|
949
|
+
}), rn = [
|
|
950
950
|
"default",
|
|
951
951
|
"large",
|
|
952
952
|
"small"
|
|
953
|
-
],
|
|
953
|
+
], cn = [
|
|
954
954
|
"multiple",
|
|
955
955
|
"tags"
|
|
956
956
|
], Vs = {
|
|
957
957
|
name: "MaCheckbox"
|
|
958
|
-
},
|
|
958
|
+
}, pn = /* @__PURE__ */ k({
|
|
959
959
|
...Vs,
|
|
960
960
|
props: {
|
|
961
961
|
hint: null,
|
|
@@ -970,7 +970,7 @@ const Es = {
|
|
|
970
970
|
"ak-checkbox--intermediate": typeof s?.indeterminate == "boolean"
|
|
971
971
|
}
|
|
972
972
|
]);
|
|
973
|
-
return (o, i) => (n(), d(t(Oe),
|
|
973
|
+
return (o, i) => (n(), d(t(Oe), w(o.$attrs, {
|
|
974
974
|
class: t(e),
|
|
975
975
|
disabled: s?.disabled,
|
|
976
976
|
indeterminate: s?.indeterminate,
|
|
@@ -979,7 +979,7 @@ const Es = {
|
|
|
979
979
|
j(o.$slots, (l, r) => ({
|
|
980
980
|
name: r,
|
|
981
981
|
fn: g(() => [
|
|
982
|
-
|
|
982
|
+
_(o.$slots, r),
|
|
983
983
|
s.hint ? (n(), p("div", {
|
|
984
984
|
key: r,
|
|
985
985
|
class: "ak-checkbox__hint-text"
|
|
@@ -989,24 +989,24 @@ const Es = {
|
|
|
989
989
|
]), 1040, ["class", "disabled", "indeterminate"]));
|
|
990
990
|
}
|
|
991
991
|
});
|
|
992
|
-
const
|
|
992
|
+
const qs = {
|
|
993
993
|
name: "MaCheckboxGroup"
|
|
994
|
-
},
|
|
995
|
-
...
|
|
994
|
+
}, un = /* @__PURE__ */ k({
|
|
995
|
+
...qs,
|
|
996
996
|
props: {
|
|
997
997
|
hint: null,
|
|
998
998
|
disabled: { type: Boolean }
|
|
999
999
|
},
|
|
1000
1000
|
setup(a) {
|
|
1001
1001
|
const s = a;
|
|
1002
|
-
return (e, o) => (n(), d(t(He),
|
|
1002
|
+
return (e, o) => (n(), d(t(He), w(e.$attrs, {
|
|
1003
1003
|
class: "ak-checkbox-group ma-checkbox-group",
|
|
1004
1004
|
"prefix-cls": "antd-checkbox"
|
|
1005
1005
|
}), H({ _: 2 }, [
|
|
1006
1006
|
j(e.$slots, (i, l) => ({
|
|
1007
1007
|
name: l,
|
|
1008
1008
|
fn: g(() => [
|
|
1009
|
-
|
|
1009
|
+
_(e.$slots, l),
|
|
1010
1010
|
s.hint ? (n(), p("div", {
|
|
1011
1011
|
key: l,
|
|
1012
1012
|
class: "ak-checkbox__hint-text"
|
|
@@ -1015,7 +1015,7 @@ const Us = {
|
|
|
1015
1015
|
}))
|
|
1016
1016
|
]), 1040));
|
|
1017
1017
|
}
|
|
1018
|
-
}),
|
|
1018
|
+
}), Us = ["value"], Os = /* @__PURE__ */ k({
|
|
1019
1019
|
__name: "singleNumericInput",
|
|
1020
1020
|
props: {
|
|
1021
1021
|
value: { default: "" },
|
|
@@ -1033,7 +1033,7 @@ const Us = {
|
|
|
1033
1033
|
const i = (l) => {
|
|
1034
1034
|
s("update:value", l.target.value);
|
|
1035
1035
|
};
|
|
1036
|
-
return (l, r) => (n(), p("input",
|
|
1036
|
+
return (l, r) => (n(), p("input", w(l.$attrs, {
|
|
1037
1037
|
value: e.value,
|
|
1038
1038
|
onInput: i,
|
|
1039
1039
|
ref_key: "input",
|
|
@@ -1044,11 +1044,11 @@ const Us = {
|
|
|
1044
1044
|
maxlength: "1",
|
|
1045
1045
|
pattern: "[0-9]",
|
|
1046
1046
|
inputmode: "numeric"
|
|
1047
|
-
}), null, 16,
|
|
1047
|
+
}), null, 16, Us));
|
|
1048
1048
|
}
|
|
1049
1049
|
}), Hs = {
|
|
1050
1050
|
name: "MaNumericInput"
|
|
1051
|
-
},
|
|
1051
|
+
}, dn = /* @__PURE__ */ k({
|
|
1052
1052
|
...Hs,
|
|
1053
1053
|
props: {
|
|
1054
1054
|
disabled: { type: Boolean },
|
|
@@ -1069,7 +1069,7 @@ const Us = {
|
|
|
1069
1069
|
{
|
|
1070
1070
|
"ma-numeric-input--disabled": e?.disabled
|
|
1071
1071
|
}
|
|
1072
|
-
]), r = c(() => e?.placeholderStatus ? "0" : null), m = ($) => /^Digit[0-9]$/.test($),
|
|
1072
|
+
]), r = c(() => e?.placeholderStatus ? "0" : null), m = ($) => /^Digit[0-9]$/.test($), h = ($) => o.value = $, u = ($, A) => {
|
|
1073
1073
|
switch ($.code) {
|
|
1074
1074
|
case "Backspace":
|
|
1075
1075
|
case "Delete":
|
|
@@ -1108,14 +1108,14 @@ const Us = {
|
|
|
1108
1108
|
($) => {
|
|
1109
1109
|
$ !== i.value.join("") && $ && $.match(/^\d+$/) && (i.value = $.split("").slice(0, e.length));
|
|
1110
1110
|
}
|
|
1111
|
-
), ($, A) => (n(), p("div",
|
|
1111
|
+
), ($, A) => (n(), p("div", w({ class: t(l) }, $.$attrs), [
|
|
1112
1112
|
(n(!0), p(O, null, j(e.length, (z) => (n(), d(Os, {
|
|
1113
1113
|
focus: o.value === z - 1,
|
|
1114
1114
|
key: z,
|
|
1115
1115
|
placeholder: t(r),
|
|
1116
1116
|
value: i.value[z - 1],
|
|
1117
1117
|
disabled: e.disabled,
|
|
1118
|
-
onFocus: (E) =>
|
|
1118
|
+
onFocus: (E) => h(z - 1),
|
|
1119
1119
|
onKeydown: (E) => u(E, z - 1),
|
|
1120
1120
|
onPaste: (E) => P(E, z - 1),
|
|
1121
1121
|
class: "ma-numeric-input__input"
|
|
@@ -1123,7 +1123,7 @@ const Us = {
|
|
|
1123
1123
|
], 16));
|
|
1124
1124
|
}
|
|
1125
1125
|
});
|
|
1126
|
-
const
|
|
1126
|
+
const mn = [
|
|
1127
1127
|
"small",
|
|
1128
1128
|
"medium",
|
|
1129
1129
|
"large"
|
|
@@ -1138,14 +1138,14 @@ const dn = [
|
|
|
1138
1138
|
},
|
|
1139
1139
|
setup(a) {
|
|
1140
1140
|
const s = a, e = c(() => [`ma-radio ma-radio--${s.type}`]);
|
|
1141
|
-
return (o, i) => (n(), d(t(We),
|
|
1141
|
+
return (o, i) => (n(), d(t(We), w(o.$attrs, {
|
|
1142
1142
|
class: t(e),
|
|
1143
1143
|
"prefix-cls": "antd-radio"
|
|
1144
1144
|
}), H({ _: 2 }, [
|
|
1145
1145
|
j(o.$slots, (l, r) => ({
|
|
1146
1146
|
name: r,
|
|
1147
1147
|
fn: g(() => [
|
|
1148
|
-
|
|
1148
|
+
_(o.$slots, r),
|
|
1149
1149
|
s.hint ? (n(), p("div", {
|
|
1150
1150
|
key: r,
|
|
1151
1151
|
class: "ma-radio__hint-text"
|
|
@@ -1160,7 +1160,7 @@ const Js = ["aria-checked", "disabled"], Ks = ["src", "alt"], Zs = { class: "ma-
|
|
|
1160
1160
|
class: "ma-app-track-button__text__category"
|
|
1161
1161
|
}, Qs = { class: "ma-app-track-button__check" }, eo = {
|
|
1162
1162
|
name: "MaAppTrackButton"
|
|
1163
|
-
},
|
|
1163
|
+
}, gn = /* @__PURE__ */ k({
|
|
1164
1164
|
...eo,
|
|
1165
1165
|
props: {
|
|
1166
1166
|
checked: { type: Boolean, default: !1 },
|
|
@@ -1187,7 +1187,7 @@ const Js = ["aria-checked", "disabled"], Ks = ["src", "alt"], Zs = { class: "ma-
|
|
|
1187
1187
|
"ma-app-track-button--loading": e.loading
|
|
1188
1188
|
}
|
|
1189
1189
|
]);
|
|
1190
|
-
return (l, r) => (n(), p("button",
|
|
1190
|
+
return (l, r) => (n(), p("button", w({
|
|
1191
1191
|
class: t(i),
|
|
1192
1192
|
role: "switch",
|
|
1193
1193
|
"aria-checked": e.checked,
|
|
@@ -1241,7 +1241,7 @@ const so = { class: "ak-app-icon__logo" }, oo = ["src"], to = {
|
|
|
1241
1241
|
class: "ak-app-description"
|
|
1242
1242
|
}, lo = {
|
|
1243
1243
|
name: "MaAppIcon"
|
|
1244
|
-
},
|
|
1244
|
+
}, vn = /* @__PURE__ */ k({
|
|
1245
1245
|
...lo,
|
|
1246
1246
|
props: {
|
|
1247
1247
|
appIcon: null,
|
|
@@ -1295,30 +1295,30 @@ const so = { class: "ak-app-icon__logo" }, oo = ["src"], to = {
|
|
|
1295
1295
|
], 2));
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
|
-
const
|
|
1298
|
+
const fn = [
|
|
1299
1299
|
"x-small",
|
|
1300
1300
|
"small",
|
|
1301
1301
|
"medium",
|
|
1302
1302
|
"large",
|
|
1303
1303
|
"x-large"
|
|
1304
|
-
],
|
|
1304
|
+
], _n = [
|
|
1305
1305
|
"play",
|
|
1306
1306
|
"ios"
|
|
1307
1307
|
], ro = {
|
|
1308
1308
|
name: "MaRadioGroup"
|
|
1309
|
-
},
|
|
1309
|
+
}, hn = /* @__PURE__ */ k({
|
|
1310
1310
|
...ro,
|
|
1311
1311
|
setup(a) {
|
|
1312
|
-
return (s, e) => (n(), d(t(Ge),
|
|
1312
|
+
return (s, e) => (n(), d(t(Ge), w(s.$attrs, { "prefix-cls": "antd-radio" }), H({ _: 2 }, [
|
|
1313
1313
|
j(s.$slots, (o, i) => ({
|
|
1314
1314
|
name: i,
|
|
1315
1315
|
fn: g(() => [
|
|
1316
|
-
|
|
1316
|
+
_(s.$slots, i)
|
|
1317
1317
|
])
|
|
1318
1318
|
}))
|
|
1319
1319
|
]), 1040));
|
|
1320
1320
|
}
|
|
1321
|
-
}),
|
|
1321
|
+
}), yn = [
|
|
1322
1322
|
"button",
|
|
1323
1323
|
"check"
|
|
1324
1324
|
], co = {
|
|
@@ -1349,11 +1349,11 @@ const vn = [
|
|
|
1349
1349
|
key: 0,
|
|
1350
1350
|
name: s?.icon
|
|
1351
1351
|
}, null, 8, ["name"])) : v("", !0),
|
|
1352
|
-
|
|
1352
|
+
_(o.$slots, "default")
|
|
1353
1353
|
], 2));
|
|
1354
1354
|
}
|
|
1355
1355
|
});
|
|
1356
|
-
const
|
|
1356
|
+
const bn = [
|
|
1357
1357
|
"dark",
|
|
1358
1358
|
"blue",
|
|
1359
1359
|
"green",
|
|
@@ -1361,22 +1361,22 @@ const yn = [
|
|
|
1361
1361
|
"red",
|
|
1362
1362
|
"purple",
|
|
1363
1363
|
"purple-light"
|
|
1364
|
-
],
|
|
1364
|
+
], kn = [
|
|
1365
1365
|
"primary",
|
|
1366
1366
|
"secondary",
|
|
1367
1367
|
"line",
|
|
1368
1368
|
"dashed",
|
|
1369
1369
|
"icon"
|
|
1370
|
-
],
|
|
1370
|
+
], $n = [
|
|
1371
1371
|
"small",
|
|
1372
1372
|
"medium",
|
|
1373
1373
|
"large"
|
|
1374
|
-
],
|
|
1374
|
+
], Cn = [
|
|
1375
1375
|
"left",
|
|
1376
1376
|
"right"
|
|
1377
1377
|
], uo = {
|
|
1378
1378
|
name: "MaAlert"
|
|
1379
|
-
},
|
|
1379
|
+
}, wn = /* @__PURE__ */ k({
|
|
1380
1380
|
...uo,
|
|
1381
1381
|
props: {
|
|
1382
1382
|
variant: { default: "dark" },
|
|
@@ -1388,7 +1388,7 @@ const yn = [
|
|
|
1388
1388
|
},
|
|
1389
1389
|
setup(a) {
|
|
1390
1390
|
const s = a, e = oe(), o = c(() => [`ma-alert ak-alert ak-alert--${s.variant}--${s.type}`]), i = c(() => !!s?.icon || !!e?.icon);
|
|
1391
|
-
return (l, r) => (n(), d(t(Je),
|
|
1391
|
+
return (l, r) => (n(), d(t(Je), w(l.$attrs, {
|
|
1392
1392
|
class: t(o),
|
|
1393
1393
|
description: a.description,
|
|
1394
1394
|
message: a.message,
|
|
@@ -1408,25 +1408,25 @@ const yn = [
|
|
|
1408
1408
|
name: a.icon,
|
|
1409
1409
|
size: "lg"
|
|
1410
1410
|
}, null, 8, ["name"])) : v("", !0),
|
|
1411
|
-
|
|
1411
|
+
_(l.$slots, "icon")
|
|
1412
1412
|
]),
|
|
1413
1413
|
message: g(() => [
|
|
1414
|
-
|
|
1414
|
+
_(l.$slots, "message")
|
|
1415
1415
|
]),
|
|
1416
1416
|
description: g(() => [
|
|
1417
|
-
|
|
1417
|
+
_(l.$slots, "description")
|
|
1418
1418
|
]),
|
|
1419
1419
|
_: 3
|
|
1420
1420
|
}, 16, ["class", "description", "message", "closable", "showIcon"]));
|
|
1421
1421
|
}
|
|
1422
1422
|
});
|
|
1423
|
-
const
|
|
1423
|
+
const xn = [
|
|
1424
1424
|
"dark",
|
|
1425
1425
|
"blue",
|
|
1426
1426
|
"green",
|
|
1427
1427
|
"orange",
|
|
1428
1428
|
"red"
|
|
1429
|
-
],
|
|
1429
|
+
], Mn = [
|
|
1430
1430
|
"primary",
|
|
1431
1431
|
"secondary"
|
|
1432
1432
|
], mo = {
|
|
@@ -1459,7 +1459,7 @@ const wn = [
|
|
|
1459
1459
|
B(), u();
|
|
1460
1460
|
}
|
|
1461
1461
|
);
|
|
1462
|
-
const
|
|
1462
|
+
const h = async () => {
|
|
1463
1463
|
const { default: I } = await import("./lottie_light-b08f9446.mjs").then((S) => S.l);
|
|
1464
1464
|
i = I;
|
|
1465
1465
|
}, u = async () => {
|
|
@@ -1481,7 +1481,7 @@ const wn = [
|
|
|
1481
1481
|
r.value && r.value.destroy();
|
|
1482
1482
|
};
|
|
1483
1483
|
return _e(async () => {
|
|
1484
|
-
await
|
|
1484
|
+
await h(), u();
|
|
1485
1485
|
}), xe(() => {
|
|
1486
1486
|
B();
|
|
1487
1487
|
}), (I, S) => (n(), p("div", {
|
|
@@ -1491,14 +1491,14 @@ const wn = [
|
|
|
1491
1491
|
style: ee(t(m))
|
|
1492
1492
|
}, null, 4));
|
|
1493
1493
|
}
|
|
1494
|
-
}),
|
|
1494
|
+
}), Bn = [
|
|
1495
1495
|
"rocket",
|
|
1496
1496
|
"success-confetti",
|
|
1497
1497
|
"rounded-loading",
|
|
1498
1498
|
"fly-waiting",
|
|
1499
1499
|
"no-data-found",
|
|
1500
1500
|
"sad-not-found"
|
|
1501
|
-
],
|
|
1501
|
+
], zn = [
|
|
1502
1502
|
"info",
|
|
1503
1503
|
"success",
|
|
1504
1504
|
"confirm",
|
|
@@ -1557,7 +1557,7 @@ const wn = [
|
|
|
1557
1557
|
"ma-modal",
|
|
1558
1558
|
"ak-modal",
|
|
1559
1559
|
{ [`ak-modal--${e.type}`]: !!e.type }
|
|
1560
|
-
]),
|
|
1560
|
+
]), h = c(() => [
|
|
1561
1561
|
"ak-modal__header-icon",
|
|
1562
1562
|
{ [`ak-modal__header-icon--${e.type}`]: !!e.type }
|
|
1563
1563
|
]), u = () => {
|
|
@@ -1565,7 +1565,7 @@ const wn = [
|
|
|
1565
1565
|
}, B = () => {
|
|
1566
1566
|
s("ok");
|
|
1567
1567
|
}, I = oe();
|
|
1568
|
-
return (S, P) => (n(), d(t(Ke),
|
|
1568
|
+
return (S, P) => (n(), d(t(Ke), w(S.$attrs, {
|
|
1569
1569
|
visible: t(o),
|
|
1570
1570
|
"onUpdate:visible": P[0] || (P[0] = ($) => J(o) ? o.value = $ : null),
|
|
1571
1571
|
"prefix-cls": "antd-modal",
|
|
@@ -1587,21 +1587,21 @@ const wn = [
|
|
|
1587
1587
|
default: g(() => [
|
|
1588
1588
|
t(i) ? (n(), p("div", {
|
|
1589
1589
|
key: 0,
|
|
1590
|
-
class: R(t(
|
|
1590
|
+
class: R(t(h))
|
|
1591
1591
|
}, [
|
|
1592
1592
|
M(b, { name: t(i) }, null, 8, ["name"])
|
|
1593
1593
|
], 2)) : v("", !0),
|
|
1594
1594
|
e.title || S.$slots.title ? (n(), p("h1", vo, [
|
|
1595
|
-
|
|
1596
|
-
|
|
1595
|
+
_(S.$slots, "title"),
|
|
1596
|
+
N(" " + C(e.title), 1)
|
|
1597
1597
|
])) : v("", !0),
|
|
1598
1598
|
f("div", fo, [
|
|
1599
1599
|
e.content ? (n(), p("div", _o, C(e.content), 1)) : v("", !0),
|
|
1600
|
-
|
|
1601
|
-
|
|
1600
|
+
_(S.$slots, "content"),
|
|
1601
|
+
_(S.$slots, "default")
|
|
1602
1602
|
]),
|
|
1603
1603
|
t(r) ? (n(), p("div", ho, [
|
|
1604
|
-
e.okText ? (n(), d(
|
|
1604
|
+
e.okText ? (n(), d(K, w({
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
onClick: B,
|
|
1607
1607
|
class: "ak-modal__ok-button",
|
|
@@ -1609,21 +1609,21 @@ const wn = [
|
|
|
1609
1609
|
loading: e.confirmLoading
|
|
1610
1610
|
}, e.okButtonProps), {
|
|
1611
1611
|
default: g(() => [
|
|
1612
|
-
|
|
1612
|
+
N(C(e.okText), 1)
|
|
1613
1613
|
]),
|
|
1614
1614
|
_: 1
|
|
1615
1615
|
}, 16, ["variant", "loading"])) : v("", !0),
|
|
1616
|
-
e.cancelText ? (n(), d(
|
|
1616
|
+
e.cancelText ? (n(), d(K, w({
|
|
1617
1617
|
key: 1,
|
|
1618
1618
|
onClick: u,
|
|
1619
1619
|
type: "grey-link"
|
|
1620
1620
|
}, e.cancelButtonProps), {
|
|
1621
1621
|
default: g(() => [
|
|
1622
|
-
|
|
1622
|
+
N(C(e.cancelText), 1)
|
|
1623
1623
|
]),
|
|
1624
1624
|
_: 1
|
|
1625
1625
|
}, 16)) : v("", !0),
|
|
1626
|
-
|
|
1626
|
+
_(S.$slots, "footer")
|
|
1627
1627
|
])) : v("", !0)
|
|
1628
1628
|
]),
|
|
1629
1629
|
_: 3
|
|
@@ -1674,7 +1674,7 @@ const ko = {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
}), Co = ["tabindex"], wo = ["onMousemove", "onMouseover"], xo = {
|
|
1676
1676
|
name: "MaRate"
|
|
1677
|
-
},
|
|
1677
|
+
}, Sn = /* @__PURE__ */ k({
|
|
1678
1678
|
...xo,
|
|
1679
1679
|
props: {
|
|
1680
1680
|
value: null,
|
|
@@ -1709,7 +1709,7 @@ const ko = {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
S(o.value);
|
|
1711
1711
|
}
|
|
1712
|
-
},
|
|
1712
|
+
}, h = (P) => {
|
|
1713
1713
|
e?.disabled || (o.value = P);
|
|
1714
1714
|
}, u = () => {
|
|
1715
1715
|
o.value = 0;
|
|
@@ -1730,7 +1730,7 @@ const ko = {
|
|
|
1730
1730
|
class: "ak-rate__item",
|
|
1731
1731
|
key: A,
|
|
1732
1732
|
onMousemove: (z) => B(z, A),
|
|
1733
|
-
onMouseover: (z) =>
|
|
1733
|
+
onMouseover: (z) => h(A),
|
|
1734
1734
|
onClick: $[0] || ($[0] = (z) => m())
|
|
1735
1735
|
}, [
|
|
1736
1736
|
M($o, {
|
|
@@ -1742,11 +1742,11 @@ const ko = {
|
|
|
1742
1742
|
], 42, Co));
|
|
1743
1743
|
}
|
|
1744
1744
|
});
|
|
1745
|
-
const
|
|
1745
|
+
const In = [
|
|
1746
1746
|
"small",
|
|
1747
1747
|
"medium",
|
|
1748
1748
|
"large"
|
|
1749
|
-
],
|
|
1749
|
+
], An = [
|
|
1750
1750
|
"orange",
|
|
1751
1751
|
"green",
|
|
1752
1752
|
"red"
|
|
@@ -1778,10 +1778,10 @@ const Sn = [
|
|
|
1778
1778
|
]), i = c(() => [
|
|
1779
1779
|
"ma-spin__icon"
|
|
1780
1780
|
]), l = c(() => `spin-${s.type}`);
|
|
1781
|
-
return (r, m) => (n(), p("div",
|
|
1781
|
+
return (r, m) => (n(), p("div", w({ class: t(o) }, r.$attrs), [
|
|
1782
1782
|
s.spinning ? (n(), p("div", Mo, [
|
|
1783
1783
|
r.$slots.indicator ? (n(), p("div", Bo, [
|
|
1784
|
-
|
|
1784
|
+
_(r.$slots, "indicator")
|
|
1785
1785
|
])) : v("", !0),
|
|
1786
1786
|
s.spinning && !r.$slots.indicator ? (n(), d(b, {
|
|
1787
1787
|
key: 1,
|
|
@@ -1789,20 +1789,20 @@ const Sn = [
|
|
|
1789
1789
|
name: t(l)
|
|
1790
1790
|
}, null, 8, ["class", "name"])) : v("", !0),
|
|
1791
1791
|
r.$slots?.tip || s?.tip ? (n(), p("div", zo, [
|
|
1792
|
-
|
|
1793
|
-
|
|
1792
|
+
N(C(s?.tip) + " ", 1),
|
|
1793
|
+
_(r.$slots, "tip")
|
|
1794
1794
|
])) : v("", !0)
|
|
1795
1795
|
])) : v("", !0),
|
|
1796
|
-
|
|
1796
|
+
_(r.$slots, "default")
|
|
1797
1797
|
], 16));
|
|
1798
1798
|
}
|
|
1799
1799
|
});
|
|
1800
|
-
const
|
|
1800
|
+
const Tn = [
|
|
1801
1801
|
"round",
|
|
1802
1802
|
"dots",
|
|
1803
1803
|
"three-circles",
|
|
1804
1804
|
"three-dots"
|
|
1805
|
-
],
|
|
1805
|
+
], Pn = [
|
|
1806
1806
|
"dark",
|
|
1807
1807
|
"jordy",
|
|
1808
1808
|
"blue",
|
|
@@ -1810,7 +1810,7 @@ const An = [
|
|
|
1810
1810
|
"grey"
|
|
1811
1811
|
], Io = {
|
|
1812
1812
|
name: "MaDropdown"
|
|
1813
|
-
},
|
|
1813
|
+
}, Nn = /* @__PURE__ */ k({
|
|
1814
1814
|
...Io,
|
|
1815
1815
|
props: {
|
|
1816
1816
|
destroyPopupOnHide: { type: Boolean, default: !1 },
|
|
@@ -1832,7 +1832,7 @@ const An = [
|
|
|
1832
1832
|
}), i = c(
|
|
1833
1833
|
() => ["ma-dropdown-overlay", e?.overlayClassName].join(" ")
|
|
1834
1834
|
);
|
|
1835
|
-
return (l, r) => (n(), d(t(Ze),
|
|
1835
|
+
return (l, r) => (n(), d(t(Ze), w({
|
|
1836
1836
|
"prefix-cls": "antd-dropdown",
|
|
1837
1837
|
overlayClassName: t(i),
|
|
1838
1838
|
destroyPopupOnHide: e.destroyPopupOnHide,
|
|
@@ -1844,31 +1844,31 @@ const An = [
|
|
|
1844
1844
|
"onUpdate:visible": r[0] || (r[0] = (m) => J(o) ? o.value = m : null)
|
|
1845
1845
|
}), {
|
|
1846
1846
|
overlay: g(() => [
|
|
1847
|
-
|
|
1847
|
+
_(l.$slots, "overlay")
|
|
1848
1848
|
]),
|
|
1849
1849
|
default: g(() => [
|
|
1850
|
-
|
|
1850
|
+
_(l.$slots, "default")
|
|
1851
1851
|
]),
|
|
1852
1852
|
_: 3
|
|
1853
1853
|
}, 16, ["overlayClassName", "destroyPopupOnHide", "disabled", "placement", "trigger", "visible"]));
|
|
1854
1854
|
}
|
|
1855
1855
|
});
|
|
1856
|
-
const
|
|
1856
|
+
const Dn = [
|
|
1857
1857
|
"bottomLeft",
|
|
1858
1858
|
"bottom",
|
|
1859
1859
|
"bottomRight",
|
|
1860
1860
|
"topLeft",
|
|
1861
1861
|
"top",
|
|
1862
1862
|
"topRight"
|
|
1863
|
-
],
|
|
1863
|
+
], Ln = [
|
|
1864
1864
|
"click",
|
|
1865
1865
|
"hover",
|
|
1866
1866
|
"contextmenu"
|
|
1867
|
-
],
|
|
1867
|
+
], Rn = [
|
|
1868
1868
|
"small",
|
|
1869
1869
|
"medium",
|
|
1870
1870
|
"large"
|
|
1871
|
-
],
|
|
1871
|
+
], Fn = [
|
|
1872
1872
|
"general",
|
|
1873
1873
|
"add-app",
|
|
1874
1874
|
"table",
|
|
@@ -1880,7 +1880,7 @@ const Nn = [
|
|
|
1880
1880
|
selection: "selection"
|
|
1881
1881
|
}, Ao = { class: "ma-empty__title" }, To = { class: "ma-empty__description" }, Po = { class: "ma-empty__content" }, No = {
|
|
1882
1882
|
name: "MaEmpty"
|
|
1883
|
-
},
|
|
1883
|
+
}, jn = /* @__PURE__ */ k({
|
|
1884
1884
|
...No,
|
|
1885
1885
|
props: {
|
|
1886
1886
|
size: { default: "large" },
|
|
@@ -1899,29 +1899,29 @@ const Nn = [
|
|
|
1899
1899
|
return (i, l) => (n(), p("div", {
|
|
1900
1900
|
class: R(t(o))
|
|
1901
1901
|
}, [
|
|
1902
|
-
s?.animation ? (n(), d(go,
|
|
1902
|
+
s?.animation ? (n(), d(go, w({
|
|
1903
1903
|
key: 0,
|
|
1904
1904
|
name: a.animation
|
|
1905
|
-
}, a.animationProps), null, 16, ["name"])) : i.$slots.icon ?
|
|
1905
|
+
}, a.animationProps), null, 16, ["name"])) : i.$slots.icon ? _(i.$slots, "icon", { key: 1 }) : (n(), d(b, {
|
|
1906
1906
|
key: 2,
|
|
1907
1907
|
name: t(e),
|
|
1908
1908
|
class: "ma-empty__icon"
|
|
1909
1909
|
}, null, 8, ["name"])),
|
|
1910
1910
|
f("span", Ao, [
|
|
1911
|
-
|
|
1912
|
-
|
|
1911
|
+
N(C(a.title) + " ", 1),
|
|
1912
|
+
_(i.$slots, "title")
|
|
1913
1913
|
]),
|
|
1914
1914
|
f("span", To, [
|
|
1915
|
-
|
|
1916
|
-
|
|
1915
|
+
N(C(a.description) + " ", 1),
|
|
1916
|
+
_(i.$slots, "description")
|
|
1917
1917
|
]),
|
|
1918
1918
|
f("div", Po, [
|
|
1919
|
-
|
|
1919
|
+
_(i.$slots, "default")
|
|
1920
1920
|
])
|
|
1921
1921
|
], 2));
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
|
-
const
|
|
1924
|
+
const En = [
|
|
1925
1925
|
"button",
|
|
1926
1926
|
"box",
|
|
1927
1927
|
"small-box"
|
|
@@ -1932,7 +1932,7 @@ const jn = [
|
|
|
1932
1932
|
"lg",
|
|
1933
1933
|
"xl"
|
|
1934
1934
|
];
|
|
1935
|
-
var
|
|
1935
|
+
var U = /* @__PURE__ */ ((a) => (a.error = "error", a.done = "done", a.uploading = "uploading", a))(U || {});
|
|
1936
1936
|
const ne = (a) => {
|
|
1937
1937
|
try {
|
|
1938
1938
|
return JSON.parse(a);
|
|
@@ -1947,32 +1947,32 @@ const ne = (a) => {
|
|
|
1947
1947
|
}, Ro = (a, s = {}, e = {}, o) => {
|
|
1948
1948
|
const i = L(0);
|
|
1949
1949
|
return { progress: i, upload: async (r, m) => {
|
|
1950
|
-
const
|
|
1951
|
-
|
|
1952
|
-
|
|
1950
|
+
const h = new FormData();
|
|
1951
|
+
h.append(o, r.file), Object.entries(e).forEach(([B, I]) => {
|
|
1952
|
+
h.append(B, I);
|
|
1953
1953
|
});
|
|
1954
1954
|
const u = new XMLHttpRequest();
|
|
1955
1955
|
u.open("POST", a), Object.entries(s).forEach(([B, I]) => {
|
|
1956
1956
|
u.setRequestHeader(B, I);
|
|
1957
1957
|
}), u.upload.onprogress = (B) => {
|
|
1958
|
-
B.lengthComputable && (i.value = B.loaded / B.total * 100, m(
|
|
1958
|
+
B.lengthComputable && (i.value = B.loaded / B.total * 100, m(U.uploading, i.value));
|
|
1959
1959
|
}, u.onload = () => {
|
|
1960
1960
|
u.status >= 200 && u.status < 300 ? m(
|
|
1961
|
-
|
|
1961
|
+
U.done,
|
|
1962
1962
|
i.value,
|
|
1963
1963
|
ne(u.responseText)
|
|
1964
1964
|
) : m(
|
|
1965
|
-
|
|
1965
|
+
U.error,
|
|
1966
1966
|
i.value,
|
|
1967
1967
|
ne(u.responseText)
|
|
1968
1968
|
);
|
|
1969
1969
|
}, u.onerror = () => {
|
|
1970
1970
|
m(
|
|
1971
|
-
|
|
1971
|
+
U.error,
|
|
1972
1972
|
i.value,
|
|
1973
1973
|
ne(u.responseText)
|
|
1974
1974
|
);
|
|
1975
|
-
}, u.send(
|
|
1975
|
+
}, u.send(h), r.cancelRequest = () => u.abort();
|
|
1976
1976
|
} };
|
|
1977
1977
|
}, Fo = (a, s) => {
|
|
1978
1978
|
if (!s)
|
|
@@ -1987,12 +1987,12 @@ const ne = (a) => {
|
|
|
1987
1987
|
if (l.slice(1) === i)
|
|
1988
1988
|
return !0;
|
|
1989
1989
|
} else {
|
|
1990
|
-
const [r, m] = l.split("/"), [
|
|
1991
|
-
if (r ===
|
|
1990
|
+
const [r, m] = l.split("/"), [h, u] = o.split("/");
|
|
1991
|
+
if (r === h && m === u)
|
|
1992
1992
|
return !0;
|
|
1993
1993
|
}
|
|
1994
1994
|
return !1;
|
|
1995
|
-
}, jo = { class: "single-file" }, Eo = { class: "icon-wrapper" }, Vo = { class: "single-file__detail" },
|
|
1995
|
+
}, jo = { class: "single-file" }, Eo = { class: "icon-wrapper" }, Vo = { class: "single-file__detail" }, qo = { class: "file-name" }, Uo = {
|
|
1996
1996
|
key: 0,
|
|
1997
1997
|
class: "file-size"
|
|
1998
1998
|
}, Oo = { class: "file-progress" }, Ho = { class: "single-file__actions" }, Wo = /* @__PURE__ */ k({
|
|
@@ -2007,13 +2007,13 @@ const ne = (a) => {
|
|
|
2007
2007
|
const e = a, o = c(
|
|
2008
2008
|
() => `${(e.file.file.size / (1024 * 1024)).toFixed(1)} MB`
|
|
2009
2009
|
), i = c(() => typeof e.file.file.size == "number"), l = () => s("remove"), r = () => s("cancel");
|
|
2010
|
-
return (m,
|
|
2010
|
+
return (m, h) => (n(), p("div", jo, [
|
|
2011
2011
|
f("div", Eo, [
|
|
2012
2012
|
M(b, { name: "document-bulk" })
|
|
2013
2013
|
]),
|
|
2014
2014
|
f("div", Vo, [
|
|
2015
|
-
f("span",
|
|
2016
|
-
t(i) ? (n(), p("span",
|
|
2015
|
+
f("span", qo, C(a.file.file.name), 1),
|
|
2016
|
+
t(i) ? (n(), p("span", Uo, C(t(o)), 1)) : v("", !0),
|
|
2017
2017
|
f("span", Oo, [
|
|
2018
2018
|
f("span", {
|
|
2019
2019
|
class: "progress-item",
|
|
@@ -2022,18 +2022,18 @@ const ne = (a) => {
|
|
|
2022
2022
|
])
|
|
2023
2023
|
]),
|
|
2024
2024
|
f("div", Ho, [
|
|
2025
|
-
a.file.status === t(
|
|
2025
|
+
a.file.status === t(U).uploading ? (n(), d(K, {
|
|
2026
2026
|
key: 0,
|
|
2027
2027
|
disabled: a.disabled,
|
|
2028
|
-
onClick:
|
|
2028
|
+
onClick: h[0] || (h[0] = (u) => r()),
|
|
2029
2029
|
size: "small",
|
|
2030
2030
|
type: "primary",
|
|
2031
2031
|
variant: "plain",
|
|
2032
2032
|
icon: "close-circle-bulk"
|
|
2033
|
-
}, null, 8, ["disabled"])) : (n(), d(
|
|
2033
|
+
}, null, 8, ["disabled"])) : (n(), d(K, {
|
|
2034
2034
|
key: 1,
|
|
2035
2035
|
disabled: a.disabled,
|
|
2036
|
-
onClick:
|
|
2036
|
+
onClick: h[1] || (h[1] = (u) => l()),
|
|
2037
2037
|
size: "small",
|
|
2038
2038
|
type: "primary",
|
|
2039
2039
|
variant: "plain",
|
|
@@ -2051,7 +2051,7 @@ const ne = (a) => {
|
|
|
2051
2051
|
class: "upload-description"
|
|
2052
2052
|
}, et = {
|
|
2053
2053
|
name: "MaUpload"
|
|
2054
|
-
},
|
|
2054
|
+
}, Vn = /* @__PURE__ */ k({
|
|
2055
2055
|
...et,
|
|
2056
2056
|
props: {
|
|
2057
2057
|
fileList: null,
|
|
@@ -2075,13 +2075,13 @@ const ne = (a) => {
|
|
|
2075
2075
|
},
|
|
2076
2076
|
emits: ["update:fileList", "change", "remove", "error"],
|
|
2077
2077
|
setup(a, { emit: s }) {
|
|
2078
|
-
const e = a, o = L(null), i = L(null), l = L(!1), r = ["dragenter", "dragover", "dragleave", "drop"], m = ["dragenter", "dragover"],
|
|
2078
|
+
const e = a, o = L(null), i = L(null), l = L(!1), r = ["dragenter", "dragover", "dragleave", "drop"], m = ["dragenter", "dragover"], h = ["dragleave", "drop"], u = c({
|
|
2079
2079
|
get() {
|
|
2080
2080
|
return e.fileList;
|
|
2081
2081
|
},
|
|
2082
|
-
set(
|
|
2083
|
-
s("update:fileList",
|
|
2084
|
-
if ([
|
|
2082
|
+
set(y) {
|
|
2083
|
+
s("update:fileList", y), s("change", y), e?.action && y.forEach(async (T, F) => {
|
|
2084
|
+
if ([U.done, U.error].includes(
|
|
2085
2085
|
T.status
|
|
2086
2086
|
))
|
|
2087
2087
|
return;
|
|
@@ -2094,7 +2094,7 @@ const ne = (a) => {
|
|
|
2094
2094
|
);
|
|
2095
2095
|
e?.beforeUpload && (T.file = await e.beforeUpload(T.file)), W(T, (Q, ke, ue) => {
|
|
2096
2096
|
if (u.value[F]) {
|
|
2097
|
-
if (Q ===
|
|
2097
|
+
if (Q === U.error) {
|
|
2098
2098
|
s("error", { file: T.file, message: ue }), te(
|
|
2099
2099
|
u.value.findIndex(($e) => $e.id === T.id)
|
|
2100
2100
|
);
|
|
@@ -2106,7 +2106,7 @@ const ne = (a) => {
|
|
|
2106
2106
|
});
|
|
2107
2107
|
}
|
|
2108
2108
|
}), B = c(
|
|
2109
|
-
() => u.value.map((
|
|
2109
|
+
() => u.value.map((y) => y.file.name).join(", ")
|
|
2110
2110
|
), I = c(
|
|
2111
2111
|
() => e.type === "box" ? e.multiple ? !0 : !u.value.length : !0
|
|
2112
2112
|
), S = c(
|
|
@@ -2125,69 +2125,69 @@ const ne = (a) => {
|
|
|
2125
2125
|
"only-file-list": !I.value
|
|
2126
2126
|
}
|
|
2127
2127
|
]), A = c(() => {
|
|
2128
|
-
const
|
|
2129
|
-
return es[
|
|
2128
|
+
const y = e?.size ? Do.indexOf(e.size) : 0;
|
|
2129
|
+
return es[y];
|
|
2130
2130
|
}), z = c(
|
|
2131
|
-
() => e.wait || u.value.some((
|
|
2132
|
-
), E = c(() => e?.disabled || z.value),
|
|
2131
|
+
() => e.wait || u.value.some((y) => y.status === U.uploading)
|
|
2132
|
+
), E = c(() => e?.disabled || z.value), x = (y) => Array.from(y).find(
|
|
2133
2133
|
(T) => e?.maxFileSize && T.size > e.maxFileSize
|
|
2134
|
-
), V = (
|
|
2135
|
-
const T =
|
|
2134
|
+
), V = (y) => {
|
|
2135
|
+
const T = y.target;
|
|
2136
2136
|
T.files && ce(Array.from(T.files));
|
|
2137
|
-
},
|
|
2137
|
+
}, D = () => {
|
|
2138
2138
|
i.value?.click();
|
|
2139
|
-
},
|
|
2140
|
-
|
|
2139
|
+
}, q = (y) => {
|
|
2140
|
+
y.preventDefault();
|
|
2141
2141
|
}, le = () => {
|
|
2142
2142
|
l.value = !0;
|
|
2143
2143
|
}, re = () => {
|
|
2144
2144
|
l.value = !1;
|
|
2145
|
-
}, ye = (
|
|
2146
|
-
E.value ||
|
|
2147
|
-
Array.from(
|
|
2145
|
+
}, ye = (y) => {
|
|
2146
|
+
E.value || y.dataTransfer?.files && ce(
|
|
2147
|
+
Array.from(y.dataTransfer.files).filter((T) => e?.accept && !Fo(T, e.accept) ? (s("error", { file: T, message: "file type does not match!" }), !1) : !0)
|
|
2148
2148
|
);
|
|
2149
|
-
}, ce = (
|
|
2150
|
-
const T =
|
|
2149
|
+
}, ce = (y) => {
|
|
2150
|
+
const T = x(y);
|
|
2151
2151
|
if (T) {
|
|
2152
2152
|
s("error", { file: T, message: "File too large" });
|
|
2153
2153
|
return;
|
|
2154
2154
|
}
|
|
2155
|
-
const F = Array.from(
|
|
2155
|
+
const F = Array.from(y).filter(
|
|
2156
2156
|
(W, Q) => e?.maxCount ? Q + 1 <= e.maxCount : !0
|
|
2157
2157
|
).map((W) => ({
|
|
2158
2158
|
file: W,
|
|
2159
2159
|
id: Lo(),
|
|
2160
|
-
status: e?.action ?
|
|
2160
|
+
status: e?.action ? U.uploading : U.done,
|
|
2161
2161
|
progress: e?.action ? 0 : 100,
|
|
2162
2162
|
response: null
|
|
2163
2163
|
}));
|
|
2164
2164
|
e.multiple ? u.value = [...u.value, ...F] : F.length && (u.value = [F[0]]);
|
|
2165
|
-
}, te = (
|
|
2166
|
-
s("remove", u.value[
|
|
2167
|
-
}, pe = (
|
|
2168
|
-
const T = u.value[
|
|
2169
|
-
typeof T?.cancelRequest == "function" && T.cancelRequest(), te(
|
|
2170
|
-
}, be = (
|
|
2171
|
-
|
|
2165
|
+
}, te = (y) => {
|
|
2166
|
+
s("remove", u.value[y]), u.value = u.value.filter((T, F) => F !== y);
|
|
2167
|
+
}, pe = (y) => {
|
|
2168
|
+
const T = u.value[y];
|
|
2169
|
+
typeof T?.cancelRequest == "function" && T.cancelRequest(), te(y);
|
|
2170
|
+
}, be = (y) => {
|
|
2171
|
+
y.stopPropagation(), u.value.forEach((T, F) => pe(F)), u.value = [];
|
|
2172
2172
|
};
|
|
2173
2173
|
return _e(() => {
|
|
2174
|
-
r.forEach((
|
|
2175
|
-
o.value?.addEventListener(
|
|
2176
|
-
}), m.forEach((
|
|
2177
|
-
o.value?.addEventListener(
|
|
2178
|
-
}),
|
|
2179
|
-
o.value?.addEventListener(
|
|
2174
|
+
r.forEach((y) => {
|
|
2175
|
+
o.value?.addEventListener(y, q);
|
|
2176
|
+
}), m.forEach((y) => {
|
|
2177
|
+
o.value?.addEventListener(y, le);
|
|
2178
|
+
}), h.forEach((y) => {
|
|
2179
|
+
o.value?.addEventListener(y, re);
|
|
2180
2180
|
});
|
|
2181
2181
|
}), ze(() => {
|
|
2182
|
-
r.forEach((
|
|
2183
|
-
o.value?.removeEventListener(
|
|
2184
|
-
}), m.forEach((
|
|
2185
|
-
o.value?.removeEventListener(
|
|
2186
|
-
}),
|
|
2187
|
-
o.value?.removeEventListener(
|
|
2182
|
+
r.forEach((y) => {
|
|
2183
|
+
o.value?.removeEventListener(y, q);
|
|
2184
|
+
}), m.forEach((y) => {
|
|
2185
|
+
o.value?.removeEventListener(y, le);
|
|
2186
|
+
}), h.forEach((y) => {
|
|
2187
|
+
o.value?.removeEventListener(y, re);
|
|
2188
2188
|
});
|
|
2189
|
-
}), (
|
|
2190
|
-
|
|
2189
|
+
}), (y, T) => (n(), p("div", w({ class: "ma-upload-wrapper" }, y.$attrs), [
|
|
2190
|
+
Z(f("div", {
|
|
2191
2191
|
ref_key: "uploadArea",
|
|
2192
2192
|
ref: o,
|
|
2193
2193
|
class: R(t(P)),
|
|
@@ -2203,24 +2203,24 @@ const ne = (a) => {
|
|
|
2203
2203
|
ref_key: "fileInput",
|
|
2204
2204
|
ref: i
|
|
2205
2205
|
}, null, 40, Jo)),
|
|
2206
|
-
e.type === "button" ? (n(), d(
|
|
2206
|
+
e.type === "button" ? (n(), d(K, {
|
|
2207
2207
|
key: 0,
|
|
2208
2208
|
type: a.fileList.length ? "primary" : "secondary",
|
|
2209
2209
|
variant: "dark",
|
|
2210
2210
|
icon: "export-2",
|
|
2211
|
-
onClick:
|
|
2211
|
+
onClick: D,
|
|
2212
2212
|
size: t(A),
|
|
2213
2213
|
disabled: t(E),
|
|
2214
2214
|
loading: t(z)
|
|
2215
2215
|
}, {
|
|
2216
2216
|
default: g(() => [
|
|
2217
|
-
|
|
2217
|
+
N(C(a.fileList.length ? t(B) : e?.title), 1)
|
|
2218
2218
|
]),
|
|
2219
2219
|
_: 1
|
|
2220
2220
|
}, 8, ["type", "size", "disabled", "loading"])) : e.type === "small-box" ? (n(), p("div", {
|
|
2221
2221
|
key: 1,
|
|
2222
2222
|
class: "ma-upload__small_box",
|
|
2223
|
-
onClick:
|
|
2223
|
+
onClick: D
|
|
2224
2224
|
}, [
|
|
2225
2225
|
t(z) ? (n(), d(ge, {
|
|
2226
2226
|
key: 0,
|
|
@@ -2232,16 +2232,16 @@ const ne = (a) => {
|
|
|
2232
2232
|
})),
|
|
2233
2233
|
f("span", Ko, [
|
|
2234
2234
|
t(z) ? (n(), p(O, { key: 0 }, [
|
|
2235
|
-
|
|
2235
|
+
N(" Uploading... ")
|
|
2236
2236
|
], 64)) : (n(), p(O, { key: 1 }, [
|
|
2237
|
-
|
|
2238
|
-
y
|
|
2237
|
+
N(C(e?.title) + " ", 1),
|
|
2238
|
+
_(y.$slots, "small-box-title")
|
|
2239
2239
|
], 64))
|
|
2240
2240
|
])
|
|
2241
2241
|
])) : (n(), p("div", {
|
|
2242
2242
|
key: 2,
|
|
2243
2243
|
class: "ma-upload__box",
|
|
2244
|
-
onClick:
|
|
2244
|
+
onClick: D
|
|
2245
2245
|
}, [
|
|
2246
2246
|
e.ordered && t(z) ? (n(), p(O, { key: 0 }, [
|
|
2247
2247
|
M(ge, {
|
|
@@ -2249,14 +2249,14 @@ const ne = (a) => {
|
|
|
2249
2249
|
color: "blue"
|
|
2250
2250
|
}),
|
|
2251
2251
|
Zo,
|
|
2252
|
-
M(
|
|
2252
|
+
M(K, {
|
|
2253
2253
|
onClick: be,
|
|
2254
2254
|
class: "box-cancel",
|
|
2255
2255
|
type: "secondary",
|
|
2256
2256
|
size: "small"
|
|
2257
2257
|
}, {
|
|
2258
2258
|
default: g(() => [
|
|
2259
|
-
|
|
2259
|
+
N(" Cancel ")
|
|
2260
2260
|
]),
|
|
2261
2261
|
_: 1
|
|
2262
2262
|
})
|
|
@@ -2265,17 +2265,17 @@ const ne = (a) => {
|
|
|
2265
2265
|
M(b, { name: "upload-bulk" })
|
|
2266
2266
|
]),
|
|
2267
2267
|
e?.title ? (n(), p("span", Xo, [
|
|
2268
|
-
|
|
2269
|
-
y
|
|
2268
|
+
N(C(e?.title) + " ", 1),
|
|
2269
|
+
_(y.$slots, "box-title")
|
|
2270
2270
|
])) : v("", !0),
|
|
2271
2271
|
e?.description ? (n(), p("span", Qo, [
|
|
2272
|
-
|
|
2273
|
-
y
|
|
2272
|
+
N(C(e?.description) + " ", 1),
|
|
2273
|
+
_(y.$slots, "box-description")
|
|
2274
2274
|
])) : v("", !0)
|
|
2275
2275
|
], 64))
|
|
2276
2276
|
]))
|
|
2277
2277
|
], 42, Go), [
|
|
2278
|
-
[
|
|
2278
|
+
[Y, t(I)]
|
|
2279
2279
|
]),
|
|
2280
2280
|
t(S) ? (n(), p("div", {
|
|
2281
2281
|
key: 0,
|
|
@@ -2294,7 +2294,7 @@ const ne = (a) => {
|
|
|
2294
2294
|
});
|
|
2295
2295
|
const st = {
|
|
2296
2296
|
name: "MaSideMenuButton"
|
|
2297
|
-
},
|
|
2297
|
+
}, qn = /* @__PURE__ */ k({
|
|
2298
2298
|
...st,
|
|
2299
2299
|
props: {
|
|
2300
2300
|
icon: { default: "app" },
|
|
@@ -2308,10 +2308,10 @@ const st = {
|
|
|
2308
2308
|
const s = a, e = L(!1), o = c(() => s?.href ? "a" : "button"), i = c(() => s?.activeIcon || `${s.icon.replace("-bulk", "-bold")}`), l = c(() => [
|
|
2309
2309
|
"ma-side-menu-button",
|
|
2310
2310
|
{ active: s?.active }
|
|
2311
|
-
]), r = c(() => e.value || s.active), m = () => e.value = !0,
|
|
2312
|
-
return (u, B) => (n(), d(
|
|
2311
|
+
]), r = c(() => e.value || s.active), m = () => e.value = !0, h = () => e.value = !1;
|
|
2312
|
+
return (u, B) => (n(), d(X(t(o)), w({
|
|
2313
2313
|
onMousedown: m,
|
|
2314
|
-
onMouseup:
|
|
2314
|
+
onMouseup: h,
|
|
2315
2315
|
role: "button",
|
|
2316
2316
|
target: s?.target,
|
|
2317
2317
|
class: t(l),
|
|
@@ -2319,22 +2319,22 @@ const st = {
|
|
|
2319
2319
|
}, u.$attrs), {
|
|
2320
2320
|
default: g(() => [
|
|
2321
2321
|
s?.icon ? (n(), p(O, { key: 0 }, [
|
|
2322
|
-
|
|
2322
|
+
Z(M(b, {
|
|
2323
2323
|
size: "md",
|
|
2324
2324
|
name: t(i)
|
|
2325
2325
|
}, null, 8, ["name"]), [
|
|
2326
|
-
[
|
|
2326
|
+
[Y, t(r)]
|
|
2327
2327
|
]),
|
|
2328
|
-
|
|
2328
|
+
Z(M(b, {
|
|
2329
2329
|
size: "md",
|
|
2330
2330
|
name: s.icon
|
|
2331
2331
|
}, null, 8, ["name"]), [
|
|
2332
|
-
[
|
|
2332
|
+
[Y, !t(r)]
|
|
2333
2333
|
])
|
|
2334
2334
|
], 64)) : v("", !0),
|
|
2335
2335
|
f("span", null, [
|
|
2336
|
-
|
|
2337
|
-
|
|
2336
|
+
N(C(s?.text) + " ", 1),
|
|
2337
|
+
_(u.$slots, "default")
|
|
2338
2338
|
])
|
|
2339
2339
|
]),
|
|
2340
2340
|
_: 3
|
|
@@ -2378,7 +2378,7 @@ const ot = {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
return s.icon;
|
|
2380
2380
|
});
|
|
2381
|
-
return (l, r) => (n(), d(
|
|
2381
|
+
return (l, r) => (n(), d(X(t(e)), w({
|
|
2382
2382
|
role: "button",
|
|
2383
2383
|
target: s?.target,
|
|
2384
2384
|
class: t(o),
|
|
@@ -2392,8 +2392,8 @@ const ot = {
|
|
|
2392
2392
|
name: t(i)
|
|
2393
2393
|
}, null, 8, ["name"])
|
|
2394
2394
|
])) : v("", !0),
|
|
2395
|
-
|
|
2396
|
-
|
|
2395
|
+
N(" " + C(s?.text) + " ", 1),
|
|
2396
|
+
_(l.$slots, "default")
|
|
2397
2397
|
]),
|
|
2398
2398
|
s.badgeText ? (n(), d(po, {
|
|
2399
2399
|
key: 0,
|
|
@@ -2401,7 +2401,7 @@ const ot = {
|
|
|
2401
2401
|
variant: s.badgeColor
|
|
2402
2402
|
}, {
|
|
2403
2403
|
default: g(() => [
|
|
2404
|
-
|
|
2404
|
+
N(C(a.badgeText), 1)
|
|
2405
2405
|
]),
|
|
2406
2406
|
_: 1
|
|
2407
2407
|
}, 8, ["variant"])) : v("", !0)
|
|
@@ -2410,7 +2410,7 @@ const ot = {
|
|
|
2410
2410
|
}, 16, ["target", "class", "href"]));
|
|
2411
2411
|
}
|
|
2412
2412
|
});
|
|
2413
|
-
const
|
|
2413
|
+
const On = [
|
|
2414
2414
|
"dark",
|
|
2415
2415
|
"blue",
|
|
2416
2416
|
"jordy-blue",
|
|
@@ -2422,7 +2422,7 @@ const qn = [
|
|
|
2422
2422
|
], nt = {
|
|
2423
2423
|
name: "MaSideMenuIconButton",
|
|
2424
2424
|
inheritAttrs: !1
|
|
2425
|
-
},
|
|
2425
|
+
}, Hn = /* @__PURE__ */ k({
|
|
2426
2426
|
...nt,
|
|
2427
2427
|
props: {
|
|
2428
2428
|
icon: null,
|
|
@@ -2436,7 +2436,7 @@ const qn = [
|
|
|
2436
2436
|
const s = a, e = L(!1), o = c(() => s?.href ? "a" : "button"), i = c(() => e.value || s.active), l = c(() => s?.activeIcon || `${s.icon}-bold`), r = c(() => [
|
|
2437
2437
|
"ma-side-menu-icon-button",
|
|
2438
2438
|
{ active: s?.active }
|
|
2439
|
-
]), m = () => e.value = !0,
|
|
2439
|
+
]), m = () => e.value = !0, h = () => e.value = !1;
|
|
2440
2440
|
return (u, B) => s?.tooltipText ? (n(), d(ie, {
|
|
2441
2441
|
key: 0,
|
|
2442
2442
|
overlayClassName: "ma-icon-button-tooltip",
|
|
@@ -2445,56 +2445,56 @@ const qn = [
|
|
|
2445
2445
|
placement: "bottomLeft"
|
|
2446
2446
|
}, {
|
|
2447
2447
|
default: g(() => [
|
|
2448
|
-
(n(), d(
|
|
2448
|
+
(n(), d(X(t(o)), w({
|
|
2449
2449
|
onMousedown: m,
|
|
2450
|
-
onMouseup:
|
|
2450
|
+
onMouseup: h,
|
|
2451
2451
|
class: t(r),
|
|
2452
2452
|
href: s?.href,
|
|
2453
2453
|
target: s?.target,
|
|
2454
2454
|
role: "button"
|
|
2455
2455
|
}, u.$attrs), {
|
|
2456
2456
|
default: g(() => [
|
|
2457
|
-
|
|
2457
|
+
Z(M(b, {
|
|
2458
2458
|
size: "xs",
|
|
2459
2459
|
name: t(l)
|
|
2460
2460
|
}, null, 8, ["name"]), [
|
|
2461
|
-
[
|
|
2461
|
+
[Y, t(i)]
|
|
2462
2462
|
]),
|
|
2463
|
-
|
|
2463
|
+
Z(M(b, {
|
|
2464
2464
|
size: "xs",
|
|
2465
2465
|
name: s.icon
|
|
2466
2466
|
}, null, 8, ["name"]), [
|
|
2467
|
-
[
|
|
2467
|
+
[Y, !t(i)]
|
|
2468
2468
|
]),
|
|
2469
|
-
|
|
2469
|
+
_(u.$slots, "default")
|
|
2470
2470
|
]),
|
|
2471
2471
|
_: 3
|
|
2472
2472
|
}, 16, ["class", "href", "target"]))
|
|
2473
2473
|
]),
|
|
2474
2474
|
_: 3
|
|
2475
|
-
}, 8, ["title"])) : (n(), d(
|
|
2475
|
+
}, 8, ["title"])) : (n(), d(X(t(o)), w({
|
|
2476
2476
|
key: 1,
|
|
2477
2477
|
onMousedown: m,
|
|
2478
|
-
onMouseup:
|
|
2478
|
+
onMouseup: h,
|
|
2479
2479
|
class: t(r),
|
|
2480
2480
|
href: s?.href,
|
|
2481
2481
|
target: s?.target,
|
|
2482
2482
|
role: "button"
|
|
2483
2483
|
}, u.$attrs), {
|
|
2484
2484
|
default: g(() => [
|
|
2485
|
-
|
|
2485
|
+
Z(M(b, {
|
|
2486
2486
|
size: "xs",
|
|
2487
2487
|
name: t(l)
|
|
2488
2488
|
}, null, 8, ["name"]), [
|
|
2489
|
-
[
|
|
2489
|
+
[Y, t(i)]
|
|
2490
2490
|
]),
|
|
2491
|
-
|
|
2491
|
+
Z(M(b, {
|
|
2492
2492
|
size: "xs",
|
|
2493
2493
|
name: s.icon
|
|
2494
2494
|
}, null, 8, ["name"]), [
|
|
2495
|
-
[
|
|
2495
|
+
[Y, !t(i)]
|
|
2496
2496
|
]),
|
|
2497
|
-
|
|
2497
|
+
_(u.$slots, "default")
|
|
2498
2498
|
]),
|
|
2499
2499
|
_: 3
|
|
2500
2500
|
}, 16, ["class", "href", "target"]));
|
|
@@ -2503,14 +2503,14 @@ const qn = [
|
|
|
2503
2503
|
const at = {
|
|
2504
2504
|
name: "MaSideMenuRoundIconButton",
|
|
2505
2505
|
inheritAttrs: !1
|
|
2506
|
-
},
|
|
2506
|
+
}, Wn = /* @__PURE__ */ k({
|
|
2507
2507
|
...at,
|
|
2508
2508
|
props: {
|
|
2509
2509
|
icon: null
|
|
2510
2510
|
},
|
|
2511
2511
|
setup(a) {
|
|
2512
2512
|
const s = a;
|
|
2513
|
-
return (e, o) => (n(), p("button",
|
|
2513
|
+
return (e, o) => (n(), p("button", w({
|
|
2514
2514
|
class: "ma-side-menu-round-icon-button",
|
|
2515
2515
|
role: "button"
|
|
2516
2516
|
}, e.$attrs), [
|
|
@@ -2518,14 +2518,14 @@ const at = {
|
|
|
2518
2518
|
size: "xs",
|
|
2519
2519
|
name: s.icon
|
|
2520
2520
|
}, null, 8, ["name"]),
|
|
2521
|
-
|
|
2521
|
+
_(e.$slots, "default")
|
|
2522
2522
|
], 16));
|
|
2523
2523
|
}
|
|
2524
2524
|
});
|
|
2525
2525
|
const it = ["src", "alt"], lt = {
|
|
2526
2526
|
name: "MaSideMenuAppButton",
|
|
2527
2527
|
inheritAttrs: !1
|
|
2528
|
-
},
|
|
2528
|
+
}, Gn = /* @__PURE__ */ k({
|
|
2529
2529
|
...lt,
|
|
2530
2530
|
props: {
|
|
2531
2531
|
appImage: null,
|
|
@@ -2544,7 +2544,7 @@ const it = ["src", "alt"], lt = {
|
|
|
2544
2544
|
placement: "topLeft"
|
|
2545
2545
|
}, {
|
|
2546
2546
|
default: g(() => [
|
|
2547
|
-
f("button",
|
|
2547
|
+
f("button", w({
|
|
2548
2548
|
class: t(e),
|
|
2549
2549
|
role: "button"
|
|
2550
2550
|
}, o.$attrs), [
|
|
@@ -2552,17 +2552,43 @@ const it = ["src", "alt"], lt = {
|
|
|
2552
2552
|
src: a.appImage,
|
|
2553
2553
|
alt: a.appName
|
|
2554
2554
|
}, null, 8, it),
|
|
2555
|
-
|
|
2555
|
+
_(o.$slots, "default")
|
|
2556
2556
|
], 16)
|
|
2557
2557
|
]),
|
|
2558
2558
|
_: 3
|
|
2559
2559
|
}, 8, ["title"]));
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
|
-
const rt = {
|
|
2562
|
+
const rt = {
|
|
2563
|
+
name: "MaSideMenuAddNewAppButton"
|
|
2564
|
+
}, Jn = /* @__PURE__ */ k({
|
|
2565
|
+
...rt,
|
|
2566
|
+
props: {
|
|
2567
|
+
href: null,
|
|
2568
|
+
target: null,
|
|
2569
|
+
text: null,
|
|
2570
|
+
disabled: { type: Boolean, default: !1 }
|
|
2571
|
+
},
|
|
2572
|
+
setup(a) {
|
|
2573
|
+
const s = a;
|
|
2574
|
+
return (e, o) => (n(), d(K, w(e.$attrs, {
|
|
2575
|
+
target: s?.target,
|
|
2576
|
+
href: s?.href,
|
|
2577
|
+
disabled: s?.disabled,
|
|
2578
|
+
class: "ma-add-new-app-button"
|
|
2579
|
+
}), {
|
|
2580
|
+
default: g(() => [
|
|
2581
|
+
N(C(s?.text) + " ", 1),
|
|
2582
|
+
_(e.$slots, "default")
|
|
2583
|
+
]),
|
|
2584
|
+
_: 3
|
|
2585
|
+
}, 16, ["target", "href", "disabled"]));
|
|
2586
|
+
}
|
|
2587
|
+
});
|
|
2588
|
+
const ct = { class: "ma-progress-circle" }, pt = ["viewBox"], ut = ["d", "stroke-width"], dt = ["d", "stroke-dasharray", "stroke-dashoffset", "stroke-width"], mt = { key: 1 }, gt = {
|
|
2563
2589
|
key: 0,
|
|
2564
2590
|
class: "label"
|
|
2565
|
-
},
|
|
2591
|
+
}, vt = { class: "percent" }, ft = /* @__PURE__ */ k({
|
|
2566
2592
|
__name: "circle",
|
|
2567
2593
|
props: {
|
|
2568
2594
|
percent: null,
|
|
@@ -2608,7 +2634,7 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2608
2634
|
}, o = c(() => e[s.size]), i = c(
|
|
2609
2635
|
() => o.value.strokeDashArray * (100 - s.percent) / 100
|
|
2610
2636
|
);
|
|
2611
|
-
return (l, r) => (n(), p("div",
|
|
2637
|
+
return (l, r) => (n(), p("div", ct, [
|
|
2612
2638
|
(n(), p("svg", {
|
|
2613
2639
|
class: "circle",
|
|
2614
2640
|
viewBox: t(o).viewBox,
|
|
@@ -2621,7 +2647,7 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2621
2647
|
"stroke-linejoin": "round",
|
|
2622
2648
|
"stroke-width": t(o).strokeWidth,
|
|
2623
2649
|
class: "wrapper"
|
|
2624
|
-
}, null, 8,
|
|
2650
|
+
}, null, 8, ut),
|
|
2625
2651
|
s.percent > 0 ? (n(), p("path", {
|
|
2626
2652
|
key: 0,
|
|
2627
2653
|
d: t(o).path,
|
|
@@ -2631,18 +2657,18 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2631
2657
|
"stroke-dashoffset": t(i),
|
|
2632
2658
|
"stroke-width": t(o).strokeWidth,
|
|
2633
2659
|
class: "percent"
|
|
2634
|
-
}, null, 8,
|
|
2635
|
-
], 8,
|
|
2660
|
+
}, null, 8, dt)) : v("", !0)
|
|
2661
|
+
], 8, pt)),
|
|
2636
2662
|
s?.icon ? (n(), d(b, {
|
|
2637
2663
|
key: 0,
|
|
2638
2664
|
name: s.icon
|
|
2639
|
-
}, null, 8, ["name"])) : (n(), p("label",
|
|
2640
|
-
s?.label ? (n(), p("span",
|
|
2641
|
-
f("span",
|
|
2665
|
+
}, null, 8, ["name"])) : (n(), p("label", mt, [
|
|
2666
|
+
s?.label ? (n(), p("span", gt, C(s.label), 1)) : v("", !0),
|
|
2667
|
+
f("span", vt, C(s?.percent) + "% ", 1)
|
|
2642
2668
|
]))
|
|
2643
2669
|
]));
|
|
2644
2670
|
}
|
|
2645
|
-
}),
|
|
2671
|
+
}), _t = { class: "ma-progress-line" }, ht = { class: "line-wrapper" }, yt = { key: 1 }, bt = { class: "line-wrapper" }, kt = { key: 1 }, $t = /* @__PURE__ */ k({
|
|
2646
2672
|
__name: "line",
|
|
2647
2673
|
props: {
|
|
2648
2674
|
percent: null,
|
|
@@ -2663,10 +2689,10 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2663
2689
|
trigger: "click",
|
|
2664
2690
|
...s.tooltipProps
|
|
2665
2691
|
}));
|
|
2666
|
-
return (i, l) => (n(), p("div",
|
|
2667
|
-
s?.showTooltip ? (n(), d(ie, Ie(
|
|
2692
|
+
return (i, l) => (n(), p("div", _t, [
|
|
2693
|
+
s?.showTooltip ? (n(), d(ie, Ie(w({ key: 0 }, t(o))), {
|
|
2668
2694
|
default: g(() => [
|
|
2669
|
-
f("div",
|
|
2695
|
+
f("div", ht, [
|
|
2670
2696
|
f("div", {
|
|
2671
2697
|
class: "line",
|
|
2672
2698
|
style: ee(t(e))
|
|
@@ -2675,11 +2701,11 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2675
2701
|
s?.icon ? (n(), d(b, {
|
|
2676
2702
|
key: 0,
|
|
2677
2703
|
name: s.icon
|
|
2678
|
-
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label",
|
|
2704
|
+
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label", yt, C(s.percent) + "%", 1)) : v("", !0)
|
|
2679
2705
|
]),
|
|
2680
2706
|
_: 1
|
|
2681
2707
|
}, 16)) : (n(), p(O, { key: 1 }, [
|
|
2682
|
-
f("div",
|
|
2708
|
+
f("div", bt, [
|
|
2683
2709
|
f("div", {
|
|
2684
2710
|
class: "line",
|
|
2685
2711
|
style: ee(t(e))
|
|
@@ -2688,14 +2714,14 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2688
2714
|
s?.icon ? (n(), d(b, {
|
|
2689
2715
|
key: 0,
|
|
2690
2716
|
name: s.icon
|
|
2691
|
-
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label",
|
|
2717
|
+
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label", kt, C(s.percent) + "%", 1)) : v("", !0)
|
|
2692
2718
|
], 64))
|
|
2693
2719
|
]));
|
|
2694
2720
|
}
|
|
2695
|
-
}),
|
|
2721
|
+
}), Ct = { class: "ma-progress-circle ma-progress-half-circle" }, wt = ["viewBox"], xt = ["d", "stroke-width"], Mt = ["d", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Bt = { key: 1 }, zt = {
|
|
2696
2722
|
key: 0,
|
|
2697
2723
|
class: "label"
|
|
2698
|
-
},
|
|
2724
|
+
}, St = { class: "percent" }, It = /* @__PURE__ */ k({
|
|
2699
2725
|
__name: "halfCircle",
|
|
2700
2726
|
props: {
|
|
2701
2727
|
percent: null,
|
|
@@ -2741,7 +2767,7 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2741
2767
|
}, o = c(() => e[s.size]), i = c(
|
|
2742
2768
|
() => o.value.strokeDashArray * (100 - s.percent) / 100
|
|
2743
2769
|
);
|
|
2744
|
-
return (l, r) => (n(), p("div",
|
|
2770
|
+
return (l, r) => (n(), p("div", Ct, [
|
|
2745
2771
|
(n(), p("svg", {
|
|
2746
2772
|
class: "circle",
|
|
2747
2773
|
viewBox: t(o).viewBox,
|
|
@@ -2754,7 +2780,7 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2754
2780
|
"stroke-linecap": "round",
|
|
2755
2781
|
"stroke-linejoin": "round",
|
|
2756
2782
|
class: "wrapper"
|
|
2757
|
-
}, null, 8,
|
|
2783
|
+
}, null, 8, xt),
|
|
2758
2784
|
s.percent > 0 ? (n(), p("path", {
|
|
2759
2785
|
key: 0,
|
|
2760
2786
|
d: t(o).path,
|
|
@@ -2764,18 +2790,18 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2764
2790
|
"stroke-dasharray": t(o).strokeDashArray,
|
|
2765
2791
|
"stroke-dashoffset": t(i),
|
|
2766
2792
|
class: "percent"
|
|
2767
|
-
}, null, 8,
|
|
2768
|
-
], 8,
|
|
2793
|
+
}, null, 8, Mt)) : v("", !0)
|
|
2794
|
+
], 8, wt)),
|
|
2769
2795
|
s?.icon ? (n(), d(b, {
|
|
2770
2796
|
key: 0,
|
|
2771
2797
|
name: s.icon
|
|
2772
|
-
}, null, 8, ["name"])) : (n(), p("label",
|
|
2773
|
-
s?.label ? (n(), p("span",
|
|
2774
|
-
f("span",
|
|
2798
|
+
}, null, 8, ["name"])) : (n(), p("label", Bt, [
|
|
2799
|
+
s?.label ? (n(), p("span", zt, C(s.label), 1)) : v("", !0),
|
|
2800
|
+
f("span", St, C(s?.percent) + "% ", 1)
|
|
2775
2801
|
]))
|
|
2776
2802
|
]));
|
|
2777
2803
|
}
|
|
2778
|
-
}),
|
|
2804
|
+
}), At = { class: "ma-progress-line-step" }, Tt = { class: "step-line-wrapper" }, Pt = { key: 1 }, Nt = /* @__PURE__ */ k({
|
|
2779
2805
|
__name: "stepLine",
|
|
2780
2806
|
props: {
|
|
2781
2807
|
percent: null,
|
|
@@ -2794,8 +2820,8 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2794
2820
|
width: `${r}%`
|
|
2795
2821
|
};
|
|
2796
2822
|
};
|
|
2797
|
-
return (o, i) => (n(), p("div",
|
|
2798
|
-
f("div",
|
|
2823
|
+
return (o, i) => (n(), p("div", At, [
|
|
2824
|
+
f("div", Tt, [
|
|
2799
2825
|
(n(), p(O, null, j(10, (l) => f("div", {
|
|
2800
2826
|
class: "single-line",
|
|
2801
2827
|
key: l
|
|
@@ -2809,13 +2835,13 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2809
2835
|
s?.icon ? (n(), d(b, {
|
|
2810
2836
|
key: 0,
|
|
2811
2837
|
name: s.icon
|
|
2812
|
-
}, null, 8, ["name"])) : s?.showPercent ? (n(), p("label",
|
|
2838
|
+
}, null, 8, ["name"])) : s?.showPercent ? (n(), p("label", Pt, C(s.percent) + "%", 1)) : v("", !0)
|
|
2813
2839
|
]));
|
|
2814
2840
|
}
|
|
2815
|
-
}),
|
|
2841
|
+
}), Dt = {
|
|
2816
2842
|
name: "MaProgress"
|
|
2817
|
-
},
|
|
2818
|
-
...
|
|
2843
|
+
}, Kn = /* @__PURE__ */ k({
|
|
2844
|
+
...Dt,
|
|
2819
2845
|
props: {
|
|
2820
2846
|
type: { default: "line" },
|
|
2821
2847
|
percent: null,
|
|
@@ -2846,10 +2872,10 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2846
2872
|
}
|
|
2847
2873
|
]), o = c(
|
|
2848
2874
|
() => ({
|
|
2849
|
-
circle:
|
|
2850
|
-
line:
|
|
2851
|
-
["half-circle"]:
|
|
2852
|
-
["line-step"]:
|
|
2875
|
+
circle: ft,
|
|
2876
|
+
line: $t,
|
|
2877
|
+
["half-circle"]: It,
|
|
2878
|
+
["line-step"]: Nt
|
|
2853
2879
|
})[s.type]
|
|
2854
2880
|
), i = c(() => [
|
|
2855
2881
|
`
|
|
@@ -2862,7 +2888,7 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2862
2888
|
return (r, m) => (n(), p("div", {
|
|
2863
2889
|
class: R(t(e))
|
|
2864
2890
|
}, [
|
|
2865
|
-
(n(), d(
|
|
2891
|
+
(n(), d(X(t(o)), {
|
|
2866
2892
|
class: R(t(i)),
|
|
2867
2893
|
percent: t(l),
|
|
2868
2894
|
icon: s?.icon,
|
|
@@ -2875,28 +2901,28 @@ const rt = { class: "ma-progress-circle" }, ct = ["viewBox"], pt = ["d", "stroke
|
|
|
2875
2901
|
], 2));
|
|
2876
2902
|
}
|
|
2877
2903
|
});
|
|
2878
|
-
const
|
|
2904
|
+
const Zn = [
|
|
2879
2905
|
"line",
|
|
2880
2906
|
"line-step",
|
|
2881
2907
|
"circle",
|
|
2882
2908
|
"half-circle"
|
|
2883
|
-
],
|
|
2909
|
+
], Yn = [
|
|
2884
2910
|
"dark",
|
|
2885
2911
|
"blue",
|
|
2886
2912
|
"green",
|
|
2887
2913
|
"orange",
|
|
2888
2914
|
"red"
|
|
2889
|
-
],
|
|
2915
|
+
], Xn = [
|
|
2890
2916
|
"xs",
|
|
2891
2917
|
"sm",
|
|
2892
2918
|
"md",
|
|
2893
2919
|
"lg",
|
|
2894
2920
|
"xl"
|
|
2895
|
-
],
|
|
2921
|
+
], Qn = [
|
|
2896
2922
|
"left",
|
|
2897
2923
|
"right"
|
|
2898
2924
|
];
|
|
2899
|
-
class
|
|
2925
|
+
class Lt {
|
|
2900
2926
|
config = Ae({
|
|
2901
2927
|
language: "en"
|
|
2902
2928
|
});
|
|
@@ -2917,97 +2943,98 @@ class Dt {
|
|
|
2917
2943
|
return this.config.language;
|
|
2918
2944
|
}
|
|
2919
2945
|
}
|
|
2920
|
-
const
|
|
2921
|
-
function
|
|
2922
|
-
return Pe(
|
|
2946
|
+
const Rt = new Lt();
|
|
2947
|
+
function ea() {
|
|
2948
|
+
return Pe(Rt.getConfig());
|
|
2923
2949
|
}
|
|
2924
2950
|
export {
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2951
|
+
Rt as ActionKitConfig,
|
|
2952
|
+
Bn as Animations,
|
|
2953
|
+
_n as AppIconPlatforms,
|
|
2954
|
+
fn as AppIconSizes,
|
|
2955
|
+
Ht as ButtonIconAlignMents,
|
|
2930
2956
|
Ut as ButtonShapes,
|
|
2931
2957
|
es as ButtonSizes,
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2958
|
+
Ot as ButtonTargets,
|
|
2959
|
+
Vt as ButtonTypes,
|
|
2960
|
+
qt as ButtonVariants,
|
|
2961
|
+
wn as MaAlert,
|
|
2962
|
+
Mn as MaAlertPropTypes,
|
|
2963
|
+
xn as MaAlertPropVariants,
|
|
2938
2964
|
go as MaAnimation,
|
|
2939
|
-
|
|
2940
|
-
|
|
2965
|
+
vn as MaAppIcon,
|
|
2966
|
+
gn as MaAppTrackButton,
|
|
2941
2967
|
po as MaBadge,
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2968
|
+
Cn as MaBadgePropIconAlignments,
|
|
2969
|
+
$n as MaBadgePropSizes,
|
|
2970
|
+
kn as MaBadgePropTypes,
|
|
2971
|
+
bn as MaBadgePropVariants,
|
|
2972
|
+
K as MaButton,
|
|
2973
|
+
pn as MaCheckbox,
|
|
2974
|
+
un as MaCheckboxGroup,
|
|
2975
|
+
Nn as MaDropdown,
|
|
2976
|
+
Dn as MaDropdownPlacements,
|
|
2977
|
+
Ln as MaDropdownTriggers,
|
|
2978
|
+
jn as MaEmpty,
|
|
2953
2979
|
ve as MaEmptyIcons,
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2980
|
+
Rn as MaEmptySizes,
|
|
2981
|
+
Fn as MaEmptyVariants,
|
|
2982
|
+
on as MaForm,
|
|
2983
|
+
tn as MaFormItem,
|
|
2984
|
+
nn as MaFormLayouts,
|
|
2959
2985
|
b as MaIcon,
|
|
2960
2986
|
Ye as MaIconSizeClassNames,
|
|
2961
|
-
|
|
2987
|
+
Et as MaIconSizes,
|
|
2962
2988
|
js as MaInput,
|
|
2963
|
-
|
|
2989
|
+
an as MaInputCurrency,
|
|
2964
2990
|
ks as MaInputSize,
|
|
2965
2991
|
G as MaInputType,
|
|
2966
2992
|
me as MaModal,
|
|
2967
2993
|
de as MaModalTypeIcon,
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2994
|
+
zn as MaModalTypes,
|
|
2995
|
+
dn as MaNumericInput,
|
|
2996
|
+
Kn as MaProgress,
|
|
2997
|
+
Xn as MaProgressCircleSizes,
|
|
2998
|
+
Yn as MaProgressColors,
|
|
2999
|
+
Qn as MaProgressPercentAlignments,
|
|
3000
|
+
Zn as MaProgressTypes,
|
|
2975
3001
|
Gs as MaRadio,
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
3002
|
+
hn as MaRadioGroup,
|
|
3003
|
+
yn as MaRadioTypes,
|
|
3004
|
+
Sn as MaRate,
|
|
3005
|
+
An as MaRateColors,
|
|
3006
|
+
In as MaRateSizes,
|
|
2981
3007
|
Ps as MaSelect,
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
3008
|
+
ln as MaSelectOption,
|
|
3009
|
+
Jn as MaSideMenuAddNewAppButton,
|
|
3010
|
+
Gn as MaSideMenuAppButton,
|
|
3011
|
+
qn as MaSideMenuButton,
|
|
3012
|
+
Hn as MaSideMenuIconButton,
|
|
2986
3013
|
Un as MaSideMenuItem,
|
|
2987
|
-
|
|
2988
|
-
|
|
3014
|
+
On as MaSideMenuItemColors,
|
|
3015
|
+
Wn as MaSideMenuRoundIconButton,
|
|
2989
3016
|
ge as MaSpin,
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
3017
|
+
Pn as MaSpinColors,
|
|
3018
|
+
Tn as MaSpinTypes,
|
|
3019
|
+
Yt as MaSwitch,
|
|
3020
|
+
Kt as MaToggle,
|
|
2994
3021
|
ie as MaTooltip,
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
3022
|
+
Wt as MaTrackButton,
|
|
3023
|
+
Vn as MaUpload,
|
|
3024
|
+
U as MaUploadFileStatus,
|
|
2998
3025
|
Do as MaUploadSizes,
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3026
|
+
En as MaUploadTypes,
|
|
3027
|
+
mn as NumericInputSizes,
|
|
3028
|
+
cn as SelectModes,
|
|
3029
|
+
rn as SelectSizes,
|
|
3030
|
+
Xt as SwitchTypes,
|
|
3031
|
+
Zt as ToggleSizes,
|
|
3032
|
+
Qt as TooltipPlacements,
|
|
3033
|
+
sn as TooltipTriggerTypes,
|
|
3034
|
+
en as TooltipTypes,
|
|
3035
|
+
Jt as TrackButtonSizes,
|
|
3036
|
+
Gt as TrackButtonVariants,
|
|
3010
3037
|
Cs as currencyOptions,
|
|
3011
3038
|
$s as currencySymbols,
|
|
3012
|
-
|
|
3039
|
+
ea as useActionKitConfig
|
|
3013
3040
|
};
|