@mobileaction/action-kit 1.1.43 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-kit.js +4 -4
- package/dist/action-kit.mjs +778 -699
- package/dist/components/tabs/components/tabPane.vue.d.ts +2 -0
- package/dist/components/tabs/index.vue.d.ts +68 -0
- package/dist/components/tabs/types.d.ts +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/src/components/button/button.test.d.ts +1 -0
- package/dist/src/components/tabs/components/tabPane.vue.d.ts +7 -0
- package/dist/src/components/tabs/index.vue.d.ts +46 -0
- package/dist/src/components/tabs/stories/card.stories.d.ts +15 -0
- package/dist/src/components/tabs/stories/constants.d.ts +7 -0
- package/dist/src/components/tabs/stories/line.stories.d.ts +15 -0
- package/dist/src/components/tabs/types.d.ts +6 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as be, Switch as De, Tooltip as Le, Form as Ee, FormItem as Fe, Avatar as Re, Select as Ue, InputPassword as je, Input as Ve, Textarea as Oe, SelectOption as qe, Checkbox as He, CheckboxGroup as We, Radio as
|
|
1
|
+
import { defineComponent as k, computed as c, defineAsyncComponent as Me, openBlock as n, createBlock as m, resolveDynamicComponent as ee, unref as t, normalizeClass as R, mergeProps as M, createSlots as q, renderList as U, withCtx as v, renderSlot as _, createElementVNode as y, createVNode as B, createTextVNode as L, toDisplayString as w, createElementBlock as p, isRef as J, createCommentVNode as f, ref as E, Fragment as W, useSlots as ne, useAttrs as Be, watch as oe, Transition as _e, onMounted as re, onBeforeUnmount as ye, normalizeStyle as te, h as ze, createApp as Ie, onUnmounted as Se, withDirectives as Z, withModifiers as he, vShow as Y, normalizeProps as Te, reactive as Ae, readonly as Pe, toRefs as Ne } from "vue";
|
|
2
|
+
import { Button as be, Switch as De, Tooltip as Le, Form as Ee, FormItem as Fe, Avatar as Re, Select as Ue, InputPassword as je, Input as Ve, Textarea as Oe, SelectOption as qe, Checkbox as He, CheckboxGroup as We, Radio as Ke, RadioGroup as Ge, Alert as Je, Modal as Ze, Dropdown as Ye, Tabs as Xe, TabPane as Qe } from "ant-design-vue";
|
|
3
3
|
const ie = (a, s) => {
|
|
4
4
|
const e = a[s];
|
|
5
5
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((o, l) => {
|
|
6
6
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(l.bind(null, new Error("Unknown variable dynamic import: " + s)));
|
|
7
7
|
});
|
|
8
|
-
},
|
|
8
|
+
}, Zt = ["xs", "sm", "md", "lg", "xl"], es = {
|
|
9
9
|
xs: "w-4 h-4",
|
|
10
10
|
sm: "w-5 h-5",
|
|
11
11
|
md: "w-6 h-6",
|
|
12
12
|
lg: "w-8 h-8",
|
|
13
13
|
xl: "w-9 h-9"
|
|
14
|
-
},
|
|
14
|
+
}, ss = {
|
|
15
15
|
name: "MaIcon"
|
|
16
|
-
},
|
|
17
|
-
...
|
|
16
|
+
}, h = /* @__PURE__ */ k({
|
|
17
|
+
...ss,
|
|
18
18
|
props: {
|
|
19
19
|
name: null,
|
|
20
20
|
size: { default: "md" },
|
|
@@ -32,17 +32,17 @@ const ie = (a, s) => {
|
|
|
32
32
|
"ma-icon",
|
|
33
33
|
"ak-icon",
|
|
34
34
|
`ak-icon--${s.name}`,
|
|
35
|
-
|
|
35
|
+
es[s.size],
|
|
36
36
|
{ "animate-spin": s.spin }
|
|
37
37
|
]);
|
|
38
38
|
return (i, r) => (n(), m(ee(t(o)), {
|
|
39
39
|
class: R(t(l))
|
|
40
40
|
}, null, 8, ["class"]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), os = {
|
|
43
43
|
name: "MaButton"
|
|
44
|
-
},
|
|
45
|
-
...
|
|
44
|
+
}, Q = /* @__PURE__ */ k({
|
|
45
|
+
...os,
|
|
46
46
|
props: {
|
|
47
47
|
type: { default: "primary" },
|
|
48
48
|
variant: { default: "dark" },
|
|
@@ -87,22 +87,22 @@ const ie = (a, s) => {
|
|
|
87
87
|
type: t(o),
|
|
88
88
|
onKeyup: u,
|
|
89
89
|
role: "button"
|
|
90
|
-
}, g.$attrs, { "prefix-cls": "antd-btn" }),
|
|
91
|
-
U(g.$slots, (z,
|
|
92
|
-
name:
|
|
90
|
+
}, g.$attrs, { "prefix-cls": "antd-btn" }), q({ _: 2 }, [
|
|
91
|
+
U(g.$slots, (z, I) => ({
|
|
92
|
+
name: I,
|
|
93
93
|
fn: v(() => [
|
|
94
|
-
_(g.$slots,
|
|
94
|
+
_(g.$slots, I)
|
|
95
95
|
])
|
|
96
96
|
})),
|
|
97
97
|
t(i) ? {
|
|
98
98
|
name: "icon",
|
|
99
99
|
fn: v(() => [
|
|
100
|
-
e?.loading ? (n(), m(
|
|
100
|
+
e?.loading ? (n(), m(h, {
|
|
101
101
|
key: 0,
|
|
102
102
|
class: "ak-button__loader",
|
|
103
103
|
spin: "",
|
|
104
104
|
name: "loader"
|
|
105
|
-
})) : (n(), m(
|
|
105
|
+
})) : (n(), m(h, {
|
|
106
106
|
key: 1,
|
|
107
107
|
name: e?.icon
|
|
108
108
|
}, null, 8, ["name"]))
|
|
@@ -112,40 +112,40 @@ const ie = (a, s) => {
|
|
|
112
112
|
]), 1040, ["class", "href", "target", "disabled", "type"]));
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
|
-
const
|
|
115
|
+
const Yt = [
|
|
116
116
|
"primary",
|
|
117
117
|
"secondary",
|
|
118
118
|
"link",
|
|
119
119
|
"grey-link",
|
|
120
120
|
"social"
|
|
121
|
-
],
|
|
121
|
+
], Xt = [
|
|
122
122
|
"dark",
|
|
123
123
|
"plain",
|
|
124
124
|
"info",
|
|
125
125
|
"success",
|
|
126
126
|
"warning",
|
|
127
127
|
"danger"
|
|
128
|
-
],
|
|
128
|
+
], ts = [
|
|
129
129
|
"small",
|
|
130
130
|
"middle",
|
|
131
131
|
"large",
|
|
132
132
|
"x-large",
|
|
133
133
|
"2x-large"
|
|
134
|
-
],
|
|
134
|
+
], Qt = [
|
|
135
135
|
"default",
|
|
136
136
|
"round"
|
|
137
|
-
],
|
|
137
|
+
], en = [
|
|
138
138
|
"_blank",
|
|
139
139
|
"_self",
|
|
140
140
|
"_top",
|
|
141
141
|
"_parent"
|
|
142
|
-
],
|
|
142
|
+
], sn = [
|
|
143
143
|
"left",
|
|
144
144
|
"right"
|
|
145
|
-
],
|
|
145
|
+
], ns = { class: "icon-wrapper" }, as = {
|
|
146
146
|
name: "MaTrackButton"
|
|
147
|
-
},
|
|
148
|
-
...
|
|
147
|
+
}, on = /* @__PURE__ */ k({
|
|
148
|
+
...as,
|
|
149
149
|
props: {
|
|
150
150
|
variant: { default: "default" },
|
|
151
151
|
size: { default: "md" },
|
|
@@ -180,10 +180,10 @@ const Kt = [
|
|
|
180
180
|
disabled: s?.disabled || s?.loading,
|
|
181
181
|
role: "button",
|
|
182
182
|
"prefix-cls": "antd-btn"
|
|
183
|
-
}),
|
|
183
|
+
}), q({
|
|
184
184
|
icon: v(() => [
|
|
185
|
-
|
|
186
|
-
B(
|
|
185
|
+
y("div", ns, [
|
|
186
|
+
B(h, {
|
|
187
187
|
spin: s?.loading,
|
|
188
188
|
name: t(o),
|
|
189
189
|
size: t(l)
|
|
@@ -204,25 +204,25 @@ const Kt = [
|
|
|
204
204
|
]), 1040, ["class", "disabled"]));
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
const
|
|
207
|
+
const tn = [
|
|
208
208
|
"default"
|
|
209
|
-
],
|
|
209
|
+
], nn = [
|
|
210
210
|
"sm",
|
|
211
211
|
"md",
|
|
212
212
|
"lg"
|
|
213
|
-
],
|
|
213
|
+
], ls = {
|
|
214
214
|
key: 0,
|
|
215
215
|
class: "ma-toggle__titles"
|
|
216
|
-
},
|
|
216
|
+
}, is = {
|
|
217
217
|
key: 0,
|
|
218
218
|
class: "ma-toggle__titles__title"
|
|
219
|
-
},
|
|
219
|
+
}, rs = {
|
|
220
220
|
key: 1,
|
|
221
221
|
class: "ma-toggle__titles__sub-title"
|
|
222
|
-
},
|
|
222
|
+
}, cs = {
|
|
223
223
|
name: "MaToggle"
|
|
224
|
-
},
|
|
225
|
-
...
|
|
224
|
+
}, an = /* @__PURE__ */ k({
|
|
225
|
+
...cs,
|
|
226
226
|
props: {
|
|
227
227
|
size: { default: "default" },
|
|
228
228
|
disabled: { type: Boolean },
|
|
@@ -264,21 +264,21 @@ const en = [
|
|
|
264
264
|
unCheckedChildren: e.unCheckedChildren,
|
|
265
265
|
"prefix-cls": "antd-switch"
|
|
266
266
|
}), null, 16, ["checked", "disabled", "loading", "checkedChildren", "unCheckedChildren"]),
|
|
267
|
-
e.title || e.subTitle ? (n(), p("div",
|
|
268
|
-
e.title ? (n(), p("span",
|
|
269
|
-
e.subTitle ? (n(), p("span",
|
|
267
|
+
e.title || e.subTitle ? (n(), p("div", ls, [
|
|
268
|
+
e.title ? (n(), p("span", is, w(e.title), 1)) : f("", !0),
|
|
269
|
+
e.subTitle ? (n(), p("span", rs, w(e.subTitle), 1)) : f("", !0)
|
|
270
270
|
])) : f("", !0)
|
|
271
271
|
], 2));
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
-
const
|
|
274
|
+
const ln = [
|
|
275
275
|
"small",
|
|
276
276
|
"default",
|
|
277
277
|
"large"
|
|
278
|
-
],
|
|
278
|
+
], ps = ["aria-checked", "disabled"], us = {
|
|
279
279
|
name: "MaSwitch"
|
|
280
|
-
},
|
|
281
|
-
...
|
|
280
|
+
}, rn = /* @__PURE__ */ k({
|
|
281
|
+
...us,
|
|
282
282
|
props: {
|
|
283
283
|
active: null,
|
|
284
284
|
leftIcon: null,
|
|
@@ -317,35 +317,35 @@ const tn = [
|
|
|
317
317
|
"aria-checked": t(o) === e.rightValue,
|
|
318
318
|
disabled: e.disabled
|
|
319
319
|
}), [
|
|
320
|
-
|
|
320
|
+
y("span", {
|
|
321
321
|
class: R({ active: e.active === e.leftValue }),
|
|
322
322
|
onClick: u[0] || (u[0] = (g) => i(e.leftValue))
|
|
323
323
|
}, [
|
|
324
|
-
B(
|
|
324
|
+
B(h, {
|
|
325
325
|
name: e.leftIcon
|
|
326
326
|
}, null, 8, ["name"])
|
|
327
327
|
], 2),
|
|
328
|
-
|
|
328
|
+
y("span", {
|
|
329
329
|
class: R({ active: e.active === e.rightValue }),
|
|
330
330
|
onClick: u[1] || (u[1] = (g) => i(e.rightValue))
|
|
331
331
|
}, [
|
|
332
|
-
B(
|
|
332
|
+
B(h, {
|
|
333
333
|
name: e.rightIcon
|
|
334
334
|
}, null, 8, ["name"])
|
|
335
335
|
], 2)
|
|
336
|
-
], 16,
|
|
336
|
+
], 16, ps));
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
const
|
|
339
|
+
const cn = [
|
|
340
340
|
"primary",
|
|
341
341
|
"secondary"
|
|
342
|
-
],
|
|
342
|
+
], ds = { class: "ak-tooltip-overlay__content" }, ms = { class: "ak-tooltip-overlay__content__title" }, gs = {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "ak-tooltip-overlay__content__description"
|
|
345
|
-
},
|
|
345
|
+
}, vs = {
|
|
346
346
|
name: "MaTooltip"
|
|
347
|
-
}, ce = /* @__PURE__ */
|
|
348
|
-
...
|
|
347
|
+
}, ce = /* @__PURE__ */ k({
|
|
348
|
+
...vs,
|
|
349
349
|
props: {
|
|
350
350
|
placement: { default: "top" },
|
|
351
351
|
type: { default: "secondary" },
|
|
@@ -381,23 +381,23 @@ const an = [
|
|
|
381
381
|
"prefix-cls": "antd-tooltip"
|
|
382
382
|
}), {
|
|
383
383
|
title: v(() => [
|
|
384
|
-
s.icon ? (n(), m(
|
|
384
|
+
s.icon ? (n(), m(h, {
|
|
385
385
|
key: 0,
|
|
386
386
|
size: "xs",
|
|
387
387
|
name: s.icon
|
|
388
388
|
}, null, 8, ["name"])) : f("", !0),
|
|
389
389
|
_(r.$slots, "icon"),
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
y("div", ds, [
|
|
391
|
+
y("span", ms, [
|
|
392
392
|
L(w(s.title) + " ", 1),
|
|
393
393
|
_(r.$slots, "title")
|
|
394
394
|
]),
|
|
395
|
-
s?.description || r.$slots.description ? (n(), p("span",
|
|
395
|
+
s?.description || r.$slots.description ? (n(), p("span", gs, [
|
|
396
396
|
L(w(s.description) + " ", 1),
|
|
397
397
|
_(r.$slots, "description")
|
|
398
398
|
])) : f("", !0)
|
|
399
399
|
]),
|
|
400
|
-
s.closable ? (n(), m(
|
|
400
|
+
s.closable ? (n(), m(h, {
|
|
401
401
|
key: 1,
|
|
402
402
|
onClick: i,
|
|
403
403
|
class: "ak-tooltip-overlay__close",
|
|
@@ -412,7 +412,7 @@ const an = [
|
|
|
412
412
|
}, 16, ["visible", "class", "placement", "trigger", "overlayClassName"]));
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
|
-
const
|
|
415
|
+
const pn = [
|
|
416
416
|
"top",
|
|
417
417
|
"left",
|
|
418
418
|
"right",
|
|
@@ -425,41 +425,41 @@ const ln = [
|
|
|
425
425
|
"leftBottom",
|
|
426
426
|
"rightTop",
|
|
427
427
|
"rightBottom"
|
|
428
|
-
],
|
|
428
|
+
], un = [
|
|
429
429
|
"primary",
|
|
430
430
|
"secondary"
|
|
431
|
-
],
|
|
431
|
+
], dn = [
|
|
432
432
|
"hover",
|
|
433
433
|
"focus",
|
|
434
434
|
"click",
|
|
435
435
|
"contextmenu"
|
|
436
|
-
],
|
|
436
|
+
], fs = {
|
|
437
437
|
name: "MaNonHSFormsIgnore"
|
|
438
|
-
},
|
|
438
|
+
}, _s = (a, s) => {
|
|
439
439
|
const e = a.__vccOpts || a;
|
|
440
440
|
for (const [o, l] of s)
|
|
441
441
|
e[o] = l;
|
|
442
442
|
return e;
|
|
443
|
-
},
|
|
443
|
+
}, ys = /* @__PURE__ */ y("label", {
|
|
444
444
|
for: "cc-num",
|
|
445
445
|
class: "hidden"
|
|
446
|
-
}, "HubspotCollectedFormsWorkaround", -1),
|
|
446
|
+
}, "HubspotCollectedFormsWorkaround", -1), hs = /* @__PURE__ */ y("input", {
|
|
447
447
|
id: "cc-num",
|
|
448
448
|
name: "cc-num",
|
|
449
449
|
class: "hidden",
|
|
450
450
|
required: "",
|
|
451
451
|
value: "HubspotCollectedFormsWorkaround"
|
|
452
452
|
}, null, -1);
|
|
453
|
-
function
|
|
454
|
-
return n(), p(
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
function bs(a, s, e, o, l, i) {
|
|
454
|
+
return n(), p(W, null, [
|
|
455
|
+
ys,
|
|
456
|
+
hs
|
|
457
457
|
], 64);
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const ks = /* @__PURE__ */ _s(fs, [["render", bs]]), $s = {
|
|
460
460
|
name: "MaForm"
|
|
461
|
-
},
|
|
462
|
-
|
|
461
|
+
}, mn = /* @__PURE__ */ k({
|
|
462
|
+
...$s,
|
|
463
463
|
props: {
|
|
464
464
|
nonHubspotFormsIgnore: { type: Boolean, default: !0 }
|
|
465
465
|
},
|
|
@@ -478,22 +478,22 @@ const ys = /* @__PURE__ */ vs(gs, [["render", hs]]), bs = {
|
|
|
478
478
|
ref: o
|
|
479
479
|
}), {
|
|
480
480
|
default: v(() => [
|
|
481
|
-
e.nonHubspotFormsIgnore ? (n(), m(
|
|
481
|
+
e.nonHubspotFormsIgnore ? (n(), m(ks, { key: 0 })) : f("", !0),
|
|
482
482
|
_(d.$slots, "default")
|
|
483
483
|
]),
|
|
484
484
|
_: 3
|
|
485
485
|
}, 16));
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
|
-
const
|
|
488
|
+
const Cs = {
|
|
489
489
|
name: "MaFormItem"
|
|
490
|
-
},
|
|
491
|
-
...
|
|
490
|
+
}, gn = /* @__PURE__ */ k({
|
|
491
|
+
...Cs,
|
|
492
492
|
setup(a) {
|
|
493
493
|
return (s, e) => (n(), m(t(Fe), M(s.$attrs, {
|
|
494
494
|
class: "ma-form-item",
|
|
495
495
|
"prefix-cls": "antd-form"
|
|
496
|
-
}),
|
|
496
|
+
}), q({ _: 2 }, [
|
|
497
497
|
U(s.$slots, (o, l) => ({
|
|
498
498
|
name: l,
|
|
499
499
|
fn: v(() => [
|
|
@@ -502,11 +502,11 @@ const ks = {
|
|
|
502
502
|
}))
|
|
503
503
|
]), 1040));
|
|
504
504
|
}
|
|
505
|
-
}),
|
|
505
|
+
}), vn = [
|
|
506
506
|
"horizontal",
|
|
507
507
|
"vertical",
|
|
508
508
|
"inline"
|
|
509
|
-
],
|
|
509
|
+
], G = {
|
|
510
510
|
text: "text",
|
|
511
511
|
password: "password",
|
|
512
512
|
textarea: "textarea",
|
|
@@ -517,36 +517,36 @@ const ks = {
|
|
|
517
517
|
amount: "amount",
|
|
518
518
|
creditCard: "creditCard",
|
|
519
519
|
userInfo: "userInfo"
|
|
520
|
-
},
|
|
520
|
+
}, ws = {
|
|
521
521
|
small: "small",
|
|
522
522
|
medium: "medium",
|
|
523
523
|
large: "large"
|
|
524
|
-
},
|
|
524
|
+
}, fn = {
|
|
525
525
|
usd: "USD",
|
|
526
526
|
eur: "EUR",
|
|
527
527
|
gbp: "GBP",
|
|
528
528
|
jpy: "JPY"
|
|
529
|
-
},
|
|
529
|
+
}, xs = {
|
|
530
530
|
USD: "$",
|
|
531
531
|
EUR: "€",
|
|
532
532
|
GBP: "£",
|
|
533
533
|
JPY: "¥"
|
|
534
|
-
},
|
|
534
|
+
}, Ms = [
|
|
535
535
|
{ label: "USD", value: "USD" },
|
|
536
536
|
{ label: "EUR", value: "EUR" },
|
|
537
537
|
{ label: "GBP", value: "GBP" },
|
|
538
538
|
{ label: "JPY", value: "JPY" }
|
|
539
|
-
],
|
|
539
|
+
], Bs = {
|
|
540
540
|
name: "MaAvatar"
|
|
541
|
-
},
|
|
542
|
-
...
|
|
541
|
+
}, zs = /* @__PURE__ */ k({
|
|
542
|
+
...Bs,
|
|
543
543
|
setup(a) {
|
|
544
544
|
return (s, e) => (n(), m(t(Re), M(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
|
|
545
545
|
}
|
|
546
|
-
}),
|
|
546
|
+
}), Is = { class: "dropdown-wrapper" }, Ss = { class: "mobile-header" }, Ts = /* @__PURE__ */ y("label", null, "Select", -1), As = {
|
|
547
547
|
name: "MaDropdownRender"
|
|
548
|
-
},
|
|
549
|
-
...
|
|
548
|
+
}, Ps = /* @__PURE__ */ k({
|
|
549
|
+
...As,
|
|
550
550
|
props: {
|
|
551
551
|
menu: {
|
|
552
552
|
type: Object,
|
|
@@ -569,15 +569,15 @@ const ks = {
|
|
|
569
569
|
}), i = () => {
|
|
570
570
|
s("closeDropdown");
|
|
571
571
|
};
|
|
572
|
-
return (r, u) => (n(), p("div",
|
|
573
|
-
|
|
574
|
-
B(
|
|
572
|
+
return (r, u) => (n(), p("div", Is, [
|
|
573
|
+
y("div", Ss, [
|
|
574
|
+
B(h, {
|
|
575
575
|
size: "lg",
|
|
576
576
|
name: "close-circle",
|
|
577
577
|
onClick: i
|
|
578
578
|
}),
|
|
579
|
-
|
|
580
|
-
B(
|
|
579
|
+
Ts,
|
|
580
|
+
B(Q, {
|
|
581
581
|
type: "grey-link",
|
|
582
582
|
onClick: i
|
|
583
583
|
}, {
|
|
@@ -597,13 +597,13 @@ const ks = {
|
|
|
597
597
|
B(o, { vnodes: a.menu }, null, 8, ["vnodes"])
|
|
598
598
|
]));
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
600
|
+
}), Ns = {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "prefix-icon"
|
|
603
|
-
},
|
|
603
|
+
}, Ds = {
|
|
604
604
|
name: "MaSelect"
|
|
605
|
-
},
|
|
606
|
-
...
|
|
605
|
+
}, Ls = /* @__PURE__ */ k({
|
|
606
|
+
...Ds,
|
|
607
607
|
props: {
|
|
608
608
|
allowClear: { type: Boolean },
|
|
609
609
|
autoClearSearchValue: { type: Boolean, default: !0 },
|
|
@@ -657,16 +657,16 @@ const ks = {
|
|
|
657
657
|
e?.dropdownClassName,
|
|
658
658
|
"ma-select-dropdown",
|
|
659
659
|
!e?.mode && (o?.prefixIcon || e?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
660
|
-
].join(" ")), z = c(() => e?.loading ? "loader" : e?.suffixIcon),
|
|
660
|
+
].join(" ")), z = c(() => e?.loading ? "loader" : e?.suffixIcon), I = c(() => Object.keys(o).filter((F) => !["option"].includes(F))), T = c(() => e?.showArrow || !e?.mode), P = () => {
|
|
661
661
|
i.value = !0;
|
|
662
662
|
}, C = (F) => {
|
|
663
663
|
i.value = F, l.value = "";
|
|
664
|
-
},
|
|
664
|
+
}, A = c(() => !r.value && e?.showSearch), S = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : e?.listHeight, j = () => {
|
|
665
665
|
i.value = !1;
|
|
666
666
|
};
|
|
667
667
|
return (F, x) => (n(), m(t(Ue), M({
|
|
668
668
|
value: t(u),
|
|
669
|
-
"onUpdate:value": x[1] || (x[1] = (
|
|
669
|
+
"onUpdate:value": x[1] || (x[1] = ($) => J(u) ? u.value = $ : null)
|
|
670
670
|
}, F.$attrs, {
|
|
671
671
|
class: t(g),
|
|
672
672
|
allowClear: e?.allowClear,
|
|
@@ -681,24 +681,24 @@ const ks = {
|
|
|
681
681
|
options: e?.options,
|
|
682
682
|
placeholder: e?.placeholder,
|
|
683
683
|
searchValue: l.value || void 0,
|
|
684
|
-
showSearch: t(
|
|
685
|
-
showArrow: t(
|
|
684
|
+
showSearch: t(A),
|
|
685
|
+
showArrow: t(T),
|
|
686
686
|
mode: e?.mode,
|
|
687
|
-
"list-height":
|
|
687
|
+
"list-height": S(),
|
|
688
688
|
size: e?.size,
|
|
689
689
|
open: i.value,
|
|
690
690
|
onClick: P,
|
|
691
691
|
onDropdownVisibleChange: C,
|
|
692
692
|
"prefix-cls": "antd-select"
|
|
693
|
-
}),
|
|
693
|
+
}), q({
|
|
694
694
|
suffixIcon: v(() => [
|
|
695
|
-
B(
|
|
695
|
+
B(h, {
|
|
696
696
|
spin: e?.loading,
|
|
697
697
|
name: t(z) || "chevron-down"
|
|
698
698
|
}, null, 8, ["spin", "name"]),
|
|
699
|
-
F.$slots?.prefixIcon || e?.prefixIcon ? (n(), p("div",
|
|
699
|
+
F.$slots?.prefixIcon || e?.prefixIcon ? (n(), p("div", Ns, [
|
|
700
700
|
_(F.$slots, "prefixIcon", {}, () => [
|
|
701
|
-
e?.prefixIcon ? (n(), m(
|
|
701
|
+
e?.prefixIcon ? (n(), m(h, {
|
|
702
702
|
key: 0,
|
|
703
703
|
name: e?.prefixIcon
|
|
704
704
|
}, null, 8, ["name"])) : f("", !0)
|
|
@@ -706,23 +706,23 @@ const ks = {
|
|
|
706
706
|
])) : f("", !0)
|
|
707
707
|
]),
|
|
708
708
|
removeIcon: v(() => [
|
|
709
|
-
B(
|
|
709
|
+
B(h, {
|
|
710
710
|
name: e?.removeIcon || "close"
|
|
711
711
|
}, null, 8, ["name"])
|
|
712
712
|
]),
|
|
713
713
|
_: 2
|
|
714
714
|
}, [
|
|
715
|
-
U(t(
|
|
716
|
-
name:
|
|
715
|
+
U(t(I), ($) => ({
|
|
716
|
+
name: $,
|
|
717
717
|
fn: v(() => [
|
|
718
|
-
_(F.$slots,
|
|
718
|
+
_(F.$slots, $)
|
|
719
719
|
])
|
|
720
720
|
})),
|
|
721
721
|
F.$slots.option ? {
|
|
722
722
|
name: "option",
|
|
723
|
-
fn: v(({ label:
|
|
723
|
+
fn: v(({ label: $, value: N }) => [
|
|
724
724
|
_(F.$slots, "option", {
|
|
725
|
-
label:
|
|
725
|
+
label: $,
|
|
726
726
|
value: N
|
|
727
727
|
})
|
|
728
728
|
]),
|
|
@@ -731,7 +731,7 @@ const ks = {
|
|
|
731
731
|
e?.clearIcon ? {
|
|
732
732
|
name: "clearIcon",
|
|
733
733
|
fn: v(() => [
|
|
734
|
-
e?.clearIcon ? (n(), m(
|
|
734
|
+
e?.clearIcon ? (n(), m(h, {
|
|
735
735
|
key: 0,
|
|
736
736
|
name: e?.clearIcon
|
|
737
737
|
}, null, 8, ["name"])) : f("", !0)
|
|
@@ -741,7 +741,7 @@ const ks = {
|
|
|
741
741
|
e?.menuItemSelectedIcon ? {
|
|
742
742
|
name: "menuItemSelectedIcon",
|
|
743
743
|
fn: v(() => [
|
|
744
|
-
B(
|
|
744
|
+
B(h, {
|
|
745
745
|
name: e?.menuItemSelectedIcon
|
|
746
746
|
}, null, 8, ["name"])
|
|
747
747
|
]),
|
|
@@ -750,7 +750,7 @@ const ks = {
|
|
|
750
750
|
F.$slots.notFoundContent ? void 0 : {
|
|
751
751
|
name: "notFoundContent",
|
|
752
752
|
fn: v(() => [
|
|
753
|
-
B(
|
|
753
|
+
B(h, {
|
|
754
754
|
size: "sm",
|
|
755
755
|
name: "warning"
|
|
756
756
|
}),
|
|
@@ -760,11 +760,11 @@ const ks = {
|
|
|
760
760
|
},
|
|
761
761
|
t(r) && i.value ? {
|
|
762
762
|
name: "dropdownRender",
|
|
763
|
-
fn: v(({ menuNode:
|
|
764
|
-
B(
|
|
763
|
+
fn: v(({ menuNode: $ }) => [
|
|
764
|
+
B(Ps, {
|
|
765
765
|
filter: l.value,
|
|
766
766
|
"onUpdate:filter": x[0] || (x[0] = (N) => l.value = N),
|
|
767
|
-
menu:
|
|
767
|
+
menu: $,
|
|
768
768
|
onCloseDropdown: j
|
|
769
769
|
}, null, 8, ["filter", "menu"])
|
|
770
770
|
]),
|
|
@@ -773,24 +773,24 @@ const ks = {
|
|
|
773
773
|
]), 1040, ["value", "class", "allowClear", "autoClearSearchValue", "autofocus", "defaultOpen", "disabled", "dropdownClassName", "loading", "optionFilterProp", "optionLabelProp", "options", "placeholder", "searchValue", "showSearch", "showArrow", "mode", "list-height", "size", "open"]));
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
|
-
const
|
|
776
|
+
const Es = ["for"], Fs = {
|
|
777
777
|
key: 1,
|
|
778
778
|
class: "ak-input__wrapper"
|
|
779
|
-
},
|
|
779
|
+
}, Rs = {
|
|
780
780
|
key: 1,
|
|
781
781
|
class: "currency"
|
|
782
|
-
},
|
|
782
|
+
}, Us = {
|
|
783
783
|
key: 3,
|
|
784
784
|
class: "ak-input__hint-text"
|
|
785
|
-
},
|
|
785
|
+
}, js = {
|
|
786
786
|
name: "MaInput",
|
|
787
787
|
inheritAttrs: !1
|
|
788
|
-
}, ke = /* @__PURE__ */
|
|
789
|
-
...
|
|
788
|
+
}, ke = /* @__PURE__ */ k({
|
|
789
|
+
...js,
|
|
790
790
|
props: {
|
|
791
791
|
allowClear: { type: Boolean },
|
|
792
|
-
type: { default:
|
|
793
|
-
size: { default:
|
|
792
|
+
type: { default: G.text },
|
|
793
|
+
size: { default: ws.small },
|
|
794
794
|
title: null,
|
|
795
795
|
hintText: null,
|
|
796
796
|
hasError: { type: Boolean },
|
|
@@ -815,7 +815,7 @@ const Ds = ["for"], Ls = {
|
|
|
815
815
|
"focusout"
|
|
816
816
|
],
|
|
817
817
|
setup(a, { emit: s }) {
|
|
818
|
-
const e = a, o = Be(), l = E(null), i = c(() => [
|
|
818
|
+
const e = a, o = Be(), l = E(null), i = c(() => [G.amount, G.creditCard].includes(e.type) ? "number" : e.type === G.userInfo ? "text" : e.type), r = c(() => [
|
|
819
819
|
`ma-input ak-input ak-input--${e.type} ak-input--${e.size} ${o?.class}`,
|
|
820
820
|
{
|
|
821
821
|
"ak-input--has-error": e.hasError
|
|
@@ -830,42 +830,42 @@ const Ds = ["for"], Ls = {
|
|
|
830
830
|
get() {
|
|
831
831
|
return e.value;
|
|
832
832
|
},
|
|
833
|
-
set(
|
|
834
|
-
s("update:value",
|
|
833
|
+
set($) {
|
|
834
|
+
s("update:value", $);
|
|
835
835
|
}
|
|
836
|
-
}), d = c(() => e.amountCurrency ?
|
|
836
|
+
}), d = c(() => e.amountCurrency ? xs[e.amountCurrency] : null), z = c({
|
|
837
837
|
get() {
|
|
838
838
|
return e.amountCurrency;
|
|
839
839
|
},
|
|
840
|
-
set(
|
|
841
|
-
s("update:amountCurrency",
|
|
840
|
+
set($) {
|
|
841
|
+
s("update:amountCurrency", $);
|
|
842
842
|
}
|
|
843
|
-
}),
|
|
844
|
-
let
|
|
845
|
-
return o?.class && delete
|
|
846
|
-
}),
|
|
847
|
-
s("change",
|
|
848
|
-
},
|
|
849
|
-
s("currency-change",
|
|
843
|
+
}), I = c(() => e.type === G.password ? je : Ve), T = c(() => e.type === G.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), P = c(() => e.type === G.url ? "https" : e?.addonBefore), C = c(() => {
|
|
844
|
+
let $ = { ...o, ...T.value };
|
|
845
|
+
return o?.class && delete $?.class, $;
|
|
846
|
+
}), A = ($) => {
|
|
847
|
+
s("change", $);
|
|
848
|
+
}, S = ($) => {
|
|
849
|
+
s("currency-change", $);
|
|
850
850
|
}, j = () => {
|
|
851
851
|
l.value.focus();
|
|
852
|
-
}, F = (
|
|
853
|
-
s("focus",
|
|
854
|
-
}, x = (
|
|
855
|
-
s("focusout",
|
|
852
|
+
}, F = ($) => {
|
|
853
|
+
s("focus", $);
|
|
854
|
+
}, x = ($) => {
|
|
855
|
+
s("focusout", $);
|
|
856
856
|
};
|
|
857
|
-
return (
|
|
857
|
+
return ($, N) => (n(), p("div", {
|
|
858
858
|
class: R(t(r))
|
|
859
859
|
}, [
|
|
860
|
-
_(
|
|
860
|
+
_($.$slots, "title"),
|
|
861
861
|
e.title ? (n(), p("label", {
|
|
862
862
|
key: 0,
|
|
863
863
|
onClick: j,
|
|
864
864
|
class: "ak-input__title",
|
|
865
|
-
for:
|
|
866
|
-
}, w(e.title), 9,
|
|
867
|
-
e.type !== "textarea" ? (n(), p("div",
|
|
868
|
-
(n(), m(ee(t(
|
|
865
|
+
for: $.$attrs?.id
|
|
866
|
+
}, w(e.title), 9, Es)) : f("", !0),
|
|
867
|
+
e.type !== "textarea" ? (n(), p("div", Fs, [
|
|
868
|
+
(n(), m(ee(t(I)), M({
|
|
869
869
|
value: t(g),
|
|
870
870
|
"onUpdate:value": N[1] || (N[1] = (O) => J(g) ? g.value = O : null)
|
|
871
871
|
}, t(C), {
|
|
@@ -876,35 +876,35 @@ const Ds = ["for"], Ls = {
|
|
|
876
876
|
addonBefore: t(P),
|
|
877
877
|
addonAfter: a.addonAfter,
|
|
878
878
|
class: t(u),
|
|
879
|
-
onChange:
|
|
879
|
+
onChange: A,
|
|
880
880
|
onFocus: F,
|
|
881
881
|
onFocusout: x,
|
|
882
882
|
ref_key: "inputRef",
|
|
883
883
|
ref: l
|
|
884
|
-
}),
|
|
884
|
+
}), q({
|
|
885
885
|
prefix: v(() => [
|
|
886
|
-
e.prefixIcon ? (n(), m(
|
|
886
|
+
e.prefixIcon ? (n(), m(h, {
|
|
887
887
|
key: 0,
|
|
888
888
|
size: "xs",
|
|
889
889
|
name: e.prefixIcon
|
|
890
|
-
}, null, 8, ["name"])) : t(d) ? (n(), p("span",
|
|
890
|
+
}, null, 8, ["name"])) : t(d) ? (n(), p("span", Rs, w(t(d)), 1)) : e.type === t(G).userInfo ? (n(), m(zs, {
|
|
891
891
|
key: 2,
|
|
892
892
|
src: e.avatarUrl,
|
|
893
893
|
disabled: e.disabled
|
|
894
894
|
}, null, 8, ["src", "disabled"])) : f("", !0)
|
|
895
895
|
]),
|
|
896
896
|
suffix: v(() => [
|
|
897
|
-
e.type === "amount" ? (n(), m(
|
|
897
|
+
e.type === "amount" ? (n(), m(Ls, {
|
|
898
898
|
key: 0,
|
|
899
899
|
value: t(z),
|
|
900
900
|
"onUpdate:value": N[0] || (N[0] = (O) => J(z) ? z.value = O : null),
|
|
901
|
-
onChange:
|
|
901
|
+
onChange: S,
|
|
902
902
|
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
903
|
-
options: t(
|
|
903
|
+
options: t(Ms),
|
|
904
904
|
disabled: e.disabled,
|
|
905
905
|
size: "small"
|
|
906
906
|
}, null, 8, ["value", "options", "disabled"])) : f("", !0),
|
|
907
|
-
e.suffixIcon ? (n(), m(
|
|
907
|
+
e.suffixIcon ? (n(), m(h, {
|
|
908
908
|
key: 1,
|
|
909
909
|
size: "xs",
|
|
910
910
|
name: e.suffixIcon
|
|
@@ -912,10 +912,10 @@ const Ds = ["for"], Ls = {
|
|
|
912
912
|
]),
|
|
913
913
|
_: 2
|
|
914
914
|
}, [
|
|
915
|
-
U(
|
|
916
|
-
name:
|
|
915
|
+
U($.$slots, (O, K) => ({
|
|
916
|
+
name: K,
|
|
917
917
|
fn: v(() => [
|
|
918
|
-
_(
|
|
918
|
+
_($.$slots, K)
|
|
919
919
|
])
|
|
920
920
|
}))
|
|
921
921
|
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter", "class"]))
|
|
@@ -927,31 +927,31 @@ const Ds = ["for"], Ls = {
|
|
|
927
927
|
class: t(u),
|
|
928
928
|
disabled: e?.disabled,
|
|
929
929
|
placeholder: e?.placeholder,
|
|
930
|
-
onChange:
|
|
930
|
+
onChange: A,
|
|
931
931
|
ref_key: "inputRef",
|
|
932
932
|
ref: l
|
|
933
|
-
}),
|
|
934
|
-
U(
|
|
935
|
-
name:
|
|
933
|
+
}), q({ _: 2 }, [
|
|
934
|
+
U($.$slots, (O, K) => ({
|
|
935
|
+
name: K,
|
|
936
936
|
fn: v(() => [
|
|
937
|
-
_(
|
|
937
|
+
_($.$slots, K)
|
|
938
938
|
])
|
|
939
939
|
}))
|
|
940
940
|
]), 1040, ["value", "class", "disabled", "placeholder"])),
|
|
941
|
-
_(
|
|
942
|
-
e.hintText ? (n(), p("div",
|
|
941
|
+
_($.$slots, "hint"),
|
|
942
|
+
e.hintText ? (n(), p("div", Us, w(e.hintText), 1)) : f("", !0)
|
|
943
943
|
], 2));
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
|
-
const
|
|
946
|
+
const Vs = {
|
|
947
947
|
name: "MaSelectOption"
|
|
948
|
-
},
|
|
949
|
-
...
|
|
948
|
+
}, _n = /* @__PURE__ */ k({
|
|
949
|
+
...Vs,
|
|
950
950
|
setup(a) {
|
|
951
951
|
return (s, e) => (n(), m(t(qe), M(s.$attrs, {
|
|
952
952
|
class: "ma-select-option",
|
|
953
953
|
"prefix-cls": "antd-select"
|
|
954
|
-
}),
|
|
954
|
+
}), q({ _: 2 }, [
|
|
955
955
|
U(s.$slots, (o, l) => ({
|
|
956
956
|
name: l,
|
|
957
957
|
fn: v(() => [
|
|
@@ -960,17 +960,17 @@ const Us = {
|
|
|
960
960
|
}))
|
|
961
961
|
]), 1040));
|
|
962
962
|
}
|
|
963
|
-
}),
|
|
963
|
+
}), yn = [
|
|
964
964
|
"default",
|
|
965
965
|
"large",
|
|
966
966
|
"small"
|
|
967
|
-
],
|
|
967
|
+
], hn = [
|
|
968
968
|
"multiple",
|
|
969
969
|
"tags"
|
|
970
|
-
],
|
|
970
|
+
], Os = {
|
|
971
971
|
name: "MaCheckbox"
|
|
972
|
-
},
|
|
973
|
-
...
|
|
972
|
+
}, bn = /* @__PURE__ */ k({
|
|
973
|
+
...Os,
|
|
974
974
|
props: {
|
|
975
975
|
hint: null,
|
|
976
976
|
indeterminate: { type: Boolean, default: void 0 },
|
|
@@ -989,7 +989,7 @@ const Us = {
|
|
|
989
989
|
disabled: s?.disabled,
|
|
990
990
|
indeterminate: s?.indeterminate,
|
|
991
991
|
"prefix-cls": "antd-checkbox"
|
|
992
|
-
}),
|
|
992
|
+
}), q({ _: 2 }, [
|
|
993
993
|
U(o.$slots, (i, r) => ({
|
|
994
994
|
name: r,
|
|
995
995
|
fn: v(() => [
|
|
@@ -1003,10 +1003,10 @@ const Us = {
|
|
|
1003
1003
|
]), 1040, ["class", "disabled", "indeterminate"]));
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
|
-
const
|
|
1006
|
+
const qs = {
|
|
1007
1007
|
name: "MaCheckboxGroup"
|
|
1008
|
-
},
|
|
1009
|
-
...
|
|
1008
|
+
}, kn = /* @__PURE__ */ k({
|
|
1009
|
+
...qs,
|
|
1010
1010
|
props: {
|
|
1011
1011
|
hint: null,
|
|
1012
1012
|
disabled: { type: Boolean }
|
|
@@ -1016,7 +1016,7 @@ const Vs = {
|
|
|
1016
1016
|
return (e, o) => (n(), m(t(We), M(e.$attrs, {
|
|
1017
1017
|
class: "ak-checkbox-group ma-checkbox-group",
|
|
1018
1018
|
"prefix-cls": "antd-checkbox"
|
|
1019
|
-
}),
|
|
1019
|
+
}), q({ _: 2 }, [
|
|
1020
1020
|
U(e.$slots, (l, i) => ({
|
|
1021
1021
|
name: i,
|
|
1022
1022
|
fn: v(() => [
|
|
@@ -1029,7 +1029,7 @@ const Vs = {
|
|
|
1029
1029
|
}))
|
|
1030
1030
|
]), 1040));
|
|
1031
1031
|
}
|
|
1032
|
-
}),
|
|
1032
|
+
}), Hs = ["value"], Ws = /* @__PURE__ */ k({
|
|
1033
1033
|
__name: "singleNumericInput",
|
|
1034
1034
|
props: {
|
|
1035
1035
|
value: { default: "" },
|
|
@@ -1058,12 +1058,12 @@ const Vs = {
|
|
|
1058
1058
|
maxlength: "1",
|
|
1059
1059
|
pattern: "[0-9]",
|
|
1060
1060
|
inputmode: "numeric"
|
|
1061
|
-
}), null, 16,
|
|
1061
|
+
}), null, 16, Hs));
|
|
1062
1062
|
}
|
|
1063
|
-
}),
|
|
1063
|
+
}), Ks = {
|
|
1064
1064
|
name: "MaNumericInput"
|
|
1065
|
-
},
|
|
1066
|
-
...
|
|
1065
|
+
}, $n = /* @__PURE__ */ k({
|
|
1066
|
+
...Ks,
|
|
1067
1067
|
props: {
|
|
1068
1068
|
disabled: { type: Boolean },
|
|
1069
1069
|
length: { default: 6 },
|
|
@@ -1074,7 +1074,7 @@ const Vs = {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
emits: ["update:value"],
|
|
1076
1076
|
setup(a, { emit: s }) {
|
|
1077
|
-
const e = a, o = E(null), l = E(Array.from({ length: e.length }, (C,
|
|
1077
|
+
const e = a, o = E(null), l = E(Array.from({ length: e.length }, (C, A) => e.value[A] || null)), i = c(() => [
|
|
1078
1078
|
"ma-numeric-input",
|
|
1079
1079
|
`ma-numeric-input--${e.size}`,
|
|
1080
1080
|
{
|
|
@@ -1083,38 +1083,38 @@ const Vs = {
|
|
|
1083
1083
|
{
|
|
1084
1084
|
"ma-numeric-input--disabled": e?.disabled
|
|
1085
1085
|
}
|
|
1086
|
-
]), r = c(() => e?.placeholderStatus ? "0" : null), u = (C) => /^Digit[0-9]$/.test(C), g = (C) => o.value = C, d = (C,
|
|
1086
|
+
]), r = c(() => e?.placeholderStatus ? "0" : null), u = (C) => /^Digit[0-9]$/.test(C), g = (C) => o.value = C, d = (C, A) => {
|
|
1087
1087
|
switch (C.code) {
|
|
1088
1088
|
case "Backspace":
|
|
1089
1089
|
case "Delete":
|
|
1090
|
-
|
|
1090
|
+
T("", A), I();
|
|
1091
1091
|
break;
|
|
1092
1092
|
case "ArrowLeft":
|
|
1093
|
-
C.preventDefault(),
|
|
1093
|
+
C.preventDefault(), I();
|
|
1094
1094
|
break;
|
|
1095
1095
|
case "ArrowRight":
|
|
1096
1096
|
C.preventDefault(), z();
|
|
1097
1097
|
break;
|
|
1098
1098
|
default:
|
|
1099
|
-
u(C.code) && (C.preventDefault(),
|
|
1099
|
+
u(C.code) && (C.preventDefault(), T(C.key, A), z());
|
|
1100
1100
|
break;
|
|
1101
1101
|
}
|
|
1102
1102
|
}, z = () => {
|
|
1103
1103
|
o.value < e.length && o.value++;
|
|
1104
|
-
},
|
|
1104
|
+
}, I = () => {
|
|
1105
1105
|
e.length >= o.value && o.value > 0 && o.value--;
|
|
1106
|
-
},
|
|
1107
|
-
l.value[
|
|
1108
|
-
}, P = (C,
|
|
1106
|
+
}, T = (C, A) => {
|
|
1107
|
+
l.value[A] = C;
|
|
1108
|
+
}, P = (C, A) => {
|
|
1109
1109
|
C.preventDefault();
|
|
1110
|
-
const
|
|
1111
|
-
|
|
1110
|
+
const S = C.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, e.length);
|
|
1111
|
+
S.length === 1 && S.match(/^\d+$/) ? l.value[A] = S : S.match(/^\d+$/) && (l.value = S.split(""));
|
|
1112
1112
|
};
|
|
1113
1113
|
return oe(
|
|
1114
1114
|
() => l.value,
|
|
1115
1115
|
(C) => {
|
|
1116
|
-
const
|
|
1117
|
-
s("update:value",
|
|
1116
|
+
const A = C.join("");
|
|
1117
|
+
s("update:value", A);
|
|
1118
1118
|
},
|
|
1119
1119
|
{ deep: !0 }
|
|
1120
1120
|
), oe(
|
|
@@ -1122,29 +1122,29 @@ const Vs = {
|
|
|
1122
1122
|
(C) => {
|
|
1123
1123
|
C !== l.value.join("") && C && C.match(/^\d+$/) && (l.value = C.split("").slice(0, e.length));
|
|
1124
1124
|
}
|
|
1125
|
-
), (C,
|
|
1126
|
-
(n(!0), p(
|
|
1127
|
-
focus: o.value ===
|
|
1128
|
-
key:
|
|
1125
|
+
), (C, A) => (n(), p("div", M({ class: t(i) }, C.$attrs), [
|
|
1126
|
+
(n(!0), p(W, null, U(e.length, (S) => (n(), m(Ws, {
|
|
1127
|
+
focus: o.value === S - 1,
|
|
1128
|
+
key: S,
|
|
1129
1129
|
placeholder: t(r),
|
|
1130
|
-
value: l.value[
|
|
1130
|
+
value: l.value[S - 1],
|
|
1131
1131
|
disabled: e.disabled,
|
|
1132
|
-
onFocus: (j) => g(
|
|
1133
|
-
onKeydown: (j) => d(j,
|
|
1134
|
-
onPaste: (j) => P(j,
|
|
1132
|
+
onFocus: (j) => g(S - 1),
|
|
1133
|
+
onKeydown: (j) => d(j, S - 1),
|
|
1134
|
+
onPaste: (j) => P(j, S - 1),
|
|
1135
1135
|
class: "ma-numeric-input__input"
|
|
1136
1136
|
}, null, 8, ["focus", "placeholder", "value", "disabled", "onFocus", "onKeydown", "onPaste"]))), 128))
|
|
1137
1137
|
], 16));
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
|
-
const
|
|
1140
|
+
const Cn = [
|
|
1141
1141
|
"small",
|
|
1142
1142
|
"medium",
|
|
1143
1143
|
"large"
|
|
1144
|
-
],
|
|
1144
|
+
], Gs = {
|
|
1145
1145
|
name: "MaRadio"
|
|
1146
|
-
},
|
|
1147
|
-
...
|
|
1146
|
+
}, Js = /* @__PURE__ */ k({
|
|
1147
|
+
...Gs,
|
|
1148
1148
|
props: {
|
|
1149
1149
|
type: { default: "button" },
|
|
1150
1150
|
hint: null,
|
|
@@ -1152,10 +1152,10 @@ const bn = [
|
|
|
1152
1152
|
},
|
|
1153
1153
|
setup(a) {
|
|
1154
1154
|
const s = a, e = c(() => [`ma-radio ma-radio--${s.type}`]);
|
|
1155
|
-
return (o, l) => (n(), m(t(
|
|
1155
|
+
return (o, l) => (n(), m(t(Ke), M(o.$attrs, {
|
|
1156
1156
|
class: t(e),
|
|
1157
1157
|
"prefix-cls": "antd-radio"
|
|
1158
|
-
}),
|
|
1158
|
+
}), q({ _: 2 }, [
|
|
1159
1159
|
U(o.$slots, (i, r) => ({
|
|
1160
1160
|
name: r,
|
|
1161
1161
|
fn: v(() => [
|
|
@@ -1169,13 +1169,13 @@ const bn = [
|
|
|
1169
1169
|
]), 1040, ["class"]));
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
|
-
const
|
|
1172
|
+
const Zs = ["aria-checked", "disabled"], Ys = ["src", "alt"], Xs = { class: "ma-app-track-button__text" }, Qs = { class: "ma-app-track-button__text__title" }, eo = {
|
|
1173
1173
|
key: 0,
|
|
1174
1174
|
class: "ma-app-track-button__text__category"
|
|
1175
|
-
},
|
|
1175
|
+
}, so = { class: "ma-app-track-button__check" }, oo = {
|
|
1176
1176
|
name: "MaAppTrackButton"
|
|
1177
|
-
},
|
|
1178
|
-
...
|
|
1177
|
+
}, wn = /* @__PURE__ */ k({
|
|
1178
|
+
...oo,
|
|
1179
1179
|
props: {
|
|
1180
1180
|
checked: { type: Boolean, default: !1 },
|
|
1181
1181
|
appIcon: null,
|
|
@@ -1207,32 +1207,32 @@ const Ks = ["aria-checked", "disabled"], Js = ["src", "alt"], Zs = { class: "ma-
|
|
|
1207
1207
|
"aria-checked": e.checked,
|
|
1208
1208
|
disabled: e.disabled
|
|
1209
1209
|
}, i.$attrs, { onClick: o }), [
|
|
1210
|
-
|
|
1210
|
+
y("img", {
|
|
1211
1211
|
src: e.appIcon,
|
|
1212
1212
|
alt: e.appName,
|
|
1213
1213
|
width: "40",
|
|
1214
1214
|
height: "40"
|
|
1215
|
-
}, null, 8,
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
e.appCategory ? (n(), p("span",
|
|
1215
|
+
}, null, 8, Ys),
|
|
1216
|
+
y("span", Xs, [
|
|
1217
|
+
y("span", Qs, w(e.appName), 1),
|
|
1218
|
+
e.appCategory ? (n(), p("span", eo, w(e?.appCategory), 1)) : f("", !0)
|
|
1219
1219
|
]),
|
|
1220
|
-
|
|
1220
|
+
y("span", so, [
|
|
1221
1221
|
B(_e, {
|
|
1222
1222
|
name: "fade",
|
|
1223
1223
|
mode: "out-in"
|
|
1224
1224
|
}, {
|
|
1225
1225
|
default: v(() => [
|
|
1226
|
-
e.loading ? (n(), m(
|
|
1226
|
+
e.loading ? (n(), m(h, {
|
|
1227
1227
|
key: 0,
|
|
1228
1228
|
name: "loader",
|
|
1229
1229
|
size: "xs",
|
|
1230
1230
|
spin: ""
|
|
1231
|
-
})) : !e.multiple || e.checked ? (n(), m(
|
|
1231
|
+
})) : !e.multiple || e.checked ? (n(), m(Js, {
|
|
1232
1232
|
key: 1,
|
|
1233
1233
|
checked: e.checked,
|
|
1234
1234
|
type: "check"
|
|
1235
|
-
}, null, 8, ["checked"])) : (n(), m(
|
|
1235
|
+
}, null, 8, ["checked"])) : (n(), m(h, {
|
|
1236
1236
|
key: 2,
|
|
1237
1237
|
name: "add-circle",
|
|
1238
1238
|
size: "xs"
|
|
@@ -1241,25 +1241,25 @@ const Ks = ["aria-checked", "disabled"], Js = ["src", "alt"], Zs = { class: "ma-
|
|
|
1241
1241
|
_: 1
|
|
1242
1242
|
})
|
|
1243
1243
|
])
|
|
1244
|
-
], 16,
|
|
1244
|
+
], 16, Zs));
|
|
1245
1245
|
}
|
|
1246
1246
|
});
|
|
1247
|
-
const
|
|
1247
|
+
const to = { class: "ak-app-icon__logo" }, no = ["src"], ao = {
|
|
1248
1248
|
key: 1,
|
|
1249
1249
|
class: "ak-app-icon-platform"
|
|
1250
|
-
},
|
|
1250
|
+
}, lo = {
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
class: "ak-app-icon__text"
|
|
1253
|
-
},
|
|
1253
|
+
}, io = {
|
|
1254
1254
|
key: 0,
|
|
1255
1255
|
class: "ak-app-name"
|
|
1256
|
-
},
|
|
1256
|
+
}, ro = {
|
|
1257
1257
|
key: 1,
|
|
1258
1258
|
class: "ak-app-description"
|
|
1259
|
-
},
|
|
1259
|
+
}, co = {
|
|
1260
1260
|
name: "MaAppIcon"
|
|
1261
|
-
},
|
|
1262
|
-
...
|
|
1261
|
+
}, xn = /* @__PURE__ */ k({
|
|
1262
|
+
...co,
|
|
1263
1263
|
props: {
|
|
1264
1264
|
appIcon: null,
|
|
1265
1265
|
appName: null,
|
|
@@ -1283,50 +1283,50 @@ const so = { class: "ak-app-icon__logo" }, oo = ["src"], to = {
|
|
|
1283
1283
|
return (r, u) => (n(), p("div", {
|
|
1284
1284
|
class: R(t(l))
|
|
1285
1285
|
}, [
|
|
1286
|
-
|
|
1286
|
+
y("div", to, [
|
|
1287
1287
|
e.closable ? (n(), p("span", {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
onClick: i,
|
|
1290
1290
|
class: "ak-app-icon-closable"
|
|
1291
1291
|
}, [
|
|
1292
|
-
B(
|
|
1292
|
+
B(h, {
|
|
1293
1293
|
size: "xs",
|
|
1294
1294
|
name: "close-circle"
|
|
1295
1295
|
})
|
|
1296
1296
|
])) : f("", !0),
|
|
1297
|
-
|
|
1297
|
+
y("img", {
|
|
1298
1298
|
class: "ak-app-icon-img",
|
|
1299
1299
|
src: e.appIcon
|
|
1300
|
-
}, null, 8,
|
|
1301
|
-
e?.platform ? (n(), p("span",
|
|
1302
|
-
B(
|
|
1300
|
+
}, null, 8, no),
|
|
1301
|
+
e?.platform ? (n(), p("span", ao, [
|
|
1302
|
+
B(h, {
|
|
1303
1303
|
size: "xs",
|
|
1304
1304
|
name: t(o)
|
|
1305
1305
|
}, null, 8, ["name"])
|
|
1306
1306
|
])) : f("", !0)
|
|
1307
1307
|
]),
|
|
1308
|
-
e?.appName || e?.appDescription ? (n(), p("div",
|
|
1309
|
-
e?.appName ? (n(), p("span",
|
|
1310
|
-
e?.appDescription ? (n(), p("span",
|
|
1308
|
+
e?.appName || e?.appDescription ? (n(), p("div", lo, [
|
|
1309
|
+
e?.appName ? (n(), p("span", io, w(e.appName), 1)) : f("", !0),
|
|
1310
|
+
e?.appDescription ? (n(), p("span", ro, w(e.appDescription), 1)) : f("", !0)
|
|
1311
1311
|
])) : f("", !0)
|
|
1312
1312
|
], 2));
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
1315
|
-
const
|
|
1315
|
+
const Mn = [
|
|
1316
1316
|
"x-small",
|
|
1317
1317
|
"small",
|
|
1318
1318
|
"medium",
|
|
1319
1319
|
"large",
|
|
1320
1320
|
"x-large"
|
|
1321
|
-
],
|
|
1321
|
+
], Bn = [
|
|
1322
1322
|
"play",
|
|
1323
1323
|
"ios"
|
|
1324
|
-
],
|
|
1324
|
+
], po = {
|
|
1325
1325
|
name: "MaRadioGroup"
|
|
1326
|
-
},
|
|
1327
|
-
...
|
|
1326
|
+
}, zn = /* @__PURE__ */ k({
|
|
1327
|
+
...po,
|
|
1328
1328
|
setup(a) {
|
|
1329
|
-
return (s, e) => (n(), m(t(
|
|
1329
|
+
return (s, e) => (n(), m(t(Ge), M(s.$attrs, { "prefix-cls": "antd-radio" }), q({ _: 2 }, [
|
|
1330
1330
|
U(s.$slots, (o, l) => ({
|
|
1331
1331
|
name: l,
|
|
1332
1332
|
fn: v(() => [
|
|
@@ -1335,13 +1335,13 @@ const Cn = [
|
|
|
1335
1335
|
}))
|
|
1336
1336
|
]), 1040));
|
|
1337
1337
|
}
|
|
1338
|
-
}),
|
|
1338
|
+
}), In = [
|
|
1339
1339
|
"button",
|
|
1340
1340
|
"check"
|
|
1341
|
-
],
|
|
1341
|
+
], uo = {
|
|
1342
1342
|
name: "MaBadge"
|
|
1343
|
-
},
|
|
1344
|
-
...
|
|
1343
|
+
}, mo = /* @__PURE__ */ k({
|
|
1344
|
+
...uo,
|
|
1345
1345
|
props: {
|
|
1346
1346
|
type: { default: "primary" },
|
|
1347
1347
|
variant: { default: "dark" },
|
|
@@ -1362,7 +1362,7 @@ const Cn = [
|
|
|
1362
1362
|
return (o, l) => (n(), p("div", {
|
|
1363
1363
|
class: R(t(e))
|
|
1364
1364
|
}, [
|
|
1365
|
-
s?.icon ? (n(), m(
|
|
1365
|
+
s?.icon ? (n(), m(h, {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
name: s?.icon
|
|
1368
1368
|
}, null, 8, ["name"])) : f("", !0),
|
|
@@ -1370,7 +1370,7 @@ const Cn = [
|
|
|
1370
1370
|
], 2));
|
|
1371
1371
|
}
|
|
1372
1372
|
});
|
|
1373
|
-
const
|
|
1373
|
+
const Sn = [
|
|
1374
1374
|
"dark",
|
|
1375
1375
|
"blue",
|
|
1376
1376
|
"green",
|
|
@@ -1378,23 +1378,23 @@ const Bn = [
|
|
|
1378
1378
|
"red",
|
|
1379
1379
|
"purple",
|
|
1380
1380
|
"purple-light"
|
|
1381
|
-
],
|
|
1381
|
+
], Tn = [
|
|
1382
1382
|
"primary",
|
|
1383
1383
|
"secondary",
|
|
1384
1384
|
"line",
|
|
1385
1385
|
"dashed",
|
|
1386
1386
|
"icon"
|
|
1387
|
-
],
|
|
1387
|
+
], An = [
|
|
1388
1388
|
"small",
|
|
1389
1389
|
"medium",
|
|
1390
1390
|
"large"
|
|
1391
|
-
],
|
|
1391
|
+
], Pn = [
|
|
1392
1392
|
"left",
|
|
1393
1393
|
"right"
|
|
1394
|
-
],
|
|
1394
|
+
], go = {
|
|
1395
1395
|
name: "MaAlert"
|
|
1396
|
-
},
|
|
1397
|
-
...
|
|
1396
|
+
}, Nn = /* @__PURE__ */ k({
|
|
1397
|
+
...go,
|
|
1398
1398
|
props: {
|
|
1399
1399
|
variant: { default: "dark" },
|
|
1400
1400
|
type: { default: "primary" },
|
|
@@ -1414,13 +1414,13 @@ const Bn = [
|
|
|
1414
1414
|
"prefix-cls": "antd-alert"
|
|
1415
1415
|
}), {
|
|
1416
1416
|
closeIcon: v(() => [
|
|
1417
|
-
B(
|
|
1417
|
+
B(h, {
|
|
1418
1418
|
name: "close",
|
|
1419
1419
|
size: "xs"
|
|
1420
1420
|
})
|
|
1421
1421
|
]),
|
|
1422
1422
|
icon: v(() => [
|
|
1423
|
-
s?.icon ? (n(), m(
|
|
1423
|
+
s?.icon ? (n(), m(h, {
|
|
1424
1424
|
key: 0,
|
|
1425
1425
|
name: a.icon,
|
|
1426
1426
|
size: "lg"
|
|
@@ -1437,19 +1437,19 @@ const Bn = [
|
|
|
1437
1437
|
}, 16, ["class", "description", "message", "closable", "showIcon"]));
|
|
1438
1438
|
}
|
|
1439
1439
|
});
|
|
1440
|
-
const
|
|
1440
|
+
const Dn = [
|
|
1441
1441
|
"dark",
|
|
1442
1442
|
"blue",
|
|
1443
1443
|
"green",
|
|
1444
1444
|
"orange",
|
|
1445
1445
|
"red"
|
|
1446
|
-
],
|
|
1446
|
+
], Ln = [
|
|
1447
1447
|
"primary",
|
|
1448
1448
|
"secondary"
|
|
1449
|
-
],
|
|
1449
|
+
], vo = {
|
|
1450
1450
|
name: "MaAnimation"
|
|
1451
|
-
},
|
|
1452
|
-
...
|
|
1451
|
+
}, fo = /* @__PURE__ */ k({
|
|
1452
|
+
...vo,
|
|
1453
1453
|
props: {
|
|
1454
1454
|
name: { default: "rocket" },
|
|
1455
1455
|
loop: { type: Boolean, default: !0 },
|
|
@@ -1477,45 +1477,45 @@ const Tn = [
|
|
|
1477
1477
|
}
|
|
1478
1478
|
);
|
|
1479
1479
|
const g = async () => {
|
|
1480
|
-
const { default:
|
|
1481
|
-
l =
|
|
1480
|
+
const { default: I } = await import("./lottie_light-b08f9446.mjs").then((T) => T.l);
|
|
1481
|
+
l = I;
|
|
1482
1482
|
}, d = async () => {
|
|
1483
1483
|
try {
|
|
1484
|
-
const { default:
|
|
1484
|
+
const { default: I } = await ie(/* @__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/${o.name}.json`);
|
|
1485
1485
|
r.value = l.loadAnimation({
|
|
1486
1486
|
container: i.value,
|
|
1487
1487
|
loop: o.loop,
|
|
1488
1488
|
autoplay: o.autoplay,
|
|
1489
|
-
animationData:
|
|
1489
|
+
animationData: I,
|
|
1490
1490
|
rendererSettings: o?.rendererSettings
|
|
1491
1491
|
}), r.value.onComplete = () => e("onComplete"), r.value.addEventListener("DOMLoaded", function() {
|
|
1492
1492
|
e("onLoaded");
|
|
1493
1493
|
});
|
|
1494
|
-
} catch (
|
|
1495
|
-
e("onError",
|
|
1494
|
+
} catch (I) {
|
|
1495
|
+
e("onError", I);
|
|
1496
1496
|
}
|
|
1497
1497
|
}, z = () => {
|
|
1498
1498
|
r.value && r.value.destroy();
|
|
1499
1499
|
};
|
|
1500
1500
|
return re(async () => {
|
|
1501
1501
|
await g(), d();
|
|
1502
|
-
}),
|
|
1502
|
+
}), ye(() => {
|
|
1503
1503
|
z();
|
|
1504
|
-
}), (
|
|
1504
|
+
}), (I, T) => (n(), p("div", {
|
|
1505
1505
|
ref_key: "animationRef",
|
|
1506
1506
|
ref: i,
|
|
1507
1507
|
class: "ma-animation",
|
|
1508
1508
|
style: te(t(u))
|
|
1509
1509
|
}, null, 4));
|
|
1510
1510
|
}
|
|
1511
|
-
}),
|
|
1511
|
+
}), En = [
|
|
1512
1512
|
"rocket",
|
|
1513
1513
|
"success-confetti",
|
|
1514
1514
|
"rounded-loading",
|
|
1515
1515
|
"fly-waiting",
|
|
1516
1516
|
"no-data-found",
|
|
1517
1517
|
"sad-not-found"
|
|
1518
|
-
],
|
|
1518
|
+
], Fn = [
|
|
1519
1519
|
"info",
|
|
1520
1520
|
"success",
|
|
1521
1521
|
"confirm",
|
|
@@ -1527,19 +1527,19 @@ const Tn = [
|
|
|
1527
1527
|
confirm: "warning",
|
|
1528
1528
|
warning: "warning",
|
|
1529
1529
|
error: "close-circle-bold"
|
|
1530
|
-
},
|
|
1530
|
+
}, _o = {
|
|
1531
1531
|
key: 1,
|
|
1532
1532
|
class: "ak-modal__title"
|
|
1533
|
-
},
|
|
1533
|
+
}, yo = { class: "ak-modal__content" }, ho = {
|
|
1534
1534
|
key: 0,
|
|
1535
1535
|
class: "ak-modal__description"
|
|
1536
|
-
},
|
|
1536
|
+
}, bo = {
|
|
1537
1537
|
key: 2,
|
|
1538
1538
|
class: "ak-modal__footer"
|
|
1539
|
-
},
|
|
1539
|
+
}, ko = {
|
|
1540
1540
|
name: "MaModal"
|
|
1541
|
-
}, ge = /* @__PURE__ */
|
|
1542
|
-
...
|
|
1541
|
+
}, ge = /* @__PURE__ */ k({
|
|
1542
|
+
...ko,
|
|
1543
1543
|
props: {
|
|
1544
1544
|
visible: { type: Boolean, default: !0 },
|
|
1545
1545
|
type: null,
|
|
@@ -1561,15 +1561,15 @@ const Tn = [
|
|
|
1561
1561
|
get() {
|
|
1562
1562
|
return e.visible;
|
|
1563
1563
|
},
|
|
1564
|
-
set(
|
|
1565
|
-
s("update:visible",
|
|
1564
|
+
set(T) {
|
|
1565
|
+
s("update:visible", T);
|
|
1566
1566
|
}
|
|
1567
1567
|
}), l = c(
|
|
1568
1568
|
() => e.type && me[e.type] ? me[e.type] : null
|
|
1569
1569
|
), i = c(
|
|
1570
1570
|
() => e.type === "error" ? "danger" : e.type === "warning" ? "warning" : "info"
|
|
1571
1571
|
), r = c(
|
|
1572
|
-
() =>
|
|
1572
|
+
() => I?.footer || e.okText || e.cancelText
|
|
1573
1573
|
), u = c(() => [
|
|
1574
1574
|
"ma-modal",
|
|
1575
1575
|
"ak-modal",
|
|
@@ -1581,8 +1581,8 @@ const Tn = [
|
|
|
1581
1581
|
o.value = !1, s("cancel");
|
|
1582
1582
|
}, z = () => {
|
|
1583
1583
|
s("ok");
|
|
1584
|
-
},
|
|
1585
|
-
return (
|
|
1584
|
+
}, I = ne();
|
|
1585
|
+
return (T, P) => (n(), m(t(Ze), M(T.$attrs, {
|
|
1586
1586
|
visible: t(o),
|
|
1587
1587
|
"onUpdate:visible": P[0] || (P[0] = (C) => J(o) ? o.value = C : null),
|
|
1588
1588
|
"prefix-cls": "antd-modal",
|
|
@@ -1596,7 +1596,7 @@ const Tn = [
|
|
|
1596
1596
|
onCancel: d
|
|
1597
1597
|
}), {
|
|
1598
1598
|
closeIcon: v(() => [
|
|
1599
|
-
B(
|
|
1599
|
+
B(h, {
|
|
1600
1600
|
name: "close-circle",
|
|
1601
1601
|
size: "sm"
|
|
1602
1602
|
})
|
|
@@ -1606,19 +1606,19 @@ const Tn = [
|
|
|
1606
1606
|
key: 0,
|
|
1607
1607
|
class: R(t(g))
|
|
1608
1608
|
}, [
|
|
1609
|
-
B(
|
|
1609
|
+
B(h, { name: t(l) }, null, 8, ["name"])
|
|
1610
1610
|
], 2)) : f("", !0),
|
|
1611
|
-
e.title ||
|
|
1612
|
-
_(
|
|
1611
|
+
e.title || T.$slots.title ? (n(), p("h1", _o, [
|
|
1612
|
+
_(T.$slots, "title"),
|
|
1613
1613
|
L(" " + w(e.title), 1)
|
|
1614
1614
|
])) : f("", !0),
|
|
1615
|
-
|
|
1616
|
-
e.content ? (n(), p("div",
|
|
1617
|
-
_(
|
|
1618
|
-
_(
|
|
1615
|
+
y("div", yo, [
|
|
1616
|
+
e.content ? (n(), p("div", ho, w(e.content), 1)) : f("", !0),
|
|
1617
|
+
_(T.$slots, "content"),
|
|
1618
|
+
_(T.$slots, "default")
|
|
1619
1619
|
]),
|
|
1620
|
-
t(r) ? (n(), p("div",
|
|
1621
|
-
e.okText ? (n(), m(
|
|
1620
|
+
t(r) ? (n(), p("div", bo, [
|
|
1621
|
+
e.okText ? (n(), m(Q, M({
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
onClick: z,
|
|
1624
1624
|
class: "ak-modal__ok-button",
|
|
@@ -1630,7 +1630,7 @@ const Tn = [
|
|
|
1630
1630
|
]),
|
|
1631
1631
|
_: 1
|
|
1632
1632
|
}, 16, ["variant", "loading"])) : f("", !0),
|
|
1633
|
-
e.cancelText ? (n(), m(
|
|
1633
|
+
e.cancelText ? (n(), m(Q, M({
|
|
1634
1634
|
key: 1,
|
|
1635
1635
|
onClick: d,
|
|
1636
1636
|
type: "grey-link"
|
|
@@ -1640,15 +1640,15 @@ const Tn = [
|
|
|
1640
1640
|
]),
|
|
1641
1641
|
_: 1
|
|
1642
1642
|
}, 16)) : f("", !0),
|
|
1643
|
-
_(
|
|
1643
|
+
_(T.$slots, "footer")
|
|
1644
1644
|
])) : f("", !0)
|
|
1645
1645
|
]),
|
|
1646
1646
|
_: 3
|
|
1647
1647
|
}, 16, ["visible", "class", "closable", "mask", "mask-closable", "width"]));
|
|
1648
1648
|
}
|
|
1649
1649
|
});
|
|
1650
|
-
const
|
|
1651
|
-
|
|
1650
|
+
const $o = ["info", "success", "warning", "error", "confirm"];
|
|
1651
|
+
$o.forEach((a) => {
|
|
1652
1652
|
ge[a] = (s) => {
|
|
1653
1653
|
const e = document.createElement("div"), o = ze(ge, s), l = Ie({
|
|
1654
1654
|
render: () => o
|
|
@@ -1662,10 +1662,10 @@ bo.forEach((a) => {
|
|
|
1662
1662
|
};
|
|
1663
1663
|
};
|
|
1664
1664
|
});
|
|
1665
|
-
const
|
|
1665
|
+
const Co = {
|
|
1666
1666
|
name: "MaRateStar"
|
|
1667
|
-
},
|
|
1668
|
-
...
|
|
1667
|
+
}, wo = /* @__PURE__ */ k({
|
|
1668
|
+
...Co,
|
|
1669
1669
|
props: {
|
|
1670
1670
|
value: null,
|
|
1671
1671
|
starRate: null,
|
|
@@ -1680,7 +1680,7 @@ const ko = {
|
|
|
1680
1680
|
]), o = c(() => s.starRate - 0.5 === s.value), l = c(() => o.value ? "star-half-colored" : "star-bold");
|
|
1681
1681
|
return (i, r) => (n(), m(_e, { name: "fade" }, {
|
|
1682
1682
|
default: v(() => [
|
|
1683
|
-
B(
|
|
1683
|
+
B(h, {
|
|
1684
1684
|
class: R(t(e)),
|
|
1685
1685
|
name: t(l),
|
|
1686
1686
|
size: a.iconSize
|
|
@@ -1689,10 +1689,10 @@ const ko = {
|
|
|
1689
1689
|
_: 1
|
|
1690
1690
|
}));
|
|
1691
1691
|
}
|
|
1692
|
-
}),
|
|
1692
|
+
}), xo = ["tabindex"], Mo = ["onMousemove", "onMouseover"], Bo = {
|
|
1693
1693
|
name: "MaRate"
|
|
1694
|
-
},
|
|
1695
|
-
...
|
|
1694
|
+
}, Rn = /* @__PURE__ */ k({
|
|
1695
|
+
...Bo,
|
|
1696
1696
|
props: {
|
|
1697
1697
|
value: null,
|
|
1698
1698
|
allowClear: { type: Boolean },
|
|
@@ -1721,10 +1721,10 @@ const ko = {
|
|
|
1721
1721
|
}), r = c(() => e?.disabled ? -1 : e.tabIndex), u = () => {
|
|
1722
1722
|
if (!e?.disabled) {
|
|
1723
1723
|
if (e?.allowClear && o.value === e.value) {
|
|
1724
|
-
|
|
1724
|
+
T(0);
|
|
1725
1725
|
return;
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
T(o.value);
|
|
1728
1728
|
}
|
|
1729
1729
|
}, g = (P) => {
|
|
1730
1730
|
e?.disabled || (o.value = P);
|
|
@@ -1732,54 +1732,54 @@ const ko = {
|
|
|
1732
1732
|
o.value = 0;
|
|
1733
1733
|
}, z = (P, C) => {
|
|
1734
1734
|
!e?.allowHalf || e.disabled || (P.offsetX < P.target.clientWidth / 2 ? o.value = C - 0.5 : o.value = C);
|
|
1735
|
-
},
|
|
1736
|
-
e?.disabled || (P.key === "ArrowRight" && e.value < 5 ?
|
|
1737
|
-
},
|
|
1735
|
+
}, I = (P) => {
|
|
1736
|
+
e?.disabled || (P.key === "ArrowRight" && e.value < 5 ? T(e.value + (e.allowHalf ? 0.5 : 1)) : P.key === "ArrowLeft" && e.value > 0 && T(e.value - (e.allowHalf ? 0.5 : 1)));
|
|
1737
|
+
}, T = (P) => {
|
|
1738
1738
|
s("update:value", P), s("change", P);
|
|
1739
1739
|
};
|
|
1740
1740
|
return (P, C) => (n(), p("ul", {
|
|
1741
1741
|
class: R(t(l)),
|
|
1742
1742
|
onMouseleave: d,
|
|
1743
|
-
onKeydown:
|
|
1743
|
+
onKeydown: I,
|
|
1744
1744
|
tabindex: t(r)
|
|
1745
1745
|
}, [
|
|
1746
|
-
(n(), p(
|
|
1746
|
+
(n(), p(W, null, U(5, (A) => y("li", {
|
|
1747
1747
|
class: "ak-rate__item",
|
|
1748
|
-
key:
|
|
1749
|
-
onMousemove: (
|
|
1750
|
-
onMouseover: (
|
|
1751
|
-
onClick: C[0] || (C[0] = (
|
|
1748
|
+
key: A,
|
|
1749
|
+
onMousemove: (S) => z(S, A),
|
|
1750
|
+
onMouseover: (S) => g(A),
|
|
1751
|
+
onClick: C[0] || (C[0] = (S) => u())
|
|
1752
1752
|
}, [
|
|
1753
|
-
B(
|
|
1754
|
-
"star-rate":
|
|
1753
|
+
B(wo, {
|
|
1754
|
+
"star-rate": A,
|
|
1755
1755
|
value: o.value || e.value,
|
|
1756
1756
|
"icon-size": t(i)
|
|
1757
1757
|
}, null, 8, ["star-rate", "value", "icon-size"])
|
|
1758
|
-
], 40,
|
|
1759
|
-
], 42,
|
|
1758
|
+
], 40, Mo)), 64))
|
|
1759
|
+
], 42, xo));
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
|
-
const
|
|
1762
|
+
const Un = [
|
|
1763
1763
|
"small",
|
|
1764
1764
|
"medium",
|
|
1765
1765
|
"large"
|
|
1766
|
-
],
|
|
1766
|
+
], jn = [
|
|
1767
1767
|
"orange",
|
|
1768
1768
|
"green",
|
|
1769
1769
|
"red"
|
|
1770
|
-
],
|
|
1770
|
+
], zo = {
|
|
1771
1771
|
key: 0,
|
|
1772
1772
|
class: "ma-spin__overlay"
|
|
1773
|
-
},
|
|
1773
|
+
}, Io = {
|
|
1774
1774
|
key: 0,
|
|
1775
1775
|
class: "custom-indicator"
|
|
1776
|
-
},
|
|
1776
|
+
}, So = {
|
|
1777
1777
|
key: 2,
|
|
1778
1778
|
class: "tip"
|
|
1779
|
-
},
|
|
1779
|
+
}, To = {
|
|
1780
1780
|
name: "MaSpin"
|
|
1781
|
-
}, ve = /* @__PURE__ */
|
|
1782
|
-
...
|
|
1781
|
+
}, ve = /* @__PURE__ */ k({
|
|
1782
|
+
...To,
|
|
1783
1783
|
props: {
|
|
1784
1784
|
type: { default: "round" },
|
|
1785
1785
|
color: { default: "dark" },
|
|
@@ -1796,16 +1796,16 @@ const En = [
|
|
|
1796
1796
|
"ma-spin__icon"
|
|
1797
1797
|
]), i = c(() => `spin-${s.type}`);
|
|
1798
1798
|
return (r, u) => (n(), p("div", M({ class: t(o) }, r.$attrs), [
|
|
1799
|
-
s.spinning ? (n(), p("div",
|
|
1800
|
-
r.$slots.indicator ? (n(), p("div",
|
|
1799
|
+
s.spinning ? (n(), p("div", zo, [
|
|
1800
|
+
r.$slots.indicator ? (n(), p("div", Io, [
|
|
1801
1801
|
_(r.$slots, "indicator")
|
|
1802
1802
|
])) : f("", !0),
|
|
1803
|
-
s.spinning && !r.$slots.indicator ? (n(), m(
|
|
1803
|
+
s.spinning && !r.$slots.indicator ? (n(), m(h, {
|
|
1804
1804
|
key: 1,
|
|
1805
1805
|
class: R(t(l)),
|
|
1806
1806
|
name: t(i)
|
|
1807
1807
|
}, null, 8, ["class", "name"])) : f("", !0),
|
|
1808
|
-
r.$slots?.tip || s?.tip ? (n(), p("div",
|
|
1808
|
+
r.$slots?.tip || s?.tip ? (n(), p("div", So, [
|
|
1809
1809
|
L(w(s?.tip) + " ", 1),
|
|
1810
1810
|
_(r.$slots, "tip")
|
|
1811
1811
|
])) : f("", !0)
|
|
@@ -1814,21 +1814,21 @@ const En = [
|
|
|
1814
1814
|
], 16));
|
|
1815
1815
|
}
|
|
1816
1816
|
});
|
|
1817
|
-
const
|
|
1817
|
+
const Vn = [
|
|
1818
1818
|
"round",
|
|
1819
1819
|
"dots",
|
|
1820
1820
|
"three-circles",
|
|
1821
1821
|
"three-dots"
|
|
1822
|
-
],
|
|
1822
|
+
], On = [
|
|
1823
1823
|
"dark",
|
|
1824
1824
|
"jordy",
|
|
1825
1825
|
"blue",
|
|
1826
1826
|
"orange",
|
|
1827
1827
|
"grey"
|
|
1828
|
-
],
|
|
1828
|
+
], Ao = {
|
|
1829
1829
|
name: "MaDropdown"
|
|
1830
|
-
},
|
|
1831
|
-
...
|
|
1830
|
+
}, Po = /* @__PURE__ */ k({
|
|
1831
|
+
...Ao,
|
|
1832
1832
|
props: {
|
|
1833
1833
|
destroyPopupOnHide: { type: Boolean, default: !1 },
|
|
1834
1834
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1870,22 +1870,22 @@ const Rn = [
|
|
|
1870
1870
|
}, 16, ["overlayClassName", "destroyPopupOnHide", "disabled", "placement", "trigger", "visible"]));
|
|
1871
1871
|
}
|
|
1872
1872
|
});
|
|
1873
|
-
const
|
|
1873
|
+
const qn = [
|
|
1874
1874
|
"bottomLeft",
|
|
1875
1875
|
"bottom",
|
|
1876
1876
|
"bottomRight",
|
|
1877
1877
|
"topLeft",
|
|
1878
1878
|
"top",
|
|
1879
1879
|
"topRight"
|
|
1880
|
-
],
|
|
1880
|
+
], Hn = [
|
|
1881
1881
|
"click",
|
|
1882
1882
|
"hover",
|
|
1883
1883
|
"contextmenu"
|
|
1884
|
-
],
|
|
1884
|
+
], Wn = [
|
|
1885
1885
|
"small",
|
|
1886
1886
|
"medium",
|
|
1887
1887
|
"large"
|
|
1888
|
-
],
|
|
1888
|
+
], Kn = [
|
|
1889
1889
|
"general",
|
|
1890
1890
|
"add-app",
|
|
1891
1891
|
"table",
|
|
@@ -1895,10 +1895,10 @@ const jn = [
|
|
|
1895
1895
|
"add-app": "add-app",
|
|
1896
1896
|
table: "empty-table",
|
|
1897
1897
|
selection: "selection"
|
|
1898
|
-
},
|
|
1898
|
+
}, No = { class: "ma-empty__title" }, Do = { class: "ma-empty__description" }, Lo = { class: "ma-empty__content" }, Eo = {
|
|
1899
1899
|
name: "MaEmpty"
|
|
1900
|
-
},
|
|
1901
|
-
...
|
|
1900
|
+
}, Gn = /* @__PURE__ */ k({
|
|
1901
|
+
...Eo,
|
|
1902
1902
|
props: {
|
|
1903
1903
|
size: { default: "large" },
|
|
1904
1904
|
variant: { default: "general" },
|
|
@@ -1916,82 +1916,82 @@ const jn = [
|
|
|
1916
1916
|
return (l, i) => (n(), p("div", {
|
|
1917
1917
|
class: R(t(o))
|
|
1918
1918
|
}, [
|
|
1919
|
-
s?.animation ? (n(), m(
|
|
1919
|
+
s?.animation ? (n(), m(fo, M({
|
|
1920
1920
|
key: 0,
|
|
1921
1921
|
name: a.animation
|
|
1922
|
-
}, a.animationProps), null, 16, ["name"])) : l.$slots.icon ? _(l.$slots, "icon", { key: 1 }) : (n(), m(
|
|
1922
|
+
}, a.animationProps), null, 16, ["name"])) : l.$slots.icon ? _(l.$slots, "icon", { key: 1 }) : (n(), m(h, {
|
|
1923
1923
|
key: 2,
|
|
1924
1924
|
name: t(e),
|
|
1925
1925
|
class: "ma-empty__icon"
|
|
1926
1926
|
}, null, 8, ["name"])),
|
|
1927
|
-
|
|
1927
|
+
y("span", No, [
|
|
1928
1928
|
L(w(a.title) + " ", 1),
|
|
1929
1929
|
_(l.$slots, "title")
|
|
1930
1930
|
]),
|
|
1931
|
-
|
|
1931
|
+
y("span", Do, [
|
|
1932
1932
|
L(w(a.description) + " ", 1),
|
|
1933
1933
|
_(l.$slots, "description")
|
|
1934
1934
|
]),
|
|
1935
|
-
|
|
1935
|
+
y("div", Lo, [
|
|
1936
1936
|
_(l.$slots, "default")
|
|
1937
1937
|
])
|
|
1938
1938
|
], 2));
|
|
1939
1939
|
}
|
|
1940
1940
|
});
|
|
1941
|
-
const
|
|
1941
|
+
const Jn = [
|
|
1942
1942
|
"button",
|
|
1943
1943
|
"box",
|
|
1944
1944
|
"small-box"
|
|
1945
|
-
],
|
|
1945
|
+
], Fo = [
|
|
1946
1946
|
"xs",
|
|
1947
1947
|
"sm",
|
|
1948
1948
|
"md",
|
|
1949
1949
|
"lg",
|
|
1950
1950
|
"xl"
|
|
1951
1951
|
];
|
|
1952
|
-
var
|
|
1952
|
+
var H = /* @__PURE__ */ ((a) => (a.error = "error", a.done = "done", a.uploading = "uploading", a))(H || {});
|
|
1953
1953
|
const le = (a) => {
|
|
1954
1954
|
try {
|
|
1955
1955
|
return JSON.parse(a);
|
|
1956
1956
|
} catch {
|
|
1957
1957
|
return a;
|
|
1958
1958
|
}
|
|
1959
|
-
},
|
|
1959
|
+
}, Ro = (a = 20) => {
|
|
1960
1960
|
let s = "";
|
|
1961
1961
|
for (let e = 0; e < a; e++)
|
|
1962
1962
|
s += Math.random().toString(36).substr(2);
|
|
1963
1963
|
return s.substr(0, a);
|
|
1964
|
-
},
|
|
1964
|
+
}, Uo = (a, s = {}, e = {}, o) => {
|
|
1965
1965
|
const l = E(0);
|
|
1966
1966
|
return { progress: l, upload: async (r, u) => {
|
|
1967
1967
|
const g = new FormData();
|
|
1968
|
-
g.append(o, r.file), Object.entries(e).forEach(([z,
|
|
1969
|
-
g.append(z,
|
|
1968
|
+
g.append(o, r.file), Object.entries(e).forEach(([z, I]) => {
|
|
1969
|
+
g.append(z, I);
|
|
1970
1970
|
});
|
|
1971
1971
|
const d = new XMLHttpRequest();
|
|
1972
|
-
d.open("POST", a), Object.entries(s).forEach(([z,
|
|
1973
|
-
d.setRequestHeader(z,
|
|
1972
|
+
d.open("POST", a), Object.entries(s).forEach(([z, I]) => {
|
|
1973
|
+
d.setRequestHeader(z, I);
|
|
1974
1974
|
}), d.upload.onprogress = (z) => {
|
|
1975
|
-
z.lengthComputable && (l.value = z.loaded / z.total * 100, u(
|
|
1975
|
+
z.lengthComputable && (l.value = z.loaded / z.total * 100, u(H.uploading, l.value));
|
|
1976
1976
|
}, d.onload = () => {
|
|
1977
1977
|
d.status >= 200 && d.status < 300 ? u(
|
|
1978
|
-
|
|
1978
|
+
H.done,
|
|
1979
1979
|
l.value,
|
|
1980
1980
|
le(d.responseText)
|
|
1981
1981
|
) : u(
|
|
1982
|
-
|
|
1982
|
+
H.error,
|
|
1983
1983
|
l.value,
|
|
1984
1984
|
le(d.responseText)
|
|
1985
1985
|
);
|
|
1986
1986
|
}, d.onerror = () => {
|
|
1987
1987
|
u(
|
|
1988
|
-
|
|
1988
|
+
H.error,
|
|
1989
1989
|
l.value,
|
|
1990
1990
|
le(d.responseText)
|
|
1991
1991
|
);
|
|
1992
1992
|
}, d.send(g), r.cancelRequest = () => d.abort();
|
|
1993
1993
|
} };
|
|
1994
|
-
},
|
|
1994
|
+
}, jo = (a, s) => {
|
|
1995
1995
|
if (!s)
|
|
1996
1996
|
return !0;
|
|
1997
1997
|
const e = s.split(",").map((i) => i.trim()), o = a.type, l = a.name.split(".").pop()?.toLowerCase();
|
|
@@ -2009,10 +2009,10 @@ const le = (a) => {
|
|
|
2009
2009
|
return !0;
|
|
2010
2010
|
}
|
|
2011
2011
|
return !1;
|
|
2012
|
-
},
|
|
2012
|
+
}, Vo = { class: "single-file" }, Oo = { class: "icon-wrapper" }, qo = { class: "single-file__detail" }, Ho = { class: "file-name" }, Wo = {
|
|
2013
2013
|
key: 0,
|
|
2014
2014
|
class: "file-size"
|
|
2015
|
-
},
|
|
2015
|
+
}, Ko = { class: "file-progress" }, Go = { class: "single-file__actions" }, Jo = /* @__PURE__ */ k({
|
|
2016
2016
|
__name: "singleFile",
|
|
2017
2017
|
props: {
|
|
2018
2018
|
file: null,
|
|
@@ -2024,22 +2024,22 @@ const le = (a) => {
|
|
|
2024
2024
|
const e = a, o = c(
|
|
2025
2025
|
() => `${(e.file.file.size / (1024 * 1024)).toFixed(1)} MB`
|
|
2026
2026
|
), l = c(() => typeof e.file.file.size == "number"), i = () => s("remove"), r = () => s("cancel");
|
|
2027
|
-
return (u, g) => (n(), p("div",
|
|
2028
|
-
|
|
2029
|
-
B(
|
|
2027
|
+
return (u, g) => (n(), p("div", Vo, [
|
|
2028
|
+
y("div", Oo, [
|
|
2029
|
+
B(h, { name: "document-bulk" })
|
|
2030
2030
|
]),
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
t(l) ? (n(), p("span",
|
|
2034
|
-
|
|
2035
|
-
|
|
2031
|
+
y("div", qo, [
|
|
2032
|
+
y("span", Ho, w(a.file.file.name), 1),
|
|
2033
|
+
t(l) ? (n(), p("span", Wo, w(t(o)), 1)) : f("", !0),
|
|
2034
|
+
y("span", Ko, [
|
|
2035
|
+
y("span", {
|
|
2036
2036
|
class: "progress-item",
|
|
2037
2037
|
style: te({ width: `${a.file.progress}%` })
|
|
2038
2038
|
}, null, 4)
|
|
2039
2039
|
])
|
|
2040
2040
|
]),
|
|
2041
|
-
|
|
2042
|
-
a.file.status === t(
|
|
2041
|
+
y("div", Go, [
|
|
2042
|
+
a.file.status === t(H).uploading ? (n(), m(Q, {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
disabled: a.disabled,
|
|
2045
2045
|
onClick: g[0] || (g[0] = (d) => r()),
|
|
@@ -2047,7 +2047,7 @@ const le = (a) => {
|
|
|
2047
2047
|
type: "primary",
|
|
2048
2048
|
variant: "plain",
|
|
2049
2049
|
icon: "close-circle-bulk"
|
|
2050
|
-
}, null, 8, ["disabled"])) : (n(), m(
|
|
2050
|
+
}, null, 8, ["disabled"])) : (n(), m(Q, {
|
|
2051
2051
|
key: 1,
|
|
2052
2052
|
disabled: a.disabled,
|
|
2053
2053
|
onClick: g[1] || (g[1] = (d) => i()),
|
|
@@ -2056,20 +2056,20 @@ const le = (a) => {
|
|
|
2056
2056
|
variant: "plain",
|
|
2057
2057
|
icon: "trash-bulk"
|
|
2058
2058
|
}, null, 8, ["disabled"])),
|
|
2059
|
-
|
|
2059
|
+
y("span", null, "%" + w(parseInt(a.file.progress.toString())), 1)
|
|
2060
2060
|
])
|
|
2061
2061
|
]));
|
|
2062
2062
|
}
|
|
2063
|
-
}),
|
|
2063
|
+
}), Zo = ["onDrop"], Yo = ["accept", "multiple", "disabled"], Xo = { class: "text" }, Qo = /* @__PURE__ */ y("span", null, "Uploading file...", -1), et = { class: "upload-icon" }, st = {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
class: "upload-title"
|
|
2066
|
-
},
|
|
2066
|
+
}, ot = {
|
|
2067
2067
|
key: 1,
|
|
2068
2068
|
class: "upload-description"
|
|
2069
|
-
},
|
|
2069
|
+
}, tt = {
|
|
2070
2070
|
name: "MaUpload"
|
|
2071
|
-
},
|
|
2072
|
-
...
|
|
2071
|
+
}, Zn = /* @__PURE__ */ k({
|
|
2072
|
+
...tt,
|
|
2073
2073
|
props: {
|
|
2074
2074
|
fileList: null,
|
|
2075
2075
|
type: { default: "box" },
|
|
@@ -2096,22 +2096,22 @@ const le = (a) => {
|
|
|
2096
2096
|
get() {
|
|
2097
2097
|
return e.fileList;
|
|
2098
2098
|
},
|
|
2099
|
-
set(
|
|
2100
|
-
s("update:fileList",
|
|
2101
|
-
if ([
|
|
2099
|
+
set(b) {
|
|
2100
|
+
s("update:fileList", b), s("change", b), e?.action && b.forEach(async (D, V) => {
|
|
2101
|
+
if ([H.done, H.error].includes(
|
|
2102
2102
|
D.status
|
|
2103
2103
|
))
|
|
2104
2104
|
return;
|
|
2105
|
-
const { upload:
|
|
2105
|
+
const { upload: X } = Uo(
|
|
2106
2106
|
e?.action || "",
|
|
2107
2107
|
// || added for tsc warning
|
|
2108
2108
|
e.headers,
|
|
2109
2109
|
e.data,
|
|
2110
2110
|
e.name
|
|
2111
2111
|
);
|
|
2112
|
-
e?.beforeUpload && (D.file = await e.beforeUpload(D.file)),
|
|
2112
|
+
e?.beforeUpload && (D.file = await e.beforeUpload(D.file)), X(D, (se, we, de) => {
|
|
2113
2113
|
if (d.value[V]) {
|
|
2114
|
-
if (se ===
|
|
2114
|
+
if (se === H.error) {
|
|
2115
2115
|
s("error", { file: D.file, message: de }), ae(
|
|
2116
2116
|
d.value.findIndex((xe) => xe.id === D.id)
|
|
2117
2117
|
);
|
|
@@ -2123,11 +2123,11 @@ const le = (a) => {
|
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
2125
|
}), z = c(
|
|
2126
|
-
() => d.value.map((
|
|
2127
|
-
),
|
|
2126
|
+
() => d.value.map((b) => b.file.name).join(", ")
|
|
2127
|
+
), I = c(
|
|
2128
2128
|
() => e.type === "box" ? e.multiple ? !0 : !d.value.length : !0
|
|
2129
|
-
),
|
|
2130
|
-
() => e.ordered &&
|
|
2129
|
+
), T = c(
|
|
2130
|
+
() => e.ordered && S.value ? !1 : d.value.length ? e.showFileList : !1
|
|
2131
2131
|
), P = c(() => [
|
|
2132
2132
|
`ma-upload ma-upload--${e.type} ma-upload--${e.type}--${e.size}`,
|
|
2133
2133
|
{
|
|
@@ -2139,76 +2139,76 @@ const le = (a) => {
|
|
|
2139
2139
|
]), C = c(() => [
|
|
2140
2140
|
"ma-file-list",
|
|
2141
2141
|
{
|
|
2142
|
-
"only-file-list": !
|
|
2142
|
+
"only-file-list": !I.value
|
|
2143
2143
|
}
|
|
2144
|
-
]),
|
|
2145
|
-
const
|
|
2146
|
-
return
|
|
2147
|
-
}),
|
|
2148
|
-
() => e.wait || d.value.some((
|
|
2149
|
-
), j = c(() => e?.disabled ||
|
|
2144
|
+
]), A = c(() => {
|
|
2145
|
+
const b = e?.size ? Fo.indexOf(e.size) : 0;
|
|
2146
|
+
return ts[b];
|
|
2147
|
+
}), S = c(
|
|
2148
|
+
() => e.wait || d.value.some((b) => b.status === H.uploading)
|
|
2149
|
+
), j = c(() => e?.disabled || S.value), F = (b) => Array.from(b).find(
|
|
2150
2150
|
(D) => e?.maxFileSize && D.size > e.maxFileSize
|
|
2151
|
-
), x = (
|
|
2152
|
-
const D =
|
|
2151
|
+
), x = (b) => {
|
|
2152
|
+
const D = b.target;
|
|
2153
2153
|
D.files && pe(Array.from(D.files));
|
|
2154
|
-
},
|
|
2154
|
+
}, $ = () => {
|
|
2155
2155
|
l.value?.click();
|
|
2156
|
-
}, N = (
|
|
2157
|
-
|
|
2156
|
+
}, N = (b) => {
|
|
2157
|
+
b.preventDefault();
|
|
2158
2158
|
}, O = () => {
|
|
2159
2159
|
i.value = !0;
|
|
2160
|
-
},
|
|
2160
|
+
}, K = () => {
|
|
2161
2161
|
i.value = !1;
|
|
2162
|
-
}, $e = (
|
|
2163
|
-
j.value ||
|
|
2164
|
-
Array.from(
|
|
2162
|
+
}, $e = (b) => {
|
|
2163
|
+
j.value || b.dataTransfer?.files && pe(
|
|
2164
|
+
Array.from(b.dataTransfer.files).filter((D) => e?.accept && !jo(D, e.accept) ? (s("error", { file: D, message: "file type does not match!" }), !1) : !0)
|
|
2165
2165
|
);
|
|
2166
|
-
}, pe = (
|
|
2167
|
-
const D = F(
|
|
2166
|
+
}, pe = (b) => {
|
|
2167
|
+
const D = F(b);
|
|
2168
2168
|
if (D) {
|
|
2169
2169
|
s("error", { file: D, message: "File too large" });
|
|
2170
2170
|
return;
|
|
2171
2171
|
}
|
|
2172
|
-
const V = Array.from(
|
|
2173
|
-
(
|
|
2174
|
-
).map((
|
|
2175
|
-
file:
|
|
2176
|
-
id:
|
|
2177
|
-
status: e?.action ?
|
|
2172
|
+
const V = Array.from(b).filter(
|
|
2173
|
+
(X, se) => e?.maxCount ? se + 1 <= e.maxCount : !0
|
|
2174
|
+
).map((X) => ({
|
|
2175
|
+
file: X,
|
|
2176
|
+
id: Ro(),
|
|
2177
|
+
status: e?.action ? H.uploading : H.done,
|
|
2178
2178
|
progress: e?.action ? 0 : 100,
|
|
2179
2179
|
response: null
|
|
2180
2180
|
}));
|
|
2181
2181
|
e.multiple ? d.value = [...d.value, ...V] : V.length && (d.value = [V[0]]);
|
|
2182
|
-
}, ae = (
|
|
2183
|
-
s("remove", d.value[
|
|
2184
|
-
}, ue = (
|
|
2185
|
-
const D = d.value[
|
|
2186
|
-
typeof D?.cancelRequest == "function" && D.cancelRequest(), ae(
|
|
2187
|
-
}, Ce = (
|
|
2188
|
-
|
|
2182
|
+
}, ae = (b) => {
|
|
2183
|
+
s("remove", d.value[b]), d.value = d.value.filter((D, V) => V !== b);
|
|
2184
|
+
}, ue = (b) => {
|
|
2185
|
+
const D = d.value[b];
|
|
2186
|
+
typeof D?.cancelRequest == "function" && D.cancelRequest(), ae(b);
|
|
2187
|
+
}, Ce = (b) => {
|
|
2188
|
+
b.stopPropagation(), d.value.forEach((D, V) => ue(V)), d.value = [];
|
|
2189
2189
|
};
|
|
2190
2190
|
return re(() => {
|
|
2191
|
-
r.forEach((
|
|
2192
|
-
o.value?.addEventListener(
|
|
2193
|
-
}), u.forEach((
|
|
2194
|
-
o.value?.addEventListener(
|
|
2195
|
-
}), g.forEach((
|
|
2196
|
-
o.value?.addEventListener(
|
|
2191
|
+
r.forEach((b) => {
|
|
2192
|
+
o.value?.addEventListener(b, N);
|
|
2193
|
+
}), u.forEach((b) => {
|
|
2194
|
+
o.value?.addEventListener(b, O);
|
|
2195
|
+
}), g.forEach((b) => {
|
|
2196
|
+
o.value?.addEventListener(b, K);
|
|
2197
2197
|
});
|
|
2198
2198
|
}), Se(() => {
|
|
2199
|
-
r.forEach((
|
|
2200
|
-
o.value?.removeEventListener(
|
|
2201
|
-
}), u.forEach((
|
|
2202
|
-
o.value?.removeEventListener(
|
|
2203
|
-
}), g.forEach((
|
|
2204
|
-
o.value?.removeEventListener(
|
|
2199
|
+
r.forEach((b) => {
|
|
2200
|
+
o.value?.removeEventListener(b, N);
|
|
2201
|
+
}), u.forEach((b) => {
|
|
2202
|
+
o.value?.removeEventListener(b, O);
|
|
2203
|
+
}), g.forEach((b) => {
|
|
2204
|
+
o.value?.removeEventListener(b, K);
|
|
2205
2205
|
});
|
|
2206
|
-
}), (
|
|
2207
|
-
|
|
2206
|
+
}), (b, D) => (n(), p("div", M({ class: "ma-upload-wrapper" }, b.$attrs), [
|
|
2207
|
+
Z(y("div", {
|
|
2208
2208
|
ref_key: "uploadArea",
|
|
2209
2209
|
ref: o,
|
|
2210
2210
|
class: R(t(P)),
|
|
2211
|
-
onDrop:
|
|
2211
|
+
onDrop: he($e, ["prevent"])
|
|
2212
2212
|
}, [
|
|
2213
2213
|
(n(), p("input", {
|
|
2214
2214
|
type: "file",
|
|
@@ -2219,16 +2219,16 @@ const le = (a) => {
|
|
|
2219
2219
|
key: t(d).length,
|
|
2220
2220
|
ref_key: "fileInput",
|
|
2221
2221
|
ref: l
|
|
2222
|
-
}, null, 40,
|
|
2223
|
-
e.type === "button" ? (n(), m(
|
|
2222
|
+
}, null, 40, Yo)),
|
|
2223
|
+
e.type === "button" ? (n(), m(Q, {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
type: a.fileList.length ? "primary" : "secondary",
|
|
2226
2226
|
variant: "dark",
|
|
2227
2227
|
icon: "export-2",
|
|
2228
|
-
onClick:
|
|
2229
|
-
size: t(
|
|
2228
|
+
onClick: $,
|
|
2229
|
+
size: t(A),
|
|
2230
2230
|
disabled: t(j),
|
|
2231
|
-
loading: t(
|
|
2231
|
+
loading: t(S)
|
|
2232
2232
|
}, {
|
|
2233
2233
|
default: v(() => [
|
|
2234
2234
|
L(w(a.fileList.length ? t(z) : e?.title), 1)
|
|
@@ -2237,36 +2237,36 @@ const le = (a) => {
|
|
|
2237
2237
|
}, 8, ["type", "size", "disabled", "loading"])) : e.type === "small-box" ? (n(), p("div", {
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
class: "ma-upload__small_box",
|
|
2240
|
-
onClick:
|
|
2240
|
+
onClick: $
|
|
2241
2241
|
}, [
|
|
2242
|
-
t(
|
|
2242
|
+
t(S) ? (n(), m(ve, {
|
|
2243
2243
|
key: 0,
|
|
2244
2244
|
type: "three-circles",
|
|
2245
2245
|
color: "blue"
|
|
2246
|
-
})) : (n(), m(
|
|
2246
|
+
})) : (n(), m(h, {
|
|
2247
2247
|
key: 1,
|
|
2248
2248
|
name: "export-2-bulk"
|
|
2249
2249
|
})),
|
|
2250
|
-
|
|
2251
|
-
t(
|
|
2250
|
+
y("span", Xo, [
|
|
2251
|
+
t(S) ? (n(), p(W, { key: 0 }, [
|
|
2252
2252
|
L(" Uploading... ")
|
|
2253
|
-
], 64)) : (n(), p(
|
|
2253
|
+
], 64)) : (n(), p(W, { key: 1 }, [
|
|
2254
2254
|
L(w(e?.title) + " ", 1),
|
|
2255
|
-
_(
|
|
2255
|
+
_(b.$slots, "small-box-title")
|
|
2256
2256
|
], 64))
|
|
2257
2257
|
])
|
|
2258
2258
|
])) : (n(), p("div", {
|
|
2259
2259
|
key: 2,
|
|
2260
2260
|
class: "ma-upload__box",
|
|
2261
|
-
onClick:
|
|
2261
|
+
onClick: $
|
|
2262
2262
|
}, [
|
|
2263
|
-
e.ordered && t(
|
|
2263
|
+
e.ordered && t(S) ? (n(), p(W, { key: 0 }, [
|
|
2264
2264
|
B(ve, {
|
|
2265
2265
|
type: "three-circles",
|
|
2266
2266
|
color: "blue"
|
|
2267
2267
|
}),
|
|
2268
|
-
|
|
2269
|
-
B(
|
|
2268
|
+
Qo,
|
|
2269
|
+
B(Q, {
|
|
2270
2270
|
onClick: Ce,
|
|
2271
2271
|
class: "box-cancel",
|
|
2272
2272
|
type: "secondary",
|
|
@@ -2277,42 +2277,42 @@ const le = (a) => {
|
|
|
2277
2277
|
]),
|
|
2278
2278
|
_: 1
|
|
2279
2279
|
})
|
|
2280
|
-
], 64)) : (n(), p(
|
|
2281
|
-
|
|
2282
|
-
B(
|
|
2280
|
+
], 64)) : (n(), p(W, { key: 1 }, [
|
|
2281
|
+
y("div", et, [
|
|
2282
|
+
B(h, { name: "upload-bulk" })
|
|
2283
2283
|
]),
|
|
2284
|
-
e?.title ? (n(), p("span",
|
|
2284
|
+
e?.title ? (n(), p("span", st, [
|
|
2285
2285
|
L(w(e?.title) + " ", 1),
|
|
2286
|
-
_(
|
|
2286
|
+
_(b.$slots, "box-title")
|
|
2287
2287
|
])) : f("", !0),
|
|
2288
|
-
e?.description ? (n(), p("span",
|
|
2288
|
+
e?.description ? (n(), p("span", ot, [
|
|
2289
2289
|
L(w(e?.description) + " ", 1),
|
|
2290
|
-
_(
|
|
2290
|
+
_(b.$slots, "box-description")
|
|
2291
2291
|
])) : f("", !0)
|
|
2292
2292
|
], 64))
|
|
2293
2293
|
]))
|
|
2294
|
-
], 42,
|
|
2295
|
-
[
|
|
2294
|
+
], 42, Zo), [
|
|
2295
|
+
[Y, t(I)]
|
|
2296
2296
|
]),
|
|
2297
|
-
t(
|
|
2297
|
+
t(T) ? (n(), p("div", {
|
|
2298
2298
|
key: 0,
|
|
2299
2299
|
class: R(t(C))
|
|
2300
2300
|
}, [
|
|
2301
|
-
(n(!0), p(
|
|
2302
|
-
onRemove: (se) => ae(
|
|
2303
|
-
onCancel: (se) => ue(
|
|
2301
|
+
(n(!0), p(W, null, U(t(d), (V, X) => (n(), m(Jo, {
|
|
2302
|
+
onRemove: (se) => ae(X),
|
|
2303
|
+
onCancel: (se) => ue(X),
|
|
2304
2304
|
file: V,
|
|
2305
|
-
key:
|
|
2305
|
+
key: X,
|
|
2306
2306
|
disabled: e.disabled
|
|
2307
2307
|
}, null, 8, ["onRemove", "onCancel", "file", "disabled"]))), 128))
|
|
2308
2308
|
], 2)) : f("", !0)
|
|
2309
2309
|
], 16));
|
|
2310
2310
|
}
|
|
2311
2311
|
});
|
|
2312
|
-
const
|
|
2312
|
+
const nt = {
|
|
2313
2313
|
name: "MaSideMenuButton"
|
|
2314
|
-
},
|
|
2315
|
-
...
|
|
2314
|
+
}, Yn = /* @__PURE__ */ k({
|
|
2315
|
+
...nt,
|
|
2316
2316
|
props: {
|
|
2317
2317
|
icon: { default: "app" },
|
|
2318
2318
|
activeIcon: null,
|
|
@@ -2335,21 +2335,21 @@ const ot = {
|
|
|
2335
2335
|
href: s?.href
|
|
2336
2336
|
}, d.$attrs), {
|
|
2337
2337
|
default: v(() => [
|
|
2338
|
-
s?.icon ? (n(), p(
|
|
2339
|
-
|
|
2338
|
+
s?.icon ? (n(), p(W, { key: 0 }, [
|
|
2339
|
+
Z(B(h, {
|
|
2340
2340
|
size: "md",
|
|
2341
2341
|
name: t(l)
|
|
2342
2342
|
}, null, 8, ["name"]), [
|
|
2343
|
-
[
|
|
2343
|
+
[Y, t(r)]
|
|
2344
2344
|
]),
|
|
2345
|
-
|
|
2345
|
+
Z(B(h, {
|
|
2346
2346
|
size: "md",
|
|
2347
2347
|
name: s.icon
|
|
2348
2348
|
}, null, 8, ["name"]), [
|
|
2349
|
-
[
|
|
2349
|
+
[Y, !t(r)]
|
|
2350
2350
|
])
|
|
2351
2351
|
], 64)) : f("", !0),
|
|
2352
|
-
|
|
2352
|
+
y("span", null, [
|
|
2353
2353
|
L(w(s?.text) + " ", 1),
|
|
2354
2354
|
_(d.$slots, "default")
|
|
2355
2355
|
])
|
|
@@ -2358,13 +2358,13 @@ const ot = {
|
|
|
2358
2358
|
}, 16, ["target", "class", "href"]));
|
|
2359
2359
|
}
|
|
2360
2360
|
});
|
|
2361
|
-
const
|
|
2361
|
+
const at = {
|
|
2362
2362
|
key: 0,
|
|
2363
2363
|
class: "ma-side-menu-item-icon"
|
|
2364
|
-
},
|
|
2364
|
+
}, lt = {
|
|
2365
2365
|
name: "MaSideMenuItem"
|
|
2366
|
-
},
|
|
2367
|
-
...
|
|
2366
|
+
}, Xn = /* @__PURE__ */ k({
|
|
2367
|
+
...lt,
|
|
2368
2368
|
props: {
|
|
2369
2369
|
href: null,
|
|
2370
2370
|
target: null,
|
|
@@ -2386,15 +2386,9 @@ const tt = {
|
|
|
2386
2386
|
{
|
|
2387
2387
|
child: s.child
|
|
2388
2388
|
}
|
|
2389
|
-
]), l = c(
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
return s.activeIcon;
|
|
2393
|
-
if (s.icon)
|
|
2394
|
-
return s.icon.replace("bulk", "bold");
|
|
2395
|
-
}
|
|
2396
|
-
return s.icon;
|
|
2397
|
-
});
|
|
2389
|
+
]), l = c(
|
|
2390
|
+
() => s?.activeIcon ? s.activeIcon : s.icon ? s.icon.replace("bulk", "bold") : null
|
|
2391
|
+
);
|
|
2398
2392
|
return (i, r) => (n(), m(ee(t(e)), M({
|
|
2399
2393
|
role: "button",
|
|
2400
2394
|
target: s?.target,
|
|
@@ -2402,17 +2396,25 @@ const tt = {
|
|
|
2402
2396
|
href: s?.href
|
|
2403
2397
|
}, i.$attrs), {
|
|
2404
2398
|
default: v(() => [
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
B(
|
|
2399
|
+
y("span", null, [
|
|
2400
|
+
s?.icon ? (n(), p("div", at, [
|
|
2401
|
+
Z(B(h, {
|
|
2408
2402
|
size: "xs",
|
|
2409
2403
|
name: t(l)
|
|
2410
|
-
}, null, 8, ["name"])
|
|
2404
|
+
}, null, 8, ["name"]), [
|
|
2405
|
+
[Y, s.active]
|
|
2406
|
+
]),
|
|
2407
|
+
Z(B(h, {
|
|
2408
|
+
size: "xs",
|
|
2409
|
+
name: s.icon
|
|
2410
|
+
}, null, 8, ["name"]), [
|
|
2411
|
+
[Y, !s.active]
|
|
2412
|
+
])
|
|
2411
2413
|
])) : f("", !0),
|
|
2412
2414
|
L(" " + w(s?.text) + " ", 1),
|
|
2413
2415
|
_(i.$slots, "default")
|
|
2414
2416
|
]),
|
|
2415
|
-
s.badgeText ? (n(), m(
|
|
2417
|
+
s.badgeText ? (n(), m(mo, {
|
|
2416
2418
|
key: 0,
|
|
2417
2419
|
size: "small",
|
|
2418
2420
|
variant: s.badgeColor
|
|
@@ -2427,7 +2429,7 @@ const tt = {
|
|
|
2427
2429
|
}, 16, ["target", "class", "href"]));
|
|
2428
2430
|
}
|
|
2429
2431
|
});
|
|
2430
|
-
const
|
|
2432
|
+
const Qn = [
|
|
2431
2433
|
"dark",
|
|
2432
2434
|
"blue",
|
|
2433
2435
|
"jordy-blue",
|
|
@@ -2436,11 +2438,11 @@ const Zn = [
|
|
|
2436
2438
|
"red",
|
|
2437
2439
|
"purple",
|
|
2438
2440
|
"purple-light"
|
|
2439
|
-
],
|
|
2441
|
+
], it = {
|
|
2440
2442
|
name: "MaSideMenuIconButton",
|
|
2441
2443
|
inheritAttrs: !1
|
|
2442
|
-
},
|
|
2443
|
-
...
|
|
2444
|
+
}, ea = /* @__PURE__ */ k({
|
|
2445
|
+
...it,
|
|
2444
2446
|
props: {
|
|
2445
2447
|
icon: null,
|
|
2446
2448
|
activeIcon: null,
|
|
@@ -2471,17 +2473,17 @@ const Zn = [
|
|
|
2471
2473
|
role: "button"
|
|
2472
2474
|
}, d.$attrs), {
|
|
2473
2475
|
default: v(() => [
|
|
2474
|
-
|
|
2476
|
+
Z(B(h, {
|
|
2475
2477
|
size: "xs",
|
|
2476
2478
|
name: t(i)
|
|
2477
2479
|
}, null, 8, ["name"]), [
|
|
2478
|
-
[
|
|
2480
|
+
[Y, t(l)]
|
|
2479
2481
|
]),
|
|
2480
|
-
|
|
2482
|
+
Z(B(h, {
|
|
2481
2483
|
size: "xs",
|
|
2482
2484
|
name: s.icon
|
|
2483
2485
|
}, null, 8, ["name"]), [
|
|
2484
|
-
[
|
|
2486
|
+
[Y, !t(l)]
|
|
2485
2487
|
]),
|
|
2486
2488
|
_(d.$slots, "default")
|
|
2487
2489
|
]),
|
|
@@ -2499,17 +2501,17 @@ const Zn = [
|
|
|
2499
2501
|
role: "button"
|
|
2500
2502
|
}, d.$attrs), {
|
|
2501
2503
|
default: v(() => [
|
|
2502
|
-
|
|
2504
|
+
Z(B(h, {
|
|
2503
2505
|
size: "xs",
|
|
2504
2506
|
name: t(i)
|
|
2505
2507
|
}, null, 8, ["name"]), [
|
|
2506
|
-
[
|
|
2508
|
+
[Y, t(l)]
|
|
2507
2509
|
]),
|
|
2508
|
-
|
|
2510
|
+
Z(B(h, {
|
|
2509
2511
|
size: "xs",
|
|
2510
2512
|
name: s.icon
|
|
2511
2513
|
}, null, 8, ["name"]), [
|
|
2512
|
-
[
|
|
2514
|
+
[Y, !t(l)]
|
|
2513
2515
|
]),
|
|
2514
2516
|
_(d.$slots, "default")
|
|
2515
2517
|
]),
|
|
@@ -2517,11 +2519,11 @@ const Zn = [
|
|
|
2517
2519
|
}, 16, ["class", "href", "target"]));
|
|
2518
2520
|
}
|
|
2519
2521
|
});
|
|
2520
|
-
const
|
|
2522
|
+
const rt = {
|
|
2521
2523
|
name: "MaSideMenuRoundIconButton",
|
|
2522
2524
|
inheritAttrs: !1
|
|
2523
|
-
},
|
|
2524
|
-
...
|
|
2525
|
+
}, sa = /* @__PURE__ */ k({
|
|
2526
|
+
...rt,
|
|
2525
2527
|
props: {
|
|
2526
2528
|
icon: null
|
|
2527
2529
|
},
|
|
@@ -2531,7 +2533,7 @@ const lt = {
|
|
|
2531
2533
|
class: "ma-side-menu-round-icon-button",
|
|
2532
2534
|
role: "button"
|
|
2533
2535
|
}, e.$attrs), [
|
|
2534
|
-
B(
|
|
2536
|
+
B(h, {
|
|
2535
2537
|
size: "xs",
|
|
2536
2538
|
name: s.icon
|
|
2537
2539
|
}, null, 8, ["name"]),
|
|
@@ -2539,11 +2541,11 @@ const lt = {
|
|
|
2539
2541
|
], 16));
|
|
2540
2542
|
}
|
|
2541
2543
|
});
|
|
2542
|
-
const
|
|
2544
|
+
const ct = ["src", "alt"], pt = {
|
|
2543
2545
|
name: "MaSideMenuAppButton",
|
|
2544
2546
|
inheritAttrs: !1
|
|
2545
|
-
},
|
|
2546
|
-
...
|
|
2547
|
+
}, oa = /* @__PURE__ */ k({
|
|
2548
|
+
...pt,
|
|
2547
2549
|
props: {
|
|
2548
2550
|
appImage: null,
|
|
2549
2551
|
appName: null,
|
|
@@ -2561,14 +2563,14 @@ const it = ["src", "alt"], rt = {
|
|
|
2561
2563
|
placement: "topLeft"
|
|
2562
2564
|
}, {
|
|
2563
2565
|
default: v(() => [
|
|
2564
|
-
|
|
2566
|
+
y("button", M({
|
|
2565
2567
|
class: t(e),
|
|
2566
2568
|
role: "button"
|
|
2567
2569
|
}, o.$attrs), [
|
|
2568
|
-
|
|
2570
|
+
y("img", {
|
|
2569
2571
|
src: a.appImage,
|
|
2570
2572
|
alt: a.appName
|
|
2571
|
-
}, null, 8,
|
|
2573
|
+
}, null, 8, ct),
|
|
2572
2574
|
_(o.$slots, "default")
|
|
2573
2575
|
], 16)
|
|
2574
2576
|
]),
|
|
@@ -2576,10 +2578,10 @@ const it = ["src", "alt"], rt = {
|
|
|
2576
2578
|
}, 8, ["title"]));
|
|
2577
2579
|
}
|
|
2578
2580
|
});
|
|
2579
|
-
const
|
|
2581
|
+
const ut = {
|
|
2580
2582
|
name: "MaSideMenuAddNewAppButton"
|
|
2581
|
-
},
|
|
2582
|
-
...
|
|
2583
|
+
}, ta = /* @__PURE__ */ k({
|
|
2584
|
+
...ut,
|
|
2583
2585
|
props: {
|
|
2584
2586
|
href: null,
|
|
2585
2587
|
target: null,
|
|
@@ -2588,7 +2590,7 @@ const ct = {
|
|
|
2588
2590
|
},
|
|
2589
2591
|
setup(a) {
|
|
2590
2592
|
const s = a;
|
|
2591
|
-
return (e, o) => (n(), m(
|
|
2593
|
+
return (e, o) => (n(), m(Q, M(e.$attrs, {
|
|
2592
2594
|
target: s?.target,
|
|
2593
2595
|
href: s?.href,
|
|
2594
2596
|
disabled: s?.disabled,
|
|
@@ -2602,10 +2604,10 @@ const ct = {
|
|
|
2602
2604
|
}, 16, ["target", "href", "disabled"]));
|
|
2603
2605
|
}
|
|
2604
2606
|
});
|
|
2605
|
-
const
|
|
2607
|
+
const dt = { class: "ma-progress-circle" }, mt = ["viewBox"], gt = ["d", "stroke-width"], vt = ["d", "stroke-dasharray", "stroke-dashoffset", "stroke-width"], ft = { key: 1 }, _t = {
|
|
2606
2608
|
key: 0,
|
|
2607
2609
|
class: "label"
|
|
2608
|
-
},
|
|
2610
|
+
}, yt = { class: "percent" }, ht = /* @__PURE__ */ k({
|
|
2609
2611
|
__name: "circle",
|
|
2610
2612
|
props: {
|
|
2611
2613
|
percent: null,
|
|
@@ -2651,20 +2653,20 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2651
2653
|
}, o = c(() => e[s.size]), l = c(
|
|
2652
2654
|
() => o.value.strokeDashArray * (100 - s.percent) / 100
|
|
2653
2655
|
);
|
|
2654
|
-
return (i, r) => (n(), p("div",
|
|
2656
|
+
return (i, r) => (n(), p("div", dt, [
|
|
2655
2657
|
(n(), p("svg", {
|
|
2656
2658
|
class: "circle",
|
|
2657
2659
|
viewBox: t(o).viewBox,
|
|
2658
2660
|
fill: "none",
|
|
2659
2661
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2660
2662
|
}, [
|
|
2661
|
-
|
|
2663
|
+
y("path", {
|
|
2662
2664
|
d: t(o).path,
|
|
2663
2665
|
"stroke-linecap": "round",
|
|
2664
2666
|
"stroke-linejoin": "round",
|
|
2665
2667
|
"stroke-width": t(o).strokeWidth,
|
|
2666
2668
|
class: "wrapper"
|
|
2667
|
-
}, null, 8,
|
|
2669
|
+
}, null, 8, gt),
|
|
2668
2670
|
s.percent > 0 ? (n(), p("path", {
|
|
2669
2671
|
key: 0,
|
|
2670
2672
|
d: t(o).path,
|
|
@@ -2674,18 +2676,18 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2674
2676
|
"stroke-dashoffset": t(l),
|
|
2675
2677
|
"stroke-width": t(o).strokeWidth,
|
|
2676
2678
|
class: "percent"
|
|
2677
|
-
}, null, 8,
|
|
2678
|
-
], 8,
|
|
2679
|
-
s?.icon ? (n(), m(
|
|
2679
|
+
}, null, 8, vt)) : f("", !0)
|
|
2680
|
+
], 8, mt)),
|
|
2681
|
+
s?.icon ? (n(), m(h, {
|
|
2680
2682
|
key: 0,
|
|
2681
2683
|
name: s.icon
|
|
2682
|
-
}, null, 8, ["name"])) : (n(), p("label",
|
|
2683
|
-
s?.label ? (n(), p("span",
|
|
2684
|
-
|
|
2684
|
+
}, null, 8, ["name"])) : (n(), p("label", ft, [
|
|
2685
|
+
s?.label ? (n(), p("span", _t, w(s.label), 1)) : f("", !0),
|
|
2686
|
+
y("span", yt, w(s?.percent) + "% ", 1)
|
|
2685
2687
|
]))
|
|
2686
2688
|
]));
|
|
2687
2689
|
}
|
|
2688
|
-
}),
|
|
2690
|
+
}), bt = { class: "ma-progress-line" }, kt = { class: "line-wrapper" }, $t = { key: 1 }, Ct = { class: "line-wrapper" }, wt = { key: 1 }, xt = /* @__PURE__ */ k({
|
|
2689
2691
|
__name: "line",
|
|
2690
2692
|
props: {
|
|
2691
2693
|
percent: null,
|
|
@@ -2706,39 +2708,39 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2706
2708
|
trigger: "click",
|
|
2707
2709
|
...s.tooltipProps
|
|
2708
2710
|
}));
|
|
2709
|
-
return (l, i) => (n(), p("div",
|
|
2710
|
-
s?.showTooltip ? (n(), m(ce,
|
|
2711
|
+
return (l, i) => (n(), p("div", bt, [
|
|
2712
|
+
s?.showTooltip ? (n(), m(ce, Te(M({ key: 0 }, t(o))), {
|
|
2711
2713
|
default: v(() => [
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
+
y("div", kt, [
|
|
2715
|
+
y("div", {
|
|
2714
2716
|
class: "line",
|
|
2715
2717
|
style: te(t(e))
|
|
2716
2718
|
}, null, 4)
|
|
2717
2719
|
]),
|
|
2718
|
-
s?.icon ? (n(), m(
|
|
2720
|
+
s?.icon ? (n(), m(h, {
|
|
2719
2721
|
key: 0,
|
|
2720
2722
|
name: s.icon
|
|
2721
|
-
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label",
|
|
2723
|
+
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label", $t, w(s.percent) + "%", 1)) : f("", !0)
|
|
2722
2724
|
]),
|
|
2723
2725
|
_: 1
|
|
2724
|
-
}, 16)) : (n(), p(
|
|
2725
|
-
|
|
2726
|
-
|
|
2726
|
+
}, 16)) : (n(), p(W, { key: 1 }, [
|
|
2727
|
+
y("div", Ct, [
|
|
2728
|
+
y("div", {
|
|
2727
2729
|
class: "line",
|
|
2728
2730
|
style: te(t(e))
|
|
2729
2731
|
}, null, 4)
|
|
2730
2732
|
]),
|
|
2731
|
-
s?.icon ? (n(), m(
|
|
2733
|
+
s?.icon ? (n(), m(h, {
|
|
2732
2734
|
key: 0,
|
|
2733
2735
|
name: s.icon
|
|
2734
|
-
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label",
|
|
2736
|
+
}, null, 8, ["name"])) : a.showPercent ? (n(), p("label", wt, w(s.percent) + "%", 1)) : f("", !0)
|
|
2735
2737
|
], 64))
|
|
2736
2738
|
]));
|
|
2737
2739
|
}
|
|
2738
|
-
}),
|
|
2740
|
+
}), Mt = { class: "ma-progress-circle ma-progress-half-circle" }, Bt = ["viewBox"], zt = ["d", "stroke-width"], It = ["d", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], St = { key: 1 }, Tt = {
|
|
2739
2741
|
key: 0,
|
|
2740
2742
|
class: "label"
|
|
2741
|
-
},
|
|
2743
|
+
}, At = { class: "percent" }, Pt = /* @__PURE__ */ k({
|
|
2742
2744
|
__name: "halfCircle",
|
|
2743
2745
|
props: {
|
|
2744
2746
|
percent: null,
|
|
@@ -2784,20 +2786,20 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2784
2786
|
}, o = c(() => e[s.size]), l = c(
|
|
2785
2787
|
() => o.value.strokeDashArray * (100 - s.percent) / 100
|
|
2786
2788
|
);
|
|
2787
|
-
return (i, r) => (n(), p("div",
|
|
2789
|
+
return (i, r) => (n(), p("div", Mt, [
|
|
2788
2790
|
(n(), p("svg", {
|
|
2789
2791
|
class: "circle",
|
|
2790
2792
|
viewBox: t(o).viewBox,
|
|
2791
2793
|
fill: "none",
|
|
2792
2794
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2793
2795
|
}, [
|
|
2794
|
-
|
|
2796
|
+
y("path", {
|
|
2795
2797
|
d: t(o).path,
|
|
2796
2798
|
"stroke-width": t(o).strokeWidth,
|
|
2797
2799
|
"stroke-linecap": "round",
|
|
2798
2800
|
"stroke-linejoin": "round",
|
|
2799
2801
|
class: "wrapper"
|
|
2800
|
-
}, null, 8,
|
|
2802
|
+
}, null, 8, zt),
|
|
2801
2803
|
s.percent > 0 ? (n(), p("path", {
|
|
2802
2804
|
key: 0,
|
|
2803
2805
|
d: t(o).path,
|
|
@@ -2807,18 +2809,18 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2807
2809
|
"stroke-dasharray": t(o).strokeDashArray,
|
|
2808
2810
|
"stroke-dashoffset": t(l),
|
|
2809
2811
|
class: "percent"
|
|
2810
|
-
}, null, 8,
|
|
2811
|
-
], 8,
|
|
2812
|
-
s?.icon ? (n(), m(
|
|
2812
|
+
}, null, 8, It)) : f("", !0)
|
|
2813
|
+
], 8, Bt)),
|
|
2814
|
+
s?.icon ? (n(), m(h, {
|
|
2813
2815
|
key: 0,
|
|
2814
2816
|
name: s.icon
|
|
2815
|
-
}, null, 8, ["name"])) : (n(), p("label",
|
|
2816
|
-
s?.label ? (n(), p("span",
|
|
2817
|
-
|
|
2817
|
+
}, null, 8, ["name"])) : (n(), p("label", St, [
|
|
2818
|
+
s?.label ? (n(), p("span", Tt, w(s.label), 1)) : f("", !0),
|
|
2819
|
+
y("span", At, w(s?.percent) + "% ", 1)
|
|
2818
2820
|
]))
|
|
2819
2821
|
]));
|
|
2820
2822
|
}
|
|
2821
|
-
}),
|
|
2823
|
+
}), Nt = { class: "ma-progress-line-step" }, Dt = { class: "step-line-wrapper" }, Lt = { key: 1 }, Et = /* @__PURE__ */ k({
|
|
2822
2824
|
__name: "stepLine",
|
|
2823
2825
|
props: {
|
|
2824
2826
|
percent: null,
|
|
@@ -2837,28 +2839,28 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2837
2839
|
width: `${r}%`
|
|
2838
2840
|
};
|
|
2839
2841
|
};
|
|
2840
|
-
return (o, l) => (n(), p("div",
|
|
2841
|
-
|
|
2842
|
-
(n(), p(
|
|
2842
|
+
return (o, l) => (n(), p("div", Nt, [
|
|
2843
|
+
y("div", Dt, [
|
|
2844
|
+
(n(), p(W, null, U(10, (i) => y("div", {
|
|
2843
2845
|
class: "single-line",
|
|
2844
2846
|
key: i
|
|
2845
2847
|
}, [
|
|
2846
|
-
|
|
2848
|
+
y("div", {
|
|
2847
2849
|
class: "single-line-fill",
|
|
2848
2850
|
style: te(e(i))
|
|
2849
2851
|
}, null, 4)
|
|
2850
2852
|
])), 64))
|
|
2851
2853
|
]),
|
|
2852
|
-
s?.icon ? (n(), m(
|
|
2854
|
+
s?.icon ? (n(), m(h, {
|
|
2853
2855
|
key: 0,
|
|
2854
2856
|
name: s.icon
|
|
2855
|
-
}, null, 8, ["name"])) : s?.showPercent ? (n(), p("label",
|
|
2857
|
+
}, null, 8, ["name"])) : s?.showPercent ? (n(), p("label", Lt, w(s.percent) + "%", 1)) : f("", !0)
|
|
2856
2858
|
]));
|
|
2857
2859
|
}
|
|
2858
|
-
}),
|
|
2860
|
+
}), Ft = {
|
|
2859
2861
|
name: "MaProgress"
|
|
2860
|
-
},
|
|
2861
|
-
...
|
|
2862
|
+
}, na = /* @__PURE__ */ k({
|
|
2863
|
+
...Ft,
|
|
2862
2864
|
props: {
|
|
2863
2865
|
type: { default: "line" },
|
|
2864
2866
|
percent: null,
|
|
@@ -2889,10 +2891,10 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2889
2891
|
}
|
|
2890
2892
|
]), o = c(
|
|
2891
2893
|
() => ({
|
|
2892
|
-
circle:
|
|
2893
|
-
line:
|
|
2894
|
-
["half-circle"]:
|
|
2895
|
-
["line-step"]:
|
|
2894
|
+
circle: ht,
|
|
2895
|
+
line: xt,
|
|
2896
|
+
["half-circle"]: Pt,
|
|
2897
|
+
["line-step"]: Et
|
|
2896
2898
|
})[s.type]
|
|
2897
2899
|
), l = c(() => [
|
|
2898
2900
|
`
|
|
@@ -2918,33 +2920,33 @@ const pt = { class: "ma-progress-circle" }, ut = ["viewBox"], dt = ["d", "stroke
|
|
|
2918
2920
|
], 2));
|
|
2919
2921
|
}
|
|
2920
2922
|
});
|
|
2921
|
-
const
|
|
2923
|
+
const aa = [
|
|
2922
2924
|
"line",
|
|
2923
2925
|
"line-step",
|
|
2924
2926
|
"circle",
|
|
2925
2927
|
"half-circle"
|
|
2926
|
-
],
|
|
2928
|
+
], la = [
|
|
2927
2929
|
"dark",
|
|
2928
2930
|
"blue",
|
|
2929
2931
|
"green",
|
|
2930
2932
|
"orange",
|
|
2931
2933
|
"red"
|
|
2932
|
-
],
|
|
2934
|
+
], ia = [
|
|
2933
2935
|
"xs",
|
|
2934
2936
|
"sm",
|
|
2935
2937
|
"md",
|
|
2936
2938
|
"lg",
|
|
2937
2939
|
"xl"
|
|
2938
|
-
],
|
|
2940
|
+
], ra = [
|
|
2939
2941
|
"left",
|
|
2940
2942
|
"right"
|
|
2941
|
-
],
|
|
2943
|
+
], Rt = { class: "ak-autocomplete" }, Ut = {
|
|
2942
2944
|
key: 0,
|
|
2943
2945
|
class: "ak-autocomplete__label"
|
|
2944
|
-
},
|
|
2946
|
+
}, jt = { class: "ak-autocomplete__options" }, Vt = ["onMousedown", "onMouseover"], Ot = { key: 1 }, qt = {
|
|
2945
2947
|
name: "MaAutocomplete"
|
|
2946
|
-
},
|
|
2947
|
-
...
|
|
2948
|
+
}, ca = /* @__PURE__ */ k({
|
|
2949
|
+
...qt,
|
|
2948
2950
|
props: {
|
|
2949
2951
|
value: null,
|
|
2950
2952
|
options: { default: () => [] },
|
|
@@ -2964,27 +2966,27 @@ const oa = [
|
|
|
2964
2966
|
set(x) {
|
|
2965
2967
|
s("update:value", x), u.value = -1;
|
|
2966
2968
|
}
|
|
2967
|
-
}), d = c(() => e?.avatarUrl ?
|
|
2969
|
+
}), d = c(() => e?.avatarUrl ? G.userInfo : G.text), z = c(() => !!o.default), I = c(
|
|
2968
2970
|
() => e.options.filter(
|
|
2969
2971
|
(x) => e.filterFn(g.value || "", x)
|
|
2970
2972
|
)
|
|
2971
|
-
),
|
|
2972
|
-
const
|
|
2973
|
-
g.value =
|
|
2973
|
+
), T = (x) => {
|
|
2974
|
+
const $ = x?.value || x?.label || x;
|
|
2975
|
+
g.value = $, z.value && r.value && (r.value.value = $), l.value = !1;
|
|
2974
2976
|
}, P = async () => {
|
|
2975
2977
|
const x = `${r.value?.value}`;
|
|
2976
2978
|
s("search", x), z.value && s("update:value", x), l.value || (l.value = !0);
|
|
2977
2979
|
}, C = (x) => {
|
|
2978
2980
|
l.value = !0;
|
|
2979
|
-
},
|
|
2981
|
+
}, A = (x) => {
|
|
2980
2982
|
l.value && i.value && x.target instanceof Node && !i.value.contains(x.target) && (l.value = !1);
|
|
2981
|
-
},
|
|
2982
|
-
x.key === "ArrowUp" && u.value > -1 ? u.value-- : x.key === "ArrowDown" && u.value <
|
|
2983
|
+
}, S = (x) => {
|
|
2984
|
+
x.key === "ArrowUp" && u.value > -1 ? u.value-- : x.key === "ArrowDown" && u.value < I.value.length ? u.value++ : x.key === "Enter" && I.value[u.value] && T(I.value[u.value]);
|
|
2983
2985
|
}, j = (x) => {
|
|
2984
2986
|
u.value = x;
|
|
2985
|
-
}, F = (x,
|
|
2987
|
+
}, F = (x, $) => ({
|
|
2986
2988
|
"active-option": x?.value === g.value,
|
|
2987
|
-
"current-option": u.value ===
|
|
2989
|
+
"current-option": u.value === $
|
|
2988
2990
|
});
|
|
2989
2991
|
return oe(
|
|
2990
2992
|
() => e.open,
|
|
@@ -2994,47 +2996,47 @@ const oa = [
|
|
|
2994
2996
|
}, 0);
|
|
2995
2997
|
}
|
|
2996
2998
|
), re(() => {
|
|
2997
|
-
i.value && (i.value.addEventListener("input", P), i.value.addEventListener("keydown",
|
|
2998
|
-
}),
|
|
2999
|
-
i.value && (i.value.removeEventListener("input", P), document.removeEventListener("click",
|
|
3000
|
-
}), (x,
|
|
2999
|
+
i.value && (i.value.addEventListener("input", P), i.value.addEventListener("keydown", S), document.addEventListener("click", A), r.value = i.value.querySelector('input[type="text"]'), r.value && r.value.addEventListener("focus", C));
|
|
3000
|
+
}), ye(() => {
|
|
3001
|
+
i.value && (i.value.removeEventListener("input", P), document.removeEventListener("click", A), i.value.removeEventListener("keydown", S), r.value && r.value.removeEventListener("focus", C));
|
|
3002
|
+
}), (x, $) => (n(), p("div", M({
|
|
3001
3003
|
class: "ak-autocomplete-wrapper",
|
|
3002
3004
|
ref_key: "autoComplete",
|
|
3003
3005
|
ref: i
|
|
3004
3006
|
}, x.$attrs), [
|
|
3005
|
-
B(
|
|
3007
|
+
B(Po, {
|
|
3006
3008
|
"overlay-class-name": "ak-autocomplete__dropdown",
|
|
3007
3009
|
trigger: [],
|
|
3008
3010
|
visible: l.value,
|
|
3009
|
-
"onUpdate:visible":
|
|
3011
|
+
"onUpdate:visible": $[1] || ($[1] = (N) => l.value = N)
|
|
3010
3012
|
}, {
|
|
3011
3013
|
overlay: v(() => [
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
(n(!0), p(
|
|
3014
|
+
y("div", jt, [
|
|
3015
|
+
y("ul", null, [
|
|
3016
|
+
(n(!0), p(W, null, U(t(I), (N, O) => (n(), p("li", {
|
|
3015
3017
|
class: R(F(N, O)),
|
|
3016
|
-
onMousedown:
|
|
3017
|
-
onMouseover: (
|
|
3018
|
+
onMousedown: he((K) => T(N), ["prevent"]),
|
|
3019
|
+
onMouseover: (K) => j(O),
|
|
3018
3020
|
key: O
|
|
3019
3021
|
}, [
|
|
3020
3022
|
x.$slots.option ? _(x.$slots, "option", {
|
|
3021
3023
|
key: 0,
|
|
3022
3024
|
label: N?.label,
|
|
3023
3025
|
value: N.value
|
|
3024
|
-
}) : (n(), p("span",
|
|
3025
|
-
N?.value === t(g) ? (n(), m(
|
|
3026
|
+
}) : (n(), p("span", Ot, w(N?.label || N?.value), 1)),
|
|
3027
|
+
N?.value === t(g) ? (n(), m(h, {
|
|
3026
3028
|
key: 2,
|
|
3027
3029
|
name: "tick",
|
|
3028
3030
|
size: "sm"
|
|
3029
3031
|
})) : f("", !0)
|
|
3030
|
-
], 42,
|
|
3032
|
+
], 42, Vt))), 128))
|
|
3031
3033
|
]),
|
|
3032
3034
|
_(x.$slots, "overlay")
|
|
3033
3035
|
])
|
|
3034
3036
|
]),
|
|
3035
3037
|
default: v(() => [
|
|
3036
|
-
|
|
3037
|
-
e.label ? (n(), p("label",
|
|
3038
|
+
y("div", Rt, [
|
|
3039
|
+
e.label ? (n(), p("label", Ut, w(e.label), 1)) : f("", !0),
|
|
3038
3040
|
x.$slots.default ? _(x.$slots, "default", { key: 1 }) : (n(), m(ke, {
|
|
3039
3041
|
key: 2,
|
|
3040
3042
|
class: R({ "active-input": t(g)?.length }),
|
|
@@ -3044,7 +3046,7 @@ const oa = [
|
|
|
3044
3046
|
avatarUrl: e?.avatarUrl,
|
|
3045
3047
|
type: t(d),
|
|
3046
3048
|
value: t(g),
|
|
3047
|
-
"onUpdate:value":
|
|
3049
|
+
"onUpdate:value": $[0] || ($[0] = (N) => J(g) ? g.value = N : null)
|
|
3048
3050
|
}, null, 8, ["class", "placeholder", "prefixIcon", "avatarUrl", "type", "value"]))
|
|
3049
3051
|
])
|
|
3050
3052
|
]),
|
|
@@ -3053,8 +3055,80 @@ const oa = [
|
|
|
3053
3055
|
], 16));
|
|
3054
3056
|
}
|
|
3055
3057
|
});
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
+
const Ht = {
|
|
3059
|
+
name: "MaTabs"
|
|
3060
|
+
}, pa = /* @__PURE__ */ k({
|
|
3061
|
+
...Ht,
|
|
3062
|
+
props: {
|
|
3063
|
+
activeKey: null,
|
|
3064
|
+
animated: { type: Boolean, default: !1 },
|
|
3065
|
+
destroyInactiveTabPane: { type: Boolean, default: !1 },
|
|
3066
|
+
tabPosition: { default: "top" },
|
|
3067
|
+
type: { default: "line" }
|
|
3068
|
+
},
|
|
3069
|
+
emits: ["update:activeKey"],
|
|
3070
|
+
setup(a, { emit: s }) {
|
|
3071
|
+
const e = a, o = c({
|
|
3072
|
+
get() {
|
|
3073
|
+
return e?.activeKey;
|
|
3074
|
+
},
|
|
3075
|
+
set(l) {
|
|
3076
|
+
s("update:activeKey", l);
|
|
3077
|
+
}
|
|
3078
|
+
});
|
|
3079
|
+
return (l, i) => (n(), m(t(Xe), M({
|
|
3080
|
+
class: "ak-tabs",
|
|
3081
|
+
animated: e?.animated,
|
|
3082
|
+
destroyInactiveTabPane: e?.destroyInactiveTabPane,
|
|
3083
|
+
tabPosition: e?.tabPosition,
|
|
3084
|
+
type: a.type,
|
|
3085
|
+
"prefix-cls": "antd-tabs",
|
|
3086
|
+
activeKey: t(o),
|
|
3087
|
+
"onUpdate:activeKey": i[0] || (i[0] = (r) => J(o) ? o.value = r : null)
|
|
3088
|
+
}, l.$attrs), q({
|
|
3089
|
+
moreIcon: v(() => [
|
|
3090
|
+
B(h, {
|
|
3091
|
+
name: "ellipsis-horizontal",
|
|
3092
|
+
size: "xs"
|
|
3093
|
+
})
|
|
3094
|
+
]),
|
|
3095
|
+
_: 2
|
|
3096
|
+
}, [
|
|
3097
|
+
U(l.$slots, (r, u) => ({
|
|
3098
|
+
name: u,
|
|
3099
|
+
fn: v(() => [
|
|
3100
|
+
_(l.$slots, u)
|
|
3101
|
+
])
|
|
3102
|
+
}))
|
|
3103
|
+
]), 1040, ["animated", "destroyInactiveTabPane", "tabPosition", "type", "activeKey"]));
|
|
3104
|
+
}
|
|
3105
|
+
});
|
|
3106
|
+
const ua = [
|
|
3107
|
+
"left",
|
|
3108
|
+
"right",
|
|
3109
|
+
"top",
|
|
3110
|
+
"bottom"
|
|
3111
|
+
], da = [
|
|
3112
|
+
"card",
|
|
3113
|
+
"line"
|
|
3114
|
+
], ma = [
|
|
3115
|
+
"left",
|
|
3116
|
+
"right"
|
|
3117
|
+
], ga = /* @__PURE__ */ k({
|
|
3118
|
+
__name: "tabPane",
|
|
3119
|
+
setup(a) {
|
|
3120
|
+
return (s, e) => (n(), m(t(Qe), M({ tab: "test" }, s.$attrs), q({ _: 2 }, [
|
|
3121
|
+
U(s.$slots, (o, l) => ({
|
|
3122
|
+
name: l,
|
|
3123
|
+
fn: v(() => [
|
|
3124
|
+
_(s.$slots, l)
|
|
3125
|
+
])
|
|
3126
|
+
}))
|
|
3127
|
+
]), 1040));
|
|
3128
|
+
}
|
|
3129
|
+
});
|
|
3130
|
+
class Wt {
|
|
3131
|
+
config = Ae({
|
|
3058
3132
|
language: "en"
|
|
3059
3133
|
});
|
|
3060
3134
|
setConfig(s) {
|
|
@@ -3074,99 +3148,104 @@ class Ot {
|
|
|
3074
3148
|
return this.config.language;
|
|
3075
3149
|
}
|
|
3076
3150
|
}
|
|
3077
|
-
const
|
|
3078
|
-
function
|
|
3079
|
-
return Ne(
|
|
3151
|
+
const Kt = new Wt();
|
|
3152
|
+
function va() {
|
|
3153
|
+
return Ne(Kt.getConfig());
|
|
3080
3154
|
}
|
|
3081
3155
|
export {
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3156
|
+
Kt as ActionKitConfig,
|
|
3157
|
+
En as Animations,
|
|
3158
|
+
Bn as AppIconPlatforms,
|
|
3159
|
+
Mn as AppIconSizes,
|
|
3160
|
+
sn as ButtonIconAlignMents,
|
|
3161
|
+
Qt as ButtonShapes,
|
|
3162
|
+
ts as ButtonSizes,
|
|
3163
|
+
en as ButtonTargets,
|
|
3164
|
+
Yt as ButtonTypes,
|
|
3165
|
+
Xt as ButtonVariants,
|
|
3166
|
+
Nn as MaAlert,
|
|
3167
|
+
Ln as MaAlertPropTypes,
|
|
3168
|
+
Dn as MaAlertPropVariants,
|
|
3169
|
+
fo as MaAnimation,
|
|
3170
|
+
xn as MaAppIcon,
|
|
3171
|
+
wn as MaAppTrackButton,
|
|
3172
|
+
ca as MaAutoComplete,
|
|
3173
|
+
mo as MaBadge,
|
|
3174
|
+
Pn as MaBadgePropIconAlignments,
|
|
3175
|
+
An as MaBadgePropSizes,
|
|
3176
|
+
Tn as MaBadgePropTypes,
|
|
3177
|
+
Sn as MaBadgePropVariants,
|
|
3178
|
+
Q as MaButton,
|
|
3179
|
+
bn as MaCheckbox,
|
|
3180
|
+
kn as MaCheckboxGroup,
|
|
3181
|
+
Po as MaDropdown,
|
|
3182
|
+
qn as MaDropdownPlacements,
|
|
3183
|
+
Hn as MaDropdownTriggers,
|
|
3184
|
+
Gn as MaEmpty,
|
|
3111
3185
|
fe as MaEmptyIcons,
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3186
|
+
Wn as MaEmptySizes,
|
|
3187
|
+
Kn as MaEmptyVariants,
|
|
3188
|
+
mn as MaForm,
|
|
3189
|
+
gn as MaFormItem,
|
|
3190
|
+
vn as MaFormLayouts,
|
|
3191
|
+
h as MaIcon,
|
|
3192
|
+
es as MaIconSizeClassNames,
|
|
3193
|
+
Zt as MaIconSizes,
|
|
3120
3194
|
ke as MaInput,
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3195
|
+
fn as MaInputCurrency,
|
|
3196
|
+
ws as MaInputSize,
|
|
3197
|
+
G as MaInputType,
|
|
3124
3198
|
ge as MaModal,
|
|
3125
3199
|
me as MaModalTypeIcon,
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3200
|
+
Fn as MaModalTypes,
|
|
3201
|
+
$n as MaNumericInput,
|
|
3202
|
+
na as MaProgress,
|
|
3203
|
+
ia as MaProgressCircleSizes,
|
|
3204
|
+
la as MaProgressColors,
|
|
3205
|
+
ra as MaProgressPercentAlignments,
|
|
3206
|
+
aa as MaProgressTypes,
|
|
3207
|
+
Js as MaRadio,
|
|
3208
|
+
zn as MaRadioGroup,
|
|
3209
|
+
In as MaRadioTypes,
|
|
3210
|
+
Rn as MaRate,
|
|
3211
|
+
jn as MaRateColors,
|
|
3212
|
+
Un as MaRateSizes,
|
|
3213
|
+
Ls as MaSelect,
|
|
3214
|
+
_n as MaSelectOption,
|
|
3215
|
+
ta as MaSideMenuAddNewAppButton,
|
|
3216
|
+
oa as MaSideMenuAppButton,
|
|
3217
|
+
Yn as MaSideMenuButton,
|
|
3218
|
+
ea as MaSideMenuIconButton,
|
|
3219
|
+
Xn as MaSideMenuItem,
|
|
3220
|
+
Qn as MaSideMenuItemColors,
|
|
3221
|
+
sa as MaSideMenuRoundIconButton,
|
|
3148
3222
|
ve as MaSpin,
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3223
|
+
On as MaSpinColors,
|
|
3224
|
+
Vn as MaSpinTypes,
|
|
3225
|
+
rn as MaSwitch,
|
|
3226
|
+
ma as MaTabIconAlignMents,
|
|
3227
|
+
ga as MaTabPane,
|
|
3228
|
+
ua as MaTabPositions,
|
|
3229
|
+
da as MaTabTypes,
|
|
3230
|
+
pa as MaTabs,
|
|
3231
|
+
an as MaToggle,
|
|
3153
3232
|
ce as MaTooltip,
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3233
|
+
on as MaTrackButton,
|
|
3234
|
+
Zn as MaUpload,
|
|
3235
|
+
H as MaUploadFileStatus,
|
|
3236
|
+
Fo as MaUploadSizes,
|
|
3237
|
+
Jn as MaUploadTypes,
|
|
3238
|
+
Cn as NumericInputSizes,
|
|
3239
|
+
hn as SelectModes,
|
|
3240
|
+
yn as SelectSizes,
|
|
3241
|
+
cn as SwitchTypes,
|
|
3242
|
+
ln as ToggleSizes,
|
|
3243
|
+
pn as TooltipPlacements,
|
|
3244
|
+
dn as TooltipTriggerTypes,
|
|
3245
|
+
un as TooltipTypes,
|
|
3246
|
+
nn as TrackButtonSizes,
|
|
3247
|
+
tn as TrackButtonVariants,
|
|
3248
|
+
Ms as currencyOptions,
|
|
3249
|
+
xs as currencySymbols,
|
|
3250
|
+
va as useActionKitConfig
|
|
3172
3251
|
};
|