@mobileaction/action-kit 1.1.19 → 1.1.21
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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, computed as c, defineAsyncComponent as oo, openBlock as a, createBlock as
|
|
1
|
+
import { defineComponent as y, computed as c, defineAsyncComponent as oo, openBlock as a, createBlock as u, resolveDynamicComponent as Y, unref as n, normalizeClass as R, mergeProps as $, createSlots as j, renderList as V, withCtx as m, renderSlot as _, createVNode as C, createTextVNode as O, toDisplayString as z, createElementBlock as d, isRef as L, createCommentVNode as f, createElementVNode as A, ref as D, Fragment as G, useSlots as K, useAttrs as so, watch as U, Transition as X, onMounted as eo, onBeforeUnmount as to, normalizeStyle as no, h as io, createApp as ao, reactive as lo, readonly as ro, toRefs as co } from "vue";
|
|
2
2
|
import { Button as Q, Switch as po, Tooltip as go, Form as mo, FormItem as uo, Avatar as vo, Select as fo, InputPassword as _o, Input as ho, Textarea as yo, SelectOption as bo, Checkbox as ko, CheckboxGroup as $o, Radio as wo, RadioGroup as Co, Alert as xo, Modal as Io } from "ant-design-vue";
|
|
3
3
|
const H = (t, s) => {
|
|
4
4
|
const o = t[s];
|
|
@@ -35,7 +35,7 @@ const H = (t, s) => {
|
|
|
35
35
|
Bo[s.size],
|
|
36
36
|
{ "animate-spin": s.spin }
|
|
37
37
|
]);
|
|
38
|
-
return (l, r) => (a(),
|
|
38
|
+
return (l, r) => (a(), u(Y(n(e)), {
|
|
39
39
|
class: R(n(i))
|
|
40
40
|
}, null, 8, ["class"]));
|
|
41
41
|
}
|
|
@@ -74,7 +74,7 @@ const H = (t, s) => {
|
|
|
74
74
|
"ak-button--disabled": l.value
|
|
75
75
|
}
|
|
76
76
|
]), i = c(() => s?.loading || s?.icon), l = c(() => s?.disabled || s?.loading);
|
|
77
|
-
return (r, p) => (a(),
|
|
77
|
+
return (r, p) => (a(), u(n(Q), $({
|
|
78
78
|
class: n(e),
|
|
79
79
|
href: s.href,
|
|
80
80
|
target: s.target,
|
|
@@ -82,21 +82,21 @@ const H = (t, s) => {
|
|
|
82
82
|
type: n(o),
|
|
83
83
|
role: "button"
|
|
84
84
|
}, r.$attrs, { "prefix-cls": "antd-btn" }), j({ _: 2 }, [
|
|
85
|
-
|
|
86
|
-
name:
|
|
87
|
-
fn:
|
|
88
|
-
|
|
85
|
+
V(r.$slots, (h, x) => ({
|
|
86
|
+
name: x,
|
|
87
|
+
fn: m(() => [
|
|
88
|
+
_(r.$slots, x)
|
|
89
89
|
])
|
|
90
90
|
})),
|
|
91
91
|
n(i) ? {
|
|
92
92
|
name: "icon",
|
|
93
|
-
fn:
|
|
94
|
-
s?.loading ? (a(),
|
|
93
|
+
fn: m(() => [
|
|
94
|
+
s?.loading ? (a(), u(b, {
|
|
95
95
|
key: 0,
|
|
96
96
|
class: "ak-button__loader",
|
|
97
97
|
spin: "",
|
|
98
98
|
name: "loader"
|
|
99
|
-
})) : (a(),
|
|
99
|
+
})) : (a(), u(b, {
|
|
100
100
|
key: 1,
|
|
101
101
|
name: s?.icon
|
|
102
102
|
}, null, 8, ["name"]))
|
|
@@ -139,37 +139,37 @@ const So = {
|
|
|
139
139
|
]), e = c(
|
|
140
140
|
() => s.loading ? "loader" : s?.showClose ? "close-circle" : s?.tracked ? "tick-circle-bold" : "add"
|
|
141
141
|
), i = c(() => s.size === "lg" ? "sm" : "xs");
|
|
142
|
-
return (l, r) => (a(),
|
|
142
|
+
return (l, r) => (a(), u(n(Q), $(l.$attrs, {
|
|
143
143
|
class: n(o),
|
|
144
144
|
disabled: s?.disabled || s?.loading,
|
|
145
145
|
role: "button",
|
|
146
146
|
"prefix-cls": "antd-btn"
|
|
147
147
|
}), j({
|
|
148
|
-
icon:
|
|
149
|
-
|
|
148
|
+
icon: m(() => [
|
|
149
|
+
C(b, {
|
|
150
150
|
spin: s?.loading,
|
|
151
151
|
name: n(e),
|
|
152
152
|
size: n(i)
|
|
153
153
|
}, null, 8, ["spin", "name", "size"])
|
|
154
154
|
]),
|
|
155
|
-
default:
|
|
156
|
-
|
|
155
|
+
default: m(() => [
|
|
156
|
+
O(" " + z(t.keyword) + " ", 1)
|
|
157
157
|
]),
|
|
158
158
|
_: 2
|
|
159
159
|
}, [
|
|
160
|
-
|
|
161
|
-
name:
|
|
162
|
-
fn:
|
|
163
|
-
|
|
160
|
+
V(l.$slots, (p, h) => ({
|
|
161
|
+
name: h,
|
|
162
|
+
fn: m(() => [
|
|
163
|
+
_(l.$slots, h)
|
|
164
164
|
])
|
|
165
165
|
}))
|
|
166
166
|
]), 1040, ["class", "disabled"]));
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const
|
|
169
|
+
const Ao = {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "ma-toggle__titles"
|
|
172
|
-
},
|
|
172
|
+
}, No = {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: "ma-toggle__titles__title"
|
|
175
175
|
}, Vo = {
|
|
@@ -208,10 +208,10 @@ const No = {
|
|
|
208
208
|
return (l, r) => (a(), d("div", {
|
|
209
209
|
class: R(n(i))
|
|
210
210
|
}, [
|
|
211
|
-
|
|
211
|
+
C(n(po), $({
|
|
212
212
|
class: "ma-toggle__switch",
|
|
213
213
|
checked: n(e),
|
|
214
|
-
"onUpdate:checked": r[0] || (r[0] = (p) =>
|
|
214
|
+
"onUpdate:checked": r[0] || (r[0] = (p) => L(e) ? e.value = p : null)
|
|
215
215
|
}, l.$attrs, {
|
|
216
216
|
onClick: r[1] || (r[1] = (p) => l.$emit("click", p)),
|
|
217
217
|
disabled: o.disabled,
|
|
@@ -220,10 +220,10 @@ const No = {
|
|
|
220
220
|
unCheckedChildren: o.unCheckedChildren,
|
|
221
221
|
"prefix-cls": "antd-switch"
|
|
222
222
|
}), null, 16, ["checked", "disabled", "loading", "checkedChildren", "unCheckedChildren"]),
|
|
223
|
-
o.title || o.subTitle ? (a(), d("div",
|
|
224
|
-
o.title ? (a(), d("span",
|
|
225
|
-
o.subTitle ? (a(), d("span", Vo, z(o.subTitle), 1)) :
|
|
226
|
-
])) :
|
|
223
|
+
o.title || o.subTitle ? (a(), d("div", Ao, [
|
|
224
|
+
o.title ? (a(), d("span", No, z(o.title), 1)) : f("", !0),
|
|
225
|
+
o.subTitle ? (a(), d("span", Vo, z(o.subTitle), 1)) : f("", !0)
|
|
226
|
+
])) : f("", !0)
|
|
227
227
|
], 2));
|
|
228
228
|
}
|
|
229
229
|
});
|
|
@@ -262,26 +262,26 @@ const jo = ["aria-checked", "disabled"], Do = {
|
|
|
262
262
|
]), l = (r) => {
|
|
263
263
|
o.disabled || (e.value = r);
|
|
264
264
|
};
|
|
265
|
-
return (r, p) => (a(), d("button",
|
|
265
|
+
return (r, p) => (a(), d("button", $(r.$attrs, {
|
|
266
266
|
class: n(i),
|
|
267
267
|
type: "button",
|
|
268
268
|
role: "switch",
|
|
269
269
|
"aria-checked": n(e) === o.rightValue,
|
|
270
270
|
disabled: o.disabled
|
|
271
271
|
}), [
|
|
272
|
-
|
|
272
|
+
A("span", {
|
|
273
273
|
class: R({ active: o.active === o.leftValue }),
|
|
274
|
-
onClick: p[0] || (p[0] = (
|
|
274
|
+
onClick: p[0] || (p[0] = (h) => l(o.leftValue))
|
|
275
275
|
}, [
|
|
276
|
-
|
|
276
|
+
C(b, {
|
|
277
277
|
name: o.leftIcon
|
|
278
278
|
}, null, 8, ["name"])
|
|
279
279
|
], 2),
|
|
280
|
-
|
|
280
|
+
A("span", {
|
|
281
281
|
class: R({ active: o.active === o.rightValue }),
|
|
282
|
-
onClick: p[1] || (p[1] = (
|
|
282
|
+
onClick: p[1] || (p[1] = (h) => l(o.rightValue))
|
|
283
283
|
}, [
|
|
284
|
-
|
|
284
|
+
C(b, {
|
|
285
285
|
name: o.rightIcon
|
|
286
286
|
}, null, 8, ["name"])
|
|
287
287
|
], 2)
|
|
@@ -318,42 +318,42 @@ const Ro = { class: "ak-tooltip-overlay__content" }, To = { class: "ak-tooltip-o
|
|
|
318
318
|
].join(" ")), i = D(s.defaultVisible), l = () => {
|
|
319
319
|
i.value = !1;
|
|
320
320
|
};
|
|
321
|
-
return (r, p) => (a(),
|
|
321
|
+
return (r, p) => (a(), u(n(go), $(r.$attrs, {
|
|
322
322
|
visible: i.value,
|
|
323
|
-
"onUpdate:visible": p[0] || (p[0] = (
|
|
323
|
+
"onUpdate:visible": p[0] || (p[0] = (h) => i.value = h),
|
|
324
324
|
class: n(o),
|
|
325
325
|
placement: s.placement,
|
|
326
326
|
trigger: s.trigger,
|
|
327
327
|
overlayClassName: n(e),
|
|
328
328
|
"prefix-cls": "antd-tooltip"
|
|
329
329
|
}), {
|
|
330
|
-
title:
|
|
331
|
-
s.icon ? (a(),
|
|
330
|
+
title: m(() => [
|
|
331
|
+
s.icon ? (a(), u(b, {
|
|
332
332
|
key: 0,
|
|
333
333
|
size: "xs",
|
|
334
334
|
name: s.icon
|
|
335
|
-
}, null, 8, ["name"])) :
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
335
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
336
|
+
_(r.$slots, "icon"),
|
|
337
|
+
A("div", Ro, [
|
|
338
|
+
A("span", To, [
|
|
339
|
+
O(z(s.title) + " ", 1),
|
|
340
|
+
_(r.$slots, "title")
|
|
341
341
|
]),
|
|
342
342
|
s?.description || r.$slots.description ? (a(), d("span", qo, [
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
])) :
|
|
343
|
+
O(z(s.description) + " ", 1),
|
|
344
|
+
_(r.$slots, "description")
|
|
345
|
+
])) : f("", !0)
|
|
346
346
|
]),
|
|
347
|
-
s.closable ? (a(),
|
|
347
|
+
s.closable ? (a(), u(b, {
|
|
348
348
|
key: 1,
|
|
349
349
|
onClick: l,
|
|
350
350
|
class: "ak-tooltip-overlay__close",
|
|
351
351
|
size: "xs",
|
|
352
352
|
name: "close"
|
|
353
|
-
})) :
|
|
353
|
+
})) : f("", !0)
|
|
354
354
|
]),
|
|
355
|
-
default:
|
|
356
|
-
|
|
355
|
+
default: m(() => [
|
|
356
|
+
_(r.$slots, "default")
|
|
357
357
|
]),
|
|
358
358
|
_: 3
|
|
359
359
|
}, 16, ["visible", "class", "placement", "trigger", "overlayClassName"]));
|
|
@@ -366,10 +366,10 @@ const Oo = {
|
|
|
366
366
|
for (const [e, i] of s)
|
|
367
367
|
o[e] = i;
|
|
368
368
|
return o;
|
|
369
|
-
}, Uo = /* @__PURE__ */
|
|
369
|
+
}, Uo = /* @__PURE__ */ A("label", {
|
|
370
370
|
for: "cc-num",
|
|
371
371
|
class: "hidden"
|
|
372
|
-
}, "HubspotCollectedFormsWorkaround", -1), Ho = /* @__PURE__ */
|
|
372
|
+
}, "HubspotCollectedFormsWorkaround", -1), Ho = /* @__PURE__ */ A("input", {
|
|
373
373
|
id: "cc-num",
|
|
374
374
|
name: "cc-num",
|
|
375
375
|
class: "hidden",
|
|
@@ -397,15 +397,15 @@ const Go = /* @__PURE__ */ Lo(Oo, [["render", Eo]]), Ko = {
|
|
|
397
397
|
resetFields: () => e.value.resetFields(),
|
|
398
398
|
scrollToField: () => e.value.scrollToField(),
|
|
399
399
|
validateFields: () => e.value.validateFields()
|
|
400
|
-
}), (
|
|
400
|
+
}), (x, M) => (a(), u(n(mo), $(x.$attrs, {
|
|
401
401
|
class: "ma-form",
|
|
402
402
|
"prefix-cls": "antd-form",
|
|
403
403
|
ref_key: "form",
|
|
404
404
|
ref: e
|
|
405
405
|
}), {
|
|
406
|
-
default:
|
|
407
|
-
o.nonHubspotFormsIgnore ? (a(),
|
|
408
|
-
|
|
406
|
+
default: m(() => [
|
|
407
|
+
o.nonHubspotFormsIgnore ? (a(), u(Go, { key: 0 })) : f("", !0),
|
|
408
|
+
_(x.$slots, "default")
|
|
409
409
|
]),
|
|
410
410
|
_: 3
|
|
411
411
|
}, 16));
|
|
@@ -416,20 +416,20 @@ const Wo = {
|
|
|
416
416
|
}, ie = /* @__PURE__ */ y({
|
|
417
417
|
...Wo,
|
|
418
418
|
setup(t) {
|
|
419
|
-
return (s, o) => (a(),
|
|
419
|
+
return (s, o) => (a(), u(n(uo), $(s.$attrs, {
|
|
420
420
|
class: "ma-form-item",
|
|
421
421
|
"prefix-cls": "antd-form"
|
|
422
422
|
}), j({ _: 2 }, [
|
|
423
|
-
|
|
423
|
+
V(s.$slots, (e, i) => ({
|
|
424
424
|
name: i,
|
|
425
|
-
fn:
|
|
426
|
-
|
|
425
|
+
fn: m(() => [
|
|
426
|
+
_(s.$slots, i)
|
|
427
427
|
])
|
|
428
428
|
}))
|
|
429
429
|
]), 1040));
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
|
-
var
|
|
432
|
+
var q = /* @__PURE__ */ ((t) => (t.text = "text", t.password = "password", t.textarea = "textarea", t.number = "number", t.email = "email", t.url = "url", t.tel = "tel", t.amount = "amount", t.creditCard = "creditCard", t.userInfo = "userInfo", t))(q || {}), Z = /* @__PURE__ */ ((t) => (t.small = "small", t.medium = "medium", t.large = "large", t))(Z || {});
|
|
433
433
|
const Jo = {
|
|
434
434
|
usd: "$",
|
|
435
435
|
eur: "€",
|
|
@@ -445,9 +445,9 @@ const Jo = {
|
|
|
445
445
|
}, Qo = /* @__PURE__ */ y({
|
|
446
446
|
...Xo,
|
|
447
447
|
setup(t) {
|
|
448
|
-
return (s, o) => (a(),
|
|
448
|
+
return (s, o) => (a(), u(n(vo), $(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
|
|
449
449
|
}
|
|
450
|
-
}), Zo = { class: "dropdown-wrapper" }, os = { class: "mobile-header" }, ss = /* @__PURE__ */
|
|
450
|
+
}), Zo = { class: "dropdown-wrapper" }, os = { class: "mobile-header" }, ss = /* @__PURE__ */ A("label", null, "Select", -1), es = {
|
|
451
451
|
name: "MaDropdownRender"
|
|
452
452
|
}, ts = /* @__PURE__ */ y({
|
|
453
453
|
...es,
|
|
@@ -474,31 +474,31 @@ const Jo = {
|
|
|
474
474
|
s("closeDropdown");
|
|
475
475
|
};
|
|
476
476
|
return (r, p) => (a(), d("div", Zo, [
|
|
477
|
-
|
|
478
|
-
|
|
477
|
+
A("div", os, [
|
|
478
|
+
C(b, {
|
|
479
479
|
size: "lg",
|
|
480
480
|
name: "close-circle",
|
|
481
481
|
onClick: l
|
|
482
482
|
}),
|
|
483
483
|
ss,
|
|
484
|
-
|
|
484
|
+
C(E, {
|
|
485
485
|
type: "grey-link",
|
|
486
486
|
onClick: l
|
|
487
487
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
|
|
488
|
+
default: m(() => [
|
|
489
|
+
O("Done")
|
|
490
490
|
]),
|
|
491
491
|
_: 1
|
|
492
492
|
})
|
|
493
493
|
]),
|
|
494
|
-
|
|
494
|
+
C(ms, {
|
|
495
495
|
value: n(i),
|
|
496
|
-
"onUpdate:value": p[0] || (p[0] = (
|
|
496
|
+
"onUpdate:value": p[0] || (p[0] = (h) => L(i) ? i.value = h : null),
|
|
497
497
|
autofocus: "",
|
|
498
498
|
placeholder: "Search",
|
|
499
499
|
"prefix-icon": "search-normal"
|
|
500
500
|
}, null, 8, ["value"]),
|
|
501
|
-
|
|
501
|
+
C(e, { vnodes: t.menu }, null, 8, ["vnodes"])
|
|
502
502
|
]));
|
|
503
503
|
}
|
|
504
504
|
}), ns = {
|
|
@@ -528,6 +528,7 @@ const Jo = {
|
|
|
528
528
|
showSearch: { type: Boolean },
|
|
529
529
|
size: { default: "default" },
|
|
530
530
|
suffixIcon: null,
|
|
531
|
+
showArrow: { type: Boolean },
|
|
531
532
|
prefixIcon: null,
|
|
532
533
|
open: { type: Boolean, default: !1 },
|
|
533
534
|
value: { default: "" },
|
|
@@ -541,10 +542,10 @@ const Jo = {
|
|
|
541
542
|
get() {
|
|
542
543
|
return o.value;
|
|
543
544
|
},
|
|
544
|
-
set(
|
|
545
|
-
s("update:value",
|
|
545
|
+
set(v) {
|
|
546
|
+
s("update:value", v);
|
|
546
547
|
}
|
|
547
|
-
}),
|
|
548
|
+
}), h = c(() => [
|
|
548
549
|
"ma-select",
|
|
549
550
|
`ma-select--${o.size}`,
|
|
550
551
|
{
|
|
@@ -556,113 +557,124 @@ const Jo = {
|
|
|
556
557
|
{
|
|
557
558
|
"ma-select--custom-render": r
|
|
558
559
|
}
|
|
559
|
-
]),
|
|
560
|
+
]), x = c(() => [
|
|
560
561
|
o?.dropdownClassName,
|
|
561
562
|
"ma-select-dropdown",
|
|
562
563
|
!o?.mode && (e?.prefixIcon || o?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
563
|
-
].join(" ")), M = c(() => o?.loading ? "loader" : o?.suffixIcon), S = () => {
|
|
564
|
+
].join(" ")), M = c(() => o?.loading ? "loader" : o?.suffixIcon), S = c(() => Object.keys(e).filter((v) => !["option"].includes(v))), k = c(() => o?.showArrow || !o?.mode), I = () => {
|
|
564
565
|
l.value = !0;
|
|
565
|
-
},
|
|
566
|
-
l.value =
|
|
567
|
-
},
|
|
566
|
+
}, g = (v) => {
|
|
567
|
+
l.value = v, i.value = "";
|
|
568
|
+
}, w = c(() => !r.value && o?.showSearch), B = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : o?.listHeight, P = () => {
|
|
568
569
|
l.value = !1;
|
|
569
570
|
};
|
|
570
|
-
return (
|
|
571
|
+
return (v, F) => (a(), u(n(fo), $({
|
|
571
572
|
value: n(p),
|
|
572
|
-
"onUpdate:value":
|
|
573
|
-
},
|
|
574
|
-
class: n(
|
|
573
|
+
"onUpdate:value": F[1] || (F[1] = (N) => L(p) ? p.value = N : null)
|
|
574
|
+
}, v.$attrs, {
|
|
575
|
+
class: n(h),
|
|
575
576
|
allowClear: o?.allowClear,
|
|
576
577
|
autoClearSearchValue: o?.autoClearSearchValue,
|
|
577
578
|
autofocus: o?.autofocus,
|
|
578
579
|
defaultOpen: o?.defaultOpen,
|
|
579
580
|
disabled: o?.disabled || o?.loading,
|
|
580
|
-
dropdownClassName: n(
|
|
581
|
+
dropdownClassName: n(x),
|
|
581
582
|
loading: o?.loading,
|
|
582
583
|
optionFilterProp: o?.optionFilterProp,
|
|
583
584
|
optionLabelProp: o?.optionLabelProp,
|
|
584
585
|
options: o?.options,
|
|
585
586
|
placeholder: o?.placeholder,
|
|
586
587
|
searchValue: i.value || void 0,
|
|
587
|
-
showSearch: n(
|
|
588
|
+
showSearch: n(w),
|
|
589
|
+
showArrow: n(k),
|
|
588
590
|
mode: o?.mode,
|
|
589
|
-
"list-height":
|
|
591
|
+
"list-height": B(),
|
|
590
592
|
size: o?.size,
|
|
591
593
|
open: l.value,
|
|
592
|
-
onClick:
|
|
593
|
-
onDropdownVisibleChange:
|
|
594
|
+
onClick: I,
|
|
595
|
+
onDropdownVisibleChange: g,
|
|
594
596
|
"prefix-cls": "antd-select"
|
|
595
597
|
}), j({
|
|
596
|
-
suffixIcon:
|
|
597
|
-
|
|
598
|
+
suffixIcon: m(() => [
|
|
599
|
+
C(b, {
|
|
598
600
|
spin: o?.loading,
|
|
599
601
|
name: n(M) || "chevron-down"
|
|
600
602
|
}, null, 8, ["spin", "name"]),
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
o?.prefixIcon ? (a(),
|
|
603
|
+
v.$slots?.prefixIcon || o?.prefixIcon ? (a(), d("div", ns, [
|
|
604
|
+
_(v.$slots, "prefixIcon", {}, () => [
|
|
605
|
+
o?.prefixIcon ? (a(), u(b, {
|
|
604
606
|
key: 0,
|
|
605
607
|
name: o?.prefixIcon
|
|
606
|
-
}, null, 8, ["name"])) :
|
|
608
|
+
}, null, 8, ["name"])) : f("", !0)
|
|
607
609
|
])
|
|
608
|
-
])) :
|
|
610
|
+
])) : f("", !0)
|
|
609
611
|
]),
|
|
610
|
-
removeIcon:
|
|
611
|
-
|
|
612
|
+
removeIcon: m(() => [
|
|
613
|
+
C(b, {
|
|
612
614
|
name: o?.removeIcon || "close"
|
|
613
615
|
}, null, 8, ["name"])
|
|
614
616
|
]),
|
|
615
617
|
_: 2
|
|
616
618
|
}, [
|
|
617
|
-
|
|
618
|
-
name:
|
|
619
|
-
fn:
|
|
620
|
-
|
|
619
|
+
V(n(S), (N) => ({
|
|
620
|
+
name: N,
|
|
621
|
+
fn: m(() => [
|
|
622
|
+
_(v.$slots, N)
|
|
621
623
|
])
|
|
622
624
|
})),
|
|
625
|
+
v.$slots.option ? {
|
|
626
|
+
name: "option",
|
|
627
|
+
fn: m(({ label: N, value: T }) => [
|
|
628
|
+
_(v.$slots, "option", {
|
|
629
|
+
label: N,
|
|
630
|
+
value: T
|
|
631
|
+
})
|
|
632
|
+
]),
|
|
633
|
+
key: "0"
|
|
634
|
+
} : void 0,
|
|
623
635
|
o?.clearIcon ? {
|
|
624
636
|
name: "clearIcon",
|
|
625
|
-
fn:
|
|
626
|
-
o?.clearIcon ? (a(),
|
|
637
|
+
fn: m(() => [
|
|
638
|
+
o?.clearIcon ? (a(), u(b, {
|
|
627
639
|
key: 0,
|
|
628
640
|
name: o?.clearIcon
|
|
629
|
-
}, null, 8, ["name"])) :
|
|
641
|
+
}, null, 8, ["name"])) : f("", !0)
|
|
630
642
|
]),
|
|
631
|
-
key: "
|
|
643
|
+
key: "1"
|
|
632
644
|
} : void 0,
|
|
633
645
|
o?.menuItemSelectedIcon ? {
|
|
634
646
|
name: "menuItemSelectedIcon",
|
|
635
|
-
fn:
|
|
636
|
-
|
|
647
|
+
fn: m(() => [
|
|
648
|
+
C(b, {
|
|
637
649
|
name: o?.menuItemSelectedIcon
|
|
638
650
|
}, null, 8, ["name"])
|
|
639
651
|
]),
|
|
640
|
-
key: "
|
|
652
|
+
key: "2"
|
|
641
653
|
} : void 0,
|
|
642
|
-
|
|
654
|
+
v.$slots.notFoundContent ? void 0 : {
|
|
643
655
|
name: "notFoundContent",
|
|
644
|
-
fn:
|
|
645
|
-
|
|
656
|
+
fn: m(() => [
|
|
657
|
+
C(b, {
|
|
646
658
|
size: "sm",
|
|
647
659
|
name: "warning"
|
|
648
660
|
}),
|
|
649
|
-
|
|
661
|
+
O(" No result found! ")
|
|
650
662
|
]),
|
|
651
|
-
key: "
|
|
663
|
+
key: "3"
|
|
652
664
|
},
|
|
653
665
|
n(r) && l.value ? {
|
|
654
666
|
name: "dropdownRender",
|
|
655
|
-
fn:
|
|
656
|
-
|
|
667
|
+
fn: m(({ menuNode: N }) => [
|
|
668
|
+
C(ts, {
|
|
657
669
|
filter: i.value,
|
|
658
|
-
"onUpdate:filter":
|
|
659
|
-
menu:
|
|
660
|
-
onCloseDropdown:
|
|
670
|
+
"onUpdate:filter": F[0] || (F[0] = (T) => i.value = T),
|
|
671
|
+
menu: N,
|
|
672
|
+
onCloseDropdown: P
|
|
661
673
|
}, null, 8, ["filter", "menu"])
|
|
662
674
|
]),
|
|
663
|
-
key: "
|
|
675
|
+
key: "4"
|
|
664
676
|
} : void 0
|
|
665
|
-
]), 1040, ["value", "class", "allowClear", "autoClearSearchValue", "autofocus", "defaultOpen", "disabled", "dropdownClassName", "loading", "optionFilterProp", "optionLabelProp", "options", "placeholder", "searchValue", "showSearch", "mode", "list-height", "size", "open"]));
|
|
677
|
+
]), 1040, ["value", "class", "allowClear", "autoClearSearchValue", "autofocus", "defaultOpen", "disabled", "dropdownClassName", "loading", "optionFilterProp", "optionLabelProp", "options", "placeholder", "searchValue", "showSearch", "showArrow", "mode", "list-height", "size", "open"]));
|
|
666
678
|
}
|
|
667
679
|
});
|
|
668
680
|
const ls = ["for"], rs = {
|
|
@@ -681,7 +693,7 @@ const ls = ["for"], rs = {
|
|
|
681
693
|
...gs,
|
|
682
694
|
props: {
|
|
683
695
|
allowClear: { type: Boolean },
|
|
684
|
-
type: { default:
|
|
696
|
+
type: { default: q.text },
|
|
685
697
|
size: { default: Z.small },
|
|
686
698
|
title: null,
|
|
687
699
|
hintText: null,
|
|
@@ -705,7 +717,7 @@ const ls = ["for"], rs = {
|
|
|
705
717
|
"update:amountCurrency"
|
|
706
718
|
],
|
|
707
719
|
setup(t, { emit: s }) {
|
|
708
|
-
const o = t, e = so(), i = D(null), l = c(() => [
|
|
720
|
+
const o = t, e = so(), i = D(null), l = c(() => [q.amount, q.creditCard].includes(o.type) ? "number" : o.type === q.userInfo ? "text" : o.type), r = c(() => [
|
|
709
721
|
`ma-input ak-input ak-input--${o.type} ak-input--${o.size} ${e?.class}`,
|
|
710
722
|
{
|
|
711
723
|
"ak-input--has-error": o.hasError
|
|
@@ -716,115 +728,115 @@ const ls = ["for"], rs = {
|
|
|
716
728
|
{
|
|
717
729
|
"ak-input--filled": o?.value
|
|
718
730
|
}
|
|
719
|
-
]), p = c(() => ["ak-input__input", o?.inputClass]),
|
|
731
|
+
]), p = c(() => ["ak-input__input", o?.inputClass]), h = c({
|
|
720
732
|
get() {
|
|
721
733
|
return o.value;
|
|
722
734
|
},
|
|
723
|
-
set(
|
|
724
|
-
s("update:value",
|
|
735
|
+
set(v) {
|
|
736
|
+
s("update:value", v);
|
|
725
737
|
}
|
|
726
|
-
}),
|
|
738
|
+
}), x = c(() => o.amountCurrency ? Jo[o.amountCurrency.toLowerCase()] : null), M = c({
|
|
727
739
|
get() {
|
|
728
740
|
return o.amountCurrency;
|
|
729
741
|
},
|
|
730
|
-
set(
|
|
731
|
-
s("update:amountCurrency",
|
|
742
|
+
set(v) {
|
|
743
|
+
s("update:amountCurrency", v);
|
|
732
744
|
}
|
|
733
|
-
}), S = c(() => o.type ===
|
|
734
|
-
let
|
|
735
|
-
return e?.class && delete
|
|
736
|
-
}),
|
|
737
|
-
s("change",
|
|
738
|
-
},
|
|
739
|
-
s("currency-change",
|
|
740
|
-
},
|
|
745
|
+
}), S = c(() => o.type === q.password ? _o : ho), k = c(() => o.type === q.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), I = c(() => o.type === q.url ? "https" : o?.addonBefore), g = c(() => {
|
|
746
|
+
let v = { ...e, ...k.value };
|
|
747
|
+
return e?.class && delete v?.class, v;
|
|
748
|
+
}), w = (v) => {
|
|
749
|
+
s("change", v);
|
|
750
|
+
}, B = (v) => {
|
|
751
|
+
s("currency-change", v);
|
|
752
|
+
}, P = () => {
|
|
741
753
|
i.value.focus();
|
|
742
754
|
};
|
|
743
|
-
return (
|
|
755
|
+
return (v, F) => (a(), d("div", {
|
|
744
756
|
class: R(n(r))
|
|
745
757
|
}, [
|
|
746
|
-
|
|
758
|
+
_(v.$slots, "title"),
|
|
747
759
|
o.title ? (a(), d("label", {
|
|
748
760
|
key: 0,
|
|
749
|
-
onClick:
|
|
761
|
+
onClick: P,
|
|
750
762
|
class: "ak-input__title",
|
|
751
|
-
for:
|
|
752
|
-
}, z(o.title), 9, ls)) :
|
|
763
|
+
for: v.$attrs?.id
|
|
764
|
+
}, z(o.title), 9, ls)) : f("", !0),
|
|
753
765
|
o.type !== "textarea" ? (a(), d("div", rs, [
|
|
754
|
-
(a(),
|
|
755
|
-
value: n(
|
|
756
|
-
"onUpdate:value": F[1] || (F[1] = (
|
|
766
|
+
(a(), u(Y(n(S)), $({
|
|
767
|
+
value: n(h),
|
|
768
|
+
"onUpdate:value": F[1] || (F[1] = (N) => L(h) ? h.value = N : null)
|
|
757
769
|
}, n(g), {
|
|
758
770
|
allowClear: o?.allowClear,
|
|
759
771
|
type: n(l),
|
|
760
772
|
disabled: o?.disabled,
|
|
761
773
|
placeholder: o?.placeholder,
|
|
762
|
-
addonBefore: n(
|
|
774
|
+
addonBefore: n(I),
|
|
763
775
|
addonAfter: t.addonAfter,
|
|
764
776
|
class: n(p),
|
|
765
|
-
onChange:
|
|
777
|
+
onChange: w,
|
|
766
778
|
ref_key: "inputRef",
|
|
767
779
|
ref: i
|
|
768
780
|
}), j({
|
|
769
|
-
prefix:
|
|
770
|
-
o.prefixIcon ? (a(),
|
|
781
|
+
prefix: m(() => [
|
|
782
|
+
o.prefixIcon ? (a(), u(b, {
|
|
771
783
|
key: 0,
|
|
772
784
|
size: "xs",
|
|
773
785
|
name: o.prefixIcon
|
|
774
|
-
}, null, 8, ["name"])) : n(
|
|
786
|
+
}, null, 8, ["name"])) : n(x) ? (a(), d("span", cs, z(n(x)), 1)) : o.type === n(q).userInfo ? (a(), u(Qo, {
|
|
775
787
|
key: 2,
|
|
776
788
|
src: o.avatarUrl,
|
|
777
789
|
disabled: o.disabled
|
|
778
|
-
}, null, 8, ["src", "disabled"])) :
|
|
790
|
+
}, null, 8, ["src", "disabled"])) : f("", !0)
|
|
779
791
|
]),
|
|
780
|
-
suffix:
|
|
781
|
-
o.type === "amount" ? (a(),
|
|
792
|
+
suffix: m(() => [
|
|
793
|
+
o.type === "amount" ? (a(), u(as, {
|
|
782
794
|
key: 0,
|
|
783
795
|
value: n(M),
|
|
784
|
-
"onUpdate:value": F[0] || (F[0] = (
|
|
785
|
-
onChange:
|
|
796
|
+
"onUpdate:value": F[0] || (F[0] = (N) => L(M) ? M.value = N : null),
|
|
797
|
+
onChange: B,
|
|
786
798
|
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
787
799
|
options: n(Yo),
|
|
788
800
|
disabled: o.disabled,
|
|
789
801
|
size: "small"
|
|
790
|
-
}, null, 8, ["value", "options", "disabled"])) :
|
|
791
|
-
o.suffixIcon ? (a(),
|
|
802
|
+
}, null, 8, ["value", "options", "disabled"])) : f("", !0),
|
|
803
|
+
o.suffixIcon ? (a(), u(b, {
|
|
792
804
|
key: 1,
|
|
793
805
|
size: "xs",
|
|
794
806
|
name: o.suffixIcon
|
|
795
|
-
}, null, 8, ["name"])) :
|
|
807
|
+
}, null, 8, ["name"])) : f("", !0)
|
|
796
808
|
]),
|
|
797
809
|
_: 2
|
|
798
810
|
}, [
|
|
799
|
-
|
|
800
|
-
name:
|
|
801
|
-
fn:
|
|
802
|
-
|
|
811
|
+
V(v.$slots, (N, T) => ({
|
|
812
|
+
name: T,
|
|
813
|
+
fn: m(() => [
|
|
814
|
+
_(v.$slots, T)
|
|
803
815
|
])
|
|
804
816
|
}))
|
|
805
817
|
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter", "class"]))
|
|
806
|
-
])) : (a(),
|
|
818
|
+
])) : (a(), u(n(yo), $({
|
|
807
819
|
key: 2,
|
|
808
|
-
value: n(
|
|
809
|
-
"onUpdate:value": F[2] || (F[2] = (
|
|
820
|
+
value: n(h),
|
|
821
|
+
"onUpdate:value": F[2] || (F[2] = (N) => L(h) ? h.value = N : null)
|
|
810
822
|
}, n(g), {
|
|
811
823
|
class: n(p),
|
|
812
824
|
disabled: o?.disabled,
|
|
813
825
|
placeholder: o?.placeholder,
|
|
814
|
-
onChange:
|
|
826
|
+
onChange: w,
|
|
815
827
|
rows: 5,
|
|
816
828
|
ref_key: "inputRef",
|
|
817
829
|
ref: i
|
|
818
830
|
}), j({ _: 2 }, [
|
|
819
|
-
|
|
820
|
-
name:
|
|
821
|
-
fn:
|
|
822
|
-
|
|
831
|
+
V(v.$slots, (N, T) => ({
|
|
832
|
+
name: T,
|
|
833
|
+
fn: m(() => [
|
|
834
|
+
_(v.$slots, T)
|
|
823
835
|
])
|
|
824
836
|
}))
|
|
825
837
|
]), 1040, ["value", "class", "disabled", "placeholder"])),
|
|
826
|
-
|
|
827
|
-
o.hintText ? (a(), d("div", ps, z(o.hintText), 1)) :
|
|
838
|
+
_(v.$slots, "hint"),
|
|
839
|
+
o.hintText ? (a(), d("div", ps, z(o.hintText), 1)) : f("", !0)
|
|
828
840
|
], 2));
|
|
829
841
|
}
|
|
830
842
|
});
|
|
@@ -833,14 +845,14 @@ const us = {
|
|
|
833
845
|
}, ae = /* @__PURE__ */ y({
|
|
834
846
|
...us,
|
|
835
847
|
setup(t) {
|
|
836
|
-
return (s, o) => (a(),
|
|
848
|
+
return (s, o) => (a(), u(n(bo), $(s.$attrs, {
|
|
837
849
|
class: "ma-select-option",
|
|
838
850
|
"prefix-cls": "antd-select"
|
|
839
851
|
}), j({ _: 2 }, [
|
|
840
|
-
|
|
852
|
+
V(s.$slots, (e, i) => ({
|
|
841
853
|
name: i,
|
|
842
|
-
fn:
|
|
843
|
-
|
|
854
|
+
fn: m(() => [
|
|
855
|
+
_(s.$slots, i)
|
|
844
856
|
])
|
|
845
857
|
}))
|
|
846
858
|
]), 1040));
|
|
@@ -862,20 +874,20 @@ const us = {
|
|
|
862
874
|
"ak-checkbox--intermediate": typeof s?.indeterminate == "boolean"
|
|
863
875
|
}
|
|
864
876
|
]);
|
|
865
|
-
return (e, i) => (a(),
|
|
877
|
+
return (e, i) => (a(), u(n(ko), $(e.$attrs, {
|
|
866
878
|
class: n(o),
|
|
867
879
|
disabled: s?.disabled,
|
|
868
880
|
indeterminate: s?.indeterminate,
|
|
869
881
|
"prefix-cls": "antd-checkbox"
|
|
870
882
|
}), j({ _: 2 }, [
|
|
871
|
-
|
|
883
|
+
V(e.$slots, (l, r) => ({
|
|
872
884
|
name: r,
|
|
873
|
-
fn:
|
|
874
|
-
|
|
885
|
+
fn: m(() => [
|
|
886
|
+
_(e.$slots, r),
|
|
875
887
|
s.hint ? (a(), d("div", {
|
|
876
888
|
key: r,
|
|
877
889
|
class: "ak-checkbox__hint-text"
|
|
878
|
-
}, z(s.hint), 1)) :
|
|
890
|
+
}, z(s.hint), 1)) : f("", !0)
|
|
879
891
|
])
|
|
880
892
|
}))
|
|
881
893
|
]), 1040, ["class", "disabled", "indeterminate"]));
|
|
@@ -891,18 +903,18 @@ const vs = {
|
|
|
891
903
|
},
|
|
892
904
|
setup(t) {
|
|
893
905
|
const s = t;
|
|
894
|
-
return (o, e) => (a(),
|
|
906
|
+
return (o, e) => (a(), u(n($o), $(o.$attrs, {
|
|
895
907
|
class: "ak-checkbox-group ma-checkbox-group",
|
|
896
908
|
"prefix-cls": "antd-checkbox"
|
|
897
909
|
}), j({ _: 2 }, [
|
|
898
|
-
|
|
910
|
+
V(o.$slots, (i, l) => ({
|
|
899
911
|
name: l,
|
|
900
|
-
fn:
|
|
901
|
-
|
|
912
|
+
fn: m(() => [
|
|
913
|
+
_(o.$slots, l),
|
|
902
914
|
s.hint ? (a(), d("div", {
|
|
903
915
|
key: l,
|
|
904
916
|
class: "ak-checkbox__hint-text"
|
|
905
|
-
}, z(s.hint), 1)) :
|
|
917
|
+
}, z(s.hint), 1)) : f("", !0)
|
|
906
918
|
])
|
|
907
919
|
}))
|
|
908
920
|
]), 1040));
|
|
@@ -925,7 +937,7 @@ const vs = {
|
|
|
925
937
|
const i = (l) => {
|
|
926
938
|
s("update:value", l.target.value);
|
|
927
939
|
};
|
|
928
|
-
return (l, r) => (a(), d("input",
|
|
940
|
+
return (l, r) => (a(), d("input", $(l.$attrs, {
|
|
929
941
|
value: o.value,
|
|
930
942
|
onInput: i,
|
|
931
943
|
ref_key: "input",
|
|
@@ -952,7 +964,7 @@ const vs = {
|
|
|
952
964
|
},
|
|
953
965
|
emits: ["update:value"],
|
|
954
966
|
setup(t, { emit: s }) {
|
|
955
|
-
const o = t, e = D(null), i = D(Array.from({ length: o.length }, (g,
|
|
967
|
+
const o = t, e = D(null), i = D(Array.from({ length: o.length }, (g, w) => o.value[w] || null)), l = c(() => [
|
|
956
968
|
"ma-numeric-input",
|
|
957
969
|
`ma-numeric-input--${o.size}`,
|
|
958
970
|
{
|
|
@@ -961,11 +973,11 @@ const vs = {
|
|
|
961
973
|
{
|
|
962
974
|
"ma-numeric-input--disabled": o?.disabled
|
|
963
975
|
}
|
|
964
|
-
]), r = c(() => o?.placeholderStatus ? "0" : null), p = (g) => /^Digit[0-9]$/.test(g),
|
|
976
|
+
]), r = c(() => o?.placeholderStatus ? "0" : null), p = (g) => /^Digit[0-9]$/.test(g), h = (g) => e.value = g, x = (g, w) => {
|
|
965
977
|
switch (g.code) {
|
|
966
978
|
case "Backspace":
|
|
967
979
|
case "Delete":
|
|
968
|
-
k("",
|
|
980
|
+
k("", w), S();
|
|
969
981
|
break;
|
|
970
982
|
case "ArrowLeft":
|
|
971
983
|
g.preventDefault(), S();
|
|
@@ -974,25 +986,25 @@ const vs = {
|
|
|
974
986
|
g.preventDefault(), M();
|
|
975
987
|
break;
|
|
976
988
|
default:
|
|
977
|
-
p(g.code) && (g.preventDefault(), k(g.key,
|
|
989
|
+
p(g.code) && (g.preventDefault(), k(g.key, w), M());
|
|
978
990
|
break;
|
|
979
991
|
}
|
|
980
992
|
}, M = () => {
|
|
981
993
|
e.value < o.length && e.value++;
|
|
982
994
|
}, S = () => {
|
|
983
995
|
o.length >= e.value && e.value > 0 && e.value--;
|
|
984
|
-
}, k = (g,
|
|
985
|
-
i.value[
|
|
986
|
-
},
|
|
996
|
+
}, k = (g, w) => {
|
|
997
|
+
i.value[w] = g;
|
|
998
|
+
}, I = (g, w) => {
|
|
987
999
|
g.preventDefault();
|
|
988
|
-
const
|
|
989
|
-
|
|
1000
|
+
const B = g.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, o.length);
|
|
1001
|
+
B.length === 1 && B.match(/^\d+$/) ? i.value[w] = B : B.match(/^\d+$/) && (i.value = B.split(""));
|
|
990
1002
|
};
|
|
991
1003
|
return U(
|
|
992
1004
|
() => i.value,
|
|
993
1005
|
(g) => {
|
|
994
|
-
const
|
|
995
|
-
s("update:value",
|
|
1006
|
+
const w = g.join("");
|
|
1007
|
+
s("update:value", w);
|
|
996
1008
|
},
|
|
997
1009
|
{ deep: !0 }
|
|
998
1010
|
), U(
|
|
@@ -1000,16 +1012,16 @@ const vs = {
|
|
|
1000
1012
|
(g) => {
|
|
1001
1013
|
g !== i.value.join("") && g && g.match(/^\d+$/) && (i.value = g.split("").slice(0, o.length));
|
|
1002
1014
|
}
|
|
1003
|
-
), (g,
|
|
1004
|
-
(a(!0), d(G, null,
|
|
1005
|
-
focus: e.value ===
|
|
1006
|
-
key:
|
|
1015
|
+
), (g, w) => (a(), d("div", $({ class: n(l) }, g.$attrs), [
|
|
1016
|
+
(a(!0), d(G, null, V(o.length, (B) => (a(), u(_s, {
|
|
1017
|
+
focus: e.value === B - 1,
|
|
1018
|
+
key: B,
|
|
1007
1019
|
placeholder: n(r),
|
|
1008
|
-
value: i.value[
|
|
1020
|
+
value: i.value[B - 1],
|
|
1009
1021
|
disabled: o.disabled,
|
|
1010
|
-
onFocus: (
|
|
1011
|
-
onKeydown: (
|
|
1012
|
-
onPaste: (
|
|
1022
|
+
onFocus: (P) => h(B - 1),
|
|
1023
|
+
onKeydown: (P) => x(P, B - 1),
|
|
1024
|
+
onPaste: (P) => I(P, B - 1),
|
|
1013
1025
|
class: "ma-numeric-input__input"
|
|
1014
1026
|
}, null, 8, ["focus", "placeholder", "value", "disabled", "onFocus", "onKeydown", "onPaste"]))), 128))
|
|
1015
1027
|
], 16));
|
|
@@ -1026,18 +1038,18 @@ const ys = {
|
|
|
1026
1038
|
},
|
|
1027
1039
|
setup(t) {
|
|
1028
1040
|
const s = t, o = c(() => [`ma-radio ma-radio--${s.type}`]);
|
|
1029
|
-
return (e, i) => (a(),
|
|
1041
|
+
return (e, i) => (a(), u(n(wo), $(e.$attrs, {
|
|
1030
1042
|
class: n(o),
|
|
1031
1043
|
"prefix-cls": "antd-radio"
|
|
1032
1044
|
}), j({ _: 2 }, [
|
|
1033
|
-
|
|
1045
|
+
V(e.$slots, (l, r) => ({
|
|
1034
1046
|
name: r,
|
|
1035
|
-
fn:
|
|
1036
|
-
|
|
1047
|
+
fn: m(() => [
|
|
1048
|
+
_(e.$slots, r),
|
|
1037
1049
|
s.hint ? (a(), d("div", {
|
|
1038
1050
|
key: r,
|
|
1039
1051
|
class: "ma-radio__hint-text"
|
|
1040
|
-
}, z(s.hint), 1)) :
|
|
1052
|
+
}, z(s.hint), 1)) : f("", !0)
|
|
1041
1053
|
])
|
|
1042
1054
|
}))
|
|
1043
1055
|
]), 1040, ["class"]));
|
|
@@ -1075,38 +1087,38 @@ const ks = ["aria-checked", "disabled"], $s = ["src", "alt"], ws = { class: "ma-
|
|
|
1075
1087
|
"ma-app-track-button--loading": o.loading
|
|
1076
1088
|
}
|
|
1077
1089
|
]);
|
|
1078
|
-
return (l, r) => (a(), d("button",
|
|
1090
|
+
return (l, r) => (a(), d("button", $({
|
|
1079
1091
|
class: n(i),
|
|
1080
1092
|
role: "switch",
|
|
1081
1093
|
"aria-checked": o.checked,
|
|
1082
1094
|
disabled: o.disabled
|
|
1083
1095
|
}, l.$attrs, { onClick: e }), [
|
|
1084
|
-
|
|
1096
|
+
A("img", {
|
|
1085
1097
|
src: o.appIcon,
|
|
1086
1098
|
alt: o.appName,
|
|
1087
1099
|
width: "40",
|
|
1088
1100
|
height: "40"
|
|
1089
1101
|
}, null, 8, $s),
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
o.appCategory ? (a(), d("span", xs, z(o?.appCategory), 1)) :
|
|
1102
|
+
A("span", ws, [
|
|
1103
|
+
A("span", Cs, z(o.appName), 1),
|
|
1104
|
+
o.appCategory ? (a(), d("span", xs, z(o?.appCategory), 1)) : f("", !0)
|
|
1093
1105
|
]),
|
|
1094
|
-
|
|
1095
|
-
|
|
1106
|
+
A("span", Is, [
|
|
1107
|
+
C(X, {
|
|
1096
1108
|
name: "fade",
|
|
1097
1109
|
mode: "out-in"
|
|
1098
1110
|
}, {
|
|
1099
|
-
default:
|
|
1100
|
-
o.loading ? (a(),
|
|
1111
|
+
default: m(() => [
|
|
1112
|
+
o.loading ? (a(), u(b, {
|
|
1101
1113
|
key: 0,
|
|
1102
1114
|
name: "loader",
|
|
1103
1115
|
size: "xs",
|
|
1104
1116
|
spin: ""
|
|
1105
|
-
})) : !o.multiple || o.checked ? (a(),
|
|
1117
|
+
})) : !o.multiple || o.checked ? (a(), u(bs, {
|
|
1106
1118
|
key: 1,
|
|
1107
1119
|
checked: o.checked,
|
|
1108
1120
|
type: "check"
|
|
1109
|
-
}, null, 8, ["checked"])) : (a(),
|
|
1121
|
+
}, null, 8, ["checked"])) : (a(), u(b, {
|
|
1110
1122
|
key: 2,
|
|
1111
1123
|
name: "add-circle",
|
|
1112
1124
|
size: "xs"
|
|
@@ -1121,7 +1133,7 @@ const ks = ["aria-checked", "disabled"], $s = ["src", "alt"], ws = { class: "ma-
|
|
|
1121
1133
|
const zs = { class: "ak-app-icon__logo" }, Ms = ["src"], Ss = {
|
|
1122
1134
|
key: 1,
|
|
1123
1135
|
class: "ak-app-icon-platform"
|
|
1124
|
-
},
|
|
1136
|
+
}, As = { class: "ak-app-icon__text" }, Ns = {
|
|
1125
1137
|
key: 0,
|
|
1126
1138
|
class: "ak-app-name"
|
|
1127
1139
|
}, Vs = {
|
|
@@ -1154,31 +1166,31 @@ const zs = { class: "ak-app-icon__logo" }, Ms = ["src"], Ss = {
|
|
|
1154
1166
|
return (r, p) => (a(), d("div", {
|
|
1155
1167
|
class: R(n(i))
|
|
1156
1168
|
}, [
|
|
1157
|
-
|
|
1169
|
+
A("div", zs, [
|
|
1158
1170
|
o.closable ? (a(), d("span", {
|
|
1159
1171
|
key: 0,
|
|
1160
1172
|
onClick: l,
|
|
1161
1173
|
class: "ak-app-icon-closable"
|
|
1162
1174
|
}, [
|
|
1163
|
-
|
|
1175
|
+
C(b, {
|
|
1164
1176
|
size: "xs",
|
|
1165
1177
|
name: "close-circle"
|
|
1166
1178
|
})
|
|
1167
|
-
])) :
|
|
1168
|
-
|
|
1179
|
+
])) : f("", !0),
|
|
1180
|
+
A("img", {
|
|
1169
1181
|
class: "ak-app-icon-img",
|
|
1170
1182
|
src: o.appIcon
|
|
1171
1183
|
}, null, 8, Ms),
|
|
1172
1184
|
o?.platform ? (a(), d("span", Ss, [
|
|
1173
|
-
|
|
1185
|
+
C(b, {
|
|
1174
1186
|
size: "xs",
|
|
1175
1187
|
name: n(e)
|
|
1176
1188
|
}, null, 8, ["name"])
|
|
1177
|
-
])) :
|
|
1189
|
+
])) : f("", !0)
|
|
1178
1190
|
]),
|
|
1179
|
-
|
|
1180
|
-
o?.appName ? (a(), d("span",
|
|
1181
|
-
o?.appDescription ? (a(), d("span", Vs, z(o.appDescription), 1)) :
|
|
1191
|
+
A("div", As, [
|
|
1192
|
+
o?.appName ? (a(), d("span", Ns, z(o.appName), 1)) : f("", !0),
|
|
1193
|
+
o?.appDescription ? (a(), d("span", Vs, z(o.appDescription), 1)) : f("", !0)
|
|
1182
1194
|
])
|
|
1183
1195
|
], 2));
|
|
1184
1196
|
}
|
|
@@ -1188,11 +1200,11 @@ const js = {
|
|
|
1188
1200
|
}, me = /* @__PURE__ */ y({
|
|
1189
1201
|
...js,
|
|
1190
1202
|
setup(t) {
|
|
1191
|
-
return (s, o) => (a(),
|
|
1192
|
-
|
|
1203
|
+
return (s, o) => (a(), u(n(Co), $(s.$attrs, { "prefix-cls": "antd-radio" }), j({ _: 2 }, [
|
|
1204
|
+
V(s.$slots, (e, i) => ({
|
|
1193
1205
|
name: i,
|
|
1194
|
-
fn:
|
|
1195
|
-
|
|
1206
|
+
fn: m(() => [
|
|
1207
|
+
_(s.$slots, i)
|
|
1196
1208
|
])
|
|
1197
1209
|
}))
|
|
1198
1210
|
]), 1040));
|
|
@@ -1221,11 +1233,11 @@ const js = {
|
|
|
1221
1233
|
return (e, i) => (a(), d("div", {
|
|
1222
1234
|
class: R(n(o))
|
|
1223
1235
|
}, [
|
|
1224
|
-
s?.icon ? (a(),
|
|
1236
|
+
s?.icon ? (a(), u(b, {
|
|
1225
1237
|
key: 0,
|
|
1226
1238
|
name: s?.icon
|
|
1227
|
-
}, null, 8, ["name"])) :
|
|
1228
|
-
|
|
1239
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
1240
|
+
_(e.$slots, "default")
|
|
1229
1241
|
], 2));
|
|
1230
1242
|
}
|
|
1231
1243
|
});
|
|
@@ -1243,7 +1255,7 @@ const Rs = {
|
|
|
1243
1255
|
},
|
|
1244
1256
|
setup(t) {
|
|
1245
1257
|
const s = t, o = K(), e = c(() => [`ma-alert ak-alert ak-alert--${s.variant}--${s.type}`]), i = c(() => !!s?.icon || !!o?.icon);
|
|
1246
|
-
return (l, r) => (a(),
|
|
1258
|
+
return (l, r) => (a(), u(n(xo), $(l.$attrs, {
|
|
1247
1259
|
class: n(e),
|
|
1248
1260
|
description: t.description,
|
|
1249
1261
|
message: t.message,
|
|
@@ -1251,25 +1263,25 @@ const Rs = {
|
|
|
1251
1263
|
showIcon: n(i),
|
|
1252
1264
|
"prefix-cls": "antd-alert"
|
|
1253
1265
|
}), {
|
|
1254
|
-
closeIcon:
|
|
1255
|
-
|
|
1266
|
+
closeIcon: m(() => [
|
|
1267
|
+
C(b, {
|
|
1256
1268
|
name: "close",
|
|
1257
1269
|
size: "xs"
|
|
1258
1270
|
})
|
|
1259
1271
|
]),
|
|
1260
|
-
icon:
|
|
1261
|
-
s?.icon ? (a(),
|
|
1272
|
+
icon: m(() => [
|
|
1273
|
+
s?.icon ? (a(), u(b, {
|
|
1262
1274
|
key: 0,
|
|
1263
1275
|
name: t.icon,
|
|
1264
1276
|
size: "lg"
|
|
1265
|
-
}, null, 8, ["name"])) :
|
|
1266
|
-
|
|
1277
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
1278
|
+
_(l.$slots, "icon")
|
|
1267
1279
|
]),
|
|
1268
|
-
message:
|
|
1269
|
-
|
|
1280
|
+
message: m(() => [
|
|
1281
|
+
_(l.$slots, "message")
|
|
1270
1282
|
]),
|
|
1271
|
-
description:
|
|
1272
|
-
|
|
1283
|
+
description: m(() => [
|
|
1284
|
+
_(l.$slots, "description")
|
|
1273
1285
|
]),
|
|
1274
1286
|
_: 3
|
|
1275
1287
|
}, 16, ["class", "description", "message", "closable", "showIcon"]));
|
|
@@ -1302,13 +1314,13 @@ const Ts = {
|
|
|
1302
1314
|
U(
|
|
1303
1315
|
() => e.name,
|
|
1304
1316
|
() => {
|
|
1305
|
-
M(),
|
|
1317
|
+
M(), x();
|
|
1306
1318
|
}
|
|
1307
1319
|
);
|
|
1308
|
-
const
|
|
1320
|
+
const h = async () => {
|
|
1309
1321
|
const { default: S } = await import("./lottie_light-b08f9446.mjs").then((k) => k.l);
|
|
1310
1322
|
i = S;
|
|
1311
|
-
},
|
|
1323
|
+
}, x = async () => {
|
|
1312
1324
|
try {
|
|
1313
1325
|
const { default: S } = await H(/* @__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/${e.name}.json`);
|
|
1314
1326
|
r.value = i.loadAnimation({
|
|
@@ -1327,7 +1339,7 @@ const Ts = {
|
|
|
1327
1339
|
r.value && r.value.destroy();
|
|
1328
1340
|
};
|
|
1329
1341
|
return eo(async () => {
|
|
1330
|
-
await
|
|
1342
|
+
await h(), x();
|
|
1331
1343
|
}), to(() => {
|
|
1332
1344
|
M();
|
|
1333
1345
|
}), (S, k) => (a(), d("div", {
|
|
@@ -1390,17 +1402,17 @@ const Ts = {
|
|
|
1390
1402
|
"ma-modal",
|
|
1391
1403
|
"ak-modal",
|
|
1392
1404
|
{ [`ak-modal--${o.type}`]: !!o.type }
|
|
1393
|
-
]),
|
|
1405
|
+
]), h = c(() => [
|
|
1394
1406
|
"ak-modal__header-icon",
|
|
1395
1407
|
{ [`ak-modal__header-icon--${o.type}`]: !!o.type }
|
|
1396
|
-
]),
|
|
1408
|
+
]), x = () => {
|
|
1397
1409
|
e.value = !1, s("cancel");
|
|
1398
1410
|
}, M = () => {
|
|
1399
1411
|
s("ok");
|
|
1400
1412
|
}, S = K();
|
|
1401
|
-
return (k,
|
|
1413
|
+
return (k, I) => (a(), u(n(Io), $(k.$attrs, {
|
|
1402
1414
|
visible: n(e),
|
|
1403
|
-
"onUpdate:visible":
|
|
1415
|
+
"onUpdate:visible": I[0] || (I[0] = (g) => L(e) ? e.value = g : null),
|
|
1404
1416
|
"prefix-cls": "antd-modal",
|
|
1405
1417
|
class: n(p),
|
|
1406
1418
|
closable: o.closable,
|
|
@@ -1409,55 +1421,55 @@ const Ts = {
|
|
|
1409
1421
|
width: o.width,
|
|
1410
1422
|
footer: null,
|
|
1411
1423
|
onOk: M,
|
|
1412
|
-
onCancel:
|
|
1424
|
+
onCancel: x
|
|
1413
1425
|
}), {
|
|
1414
|
-
closeIcon:
|
|
1415
|
-
|
|
1426
|
+
closeIcon: m(() => [
|
|
1427
|
+
C(b, {
|
|
1416
1428
|
name: "close-circle",
|
|
1417
1429
|
size: "sm"
|
|
1418
1430
|
})
|
|
1419
1431
|
]),
|
|
1420
|
-
default:
|
|
1432
|
+
default: m(() => [
|
|
1421
1433
|
n(i) ? (a(), d("div", {
|
|
1422
1434
|
key: 0,
|
|
1423
|
-
class: R(n(
|
|
1435
|
+
class: R(n(h))
|
|
1424
1436
|
}, [
|
|
1425
|
-
|
|
1426
|
-
], 2)) :
|
|
1437
|
+
C(b, { name: n(i) }, null, 8, ["name"])
|
|
1438
|
+
], 2)) : f("", !0),
|
|
1427
1439
|
o.title || k.$slots.title ? (a(), d("h1", qs, [
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
])) :
|
|
1431
|
-
|
|
1432
|
-
o.content ? (a(), d("div", Os, z(o.content), 1)) :
|
|
1433
|
-
|
|
1434
|
-
|
|
1440
|
+
_(k.$slots, "title"),
|
|
1441
|
+
O(" " + z(o.title), 1)
|
|
1442
|
+
])) : f("", !0),
|
|
1443
|
+
A("div", Ps, [
|
|
1444
|
+
o.content ? (a(), d("div", Os, z(o.content), 1)) : f("", !0),
|
|
1445
|
+
_(k.$slots, "content"),
|
|
1446
|
+
_(k.$slots, "default")
|
|
1435
1447
|
]),
|
|
1436
1448
|
n(r) ? (a(), d("div", Ls, [
|
|
1437
|
-
o.okText ? (a(),
|
|
1449
|
+
o.okText ? (a(), u(E, $({
|
|
1438
1450
|
key: 0,
|
|
1439
1451
|
onClick: M,
|
|
1440
1452
|
class: "ak-modal__ok-button",
|
|
1441
1453
|
variant: n(l),
|
|
1442
1454
|
loading: o.confirmLoading
|
|
1443
1455
|
}, o.okButtonProps), {
|
|
1444
|
-
default:
|
|
1445
|
-
|
|
1456
|
+
default: m(() => [
|
|
1457
|
+
O(z(o.okText), 1)
|
|
1446
1458
|
]),
|
|
1447
1459
|
_: 1
|
|
1448
|
-
}, 16, ["variant", "loading"])) :
|
|
1449
|
-
o.cancelText ? (a(),
|
|
1460
|
+
}, 16, ["variant", "loading"])) : f("", !0),
|
|
1461
|
+
o.cancelText ? (a(), u(E, $({
|
|
1450
1462
|
key: 1,
|
|
1451
|
-
onClick:
|
|
1463
|
+
onClick: x,
|
|
1452
1464
|
type: "grey-link"
|
|
1453
1465
|
}, o.cancelButtonProps), {
|
|
1454
|
-
default:
|
|
1455
|
-
|
|
1466
|
+
default: m(() => [
|
|
1467
|
+
O(z(o.cancelText), 1)
|
|
1456
1468
|
]),
|
|
1457
1469
|
_: 1
|
|
1458
|
-
}, 16)) :
|
|
1459
|
-
|
|
1460
|
-
])) :
|
|
1470
|
+
}, 16)) : f("", !0),
|
|
1471
|
+
_(k.$slots, "footer")
|
|
1472
|
+
])) : f("", !0)
|
|
1461
1473
|
]),
|
|
1462
1474
|
_: 3
|
|
1463
1475
|
}, 16, ["visible", "class", "closable", "mask", "mask-closable", "width"]));
|
|
@@ -1494,9 +1506,9 @@ const Es = {
|
|
|
1494
1506
|
"ak-rate__item__icon--filled": s.value + 0.5 >= s.starRate
|
|
1495
1507
|
}
|
|
1496
1508
|
]), e = c(() => s.starRate - 0.5 === s.value), i = c(() => e.value ? "star-half-colored" : "star-bold");
|
|
1497
|
-
return (l, r) => (a(),
|
|
1498
|
-
default:
|
|
1499
|
-
|
|
1509
|
+
return (l, r) => (a(), u(X, { name: "fade" }, {
|
|
1510
|
+
default: m(() => [
|
|
1511
|
+
C(b, {
|
|
1500
1512
|
class: R(n(o)),
|
|
1501
1513
|
name: n(i),
|
|
1502
1514
|
size: t.iconSize
|
|
@@ -1542,32 +1554,32 @@ const Es = {
|
|
|
1542
1554
|
}
|
|
1543
1555
|
k(e.value);
|
|
1544
1556
|
}
|
|
1545
|
-
},
|
|
1546
|
-
o?.disabled || (e.value =
|
|
1547
|
-
},
|
|
1557
|
+
}, h = (I) => {
|
|
1558
|
+
o?.disabled || (e.value = I);
|
|
1559
|
+
}, x = () => {
|
|
1548
1560
|
e.value = 0;
|
|
1549
|
-
}, M = (
|
|
1550
|
-
o?.allowHalf
|
|
1551
|
-
}, S = (
|
|
1552
|
-
o?.disabled || (
|
|
1553
|
-
}, k = (
|
|
1554
|
-
s("update:value",
|
|
1561
|
+
}, M = (I, g) => {
|
|
1562
|
+
!o?.allowHalf || o.disabled || (I.offsetX < I.target.clientWidth / 2 ? e.value = g - 0.5 : e.value = g);
|
|
1563
|
+
}, S = (I) => {
|
|
1564
|
+
o?.disabled || (I.key === "ArrowRight" && o.value < 5 ? k(o.value + (o.allowHalf ? 0.5 : 1)) : I.key === "ArrowLeft" && o.value > 0 && k(o.value - (o.allowHalf ? 0.5 : 1)));
|
|
1565
|
+
}, k = (I) => {
|
|
1566
|
+
s("update:value", I), s("change", I);
|
|
1555
1567
|
};
|
|
1556
|
-
return (
|
|
1568
|
+
return (I, g) => (a(), d("ul", {
|
|
1557
1569
|
class: R(n(i)),
|
|
1558
|
-
onMouseleave:
|
|
1570
|
+
onMouseleave: x,
|
|
1559
1571
|
onKeydown: S,
|
|
1560
1572
|
tabindex: n(r)
|
|
1561
1573
|
}, [
|
|
1562
|
-
(a(), d(G, null,
|
|
1574
|
+
(a(), d(G, null, V(5, (w) => A("li", {
|
|
1563
1575
|
class: "ak-rate__item",
|
|
1564
|
-
key:
|
|
1565
|
-
onMousemove: (
|
|
1566
|
-
onMouseover: (
|
|
1567
|
-
onClick: g[0] || (g[0] = (
|
|
1576
|
+
key: w,
|
|
1577
|
+
onMousemove: (B) => M(B, w),
|
|
1578
|
+
onMouseover: (B) => h(w),
|
|
1579
|
+
onClick: g[0] || (g[0] = (B) => p())
|
|
1568
1580
|
}, [
|
|
1569
|
-
|
|
1570
|
-
"star-rate":
|
|
1581
|
+
C(Gs, {
|
|
1582
|
+
"star-rate": w,
|
|
1571
1583
|
value: e.value || o.value,
|
|
1572
1584
|
"icon-size": n(l)
|
|
1573
1585
|
}, null, 8, ["star-rate", "value", "icon-size"])
|