@mobileaction/action-kit 1.13.0 → 1.13.1
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 +7 -7
- package/dist/action-kit.mjs +760 -739
- package/dist/components/tag-input/index.vue.d.ts +17 -4
- package/dist/src/components/tag-input/index.vue.d.ts +7 -2
- package/dist/src/components/tag-input/stories/default.stories.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/action-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, computed as c, defineAsyncComponent as Re, openBlock as o, createBlock as g, resolveDynamicComponent as ne, unref as a, ref as D, watch as re, h as ve, mergeProps as T, createSlots as Y, renderList as U, withCtx as h, renderSlot as f, createElementBlock as u, normalizeClass as E, createCommentVNode as v, createElementVNode as _, createVNode as k, createTextVNode as F, toDisplayString as $, isRef as ee, Fragment as H, useSlots as ae, useAttrs as Ue, Transition as ze, normalizeProps as Te, onMounted as de, onBeforeUnmount as Ae, normalizeStyle as J, createApp as Ke, onUnmounted as Ne, withDirectives as X, withModifiers as Pe, vShow as Q, withKeys as je, reactive as _e, watchEffect as qe, vModelText as He, provide as ke, inject as $e, readonly as We, toRefs as Je } from "vue";
|
|
2
2
|
import { Button as Le, Switch as Ye, Tooltip as Ze, Form as Xe, FormItem as Qe, Select as et, InputPassword as tt, Input as st, Textarea as ot, SelectOption as at, Checkbox as nt, CheckboxGroup as lt, Radio as it, RadioGroup as rt, Alert as ct, Modal as ut, Dropdown as dt, Popover as pt, Tabs as mt, TabPane as vt, InputNumber as ft } from "ant-design-vue";
|
|
3
3
|
import gt from "vuedraggable";
|
|
4
4
|
const Zn = ["xs", "sm", "md", "lg", "xl"], Xn = ["1x1", "4x3"], _t = {
|
|
@@ -12,7 +12,7 @@ const Zn = ["xs", "sm", "md", "lg", "xl"], Xn = ["1x1", "4x3"], _t = {
|
|
|
12
12
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, n) => {
|
|
13
13
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + t)));
|
|
14
14
|
});
|
|
15
|
-
}, yt = /* @__PURE__ */
|
|
15
|
+
}, yt = /* @__PURE__ */ x({
|
|
16
16
|
__name: "maIcon",
|
|
17
17
|
props: {
|
|
18
18
|
name: null,
|
|
@@ -46,7 +46,7 @@ const Zn = ["xs", "sm", "md", "lg", "xl"], Xn = ["1x1", "4x3"], _t = {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
setup(l) {
|
|
49
|
-
const t =
|
|
49
|
+
const t = D(null), e = c(() => l.name.replace("flag-", "")), s = async () => {
|
|
50
50
|
try {
|
|
51
51
|
const n = await fetch(`https://d4ojgl5tohg.cloudfront.net/flags/svg/${l.ratio}/${e.value}.svg`);
|
|
52
52
|
t.value = await n.text();
|
|
@@ -79,7 +79,7 @@ const Zn = ["xs", "sm", "md", "lg", "xl"], Xn = ["1x1", "4x3"], _t = {
|
|
|
79
79
|
}
|
|
80
80
|
}, bt = {
|
|
81
81
|
name: "MaIcon"
|
|
82
|
-
}, C = /* @__PURE__ */
|
|
82
|
+
}, C = /* @__PURE__ */ x({
|
|
83
83
|
...bt,
|
|
84
84
|
props: {
|
|
85
85
|
name: null,
|
|
@@ -103,7 +103,7 @@ const Zn = ["xs", "sm", "md", "lg", "xl"], Xn = ["1x1", "4x3"], _t = {
|
|
|
103
103
|
}
|
|
104
104
|
}), kt = {
|
|
105
105
|
name: "MaButton"
|
|
106
|
-
}, te = /* @__PURE__ */
|
|
106
|
+
}, te = /* @__PURE__ */ x({
|
|
107
107
|
...kt,
|
|
108
108
|
props: {
|
|
109
109
|
type: { default: "primary" },
|
|
@@ -150,10 +150,10 @@ const Zn = ["xs", "sm", "md", "lg", "xl"], Xn = ["1x1", "4x3"], _t = {
|
|
|
150
150
|
onKeyup: d,
|
|
151
151
|
role: "button"
|
|
152
152
|
}, p.$attrs, { "prefix-cls": "antd-btn" }), Y({ _: 2 }, [
|
|
153
|
-
|
|
154
|
-
name:
|
|
153
|
+
U(p.$slots, (B, I) => ({
|
|
154
|
+
name: I,
|
|
155
155
|
fn: h(() => [
|
|
156
|
-
f(p.$slots,
|
|
156
|
+
f(p.$slots, I)
|
|
157
157
|
])
|
|
158
158
|
})),
|
|
159
159
|
a(i) ? {
|
|
@@ -207,7 +207,7 @@ const Qn = [
|
|
|
207
207
|
"right"
|
|
208
208
|
], wt = {
|
|
209
209
|
name: "MaBadge"
|
|
210
|
-
}, ye = /* @__PURE__ */
|
|
210
|
+
}, ye = /* @__PURE__ */ x({
|
|
211
211
|
...wt,
|
|
212
212
|
props: {
|
|
213
213
|
type: { default: "primary" },
|
|
@@ -227,7 +227,7 @@ const Qn = [
|
|
|
227
227
|
}
|
|
228
228
|
]);
|
|
229
229
|
return (s, n) => (o(), u("div", {
|
|
230
|
-
class:
|
|
230
|
+
class: E(a(e))
|
|
231
231
|
}, [
|
|
232
232
|
t?.icon ? (o(), g(C, {
|
|
233
233
|
key: 0,
|
|
@@ -239,7 +239,7 @@ const Qn = [
|
|
|
239
239
|
});
|
|
240
240
|
const Ct = { class: "icon-wrapper" }, Mt = {
|
|
241
241
|
name: "MaTrackButton"
|
|
242
|
-
}, al = /* @__PURE__ */
|
|
242
|
+
}, al = /* @__PURE__ */ x({
|
|
243
243
|
...Mt,
|
|
244
244
|
props: {
|
|
245
245
|
variant: { default: "default" },
|
|
@@ -252,7 +252,7 @@ const Ct = { class: "icon-wrapper" }, Mt = {
|
|
|
252
252
|
badgeText: null
|
|
253
253
|
},
|
|
254
254
|
setup(l) {
|
|
255
|
-
const t = l, e =
|
|
255
|
+
const t = l, e = D(!1), s = c(() => [
|
|
256
256
|
`
|
|
257
257
|
ma-track-button
|
|
258
258
|
ak-track-button
|
|
@@ -271,7 +271,7 @@ const Ct = { class: "icon-wrapper" }, Mt = {
|
|
|
271
271
|
]), n = c(
|
|
272
272
|
() => t.loading ? "loader" : t?.showClose ? "close-circle" : t?.tracked ? "tick-circle-bold" : "add"
|
|
273
273
|
), i = c(() => t.size === "lg" ? "sm" : "xs"), r = c(() => t.tracked || t.loading || e.value ? "blue" : "dark"), d = () => e.value = !0, p = () => e.value = !1;
|
|
274
|
-
return (m,
|
|
274
|
+
return (m, B) => (o(), g(a(Le), T(m.$attrs, {
|
|
275
275
|
class: a(s),
|
|
276
276
|
disabled: t?.disabled || t?.loading,
|
|
277
277
|
role: "button",
|
|
@@ -280,8 +280,8 @@ const Ct = { class: "icon-wrapper" }, Mt = {
|
|
|
280
280
|
onMouseover: d
|
|
281
281
|
}), Y({
|
|
282
282
|
icon: h(() => [
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
_("div", Ct, [
|
|
284
|
+
k(C, {
|
|
285
285
|
spin: t?.loading,
|
|
286
286
|
name: a(n),
|
|
287
287
|
size: a(i)
|
|
@@ -294,17 +294,17 @@ const Ct = { class: "icon-wrapper" }, Mt = {
|
|
|
294
294
|
size: "small"
|
|
295
295
|
}, {
|
|
296
296
|
default: h(() => [
|
|
297
|
-
|
|
297
|
+
F($(t.badgeText), 1)
|
|
298
298
|
]),
|
|
299
299
|
_: 1
|
|
300
300
|
}, 8, ["variant"])) : v("", !0)
|
|
301
301
|
]),
|
|
302
302
|
default: h(() => [
|
|
303
|
-
|
|
303
|
+
F(" " + $(l.keyword) + " ", 1)
|
|
304
304
|
]),
|
|
305
305
|
_: 2
|
|
306
306
|
}, [
|
|
307
|
-
|
|
307
|
+
U(m.$slots, (I, z) => ({
|
|
308
308
|
name: z,
|
|
309
309
|
fn: h(() => [
|
|
310
310
|
f(m.$slots, z)
|
|
@@ -330,7 +330,7 @@ const nl = [
|
|
|
330
330
|
class: "ma-toggle__titles__sub-title"
|
|
331
331
|
}, It = {
|
|
332
332
|
name: "MaToggle"
|
|
333
|
-
}, il = /* @__PURE__ */
|
|
333
|
+
}, il = /* @__PURE__ */ x({
|
|
334
334
|
...It,
|
|
335
335
|
props: {
|
|
336
336
|
size: { default: "default" },
|
|
@@ -359,9 +359,9 @@ const nl = [
|
|
|
359
359
|
}
|
|
360
360
|
]);
|
|
361
361
|
return (i, r) => (o(), u("div", {
|
|
362
|
-
class:
|
|
362
|
+
class: E(a(n))
|
|
363
363
|
}, [
|
|
364
|
-
|
|
364
|
+
k(a(Ye), T({
|
|
365
365
|
class: "ma-toggle__switch",
|
|
366
366
|
checked: a(s),
|
|
367
367
|
"onUpdate:checked": r[0] || (r[0] = (d) => ee(s) ? s.value = d : null)
|
|
@@ -374,8 +374,8 @@ const nl = [
|
|
|
374
374
|
"prefix-cls": "antd-switch"
|
|
375
375
|
}), null, 16, ["checked", "disabled", "loading", "checkedChildren", "unCheckedChildren"]),
|
|
376
376
|
e.title || e.subTitle ? (o(), u("div", xt, [
|
|
377
|
-
e.title ? (o(), u("span", Bt,
|
|
378
|
-
e.subTitle ? (o(), u("span", St,
|
|
377
|
+
e.title ? (o(), u("span", Bt, $(e.title), 1)) : v("", !0),
|
|
378
|
+
e.subTitle ? (o(), u("span", St, $(e.subTitle), 1)) : v("", !0)
|
|
379
379
|
])) : v("", !0)
|
|
380
380
|
], 2));
|
|
381
381
|
}
|
|
@@ -386,7 +386,7 @@ const rl = [
|
|
|
386
386
|
"large"
|
|
387
387
|
], zt = ["aria-checked", "disabled"], Tt = {
|
|
388
388
|
name: "MaSwitch"
|
|
389
|
-
}, cl = /* @__PURE__ */
|
|
389
|
+
}, cl = /* @__PURE__ */ x({
|
|
390
390
|
...Tt,
|
|
391
391
|
props: {
|
|
392
392
|
active: null,
|
|
@@ -426,19 +426,19 @@ const rl = [
|
|
|
426
426
|
"aria-checked": a(s) === e.rightValue,
|
|
427
427
|
disabled: e.disabled
|
|
428
428
|
}), [
|
|
429
|
-
|
|
430
|
-
class:
|
|
429
|
+
_("span", {
|
|
430
|
+
class: E({ active: e.active === e.leftValue }),
|
|
431
431
|
onClick: d[0] || (d[0] = (p) => i(e.leftValue))
|
|
432
432
|
}, [
|
|
433
|
-
|
|
433
|
+
k(C, {
|
|
434
434
|
name: e.leftIcon
|
|
435
435
|
}, null, 8, ["name"])
|
|
436
436
|
], 2),
|
|
437
|
-
|
|
438
|
-
class:
|
|
437
|
+
_("span", {
|
|
438
|
+
class: E({ active: e.active === e.rightValue }),
|
|
439
439
|
onClick: d[1] || (d[1] = (p) => i(e.rightValue))
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
k(C, {
|
|
442
442
|
name: e.rightIcon
|
|
443
443
|
}, null, 8, ["name"])
|
|
444
444
|
], 2)
|
|
@@ -453,7 +453,7 @@ const ul = [
|
|
|
453
453
|
class: "ak-tooltip-overlay__content__description"
|
|
454
454
|
}, Lt = {
|
|
455
455
|
name: "MaTooltip"
|
|
456
|
-
}, pe = /* @__PURE__ */
|
|
456
|
+
}, pe = /* @__PURE__ */ x({
|
|
457
457
|
...Lt,
|
|
458
458
|
props: {
|
|
459
459
|
placement: { default: "top" },
|
|
@@ -477,7 +477,7 @@ const ul = [
|
|
|
477
477
|
`ak-tooltip-overlay--${t.type}`,
|
|
478
478
|
`ak-tooltip-overlay--${t.placement}`,
|
|
479
479
|
t?.overlayClassName
|
|
480
|
-
].join(" ")), n =
|
|
480
|
+
].join(" ")), n = D(t.defaultVisible), i = () => {
|
|
481
481
|
n.value = !1;
|
|
482
482
|
};
|
|
483
483
|
return (r, d) => (o(), g(a(Ze), T(r.$attrs, {
|
|
@@ -496,13 +496,13 @@ const ul = [
|
|
|
496
496
|
name: t.icon
|
|
497
497
|
}, null, 8, ["name"])) : v("", !0),
|
|
498
498
|
f(r.$slots, "icon"),
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
499
|
+
_("div", At, [
|
|
500
|
+
_("span", Nt, [
|
|
501
|
+
F($(t.title) + " ", 1),
|
|
502
502
|
f(r.$slots, "title")
|
|
503
503
|
]),
|
|
504
504
|
t?.description || r.$slots.description ? (o(), u("span", Pt, [
|
|
505
|
-
|
|
505
|
+
F($(t.description) + " ", 1),
|
|
506
506
|
f(r.$slots, "description")
|
|
507
507
|
])) : v("", !0)
|
|
508
508
|
]),
|
|
@@ -549,10 +549,10 @@ const dl = [
|
|
|
549
549
|
for (const [s, n] of t)
|
|
550
550
|
e[s] = n;
|
|
551
551
|
return e;
|
|
552
|
-
}, Et = /* @__PURE__ */
|
|
552
|
+
}, Et = /* @__PURE__ */ _("label", {
|
|
553
553
|
for: "cc-num",
|
|
554
554
|
class: "hidden"
|
|
555
|
-
}, "HubspotCollectedFormsWorkaround", -1), Ft = /* @__PURE__ */
|
|
555
|
+
}, "HubspotCollectedFormsWorkaround", -1), Ft = /* @__PURE__ */ _("input", {
|
|
556
556
|
id: "cc-num",
|
|
557
557
|
name: "cc-num",
|
|
558
558
|
class: "hidden",
|
|
@@ -560,27 +560,27 @@ const dl = [
|
|
|
560
560
|
value: "HubspotCollectedFormsWorkaround"
|
|
561
561
|
}, null, -1);
|
|
562
562
|
function Vt(l, t, e, s, n, i) {
|
|
563
|
-
return o(), u(
|
|
563
|
+
return o(), u(H, null, [
|
|
564
564
|
Et,
|
|
565
565
|
Ft
|
|
566
566
|
], 64);
|
|
567
567
|
}
|
|
568
568
|
const Gt = /* @__PURE__ */ De(Dt, [["render", Vt]]), Ot = {
|
|
569
569
|
name: "MaForm"
|
|
570
|
-
}, Rt = /* @__PURE__ */
|
|
570
|
+
}, Rt = /* @__PURE__ */ x({
|
|
571
571
|
...Ot,
|
|
572
572
|
props: {
|
|
573
573
|
nonHubspotFormsIgnore: { type: Boolean, default: !0 }
|
|
574
574
|
},
|
|
575
575
|
setup(l, { expose: t }) {
|
|
576
|
-
const e = l, s =
|
|
576
|
+
const e = l, s = D();
|
|
577
577
|
return t({
|
|
578
578
|
validate: () => s.value.validate(),
|
|
579
579
|
clearValidate: () => s.value.clearValidate(),
|
|
580
580
|
resetFields: () => s.value.resetFields(),
|
|
581
581
|
scrollToField: () => s.value.scrollToField(),
|
|
582
582
|
validateFields: () => s.value.validateFields()
|
|
583
|
-
}), (m,
|
|
583
|
+
}), (m, B) => (o(), g(a(Xe), T(m.$attrs, {
|
|
584
584
|
class: "ma-form",
|
|
585
585
|
"prefix-cls": "antd-form",
|
|
586
586
|
ref_key: "form",
|
|
@@ -596,14 +596,14 @@ const Gt = /* @__PURE__ */ De(Dt, [["render", Vt]]), Ot = {
|
|
|
596
596
|
});
|
|
597
597
|
const Ut = {
|
|
598
598
|
name: "MaFormItem"
|
|
599
|
-
}, we = /* @__PURE__ */
|
|
599
|
+
}, we = /* @__PURE__ */ x({
|
|
600
600
|
...Ut,
|
|
601
601
|
setup(l) {
|
|
602
602
|
return (t, e) => (o(), g(a(Qe), T(t.$attrs, {
|
|
603
603
|
class: "ma-form-item",
|
|
604
604
|
"prefix-cls": "antd-form"
|
|
605
605
|
}), Y({ _: 2 }, [
|
|
606
|
-
|
|
606
|
+
U(t.$slots, (s, n) => ({
|
|
607
607
|
name: n,
|
|
608
608
|
fn: h(() => [
|
|
609
609
|
f(t.$slots, n)
|
|
@@ -653,7 +653,7 @@ const Ut = {
|
|
|
653
653
|
class: "status-icon"
|
|
654
654
|
}, Xt = ["src"], Qt = {
|
|
655
655
|
name: "MaAvatar"
|
|
656
|
-
}, Ee = /* @__PURE__ */
|
|
656
|
+
}, Ee = /* @__PURE__ */ x({
|
|
657
657
|
...Qt,
|
|
658
658
|
props: {
|
|
659
659
|
size: { default: "large" },
|
|
@@ -682,10 +682,10 @@ const Ut = {
|
|
|
682
682
|
});
|
|
683
683
|
return (s, n) => t.src ? (o(), u("div", {
|
|
684
684
|
key: 0,
|
|
685
|
-
class:
|
|
685
|
+
class: E(a(e))
|
|
686
686
|
}, [
|
|
687
|
-
|
|
688
|
-
class:
|
|
687
|
+
_("img", {
|
|
688
|
+
class: E(a(e)),
|
|
689
689
|
src: t.src,
|
|
690
690
|
alt: t.alt
|
|
691
691
|
}, null, 10, Ht),
|
|
@@ -697,9 +697,9 @@ const Ut = {
|
|
|
697
697
|
}, null, 8, Jt)) : v("", !0)
|
|
698
698
|
], 2)) : (o(), u("div", {
|
|
699
699
|
key: 1,
|
|
700
|
-
class:
|
|
700
|
+
class: E(a(e))
|
|
701
701
|
}, [
|
|
702
|
-
t.avatarText ? (o(), u("span", Yt,
|
|
702
|
+
t.avatarText ? (o(), u("span", Yt, $(t.avatarText), 1)) : (o(), g(C, {
|
|
703
703
|
key: 1,
|
|
704
704
|
name: "user-default",
|
|
705
705
|
class: "default-icon",
|
|
@@ -714,9 +714,9 @@ const Ut = {
|
|
|
714
714
|
], 2));
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
|
-
const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss = /* @__PURE__ */
|
|
717
|
+
const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss = /* @__PURE__ */ _("label", null, "Select", -1), os = {
|
|
718
718
|
name: "MaDropdownRender"
|
|
719
|
-
}, as = /* @__PURE__ */
|
|
719
|
+
}, as = /* @__PURE__ */ x({
|
|
720
720
|
...os,
|
|
721
721
|
props: {
|
|
722
722
|
menu: {
|
|
@@ -741,31 +741,31 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
741
741
|
t("closeDropdown");
|
|
742
742
|
};
|
|
743
743
|
return (r, d) => (o(), u("div", es, [
|
|
744
|
-
|
|
745
|
-
|
|
744
|
+
_("div", ts, [
|
|
745
|
+
k(C, {
|
|
746
746
|
size: "lg",
|
|
747
747
|
name: "close-circle",
|
|
748
748
|
onClick: i
|
|
749
749
|
}),
|
|
750
750
|
ss,
|
|
751
|
-
|
|
751
|
+
k(te, {
|
|
752
752
|
type: "grey-link",
|
|
753
753
|
onClick: i
|
|
754
754
|
}, {
|
|
755
755
|
default: h(() => [
|
|
756
|
-
|
|
756
|
+
F("Done")
|
|
757
757
|
]),
|
|
758
758
|
_: 1
|
|
759
759
|
})
|
|
760
760
|
]),
|
|
761
|
-
|
|
761
|
+
k(he, {
|
|
762
762
|
value: a(n),
|
|
763
763
|
"onUpdate:value": d[0] || (d[0] = (p) => ee(n) ? n.value = p : null),
|
|
764
764
|
autofocus: "",
|
|
765
765
|
placeholder: "Search",
|
|
766
766
|
"prefix-icon": "search-normal"
|
|
767
767
|
}, null, 8, ["value"]),
|
|
768
|
-
|
|
768
|
+
k(s, { vnodes: l.menu }, null, 8, ["vnodes"])
|
|
769
769
|
]));
|
|
770
770
|
}
|
|
771
771
|
}), ns = {
|
|
@@ -773,7 +773,7 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
773
773
|
class: "prefix-icon"
|
|
774
774
|
}, ls = {
|
|
775
775
|
name: "MaSelect"
|
|
776
|
-
}, Fe = /* @__PURE__ */
|
|
776
|
+
}, Fe = /* @__PURE__ */ x({
|
|
777
777
|
...ls,
|
|
778
778
|
props: {
|
|
779
779
|
allowClear: { type: Boolean },
|
|
@@ -805,12 +805,12 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
805
805
|
"update:value"
|
|
806
806
|
],
|
|
807
807
|
setup(l, { emit: t }) {
|
|
808
|
-
const e = l, s = ae(), n =
|
|
808
|
+
const e = l, s = ae(), n = D(e?.searchValue), i = D(e.open), r = c(() => !e?.mode && e?.showSearch), d = c({
|
|
809
809
|
get() {
|
|
810
810
|
return e.value;
|
|
811
811
|
},
|
|
812
|
-
set(
|
|
813
|
-
t("update:value",
|
|
812
|
+
set(L) {
|
|
813
|
+
t("update:value", L);
|
|
814
814
|
}
|
|
815
815
|
}), p = c(() => [
|
|
816
816
|
"ma-select",
|
|
@@ -828,17 +828,17 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
828
828
|
e?.dropdownClassName,
|
|
829
829
|
"ma-select-dropdown",
|
|
830
830
|
!e?.mode && (s?.prefixIcon || e?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
831
|
-
].join(" ")),
|
|
831
|
+
].join(" ")), B = c(() => e?.loading ? "loader" : e?.suffixIcon), I = c(() => Object.keys(s).filter((L) => !["option"].includes(L))), z = c(() => e?.showArrow || !e?.mode), N = () => {
|
|
832
832
|
i.value = !0;
|
|
833
|
-
},
|
|
834
|
-
i.value =
|
|
835
|
-
},
|
|
833
|
+
}, w = (L) => {
|
|
834
|
+
i.value = L, n.value = "";
|
|
835
|
+
}, b = c(() => !r.value && e?.showSearch), M = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : e?.listHeight, P = () => {
|
|
836
836
|
i.value = !1;
|
|
837
837
|
};
|
|
838
|
-
return (
|
|
838
|
+
return (L, q) => (o(), g(a(et), T({
|
|
839
839
|
value: a(d),
|
|
840
|
-
"onUpdate:value":
|
|
841
|
-
},
|
|
840
|
+
"onUpdate:value": q[1] || (q[1] = (y) => ee(d) ? d.value = y : null)
|
|
841
|
+
}, L.$attrs, {
|
|
842
842
|
class: a(p),
|
|
843
843
|
allowClear: e?.allowClear,
|
|
844
844
|
autoClearSearchValue: e?.autoClearSearchValue,
|
|
@@ -852,23 +852,23 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
852
852
|
options: e?.options,
|
|
853
853
|
placeholder: e?.placeholder,
|
|
854
854
|
searchValue: n.value || void 0,
|
|
855
|
-
showSearch: a(
|
|
855
|
+
showSearch: a(b),
|
|
856
856
|
showArrow: a(z),
|
|
857
857
|
mode: e?.mode,
|
|
858
|
-
"list-height":
|
|
858
|
+
"list-height": M(),
|
|
859
859
|
size: e?.size,
|
|
860
860
|
open: i.value,
|
|
861
861
|
onClick: N,
|
|
862
|
-
onDropdownVisibleChange:
|
|
862
|
+
onDropdownVisibleChange: w,
|
|
863
863
|
"prefix-cls": "antd-select"
|
|
864
864
|
}), Y({
|
|
865
865
|
suffixIcon: h(() => [
|
|
866
|
-
|
|
866
|
+
k(C, {
|
|
867
867
|
spin: e?.loading,
|
|
868
|
-
name: a(
|
|
868
|
+
name: a(B) || "chevron-down"
|
|
869
869
|
}, null, 8, ["spin", "name"]),
|
|
870
|
-
|
|
871
|
-
f(
|
|
870
|
+
L.$slots?.prefixIcon || e?.prefixIcon ? (o(), u("div", ns, [
|
|
871
|
+
f(L.$slots, "prefixIcon", {}, () => [
|
|
872
872
|
e?.prefixIcon ? (o(), g(C, {
|
|
873
873
|
key: 0,
|
|
874
874
|
name: e?.prefixIcon
|
|
@@ -877,24 +877,24 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
877
877
|
])) : v("", !0)
|
|
878
878
|
]),
|
|
879
879
|
removeIcon: h(() => [
|
|
880
|
-
|
|
880
|
+
k(C, {
|
|
881
881
|
name: e?.removeIcon || "close"
|
|
882
882
|
}, null, 8, ["name"])
|
|
883
883
|
]),
|
|
884
884
|
_: 2
|
|
885
885
|
}, [
|
|
886
|
-
|
|
887
|
-
name:
|
|
886
|
+
U(a(I), (y) => ({
|
|
887
|
+
name: y,
|
|
888
888
|
fn: h(() => [
|
|
889
|
-
f(
|
|
889
|
+
f(L.$slots, y)
|
|
890
890
|
])
|
|
891
891
|
})),
|
|
892
|
-
|
|
892
|
+
L.$slots.option ? {
|
|
893
893
|
name: "option",
|
|
894
|
-
fn: h(({ label:
|
|
895
|
-
f(
|
|
896
|
-
label:
|
|
897
|
-
value:
|
|
894
|
+
fn: h(({ label: y, value: O }) => [
|
|
895
|
+
f(L.$slots, "option", {
|
|
896
|
+
label: y,
|
|
897
|
+
value: O
|
|
898
898
|
})
|
|
899
899
|
]),
|
|
900
900
|
key: "0"
|
|
@@ -912,31 +912,31 @@ const es = { class: "dropdown-wrapper" }, ts = { class: "mobile-header" }, ss =
|
|
|
912
912
|
e?.menuItemSelectedIcon ? {
|
|
913
913
|
name: "menuItemSelectedIcon",
|
|
914
914
|
fn: h(() => [
|
|
915
|
-
|
|
915
|
+
k(C, {
|
|
916
916
|
name: e?.menuItemSelectedIcon
|
|
917
917
|
}, null, 8, ["name"])
|
|
918
918
|
]),
|
|
919
919
|
key: "2"
|
|
920
920
|
} : void 0,
|
|
921
|
-
|
|
921
|
+
L.$slots.notFoundContent ? void 0 : {
|
|
922
922
|
name: "notFoundContent",
|
|
923
923
|
fn: h(() => [
|
|
924
|
-
|
|
924
|
+
k(C, {
|
|
925
925
|
size: "sm",
|
|
926
926
|
name: "warning"
|
|
927
927
|
}),
|
|
928
|
-
|
|
928
|
+
F(" No result found! ")
|
|
929
929
|
]),
|
|
930
930
|
key: "3"
|
|
931
931
|
},
|
|
932
932
|
a(r) && i.value ? {
|
|
933
933
|
name: "dropdownRender",
|
|
934
|
-
fn: h(({ menuNode:
|
|
935
|
-
|
|
934
|
+
fn: h(({ menuNode: y }) => [
|
|
935
|
+
k(as, {
|
|
936
936
|
filter: n.value,
|
|
937
|
-
"onUpdate:filter":
|
|
938
|
-
menu:
|
|
939
|
-
onCloseDropdown:
|
|
937
|
+
"onUpdate:filter": q[0] || (q[0] = (O) => n.value = O),
|
|
938
|
+
menu: y,
|
|
939
|
+
onCloseDropdown: P
|
|
940
940
|
}, null, 8, ["filter", "menu"])
|
|
941
941
|
]),
|
|
942
942
|
key: "4"
|
|
@@ -956,7 +956,7 @@ const is = ["for"], rs = {
|
|
|
956
956
|
}, ds = {
|
|
957
957
|
name: "MaInput",
|
|
958
958
|
inheritAttrs: !1
|
|
959
|
-
}, he = /* @__PURE__ */
|
|
959
|
+
}, he = /* @__PURE__ */ x({
|
|
960
960
|
...ds,
|
|
961
961
|
props: {
|
|
962
962
|
allowClear: { type: Boolean },
|
|
@@ -986,7 +986,7 @@ const is = ["for"], rs = {
|
|
|
986
986
|
"focusout"
|
|
987
987
|
],
|
|
988
988
|
setup(l, { emit: t }) {
|
|
989
|
-
const e = l, s = Ue(), n =
|
|
989
|
+
const e = l, s = Ue(), n = D(null), i = c(() => [oe.amount, oe.creditCard].includes(e.type) ? "number" : e.type === oe.userInfo ? "text" : e.type), r = c(() => [
|
|
990
990
|
`ma-input ak-input ak-input--${e.type} ak-input--${e.size} ${s?.class}`,
|
|
991
991
|
{
|
|
992
992
|
"ak-input--has-error": e.hasError
|
|
@@ -1001,45 +1001,45 @@ const is = ["for"], rs = {
|
|
|
1001
1001
|
get() {
|
|
1002
1002
|
return e.value;
|
|
1003
1003
|
},
|
|
1004
|
-
set(
|
|
1005
|
-
t("update:value",
|
|
1004
|
+
set(y) {
|
|
1005
|
+
t("update:value", y);
|
|
1006
1006
|
}
|
|
1007
|
-
}), m = c(() => e.amountCurrency ? jt[e.amountCurrency] : null),
|
|
1007
|
+
}), m = c(() => e.amountCurrency ? jt[e.amountCurrency] : null), B = c({
|
|
1008
1008
|
get() {
|
|
1009
1009
|
return e.amountCurrency;
|
|
1010
1010
|
},
|
|
1011
|
-
set(
|
|
1012
|
-
t("update:amountCurrency",
|
|
1011
|
+
set(y) {
|
|
1012
|
+
t("update:amountCurrency", y);
|
|
1013
1013
|
}
|
|
1014
|
-
}),
|
|
1015
|
-
let
|
|
1016
|
-
return s?.class && delete
|
|
1017
|
-
}),
|
|
1018
|
-
t("change",
|
|
1019
|
-
},
|
|
1020
|
-
t("currency-change",
|
|
1021
|
-
},
|
|
1014
|
+
}), I = c(() => e.type === oe.password ? tt : st), z = c(() => e.type === oe.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), N = c(() => e.type === oe.url ? "https" : e?.addonBefore), w = c(() => {
|
|
1015
|
+
let y = { ...s, ...z.value };
|
|
1016
|
+
return s?.class && delete y?.class, y;
|
|
1017
|
+
}), b = (y) => {
|
|
1018
|
+
t("change", y);
|
|
1019
|
+
}, M = (y) => {
|
|
1020
|
+
t("currency-change", y);
|
|
1021
|
+
}, P = () => {
|
|
1022
1022
|
n.value.focus();
|
|
1023
|
-
},
|
|
1024
|
-
t("focus",
|
|
1025
|
-
},
|
|
1026
|
-
t("focusout",
|
|
1023
|
+
}, L = (y) => {
|
|
1024
|
+
t("focus", y);
|
|
1025
|
+
}, q = (y) => {
|
|
1026
|
+
t("focusout", y);
|
|
1027
1027
|
};
|
|
1028
|
-
return (
|
|
1029
|
-
class:
|
|
1028
|
+
return (y, O) => (o(), u("div", {
|
|
1029
|
+
class: E(a(r))
|
|
1030
1030
|
}, [
|
|
1031
|
-
f(
|
|
1031
|
+
f(y.$slots, "title"),
|
|
1032
1032
|
e.title ? (o(), u("label", {
|
|
1033
1033
|
key: 0,
|
|
1034
|
-
onClick:
|
|
1034
|
+
onClick: P,
|
|
1035
1035
|
class: "ak-input__title",
|
|
1036
|
-
for:
|
|
1037
|
-
},
|
|
1036
|
+
for: y.$attrs?.id
|
|
1037
|
+
}, $(e.title), 9, is)) : v("", !0),
|
|
1038
1038
|
e.type !== "textarea" ? (o(), u("div", rs, [
|
|
1039
|
-
(o(), g(ne(a(
|
|
1039
|
+
(o(), g(ne(a(I)), T({
|
|
1040
1040
|
value: a(p),
|
|
1041
|
-
"onUpdate:value":
|
|
1042
|
-
}, a(
|
|
1041
|
+
"onUpdate:value": O[1] || (O[1] = (R) => ee(p) ? p.value = R : null)
|
|
1042
|
+
}, a(w), {
|
|
1043
1043
|
allowClear: e?.allowClear,
|
|
1044
1044
|
type: a(i),
|
|
1045
1045
|
disabled: e?.disabled,
|
|
@@ -1047,9 +1047,9 @@ const is = ["for"], rs = {
|
|
|
1047
1047
|
addonBefore: a(N),
|
|
1048
1048
|
addonAfter: l.addonAfter,
|
|
1049
1049
|
class: a(d),
|
|
1050
|
-
onChange:
|
|
1051
|
-
onFocus:
|
|
1052
|
-
onFocusout:
|
|
1050
|
+
onChange: b,
|
|
1051
|
+
onFocus: L,
|
|
1052
|
+
onFocusout: q,
|
|
1053
1053
|
ref_key: "inputRef",
|
|
1054
1054
|
ref: n
|
|
1055
1055
|
}), Y({
|
|
@@ -1058,7 +1058,7 @@ const is = ["for"], rs = {
|
|
|
1058
1058
|
key: 0,
|
|
1059
1059
|
size: "xs",
|
|
1060
1060
|
name: e.prefixIcon
|
|
1061
|
-
}, null, 8, ["name"])) : a(m) ? (o(), u("span", cs,
|
|
1061
|
+
}, null, 8, ["name"])) : a(m) ? (o(), u("span", cs, $(a(m)), 1)) : e.type === a(oe).userInfo ? (o(), g(Ee, {
|
|
1062
1062
|
key: 2,
|
|
1063
1063
|
src: e.avatarUrl,
|
|
1064
1064
|
disabled: e.disabled
|
|
@@ -1067,9 +1067,9 @@ const is = ["for"], rs = {
|
|
|
1067
1067
|
suffix: h(() => [
|
|
1068
1068
|
e.type === "amount" ? (o(), g(Fe, {
|
|
1069
1069
|
key: 0,
|
|
1070
|
-
value: a(
|
|
1071
|
-
"onUpdate:value":
|
|
1072
|
-
onChange:
|
|
1070
|
+
value: a(B),
|
|
1071
|
+
"onUpdate:value": O[0] || (O[0] = (R) => ee(B) ? B.value = R : null),
|
|
1072
|
+
onChange: M,
|
|
1073
1073
|
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
1074
1074
|
options: a(qt),
|
|
1075
1075
|
disabled: e.disabled,
|
|
@@ -1083,47 +1083,47 @@ const is = ["for"], rs = {
|
|
|
1083
1083
|
]),
|
|
1084
1084
|
_: 2
|
|
1085
1085
|
}, [
|
|
1086
|
-
|
|
1086
|
+
U(y.$slots, (R, Z) => ({
|
|
1087
1087
|
name: Z,
|
|
1088
1088
|
fn: h(() => [
|
|
1089
|
-
f(
|
|
1089
|
+
f(y.$slots, Z)
|
|
1090
1090
|
])
|
|
1091
1091
|
}))
|
|
1092
1092
|
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter", "class"]))
|
|
1093
1093
|
])) : (o(), g(a(ot), T({
|
|
1094
1094
|
key: 2,
|
|
1095
1095
|
value: a(p),
|
|
1096
|
-
"onUpdate:value":
|
|
1097
|
-
}, a(
|
|
1096
|
+
"onUpdate:value": O[2] || (O[2] = (R) => ee(p) ? p.value = R : null)
|
|
1097
|
+
}, a(w), {
|
|
1098
1098
|
class: a(d),
|
|
1099
1099
|
disabled: e?.disabled,
|
|
1100
1100
|
placeholder: e?.placeholder,
|
|
1101
|
-
onChange:
|
|
1101
|
+
onChange: b,
|
|
1102
1102
|
ref_key: "inputRef",
|
|
1103
1103
|
ref: n
|
|
1104
1104
|
}), Y({ _: 2 }, [
|
|
1105
|
-
|
|
1105
|
+
U(y.$slots, (R, Z) => ({
|
|
1106
1106
|
name: Z,
|
|
1107
1107
|
fn: h(() => [
|
|
1108
|
-
f(
|
|
1108
|
+
f(y.$slots, Z)
|
|
1109
1109
|
])
|
|
1110
1110
|
}))
|
|
1111
1111
|
]), 1040, ["value", "class", "disabled", "placeholder"])),
|
|
1112
|
-
f(
|
|
1113
|
-
e.hintText ? (o(), u("div", us,
|
|
1112
|
+
f(y.$slots, "hint"),
|
|
1113
|
+
e.hintText ? (o(), u("div", us, $(e.hintText), 1)) : v("", !0)
|
|
1114
1114
|
], 2));
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
1117
|
const ps = {
|
|
1118
1118
|
name: "MaSelectOption"
|
|
1119
|
-
}, ms = /* @__PURE__ */
|
|
1119
|
+
}, ms = /* @__PURE__ */ x({
|
|
1120
1120
|
...ps,
|
|
1121
1121
|
setup(l) {
|
|
1122
1122
|
return (t, e) => (o(), g(a(at), T(t.$attrs, {
|
|
1123
1123
|
class: "ma-select-option",
|
|
1124
1124
|
"prefix-cls": "antd-select"
|
|
1125
1125
|
}), Y({ _: 2 }, [
|
|
1126
|
-
|
|
1126
|
+
U(t.$slots, (s, n) => ({
|
|
1127
1127
|
name: n,
|
|
1128
1128
|
fn: h(() => [
|
|
1129
1129
|
f(t.$slots, n)
|
|
@@ -1140,7 +1140,7 @@ const ps = {
|
|
|
1140
1140
|
"tags"
|
|
1141
1141
|
], vs = {
|
|
1142
1142
|
name: "MaCheckbox"
|
|
1143
|
-
}, fs = /* @__PURE__ */
|
|
1143
|
+
}, fs = /* @__PURE__ */ x({
|
|
1144
1144
|
...vs,
|
|
1145
1145
|
props: {
|
|
1146
1146
|
hint: null,
|
|
@@ -1161,14 +1161,14 @@ const ps = {
|
|
|
1161
1161
|
indeterminate: t?.indeterminate,
|
|
1162
1162
|
"prefix-cls": "antd-checkbox"
|
|
1163
1163
|
}), Y({ _: 2 }, [
|
|
1164
|
-
|
|
1164
|
+
U(s.$slots, (i, r) => ({
|
|
1165
1165
|
name: r,
|
|
1166
1166
|
fn: h(() => [
|
|
1167
1167
|
f(s.$slots, r),
|
|
1168
1168
|
t.hint ? (o(), u("div", {
|
|
1169
1169
|
key: r,
|
|
1170
1170
|
class: "ak-checkbox__hint-text"
|
|
1171
|
-
},
|
|
1171
|
+
}, $(t.hint), 1)) : v("", !0)
|
|
1172
1172
|
])
|
|
1173
1173
|
}))
|
|
1174
1174
|
]), 1040, ["class", "disabled", "indeterminate"]));
|
|
@@ -1176,7 +1176,7 @@ const ps = {
|
|
|
1176
1176
|
});
|
|
1177
1177
|
const gs = {
|
|
1178
1178
|
name: "MaCheckboxGroup"
|
|
1179
|
-
}, yl = /* @__PURE__ */
|
|
1179
|
+
}, yl = /* @__PURE__ */ x({
|
|
1180
1180
|
...gs,
|
|
1181
1181
|
props: {
|
|
1182
1182
|
hint: null,
|
|
@@ -1188,19 +1188,19 @@ const gs = {
|
|
|
1188
1188
|
class: "ak-checkbox-group ma-checkbox-group",
|
|
1189
1189
|
"prefix-cls": "antd-checkbox"
|
|
1190
1190
|
}), Y({ _: 2 }, [
|
|
1191
|
-
|
|
1191
|
+
U(e.$slots, (n, i) => ({
|
|
1192
1192
|
name: i,
|
|
1193
1193
|
fn: h(() => [
|
|
1194
1194
|
f(e.$slots, i),
|
|
1195
1195
|
t.hint ? (o(), u("div", {
|
|
1196
1196
|
key: i,
|
|
1197
1197
|
class: "ak-checkbox__hint-text"
|
|
1198
|
-
},
|
|
1198
|
+
}, $(t.hint), 1)) : v("", !0)
|
|
1199
1199
|
])
|
|
1200
1200
|
}))
|
|
1201
1201
|
]), 1040));
|
|
1202
1202
|
}
|
|
1203
|
-
}), _s = ["value"], ys = /* @__PURE__ */
|
|
1203
|
+
}), _s = ["value"], ys = /* @__PURE__ */ x({
|
|
1204
1204
|
__name: "singleNumericInput",
|
|
1205
1205
|
props: {
|
|
1206
1206
|
value: { default: "" },
|
|
@@ -1208,7 +1208,7 @@ const gs = {
|
|
|
1208
1208
|
},
|
|
1209
1209
|
emits: ["update:value"],
|
|
1210
1210
|
setup(l, { emit: t }) {
|
|
1211
|
-
const e = l, s =
|
|
1211
|
+
const e = l, s = D(null);
|
|
1212
1212
|
re(
|
|
1213
1213
|
() => e.focus,
|
|
1214
1214
|
(i) => {
|
|
@@ -1233,7 +1233,7 @@ const gs = {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
}), hs = {
|
|
1235
1235
|
name: "MaNumericInput"
|
|
1236
|
-
}, hl = /* @__PURE__ */
|
|
1236
|
+
}, hl = /* @__PURE__ */ x({
|
|
1237
1237
|
...hs,
|
|
1238
1238
|
props: {
|
|
1239
1239
|
disabled: { type: Boolean },
|
|
@@ -1245,7 +1245,7 @@ const gs = {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["update:value"],
|
|
1247
1247
|
setup(l, { emit: t }) {
|
|
1248
|
-
const e = l, s =
|
|
1248
|
+
const e = l, s = D(null), n = D(Array.from({ length: e.length }, (w, b) => e.value[b] || null)), i = c(() => [
|
|
1249
1249
|
"ma-numeric-input",
|
|
1250
1250
|
`ma-numeric-input--${e.size}`,
|
|
1251
1251
|
{
|
|
@@ -1254,55 +1254,55 @@ const gs = {
|
|
|
1254
1254
|
{
|
|
1255
1255
|
"ma-numeric-input--disabled": e?.disabled
|
|
1256
1256
|
}
|
|
1257
|
-
]), r = c(() => e?.placeholderStatus ? "0" : null), d = (
|
|
1258
|
-
switch (
|
|
1257
|
+
]), r = c(() => e?.placeholderStatus ? "0" : null), d = (w) => /^Digit[0-9]$/.test(w), p = (w) => s.value = w, m = (w, b) => {
|
|
1258
|
+
switch (w.code) {
|
|
1259
1259
|
case "Backspace":
|
|
1260
1260
|
case "Delete":
|
|
1261
|
-
z("",
|
|
1261
|
+
z("", b), I();
|
|
1262
1262
|
break;
|
|
1263
1263
|
case "ArrowLeft":
|
|
1264
|
-
|
|
1264
|
+
w.preventDefault(), I();
|
|
1265
1265
|
break;
|
|
1266
1266
|
case "ArrowRight":
|
|
1267
|
-
|
|
1267
|
+
w.preventDefault(), B();
|
|
1268
1268
|
break;
|
|
1269
1269
|
default:
|
|
1270
|
-
d(
|
|
1270
|
+
d(w.code) && (w.preventDefault(), z(w.key, b), B());
|
|
1271
1271
|
break;
|
|
1272
1272
|
}
|
|
1273
|
-
},
|
|
1273
|
+
}, B = () => {
|
|
1274
1274
|
s.value < e.length && s.value++;
|
|
1275
|
-
},
|
|
1275
|
+
}, I = () => {
|
|
1276
1276
|
e.length >= s.value && s.value > 0 && s.value--;
|
|
1277
|
-
}, z = (
|
|
1278
|
-
n.value[
|
|
1279
|
-
}, N = (
|
|
1280
|
-
|
|
1281
|
-
const
|
|
1282
|
-
|
|
1277
|
+
}, z = (w, b) => {
|
|
1278
|
+
n.value[b] = w;
|
|
1279
|
+
}, N = (w, b) => {
|
|
1280
|
+
w.preventDefault();
|
|
1281
|
+
const M = w.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, e.length);
|
|
1282
|
+
M.length === 1 && M.match(/^\d+$/) ? n.value[b] = M : M.match(/^\d+$/) && (n.value = M.split(""));
|
|
1283
1283
|
};
|
|
1284
1284
|
return re(
|
|
1285
1285
|
() => n.value,
|
|
1286
|
-
(
|
|
1287
|
-
const
|
|
1288
|
-
t("update:value",
|
|
1286
|
+
(w) => {
|
|
1287
|
+
const b = w.join("");
|
|
1288
|
+
t("update:value", b);
|
|
1289
1289
|
},
|
|
1290
1290
|
{ deep: !0 }
|
|
1291
1291
|
), re(
|
|
1292
1292
|
() => e.value,
|
|
1293
|
-
(
|
|
1294
|
-
|
|
1293
|
+
(w) => {
|
|
1294
|
+
w !== n.value.join("") && w && w.match(/^\d+$/) && (n.value = w.split("").slice(0, e.length));
|
|
1295
1295
|
}
|
|
1296
|
-
), (
|
|
1297
|
-
(o(!0), u(
|
|
1298
|
-
focus: s.value ===
|
|
1299
|
-
key:
|
|
1296
|
+
), (w, b) => (o(), u("div", T({ class: a(i) }, w.$attrs), [
|
|
1297
|
+
(o(!0), u(H, null, U(e.length, (M) => (o(), g(ys, {
|
|
1298
|
+
focus: s.value === M - 1,
|
|
1299
|
+
key: M,
|
|
1300
1300
|
placeholder: a(r),
|
|
1301
|
-
value: n.value[
|
|
1301
|
+
value: n.value[M - 1],
|
|
1302
1302
|
disabled: e.disabled,
|
|
1303
|
-
onFocus: (
|
|
1304
|
-
onKeydown: (
|
|
1305
|
-
onPaste: (
|
|
1303
|
+
onFocus: (P) => p(M - 1),
|
|
1304
|
+
onKeydown: (P) => m(P, M - 1),
|
|
1305
|
+
onPaste: (P) => N(P, M - 1),
|
|
1306
1306
|
class: "ma-numeric-input__input"
|
|
1307
1307
|
}, null, 8, ["focus", "placeholder", "value", "disabled", "onFocus", "onKeydown", "onPaste"]))), 128))
|
|
1308
1308
|
], 16));
|
|
@@ -1314,7 +1314,7 @@ const bl = [
|
|
|
1314
1314
|
"large"
|
|
1315
1315
|
], bs = {
|
|
1316
1316
|
name: "MaRadio"
|
|
1317
|
-
}, ks = /* @__PURE__ */
|
|
1317
|
+
}, ks = /* @__PURE__ */ x({
|
|
1318
1318
|
...bs,
|
|
1319
1319
|
props: {
|
|
1320
1320
|
type: { default: "button" },
|
|
@@ -1331,14 +1331,14 @@ const bl = [
|
|
|
1331
1331
|
"prefix-cls": "antd-radio",
|
|
1332
1332
|
"onUpdate:checked": n
|
|
1333
1333
|
}), Y({ _: 2 }, [
|
|
1334
|
-
|
|
1334
|
+
U(i.$slots, (d, p) => ({
|
|
1335
1335
|
name: p,
|
|
1336
1336
|
fn: h(() => [
|
|
1337
1337
|
f(i.$slots, p),
|
|
1338
1338
|
e.hint ? (o(), u("div", {
|
|
1339
1339
|
key: p,
|
|
1340
1340
|
class: "ma-radio__hint-text"
|
|
1341
|
-
},
|
|
1341
|
+
}, $(e.hint), 1)) : v("", !0)
|
|
1342
1342
|
])
|
|
1343
1343
|
}))
|
|
1344
1344
|
]), 1040, ["class"]));
|
|
@@ -1349,7 +1349,7 @@ const $s = ["aria-checked", "disabled"], ws = ["src", "alt"], Cs = { class: "ma-
|
|
|
1349
1349
|
class: "ma-app-track-button__text__category"
|
|
1350
1350
|
}, Bs = { class: "ma-app-track-button__check" }, Ss = {
|
|
1351
1351
|
name: "MaAppTrackButton"
|
|
1352
|
-
}, kl = /* @__PURE__ */
|
|
1352
|
+
}, kl = /* @__PURE__ */ x({
|
|
1353
1353
|
...Ss,
|
|
1354
1354
|
props: {
|
|
1355
1355
|
checked: { type: Boolean, default: !1 },
|
|
@@ -1382,18 +1382,18 @@ const $s = ["aria-checked", "disabled"], ws = ["src", "alt"], Cs = { class: "ma-
|
|
|
1382
1382
|
"aria-checked": e.checked,
|
|
1383
1383
|
disabled: e.disabled
|
|
1384
1384
|
}, i.$attrs, { onClick: s }), [
|
|
1385
|
-
|
|
1385
|
+
_("img", {
|
|
1386
1386
|
src: e.appIcon,
|
|
1387
1387
|
alt: e.appName,
|
|
1388
1388
|
width: "40",
|
|
1389
1389
|
height: "40"
|
|
1390
1390
|
}, null, 8, ws),
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
e.appCategory ? (o(), u("span", xs,
|
|
1391
|
+
_("span", Cs, [
|
|
1392
|
+
_("span", Ms, $(e.appName), 1),
|
|
1393
|
+
e.appCategory ? (o(), u("span", xs, $(e?.appCategory), 1)) : v("", !0)
|
|
1394
1394
|
]),
|
|
1395
|
-
|
|
1396
|
-
|
|
1395
|
+
_("span", Bs, [
|
|
1396
|
+
k(ze, {
|
|
1397
1397
|
name: "fade",
|
|
1398
1398
|
mode: "out-in"
|
|
1399
1399
|
}, {
|
|
@@ -1439,7 +1439,7 @@ const Is = { class: "ak-app-icon__logo" }, zs = ["src"], Ts = {
|
|
|
1439
1439
|
class: "ak-app-description"
|
|
1440
1440
|
}, Fs = {
|
|
1441
1441
|
name: "MaAppIcon"
|
|
1442
|
-
}, Vs = /* @__PURE__ */
|
|
1442
|
+
}, Vs = /* @__PURE__ */ x({
|
|
1443
1443
|
...Fs,
|
|
1444
1444
|
props: {
|
|
1445
1445
|
appIcon: null,
|
|
@@ -1469,27 +1469,27 @@ const Is = { class: "ak-app-icon__logo" }, zs = ["src"], Ts = {
|
|
|
1469
1469
|
...e.tooltipProps
|
|
1470
1470
|
}));
|
|
1471
1471
|
return (d, p) => (o(), u("div", {
|
|
1472
|
-
class:
|
|
1472
|
+
class: E(a(n))
|
|
1473
1473
|
}, [
|
|
1474
1474
|
e.showTooltip ? (o(), g(pe, Te(T({ key: 0 }, a(r))), {
|
|
1475
1475
|
default: h(() => [
|
|
1476
|
-
|
|
1476
|
+
_("div", Is, [
|
|
1477
1477
|
e.closable ? (o(), u("span", {
|
|
1478
1478
|
key: 0,
|
|
1479
1479
|
onClick: i,
|
|
1480
1480
|
class: "ak-app-icon-closable"
|
|
1481
1481
|
}, [
|
|
1482
|
-
|
|
1482
|
+
k(C, {
|
|
1483
1483
|
size: "xs",
|
|
1484
1484
|
name: "close-circle"
|
|
1485
1485
|
})
|
|
1486
1486
|
])) : v("", !0),
|
|
1487
|
-
|
|
1487
|
+
_("img", {
|
|
1488
1488
|
class: "ak-app-icon-img",
|
|
1489
1489
|
src: e.appIcon
|
|
1490
1490
|
}, null, 8, zs),
|
|
1491
1491
|
e?.platform ? (o(), u("span", Ts, [
|
|
1492
|
-
|
|
1492
|
+
k(C, {
|
|
1493
1493
|
size: "xs",
|
|
1494
1494
|
name: a(s)
|
|
1495
1495
|
}, null, 8, ["name"])
|
|
@@ -1503,25 +1503,25 @@ const Is = { class: "ak-app-icon__logo" }, zs = ["src"], Ts = {
|
|
|
1503
1503
|
onClick: i,
|
|
1504
1504
|
class: "ak-app-icon-closable"
|
|
1505
1505
|
}, [
|
|
1506
|
-
|
|
1506
|
+
k(C, {
|
|
1507
1507
|
size: "xs",
|
|
1508
1508
|
name: "close-circle"
|
|
1509
1509
|
})
|
|
1510
1510
|
])) : v("", !0),
|
|
1511
|
-
|
|
1511
|
+
_("img", {
|
|
1512
1512
|
class: "ak-app-icon-img",
|
|
1513
1513
|
src: e.appIcon
|
|
1514
1514
|
}, null, 8, Ns),
|
|
1515
1515
|
e?.platform ? (o(), u("span", Ps, [
|
|
1516
|
-
|
|
1516
|
+
k(C, {
|
|
1517
1517
|
size: "xs",
|
|
1518
1518
|
name: a(s)
|
|
1519
1519
|
}, null, 8, ["name"])
|
|
1520
1520
|
])) : v("", !0)
|
|
1521
1521
|
])),
|
|
1522
1522
|
e?.appName || e?.appDescription ? (o(), u("div", Ls, [
|
|
1523
|
-
e?.appName ? (o(), u("span", Ds,
|
|
1524
|
-
e?.appDescription ? (o(), u("span", Es,
|
|
1523
|
+
e?.appName ? (o(), u("span", Ds, $(e.appName), 1)) : v("", !0),
|
|
1524
|
+
e?.appDescription ? (o(), u("span", Es, $(e.appDescription), 1)) : v("", !0)
|
|
1525
1525
|
])) : v("", !0)
|
|
1526
1526
|
], 2));
|
|
1527
1527
|
}
|
|
@@ -1537,11 +1537,11 @@ const $l = [
|
|
|
1537
1537
|
"ios"
|
|
1538
1538
|
], Gs = {
|
|
1539
1539
|
name: "MaRadioGroup"
|
|
1540
|
-
}, Cl = /* @__PURE__ */
|
|
1540
|
+
}, Cl = /* @__PURE__ */ x({
|
|
1541
1541
|
...Gs,
|
|
1542
1542
|
setup(l) {
|
|
1543
1543
|
return (t, e) => (o(), g(a(rt), T(t.$attrs, { "prefix-cls": "antd-radio" }), Y({ _: 2 }, [
|
|
1544
|
-
|
|
1544
|
+
U(t.$slots, (s, n) => ({
|
|
1545
1545
|
name: n,
|
|
1546
1546
|
fn: h(() => [
|
|
1547
1547
|
f(t.$slots, n)
|
|
@@ -1575,7 +1575,7 @@ const $l = [
|
|
|
1575
1575
|
"right"
|
|
1576
1576
|
], Os = {
|
|
1577
1577
|
name: "MaAlert"
|
|
1578
|
-
}, zl = /* @__PURE__ */
|
|
1578
|
+
}, zl = /* @__PURE__ */ x({
|
|
1579
1579
|
...Os,
|
|
1580
1580
|
props: {
|
|
1581
1581
|
variant: { default: "dark" },
|
|
@@ -1596,7 +1596,7 @@ const $l = [
|
|
|
1596
1596
|
"prefix-cls": "antd-alert"
|
|
1597
1597
|
}), {
|
|
1598
1598
|
closeIcon: h(() => [
|
|
1599
|
-
|
|
1599
|
+
k(C, {
|
|
1600
1600
|
name: "close",
|
|
1601
1601
|
size: "xs"
|
|
1602
1602
|
})
|
|
@@ -1630,7 +1630,7 @@ const Tl = [
|
|
|
1630
1630
|
"secondary"
|
|
1631
1631
|
], Rs = {
|
|
1632
1632
|
name: "MaAnimation"
|
|
1633
|
-
}, Us = /* @__PURE__ */
|
|
1633
|
+
}, Us = /* @__PURE__ */ x({
|
|
1634
1634
|
...Rs,
|
|
1635
1635
|
props: {
|
|
1636
1636
|
name: { default: "rocket" },
|
|
@@ -1644,7 +1644,7 @@ const Tl = [
|
|
|
1644
1644
|
setup(l, { expose: t, emit: e }) {
|
|
1645
1645
|
const s = l;
|
|
1646
1646
|
let n;
|
|
1647
|
-
const i =
|
|
1647
|
+
const i = D(null), r = D(null);
|
|
1648
1648
|
t({
|
|
1649
1649
|
animation: r
|
|
1650
1650
|
});
|
|
@@ -1655,35 +1655,35 @@ const Tl = [
|
|
|
1655
1655
|
re(
|
|
1656
1656
|
() => s.name,
|
|
1657
1657
|
() => {
|
|
1658
|
-
|
|
1658
|
+
B(), m();
|
|
1659
1659
|
}
|
|
1660
1660
|
);
|
|
1661
1661
|
const p = async () => {
|
|
1662
|
-
const { default:
|
|
1663
|
-
n =
|
|
1662
|
+
const { default: I } = await import("./lottie_light-b08f9446.mjs").then((z) => z.l);
|
|
1663
|
+
n = I;
|
|
1664
1664
|
}, m = async () => {
|
|
1665
1665
|
try {
|
|
1666
|
-
const { default:
|
|
1666
|
+
const { default: I } = await fe(/* @__PURE__ */ Object.assign({ "./files/fly-waiting.json": () => import("./fly-waiting-bc221374.mjs"), "./files/no-data-found.json": () => import("./no-data-found-98af8e80.mjs"), "./files/rocket.json": () => import("./rocket-21431704.mjs"), "./files/rounded-loading.json": () => import("./rounded-loading-d3184421.mjs"), "./files/sad-not-found.json": () => import("./sad-not-found-44e231b1.mjs"), "./files/success-confetti.json": () => import("./success-confetti-b9594f98.mjs") }), `./files/${s.name}.json`);
|
|
1667
1667
|
r.value = n.loadAnimation({
|
|
1668
1668
|
container: i.value,
|
|
1669
1669
|
loop: s.loop,
|
|
1670
1670
|
autoplay: s.autoplay,
|
|
1671
|
-
animationData:
|
|
1671
|
+
animationData: I,
|
|
1672
1672
|
rendererSettings: s?.rendererSettings
|
|
1673
1673
|
}), r.value.onComplete = () => e("onComplete"), r.value.addEventListener("DOMLoaded", function() {
|
|
1674
1674
|
e("onLoaded");
|
|
1675
1675
|
});
|
|
1676
|
-
} catch (
|
|
1677
|
-
e("onError",
|
|
1676
|
+
} catch (I) {
|
|
1677
|
+
e("onError", I);
|
|
1678
1678
|
}
|
|
1679
|
-
},
|
|
1679
|
+
}, B = () => {
|
|
1680
1680
|
r.value && r.value.destroy();
|
|
1681
1681
|
};
|
|
1682
1682
|
return de(async () => {
|
|
1683
1683
|
await p(), m();
|
|
1684
1684
|
}), Ae(() => {
|
|
1685
|
-
|
|
1686
|
-
}), (
|
|
1685
|
+
B();
|
|
1686
|
+
}), (I, z) => (o(), u("div", {
|
|
1687
1687
|
ref_key: "animationRef",
|
|
1688
1688
|
ref: i,
|
|
1689
1689
|
class: "ma-animation",
|
|
@@ -1720,7 +1720,7 @@ const Tl = [
|
|
|
1720
1720
|
class: "ak-modal__footer"
|
|
1721
1721
|
}, Ws = {
|
|
1722
1722
|
name: "MaModal"
|
|
1723
|
-
}, Me = /* @__PURE__ */
|
|
1723
|
+
}, Me = /* @__PURE__ */ x({
|
|
1724
1724
|
...Ws,
|
|
1725
1725
|
props: {
|
|
1726
1726
|
visible: { type: Boolean, default: !0 },
|
|
@@ -1751,7 +1751,7 @@ const Tl = [
|
|
|
1751
1751
|
), i = c(
|
|
1752
1752
|
() => e.type === "error" ? "danger" : e.type === "warning" ? "warning" : "info"
|
|
1753
1753
|
), r = c(
|
|
1754
|
-
() =>
|
|
1754
|
+
() => I?.footer || e.okText || e.cancelText
|
|
1755
1755
|
), d = c(() => [
|
|
1756
1756
|
"ma-modal",
|
|
1757
1757
|
"ak-modal",
|
|
@@ -1761,12 +1761,12 @@ const Tl = [
|
|
|
1761
1761
|
{ [`ak-modal__header-icon--${e.type}`]: !!e.type }
|
|
1762
1762
|
]), m = () => {
|
|
1763
1763
|
s.value = !1, t("cancel");
|
|
1764
|
-
},
|
|
1764
|
+
}, B = () => {
|
|
1765
1765
|
t("ok");
|
|
1766
|
-
},
|
|
1766
|
+
}, I = ae();
|
|
1767
1767
|
return (z, N) => (o(), g(a(ut), T(z.$attrs, {
|
|
1768
1768
|
visible: a(s),
|
|
1769
|
-
"onUpdate:visible": N[0] || (N[0] = (
|
|
1769
|
+
"onUpdate:visible": N[0] || (N[0] = (w) => ee(s) ? s.value = w : null),
|
|
1770
1770
|
"prefix-cls": "antd-modal",
|
|
1771
1771
|
class: a(d),
|
|
1772
1772
|
closable: e.closable,
|
|
@@ -1774,11 +1774,11 @@ const Tl = [
|
|
|
1774
1774
|
"mask-closable": e.maskClosable,
|
|
1775
1775
|
width: e.width,
|
|
1776
1776
|
footer: null,
|
|
1777
|
-
onOk:
|
|
1777
|
+
onOk: B,
|
|
1778
1778
|
onCancel: m
|
|
1779
1779
|
}), {
|
|
1780
1780
|
closeIcon: h(() => [
|
|
1781
|
-
|
|
1781
|
+
k(C, {
|
|
1782
1782
|
name: "close-circle",
|
|
1783
1783
|
size: "sm"
|
|
1784
1784
|
})
|
|
@@ -1786,29 +1786,29 @@ const Tl = [
|
|
|
1786
1786
|
default: h(() => [
|
|
1787
1787
|
a(n) ? (o(), u("div", {
|
|
1788
1788
|
key: 0,
|
|
1789
|
-
class:
|
|
1789
|
+
class: E(a(p))
|
|
1790
1790
|
}, [
|
|
1791
|
-
|
|
1791
|
+
k(C, { name: a(n) }, null, 8, ["name"])
|
|
1792
1792
|
], 2)) : v("", !0),
|
|
1793
1793
|
e.title || z.$slots.title ? (o(), u("h1", Ks, [
|
|
1794
1794
|
f(z.$slots, "title"),
|
|
1795
|
-
|
|
1795
|
+
F(" " + $(e.title), 1)
|
|
1796
1796
|
])) : v("", !0),
|
|
1797
|
-
|
|
1798
|
-
e.content ? (o(), u("div", qs,
|
|
1797
|
+
_("div", js, [
|
|
1798
|
+
e.content ? (o(), u("div", qs, $(e.content), 1)) : v("", !0),
|
|
1799
1799
|
f(z.$slots, "content"),
|
|
1800
1800
|
f(z.$slots, "default")
|
|
1801
1801
|
]),
|
|
1802
1802
|
a(r) ? (o(), u("div", Hs, [
|
|
1803
1803
|
e.okText ? (o(), g(te, T({
|
|
1804
1804
|
key: 0,
|
|
1805
|
-
onClick:
|
|
1805
|
+
onClick: B,
|
|
1806
1806
|
class: "ak-modal__ok-button",
|
|
1807
1807
|
variant: a(i),
|
|
1808
1808
|
loading: e.confirmLoading
|
|
1809
1809
|
}, e.okButtonProps), {
|
|
1810
1810
|
default: h(() => [
|
|
1811
|
-
|
|
1811
|
+
F($(e.okText), 1)
|
|
1812
1812
|
]),
|
|
1813
1813
|
_: 1
|
|
1814
1814
|
}, 16, ["variant", "loading"])) : v("", !0),
|
|
@@ -1818,7 +1818,7 @@ const Tl = [
|
|
|
1818
1818
|
type: "grey-link"
|
|
1819
1819
|
}, e.cancelButtonProps), {
|
|
1820
1820
|
default: h(() => [
|
|
1821
|
-
|
|
1821
|
+
F($(e.cancelText), 1)
|
|
1822
1822
|
]),
|
|
1823
1823
|
_: 1
|
|
1824
1824
|
}, 16)) : v("", !0),
|
|
@@ -1846,7 +1846,7 @@ Js.forEach((l) => {
|
|
|
1846
1846
|
});
|
|
1847
1847
|
const Ys = {
|
|
1848
1848
|
name: "MaRateStar"
|
|
1849
|
-
}, Zs = /* @__PURE__ */
|
|
1849
|
+
}, Zs = /* @__PURE__ */ x({
|
|
1850
1850
|
...Ys,
|
|
1851
1851
|
props: {
|
|
1852
1852
|
value: null,
|
|
@@ -1862,8 +1862,8 @@ const Ys = {
|
|
|
1862
1862
|
]), s = c(() => t.starRate - 0.5 === t.value), n = c(() => s.value ? "star-half-colored" : "star-bold");
|
|
1863
1863
|
return (i, r) => (o(), g(ze, { name: "fade" }, {
|
|
1864
1864
|
default: h(() => [
|
|
1865
|
-
|
|
1866
|
-
class:
|
|
1865
|
+
k(C, {
|
|
1866
|
+
class: E(a(e)),
|
|
1867
1867
|
name: a(n),
|
|
1868
1868
|
size: l.iconSize
|
|
1869
1869
|
}, null, 8, ["class", "name", "size"])
|
|
@@ -1873,7 +1873,7 @@ const Ys = {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
}), Xs = ["tabindex"], Qs = ["onMousemove", "onMouseover"], eo = {
|
|
1875
1875
|
name: "MaRate"
|
|
1876
|
-
}, Ll = /* @__PURE__ */
|
|
1876
|
+
}, Ll = /* @__PURE__ */ x({
|
|
1877
1877
|
...eo,
|
|
1878
1878
|
props: {
|
|
1879
1879
|
value: null,
|
|
@@ -1886,7 +1886,7 @@ const Ys = {
|
|
|
1886
1886
|
},
|
|
1887
1887
|
emits: ["update:value", "change"],
|
|
1888
1888
|
setup(l, { emit: t }) {
|
|
1889
|
-
const e = l, s =
|
|
1889
|
+
const e = l, s = D(0), n = c(() => [
|
|
1890
1890
|
`ak-rate ak-rate--${e.size} ak-rate--${e.color}`,
|
|
1891
1891
|
{
|
|
1892
1892
|
"ak-rate--disabled": e?.disabled
|
|
@@ -1912,28 +1912,28 @@ const Ys = {
|
|
|
1912
1912
|
e?.disabled || (s.value = N);
|
|
1913
1913
|
}, m = () => {
|
|
1914
1914
|
s.value = 0;
|
|
1915
|
-
},
|
|
1916
|
-
!e?.allowHalf || e.disabled || (N.offsetX < N.target.clientWidth / 2 ? s.value =
|
|
1917
|
-
},
|
|
1915
|
+
}, B = (N, w) => {
|
|
1916
|
+
!e?.allowHalf || e.disabled || (N.offsetX < N.target.clientWidth / 2 ? s.value = w - 0.5 : s.value = w);
|
|
1917
|
+
}, I = (N) => {
|
|
1918
1918
|
e?.disabled || (N.key === "ArrowRight" && e.value < 5 ? z(e.value + (e.allowHalf ? 0.5 : 1)) : N.key === "ArrowLeft" && e.value > 0 && z(e.value - (e.allowHalf ? 0.5 : 1)));
|
|
1919
1919
|
}, z = (N) => {
|
|
1920
1920
|
t("update:value", N), t("change", N);
|
|
1921
1921
|
};
|
|
1922
|
-
return (N,
|
|
1923
|
-
class:
|
|
1922
|
+
return (N, w) => (o(), u("ul", {
|
|
1923
|
+
class: E(a(n)),
|
|
1924
1924
|
onMouseleave: m,
|
|
1925
|
-
onKeydown:
|
|
1925
|
+
onKeydown: I,
|
|
1926
1926
|
tabindex: a(r)
|
|
1927
1927
|
}, [
|
|
1928
|
-
(o(), u(
|
|
1928
|
+
(o(), u(H, null, U(5, (b) => _("li", {
|
|
1929
1929
|
class: "ak-rate__item",
|
|
1930
|
-
key:
|
|
1931
|
-
onMousemove: (
|
|
1932
|
-
onMouseover: (
|
|
1933
|
-
onClick:
|
|
1930
|
+
key: b,
|
|
1931
|
+
onMousemove: (M) => B(M, b),
|
|
1932
|
+
onMouseover: (M) => p(b),
|
|
1933
|
+
onClick: w[0] || (w[0] = (M) => d())
|
|
1934
1934
|
}, [
|
|
1935
|
-
|
|
1936
|
-
"star-rate":
|
|
1935
|
+
k(Zs, {
|
|
1936
|
+
"star-rate": b,
|
|
1937
1937
|
value: s.value || e.value,
|
|
1938
1938
|
"icon-size": a(i)
|
|
1939
1939
|
}, null, 8, ["star-rate", "value", "icon-size"])
|
|
@@ -1960,7 +1960,7 @@ const Dl = [
|
|
|
1960
1960
|
class: "tip"
|
|
1961
1961
|
}, ao = {
|
|
1962
1962
|
name: "MaSpin"
|
|
1963
|
-
}, xe = /* @__PURE__ */
|
|
1963
|
+
}, xe = /* @__PURE__ */ x({
|
|
1964
1964
|
...ao,
|
|
1965
1965
|
props: {
|
|
1966
1966
|
type: { default: "round" },
|
|
@@ -1984,11 +1984,11 @@ const Dl = [
|
|
|
1984
1984
|
])) : v("", !0),
|
|
1985
1985
|
t.spinning && !r.$slots.indicator ? (o(), g(C, {
|
|
1986
1986
|
key: 1,
|
|
1987
|
-
class:
|
|
1987
|
+
class: E(a(n)),
|
|
1988
1988
|
name: a(i)
|
|
1989
1989
|
}, null, 8, ["class", "name"])) : v("", !0),
|
|
1990
1990
|
r.$slots?.tip || t?.tip ? (o(), u("div", oo, [
|
|
1991
|
-
|
|
1991
|
+
F($(t?.tip) + " ", 1),
|
|
1992
1992
|
f(r.$slots, "tip")
|
|
1993
1993
|
])) : v("", !0)
|
|
1994
1994
|
])) : v("", !0),
|
|
@@ -2009,7 +2009,7 @@ const Fl = [
|
|
|
2009
2009
|
"grey"
|
|
2010
2010
|
], no = {
|
|
2011
2011
|
name: "MaDropdown"
|
|
2012
|
-
}, Gl = /* @__PURE__ */
|
|
2012
|
+
}, Gl = /* @__PURE__ */ x({
|
|
2013
2013
|
...no,
|
|
2014
2014
|
props: {
|
|
2015
2015
|
destroyPopupOnHide: { type: Boolean, default: !1 },
|
|
@@ -2079,7 +2079,7 @@ const Ol = [
|
|
|
2079
2079
|
selection: "selection"
|
|
2080
2080
|
}, lo = { class: "ma-empty__title" }, io = { class: "ma-empty__description" }, ro = { class: "ma-empty__content" }, co = {
|
|
2081
2081
|
name: "MaEmpty"
|
|
2082
|
-
}, jl = /* @__PURE__ */
|
|
2082
|
+
}, jl = /* @__PURE__ */ x({
|
|
2083
2083
|
...co,
|
|
2084
2084
|
props: {
|
|
2085
2085
|
size: { default: "large" },
|
|
@@ -2096,7 +2096,7 @@ const Ol = [
|
|
|
2096
2096
|
`ma-empty ma-empty--${t.variant} ma-empty--${t.size}`
|
|
2097
2097
|
]);
|
|
2098
2098
|
return (n, i) => (o(), u("div", {
|
|
2099
|
-
class:
|
|
2099
|
+
class: E(a(s))
|
|
2100
2100
|
}, [
|
|
2101
2101
|
t?.animation ? (o(), g(Us, T({
|
|
2102
2102
|
key: 0,
|
|
@@ -2106,15 +2106,15 @@ const Ol = [
|
|
|
2106
2106
|
name: a(e),
|
|
2107
2107
|
class: "ma-empty__icon"
|
|
2108
2108
|
}, null, 8, ["name"])),
|
|
2109
|
-
|
|
2110
|
-
|
|
2109
|
+
_("span", lo, [
|
|
2110
|
+
F($(l.title) + " ", 1),
|
|
2111
2111
|
f(n.$slots, "title")
|
|
2112
2112
|
]),
|
|
2113
|
-
|
|
2114
|
-
|
|
2113
|
+
_("span", io, [
|
|
2114
|
+
F($(l.description) + " ", 1),
|
|
2115
2115
|
f(n.$slots, "description")
|
|
2116
2116
|
]),
|
|
2117
|
-
|
|
2117
|
+
_("div", ro, [
|
|
2118
2118
|
f(n.$slots, "default")
|
|
2119
2119
|
])
|
|
2120
2120
|
], 2));
|
|
@@ -2144,17 +2144,17 @@ const me = (l) => {
|
|
|
2144
2144
|
t += Math.random().toString(36).substr(2);
|
|
2145
2145
|
return t.substr(0, l);
|
|
2146
2146
|
}, mo = (l, t = {}, e = {}, s) => {
|
|
2147
|
-
const n =
|
|
2147
|
+
const n = D(0);
|
|
2148
2148
|
return { progress: n, upload: async (r, d) => {
|
|
2149
2149
|
const p = new FormData();
|
|
2150
|
-
p.append(s, r.file), Object.entries(e).forEach(([
|
|
2151
|
-
p.append(
|
|
2150
|
+
p.append(s, r.file), Object.entries(e).forEach(([B, I]) => {
|
|
2151
|
+
p.append(B, I);
|
|
2152
2152
|
});
|
|
2153
2153
|
const m = new XMLHttpRequest();
|
|
2154
|
-
m.open("POST", l), Object.entries(t).forEach(([
|
|
2155
|
-
m.setRequestHeader(
|
|
2156
|
-
}), m.upload.onprogress = (
|
|
2157
|
-
|
|
2154
|
+
m.open("POST", l), Object.entries(t).forEach(([B, I]) => {
|
|
2155
|
+
m.setRequestHeader(B, I);
|
|
2156
|
+
}), m.upload.onprogress = (B) => {
|
|
2157
|
+
B.lengthComputable && (n.value = B.loaded / B.total * 100, d(se.uploading, n.value));
|
|
2158
2158
|
}, m.onload = () => {
|
|
2159
2159
|
m.status >= 200 && m.status < 300 ? d(
|
|
2160
2160
|
se.done,
|
|
@@ -2194,7 +2194,7 @@ const me = (l) => {
|
|
|
2194
2194
|
}, fo = { class: "single-file" }, go = { class: "icon-wrapper" }, _o = { class: "single-file__detail" }, yo = { class: "file-name" }, ho = {
|
|
2195
2195
|
key: 0,
|
|
2196
2196
|
class: "file-size"
|
|
2197
|
-
}, bo = { class: "file-progress" }, ko = { class: "single-file__actions" }, $o = /* @__PURE__ */
|
|
2197
|
+
}, bo = { class: "file-progress" }, ko = { class: "single-file__actions" }, $o = /* @__PURE__ */ x({
|
|
2198
2198
|
__name: "singleFile",
|
|
2199
2199
|
props: {
|
|
2200
2200
|
file: null,
|
|
@@ -2207,20 +2207,20 @@ const me = (l) => {
|
|
|
2207
2207
|
() => `${(e.file.file.size / (1024 * 1024)).toFixed(1)} MB`
|
|
2208
2208
|
), n = c(() => typeof e.file.file.size == "number"), i = () => t("remove"), r = () => t("cancel");
|
|
2209
2209
|
return (d, p) => (o(), u("div", fo, [
|
|
2210
|
-
|
|
2211
|
-
|
|
2210
|
+
_("div", go, [
|
|
2211
|
+
k(C, { name: "document-bulk" })
|
|
2212
2212
|
]),
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
a(n) ? (o(), u("span", ho,
|
|
2216
|
-
|
|
2217
|
-
|
|
2213
|
+
_("div", _o, [
|
|
2214
|
+
_("span", yo, $(l.file.file.name), 1),
|
|
2215
|
+
a(n) ? (o(), u("span", ho, $(a(s)), 1)) : v("", !0),
|
|
2216
|
+
_("span", bo, [
|
|
2217
|
+
_("span", {
|
|
2218
2218
|
class: "progress-item",
|
|
2219
2219
|
style: J({ width: `${l.file.progress}%` })
|
|
2220
2220
|
}, null, 4)
|
|
2221
2221
|
])
|
|
2222
2222
|
]),
|
|
2223
|
-
|
|
2223
|
+
_("div", ko, [
|
|
2224
2224
|
l.file.status === a(se).uploading ? (o(), g(te, {
|
|
2225
2225
|
key: 0,
|
|
2226
2226
|
disabled: l.disabled,
|
|
@@ -2238,11 +2238,11 @@ const me = (l) => {
|
|
|
2238
2238
|
variant: "plain",
|
|
2239
2239
|
icon: "trash-bulk"
|
|
2240
2240
|
}, null, 8, ["disabled"])),
|
|
2241
|
-
|
|
2241
|
+
_("span", null, "%" + $(parseInt(l.file.progress.toString())), 1)
|
|
2242
2242
|
])
|
|
2243
2243
|
]));
|
|
2244
2244
|
}
|
|
2245
|
-
}), wo = ["onDrop"], Co = ["accept", "multiple", "disabled"], Mo = { class: "text" }, xo = /* @__PURE__ */
|
|
2245
|
+
}), wo = ["onDrop"], Co = ["accept", "multiple", "disabled"], Mo = { class: "text" }, xo = /* @__PURE__ */ _("span", null, "Uploading file...", -1), Bo = { class: "upload-icon" }, So = {
|
|
2246
2246
|
key: 0,
|
|
2247
2247
|
class: "upload-title"
|
|
2248
2248
|
}, Io = {
|
|
@@ -2250,7 +2250,7 @@ const me = (l) => {
|
|
|
2250
2250
|
class: "upload-description"
|
|
2251
2251
|
}, zo = {
|
|
2252
2252
|
name: "MaUpload"
|
|
2253
|
-
}, Hl = /* @__PURE__ */
|
|
2253
|
+
}, Hl = /* @__PURE__ */ x({
|
|
2254
2254
|
...zo,
|
|
2255
2255
|
props: {
|
|
2256
2256
|
fileList: null,
|
|
@@ -2274,14 +2274,14 @@ const me = (l) => {
|
|
|
2274
2274
|
},
|
|
2275
2275
|
emits: ["update:fileList", "change", "remove", "error"],
|
|
2276
2276
|
setup(l, { emit: t }) {
|
|
2277
|
-
const e = l, s =
|
|
2277
|
+
const e = l, s = D(null), n = D(null), i = D(!1), r = ["dragenter", "dragover", "dragleave", "drop"], d = ["dragenter", "dragover"], p = ["dragleave", "drop"], m = c({
|
|
2278
2278
|
get() {
|
|
2279
2279
|
return e.fileList;
|
|
2280
2280
|
},
|
|
2281
|
-
set(
|
|
2282
|
-
t("update:fileList",
|
|
2281
|
+
set(S) {
|
|
2282
|
+
t("update:fileList", S), t("change", S), e?.action && S.forEach(async (V, K) => {
|
|
2283
2283
|
if ([se.done, se.error].includes(
|
|
2284
|
-
|
|
2284
|
+
V.status
|
|
2285
2285
|
))
|
|
2286
2286
|
return;
|
|
2287
2287
|
const { upload: le } = mo(
|
|
@@ -2291,11 +2291,11 @@ const me = (l) => {
|
|
|
2291
2291
|
e.data,
|
|
2292
2292
|
e.name
|
|
2293
2293
|
);
|
|
2294
|
-
e?.beforeUpload && (
|
|
2294
|
+
e?.beforeUpload && (V.file = await e.beforeUpload(V.file)), le(V, (ce, Ge, be) => {
|
|
2295
2295
|
if (m.value[K]) {
|
|
2296
2296
|
if (ce === se.error) {
|
|
2297
|
-
t("error", { file:
|
|
2298
|
-
m.value.findIndex((Oe) => Oe.id ===
|
|
2297
|
+
t("error", { file: V.file, message: be }), G(
|
|
2298
|
+
m.value.findIndex((Oe) => Oe.id === V.id)
|
|
2299
2299
|
);
|
|
2300
2300
|
return;
|
|
2301
2301
|
}
|
|
@@ -2304,54 +2304,54 @@ const me = (l) => {
|
|
|
2304
2304
|
});
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
}),
|
|
2308
|
-
() => m.value.map((
|
|
2309
|
-
),
|
|
2307
|
+
}), B = c(
|
|
2308
|
+
() => m.value.map((S) => S.file.name).join(", ")
|
|
2309
|
+
), I = c(
|
|
2310
2310
|
() => e.type === "box" ? e.multiple ? !0 : !m.value.length : !0
|
|
2311
2311
|
), z = c(
|
|
2312
|
-
() => e.ordered &&
|
|
2312
|
+
() => e.ordered && M.value ? !1 : m.value.length ? e.showFileList : !1
|
|
2313
2313
|
), N = c(() => [
|
|
2314
2314
|
`ma-upload ma-upload--${e.type} ma-upload--${e.type}--${e.size}`,
|
|
2315
2315
|
{
|
|
2316
2316
|
"ma-upload--active": i.value
|
|
2317
2317
|
},
|
|
2318
2318
|
{
|
|
2319
|
-
"ma-upload--disabled":
|
|
2319
|
+
"ma-upload--disabled": P.value
|
|
2320
2320
|
}
|
|
2321
|
-
]),
|
|
2321
|
+
]), w = c(() => [
|
|
2322
2322
|
"ma-file-list",
|
|
2323
2323
|
{
|
|
2324
|
-
"only-file-list": !
|
|
2324
|
+
"only-file-list": !I.value
|
|
2325
2325
|
}
|
|
2326
|
-
]),
|
|
2327
|
-
const
|
|
2328
|
-
return $t[
|
|
2329
|
-
}),
|
|
2330
|
-
() => e.wait || m.value.some((
|
|
2331
|
-
),
|
|
2332
|
-
(
|
|
2333
|
-
),
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2336
|
-
},
|
|
2326
|
+
]), b = c(() => {
|
|
2327
|
+
const S = e?.size ? uo.indexOf(e.size) : 0;
|
|
2328
|
+
return $t[S];
|
|
2329
|
+
}), M = c(
|
|
2330
|
+
() => e.wait || m.value.some((S) => S.status === se.uploading)
|
|
2331
|
+
), P = c(() => e?.disabled || M.value), L = (S) => Array.from(S).find(
|
|
2332
|
+
(V) => e?.maxFileSize && V.size > e.maxFileSize
|
|
2333
|
+
), q = (S) => {
|
|
2334
|
+
const V = S.target;
|
|
2335
|
+
V.files && A(Array.from(V.files));
|
|
2336
|
+
}, y = () => {
|
|
2337
2337
|
n.value?.click();
|
|
2338
|
-
},
|
|
2339
|
-
|
|
2340
|
-
},
|
|
2338
|
+
}, O = (S) => {
|
|
2339
|
+
S.preventDefault();
|
|
2340
|
+
}, R = () => {
|
|
2341
2341
|
i.value = !0;
|
|
2342
2342
|
}, Z = () => {
|
|
2343
2343
|
i.value = !1;
|
|
2344
|
-
}, ue = (
|
|
2345
|
-
|
|
2346
|
-
Array.from(
|
|
2344
|
+
}, ue = (S) => {
|
|
2345
|
+
P.value || S.dataTransfer?.files && A(
|
|
2346
|
+
Array.from(S.dataTransfer.files).filter((V) => e?.accept && !vo(V, e.accept) ? (t("error", { file: V, message: "file type does not match!" }), !1) : !0)
|
|
2347
2347
|
);
|
|
2348
|
-
}, A = (
|
|
2349
|
-
const
|
|
2350
|
-
if (
|
|
2351
|
-
t("error", { file:
|
|
2348
|
+
}, A = (S) => {
|
|
2349
|
+
const V = L(S);
|
|
2350
|
+
if (V) {
|
|
2351
|
+
t("error", { file: V, message: "File too large" });
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
|
-
const K = Array.from(
|
|
2354
|
+
const K = Array.from(S).filter(
|
|
2355
2355
|
(le, ce) => e?.maxCount ? ce + 1 <= e.maxCount : !0
|
|
2356
2356
|
).map((le) => ({
|
|
2357
2357
|
file: le,
|
|
@@ -2361,43 +2361,43 @@ const me = (l) => {
|
|
|
2361
2361
|
response: null
|
|
2362
2362
|
}));
|
|
2363
2363
|
e.multiple ? m.value = [...m.value, ...K] : K.length && (m.value = [K[0]]);
|
|
2364
|
-
},
|
|
2365
|
-
t("remove", m.value[
|
|
2366
|
-
}, j = (
|
|
2367
|
-
const
|
|
2368
|
-
typeof
|
|
2369
|
-
}, W = (
|
|
2370
|
-
|
|
2364
|
+
}, G = (S) => {
|
|
2365
|
+
t("remove", m.value[S]), m.value = m.value.filter((V, K) => K !== S);
|
|
2366
|
+
}, j = (S) => {
|
|
2367
|
+
const V = m.value[S];
|
|
2368
|
+
typeof V?.cancelRequest == "function" && V.cancelRequest(), G(S);
|
|
2369
|
+
}, W = (S) => {
|
|
2370
|
+
S.stopPropagation(), m.value.forEach((V, K) => j(K)), m.value = [];
|
|
2371
2371
|
};
|
|
2372
2372
|
return de(() => {
|
|
2373
|
-
r.forEach((
|
|
2374
|
-
s.value?.addEventListener(
|
|
2375
|
-
}), d.forEach((
|
|
2376
|
-
s.value?.addEventListener(
|
|
2377
|
-
}), p.forEach((
|
|
2378
|
-
s.value?.addEventListener(
|
|
2373
|
+
r.forEach((S) => {
|
|
2374
|
+
s.value?.addEventListener(S, O);
|
|
2375
|
+
}), d.forEach((S) => {
|
|
2376
|
+
s.value?.addEventListener(S, R);
|
|
2377
|
+
}), p.forEach((S) => {
|
|
2378
|
+
s.value?.addEventListener(S, Z);
|
|
2379
2379
|
});
|
|
2380
2380
|
}), Ne(() => {
|
|
2381
|
-
r.forEach((
|
|
2382
|
-
s.value?.removeEventListener(
|
|
2383
|
-
}), d.forEach((
|
|
2384
|
-
s.value?.removeEventListener(
|
|
2385
|
-
}), p.forEach((
|
|
2386
|
-
s.value?.removeEventListener(
|
|
2381
|
+
r.forEach((S) => {
|
|
2382
|
+
s.value?.removeEventListener(S, O);
|
|
2383
|
+
}), d.forEach((S) => {
|
|
2384
|
+
s.value?.removeEventListener(S, R);
|
|
2385
|
+
}), p.forEach((S) => {
|
|
2386
|
+
s.value?.removeEventListener(S, Z);
|
|
2387
2387
|
});
|
|
2388
|
-
}), (
|
|
2389
|
-
X(
|
|
2388
|
+
}), (S, V) => (o(), u("div", T({ class: "ma-upload-wrapper" }, S.$attrs), [
|
|
2389
|
+
X(_("div", {
|
|
2390
2390
|
ref_key: "uploadArea",
|
|
2391
2391
|
ref: s,
|
|
2392
|
-
class:
|
|
2392
|
+
class: E(a(N)),
|
|
2393
2393
|
onDrop: Pe(ue, ["prevent"])
|
|
2394
2394
|
}, [
|
|
2395
2395
|
(o(), u("input", {
|
|
2396
2396
|
type: "file",
|
|
2397
2397
|
accept: l.accept,
|
|
2398
2398
|
multiple: e.multiple,
|
|
2399
|
-
disabled: a(
|
|
2400
|
-
onChange:
|
|
2399
|
+
disabled: a(P),
|
|
2400
|
+
onChange: q,
|
|
2401
2401
|
key: a(m).length,
|
|
2402
2402
|
ref_key: "fileInput",
|
|
2403
2403
|
ref: n
|
|
@@ -2407,21 +2407,21 @@ const me = (l) => {
|
|
|
2407
2407
|
type: l.fileList.length ? "primary" : "secondary",
|
|
2408
2408
|
variant: "dark",
|
|
2409
2409
|
icon: "export-2",
|
|
2410
|
-
onClick:
|
|
2411
|
-
size: a(
|
|
2412
|
-
disabled: a(
|
|
2413
|
-
loading: a(
|
|
2410
|
+
onClick: y,
|
|
2411
|
+
size: a(b),
|
|
2412
|
+
disabled: a(P),
|
|
2413
|
+
loading: a(M)
|
|
2414
2414
|
}, {
|
|
2415
2415
|
default: h(() => [
|
|
2416
|
-
|
|
2416
|
+
F($(l.fileList.length ? a(B) : e?.title), 1)
|
|
2417
2417
|
]),
|
|
2418
2418
|
_: 1
|
|
2419
2419
|
}, 8, ["type", "size", "disabled", "loading"])) : e.type === "small-box" ? (o(), u("div", {
|
|
2420
2420
|
key: 1,
|
|
2421
2421
|
class: "ma-upload__small_box",
|
|
2422
|
-
onClick:
|
|
2422
|
+
onClick: y
|
|
2423
2423
|
}, [
|
|
2424
|
-
a(
|
|
2424
|
+
a(M) ? (o(), g(xe, {
|
|
2425
2425
|
key: 0,
|
|
2426
2426
|
type: "three-circles",
|
|
2427
2427
|
color: "blue"
|
|
@@ -2429,59 +2429,59 @@ const me = (l) => {
|
|
|
2429
2429
|
key: 1,
|
|
2430
2430
|
name: "export-2-bulk"
|
|
2431
2431
|
})),
|
|
2432
|
-
|
|
2433
|
-
a(
|
|
2434
|
-
|
|
2435
|
-
], 64)) : (o(), u(
|
|
2436
|
-
|
|
2437
|
-
f(
|
|
2432
|
+
_("span", Mo, [
|
|
2433
|
+
a(M) ? (o(), u(H, { key: 0 }, [
|
|
2434
|
+
F(" Uploading... ")
|
|
2435
|
+
], 64)) : (o(), u(H, { key: 1 }, [
|
|
2436
|
+
F($(e?.title) + " ", 1),
|
|
2437
|
+
f(S.$slots, "small-box-title")
|
|
2438
2438
|
], 64))
|
|
2439
2439
|
])
|
|
2440
2440
|
])) : (o(), u("div", {
|
|
2441
2441
|
key: 2,
|
|
2442
2442
|
class: "ma-upload__box",
|
|
2443
|
-
onClick:
|
|
2443
|
+
onClick: y
|
|
2444
2444
|
}, [
|
|
2445
|
-
e.ordered && a(
|
|
2446
|
-
|
|
2445
|
+
e.ordered && a(M) ? (o(), u(H, { key: 0 }, [
|
|
2446
|
+
k(xe, {
|
|
2447
2447
|
type: "three-circles",
|
|
2448
2448
|
color: "blue"
|
|
2449
2449
|
}),
|
|
2450
2450
|
xo,
|
|
2451
|
-
|
|
2451
|
+
k(te, {
|
|
2452
2452
|
onClick: W,
|
|
2453
2453
|
class: "box-cancel",
|
|
2454
2454
|
type: "secondary",
|
|
2455
2455
|
size: "small"
|
|
2456
2456
|
}, {
|
|
2457
2457
|
default: h(() => [
|
|
2458
|
-
|
|
2458
|
+
F(" Cancel ")
|
|
2459
2459
|
]),
|
|
2460
2460
|
_: 1
|
|
2461
2461
|
})
|
|
2462
|
-
], 64)) : (o(), u(
|
|
2463
|
-
|
|
2464
|
-
|
|
2462
|
+
], 64)) : (o(), u(H, { key: 1 }, [
|
|
2463
|
+
_("div", Bo, [
|
|
2464
|
+
k(C, { name: "upload-bulk" })
|
|
2465
2465
|
]),
|
|
2466
2466
|
e?.title ? (o(), u("span", So, [
|
|
2467
|
-
|
|
2468
|
-
f(
|
|
2467
|
+
F($(e?.title) + " ", 1),
|
|
2468
|
+
f(S.$slots, "box-title")
|
|
2469
2469
|
])) : v("", !0),
|
|
2470
2470
|
e?.description ? (o(), u("span", Io, [
|
|
2471
|
-
|
|
2472
|
-
f(
|
|
2471
|
+
F($(e?.description) + " ", 1),
|
|
2472
|
+
f(S.$slots, "box-description")
|
|
2473
2473
|
])) : v("", !0)
|
|
2474
2474
|
], 64))
|
|
2475
2475
|
]))
|
|
2476
2476
|
], 42, wo), [
|
|
2477
|
-
[Q, a(
|
|
2477
|
+
[Q, a(I)]
|
|
2478
2478
|
]),
|
|
2479
2479
|
a(z) ? (o(), u("div", {
|
|
2480
2480
|
key: 0,
|
|
2481
|
-
class:
|
|
2481
|
+
class: E(a(w))
|
|
2482
2482
|
}, [
|
|
2483
|
-
(o(!0), u(
|
|
2484
|
-
onRemove: (ce) =>
|
|
2483
|
+
(o(!0), u(H, null, U(a(m), (K, le) => (o(), g($o, {
|
|
2484
|
+
onRemove: (ce) => G(le),
|
|
2485
2485
|
onCancel: (ce) => j(le),
|
|
2486
2486
|
file: K,
|
|
2487
2487
|
key: le,
|
|
@@ -2493,7 +2493,7 @@ const me = (l) => {
|
|
|
2493
2493
|
});
|
|
2494
2494
|
const To = {
|
|
2495
2495
|
name: "MaSideMenuButton"
|
|
2496
|
-
}, Wl = /* @__PURE__ */
|
|
2496
|
+
}, Wl = /* @__PURE__ */ x({
|
|
2497
2497
|
...To,
|
|
2498
2498
|
props: {
|
|
2499
2499
|
icon: { default: "app" },
|
|
@@ -2504,11 +2504,11 @@ const To = {
|
|
|
2504
2504
|
active: { type: Boolean, default: !1 }
|
|
2505
2505
|
},
|
|
2506
2506
|
setup(l) {
|
|
2507
|
-
const t = l, e =
|
|
2507
|
+
const t = l, e = D(!1), s = c(() => t?.href ? "a" : "button"), n = c(() => t?.activeIcon || `${t.icon.replace("-bulk", "-bold")}`), i = c(() => [
|
|
2508
2508
|
"ma-side-menu-button",
|
|
2509
2509
|
{ active: t?.active }
|
|
2510
2510
|
]), r = c(() => e.value || t.active), d = () => e.value = !0, p = () => e.value = !1;
|
|
2511
|
-
return (m,
|
|
2511
|
+
return (m, B) => (o(), g(ne(a(s)), T({
|
|
2512
2512
|
onMousedown: d,
|
|
2513
2513
|
onMouseup: p,
|
|
2514
2514
|
role: "button",
|
|
@@ -2517,22 +2517,22 @@ const To = {
|
|
|
2517
2517
|
href: t?.href
|
|
2518
2518
|
}, m.$attrs), {
|
|
2519
2519
|
default: h(() => [
|
|
2520
|
-
t?.icon ? (o(), u(
|
|
2521
|
-
X(
|
|
2520
|
+
t?.icon ? (o(), u(H, { key: 0 }, [
|
|
2521
|
+
X(k(C, {
|
|
2522
2522
|
size: "md",
|
|
2523
2523
|
name: a(n)
|
|
2524
2524
|
}, null, 8, ["name"]), [
|
|
2525
2525
|
[Q, a(r)]
|
|
2526
2526
|
]),
|
|
2527
|
-
X(
|
|
2527
|
+
X(k(C, {
|
|
2528
2528
|
size: "md",
|
|
2529
2529
|
name: t.icon
|
|
2530
2530
|
}, null, 8, ["name"]), [
|
|
2531
2531
|
[Q, !a(r)]
|
|
2532
2532
|
])
|
|
2533
2533
|
], 64)) : v("", !0),
|
|
2534
|
-
|
|
2535
|
-
|
|
2534
|
+
_("span", null, [
|
|
2535
|
+
F($(t?.text) + " ", 1),
|
|
2536
2536
|
f(m.$slots, "default")
|
|
2537
2537
|
])
|
|
2538
2538
|
]),
|
|
@@ -2545,7 +2545,7 @@ const Ao = {
|
|
|
2545
2545
|
class: "ma-side-menu-item-icon"
|
|
2546
2546
|
}, No = {
|
|
2547
2547
|
name: "MaSideMenuItem"
|
|
2548
|
-
}, Jl = /* @__PURE__ */
|
|
2548
|
+
}, Jl = /* @__PURE__ */ x({
|
|
2549
2549
|
...No,
|
|
2550
2550
|
props: {
|
|
2551
2551
|
href: null,
|
|
@@ -2578,22 +2578,22 @@ const Ao = {
|
|
|
2578
2578
|
href: t?.href
|
|
2579
2579
|
}, i.$attrs), {
|
|
2580
2580
|
default: h(() => [
|
|
2581
|
-
|
|
2581
|
+
_("span", null, [
|
|
2582
2582
|
t?.icon ? (o(), u("div", Ao, [
|
|
2583
|
-
X(
|
|
2583
|
+
X(k(C, {
|
|
2584
2584
|
size: "xs",
|
|
2585
2585
|
name: a(n)
|
|
2586
2586
|
}, null, 8, ["name"]), [
|
|
2587
2587
|
[Q, t.active]
|
|
2588
2588
|
]),
|
|
2589
|
-
X(
|
|
2589
|
+
X(k(C, {
|
|
2590
2590
|
size: "xs",
|
|
2591
2591
|
name: t.icon
|
|
2592
2592
|
}, null, 8, ["name"]), [
|
|
2593
2593
|
[Q, !t.active]
|
|
2594
2594
|
])
|
|
2595
2595
|
])) : v("", !0),
|
|
2596
|
-
|
|
2596
|
+
F(" " + $(t?.text) + " ", 1),
|
|
2597
2597
|
f(i.$slots, "default")
|
|
2598
2598
|
]),
|
|
2599
2599
|
t.badgeText ? (o(), g(ye, {
|
|
@@ -2602,7 +2602,7 @@ const Ao = {
|
|
|
2602
2602
|
variant: t.badgeColor
|
|
2603
2603
|
}, {
|
|
2604
2604
|
default: h(() => [
|
|
2605
|
-
|
|
2605
|
+
F($(l.badgeText), 1)
|
|
2606
2606
|
]),
|
|
2607
2607
|
_: 1
|
|
2608
2608
|
}, 8, ["variant"])) : v("", !0)
|
|
@@ -2623,7 +2623,7 @@ const Yl = [
|
|
|
2623
2623
|
], Po = {
|
|
2624
2624
|
name: "MaSideMenuIconButton",
|
|
2625
2625
|
inheritAttrs: !1
|
|
2626
|
-
}, Zl = /* @__PURE__ */
|
|
2626
|
+
}, Zl = /* @__PURE__ */ x({
|
|
2627
2627
|
...Po,
|
|
2628
2628
|
props: {
|
|
2629
2629
|
icon: null,
|
|
@@ -2634,11 +2634,11 @@ const Yl = [
|
|
|
2634
2634
|
active: { type: Boolean, default: !1 }
|
|
2635
2635
|
},
|
|
2636
2636
|
setup(l) {
|
|
2637
|
-
const t = l, e =
|
|
2637
|
+
const t = l, e = D(!1), s = c(() => t?.href ? "a" : "button"), n = c(() => e.value || t.active), i = c(() => t?.activeIcon || `${t.icon}-bold`), r = c(() => [
|
|
2638
2638
|
"ma-side-menu-icon-button",
|
|
2639
2639
|
{ active: t?.active }
|
|
2640
2640
|
]), d = () => e.value = !0, p = () => e.value = !1;
|
|
2641
|
-
return (m,
|
|
2641
|
+
return (m, B) => t?.tooltipText ? (o(), g(pe, {
|
|
2642
2642
|
key: 0,
|
|
2643
2643
|
overlayClassName: "ma-icon-button-tooltip",
|
|
2644
2644
|
title: t?.tooltipText,
|
|
@@ -2655,13 +2655,13 @@ const Yl = [
|
|
|
2655
2655
|
role: "button"
|
|
2656
2656
|
}, m.$attrs), {
|
|
2657
2657
|
default: h(() => [
|
|
2658
|
-
X(
|
|
2658
|
+
X(k(C, {
|
|
2659
2659
|
size: "xs",
|
|
2660
2660
|
name: a(i)
|
|
2661
2661
|
}, null, 8, ["name"]), [
|
|
2662
2662
|
[Q, a(n)]
|
|
2663
2663
|
]),
|
|
2664
|
-
X(
|
|
2664
|
+
X(k(C, {
|
|
2665
2665
|
size: "xs",
|
|
2666
2666
|
name: t.icon
|
|
2667
2667
|
}, null, 8, ["name"]), [
|
|
@@ -2683,13 +2683,13 @@ const Yl = [
|
|
|
2683
2683
|
role: "button"
|
|
2684
2684
|
}, m.$attrs), {
|
|
2685
2685
|
default: h(() => [
|
|
2686
|
-
X(
|
|
2686
|
+
X(k(C, {
|
|
2687
2687
|
size: "xs",
|
|
2688
2688
|
name: a(i)
|
|
2689
2689
|
}, null, 8, ["name"]), [
|
|
2690
2690
|
[Q, a(n)]
|
|
2691
2691
|
]),
|
|
2692
|
-
X(
|
|
2692
|
+
X(k(C, {
|
|
2693
2693
|
size: "xs",
|
|
2694
2694
|
name: t.icon
|
|
2695
2695
|
}, null, 8, ["name"]), [
|
|
@@ -2704,7 +2704,7 @@ const Yl = [
|
|
|
2704
2704
|
const Lo = {
|
|
2705
2705
|
name: "MaSideMenuRoundIconButton",
|
|
2706
2706
|
inheritAttrs: !1
|
|
2707
|
-
}, Xl = /* @__PURE__ */
|
|
2707
|
+
}, Xl = /* @__PURE__ */ x({
|
|
2708
2708
|
...Lo,
|
|
2709
2709
|
props: {
|
|
2710
2710
|
icon: null
|
|
@@ -2715,7 +2715,7 @@ const Lo = {
|
|
|
2715
2715
|
class: "ma-side-menu-round-icon-button",
|
|
2716
2716
|
role: "button"
|
|
2717
2717
|
}, e.$attrs), [
|
|
2718
|
-
|
|
2718
|
+
k(C, {
|
|
2719
2719
|
size: "xs",
|
|
2720
2720
|
name: t.icon
|
|
2721
2721
|
}, null, 8, ["name"]),
|
|
@@ -2726,7 +2726,7 @@ const Lo = {
|
|
|
2726
2726
|
const Do = ["src", "alt"], Eo = {
|
|
2727
2727
|
name: "MaSideMenuAppButton",
|
|
2728
2728
|
inheritAttrs: !1
|
|
2729
|
-
}, Ql = /* @__PURE__ */
|
|
2729
|
+
}, Ql = /* @__PURE__ */ x({
|
|
2730
2730
|
...Eo,
|
|
2731
2731
|
props: {
|
|
2732
2732
|
appImage: null,
|
|
@@ -2745,11 +2745,11 @@ const Do = ["src", "alt"], Eo = {
|
|
|
2745
2745
|
placement: "topLeft"
|
|
2746
2746
|
}, {
|
|
2747
2747
|
default: h(() => [
|
|
2748
|
-
|
|
2748
|
+
_("button", T({
|
|
2749
2749
|
class: a(e),
|
|
2750
2750
|
role: "button"
|
|
2751
2751
|
}, s.$attrs), [
|
|
2752
|
-
|
|
2752
|
+
_("img", {
|
|
2753
2753
|
src: l.appImage,
|
|
2754
2754
|
alt: l.appName
|
|
2755
2755
|
}, null, 8, Do),
|
|
@@ -2762,7 +2762,7 @@ const Do = ["src", "alt"], Eo = {
|
|
|
2762
2762
|
});
|
|
2763
2763
|
const Fo = {
|
|
2764
2764
|
name: "MaSideMenuAddNewAppButton"
|
|
2765
|
-
}, ei = /* @__PURE__ */
|
|
2765
|
+
}, ei = /* @__PURE__ */ x({
|
|
2766
2766
|
...Fo,
|
|
2767
2767
|
props: {
|
|
2768
2768
|
href: null,
|
|
@@ -2779,7 +2779,7 @@ const Fo = {
|
|
|
2779
2779
|
class: "ma-add-new-app-button"
|
|
2780
2780
|
}), {
|
|
2781
2781
|
default: h(() => [
|
|
2782
|
-
|
|
2782
|
+
F($(t?.text) + " ", 1),
|
|
2783
2783
|
f(e.$slots, "default")
|
|
2784
2784
|
]),
|
|
2785
2785
|
_: 3
|
|
@@ -2789,7 +2789,7 @@ const Fo = {
|
|
|
2789
2789
|
const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke-width"], Ro = ["d", "stroke-dasharray", "stroke-dashoffset", "stroke-width"], Uo = { key: 1 }, Ko = {
|
|
2790
2790
|
key: 0,
|
|
2791
2791
|
class: "label"
|
|
2792
|
-
}, jo = { class: "percent" }, qo = /* @__PURE__ */
|
|
2792
|
+
}, jo = { class: "percent" }, qo = /* @__PURE__ */ x({
|
|
2793
2793
|
__name: "circle",
|
|
2794
2794
|
props: {
|
|
2795
2795
|
percent: null,
|
|
@@ -2842,7 +2842,7 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2842
2842
|
fill: "none",
|
|
2843
2843
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2844
2844
|
}, [
|
|
2845
|
-
|
|
2845
|
+
_("path", {
|
|
2846
2846
|
d: a(s).path,
|
|
2847
2847
|
"stroke-linecap": "round",
|
|
2848
2848
|
"stroke-linejoin": "round",
|
|
@@ -2865,14 +2865,14 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2865
2865
|
name: t.icon
|
|
2866
2866
|
}, null, 8, ["name"])) : (o(), u("label", Uo, [
|
|
2867
2867
|
t?.label || i.$slots.customLabel ? (o(), u("span", Ko, [
|
|
2868
|
-
|
|
2868
|
+
F($(t.label) + " ", 1),
|
|
2869
2869
|
f(i.$slots, "customLabel")
|
|
2870
2870
|
])) : v("", !0),
|
|
2871
|
-
|
|
2871
|
+
_("span", jo, $(t?.percent) + "% ", 1)
|
|
2872
2872
|
]))
|
|
2873
2873
|
]));
|
|
2874
2874
|
}
|
|
2875
|
-
}), Ho = { class: "ma-progress-line" }, Wo = { class: "line-wrapper" }, Jo = { key: 1 }, Yo = { key: 2 }, Zo = { class: "line-wrapper" }, Xo = { key: 1 }, Qo = { key: 2 }, ea = /* @__PURE__ */
|
|
2875
|
+
}), Ho = { class: "ma-progress-line" }, Wo = { class: "line-wrapper" }, Jo = { key: 1 }, Yo = { key: 2 }, Zo = { class: "line-wrapper" }, Xo = { key: 1 }, Qo = { key: 2 }, ea = /* @__PURE__ */ x({
|
|
2876
2876
|
__name: "line",
|
|
2877
2877
|
props: {
|
|
2878
2878
|
percent: null,
|
|
@@ -2896,8 +2896,8 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2896
2896
|
return (n, i) => (o(), u("div", Ho, [
|
|
2897
2897
|
t?.showTooltip ? (o(), g(pe, Te(T({ key: 0 }, a(s))), {
|
|
2898
2898
|
default: h(() => [
|
|
2899
|
-
|
|
2900
|
-
|
|
2899
|
+
_("div", Wo, [
|
|
2900
|
+
_("div", {
|
|
2901
2901
|
class: "line",
|
|
2902
2902
|
style: J(a(e))
|
|
2903
2903
|
}, null, 4)
|
|
@@ -2905,15 +2905,15 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2905
2905
|
t?.icon ? (o(), g(C, {
|
|
2906
2906
|
key: 0,
|
|
2907
2907
|
name: t.icon
|
|
2908
|
-
}, null, 8, ["name"])) : l.showPercent ? (o(), u("label", Jo,
|
|
2908
|
+
}, null, 8, ["name"])) : l.showPercent ? (o(), u("label", Jo, $(t.percent) + "%", 1)) : v("", !0),
|
|
2909
2909
|
n.$slots.customLabel ? (o(), u("label", Yo, [
|
|
2910
2910
|
f(n.$slots, "customLabel")
|
|
2911
2911
|
])) : v("", !0)
|
|
2912
2912
|
]),
|
|
2913
2913
|
_: 3
|
|
2914
|
-
}, 16)) : (o(), u(
|
|
2915
|
-
|
|
2916
|
-
|
|
2914
|
+
}, 16)) : (o(), u(H, { key: 1 }, [
|
|
2915
|
+
_("div", Zo, [
|
|
2916
|
+
_("div", {
|
|
2917
2917
|
class: "line",
|
|
2918
2918
|
style: J(a(e))
|
|
2919
2919
|
}, null, 4)
|
|
@@ -2921,7 +2921,7 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2921
2921
|
t?.icon ? (o(), g(C, {
|
|
2922
2922
|
key: 0,
|
|
2923
2923
|
name: t.icon
|
|
2924
|
-
}, null, 8, ["name"])) : l.showPercent ? (o(), u("label", Xo,
|
|
2924
|
+
}, null, 8, ["name"])) : l.showPercent ? (o(), u("label", Xo, $(t.percent) + "%", 1)) : v("", !0),
|
|
2925
2925
|
n.$slots.customLabel ? (o(), u("label", Qo, [
|
|
2926
2926
|
f(n.$slots, "customLabel")
|
|
2927
2927
|
])) : v("", !0)
|
|
@@ -2931,7 +2931,7 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2931
2931
|
}), ta = { class: "ma-progress-circle ma-progress-half-circle" }, sa = ["viewBox"], oa = ["d", "stroke-width"], aa = ["d", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], na = { key: 1 }, la = {
|
|
2932
2932
|
key: 0,
|
|
2933
2933
|
class: "label"
|
|
2934
|
-
}, ia = { class: "percent" }, ra = /* @__PURE__ */
|
|
2934
|
+
}, ia = { class: "percent" }, ra = /* @__PURE__ */ x({
|
|
2935
2935
|
__name: "halfCircle",
|
|
2936
2936
|
props: {
|
|
2937
2937
|
percent: null,
|
|
@@ -2984,7 +2984,7 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
2984
2984
|
fill: "none",
|
|
2985
2985
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2986
2986
|
}, [
|
|
2987
|
-
|
|
2987
|
+
_("path", {
|
|
2988
2988
|
d: a(s).path,
|
|
2989
2989
|
"stroke-width": a(s).strokeWidth,
|
|
2990
2990
|
"stroke-linecap": "round",
|
|
@@ -3007,14 +3007,14 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
3007
3007
|
name: t.icon
|
|
3008
3008
|
}, null, 8, ["name"])) : (o(), u("label", na, [
|
|
3009
3009
|
t?.label || i.$slots.customLabel ? (o(), u("span", la, [
|
|
3010
|
-
|
|
3010
|
+
F($(t?.label) + " ", 1),
|
|
3011
3011
|
f(i.$slots, "customLabel")
|
|
3012
3012
|
])) : v("", !0),
|
|
3013
|
-
|
|
3013
|
+
_("span", ia, $(t?.percent) + "% ", 1)
|
|
3014
3014
|
]))
|
|
3015
3015
|
]));
|
|
3016
3016
|
}
|
|
3017
|
-
}), ca = { class: "ma-progress-line-step" }, ua = { class: "step-line-wrapper" }, da = { key: 1 }, pa = { key: 2 }, ma = /* @__PURE__ */
|
|
3017
|
+
}), ca = { class: "ma-progress-line-step" }, ua = { class: "step-line-wrapper" }, da = { key: 1 }, pa = { key: 2 }, ma = /* @__PURE__ */ x({
|
|
3018
3018
|
__name: "stepLine",
|
|
3019
3019
|
props: {
|
|
3020
3020
|
percent: null,
|
|
@@ -3034,12 +3034,12 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
3034
3034
|
};
|
|
3035
3035
|
};
|
|
3036
3036
|
return (s, n) => (o(), u("div", ca, [
|
|
3037
|
-
|
|
3038
|
-
(o(), u(
|
|
3037
|
+
_("div", ua, [
|
|
3038
|
+
(o(), u(H, null, U(10, (i) => _("div", {
|
|
3039
3039
|
class: "single-line",
|
|
3040
3040
|
key: i
|
|
3041
3041
|
}, [
|
|
3042
|
-
|
|
3042
|
+
_("div", {
|
|
3043
3043
|
class: "single-line-fill",
|
|
3044
3044
|
style: J(e(i))
|
|
3045
3045
|
}, null, 4)
|
|
@@ -3048,7 +3048,7 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
3048
3048
|
t?.icon ? (o(), g(C, {
|
|
3049
3049
|
key: 0,
|
|
3050
3050
|
name: t.icon
|
|
3051
|
-
}, null, 8, ["name"])) : t?.showPercent ? (o(), u("label", da,
|
|
3051
|
+
}, null, 8, ["name"])) : t?.showPercent ? (o(), u("label", da, $(t.percent) + "%", 1)) : v("", !0),
|
|
3052
3052
|
s.$slots.customLabel ? (o(), u("label", pa, [
|
|
3053
3053
|
f(s.$slots, "customLabel")
|
|
3054
3054
|
])) : v("", !0)
|
|
@@ -3056,7 +3056,7 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
3056
3056
|
}
|
|
3057
3057
|
}), va = {
|
|
3058
3058
|
name: "MaProgress"
|
|
3059
|
-
}, ti = /* @__PURE__ */
|
|
3059
|
+
}, ti = /* @__PURE__ */ x({
|
|
3060
3060
|
...va,
|
|
3061
3061
|
props: {
|
|
3062
3062
|
type: { default: "line" },
|
|
@@ -3102,10 +3102,10 @@ const Vo = { class: "ma-progress-circle" }, Go = ["viewBox"], Oo = ["d", "stroke
|
|
|
3102
3102
|
() => t.percent > 100 ? 100 : t.percent
|
|
3103
3103
|
);
|
|
3104
3104
|
return (r, d) => (o(), u("div", {
|
|
3105
|
-
class:
|
|
3105
|
+
class: E(a(e))
|
|
3106
3106
|
}, [
|
|
3107
3107
|
(o(), g(ne(a(s)), {
|
|
3108
|
-
class:
|
|
3108
|
+
class: E(a(n)),
|
|
3109
3109
|
percent: a(i),
|
|
3110
3110
|
icon: t?.icon,
|
|
3111
3111
|
label: t?.label,
|
|
@@ -3144,7 +3144,7 @@ const si = [
|
|
|
3144
3144
|
"right"
|
|
3145
3145
|
], fa = {
|
|
3146
3146
|
name: "MaPopover"
|
|
3147
|
-
}, Ve = /* @__PURE__ */
|
|
3147
|
+
}, Ve = /* @__PURE__ */ x({
|
|
3148
3148
|
...fa,
|
|
3149
3149
|
props: {
|
|
3150
3150
|
placement: { default: "bottomLeft" },
|
|
@@ -3197,7 +3197,7 @@ const ga = {
|
|
|
3197
3197
|
class: "ak-autocomplete__label"
|
|
3198
3198
|
}, _a = { class: "ak-autocomplete__options" }, ya = ["onMousedown", "onMouseover"], ha = { key: 1 }, ba = {
|
|
3199
3199
|
name: "MaAutocomplete"
|
|
3200
|
-
}, li = /* @__PURE__ */
|
|
3200
|
+
}, li = /* @__PURE__ */ x({
|
|
3201
3201
|
...ba,
|
|
3202
3202
|
props: {
|
|
3203
3203
|
value: null,
|
|
@@ -3213,99 +3213,99 @@ const ga = {
|
|
|
3213
3213
|
},
|
|
3214
3214
|
emits: ["update:value", "search"],
|
|
3215
3215
|
setup(l, { emit: t }) {
|
|
3216
|
-
const e = l, s = ae(), n =
|
|
3216
|
+
const e = l, s = ae(), n = D(!1), i = D(null), r = D(null), d = D(-1), p = c({
|
|
3217
3217
|
get() {
|
|
3218
3218
|
return e?.value;
|
|
3219
3219
|
},
|
|
3220
|
-
set(
|
|
3221
|
-
t("update:value",
|
|
3220
|
+
set(y) {
|
|
3221
|
+
t("update:value", y), d.value = -1;
|
|
3222
3222
|
}
|
|
3223
|
-
}), m = c(() => e?.avatarUrl ? oe.userInfo : oe.text),
|
|
3223
|
+
}), m = c(() => e?.avatarUrl ? oe.userInfo : oe.text), B = c(() => !!s.default), I = c(
|
|
3224
3224
|
() => e.options.filter(
|
|
3225
|
-
(
|
|
3225
|
+
(y) => e.filterFn(p.value || "", y)
|
|
3226
3226
|
)
|
|
3227
|
-
), z = (
|
|
3228
|
-
const
|
|
3229
|
-
p.value =
|
|
3227
|
+
), z = (y) => {
|
|
3228
|
+
const O = y?.value || y?.label || y;
|
|
3229
|
+
p.value = O, B.value && r.value && (r.value.value = O), n.value = !1;
|
|
3230
3230
|
}, N = async () => {
|
|
3231
|
-
const
|
|
3232
|
-
t("search",
|
|
3233
|
-
},
|
|
3231
|
+
const y = `${r.value?.value}`;
|
|
3232
|
+
t("search", y), B.value && t("update:value", y), n.value || (n.value = !0);
|
|
3233
|
+
}, w = (y) => {
|
|
3234
3234
|
n.value = !0;
|
|
3235
|
-
},
|
|
3236
|
-
n.value && i.value &&
|
|
3237
|
-
},
|
|
3238
|
-
|
|
3239
|
-
},
|
|
3240
|
-
d.value =
|
|
3241
|
-
},
|
|
3242
|
-
"active-option":
|
|
3243
|
-
"current-option": d.value ===
|
|
3244
|
-
}),
|
|
3235
|
+
}, b = (y) => {
|
|
3236
|
+
n.value && i.value && y.target instanceof Node && !i.value.contains(y.target) && (n.value = !1);
|
|
3237
|
+
}, M = (y) => {
|
|
3238
|
+
y.key === "ArrowUp" && d.value > -1 ? d.value-- : y.key === "ArrowDown" && d.value < I.value.length ? d.value++ : y.key === "Enter" && I.value[d.value] && z(I.value[d.value]);
|
|
3239
|
+
}, P = (y) => {
|
|
3240
|
+
d.value = y;
|
|
3241
|
+
}, L = (y, O) => ({
|
|
3242
|
+
"active-option": y?.value === p.value,
|
|
3243
|
+
"current-option": d.value === O
|
|
3244
|
+
}), q = c(() => [
|
|
3245
3245
|
`ak-autocomplete ak-autocomplete--${e.size}`
|
|
3246
3246
|
]);
|
|
3247
3247
|
return re(
|
|
3248
3248
|
() => e.open,
|
|
3249
|
-
async (
|
|
3249
|
+
async (y) => {
|
|
3250
3250
|
setTimeout(() => {
|
|
3251
|
-
n.value =
|
|
3251
|
+
n.value = y;
|
|
3252
3252
|
}, 0);
|
|
3253
3253
|
}
|
|
3254
3254
|
), de(() => {
|
|
3255
|
-
i.value && (i.value.addEventListener("input", N), i.value.addEventListener("keydown",
|
|
3255
|
+
i.value && (i.value.addEventListener("input", N), i.value.addEventListener("keydown", M), document.addEventListener("click", b), r.value = i.value.querySelector('input[type="text"]'), r.value && r.value.addEventListener("focus", w));
|
|
3256
3256
|
}), Ae(() => {
|
|
3257
|
-
i.value && (i.value.removeEventListener("input", N), document.removeEventListener("click",
|
|
3258
|
-
}), (
|
|
3257
|
+
i.value && (i.value.removeEventListener("input", N), document.removeEventListener("click", b), i.value.removeEventListener("keydown", M), r.value && r.value.removeEventListener("focus", w));
|
|
3258
|
+
}), (y, O) => (o(), u("div", T({
|
|
3259
3259
|
class: "ak-autocomplete-wrapper",
|
|
3260
3260
|
ref_key: "autoComplete",
|
|
3261
3261
|
ref: i
|
|
3262
|
-
},
|
|
3263
|
-
|
|
3262
|
+
}, y.$attrs), [
|
|
3263
|
+
k(Ve, {
|
|
3264
3264
|
"overlay-class-name": "ak-autocomplete__dropdown",
|
|
3265
3265
|
trigger: [],
|
|
3266
3266
|
visible: n.value,
|
|
3267
|
-
"onUpdate:visible":
|
|
3267
|
+
"onUpdate:visible": O[1] || (O[1] = (R) => n.value = R)
|
|
3268
3268
|
}, {
|
|
3269
3269
|
overlay: h(() => [
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
(o(!0), u(
|
|
3273
|
-
class: L(
|
|
3274
|
-
onMousedown: Pe((ue) => z(
|
|
3275
|
-
onMouseover: (ue) =>
|
|
3270
|
+
_("div", _a, [
|
|
3271
|
+
_("ul", null, [
|
|
3272
|
+
(o(!0), u(H, null, U(a(I), (R, Z) => (o(), u("li", {
|
|
3273
|
+
class: E(L(R, Z)),
|
|
3274
|
+
onMousedown: Pe((ue) => z(R), ["prevent"]),
|
|
3275
|
+
onMouseover: (ue) => P(Z),
|
|
3276
3276
|
key: Z
|
|
3277
3277
|
}, [
|
|
3278
|
-
|
|
3278
|
+
y.$slots.option ? f(y.$slots, "option", {
|
|
3279
3279
|
key: 0,
|
|
3280
|
-
label:
|
|
3281
|
-
value:
|
|
3282
|
-
}) : (o(), u("span", ha,
|
|
3283
|
-
|
|
3280
|
+
label: R?.label,
|
|
3281
|
+
value: R.value
|
|
3282
|
+
}) : (o(), u("span", ha, $(R?.label || R?.value), 1)),
|
|
3283
|
+
R?.value === a(p) ? (o(), g(C, {
|
|
3284
3284
|
key: 2,
|
|
3285
3285
|
name: "tick",
|
|
3286
3286
|
size: "sm"
|
|
3287
3287
|
})) : v("", !0)
|
|
3288
3288
|
], 42, ya))), 128))
|
|
3289
3289
|
]),
|
|
3290
|
-
f(
|
|
3290
|
+
f(y.$slots, "overlay")
|
|
3291
3291
|
])
|
|
3292
3292
|
]),
|
|
3293
3293
|
default: h(() => [
|
|
3294
|
-
|
|
3295
|
-
class:
|
|
3294
|
+
_("div", {
|
|
3295
|
+
class: E(a(q))
|
|
3296
3296
|
}, [
|
|
3297
|
-
e.label ? (o(), u("label", ga,
|
|
3298
|
-
|
|
3297
|
+
e.label ? (o(), u("label", ga, $(e.label), 1)) : v("", !0),
|
|
3298
|
+
y.$slots.default ? f(y.$slots, "default", { key: 1 }) : (o(), g(he, {
|
|
3299
3299
|
key: 2,
|
|
3300
3300
|
autofocus: e.autofocus,
|
|
3301
|
-
class:
|
|
3301
|
+
class: E({ "active-input": a(p)?.length }),
|
|
3302
3302
|
size: e.size,
|
|
3303
3303
|
placeholder: e?.placeholder,
|
|
3304
3304
|
prefixIcon: e?.prefixIcon,
|
|
3305
3305
|
avatarUrl: e?.avatarUrl,
|
|
3306
3306
|
type: a(m),
|
|
3307
3307
|
value: a(p),
|
|
3308
|
-
"onUpdate:value":
|
|
3308
|
+
"onUpdate:value": O[0] || (O[0] = (R) => ee(p) ? p.value = R : null)
|
|
3309
3309
|
}, null, 8, ["autofocus", "class", "size", "placeholder", "prefixIcon", "avatarUrl", "type", "value"]))
|
|
3310
3310
|
], 2)
|
|
3311
3311
|
]),
|
|
@@ -3316,7 +3316,7 @@ const ga = {
|
|
|
3316
3316
|
});
|
|
3317
3317
|
const ka = {
|
|
3318
3318
|
name: "MaTabs"
|
|
3319
|
-
}, $a = /* @__PURE__ */
|
|
3319
|
+
}, $a = /* @__PURE__ */ x({
|
|
3320
3320
|
...ka,
|
|
3321
3321
|
props: {
|
|
3322
3322
|
activeKey: null,
|
|
@@ -3346,14 +3346,14 @@ const ka = {
|
|
|
3346
3346
|
"onUpdate:activeKey": i[0] || (i[0] = (r) => ee(s) ? s.value = r : null)
|
|
3347
3347
|
}, n.$attrs), Y({
|
|
3348
3348
|
moreIcon: h(() => [
|
|
3349
|
-
|
|
3349
|
+
k(C, {
|
|
3350
3350
|
name: "ellipsis-horizontal",
|
|
3351
3351
|
size: "xs"
|
|
3352
3352
|
})
|
|
3353
3353
|
]),
|
|
3354
3354
|
_: 2
|
|
3355
3355
|
}, [
|
|
3356
|
-
|
|
3356
|
+
U(n.$slots, (r, d) => ({
|
|
3357
3357
|
name: d,
|
|
3358
3358
|
fn: h(() => [
|
|
3359
3359
|
f(n.$slots, d)
|
|
@@ -3373,11 +3373,11 @@ const ii = [
|
|
|
3373
3373
|
], ci = [
|
|
3374
3374
|
"left",
|
|
3375
3375
|
"right"
|
|
3376
|
-
], wa = /* @__PURE__ */
|
|
3376
|
+
], wa = /* @__PURE__ */ x({
|
|
3377
3377
|
__name: "tabPane",
|
|
3378
3378
|
setup(l) {
|
|
3379
3379
|
return (t, e) => (o(), g(a(vt), T({ tab: "test" }, t.$attrs), Y({ _: 2 }, [
|
|
3380
|
-
|
|
3380
|
+
U(t.$slots, (s, n) => ({
|
|
3381
3381
|
name: n,
|
|
3382
3382
|
fn: h(() => [
|
|
3383
3383
|
f(t.$slots, n)
|
|
@@ -3387,7 +3387,7 @@ const ii = [
|
|
|
3387
3387
|
}
|
|
3388
3388
|
}), Ca = { class: "country-option" }, Ma = { class: "country-option__name" }, xa = { class: "country-option__code" }, Ba = {
|
|
3389
3389
|
name: "MaCountrySelect"
|
|
3390
|
-
}, ui = /* @__PURE__ */
|
|
3390
|
+
}, ui = /* @__PURE__ */ x({
|
|
3391
3391
|
...Ba,
|
|
3392
3392
|
props: {
|
|
3393
3393
|
value: null,
|
|
@@ -3429,20 +3429,20 @@ const ii = [
|
|
|
3429
3429
|
"onUpdate:value": d[0] || (d[0] = (p) => ee(s) ? s.value = p : null)
|
|
3430
3430
|
}), {
|
|
3431
3431
|
default: h(() => [
|
|
3432
|
-
(o(!0), u(
|
|
3432
|
+
(o(!0), u(H, null, U(e.countries, (p) => (o(), g(ms, {
|
|
3433
3433
|
key: p.code,
|
|
3434
3434
|
name: p.name,
|
|
3435
3435
|
value: p.code
|
|
3436
3436
|
}, {
|
|
3437
3437
|
default: h(() => [
|
|
3438
|
-
|
|
3439
|
-
|
|
3438
|
+
_("div", Ca, [
|
|
3439
|
+
k(C, {
|
|
3440
3440
|
name: n(p.code),
|
|
3441
3441
|
size: "sm",
|
|
3442
3442
|
round: ""
|
|
3443
3443
|
}, null, 8, ["name"]),
|
|
3444
|
-
|
|
3445
|
-
|
|
3444
|
+
_("span", Ma, $(p.name), 1),
|
|
3445
|
+
_("span", xa, $(p.code), 1)
|
|
3446
3446
|
])
|
|
3447
3447
|
]),
|
|
3448
3448
|
_: 2
|
|
@@ -3487,7 +3487,7 @@ const Sa = {
|
|
|
3487
3487
|
class: "footer-actions"
|
|
3488
3488
|
}, Oa = {
|
|
3489
3489
|
name: "MaCard"
|
|
3490
|
-
}, di = /* @__PURE__ */
|
|
3490
|
+
}, di = /* @__PURE__ */ x({
|
|
3491
3491
|
...Oa,
|
|
3492
3492
|
props: {
|
|
3493
3493
|
title: null,
|
|
@@ -3530,23 +3530,23 @@ const Sa = {
|
|
|
3530
3530
|
() => Boolean(
|
|
3531
3531
|
e?.contentIcon || s?.contentTitle || s?.contentDescription || s?.default
|
|
3532
3532
|
)
|
|
3533
|
-
),
|
|
3533
|
+
), B = c(
|
|
3534
3534
|
() => Boolean(
|
|
3535
3535
|
s?.footerTitle || s?.footerDescription || s?.footerActions || s?.footer
|
|
3536
3536
|
)
|
|
3537
|
-
),
|
|
3537
|
+
), I = c({
|
|
3538
3538
|
get() {
|
|
3539
3539
|
return e.collapse;
|
|
3540
3540
|
},
|
|
3541
|
-
set(
|
|
3542
|
-
t("update:collapse",
|
|
3541
|
+
set(b) {
|
|
3542
|
+
t("update:collapse", b);
|
|
3543
3543
|
}
|
|
3544
3544
|
}), z = c(() => e.collapse ? "chevron-up" : "chevron-down"), N = () => {
|
|
3545
3545
|
t("close");
|
|
3546
|
-
},
|
|
3547
|
-
|
|
3546
|
+
}, w = () => {
|
|
3547
|
+
I.value = !I.value;
|
|
3548
3548
|
};
|
|
3549
|
-
return (
|
|
3549
|
+
return (b, M) => (o(), u("div", T({ class: a(n) }, b.$attrs), [
|
|
3550
3550
|
a(p) ? (o(), u("div", Sa, [
|
|
3551
3551
|
e?.headerAvatar ? (o(), u("img", {
|
|
3552
3552
|
key: 0,
|
|
@@ -3558,19 +3558,19 @@ const Sa = {
|
|
|
3558
3558
|
name: e.headerIcon,
|
|
3559
3559
|
class: "card-icon"
|
|
3560
3560
|
}, null, 8, ["name"])) : v("", !0),
|
|
3561
|
-
|
|
3562
|
-
e?.title ||
|
|
3563
|
-
|
|
3564
|
-
f(
|
|
3561
|
+
_("div", za, [
|
|
3562
|
+
e?.title || b.$slots?.title ? (o(), u("h1", Ta, [
|
|
3563
|
+
F($(e.title), 1),
|
|
3564
|
+
f(b.$slots, "title")
|
|
3565
3565
|
])) : v("", !0),
|
|
3566
|
-
e?.description ||
|
|
3567
|
-
|
|
3568
|
-
f(
|
|
3566
|
+
e?.description || b.$slots.description ? (o(), u("p", Aa, [
|
|
3567
|
+
F($(e.description), 1),
|
|
3568
|
+
f(b.$slots, "description")
|
|
3569
3569
|
])) : v("", !0),
|
|
3570
|
-
f(
|
|
3570
|
+
f(b.$slots, "headerContent")
|
|
3571
3571
|
]),
|
|
3572
|
-
|
|
3573
|
-
f(
|
|
3572
|
+
b.$slots?.headerActions || e?.closable || e?.collapsable ? (o(), u("div", Na, [
|
|
3573
|
+
f(b.$slots, "headerActions"),
|
|
3574
3574
|
e?.collapsable ? (o(), g(te, {
|
|
3575
3575
|
key: 0,
|
|
3576
3576
|
class: "collapse-button",
|
|
@@ -3578,7 +3578,7 @@ const Sa = {
|
|
|
3578
3578
|
shape: "round",
|
|
3579
3579
|
type: "primary",
|
|
3580
3580
|
variant: "plain",
|
|
3581
|
-
onClick:
|
|
3581
|
+
onClick: w,
|
|
3582
3582
|
icon: a(z)
|
|
3583
3583
|
}, null, 8, ["icon"])) : e?.closable ? (o(), g(te, {
|
|
3584
3584
|
key: 1,
|
|
@@ -3594,38 +3594,38 @@ const Sa = {
|
|
|
3594
3594
|
])) : v("", !0),
|
|
3595
3595
|
a(m) ? (o(), u("div", {
|
|
3596
3596
|
key: 1,
|
|
3597
|
-
class:
|
|
3597
|
+
class: E(a(r))
|
|
3598
3598
|
}, [
|
|
3599
3599
|
e?.contentIcon ? (o(), g(C, {
|
|
3600
3600
|
key: 0,
|
|
3601
3601
|
name: e.contentIcon,
|
|
3602
3602
|
class: "card-icon"
|
|
3603
3603
|
}, null, 8, ["name"])) : v("", !0),
|
|
3604
|
-
|
|
3605
|
-
f(
|
|
3604
|
+
b.$slots.contentTitle ? (o(), u("h1", Pa, [
|
|
3605
|
+
f(b.$slots, "contentTitle")
|
|
3606
3606
|
])) : v("", !0),
|
|
3607
|
-
|
|
3608
|
-
f(
|
|
3607
|
+
b.$slots.contentDescription ? (o(), u("p", La, [
|
|
3608
|
+
f(b.$slots, "contentDescription")
|
|
3609
3609
|
])) : v("", !0),
|
|
3610
|
-
|
|
3611
|
-
f(
|
|
3610
|
+
b.$slots.default ? (o(), u("div", Da, [
|
|
3611
|
+
f(b.$slots, "default")
|
|
3612
3612
|
])) : v("", !0)
|
|
3613
3613
|
], 2)) : v("", !0),
|
|
3614
|
-
a(
|
|
3614
|
+
a(B) ? (o(), u("div", {
|
|
3615
3615
|
key: 2,
|
|
3616
|
-
class:
|
|
3616
|
+
class: E(a(d))
|
|
3617
3617
|
}, [
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
f(
|
|
3618
|
+
b.$slots.footerTitle || b.$slots.footerDescription || b.$slots.footer ? (o(), u("div", Ea, [
|
|
3619
|
+
b.$slots.footerTitle ? (o(), u("h1", Fa, [
|
|
3620
|
+
f(b.$slots, "footerTitle")
|
|
3621
3621
|
])) : v("", !0),
|
|
3622
|
-
|
|
3623
|
-
f(
|
|
3622
|
+
b.$slots.footerDescription ? (o(), u("p", Va, [
|
|
3623
|
+
f(b.$slots, "footerDescription")
|
|
3624
3624
|
])) : v("", !0),
|
|
3625
|
-
f(
|
|
3625
|
+
f(b.$slots, "footer")
|
|
3626
3626
|
])) : v("", !0),
|
|
3627
|
-
|
|
3628
|
-
f(
|
|
3627
|
+
b.$slots.footerActions ? (o(), u("div", Ga, [
|
|
3628
|
+
f(b.$slots, "footerActions")
|
|
3629
3629
|
])) : v("", !0)
|
|
3630
3630
|
], 2)) : v("", !0)
|
|
3631
3631
|
], 16));
|
|
@@ -3645,7 +3645,7 @@ const pi = [
|
|
|
3645
3645
|
"purple"
|
|
3646
3646
|
], Ra = { key: 0 }, Ua = { key: 0 }, Ka = {
|
|
3647
3647
|
name: "MaInputNumber"
|
|
3648
|
-
}, fi = /* @__PURE__ */
|
|
3648
|
+
}, fi = /* @__PURE__ */ x({
|
|
3649
3649
|
...Ka,
|
|
3650
3650
|
props: {
|
|
3651
3651
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -3699,10 +3699,10 @@ const pi = [
|
|
|
3699
3699
|
t("pressEnter", p);
|
|
3700
3700
|
};
|
|
3701
3701
|
return (p, m) => (o(), u("div", null, [
|
|
3702
|
-
|
|
3703
|
-
class:
|
|
3702
|
+
k(a(ft), {
|
|
3703
|
+
class: E(a(i)),
|
|
3704
3704
|
value: a(n),
|
|
3705
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
3705
|
+
"onUpdate:value": m[0] || (m[0] = (B) => ee(n) ? n.value = B : null),
|
|
3706
3706
|
disabled: l.disabled,
|
|
3707
3707
|
step: e?.stepCount,
|
|
3708
3708
|
autofocus: e?.autofocus,
|
|
@@ -3724,14 +3724,14 @@ const pi = [
|
|
|
3724
3724
|
e.addonBefore || p.$slots?.addonBefore ? {
|
|
3725
3725
|
name: "addonBefore",
|
|
3726
3726
|
fn: h(() => [
|
|
3727
|
-
e.addonBefore ? (o(), u("span", Ra,
|
|
3727
|
+
e.addonBefore ? (o(), u("span", Ra, $(e.addonBefore), 1)) : f(p.$slots, "addonBefore", { key: 1 })
|
|
3728
3728
|
]),
|
|
3729
3729
|
key: "0"
|
|
3730
3730
|
} : void 0,
|
|
3731
3731
|
e.addonAfter || p.$slots?.addonAfter ? {
|
|
3732
3732
|
name: "addonAfter",
|
|
3733
3733
|
fn: h(() => [
|
|
3734
|
-
e.addonAfter ? (o(), u("span", Ua,
|
|
3734
|
+
e.addonAfter ? (o(), u("span", Ua, $(e.addonAfter), 1)) : f(p.$slots, "addonAfter", { key: 1 })
|
|
3735
3735
|
]),
|
|
3736
3736
|
key: "1"
|
|
3737
3737
|
} : void 0
|
|
@@ -3753,7 +3753,7 @@ const ja = ["visible"], qa = { class: "ak-drawer-content-wrapper" }, Ha = { clas
|
|
|
3753
3753
|
class: "ak-drawer-footer"
|
|
3754
3754
|
}, en = {
|
|
3755
3755
|
name: "MaDrawer"
|
|
3756
|
-
}, gi = /* @__PURE__ */
|
|
3756
|
+
}, gi = /* @__PURE__ */ x({
|
|
3757
3757
|
...en,
|
|
3758
3758
|
props: {
|
|
3759
3759
|
placement: { default: "left" },
|
|
@@ -3794,31 +3794,31 @@ const ja = ["visible"], qa = { class: "ak-drawer-content-wrapper" }, Ha = { clas
|
|
|
3794
3794
|
class: a(n),
|
|
3795
3795
|
visible: a(s)
|
|
3796
3796
|
}), [
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3797
|
+
_("div", qa, [
|
|
3798
|
+
_("div", Ha, [
|
|
3799
|
+
_("div", Wa, [
|
|
3800
3800
|
d.$slots?.header ? (o(), u("div", Ja, [
|
|
3801
3801
|
f(d.$slots, "header", {}, () => [
|
|
3802
3802
|
e.title ? (o(), u("div", Ya, [
|
|
3803
|
-
|
|
3803
|
+
_("h1", null, $(e?.title), 1)
|
|
3804
3804
|
])) : v("", !0),
|
|
3805
3805
|
e.description ? (o(), u("div", Za, [
|
|
3806
|
-
|
|
3806
|
+
_("p", null, $(e?.description), 1)
|
|
3807
3807
|
])) : v("", !0)
|
|
3808
3808
|
])
|
|
3809
3809
|
])) : v("", !0)
|
|
3810
3810
|
]),
|
|
3811
|
-
|
|
3811
|
+
_("button", {
|
|
3812
3812
|
class: "ak-drawer-close-button",
|
|
3813
3813
|
onClick: i
|
|
3814
3814
|
}, [
|
|
3815
|
-
|
|
3815
|
+
k(C, {
|
|
3816
3816
|
name: "close",
|
|
3817
3817
|
size: "md"
|
|
3818
3818
|
})
|
|
3819
3819
|
])
|
|
3820
3820
|
]),
|
|
3821
|
-
|
|
3821
|
+
_("div", Xa, [
|
|
3822
3822
|
f(d.$slots, "content")
|
|
3823
3823
|
]),
|
|
3824
3824
|
d.$slots?.footer ? (o(), u("div", Qa, [
|
|
@@ -3856,7 +3856,7 @@ const ge = [
|
|
|
3856
3856
|
editable: !1,
|
|
3857
3857
|
public: !1,
|
|
3858
3858
|
new: !0
|
|
3859
|
-
}), Se = /* @__PURE__ */
|
|
3859
|
+
}), Se = /* @__PURE__ */ x({
|
|
3860
3860
|
__name: "button",
|
|
3861
3861
|
props: {
|
|
3862
3862
|
type: { default: "primary" },
|
|
@@ -3870,7 +3870,7 @@ const ge = [
|
|
|
3870
3870
|
variant: null
|
|
3871
3871
|
},
|
|
3872
3872
|
setup(l) {
|
|
3873
|
-
const t = l, e =
|
|
3873
|
+
const t = l, e = D(!1), s = c(() => [
|
|
3874
3874
|
"ma-icon-button",
|
|
3875
3875
|
`ma-icon-button--${t.type}`,
|
|
3876
3876
|
`ma-icon-button--${t.size}`,
|
|
@@ -3890,34 +3890,34 @@ const ge = [
|
|
|
3890
3890
|
}
|
|
3891
3891
|
return "sm";
|
|
3892
3892
|
}), p = () => e.value = !0, m = () => e.value = !1;
|
|
3893
|
-
return (
|
|
3893
|
+
return (B, I) => (o(), g(ne(a(n)), T({
|
|
3894
3894
|
onMousedown: p,
|
|
3895
3895
|
onMouseup: m,
|
|
3896
3896
|
class: a(s),
|
|
3897
3897
|
href: t?.href,
|
|
3898
3898
|
target: t?.target
|
|
3899
|
-
},
|
|
3899
|
+
}, B.$attrs), {
|
|
3900
3900
|
default: h(() => [
|
|
3901
|
-
X(
|
|
3901
|
+
X(k(C, {
|
|
3902
3902
|
size: a(d),
|
|
3903
3903
|
name: a(i)
|
|
3904
3904
|
}, null, 8, ["size", "name"]), [
|
|
3905
3905
|
[Q, a(r)]
|
|
3906
3906
|
]),
|
|
3907
|
-
X(
|
|
3907
|
+
X(k(C, {
|
|
3908
3908
|
size: a(d),
|
|
3909
3909
|
name: t.icon
|
|
3910
3910
|
}, null, 8, ["size", "name"]), [
|
|
3911
3911
|
[Q, !a(r)]
|
|
3912
3912
|
]),
|
|
3913
|
-
f(
|
|
3913
|
+
f(B.$slots, "default")
|
|
3914
3914
|
]),
|
|
3915
3915
|
_: 3
|
|
3916
3916
|
}, 16, ["class", "href", "target"]));
|
|
3917
3917
|
}
|
|
3918
3918
|
}), on = {
|
|
3919
3919
|
name: "MaIconButton"
|
|
3920
|
-
}, ie = /* @__PURE__ */
|
|
3920
|
+
}, ie = /* @__PURE__ */ x({
|
|
3921
3921
|
...on,
|
|
3922
3922
|
props: {
|
|
3923
3923
|
type: { default: "primary" },
|
|
@@ -3947,7 +3947,7 @@ const ge = [
|
|
|
3947
3947
|
f(r.$slots, "tooltip")
|
|
3948
3948
|
]),
|
|
3949
3949
|
default: h(() => [
|
|
3950
|
-
|
|
3950
|
+
k(Se, {
|
|
3951
3951
|
active: t.active,
|
|
3952
3952
|
size: t.size,
|
|
3953
3953
|
type: t.type,
|
|
@@ -3984,7 +3984,7 @@ const ge = [
|
|
|
3984
3984
|
}, 8, ["active", "size", "type", "activeIcon", "icon", "href", "target", "rounded", "variant"]));
|
|
3985
3985
|
}
|
|
3986
3986
|
});
|
|
3987
|
-
const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */
|
|
3987
|
+
const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ x({
|
|
3988
3988
|
__name: "kwGroupItem",
|
|
3989
3989
|
props: {
|
|
3990
3990
|
keywordGroup: null,
|
|
@@ -4006,51 +4006,51 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4006
4006
|
}, p = () => {
|
|
4007
4007
|
t("edit");
|
|
4008
4008
|
};
|
|
4009
|
-
return (m,
|
|
4010
|
-
class:
|
|
4009
|
+
return (m, B) => (o(), u("div", {
|
|
4010
|
+
class: E(a(s))
|
|
4011
4011
|
}, [
|
|
4012
|
-
|
|
4012
|
+
k(C, {
|
|
4013
4013
|
class: "ma-kw-selection-sort-handler",
|
|
4014
4014
|
name: "drag",
|
|
4015
4015
|
size: "md"
|
|
4016
4016
|
}),
|
|
4017
|
-
|
|
4017
|
+
k(C, {
|
|
4018
4018
|
name: "dot",
|
|
4019
4019
|
size: "xs",
|
|
4020
4020
|
style: J({ color: l.keywordGroup.color })
|
|
4021
4021
|
}, null, 8, ["style"]),
|
|
4022
|
-
|
|
4023
|
-
|
|
4022
|
+
_("span", null, $(l.keywordGroup.name), 1),
|
|
4023
|
+
k(ye, {
|
|
4024
4024
|
type: a(n),
|
|
4025
4025
|
size: "small"
|
|
4026
4026
|
}, {
|
|
4027
4027
|
default: h(() => [
|
|
4028
|
-
|
|
4028
|
+
F($(l.keywordGroup.keywordCount), 1)
|
|
4029
4029
|
]),
|
|
4030
4030
|
_: 1
|
|
4031
4031
|
}, 8, ["type"]),
|
|
4032
|
-
|
|
4033
|
-
|
|
4032
|
+
_("div", an, [
|
|
4033
|
+
k(ie, {
|
|
4034
4034
|
type: "secondary",
|
|
4035
4035
|
size: "xs",
|
|
4036
4036
|
icon: l.keywordGroup.editable ? "clipboard-tick" : "clipboard-close",
|
|
4037
4037
|
tooltipText: l.keywordGroup.editable ? "Make it non-editable" : "Make it editable",
|
|
4038
4038
|
onClick: i
|
|
4039
4039
|
}, null, 8, ["icon", "tooltipText"]),
|
|
4040
|
-
|
|
4040
|
+
k(ie, {
|
|
4041
4041
|
type: "secondary",
|
|
4042
4042
|
size: "xs",
|
|
4043
4043
|
icon: l.keywordGroup.public ? "lock-slash" : "outline-lock",
|
|
4044
4044
|
tooltipText: l.keywordGroup.public ? "Make it private" : "Make it public",
|
|
4045
4045
|
onClick: r
|
|
4046
4046
|
}, null, 8, ["icon", "tooltipText"]),
|
|
4047
|
-
|
|
4047
|
+
k(ie, {
|
|
4048
4048
|
type: "secondary",
|
|
4049
4049
|
size: "xs",
|
|
4050
4050
|
icon: "edit-2",
|
|
4051
4051
|
onClick: p
|
|
4052
4052
|
}),
|
|
4053
|
-
|
|
4053
|
+
k(ie, {
|
|
4054
4054
|
type: "secondary",
|
|
4055
4055
|
size: "xs",
|
|
4056
4056
|
icon: "trash",
|
|
@@ -4059,7 +4059,7 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4059
4059
|
])
|
|
4060
4060
|
], 2));
|
|
4061
4061
|
}
|
|
4062
|
-
}), nn = { class: "kw-group-form__colors" }, ln = /* @__PURE__ */
|
|
4062
|
+
}), nn = { class: "kw-group-form__colors" }, ln = /* @__PURE__ */ x({
|
|
4063
4063
|
__name: "kwGroupForm",
|
|
4064
4064
|
props: {
|
|
4065
4065
|
keywordGroup: null
|
|
@@ -4072,41 +4072,41 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4072
4072
|
}), n = {
|
|
4073
4073
|
name: [{ required: !0, message: "Group name is required" }],
|
|
4074
4074
|
color: [{ required: !0, message: "Color is required" }]
|
|
4075
|
-
}, i = c(() => e.keywordGroup?.new), r = c(() => i.value ? "Create Group" : "Edit Group"), d = (
|
|
4076
|
-
color:
|
|
4077
|
-
border: "1px solid " + (
|
|
4078
|
-
}), p = (
|
|
4079
|
-
s.color =
|
|
4075
|
+
}, i = c(() => e.keywordGroup?.new), r = c(() => i.value ? "Create Group" : "Edit Group"), d = (B) => ({
|
|
4076
|
+
color: B,
|
|
4077
|
+
border: "1px solid " + (B === s.color ? B : "#F2F4F7")
|
|
4078
|
+
}), p = (B) => {
|
|
4079
|
+
s.color = B;
|
|
4080
4080
|
}, m = () => {
|
|
4081
4081
|
t("saveKwGroup", {
|
|
4082
4082
|
...e.keywordGroup,
|
|
4083
4083
|
...s
|
|
4084
4084
|
});
|
|
4085
4085
|
};
|
|
4086
|
-
return (
|
|
4086
|
+
return (B, I) => (o(), g(Rt, {
|
|
4087
4087
|
class: "kw-group-form",
|
|
4088
4088
|
model: s,
|
|
4089
4089
|
rules: n,
|
|
4090
4090
|
onFinish: m
|
|
4091
4091
|
}, {
|
|
4092
4092
|
default: h(() => [
|
|
4093
|
-
|
|
4094
|
-
|
|
4093
|
+
_("h3", null, $(a(r)), 1),
|
|
4094
|
+
k(we, { name: "name" }, {
|
|
4095
4095
|
default: h(() => [
|
|
4096
|
-
|
|
4096
|
+
k(he, {
|
|
4097
4097
|
size: "medium",
|
|
4098
4098
|
placeholder: "Keyword group name",
|
|
4099
4099
|
value: s.name,
|
|
4100
|
-
"onUpdate:value":
|
|
4100
|
+
"onUpdate:value": I[0] || (I[0] = (z) => s.name = z)
|
|
4101
4101
|
}, null, 8, ["value"])
|
|
4102
4102
|
]),
|
|
4103
4103
|
_: 1
|
|
4104
4104
|
}),
|
|
4105
|
-
|
|
4105
|
+
k(we, { name: "color" }, {
|
|
4106
4106
|
default: h(() => [
|
|
4107
|
-
|
|
4108
|
-
(o(!0), u(
|
|
4109
|
-
|
|
4107
|
+
_("ul", nn, [
|
|
4108
|
+
(o(!0), u(H, null, U(a(ge), (z) => (o(), u("li", { key: z }, [
|
|
4109
|
+
k(te, {
|
|
4110
4110
|
size: "small",
|
|
4111
4111
|
type: "secondary",
|
|
4112
4112
|
icon: "dot",
|
|
@@ -4118,9 +4118,9 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4118
4118
|
]),
|
|
4119
4119
|
_: 1
|
|
4120
4120
|
}),
|
|
4121
|
-
|
|
4121
|
+
k(te, { "html-type": "submit" }, {
|
|
4122
4122
|
default: h(() => [
|
|
4123
|
-
|
|
4123
|
+
F(" Confirm ")
|
|
4124
4124
|
]),
|
|
4125
4125
|
_: 1
|
|
4126
4126
|
})
|
|
@@ -4136,7 +4136,7 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4136
4136
|
class: "placeholder"
|
|
4137
4137
|
}, un = {
|
|
4138
4138
|
name: "MaKeywordGroupSelection"
|
|
4139
|
-
}, _i = /* @__PURE__ */
|
|
4139
|
+
}, _i = /* @__PURE__ */ x({
|
|
4140
4140
|
...un,
|
|
4141
4141
|
props: {
|
|
4142
4142
|
value: { default: null },
|
|
@@ -4159,12 +4159,12 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4159
4159
|
"copy"
|
|
4160
4160
|
],
|
|
4161
4161
|
setup(l, { emit: t }) {
|
|
4162
|
-
const e = l, s =
|
|
4162
|
+
const e = l, s = D(!1), n = D(!1), i = D("0"), r = _e({
|
|
4163
4163
|
parentId: null,
|
|
4164
4164
|
keywordGroup: null
|
|
4165
|
-
}), d = c(() => parseInt(i.value)), p = c(() => e.options.reduce((A,
|
|
4165
|
+
}), d = c(() => parseInt(i.value)), p = c(() => e.options.reduce((A, G) => [
|
|
4166
4166
|
...A,
|
|
4167
|
-
...
|
|
4167
|
+
...G.keywordGroups
|
|
4168
4168
|
], []).find((A) => A.id === m.value)), m = c({
|
|
4169
4169
|
get() {
|
|
4170
4170
|
return e.value;
|
|
@@ -4172,79 +4172,79 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4172
4172
|
set(A) {
|
|
4173
4173
|
t("update:value", A), t("change", A);
|
|
4174
4174
|
}
|
|
4175
|
-
}),
|
|
4175
|
+
}), B = c(() => [
|
|
4176
4176
|
"kw-dropdown-button",
|
|
4177
4177
|
{
|
|
4178
4178
|
"kw-dropdown-button--active": s.value
|
|
4179
4179
|
}
|
|
4180
|
-
]),
|
|
4180
|
+
]), I = c(() => n.value ? "kw-edit-overlay" : "kw-selection-overlay"), z = (A) => {
|
|
4181
4181
|
m.value = A;
|
|
4182
4182
|
}, N = (A) => {
|
|
4183
4183
|
t("update:options", A), t("changeOptions", A);
|
|
4184
|
-
},
|
|
4185
|
-
const
|
|
4186
|
-
|
|
4187
|
-
},
|
|
4188
|
-
const
|
|
4189
|
-
|
|
4190
|
-
},
|
|
4184
|
+
}, w = (A, G, j, W) => {
|
|
4185
|
+
const S = JSON.parse(JSON.stringify(e.options));
|
|
4186
|
+
S[G].keywordGroups[j].editable = A, N(S), t("changeEditable", { id: W, editable: A });
|
|
4187
|
+
}, b = (A, G, j, W) => {
|
|
4188
|
+
const S = JSON.parse(JSON.stringify(e.options));
|
|
4189
|
+
S[G].keywordGroups[j].public = A, N(S), t("changeVisibility", { id: W, public: A });
|
|
4190
|
+
}, M = (A, G, j) => {
|
|
4191
4191
|
const W = JSON.parse(JSON.stringify(e.options));
|
|
4192
|
-
W[A].keywordGroups.splice(
|
|
4193
|
-
},
|
|
4194
|
-
n.value = !0, r.keywordGroup = A, r.parentId =
|
|
4195
|
-
},
|
|
4196
|
-
A ||
|
|
4197
|
-
},
|
|
4198
|
-
const
|
|
4192
|
+
W[A].keywordGroups.splice(G, 1), N(W), t("deleteKeywordGroup", j);
|
|
4193
|
+
}, P = (A, G) => {
|
|
4194
|
+
n.value = !0, r.keywordGroup = A, r.parentId = G;
|
|
4195
|
+
}, L = (A) => {
|
|
4196
|
+
A || y();
|
|
4197
|
+
}, q = (A) => {
|
|
4198
|
+
const G = JSON.parse(JSON.stringify(e.options));
|
|
4199
4199
|
if (A?.new)
|
|
4200
|
-
A.new = !1,
|
|
4200
|
+
A.new = !1, G[d.value].keywordGroups.push(A), t("addKeywordGroup", A, d.value, r.parentId);
|
|
4201
4201
|
else {
|
|
4202
|
-
const j =
|
|
4203
|
-
j > -1 && (
|
|
4202
|
+
const j = G[d.value].keywordGroups.findIndex((W) => W.id === A.id);
|
|
4203
|
+
j > -1 && (G[d.value].keywordGroups[j] = A), t("updateKeywordGroup", A, d.value, r.parentId);
|
|
4204
4204
|
}
|
|
4205
|
-
N(
|
|
4206
|
-
},
|
|
4205
|
+
N(G), y();
|
|
4206
|
+
}, y = () => {
|
|
4207
4207
|
n.value = !1, r.keywordGroup = null, r.parentId = null;
|
|
4208
|
-
},
|
|
4209
|
-
const j = e.options[d.value].keywordGroups[
|
|
4208
|
+
}, O = ({ oldIndex: A, newIndex: G }) => {
|
|
4209
|
+
const j = e.options[d.value].keywordGroups[G];
|
|
4210
4210
|
N(e.options), t("sort", {
|
|
4211
4211
|
keywordGroup: j,
|
|
4212
4212
|
oldIndex: A,
|
|
4213
|
-
newIndex:
|
|
4213
|
+
newIndex: G,
|
|
4214
4214
|
parentId: e.options[d.value].id
|
|
4215
4215
|
});
|
|
4216
|
-
},
|
|
4216
|
+
}, R = (A) => {
|
|
4217
4217
|
A.stopPropagation(), t("download");
|
|
4218
4218
|
}, Z = (A) => {
|
|
4219
4219
|
A.stopPropagation(), t("copy");
|
|
4220
4220
|
}, ue = (A) => {
|
|
4221
4221
|
A.stopPropagation(), s.value = !0, n.value = !0, r.keywordGroup = sn(), r.parentId = e.options[d.value].id;
|
|
4222
4222
|
};
|
|
4223
|
-
return (A,
|
|
4224
|
-
e?.label ? (o(), u("label", rn,
|
|
4225
|
-
|
|
4226
|
-
onVisibleChange:
|
|
4227
|
-
overlayClassName: a(
|
|
4223
|
+
return (A, G) => (o(), u("div", T({ class: "ak-keyword-group-selection" }, A.$attrs), [
|
|
4224
|
+
e?.label ? (o(), u("label", rn, $(e.label), 1)) : v("", !0),
|
|
4225
|
+
k(Ve, {
|
|
4226
|
+
onVisibleChange: L,
|
|
4227
|
+
overlayClassName: a(I),
|
|
4228
4228
|
trigger: ["click"],
|
|
4229
4229
|
visible: s.value,
|
|
4230
|
-
"onUpdate:visible":
|
|
4230
|
+
"onUpdate:visible": G[1] || (G[1] = (j) => s.value = j)
|
|
4231
4231
|
}, Y({
|
|
4232
4232
|
default: h(() => [
|
|
4233
|
-
|
|
4234
|
-
class:
|
|
4233
|
+
_("button", {
|
|
4234
|
+
class: E(a(B))
|
|
4235
4235
|
}, [
|
|
4236
4236
|
a(p) ? (o(), g(Ie, {
|
|
4237
4237
|
key: 0,
|
|
4238
4238
|
keywordGroup: a(p)
|
|
4239
|
-
}, null, 8, ["keywordGroup"])) : (o(), u("span", cn,
|
|
4240
|
-
X(
|
|
4239
|
+
}, null, 8, ["keywordGroup"])) : (o(), u("span", cn, $(e?.placeholder), 1)),
|
|
4240
|
+
X(k(C, {
|
|
4241
4241
|
size: "sm",
|
|
4242
4242
|
class: "chevron-icon",
|
|
4243
4243
|
name: "chevron-down"
|
|
4244
4244
|
}, null, 512), [
|
|
4245
4245
|
[Q, !s.value]
|
|
4246
4246
|
]),
|
|
4247
|
-
X(
|
|
4247
|
+
X(k(C, {
|
|
4248
4248
|
size: "sm",
|
|
4249
4249
|
class: "chevron-icon",
|
|
4250
4250
|
name: "chevron-up"
|
|
@@ -4258,8 +4258,8 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4258
4258
|
n.value ? {
|
|
4259
4259
|
name: "overlay",
|
|
4260
4260
|
fn: h(() => [
|
|
4261
|
-
|
|
4262
|
-
onSaveKwGroup:
|
|
4261
|
+
k(ln, {
|
|
4262
|
+
onSaveKwGroup: q,
|
|
4263
4263
|
"keyword-group": r.keywordGroup
|
|
4264
4264
|
}, null, 8, ["keyword-group"])
|
|
4265
4265
|
]),
|
|
@@ -4267,35 +4267,35 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4267
4267
|
} : {
|
|
4268
4268
|
name: "overlay",
|
|
4269
4269
|
fn: h(() => [
|
|
4270
|
-
|
|
4271
|
-
|
|
4270
|
+
_("div", { class: "kw-selection-overlay-wrapper" }, [
|
|
4271
|
+
k($a, {
|
|
4272
4272
|
animated: !0,
|
|
4273
4273
|
type: "card",
|
|
4274
4274
|
activeKey: i.value,
|
|
4275
|
-
"onUpdate:activeKey":
|
|
4275
|
+
"onUpdate:activeKey": G[0] || (G[0] = (j) => i.value = j)
|
|
4276
4276
|
}, {
|
|
4277
4277
|
default: h(() => [
|
|
4278
|
-
(o(!0), u(
|
|
4278
|
+
(o(!0), u(H, null, U(e.options, (j, W) => (o(), g(wa, {
|
|
4279
4279
|
key: W.toString(),
|
|
4280
4280
|
tab: j.title
|
|
4281
4281
|
}, {
|
|
4282
4282
|
default: h(() => [
|
|
4283
|
-
|
|
4283
|
+
k(a(gt), {
|
|
4284
4284
|
"ghost-class": "keyword-group-item__ghost",
|
|
4285
4285
|
list: j.keywordGroups,
|
|
4286
4286
|
"item-key": "id",
|
|
4287
4287
|
handle: ".ma-kw-selection-sort-handler",
|
|
4288
|
-
onSort:
|
|
4288
|
+
onSort: O
|
|
4289
4289
|
}, {
|
|
4290
|
-
item: h(({ element:
|
|
4291
|
-
|
|
4292
|
-
selected: a(m) ===
|
|
4293
|
-
keywordGroup:
|
|
4294
|
-
onClick: (K) => z(
|
|
4295
|
-
onUpdateEditable: (K) =>
|
|
4296
|
-
onUpdatePublic: (K) =>
|
|
4297
|
-
onDeleteKwGroup: (K) =>
|
|
4298
|
-
onEdit: (K) =>
|
|
4290
|
+
item: h(({ element: S, index: V }) => [
|
|
4291
|
+
k(Ie, {
|
|
4292
|
+
selected: a(m) === S.id,
|
|
4293
|
+
keywordGroup: S,
|
|
4294
|
+
onClick: (K) => z(S.id),
|
|
4295
|
+
onUpdateEditable: (K) => w(K, W, V, S.id),
|
|
4296
|
+
onUpdatePublic: (K) => b(K, W, V, S.id),
|
|
4297
|
+
onDeleteKwGroup: (K) => M(W, V, S.id),
|
|
4298
|
+
onEdit: (K) => P(S, j.id)
|
|
4299
4299
|
}, null, 8, ["selected", "keywordGroup", "onClick", "onUpdateEditable", "onUpdatePublic", "onDeleteKwGroup", "onEdit"])
|
|
4300
4300
|
]),
|
|
4301
4301
|
_: 2
|
|
@@ -4311,21 +4311,21 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4311
4311
|
key: "1"
|
|
4312
4312
|
}
|
|
4313
4313
|
]), 1032, ["overlayClassName", "visible"]),
|
|
4314
|
-
|
|
4314
|
+
k(ie, {
|
|
4315
4315
|
type: "secondary",
|
|
4316
4316
|
variant: "border",
|
|
4317
4317
|
icon: "add",
|
|
4318
4318
|
onMousedown: ue
|
|
4319
4319
|
}),
|
|
4320
|
-
|
|
4320
|
+
k(ie, {
|
|
4321
4321
|
type: "secondary",
|
|
4322
4322
|
variant: "border",
|
|
4323
4323
|
icon: "copy",
|
|
4324
4324
|
tooltipText: "Successfully Copied",
|
|
4325
4325
|
tooltipProps: { trigger: ["click"] },
|
|
4326
|
-
onMousedown:
|
|
4326
|
+
onMousedown: R
|
|
4327
4327
|
}),
|
|
4328
|
-
|
|
4328
|
+
k(ie, {
|
|
4329
4329
|
type: "secondary",
|
|
4330
4330
|
variant: "border",
|
|
4331
4331
|
icon: "direct-inbox",
|
|
@@ -4336,7 +4336,7 @@ const an = { class: "keyword-group-item__actions" }, Ie = /* @__PURE__ */ M({
|
|
|
4336
4336
|
});
|
|
4337
4337
|
const dn = { class: "tooltip" }, pn = { class: "tooltip" }, mn = {
|
|
4338
4338
|
name: "MaSlider"
|
|
4339
|
-
}, yi = /* @__PURE__ */
|
|
4339
|
+
}, yi = /* @__PURE__ */ x({
|
|
4340
4340
|
...mn,
|
|
4341
4341
|
props: {
|
|
4342
4342
|
dualThumbMode: { type: Boolean, default: !1 },
|
|
@@ -4347,48 +4347,48 @@ const dn = { class: "tooltip" }, pn = { class: "tooltip" }, mn = {
|
|
|
4347
4347
|
},
|
|
4348
4348
|
emits: ["update:leftThumbValue", "update:rightThumbValue"],
|
|
4349
4349
|
setup(l, { emit: t }) {
|
|
4350
|
-
const e = l, s =
|
|
4350
|
+
const e = l, s = D(null), n = D(!1), i = c({
|
|
4351
4351
|
get() {
|
|
4352
4352
|
return e.leftThumbValue;
|
|
4353
4353
|
},
|
|
4354
|
-
set(
|
|
4355
|
-
t("update:leftThumbValue",
|
|
4354
|
+
set(w) {
|
|
4355
|
+
t("update:leftThumbValue", w);
|
|
4356
4356
|
}
|
|
4357
4357
|
}), r = c({
|
|
4358
4358
|
get() {
|
|
4359
4359
|
return e.rightThumbValue;
|
|
4360
4360
|
},
|
|
4361
|
-
set(
|
|
4362
|
-
t("update:rightThumbValue",
|
|
4361
|
+
set(w) {
|
|
4362
|
+
t("update:rightThumbValue", w);
|
|
4363
4363
|
}
|
|
4364
4364
|
});
|
|
4365
4365
|
qe(() => {
|
|
4366
4366
|
e.leftThumbValue !== void 0 && (i.value = Math.max(0, Math.min(100, e.leftThumbValue))), e.dualThumbMode && e.rightThumbValue !== void 0 && (r.value = Math.max(0, Math.min(100, e.rightThumbValue)));
|
|
4367
4367
|
});
|
|
4368
|
-
const d = c(() => e.vertical ? "bottom" : "left"), p = c(() => e.dualThumbMode ? "bg-gray-200" : "bg-primary-dark-blue"), m = c(() => e.dualThumbMode ? "bg-primary-dark-blue" : "bg-gray-200"),
|
|
4369
|
-
const
|
|
4368
|
+
const d = c(() => e.vertical ? "bottom" : "left"), p = c(() => e.dualThumbMode ? "bg-gray-200" : "bg-primary-dark-blue"), m = c(() => e.dualThumbMode ? "bg-primary-dark-blue" : "bg-gray-200"), B = c(() => {
|
|
4369
|
+
const w = Math.min(i.value, r.value), b = Math.max(i.value, r.value);
|
|
4370
4370
|
return e.vertical ? {
|
|
4371
|
-
bottom: `${
|
|
4372
|
-
top: `${100 -
|
|
4371
|
+
bottom: `${w}%`,
|
|
4372
|
+
top: `${100 - b}%`
|
|
4373
4373
|
} : {
|
|
4374
|
-
left: `${
|
|
4375
|
-
width: `${
|
|
4374
|
+
left: `${w}%`,
|
|
4375
|
+
width: `${b - w + 5}%`
|
|
4376
4376
|
};
|
|
4377
|
-
}),
|
|
4378
|
-
const
|
|
4377
|
+
}), I = (w) => {
|
|
4378
|
+
const b = w === "left" ? i : r, M = w === "left" ? r : i, P = (q) => {
|
|
4379
4379
|
if (!s.value)
|
|
4380
4380
|
return;
|
|
4381
|
-
let
|
|
4382
|
-
|
|
4383
|
-
},
|
|
4384
|
-
n.value = !1, window.removeEventListener("mousemove",
|
|
4381
|
+
let y = e.vertical ? (s.value.getBoundingClientRect().bottom - q.clientY) / s.value.offsetHeight * 100 : (q.clientX - s.value.getBoundingClientRect().left) / s.value.offsetWidth * 100;
|
|
4382
|
+
y < 0 && (y = 0), y > 100 && (y = 100), e.dualThumbMode && (w === "left" && y >= M.value && (y = M.value), w === "right" && y <= M.value && (y = M.value)), b.value = y, t(`update:${w}ThumbValue`, y);
|
|
4383
|
+
}, L = () => {
|
|
4384
|
+
n.value = !1, window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", L);
|
|
4385
4385
|
};
|
|
4386
|
-
window.addEventListener("mousemove",
|
|
4387
|
-
}, z = (
|
|
4386
|
+
window.addEventListener("mousemove", P), window.addEventListener("mouseup", L);
|
|
4387
|
+
}, z = (w) => {
|
|
4388
4388
|
if (n.value || !s.value)
|
|
4389
4389
|
return;
|
|
4390
|
-
const
|
|
4391
|
-
e.dualThumbMode ?
|
|
4390
|
+
const b = e.vertical ? (s.value.getBoundingClientRect().bottom - w.clientY) / s.value.offsetHeight * 100 : (w.clientX - s.value.getBoundingClientRect().left) / s.value.offsetWidth * 100, M = Math.abs(i.value - b), P = Math.abs(r.value - b);
|
|
4391
|
+
e.dualThumbMode ? M < P ? (i.value = b, t("update:leftThumbValue", b), I("left")) : (r.value = b, t("update:rightThumbValue", b), I("right")) : (i.value = b, t("update:leftThumbValue", b), I("left"));
|
|
4392
4392
|
}, N = c(() => [
|
|
4393
4393
|
`
|
|
4394
4394
|
ak-slider
|
|
@@ -4398,63 +4398,63 @@ const dn = { class: "tooltip" }, pn = { class: "tooltip" }, mn = {
|
|
|
4398
4398
|
"ak-slider--vertical": e.vertical
|
|
4399
4399
|
}
|
|
4400
4400
|
]);
|
|
4401
|
-
return (
|
|
4402
|
-
class:
|
|
4401
|
+
return (w, b) => (o(), u("div", {
|
|
4402
|
+
class: E(a(N))
|
|
4403
4403
|
}, [
|
|
4404
|
-
|
|
4405
|
-
class:
|
|
4404
|
+
_("div", {
|
|
4405
|
+
class: E([a(p), "slider-track"]),
|
|
4406
4406
|
ref_key: "sliderTrack",
|
|
4407
4407
|
ref: s,
|
|
4408
4408
|
onMousedown: z
|
|
4409
4409
|
}, null, 34),
|
|
4410
|
-
|
|
4411
|
-
class:
|
|
4412
|
-
style: J(a(
|
|
4410
|
+
_("div", {
|
|
4411
|
+
class: E([a(m), "slider-range"]),
|
|
4412
|
+
style: J(a(B)),
|
|
4413
4413
|
onMousedown: z
|
|
4414
4414
|
}, null, 38),
|
|
4415
|
-
|
|
4415
|
+
_("div", {
|
|
4416
4416
|
class: "slider-thumb",
|
|
4417
4417
|
style: J({ [a(d)]: `${a(i)}%` }),
|
|
4418
|
-
onMousedown:
|
|
4418
|
+
onMousedown: b[0] || (b[0] = (M) => I("left"))
|
|
4419
4419
|
}, null, 36),
|
|
4420
4420
|
e.type === "label" ? (o(), u("div", {
|
|
4421
4421
|
key: 0,
|
|
4422
4422
|
style: J({ [a(d)]: `${a(i)}%` }),
|
|
4423
4423
|
class: "slider-label"
|
|
4424
|
-
},
|
|
4424
|
+
}, $(a(i).toFixed(0)) + "%", 5)) : v("", !0),
|
|
4425
4425
|
e.dualThumbMode ? (o(), u("div", {
|
|
4426
4426
|
key: 1,
|
|
4427
4427
|
class: "slider-thumb",
|
|
4428
4428
|
style: J({ [a(d)]: `${a(r)}%` }),
|
|
4429
|
-
onMousedown:
|
|
4429
|
+
onMousedown: b[1] || (b[1] = (M) => I("right"))
|
|
4430
4430
|
}, null, 36)) : v("", !0),
|
|
4431
4431
|
e.dualThumbMode && e.type === "label" ? (o(), u("div", {
|
|
4432
4432
|
key: 2,
|
|
4433
4433
|
style: J({ [a(d)]: `${a(r)}%` }),
|
|
4434
4434
|
class: "slider-label"
|
|
4435
|
-
},
|
|
4435
|
+
}, $(a(r).toFixed(0)) + "%", 5)) : v("", !0),
|
|
4436
4436
|
e.type === "tooltip" ? (o(), u("div", {
|
|
4437
4437
|
key: 3,
|
|
4438
4438
|
class: "slider-thumb",
|
|
4439
4439
|
style: J({ [a(d)]: `${a(i)}%` }),
|
|
4440
|
-
onMousedown:
|
|
4440
|
+
onMousedown: b[2] || (b[2] = (M) => I("left"))
|
|
4441
4441
|
}, [
|
|
4442
|
-
|
|
4442
|
+
_("div", dn, $(a(i).toFixed(0)) + "%", 1)
|
|
4443
4443
|
], 36)) : v("", !0),
|
|
4444
4444
|
e.dualThumbMode && e.type === "tooltip" ? (o(), u("div", {
|
|
4445
4445
|
key: 4,
|
|
4446
4446
|
class: "slider-thumb",
|
|
4447
4447
|
style: J({ [a(d)]: `${a(r)}%` }),
|
|
4448
|
-
onMousedown:
|
|
4448
|
+
onMousedown: b[3] || (b[3] = (M) => I("right"))
|
|
4449
4449
|
}, [
|
|
4450
|
-
|
|
4450
|
+
_("div", pn, $(a(r).toFixed(0)) + "%", 1)
|
|
4451
4451
|
], 36)) : v("", !0)
|
|
4452
4452
|
], 2));
|
|
4453
4453
|
}
|
|
4454
4454
|
});
|
|
4455
4455
|
const vn = ["value", "name", "checked"], fn = { class: "radio-area" }, gn = {
|
|
4456
4456
|
name: "MaCountryRadio"
|
|
4457
|
-
}, hi = /* @__PURE__ */
|
|
4457
|
+
}, hi = /* @__PURE__ */ x({
|
|
4458
4458
|
...gn,
|
|
4459
4459
|
props: {
|
|
4460
4460
|
value: null,
|
|
@@ -4474,28 +4474,28 @@ const vn = ["value", "name", "checked"], fn = { class: "radio-area" }, gn = {
|
|
|
4474
4474
|
t("update:checked", p.checked), t("change", e.name ? e.country : p.checked), p.checked && t("update:value", e.country);
|
|
4475
4475
|
};
|
|
4476
4476
|
return (d, p) => (o(), u("label", {
|
|
4477
|
-
class:
|
|
4477
|
+
class: E(a(i))
|
|
4478
4478
|
}, [
|
|
4479
|
-
|
|
4479
|
+
k(a(C), {
|
|
4480
4480
|
name: a(n),
|
|
4481
4481
|
ratio: "4x3"
|
|
4482
4482
|
}, null, 8, ["name"]),
|
|
4483
|
-
|
|
4483
|
+
_("input", {
|
|
4484
4484
|
type: "radio",
|
|
4485
4485
|
value: e.value,
|
|
4486
4486
|
name: e.name,
|
|
4487
4487
|
checked: e.checked,
|
|
4488
4488
|
onChange: r
|
|
4489
4489
|
}, null, 40, vn),
|
|
4490
|
-
|
|
4491
|
-
|
|
4490
|
+
_("div", fn, [
|
|
4491
|
+
k(a(C), { name: "tick" })
|
|
4492
4492
|
])
|
|
4493
4493
|
], 2));
|
|
4494
4494
|
}
|
|
4495
4495
|
});
|
|
4496
4496
|
const _n = {
|
|
4497
4497
|
name: "MaAppCheckbox"
|
|
4498
|
-
}, bi = /* @__PURE__ */
|
|
4498
|
+
}, bi = /* @__PURE__ */ x({
|
|
4499
4499
|
..._n,
|
|
4500
4500
|
props: {
|
|
4501
4501
|
appIcon: null,
|
|
@@ -4510,14 +4510,14 @@ const _n = {
|
|
|
4510
4510
|
"ak-app-checkbox"
|
|
4511
4511
|
]);
|
|
4512
4512
|
return (i, r) => (o(), u("span", {
|
|
4513
|
-
class:
|
|
4513
|
+
class: E(a(n))
|
|
4514
4514
|
}, [
|
|
4515
|
-
|
|
4515
|
+
k(Vs, {
|
|
4516
4516
|
size: "small",
|
|
4517
4517
|
onClick: s,
|
|
4518
4518
|
"app-icon": e.appIcon
|
|
4519
4519
|
}, null, 8, ["app-icon"]),
|
|
4520
|
-
|
|
4520
|
+
k(fs, T({
|
|
4521
4521
|
onClick: s,
|
|
4522
4522
|
checked: e.checked
|
|
4523
4523
|
}, i.$attrs), null, 16, ["checked"])
|
|
@@ -4532,25 +4532,26 @@ const yn = {
|
|
|
4532
4532
|
class: "ma-tag-input-suffix"
|
|
4533
4533
|
}, kn = {
|
|
4534
4534
|
name: "MaTagInput"
|
|
4535
|
-
}, ki = /* @__PURE__ */
|
|
4535
|
+
}, ki = /* @__PURE__ */ x({
|
|
4536
4536
|
...kn,
|
|
4537
4537
|
props: {
|
|
4538
|
-
tags:
|
|
4538
|
+
tags: { default: () => [] },
|
|
4539
4539
|
placeholder: { default: "" },
|
|
4540
4540
|
separator: { default: () => ["Enter", ","] },
|
|
4541
4541
|
size: { default: "md" },
|
|
4542
4542
|
disabled: { type: Boolean, default: !1 },
|
|
4543
4543
|
prefixIcon: null,
|
|
4544
|
-
suffixIcon: null
|
|
4544
|
+
suffixIcon: null,
|
|
4545
|
+
tagCharLimit: null
|
|
4545
4546
|
},
|
|
4546
|
-
emits: ["update:tags", "change", "added", "removed"],
|
|
4547
|
+
emits: ["update:tags", "change", "added", "removed", "error"],
|
|
4547
4548
|
setup(l, { emit: t }) {
|
|
4548
|
-
const e = l, s =
|
|
4549
|
+
const e = l, s = D(""), n = D(null), i = c({
|
|
4549
4550
|
get() {
|
|
4550
4551
|
return e.tags;
|
|
4551
4552
|
},
|
|
4552
|
-
set(
|
|
4553
|
-
t("update:tags",
|
|
4553
|
+
set(M) {
|
|
4554
|
+
t("update:tags", M), t("change", M);
|
|
4554
4555
|
}
|
|
4555
4556
|
}), r = c(() => [
|
|
4556
4557
|
"ma-tag-input-wrapper",
|
|
@@ -4564,58 +4565,78 @@ const yn = {
|
|
|
4564
4565
|
width: `${d.value * 8 + 6}px`
|
|
4565
4566
|
})), m = c(
|
|
4566
4567
|
() => e?.placeholder && i.value.length === 0 ? e.placeholder : ""
|
|
4567
|
-
),
|
|
4568
|
-
e.separator.includes(
|
|
4569
|
-
},
|
|
4570
|
-
|
|
4571
|
-
|
|
4568
|
+
), B = (M) => {
|
|
4569
|
+
e.separator.includes(M.key) ? (M.preventDefault(), I(s.value)) : M.key === "Backspace" && s.value === "" && i.value.length > 0 && z(i.value[i.value.length - 1]);
|
|
4570
|
+
}, I = (M = "") => {
|
|
4571
|
+
const P = M.trim();
|
|
4572
|
+
if (P) {
|
|
4573
|
+
if (i.value.includes(P))
|
|
4574
|
+
return b(`This tag already exists '${P}'`);
|
|
4575
|
+
if (e?.tagCharLimit && M.length > e.tagCharLimit)
|
|
4576
|
+
return b(`You can enter tags up to ${e.tagCharLimit} characters`);
|
|
4577
|
+
} else
|
|
4578
|
+
return b("There is no text to add!");
|
|
4579
|
+
i.value.push(P), t("added", P), t("change", i.value), s.value = "";
|
|
4580
|
+
}, z = (M) => {
|
|
4572
4581
|
if (e.disabled)
|
|
4573
4582
|
return;
|
|
4574
|
-
const
|
|
4575
|
-
|
|
4583
|
+
const P = i.value.indexOf(M);
|
|
4584
|
+
P !== -1 && (i.value.splice(P, 1), t("removed", M), t("change", i.value));
|
|
4576
4585
|
}, N = () => {
|
|
4577
4586
|
n.value.focus();
|
|
4587
|
+
}, w = (M) => {
|
|
4588
|
+
setTimeout(() => {
|
|
4589
|
+
let L = [M.target.value || ""];
|
|
4590
|
+
for (const q of e.separator)
|
|
4591
|
+
L = L.flatMap((y) => y.split(q));
|
|
4592
|
+
L.forEach((q) => {
|
|
4593
|
+
I(q);
|
|
4594
|
+
});
|
|
4595
|
+
}, 0);
|
|
4596
|
+
}, b = (M) => {
|
|
4597
|
+
t("error", M);
|
|
4578
4598
|
};
|
|
4579
|
-
return (
|
|
4580
|
-
class:
|
|
4599
|
+
return (M, P) => (o(), u("div", {
|
|
4600
|
+
class: E(a(r)),
|
|
4581
4601
|
onClick: N
|
|
4582
4602
|
}, [
|
|
4583
|
-
|
|
4584
|
-
f(
|
|
4603
|
+
M.$slots.prefix || e?.prefixIcon ? (o(), u("div", yn, [
|
|
4604
|
+
f(M.$slots, "prefix"),
|
|
4585
4605
|
e.prefixIcon ? (o(), g(a(C), {
|
|
4586
4606
|
key: 0,
|
|
4587
4607
|
size: "xs",
|
|
4588
4608
|
name: e.prefixIcon
|
|
4589
4609
|
}, null, 8, ["name"])) : v("", !0)
|
|
4590
4610
|
])) : v("", !0),
|
|
4591
|
-
(o(!0), u(
|
|
4611
|
+
(o(!0), u(H, null, U(l.tags, (L) => (o(), u("span", {
|
|
4592
4612
|
class: "ma-tag-wrapper",
|
|
4593
|
-
key:
|
|
4613
|
+
key: L
|
|
4594
4614
|
}, [
|
|
4595
|
-
|
|
4596
|
-
|
|
4615
|
+
_("span", null, $(L), 1),
|
|
4616
|
+
k(a(C), {
|
|
4597
4617
|
size: "xs",
|
|
4598
|
-
onClick: (
|
|
4618
|
+
onClick: (q) => z(L),
|
|
4599
4619
|
name: "close"
|
|
4600
4620
|
}, null, 8, ["onClick"])
|
|
4601
4621
|
]))), 128)),
|
|
4602
|
-
|
|
4622
|
+
_("div", {
|
|
4603
4623
|
class: "ma-tag-input",
|
|
4604
4624
|
style: J(a(p))
|
|
4605
4625
|
}, [
|
|
4606
|
-
X(
|
|
4626
|
+
X(_("input", {
|
|
4607
4627
|
disabled: e.disabled,
|
|
4608
4628
|
ref_key: "tagInputRef",
|
|
4609
4629
|
ref: n,
|
|
4610
4630
|
placeholder: a(m),
|
|
4611
|
-
onKeydown:
|
|
4612
|
-
|
|
4631
|
+
onKeydown: B,
|
|
4632
|
+
onPaste: w,
|
|
4633
|
+
"onUpdate:modelValue": P[0] || (P[0] = (L) => s.value = L)
|
|
4613
4634
|
}, null, 40, hn), [
|
|
4614
4635
|
[He, s.value]
|
|
4615
4636
|
])
|
|
4616
4637
|
], 4),
|
|
4617
|
-
|
|
4618
|
-
f(
|
|
4638
|
+
M.$slots.suffix || e?.suffixIcon ? (o(), u("div", bn, [
|
|
4639
|
+
f(M.$slots, "suffix"),
|
|
4619
4640
|
e.suffixIcon ? (o(), g(a(C), {
|
|
4620
4641
|
key: 0,
|
|
4621
4642
|
size: "xs",
|
|
@@ -4631,7 +4652,7 @@ const $n = {
|
|
|
4631
4652
|
function Mn(l, t, e, s, n, i) {
|
|
4632
4653
|
return o(), u("div", wn, [
|
|
4633
4654
|
f(l.$slots, "default"),
|
|
4634
|
-
|
|
4655
|
+
_("div", Cn, [
|
|
4635
4656
|
f(l.$slots, "actions")
|
|
4636
4657
|
])
|
|
4637
4658
|
]);
|
|
@@ -4650,7 +4671,7 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4650
4671
|
class: "ak-list-item-meta-description"
|
|
4651
4672
|
}, Nn = {
|
|
4652
4673
|
name: "MaListItemMeta"
|
|
4653
|
-
}, Pn = /* @__PURE__ */
|
|
4674
|
+
}, Pn = /* @__PURE__ */ x({
|
|
4654
4675
|
...Nn,
|
|
4655
4676
|
props: {
|
|
4656
4677
|
avatar: null,
|
|
@@ -4663,25 +4684,25 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4663
4684
|
return (e, s) => (o(), u("div", Bn, [
|
|
4664
4685
|
t.avatar ? (o(), u("div", Sn, [
|
|
4665
4686
|
f(e.$slots, "avatar", {}, () => [
|
|
4666
|
-
|
|
4687
|
+
k(Ee, {
|
|
4667
4688
|
size: "large",
|
|
4668
4689
|
src: t.avatar
|
|
4669
4690
|
}, null, 8, ["src"])
|
|
4670
4691
|
])
|
|
4671
4692
|
])) : t.icon ? (o(), u("div", In, [
|
|
4672
|
-
|
|
4693
|
+
k(C, {
|
|
4673
4694
|
name: t.icon
|
|
4674
4695
|
}, null, 8, ["name"])
|
|
4675
4696
|
])) : v("", !0),
|
|
4676
|
-
|
|
4697
|
+
_("div", zn, [
|
|
4677
4698
|
t.title ? (o(), u("div", Tn, [
|
|
4678
4699
|
f(e.$slots, "title", {}, () => [
|
|
4679
|
-
|
|
4700
|
+
F($(t.title), 1)
|
|
4680
4701
|
])
|
|
4681
4702
|
])) : v("", !0),
|
|
4682
4703
|
t.description ? (o(), u("div", An, [
|
|
4683
4704
|
f(e.$slots, "description", {}, () => [
|
|
4684
|
-
|
|
4705
|
+
F($(t.description), 1)
|
|
4685
4706
|
])
|
|
4686
4707
|
])) : v("", !0)
|
|
4687
4708
|
])
|
|
@@ -4689,7 +4710,7 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4689
4710
|
}
|
|
4690
4711
|
}), Ln = { class: "ak-list-wrapper" }, Dn = { key: 0 }, En = { class: "ak-list-item-custom-slot" }, Fn = {
|
|
4691
4712
|
name: "MaList"
|
|
4692
|
-
}, $i = /* @__PURE__ */
|
|
4713
|
+
}, $i = /* @__PURE__ */ x({
|
|
4693
4714
|
...Fn,
|
|
4694
4715
|
props: {
|
|
4695
4716
|
listData: { default: () => [] }
|
|
@@ -4697,9 +4718,9 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4697
4718
|
setup(l) {
|
|
4698
4719
|
const t = l;
|
|
4699
4720
|
return (e, s) => (o(), u("div", Ln, [
|
|
4700
|
-
(o(!0), u(
|
|
4721
|
+
(o(!0), u(H, null, U(t.listData, (n, i) => (o(), g(xn, { key: i }, {
|
|
4701
4722
|
default: h(() => [
|
|
4702
|
-
|
|
4723
|
+
k(Pn, {
|
|
4703
4724
|
avatar: n.avatar,
|
|
4704
4725
|
icon: n.icon,
|
|
4705
4726
|
title: n.title,
|
|
@@ -4708,14 +4729,14 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4708
4729
|
]),
|
|
4709
4730
|
actions: h(() => [
|
|
4710
4731
|
n.actions && n.actions.length ? (o(), u("div", Dn, [
|
|
4711
|
-
(o(!0), u(
|
|
4732
|
+
(o(!0), u(H, null, U(n.actions, (r, d) => (o(), g(te, {
|
|
4712
4733
|
class: "ak-list-item-actions-buttons",
|
|
4713
4734
|
key: d,
|
|
4714
4735
|
type: "link",
|
|
4715
4736
|
onClick: r.onClick
|
|
4716
4737
|
}, {
|
|
4717
4738
|
default: h(() => [
|
|
4718
|
-
|
|
4739
|
+
F($(r.label), 1)
|
|
4719
4740
|
]),
|
|
4720
4741
|
_: 2
|
|
4721
4742
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -4723,7 +4744,7 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4723
4744
|
]),
|
|
4724
4745
|
_: 2
|
|
4725
4746
|
}, 1024))), 128)),
|
|
4726
|
-
|
|
4747
|
+
_("div", En, [
|
|
4727
4748
|
f(e.$slots, "default")
|
|
4728
4749
|
])
|
|
4729
4750
|
]));
|
|
@@ -4731,7 +4752,7 @@ const xn = /* @__PURE__ */ De($n, [["render", Mn]]), Bn = { class: "ak-list-item
|
|
|
4731
4752
|
});
|
|
4732
4753
|
const Vn = {
|
|
4733
4754
|
name: "MaSteps"
|
|
4734
|
-
}, wi = /* @__PURE__ */
|
|
4755
|
+
}, wi = /* @__PURE__ */ x({
|
|
4735
4756
|
...Vn,
|
|
4736
4757
|
props: {
|
|
4737
4758
|
current: { default: 0 },
|
|
@@ -4739,10 +4760,10 @@ const Vn = {
|
|
|
4739
4760
|
},
|
|
4740
4761
|
emits: ["update:current", "change"],
|
|
4741
4762
|
setup(l, { emit: t }) {
|
|
4742
|
-
const e = l, s = ae(), n =
|
|
4763
|
+
const e = l, s = ae(), n = D(), i = c(() => [
|
|
4743
4764
|
"ak-steps",
|
|
4744
4765
|
`ak-steps--${e.direction}`
|
|
4745
|
-
]), r =
|
|
4766
|
+
]), r = D((m) => {
|
|
4746
4767
|
d.value = m;
|
|
4747
4768
|
}), d = c({
|
|
4748
4769
|
get() {
|
|
@@ -4752,8 +4773,8 @@ const Vn = {
|
|
|
4752
4773
|
t("update:current", m), t("change", m);
|
|
4753
4774
|
}
|
|
4754
4775
|
}), p = () => {
|
|
4755
|
-
n.value.querySelectorAll(".ak-step").forEach((m,
|
|
4756
|
-
m.setAttribute("data-index",
|
|
4776
|
+
n.value.querySelectorAll(".ak-step").forEach((m, B) => {
|
|
4777
|
+
m.setAttribute("data-index", B.toString());
|
|
4757
4778
|
});
|
|
4758
4779
|
};
|
|
4759
4780
|
return ke("selectStep", r), ke("activeStep", d), re(
|
|
@@ -4763,10 +4784,10 @@ const Vn = {
|
|
|
4763
4784
|
}
|
|
4764
4785
|
), de(() => {
|
|
4765
4786
|
p();
|
|
4766
|
-
}), (m,
|
|
4787
|
+
}), (m, B) => (o(), u("div", {
|
|
4767
4788
|
ref_key: "maSteps",
|
|
4768
4789
|
ref: n,
|
|
4769
|
-
class:
|
|
4790
|
+
class: E(a(i))
|
|
4770
4791
|
}, [
|
|
4771
4792
|
f(m.$slots, "default")
|
|
4772
4793
|
], 2));
|
|
@@ -4781,7 +4802,7 @@ const Gn = { class: "ak-step__dot" }, On = {
|
|
|
4781
4802
|
}, Kn = {
|
|
4782
4803
|
key: 1,
|
|
4783
4804
|
class: "ak-step__description"
|
|
4784
|
-
}, jn = /* @__PURE__ */
|
|
4805
|
+
}, jn = /* @__PURE__ */ _("div", { class: "ak-step__separator" }, null, -1), Ci = /* @__PURE__ */ x({
|
|
4785
4806
|
__name: "index",
|
|
4786
4807
|
props: {
|
|
4787
4808
|
title: null,
|
|
@@ -4789,7 +4810,7 @@ const Gn = { class: "ak-step__dot" }, On = {
|
|
|
4789
4810
|
disabled: { type: Boolean, default: !1 }
|
|
4790
4811
|
},
|
|
4791
4812
|
setup(l) {
|
|
4792
|
-
const t = l, e = $e("selectStep"), s = $e("activeStep"), n =
|
|
4813
|
+
const t = l, e = $e("selectStep"), s = $e("activeStep"), n = D(null), i = c(() => Number(n.value?.getAttribute("data-index") || 0)), r = c(() => i.value === s?.value), d = c(() => !t.disabled && s?.value > i.value), p = c(() => [
|
|
4793
4814
|
"ak-step",
|
|
4794
4815
|
{
|
|
4795
4816
|
"ak-step--disabled": t.disabled
|
|
@@ -4803,27 +4824,27 @@ const Gn = { class: "ak-step__dot" }, On = {
|
|
|
4803
4824
|
]), m = () => {
|
|
4804
4825
|
t.disabled || e?.value && e.value(i.value);
|
|
4805
4826
|
};
|
|
4806
|
-
return (
|
|
4827
|
+
return (B, I) => (o(), u("div", {
|
|
4807
4828
|
ref_key: "maStep",
|
|
4808
4829
|
ref: n,
|
|
4809
|
-
class:
|
|
4830
|
+
class: E(a(p)),
|
|
4810
4831
|
onClick: m
|
|
4811
4832
|
}, [
|
|
4812
|
-
|
|
4833
|
+
_("div", Gn, [
|
|
4813
4834
|
a(d) ? (o(), g(a(C), {
|
|
4814
4835
|
key: 0,
|
|
4815
4836
|
name: "tick",
|
|
4816
4837
|
size: "md"
|
|
4817
|
-
})) : (o(), u("span", On,
|
|
4838
|
+
})) : (o(), u("span", On, $(a(i) + 1), 1))
|
|
4818
4839
|
]),
|
|
4819
|
-
|
|
4820
|
-
t?.title ||
|
|
4821
|
-
f(
|
|
4822
|
-
|
|
4840
|
+
_("div", Rn, [
|
|
4841
|
+
t?.title || B.$slots.title ? (o(), u("h3", Un, [
|
|
4842
|
+
f(B.$slots, "title"),
|
|
4843
|
+
F(" " + $(t?.title), 1)
|
|
4823
4844
|
])) : v("", !0),
|
|
4824
|
-
t?.description ||
|
|
4825
|
-
f(
|
|
4826
|
-
|
|
4845
|
+
t?.description || B.$slots.description ? (o(), u("p", Kn, [
|
|
4846
|
+
f(B.$slots, "description"),
|
|
4847
|
+
F(" " + $(t?.description), 1)
|
|
4827
4848
|
])) : v("", !0)
|
|
4828
4849
|
]),
|
|
4829
4850
|
jn
|