@mobileaction/action-kit 1.1.49 → 1.1.50
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 +3 -3
- package/dist/action-kit.mjs +1058 -962
- package/dist/components/input-number/index.vue.d.ts +187 -0
- package/dist/components/input-number/types.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/input-number/index.vue.d.ts +74 -0
- package/dist/src/components/input-number/stories/constants.d.ts +8 -0
- package/dist/src/components/input-number/stories/default.stories.d.ts +15 -0
- package/dist/src/components/input-number/stories/with-select.stories.d.ts +8 -0
- package/dist/src/components/input-number/types.d.ts +19 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/action-kit.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as k, computed as c, defineAsyncComponent as Be, openBlock as n, createBlock as
|
|
2
|
-
import { Button as ke, Switch as
|
|
1
|
+
import { defineComponent as k, computed as c, defineAsyncComponent as Be, openBlock as n, createBlock as g, resolveDynamicComponent as ee, unref as o, normalizeClass as F, mergeProps as x, createSlots as O, renderList as U, withCtx as f, renderSlot as _, createElementVNode as y, createVNode as M, createTextVNode as L, toDisplayString as C, createElementBlock as u, isRef as K, createCommentVNode as h, ref as E, Fragment as q, useSlots as te, useAttrs as ze, watch as oe, Transition as ye, onMounted as ce, onBeforeUnmount as he, normalizeStyle as ne, h as Ie, createApp as Se, onUnmounted as Ae, withDirectives as Z, withModifiers as be, vShow as Y, normalizeProps as Te, withKeys as Pe, reactive as Ne, readonly as De, toRefs as Le } from "vue";
|
|
2
|
+
import { Button as ke, Switch as Ee, Tooltip as Fe, Form as Re, FormItem as Ue, Avatar as Ve, Select as je, InputPassword as Oe, Input as qe, Textarea as He, SelectOption as We, Checkbox as Ke, CheckboxGroup as Ge, Radio as Je, RadioGroup as Ze, Alert as Ye, Modal as Xe, Dropdown as Qe, Tabs as es, TabPane as ss, InputNumber as ts } from "ant-design-vue";
|
|
3
3
|
const re = (a, s) => {
|
|
4
4
|
const e = a[s];
|
|
5
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((
|
|
5
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((t, l) => {
|
|
6
6
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(l.bind(null, new Error("Unknown variable dynamic import: " + s)));
|
|
7
7
|
});
|
|
8
|
-
},
|
|
8
|
+
}, an = ["xs", "sm", "md", "lg", "xl"], os = {
|
|
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
|
+
}, ns = {
|
|
15
15
|
name: "MaIcon"
|
|
16
16
|
}, b = /* @__PURE__ */ k({
|
|
17
|
-
...
|
|
17
|
+
...ns,
|
|
18
18
|
props: {
|
|
19
19
|
name: null,
|
|
20
20
|
size: { default: "md" },
|
|
21
21
|
spin: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
setup(a) {
|
|
24
|
-
const s = a, e = ["flag", "pay"],
|
|
24
|
+
const s = a, e = ["flag", "pay"], t = c(
|
|
25
25
|
() => Be(
|
|
26
26
|
function() {
|
|
27
27
|
const i = e.find((r) => s.name.startsWith(`${r}-`));
|
|
@@ -32,17 +32,17 @@ const re = (a, s) => {
|
|
|
32
32
|
"ma-icon",
|
|
33
33
|
"ak-icon",
|
|
34
34
|
`ak-icon--${s.name}`,
|
|
35
|
-
|
|
35
|
+
os[s.size],
|
|
36
36
|
{ "animate-spin": s.spin }
|
|
37
37
|
]);
|
|
38
|
-
return (i, r) => (n(),
|
|
39
|
-
class:
|
|
38
|
+
return (i, r) => (n(), g(ee(o(t)), {
|
|
39
|
+
class: F(o(l))
|
|
40
40
|
}, null, 8, ["class"]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), as = {
|
|
43
43
|
name: "MaButton"
|
|
44
44
|
}, Q = /* @__PURE__ */ k({
|
|
45
|
-
...
|
|
45
|
+
...as,
|
|
46
46
|
props: {
|
|
47
47
|
type: { default: "primary" },
|
|
48
48
|
variant: { default: "dark" },
|
|
@@ -59,7 +59,7 @@ const re = (a, s) => {
|
|
|
59
59
|
"keyUp"
|
|
60
60
|
],
|
|
61
61
|
setup(a, { emit: s }) {
|
|
62
|
-
const e = a,
|
|
62
|
+
const e = a, t = c(() => e.type === "secondary" ? "default" : e.type === "grey-link" ? "link" : e.type), l = c(() => [
|
|
63
63
|
`
|
|
64
64
|
ma-button
|
|
65
65
|
ak-button
|
|
@@ -76,33 +76,33 @@ const re = (a, s) => {
|
|
|
76
76
|
{
|
|
77
77
|
"ak-button--disabled": r.value
|
|
78
78
|
}
|
|
79
|
-
]), i = c(() => e?.loading || e?.icon), r = c(() => e?.disabled || e?.loading),
|
|
80
|
-
s("keyUp",
|
|
79
|
+
]), i = c(() => e?.loading || e?.icon), r = c(() => e?.disabled || e?.loading), d = (p) => {
|
|
80
|
+
s("keyUp", p);
|
|
81
81
|
};
|
|
82
|
-
return (
|
|
83
|
-
class:
|
|
82
|
+
return (p, m) => (n(), g(o(ke), x({
|
|
83
|
+
class: o(l),
|
|
84
84
|
href: e.href,
|
|
85
85
|
target: e.target,
|
|
86
|
-
disabled:
|
|
87
|
-
type: t
|
|
88
|
-
onKeyup:
|
|
86
|
+
disabled: o(r),
|
|
87
|
+
type: o(t),
|
|
88
|
+
onKeyup: d,
|
|
89
89
|
role: "button"
|
|
90
|
-
},
|
|
91
|
-
U(
|
|
90
|
+
}, p.$attrs, { "prefix-cls": "antd-btn" }), O({ _: 2 }, [
|
|
91
|
+
U(p.$slots, (B, z) => ({
|
|
92
92
|
name: z,
|
|
93
93
|
fn: f(() => [
|
|
94
|
-
|
|
94
|
+
_(p.$slots, z)
|
|
95
95
|
])
|
|
96
96
|
})),
|
|
97
|
-
|
|
97
|
+
o(i) ? {
|
|
98
98
|
name: "icon",
|
|
99
99
|
fn: f(() => [
|
|
100
|
-
e?.loading ? (n(),
|
|
100
|
+
e?.loading ? (n(), g(b, {
|
|
101
101
|
key: 0,
|
|
102
102
|
class: "ak-button__loader",
|
|
103
103
|
spin: "",
|
|
104
104
|
name: "loader"
|
|
105
|
-
})) : (n(),
|
|
105
|
+
})) : (n(), g(b, {
|
|
106
106
|
key: 1,
|
|
107
107
|
name: e?.icon
|
|
108
108
|
}, null, 8, ["name"]))
|
|
@@ -112,40 +112,40 @@ const re = (a, s) => {
|
|
|
112
112
|
]), 1040, ["class", "href", "target", "disabled", "type"]));
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
|
-
const
|
|
115
|
+
const ln = [
|
|
116
116
|
"primary",
|
|
117
117
|
"secondary",
|
|
118
118
|
"link",
|
|
119
119
|
"grey-link",
|
|
120
120
|
"social"
|
|
121
|
-
],
|
|
121
|
+
], rn = [
|
|
122
122
|
"dark",
|
|
123
123
|
"plain",
|
|
124
124
|
"info",
|
|
125
125
|
"success",
|
|
126
126
|
"warning",
|
|
127
127
|
"danger"
|
|
128
|
-
],
|
|
128
|
+
], ls = [
|
|
129
129
|
"small",
|
|
130
130
|
"middle",
|
|
131
131
|
"large",
|
|
132
132
|
"x-large",
|
|
133
133
|
"2x-large"
|
|
134
|
-
],
|
|
134
|
+
], cn = [
|
|
135
135
|
"default",
|
|
136
136
|
"round"
|
|
137
|
-
],
|
|
137
|
+
], pn = [
|
|
138
138
|
"_blank",
|
|
139
139
|
"_self",
|
|
140
140
|
"_top",
|
|
141
141
|
"_parent"
|
|
142
|
-
],
|
|
142
|
+
], un = [
|
|
143
143
|
"left",
|
|
144
144
|
"right"
|
|
145
|
-
],
|
|
145
|
+
], is = { class: "icon-wrapper" }, rs = {
|
|
146
146
|
name: "MaTrackButton"
|
|
147
|
-
},
|
|
148
|
-
...
|
|
147
|
+
}, dn = /* @__PURE__ */ k({
|
|
148
|
+
...rs,
|
|
149
149
|
props: {
|
|
150
150
|
variant: { default: "default" },
|
|
151
151
|
size: { default: "md" },
|
|
@@ -172,21 +172,21 @@ const sn = [
|
|
|
172
172
|
{
|
|
173
173
|
"ak-track-button--show-close": s?.showClose
|
|
174
174
|
}
|
|
175
|
-
]),
|
|
175
|
+
]), t = c(
|
|
176
176
|
() => s.loading ? "loader" : s?.showClose ? "close-circle" : s?.tracked ? "tick-circle-bold" : "add"
|
|
177
177
|
), l = c(() => s.size === "lg" ? "sm" : "xs");
|
|
178
|
-
return (i, r) => (n(),
|
|
179
|
-
class:
|
|
178
|
+
return (i, r) => (n(), g(o(ke), x(i.$attrs, {
|
|
179
|
+
class: o(e),
|
|
180
180
|
disabled: s?.disabled || s?.loading,
|
|
181
181
|
role: "button",
|
|
182
182
|
"prefix-cls": "antd-btn"
|
|
183
|
-
}),
|
|
183
|
+
}), O({
|
|
184
184
|
icon: f(() => [
|
|
185
|
-
|
|
185
|
+
y("div", is, [
|
|
186
186
|
M(b, {
|
|
187
187
|
spin: s?.loading,
|
|
188
|
-
name: t
|
|
189
|
-
size:
|
|
188
|
+
name: o(t),
|
|
189
|
+
size: o(l)
|
|
190
190
|
}, null, 8, ["spin", "name", "size"])
|
|
191
191
|
])
|
|
192
192
|
]),
|
|
@@ -195,34 +195,34 @@ const sn = [
|
|
|
195
195
|
]),
|
|
196
196
|
_: 2
|
|
197
197
|
}, [
|
|
198
|
-
U(i.$slots, (
|
|
199
|
-
name:
|
|
198
|
+
U(i.$slots, (d, p) => ({
|
|
199
|
+
name: p,
|
|
200
200
|
fn: f(() => [
|
|
201
|
-
|
|
201
|
+
_(i.$slots, p)
|
|
202
202
|
])
|
|
203
203
|
}))
|
|
204
204
|
]), 1040, ["class", "disabled"]));
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
const
|
|
207
|
+
const mn = [
|
|
208
208
|
"default"
|
|
209
|
-
],
|
|
209
|
+
], gn = [
|
|
210
210
|
"sm",
|
|
211
211
|
"md",
|
|
212
212
|
"lg"
|
|
213
|
-
],
|
|
213
|
+
], cs = {
|
|
214
214
|
key: 0,
|
|
215
215
|
class: "ma-toggle__titles"
|
|
216
|
-
},
|
|
216
|
+
}, ps = {
|
|
217
217
|
key: 0,
|
|
218
218
|
class: "ma-toggle__titles__title"
|
|
219
|
-
},
|
|
219
|
+
}, us = {
|
|
220
220
|
key: 1,
|
|
221
221
|
class: "ma-toggle__titles__sub-title"
|
|
222
|
-
},
|
|
222
|
+
}, ds = {
|
|
223
223
|
name: "MaToggle"
|
|
224
|
-
},
|
|
225
|
-
...
|
|
224
|
+
}, vn = /* @__PURE__ */ k({
|
|
225
|
+
...ds,
|
|
226
226
|
props: {
|
|
227
227
|
size: { default: "default" },
|
|
228
228
|
disabled: { type: Boolean },
|
|
@@ -235,7 +235,7 @@ const rn = [
|
|
|
235
235
|
},
|
|
236
236
|
emits: ["click", "change"],
|
|
237
237
|
setup(a, { emit: s }) {
|
|
238
|
-
const e = a,
|
|
238
|
+
const e = a, t = c({
|
|
239
239
|
get() {
|
|
240
240
|
return e.checked;
|
|
241
241
|
},
|
|
@@ -249,36 +249,36 @@ const rn = [
|
|
|
249
249
|
"ma-toggle--disabled": e.disabled
|
|
250
250
|
}
|
|
251
251
|
]);
|
|
252
|
-
return (i, r) => (n(),
|
|
253
|
-
class:
|
|
252
|
+
return (i, r) => (n(), u("div", {
|
|
253
|
+
class: F(o(l))
|
|
254
254
|
}, [
|
|
255
|
-
M(
|
|
255
|
+
M(o(Ee), x({
|
|
256
256
|
class: "ma-toggle__switch",
|
|
257
|
-
checked: t
|
|
258
|
-
"onUpdate:checked": r[0] || (r[0] = (
|
|
257
|
+
checked: o(t),
|
|
258
|
+
"onUpdate:checked": r[0] || (r[0] = (d) => K(t) ? t.value = d : null)
|
|
259
259
|
}, i.$attrs, {
|
|
260
|
-
onClick: r[1] || (r[1] = (
|
|
260
|
+
onClick: r[1] || (r[1] = (d) => i.$emit("click", d)),
|
|
261
261
|
disabled: e.disabled,
|
|
262
262
|
loading: e.loading,
|
|
263
263
|
checkedChildren: e.checkedChildren,
|
|
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(),
|
|
268
|
-
e.title ? (n(),
|
|
269
|
-
e.subTitle ? (n(),
|
|
267
|
+
e.title || e.subTitle ? (n(), u("div", cs, [
|
|
268
|
+
e.title ? (n(), u("span", ps, C(e.title), 1)) : h("", !0),
|
|
269
|
+
e.subTitle ? (n(), u("span", us, C(e.subTitle), 1)) : h("", !0)
|
|
270
270
|
])) : h("", !0)
|
|
271
271
|
], 2));
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
|
-
const
|
|
274
|
+
const fn = [
|
|
275
275
|
"small",
|
|
276
276
|
"default",
|
|
277
277
|
"large"
|
|
278
|
-
],
|
|
278
|
+
], ms = ["aria-checked", "disabled"], gs = {
|
|
279
279
|
name: "MaSwitch"
|
|
280
|
-
},
|
|
281
|
-
...
|
|
280
|
+
}, _n = /* @__PURE__ */ k({
|
|
281
|
+
...gs,
|
|
282
282
|
props: {
|
|
283
283
|
active: null,
|
|
284
284
|
leftIcon: null,
|
|
@@ -293,7 +293,7 @@ const un = [
|
|
|
293
293
|
"change"
|
|
294
294
|
],
|
|
295
295
|
setup(a, { emit: s }) {
|
|
296
|
-
const e = a,
|
|
296
|
+
const e = a, t = c({
|
|
297
297
|
get() {
|
|
298
298
|
return e.active;
|
|
299
299
|
},
|
|
@@ -308,44 +308,44 @@ const un = [
|
|
|
308
308
|
"ak-switch--disabled": e.disabled
|
|
309
309
|
}
|
|
310
310
|
]), i = (r) => {
|
|
311
|
-
e.disabled || (
|
|
311
|
+
e.disabled || (t.value = r);
|
|
312
312
|
};
|
|
313
|
-
return (r,
|
|
314
|
-
class:
|
|
313
|
+
return (r, d) => (n(), u("button", x(r.$attrs, {
|
|
314
|
+
class: o(l),
|
|
315
315
|
type: "button",
|
|
316
316
|
role: "switch",
|
|
317
|
-
"aria-checked": t
|
|
317
|
+
"aria-checked": o(t) === e.rightValue,
|
|
318
318
|
disabled: e.disabled
|
|
319
319
|
}), [
|
|
320
|
-
|
|
321
|
-
class:
|
|
322
|
-
onClick:
|
|
320
|
+
y("span", {
|
|
321
|
+
class: F({ active: e.active === e.leftValue }),
|
|
322
|
+
onClick: d[0] || (d[0] = (p) => i(e.leftValue))
|
|
323
323
|
}, [
|
|
324
324
|
M(b, {
|
|
325
325
|
name: e.leftIcon
|
|
326
326
|
}, null, 8, ["name"])
|
|
327
327
|
], 2),
|
|
328
|
-
|
|
329
|
-
class:
|
|
330
|
-
onClick:
|
|
328
|
+
y("span", {
|
|
329
|
+
class: F({ active: e.active === e.rightValue }),
|
|
330
|
+
onClick: d[1] || (d[1] = (p) => i(e.rightValue))
|
|
331
331
|
}, [
|
|
332
332
|
M(b, {
|
|
333
333
|
name: e.rightIcon
|
|
334
334
|
}, null, 8, ["name"])
|
|
335
335
|
], 2)
|
|
336
|
-
], 16,
|
|
336
|
+
], 16, ms));
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
const
|
|
339
|
+
const yn = [
|
|
340
340
|
"primary",
|
|
341
341
|
"secondary"
|
|
342
|
-
],
|
|
342
|
+
], vs = { class: "ak-tooltip-overlay__content" }, fs = { class: "ak-tooltip-overlay__content__title" }, _s = {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "ak-tooltip-overlay__content__description"
|
|
345
|
-
},
|
|
345
|
+
}, ys = {
|
|
346
346
|
name: "MaTooltip"
|
|
347
347
|
}, pe = /* @__PURE__ */ k({
|
|
348
|
-
...
|
|
348
|
+
...ys,
|
|
349
349
|
props: {
|
|
350
350
|
placement: { default: "top" },
|
|
351
351
|
type: { default: "secondary" },
|
|
@@ -363,41 +363,41 @@ const mn = [
|
|
|
363
363
|
"ak-tooltip",
|
|
364
364
|
`ak-tooltip--${s.type}`,
|
|
365
365
|
`ak-tooltip--${s.placement}`
|
|
366
|
-
]),
|
|
366
|
+
]), t = c(() => [
|
|
367
367
|
"ak-tooltip-overlay",
|
|
368
368
|
`ak-tooltip-overlay--${s.type}`,
|
|
369
369
|
`ak-tooltip-overlay--${s.placement}`,
|
|
370
370
|
s?.overlayClassName
|
|
371
|
-
].join(" ")), l =
|
|
371
|
+
].join(" ")), l = E(s.defaultVisible), i = () => {
|
|
372
372
|
l.value = !1;
|
|
373
373
|
};
|
|
374
|
-
return (r,
|
|
374
|
+
return (r, d) => (n(), g(o(Fe), x(r.$attrs, {
|
|
375
375
|
visible: l.value,
|
|
376
|
-
"onUpdate:visible":
|
|
377
|
-
class:
|
|
376
|
+
"onUpdate:visible": d[0] || (d[0] = (p) => l.value = p),
|
|
377
|
+
class: o(e),
|
|
378
378
|
placement: s.placement,
|
|
379
379
|
trigger: s.trigger,
|
|
380
|
-
overlayClassName: t
|
|
380
|
+
overlayClassName: o(t),
|
|
381
381
|
"prefix-cls": "antd-tooltip"
|
|
382
382
|
}), {
|
|
383
383
|
title: f(() => [
|
|
384
|
-
s.icon ? (n(),
|
|
384
|
+
s.icon ? (n(), g(b, {
|
|
385
385
|
key: 0,
|
|
386
386
|
size: "xs",
|
|
387
387
|
name: s.icon
|
|
388
388
|
}, null, 8, ["name"])) : h("", !0),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
389
|
+
_(r.$slots, "icon"),
|
|
390
|
+
y("div", vs, [
|
|
391
|
+
y("span", fs, [
|
|
392
392
|
L(C(s.title) + " ", 1),
|
|
393
|
-
|
|
393
|
+
_(r.$slots, "title")
|
|
394
394
|
]),
|
|
395
|
-
s?.description || r.$slots.description ? (n(),
|
|
395
|
+
s?.description || r.$slots.description ? (n(), u("span", _s, [
|
|
396
396
|
L(C(s.description) + " ", 1),
|
|
397
|
-
|
|
397
|
+
_(r.$slots, "description")
|
|
398
398
|
])) : h("", !0)
|
|
399
399
|
]),
|
|
400
|
-
s.closable ? (n(),
|
|
400
|
+
s.closable ? (n(), g(b, {
|
|
401
401
|
key: 1,
|
|
402
402
|
onClick: i,
|
|
403
403
|
class: "ak-tooltip-overlay__close",
|
|
@@ -406,13 +406,13 @@ const mn = [
|
|
|
406
406
|
})) : h("", !0)
|
|
407
407
|
]),
|
|
408
408
|
default: f(() => [
|
|
409
|
-
|
|
409
|
+
_(r.$slots, "default")
|
|
410
410
|
]),
|
|
411
411
|
_: 3
|
|
412
412
|
}, 16, ["visible", "class", "placement", "trigger", "overlayClassName"]));
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
|
-
const
|
|
415
|
+
const hn = [
|
|
416
416
|
"top",
|
|
417
417
|
"left",
|
|
418
418
|
"right",
|
|
@@ -425,84 +425,84 @@ const gn = [
|
|
|
425
425
|
"leftBottom",
|
|
426
426
|
"rightTop",
|
|
427
427
|
"rightBottom"
|
|
428
|
-
],
|
|
428
|
+
], bn = [
|
|
429
429
|
"primary",
|
|
430
430
|
"secondary"
|
|
431
|
-
],
|
|
431
|
+
], kn = [
|
|
432
432
|
"hover",
|
|
433
433
|
"focus",
|
|
434
434
|
"click",
|
|
435
435
|
"contextmenu"
|
|
436
|
-
],
|
|
436
|
+
], hs = {
|
|
437
437
|
name: "MaNonHSFormsIgnore"
|
|
438
|
-
},
|
|
438
|
+
}, bs = (a, s) => {
|
|
439
439
|
const e = a.__vccOpts || a;
|
|
440
|
-
for (const [
|
|
441
|
-
e[
|
|
440
|
+
for (const [t, l] of s)
|
|
441
|
+
e[t] = l;
|
|
442
442
|
return e;
|
|
443
|
-
},
|
|
443
|
+
}, ks = /* @__PURE__ */ y("label", {
|
|
444
444
|
for: "cc-num",
|
|
445
445
|
class: "hidden"
|
|
446
|
-
}, "HubspotCollectedFormsWorkaround", -1),
|
|
446
|
+
}, "HubspotCollectedFormsWorkaround", -1), $s = /* @__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(),
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
function Cs(a, s, e, t, l, i) {
|
|
454
|
+
return n(), u(q, null, [
|
|
455
|
+
ks,
|
|
456
|
+
$s
|
|
457
457
|
], 64);
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const ws = /* @__PURE__ */ bs(hs, [["render", Cs]]), xs = {
|
|
460
460
|
name: "MaForm"
|
|
461
|
-
},
|
|
462
|
-
...
|
|
461
|
+
}, $n = /* @__PURE__ */ k({
|
|
462
|
+
...xs,
|
|
463
463
|
props: {
|
|
464
464
|
nonHubspotFormsIgnore: { type: Boolean, default: !0 }
|
|
465
465
|
},
|
|
466
466
|
setup(a, { expose: s }) {
|
|
467
|
-
const e = a,
|
|
467
|
+
const e = a, t = E();
|
|
468
468
|
return s({
|
|
469
|
-
validate: () =>
|
|
470
|
-
clearValidate: () =>
|
|
471
|
-
resetFields: () =>
|
|
472
|
-
scrollToField: () =>
|
|
473
|
-
validateFields: () =>
|
|
474
|
-
}), (
|
|
469
|
+
validate: () => t.value.validate(),
|
|
470
|
+
clearValidate: () => t.value.clearValidate(),
|
|
471
|
+
resetFields: () => t.value.resetFields(),
|
|
472
|
+
scrollToField: () => t.value.scrollToField(),
|
|
473
|
+
validateFields: () => t.value.validateFields()
|
|
474
|
+
}), (m, B) => (n(), g(o(Re), x(m.$attrs, {
|
|
475
475
|
class: "ma-form",
|
|
476
476
|
"prefix-cls": "antd-form",
|
|
477
477
|
ref_key: "form",
|
|
478
|
-
ref:
|
|
478
|
+
ref: t
|
|
479
479
|
}), {
|
|
480
480
|
default: f(() => [
|
|
481
|
-
e.nonHubspotFormsIgnore ? (n(),
|
|
482
|
-
|
|
481
|
+
e.nonHubspotFormsIgnore ? (n(), g(ws, { key: 0 })) : h("", !0),
|
|
482
|
+
_(m.$slots, "default")
|
|
483
483
|
]),
|
|
484
484
|
_: 3
|
|
485
485
|
}, 16));
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
|
-
const
|
|
488
|
+
const Ms = {
|
|
489
489
|
name: "MaFormItem"
|
|
490
|
-
},
|
|
491
|
-
...
|
|
490
|
+
}, Cn = /* @__PURE__ */ k({
|
|
491
|
+
...Ms,
|
|
492
492
|
setup(a) {
|
|
493
|
-
return (s, e) => (n(),
|
|
493
|
+
return (s, e) => (n(), g(o(Ue), x(s.$attrs, {
|
|
494
494
|
class: "ma-form-item",
|
|
495
495
|
"prefix-cls": "antd-form"
|
|
496
|
-
}),
|
|
497
|
-
U(s.$slots, (
|
|
496
|
+
}), O({ _: 2 }, [
|
|
497
|
+
U(s.$slots, (t, l) => ({
|
|
498
498
|
name: l,
|
|
499
499
|
fn: f(() => [
|
|
500
|
-
|
|
500
|
+
_(s.$slots, l)
|
|
501
501
|
])
|
|
502
502
|
}))
|
|
503
503
|
]), 1040));
|
|
504
504
|
}
|
|
505
|
-
}),
|
|
505
|
+
}), wn = [
|
|
506
506
|
"horizontal",
|
|
507
507
|
"vertical",
|
|
508
508
|
"inline"
|
|
@@ -517,36 +517,36 @@ const ws = {
|
|
|
517
517
|
amount: "amount",
|
|
518
518
|
creditCard: "creditCard",
|
|
519
519
|
userInfo: "userInfo"
|
|
520
|
-
},
|
|
520
|
+
}, Bs = {
|
|
521
521
|
small: "small",
|
|
522
522
|
medium: "medium",
|
|
523
523
|
large: "large"
|
|
524
|
-
},
|
|
524
|
+
}, xn = {
|
|
525
525
|
usd: "USD",
|
|
526
526
|
eur: "EUR",
|
|
527
527
|
gbp: "GBP",
|
|
528
528
|
jpy: "JPY"
|
|
529
|
-
},
|
|
529
|
+
}, zs = {
|
|
530
530
|
USD: "$",
|
|
531
531
|
EUR: "€",
|
|
532
532
|
GBP: "£",
|
|
533
533
|
JPY: "¥"
|
|
534
|
-
},
|
|
534
|
+
}, Is = [
|
|
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
|
+
], Ss = {
|
|
540
540
|
name: "MaAvatar"
|
|
541
|
-
},
|
|
542
|
-
...
|
|
541
|
+
}, As = /* @__PURE__ */ k({
|
|
542
|
+
...Ss,
|
|
543
543
|
setup(a) {
|
|
544
|
-
return (s, e) => (n(),
|
|
544
|
+
return (s, e) => (n(), g(o(Ve), x(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
|
|
545
545
|
}
|
|
546
|
-
}),
|
|
546
|
+
}), Ts = { class: "dropdown-wrapper" }, Ps = { class: "mobile-header" }, Ns = /* @__PURE__ */ y("label", null, "Select", -1), Ds = {
|
|
547
547
|
name: "MaDropdownRender"
|
|
548
|
-
},
|
|
549
|
-
...
|
|
548
|
+
}, Ls = /* @__PURE__ */ k({
|
|
549
|
+
...Ds,
|
|
550
550
|
props: {
|
|
551
551
|
menu: {
|
|
552
552
|
type: Object,
|
|
@@ -559,7 +559,7 @@ const ws = {
|
|
|
559
559
|
},
|
|
560
560
|
emits: ["update:filter", "closeDropdown"],
|
|
561
561
|
setup(a, { emit: s }) {
|
|
562
|
-
const e = a,
|
|
562
|
+
const e = a, t = (r, { attrs: d }) => d.vnodes, l = c({
|
|
563
563
|
get() {
|
|
564
564
|
return e.filter;
|
|
565
565
|
},
|
|
@@ -569,14 +569,14 @@ const ws = {
|
|
|
569
569
|
}), i = () => {
|
|
570
570
|
s("closeDropdown");
|
|
571
571
|
};
|
|
572
|
-
return (r,
|
|
573
|
-
|
|
572
|
+
return (r, d) => (n(), u("div", Ts, [
|
|
573
|
+
y("div", Ps, [
|
|
574
574
|
M(b, {
|
|
575
575
|
size: "lg",
|
|
576
576
|
name: "close-circle",
|
|
577
577
|
onClick: i
|
|
578
578
|
}),
|
|
579
|
-
|
|
579
|
+
Ns,
|
|
580
580
|
M(Q, {
|
|
581
581
|
type: "grey-link",
|
|
582
582
|
onClick: i
|
|
@@ -588,22 +588,22 @@ const ws = {
|
|
|
588
588
|
})
|
|
589
589
|
]),
|
|
590
590
|
M(Ce, {
|
|
591
|
-
value:
|
|
592
|
-
"onUpdate:value":
|
|
591
|
+
value: o(l),
|
|
592
|
+
"onUpdate:value": d[0] || (d[0] = (p) => K(l) ? l.value = p : null),
|
|
593
593
|
autofocus: "",
|
|
594
594
|
placeholder: "Search",
|
|
595
595
|
"prefix-icon": "search-normal"
|
|
596
596
|
}, null, 8, ["value"]),
|
|
597
|
-
M(
|
|
597
|
+
M(t, { vnodes: a.menu }, null, 8, ["vnodes"])
|
|
598
598
|
]));
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
600
|
+
}), Es = {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "prefix-icon"
|
|
603
|
-
},
|
|
603
|
+
}, Fs = {
|
|
604
604
|
name: "MaSelect"
|
|
605
605
|
}, $e = /* @__PURE__ */ k({
|
|
606
|
-
...
|
|
606
|
+
...Fs,
|
|
607
607
|
props: {
|
|
608
608
|
allowClear: { type: Boolean },
|
|
609
609
|
autoClearSearchValue: { type: Boolean, default: !0 },
|
|
@@ -634,71 +634,71 @@ const ws = {
|
|
|
634
634
|
"update:value"
|
|
635
635
|
],
|
|
636
636
|
setup(a, { emit: s }) {
|
|
637
|
-
const e = a,
|
|
637
|
+
const e = a, t = te(), l = E(e?.searchValue), i = E(e.open), r = c(() => !e?.mode && e?.showSearch), d = c({
|
|
638
638
|
get() {
|
|
639
639
|
return e.value;
|
|
640
640
|
},
|
|
641
|
-
set(
|
|
642
|
-
s("update:value",
|
|
641
|
+
set(R) {
|
|
642
|
+
s("update:value", R);
|
|
643
643
|
}
|
|
644
|
-
}),
|
|
644
|
+
}), p = c(() => [
|
|
645
645
|
"ma-select",
|
|
646
646
|
`ma-select--${e.size}`,
|
|
647
647
|
{
|
|
648
|
-
"ma-select--has-prefix": e.mode ? !1 :
|
|
648
|
+
"ma-select--has-prefix": e.mode ? !1 : t?.prefixIcon || e?.prefixIcon
|
|
649
649
|
},
|
|
650
650
|
{
|
|
651
|
-
"ma-select--selected": Array.isArray(
|
|
651
|
+
"ma-select--selected": Array.isArray(d.value) ? d.value.length : d.value
|
|
652
652
|
},
|
|
653
653
|
{
|
|
654
654
|
"ma-select--custom-render": r
|
|
655
655
|
}
|
|
656
|
-
]),
|
|
656
|
+
]), m = c(() => [
|
|
657
657
|
e?.dropdownClassName,
|
|
658
658
|
"ma-select-dropdown",
|
|
659
|
-
!e?.mode && (
|
|
660
|
-
].join(" ")), B = c(() => e?.loading ? "loader" : e?.suffixIcon), z = c(() => Object.keys(
|
|
659
|
+
!e?.mode && (t?.prefixIcon || e?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
660
|
+
].join(" ")), B = c(() => e?.loading ? "loader" : e?.suffixIcon), z = c(() => Object.keys(t).filter((R) => !["option"].includes(R))), S = c(() => e?.showArrow || !e?.mode), T = () => {
|
|
661
661
|
i.value = !0;
|
|
662
|
-
}, w = (
|
|
663
|
-
i.value =
|
|
664
|
-
},
|
|
662
|
+
}, w = (R) => {
|
|
663
|
+
i.value = R, l.value = "";
|
|
664
|
+
}, A = c(() => !r.value && e?.showSearch), I = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : e?.listHeight, V = () => {
|
|
665
665
|
i.value = !1;
|
|
666
666
|
};
|
|
667
|
-
return (
|
|
668
|
-
value:
|
|
669
|
-
"onUpdate:value": G[1] || (G[1] = (v) => K(
|
|
670
|
-
},
|
|
671
|
-
class:
|
|
667
|
+
return (R, G) => (n(), g(o(je), x({
|
|
668
|
+
value: o(d),
|
|
669
|
+
"onUpdate:value": G[1] || (G[1] = (v) => K(d) ? d.value = v : null)
|
|
670
|
+
}, R.$attrs, {
|
|
671
|
+
class: o(p),
|
|
672
672
|
allowClear: e?.allowClear,
|
|
673
673
|
autoClearSearchValue: e?.autoClearSearchValue,
|
|
674
674
|
autofocus: e?.autofocus,
|
|
675
675
|
defaultOpen: e?.defaultOpen,
|
|
676
676
|
disabled: e?.disabled || e?.loading,
|
|
677
|
-
dropdownClassName:
|
|
677
|
+
dropdownClassName: o(m),
|
|
678
678
|
loading: e?.loading,
|
|
679
679
|
optionFilterProp: e?.optionFilterProp,
|
|
680
680
|
optionLabelProp: e?.optionLabelProp,
|
|
681
681
|
options: e?.options,
|
|
682
682
|
placeholder: e?.placeholder,
|
|
683
683
|
searchValue: l.value || void 0,
|
|
684
|
-
showSearch:
|
|
685
|
-
showArrow:
|
|
684
|
+
showSearch: o(A),
|
|
685
|
+
showArrow: o(S),
|
|
686
686
|
mode: e?.mode,
|
|
687
687
|
"list-height": I(),
|
|
688
688
|
size: e?.size,
|
|
689
689
|
open: i.value,
|
|
690
|
-
onClick:
|
|
690
|
+
onClick: T,
|
|
691
691
|
onDropdownVisibleChange: w,
|
|
692
692
|
"prefix-cls": "antd-select"
|
|
693
|
-
}),
|
|
693
|
+
}), O({
|
|
694
694
|
suffixIcon: f(() => [
|
|
695
695
|
M(b, {
|
|
696
696
|
spin: e?.loading,
|
|
697
|
-
name:
|
|
697
|
+
name: o(B) || "chevron-down"
|
|
698
698
|
}, null, 8, ["spin", "name"]),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
e?.prefixIcon ? (n(),
|
|
699
|
+
R.$slots?.prefixIcon || e?.prefixIcon ? (n(), u("div", Es, [
|
|
700
|
+
_(R.$slots, "prefixIcon", {}, () => [
|
|
701
|
+
e?.prefixIcon ? (n(), g(b, {
|
|
702
702
|
key: 0,
|
|
703
703
|
name: e?.prefixIcon
|
|
704
704
|
}, null, 8, ["name"])) : h("", !0)
|
|
@@ -712,16 +712,16 @@ const ws = {
|
|
|
712
712
|
]),
|
|
713
713
|
_: 2
|
|
714
714
|
}, [
|
|
715
|
-
U(
|
|
715
|
+
U(o(z), (v) => ({
|
|
716
716
|
name: v,
|
|
717
717
|
fn: f(() => [
|
|
718
|
-
|
|
718
|
+
_(R.$slots, v)
|
|
719
719
|
])
|
|
720
720
|
})),
|
|
721
|
-
|
|
721
|
+
R.$slots.option ? {
|
|
722
722
|
name: "option",
|
|
723
723
|
fn: f(({ label: v, value: P }) => [
|
|
724
|
-
|
|
724
|
+
_(R.$slots, "option", {
|
|
725
725
|
label: v,
|
|
726
726
|
value: P
|
|
727
727
|
})
|
|
@@ -731,7 +731,7 @@ const ws = {
|
|
|
731
731
|
e?.clearIcon ? {
|
|
732
732
|
name: "clearIcon",
|
|
733
733
|
fn: f(() => [
|
|
734
|
-
e?.clearIcon ? (n(),
|
|
734
|
+
e?.clearIcon ? (n(), g(b, {
|
|
735
735
|
key: 0,
|
|
736
736
|
name: e?.clearIcon
|
|
737
737
|
}, null, 8, ["name"])) : h("", !0)
|
|
@@ -747,7 +747,7 @@ const ws = {
|
|
|
747
747
|
]),
|
|
748
748
|
key: "2"
|
|
749
749
|
} : void 0,
|
|
750
|
-
|
|
750
|
+
R.$slots.notFoundContent ? void 0 : {
|
|
751
751
|
name: "notFoundContent",
|
|
752
752
|
fn: f(() => [
|
|
753
753
|
M(b, {
|
|
@@ -758,14 +758,14 @@ const ws = {
|
|
|
758
758
|
]),
|
|
759
759
|
key: "3"
|
|
760
760
|
},
|
|
761
|
-
|
|
761
|
+
o(r) && i.value ? {
|
|
762
762
|
name: "dropdownRender",
|
|
763
763
|
fn: f(({ menuNode: v }) => [
|
|
764
|
-
M(
|
|
764
|
+
M(Ls, {
|
|
765
765
|
filter: l.value,
|
|
766
766
|
"onUpdate:filter": G[0] || (G[0] = (P) => l.value = P),
|
|
767
767
|
menu: v,
|
|
768
|
-
onCloseDropdown:
|
|
768
|
+
onCloseDropdown: V
|
|
769
769
|
}, null, 8, ["filter", "menu"])
|
|
770
770
|
]),
|
|
771
771
|
key: "4"
|
|
@@ -773,24 +773,24 @@ const ws = {
|
|
|
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 Rs = ["for"], Us = {
|
|
777
777
|
key: 1,
|
|
778
778
|
class: "ak-input__wrapper"
|
|
779
|
-
},
|
|
779
|
+
}, Vs = {
|
|
780
780
|
key: 1,
|
|
781
781
|
class: "currency"
|
|
782
|
-
},
|
|
782
|
+
}, js = {
|
|
783
783
|
key: 3,
|
|
784
784
|
class: "ak-input__hint-text"
|
|
785
|
-
},
|
|
785
|
+
}, Os = {
|
|
786
786
|
name: "MaInput",
|
|
787
787
|
inheritAttrs: !1
|
|
788
788
|
}, Ce = /* @__PURE__ */ k({
|
|
789
|
-
...
|
|
789
|
+
...Os,
|
|
790
790
|
props: {
|
|
791
791
|
allowClear: { type: Boolean },
|
|
792
792
|
type: { default: J.text },
|
|
793
|
-
size: { default:
|
|
793
|
+
size: { default: Bs.small },
|
|
794
794
|
title: null,
|
|
795
795
|
hintText: null,
|
|
796
796
|
hasError: { type: Boolean },
|
|
@@ -815,8 +815,8 @@ const Fs = ["for"], Es = {
|
|
|
815
815
|
"focusout"
|
|
816
816
|
],
|
|
817
817
|
setup(a, { emit: s }) {
|
|
818
|
-
const e = a,
|
|
819
|
-
`ma-input ak-input ak-input--${e.type} ak-input--${e.size} ${
|
|
818
|
+
const e = a, t = ze(), l = E(null), i = c(() => [J.amount, J.creditCard].includes(e.type) ? "number" : e.type === J.userInfo ? "text" : e.type), r = c(() => [
|
|
819
|
+
`ma-input ak-input ak-input--${e.type} ak-input--${e.size} ${t?.class}`,
|
|
820
820
|
{
|
|
821
821
|
"ak-input--has-error": e.hasError
|
|
822
822
|
},
|
|
@@ -826,85 +826,85 @@ const Fs = ["for"], Es = {
|
|
|
826
826
|
{
|
|
827
827
|
"ak-input--filled": e?.value
|
|
828
828
|
}
|
|
829
|
-
]),
|
|
829
|
+
]), d = c(() => ["ak-input__input", e?.inputClass]), p = c({
|
|
830
830
|
get() {
|
|
831
831
|
return e.value;
|
|
832
832
|
},
|
|
833
833
|
set(v) {
|
|
834
834
|
s("update:value", v);
|
|
835
835
|
}
|
|
836
|
-
}),
|
|
836
|
+
}), m = c(() => e.amountCurrency ? zs[e.amountCurrency] : null), B = c({
|
|
837
837
|
get() {
|
|
838
838
|
return e.amountCurrency;
|
|
839
839
|
},
|
|
840
840
|
set(v) {
|
|
841
841
|
s("update:amountCurrency", v);
|
|
842
842
|
}
|
|
843
|
-
}), z = c(() => e.type === J.password ?
|
|
844
|
-
let v = { ...
|
|
845
|
-
return
|
|
846
|
-
}),
|
|
843
|
+
}), z = c(() => e.type === J.password ? Oe : qe), S = c(() => e.type === J.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), T = c(() => e.type === J.url ? "https" : e?.addonBefore), w = c(() => {
|
|
844
|
+
let v = { ...t, ...S.value };
|
|
845
|
+
return t?.class && delete v?.class, v;
|
|
846
|
+
}), A = (v) => {
|
|
847
847
|
s("change", v);
|
|
848
848
|
}, I = (v) => {
|
|
849
849
|
s("currency-change", v);
|
|
850
|
-
},
|
|
850
|
+
}, V = () => {
|
|
851
851
|
l.value.focus();
|
|
852
|
-
},
|
|
852
|
+
}, R = (v) => {
|
|
853
853
|
s("focus", v);
|
|
854
854
|
}, G = (v) => {
|
|
855
855
|
s("focusout", v);
|
|
856
856
|
};
|
|
857
|
-
return (v, P) => (n(),
|
|
858
|
-
class:
|
|
857
|
+
return (v, P) => (n(), u("div", {
|
|
858
|
+
class: F(o(r))
|
|
859
859
|
}, [
|
|
860
|
-
|
|
861
|
-
e.title ? (n(),
|
|
860
|
+
_(v.$slots, "title"),
|
|
861
|
+
e.title ? (n(), u("label", {
|
|
862
862
|
key: 0,
|
|
863
|
-
onClick:
|
|
863
|
+
onClick: V,
|
|
864
864
|
class: "ak-input__title",
|
|
865
865
|
for: v.$attrs?.id
|
|
866
|
-
}, C(e.title), 9,
|
|
867
|
-
e.type !== "textarea" ? (n(),
|
|
868
|
-
(n(),
|
|
869
|
-
value:
|
|
870
|
-
"onUpdate:value": P[1] || (P[1] = (D) => K(
|
|
871
|
-
},
|
|
866
|
+
}, C(e.title), 9, Rs)) : h("", !0),
|
|
867
|
+
e.type !== "textarea" ? (n(), u("div", Us, [
|
|
868
|
+
(n(), g(ee(o(z)), x({
|
|
869
|
+
value: o(p),
|
|
870
|
+
"onUpdate:value": P[1] || (P[1] = (D) => K(p) ? p.value = D : null)
|
|
871
|
+
}, o(w), {
|
|
872
872
|
allowClear: e?.allowClear,
|
|
873
|
-
type:
|
|
873
|
+
type: o(i),
|
|
874
874
|
disabled: e?.disabled,
|
|
875
875
|
placeholder: e?.placeholder,
|
|
876
|
-
addonBefore:
|
|
876
|
+
addonBefore: o(T),
|
|
877
877
|
addonAfter: a.addonAfter,
|
|
878
|
-
class:
|
|
879
|
-
onChange:
|
|
880
|
-
onFocus:
|
|
878
|
+
class: o(d),
|
|
879
|
+
onChange: A,
|
|
880
|
+
onFocus: R,
|
|
881
881
|
onFocusout: G,
|
|
882
882
|
ref_key: "inputRef",
|
|
883
883
|
ref: l
|
|
884
|
-
}),
|
|
884
|
+
}), O({
|
|
885
885
|
prefix: f(() => [
|
|
886
|
-
e.prefixIcon ? (n(),
|
|
886
|
+
e.prefixIcon ? (n(), g(b, {
|
|
887
887
|
key: 0,
|
|
888
888
|
size: "xs",
|
|
889
889
|
name: e.prefixIcon
|
|
890
|
-
}, null, 8, ["name"])) :
|
|
890
|
+
}, null, 8, ["name"])) : o(m) ? (n(), u("span", Vs, C(o(m)), 1)) : e.type === o(J).userInfo ? (n(), g(As, {
|
|
891
891
|
key: 2,
|
|
892
892
|
src: e.avatarUrl,
|
|
893
893
|
disabled: e.disabled
|
|
894
894
|
}, null, 8, ["src", "disabled"])) : h("", !0)
|
|
895
895
|
]),
|
|
896
896
|
suffix: f(() => [
|
|
897
|
-
e.type === "amount" ? (n(),
|
|
897
|
+
e.type === "amount" ? (n(), g($e, {
|
|
898
898
|
key: 0,
|
|
899
|
-
value:
|
|
899
|
+
value: o(B),
|
|
900
900
|
"onUpdate:value": P[0] || (P[0] = (D) => K(B) ? B.value = D : null),
|
|
901
901
|
onChange: I,
|
|
902
902
|
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
903
|
-
options:
|
|
903
|
+
options: o(Is),
|
|
904
904
|
disabled: e.disabled,
|
|
905
905
|
size: "small"
|
|
906
906
|
}, null, 8, ["value", "options", "disabled"])) : h("", !0),
|
|
907
|
-
e.suffixIcon ? (n(),
|
|
907
|
+
e.suffixIcon ? (n(), g(b, {
|
|
908
908
|
key: 1,
|
|
909
909
|
size: "xs",
|
|
910
910
|
name: e.suffixIcon
|
|
@@ -915,62 +915,62 @@ const Fs = ["for"], Es = {
|
|
|
915
915
|
U(v.$slots, (D, H) => ({
|
|
916
916
|
name: H,
|
|
917
917
|
fn: f(() => [
|
|
918
|
-
|
|
918
|
+
_(v.$slots, H)
|
|
919
919
|
])
|
|
920
920
|
}))
|
|
921
921
|
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter", "class"]))
|
|
922
|
-
])) : (n(),
|
|
922
|
+
])) : (n(), g(o(He), x({
|
|
923
923
|
key: 2,
|
|
924
|
-
value:
|
|
925
|
-
"onUpdate:value": P[2] || (P[2] = (D) => K(
|
|
926
|
-
},
|
|
927
|
-
class:
|
|
924
|
+
value: o(p),
|
|
925
|
+
"onUpdate:value": P[2] || (P[2] = (D) => K(p) ? p.value = D : null)
|
|
926
|
+
}, o(w), {
|
|
927
|
+
class: o(d),
|
|
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
|
-
}),
|
|
933
|
+
}), O({ _: 2 }, [
|
|
934
934
|
U(v.$slots, (D, H) => ({
|
|
935
935
|
name: H,
|
|
936
936
|
fn: f(() => [
|
|
937
|
-
|
|
937
|
+
_(v.$slots, H)
|
|
938
938
|
])
|
|
939
939
|
}))
|
|
940
940
|
]), 1040, ["value", "class", "disabled", "placeholder"])),
|
|
941
|
-
|
|
942
|
-
e.hintText ? (n(),
|
|
941
|
+
_(v.$slots, "hint"),
|
|
942
|
+
e.hintText ? (n(), u("div", js, C(e.hintText), 1)) : h("", !0)
|
|
943
943
|
], 2));
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
|
-
const
|
|
946
|
+
const qs = {
|
|
947
947
|
name: "MaSelectOption"
|
|
948
|
-
},
|
|
949
|
-
...
|
|
948
|
+
}, Hs = /* @__PURE__ */ k({
|
|
949
|
+
...qs,
|
|
950
950
|
setup(a) {
|
|
951
|
-
return (s, e) => (n(),
|
|
951
|
+
return (s, e) => (n(), g(o(We), x(s.$attrs, {
|
|
952
952
|
class: "ma-select-option",
|
|
953
953
|
"prefix-cls": "antd-select"
|
|
954
|
-
}),
|
|
955
|
-
U(s.$slots, (
|
|
954
|
+
}), O({ _: 2 }, [
|
|
955
|
+
U(s.$slots, (t, l) => ({
|
|
956
956
|
name: l,
|
|
957
957
|
fn: f(() => [
|
|
958
|
-
|
|
958
|
+
_(s.$slots, l)
|
|
959
959
|
])
|
|
960
960
|
}))
|
|
961
961
|
]), 1040));
|
|
962
962
|
}
|
|
963
|
-
}),
|
|
963
|
+
}), Mn = [
|
|
964
964
|
"default",
|
|
965
965
|
"large",
|
|
966
966
|
"small"
|
|
967
|
-
],
|
|
967
|
+
], Bn = [
|
|
968
968
|
"multiple",
|
|
969
969
|
"tags"
|
|
970
|
-
],
|
|
970
|
+
], Ws = {
|
|
971
971
|
name: "MaCheckbox"
|
|
972
|
-
},
|
|
973
|
-
...
|
|
972
|
+
}, zn = /* @__PURE__ */ k({
|
|
973
|
+
...Ws,
|
|
974
974
|
props: {
|
|
975
975
|
hint: null,
|
|
976
976
|
indeterminate: { type: Boolean, default: void 0 },
|
|
@@ -984,17 +984,17 @@ const Vs = {
|
|
|
984
984
|
"ak-checkbox--intermediate": typeof s?.indeterminate == "boolean"
|
|
985
985
|
}
|
|
986
986
|
]);
|
|
987
|
-
return (
|
|
988
|
-
class:
|
|
987
|
+
return (t, l) => (n(), g(o(Ke), x(t.$attrs, {
|
|
988
|
+
class: o(e),
|
|
989
989
|
disabled: s?.disabled,
|
|
990
990
|
indeterminate: s?.indeterminate,
|
|
991
991
|
"prefix-cls": "antd-checkbox"
|
|
992
|
-
}),
|
|
993
|
-
U(
|
|
992
|
+
}), O({ _: 2 }, [
|
|
993
|
+
U(t.$slots, (i, r) => ({
|
|
994
994
|
name: r,
|
|
995
995
|
fn: f(() => [
|
|
996
|
-
|
|
997
|
-
s.hint ? (n(),
|
|
996
|
+
_(t.$slots, r),
|
|
997
|
+
s.hint ? (n(), u("div", {
|
|
998
998
|
key: r,
|
|
999
999
|
class: "ak-checkbox__hint-text"
|
|
1000
1000
|
}, C(s.hint), 1)) : h("", !0)
|
|
@@ -1003,25 +1003,25 @@ const Vs = {
|
|
|
1003
1003
|
]), 1040, ["class", "disabled", "indeterminate"]));
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
|
-
const
|
|
1006
|
+
const Ks = {
|
|
1007
1007
|
name: "MaCheckboxGroup"
|
|
1008
|
-
},
|
|
1009
|
-
...
|
|
1008
|
+
}, In = /* @__PURE__ */ k({
|
|
1009
|
+
...Ks,
|
|
1010
1010
|
props: {
|
|
1011
1011
|
hint: null,
|
|
1012
1012
|
disabled: { type: Boolean }
|
|
1013
1013
|
},
|
|
1014
1014
|
setup(a) {
|
|
1015
1015
|
const s = a;
|
|
1016
|
-
return (e,
|
|
1016
|
+
return (e, t) => (n(), g(o(Ge), x(e.$attrs, {
|
|
1017
1017
|
class: "ak-checkbox-group ma-checkbox-group",
|
|
1018
1018
|
"prefix-cls": "antd-checkbox"
|
|
1019
|
-
}),
|
|
1019
|
+
}), O({ _: 2 }, [
|
|
1020
1020
|
U(e.$slots, (l, i) => ({
|
|
1021
1021
|
name: i,
|
|
1022
1022
|
fn: f(() => [
|
|
1023
|
-
|
|
1024
|
-
s.hint ? (n(),
|
|
1023
|
+
_(e.$slots, i),
|
|
1024
|
+
s.hint ? (n(), u("div", {
|
|
1025
1025
|
key: i,
|
|
1026
1026
|
class: "ak-checkbox__hint-text"
|
|
1027
1027
|
}, C(s.hint), 1)) : h("", !0)
|
|
@@ -1029,7 +1029,7 @@ const Hs = {
|
|
|
1029
1029
|
}))
|
|
1030
1030
|
]), 1040));
|
|
1031
1031
|
}
|
|
1032
|
-
}),
|
|
1032
|
+
}), Gs = ["value"], Js = /* @__PURE__ */ k({
|
|
1033
1033
|
__name: "singleNumericInput",
|
|
1034
1034
|
props: {
|
|
1035
1035
|
value: { default: "" },
|
|
@@ -1037,33 +1037,33 @@ const Hs = {
|
|
|
1037
1037
|
},
|
|
1038
1038
|
emits: ["update:value"],
|
|
1039
1039
|
setup(a, { emit: s }) {
|
|
1040
|
-
const e = a,
|
|
1040
|
+
const e = a, t = E(null);
|
|
1041
1041
|
oe(
|
|
1042
1042
|
() => e.focus,
|
|
1043
1043
|
(i) => {
|
|
1044
|
-
i &&
|
|
1044
|
+
i && t.value.focus();
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
1047
|
const l = (i) => {
|
|
1048
1048
|
s("update:value", i.target.value);
|
|
1049
1049
|
};
|
|
1050
|
-
return (i, r) => (n(),
|
|
1050
|
+
return (i, r) => (n(), u("input", x(i.$attrs, {
|
|
1051
1051
|
value: e.value,
|
|
1052
1052
|
onInput: l,
|
|
1053
1053
|
ref_key: "input",
|
|
1054
|
-
ref:
|
|
1054
|
+
ref: t,
|
|
1055
1055
|
type: "number",
|
|
1056
1056
|
min: "0",
|
|
1057
1057
|
max: "9",
|
|
1058
1058
|
maxlength: "1",
|
|
1059
1059
|
pattern: "[0-9]",
|
|
1060
1060
|
inputmode: "numeric"
|
|
1061
|
-
}), null, 16,
|
|
1061
|
+
}), null, 16, Gs));
|
|
1062
1062
|
}
|
|
1063
|
-
}),
|
|
1063
|
+
}), Zs = {
|
|
1064
1064
|
name: "MaNumericInput"
|
|
1065
|
-
},
|
|
1066
|
-
...
|
|
1065
|
+
}, Sn = /* @__PURE__ */ k({
|
|
1066
|
+
...Zs,
|
|
1067
1067
|
props: {
|
|
1068
1068
|
disabled: { type: Boolean },
|
|
1069
1069
|
length: { default: 6 },
|
|
@@ -1074,7 +1074,7 @@ const Hs = {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
emits: ["update:value"],
|
|
1076
1076
|
setup(a, { emit: s }) {
|
|
1077
|
-
const e = a,
|
|
1077
|
+
const e = a, t = E(null), l = E(Array.from({ length: e.length }, (w, A) => e.value[A] || null)), i = c(() => [
|
|
1078
1078
|
"ma-numeric-input",
|
|
1079
1079
|
`ma-numeric-input--${e.size}`,
|
|
1080
1080
|
{
|
|
@@ -1083,11 +1083,11 @@ const Hs = {
|
|
|
1083
1083
|
{
|
|
1084
1084
|
"ma-numeric-input--disabled": e?.disabled
|
|
1085
1085
|
}
|
|
1086
|
-
]), r = c(() => e?.placeholderStatus ? "0" : null),
|
|
1086
|
+
]), r = c(() => e?.placeholderStatus ? "0" : null), d = (w) => /^Digit[0-9]$/.test(w), p = (w) => t.value = w, m = (w, A) => {
|
|
1087
1087
|
switch (w.code) {
|
|
1088
1088
|
case "Backspace":
|
|
1089
1089
|
case "Delete":
|
|
1090
|
-
S("",
|
|
1090
|
+
S("", A), z();
|
|
1091
1091
|
break;
|
|
1092
1092
|
case "ArrowLeft":
|
|
1093
1093
|
w.preventDefault(), z();
|
|
@@ -1096,25 +1096,25 @@ const Hs = {
|
|
|
1096
1096
|
w.preventDefault(), B();
|
|
1097
1097
|
break;
|
|
1098
1098
|
default:
|
|
1099
|
-
|
|
1099
|
+
d(w.code) && (w.preventDefault(), S(w.key, A), B());
|
|
1100
1100
|
break;
|
|
1101
1101
|
}
|
|
1102
1102
|
}, B = () => {
|
|
1103
|
-
|
|
1103
|
+
t.value < e.length && t.value++;
|
|
1104
1104
|
}, z = () => {
|
|
1105
|
-
e.length >=
|
|
1106
|
-
}, S = (w,
|
|
1107
|
-
l.value[
|
|
1108
|
-
},
|
|
1105
|
+
e.length >= t.value && t.value > 0 && t.value--;
|
|
1106
|
+
}, S = (w, A) => {
|
|
1107
|
+
l.value[A] = w;
|
|
1108
|
+
}, T = (w, A) => {
|
|
1109
1109
|
w.preventDefault();
|
|
1110
1110
|
const I = w.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, e.length);
|
|
1111
|
-
I.length === 1 && I.match(/^\d+$/) ? l.value[
|
|
1111
|
+
I.length === 1 && I.match(/^\d+$/) ? l.value[A] = I : I.match(/^\d+$/) && (l.value = I.split(""));
|
|
1112
1112
|
};
|
|
1113
1113
|
return oe(
|
|
1114
1114
|
() => l.value,
|
|
1115
1115
|
(w) => {
|
|
1116
|
-
const
|
|
1117
|
-
s("update:value",
|
|
1116
|
+
const A = w.join("");
|
|
1117
|
+
s("update:value", A);
|
|
1118
1118
|
},
|
|
1119
1119
|
{ deep: !0 }
|
|
1120
1120
|
), oe(
|
|
@@ -1122,29 +1122,29 @@ const Hs = {
|
|
|
1122
1122
|
(w) => {
|
|
1123
1123
|
w !== l.value.join("") && w && w.match(/^\d+$/) && (l.value = w.split("").slice(0, e.length));
|
|
1124
1124
|
}
|
|
1125
|
-
), (w,
|
|
1126
|
-
(n(!0),
|
|
1127
|
-
focus:
|
|
1125
|
+
), (w, A) => (n(), u("div", x({ class: o(i) }, w.$attrs), [
|
|
1126
|
+
(n(!0), u(q, null, U(e.length, (I) => (n(), g(Js, {
|
|
1127
|
+
focus: t.value === I - 1,
|
|
1128
1128
|
key: I,
|
|
1129
|
-
placeholder:
|
|
1129
|
+
placeholder: o(r),
|
|
1130
1130
|
value: l.value[I - 1],
|
|
1131
1131
|
disabled: e.disabled,
|
|
1132
|
-
onFocus: (
|
|
1133
|
-
onKeydown: (
|
|
1134
|
-
onPaste: (
|
|
1132
|
+
onFocus: (V) => p(I - 1),
|
|
1133
|
+
onKeydown: (V) => m(V, I - 1),
|
|
1134
|
+
onPaste: (V) => T(V, I - 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 An = [
|
|
1141
1141
|
"small",
|
|
1142
1142
|
"medium",
|
|
1143
1143
|
"large"
|
|
1144
|
-
],
|
|
1144
|
+
], Ys = {
|
|
1145
1145
|
name: "MaRadio"
|
|
1146
|
-
},
|
|
1147
|
-
...
|
|
1146
|
+
}, Xs = /* @__PURE__ */ k({
|
|
1147
|
+
...Ys,
|
|
1148
1148
|
props: {
|
|
1149
1149
|
type: { default: "button" },
|
|
1150
1150
|
hint: null,
|
|
@@ -1152,15 +1152,15 @@ const Mn = [
|
|
|
1152
1152
|
},
|
|
1153
1153
|
setup(a) {
|
|
1154
1154
|
const s = a, e = c(() => [`ma-radio ma-radio--${s.type}`]);
|
|
1155
|
-
return (
|
|
1156
|
-
class:
|
|
1155
|
+
return (t, l) => (n(), g(o(Je), x(t.$attrs, {
|
|
1156
|
+
class: o(e),
|
|
1157
1157
|
"prefix-cls": "antd-radio"
|
|
1158
|
-
}),
|
|
1159
|
-
U(
|
|
1158
|
+
}), O({ _: 2 }, [
|
|
1159
|
+
U(t.$slots, (i, r) => ({
|
|
1160
1160
|
name: r,
|
|
1161
1161
|
fn: f(() => [
|
|
1162
|
-
|
|
1163
|
-
s.hint ? (n(),
|
|
1162
|
+
_(t.$slots, r),
|
|
1163
|
+
s.hint ? (n(), u("div", {
|
|
1164
1164
|
key: r,
|
|
1165
1165
|
class: "ma-radio__hint-text"
|
|
1166
1166
|
}, C(s.hint), 1)) : h("", !0)
|
|
@@ -1169,13 +1169,13 @@ const Mn = [
|
|
|
1169
1169
|
]), 1040, ["class"]));
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
|
-
const
|
|
1172
|
+
const Qs = ["aria-checked", "disabled"], et = ["src", "alt"], st = { class: "ma-app-track-button__text" }, tt = { class: "ma-app-track-button__text__title" }, ot = {
|
|
1173
1173
|
key: 0,
|
|
1174
1174
|
class: "ma-app-track-button__text__category"
|
|
1175
|
-
},
|
|
1175
|
+
}, nt = { class: "ma-app-track-button__check" }, at = {
|
|
1176
1176
|
name: "MaAppTrackButton"
|
|
1177
|
-
},
|
|
1178
|
-
...
|
|
1177
|
+
}, Tn = /* @__PURE__ */ k({
|
|
1178
|
+
...at,
|
|
1179
1179
|
props: {
|
|
1180
1180
|
checked: { type: Boolean, default: !1 },
|
|
1181
1181
|
appIcon: null,
|
|
@@ -1187,7 +1187,7 @@ const Ys = ["aria-checked", "disabled"], Xs = ["src", "alt"], Qs = { class: "ma-
|
|
|
1187
1187
|
},
|
|
1188
1188
|
emits: ["update:checked", "change"],
|
|
1189
1189
|
setup(a, { emit: s }) {
|
|
1190
|
-
const e = a,
|
|
1190
|
+
const e = a, t = (i) => {
|
|
1191
1191
|
i.preventDefault(), s("change", !e.checked), s("update:checked", !e.checked);
|
|
1192
1192
|
}, l = c(() => [
|
|
1193
1193
|
"ma-app-track-button",
|
|
@@ -1201,38 +1201,38 @@ const Ys = ["aria-checked", "disabled"], Xs = ["src", "alt"], Qs = { class: "ma-
|
|
|
1201
1201
|
"ma-app-track-button--loading": e.loading
|
|
1202
1202
|
}
|
|
1203
1203
|
]);
|
|
1204
|
-
return (i, r) => (n(),
|
|
1205
|
-
class:
|
|
1204
|
+
return (i, r) => (n(), u("button", x({
|
|
1205
|
+
class: o(l),
|
|
1206
1206
|
role: "switch",
|
|
1207
1207
|
"aria-checked": e.checked,
|
|
1208
1208
|
disabled: e.disabled
|
|
1209
|
-
}, i.$attrs, { onClick:
|
|
1210
|
-
|
|
1209
|
+
}, i.$attrs, { onClick: t }), [
|
|
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(),
|
|
1215
|
+
}, null, 8, et),
|
|
1216
|
+
y("span", st, [
|
|
1217
|
+
y("span", tt, C(e.appName), 1),
|
|
1218
|
+
e.appCategory ? (n(), u("span", ot, C(e?.appCategory), 1)) : h("", !0)
|
|
1219
1219
|
]),
|
|
1220
|
-
|
|
1221
|
-
M(
|
|
1220
|
+
y("span", nt, [
|
|
1221
|
+
M(ye, {
|
|
1222
1222
|
name: "fade",
|
|
1223
1223
|
mode: "out-in"
|
|
1224
1224
|
}, {
|
|
1225
1225
|
default: f(() => [
|
|
1226
|
-
e.loading ? (n(),
|
|
1226
|
+
e.loading ? (n(), g(b, {
|
|
1227
1227
|
key: 0,
|
|
1228
1228
|
name: "loader",
|
|
1229
1229
|
size: "xs",
|
|
1230
1230
|
spin: ""
|
|
1231
|
-
})) : !e.multiple || e.checked ? (n(),
|
|
1231
|
+
})) : !e.multiple || e.checked ? (n(), g(Xs, {
|
|
1232
1232
|
key: 1,
|
|
1233
1233
|
checked: e.checked,
|
|
1234
1234
|
type: "check"
|
|
1235
|
-
}, null, 8, ["checked"])) : (n(),
|
|
1235
|
+
}, null, 8, ["checked"])) : (n(), g(b, {
|
|
1236
1236
|
key: 2,
|
|
1237
1237
|
name: "add-circle",
|
|
1238
1238
|
size: "xs"
|
|
@@ -1241,25 +1241,25 @@ const Ys = ["aria-checked", "disabled"], Xs = ["src", "alt"], Qs = { class: "ma-
|
|
|
1241
1241
|
_: 1
|
|
1242
1242
|
})
|
|
1243
1243
|
])
|
|
1244
|
-
], 16,
|
|
1244
|
+
], 16, Qs));
|
|
1245
1245
|
}
|
|
1246
1246
|
});
|
|
1247
|
-
const
|
|
1247
|
+
const lt = { class: "ak-app-icon__logo" }, it = ["src"], rt = {
|
|
1248
1248
|
key: 1,
|
|
1249
1249
|
class: "ak-app-icon-platform"
|
|
1250
|
-
},
|
|
1250
|
+
}, ct = {
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
class: "ak-app-icon__text"
|
|
1253
|
-
},
|
|
1253
|
+
}, pt = {
|
|
1254
1254
|
key: 0,
|
|
1255
1255
|
class: "ak-app-name"
|
|
1256
|
-
},
|
|
1256
|
+
}, ut = {
|
|
1257
1257
|
key: 1,
|
|
1258
1258
|
class: "ak-app-description"
|
|
1259
|
-
},
|
|
1259
|
+
}, dt = {
|
|
1260
1260
|
name: "MaAppIcon"
|
|
1261
|
-
},
|
|
1262
|
-
...
|
|
1261
|
+
}, Pn = /* @__PURE__ */ k({
|
|
1262
|
+
...dt,
|
|
1263
1263
|
props: {
|
|
1264
1264
|
appIcon: null,
|
|
1265
1265
|
appName: null,
|
|
@@ -1271,7 +1271,7 @@ const no = { class: "ak-app-icon__logo" }, ao = ["src"], lo = {
|
|
|
1271
1271
|
},
|
|
1272
1272
|
emits: ["close"],
|
|
1273
1273
|
setup(a, { emit: s }) {
|
|
1274
|
-
const e = a,
|
|
1274
|
+
const e = a, t = c(() => e.platform === "ios" ? "apple-storefront" : "android-storefront"), l = c(() => [
|
|
1275
1275
|
"ma-app-icon",
|
|
1276
1276
|
"ak-app-icon",
|
|
1277
1277
|
`ak-app-icon--${e.size}`,
|
|
@@ -1280,11 +1280,11 @@ const no = { class: "ak-app-icon__logo" }, ao = ["src"], lo = {
|
|
|
1280
1280
|
]), i = () => {
|
|
1281
1281
|
s("close");
|
|
1282
1282
|
};
|
|
1283
|
-
return (r,
|
|
1284
|
-
class:
|
|
1283
|
+
return (r, d) => (n(), u("div", {
|
|
1284
|
+
class: F(o(l))
|
|
1285
1285
|
}, [
|
|
1286
|
-
|
|
1287
|
-
e.closable ? (n(),
|
|
1286
|
+
y("div", lt, [
|
|
1287
|
+
e.closable ? (n(), u("span", {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
onClick: i,
|
|
1290
1290
|
class: "ak-app-icon-closable"
|
|
@@ -1294,54 +1294,54 @@ const no = { class: "ak-app-icon__logo" }, ao = ["src"], lo = {
|
|
|
1294
1294
|
name: "close-circle"
|
|
1295
1295
|
})
|
|
1296
1296
|
])) : h("", !0),
|
|
1297
|
-
|
|
1297
|
+
y("img", {
|
|
1298
1298
|
class: "ak-app-icon-img",
|
|
1299
1299
|
src: e.appIcon
|
|
1300
|
-
}, null, 8,
|
|
1301
|
-
e?.platform ? (n(),
|
|
1300
|
+
}, null, 8, it),
|
|
1301
|
+
e?.platform ? (n(), u("span", rt, [
|
|
1302
1302
|
M(b, {
|
|
1303
1303
|
size: "xs",
|
|
1304
|
-
name: t
|
|
1304
|
+
name: o(t)
|
|
1305
1305
|
}, null, 8, ["name"])
|
|
1306
1306
|
])) : h("", !0)
|
|
1307
1307
|
]),
|
|
1308
|
-
e?.appName || e?.appDescription ? (n(),
|
|
1309
|
-
e?.appName ? (n(),
|
|
1310
|
-
e?.appDescription ? (n(),
|
|
1308
|
+
e?.appName || e?.appDescription ? (n(), u("div", ct, [
|
|
1309
|
+
e?.appName ? (n(), u("span", pt, C(e.appName), 1)) : h("", !0),
|
|
1310
|
+
e?.appDescription ? (n(), u("span", ut, C(e.appDescription), 1)) : h("", !0)
|
|
1311
1311
|
])) : h("", !0)
|
|
1312
1312
|
], 2));
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
1315
|
-
const
|
|
1315
|
+
const Nn = [
|
|
1316
1316
|
"x-small",
|
|
1317
1317
|
"small",
|
|
1318
1318
|
"medium",
|
|
1319
1319
|
"large",
|
|
1320
1320
|
"x-large"
|
|
1321
|
-
],
|
|
1321
|
+
], Dn = [
|
|
1322
1322
|
"play",
|
|
1323
1323
|
"ios"
|
|
1324
|
-
],
|
|
1324
|
+
], mt = {
|
|
1325
1325
|
name: "MaRadioGroup"
|
|
1326
|
-
},
|
|
1327
|
-
...
|
|
1326
|
+
}, Ln = /* @__PURE__ */ k({
|
|
1327
|
+
...mt,
|
|
1328
1328
|
setup(a) {
|
|
1329
|
-
return (s, e) => (n(),
|
|
1330
|
-
U(s.$slots, (
|
|
1329
|
+
return (s, e) => (n(), g(o(Ze), x(s.$attrs, { "prefix-cls": "antd-radio" }), O({ _: 2 }, [
|
|
1330
|
+
U(s.$slots, (t, l) => ({
|
|
1331
1331
|
name: l,
|
|
1332
1332
|
fn: f(() => [
|
|
1333
|
-
|
|
1333
|
+
_(s.$slots, l)
|
|
1334
1334
|
])
|
|
1335
1335
|
}))
|
|
1336
1336
|
]), 1040));
|
|
1337
1337
|
}
|
|
1338
|
-
}),
|
|
1338
|
+
}), En = [
|
|
1339
1339
|
"button",
|
|
1340
1340
|
"check"
|
|
1341
|
-
],
|
|
1341
|
+
], gt = {
|
|
1342
1342
|
name: "MaBadge"
|
|
1343
|
-
},
|
|
1344
|
-
...
|
|
1343
|
+
}, vt = /* @__PURE__ */ k({
|
|
1344
|
+
...gt,
|
|
1345
1345
|
props: {
|
|
1346
1346
|
type: { default: "primary" },
|
|
1347
1347
|
variant: { default: "dark" },
|
|
@@ -1359,18 +1359,18 @@ const In = [
|
|
|
1359
1359
|
"ak-badge--icon-right": s.iconAlignment === "right"
|
|
1360
1360
|
}
|
|
1361
1361
|
]);
|
|
1362
|
-
return (
|
|
1363
|
-
class:
|
|
1362
|
+
return (t, l) => (n(), u("div", {
|
|
1363
|
+
class: F(o(e))
|
|
1364
1364
|
}, [
|
|
1365
|
-
s?.icon ? (n(),
|
|
1365
|
+
s?.icon ? (n(), g(b, {
|
|
1366
1366
|
key: 0,
|
|
1367
1367
|
name: s?.icon
|
|
1368
1368
|
}, null, 8, ["name"])) : h("", !0),
|
|
1369
|
-
|
|
1369
|
+
_(t.$slots, "default")
|
|
1370
1370
|
], 2));
|
|
1371
1371
|
}
|
|
1372
1372
|
});
|
|
1373
|
-
const
|
|
1373
|
+
const Fn = [
|
|
1374
1374
|
"dark",
|
|
1375
1375
|
"blue",
|
|
1376
1376
|
"green",
|
|
@@ -1378,23 +1378,23 @@ const Pn = [
|
|
|
1378
1378
|
"red",
|
|
1379
1379
|
"purple",
|
|
1380
1380
|
"purple-light"
|
|
1381
|
-
],
|
|
1381
|
+
], Rn = [
|
|
1382
1382
|
"primary",
|
|
1383
1383
|
"secondary",
|
|
1384
1384
|
"line",
|
|
1385
1385
|
"dashed",
|
|
1386
1386
|
"icon"
|
|
1387
|
-
],
|
|
1387
|
+
], Un = [
|
|
1388
1388
|
"small",
|
|
1389
1389
|
"medium",
|
|
1390
1390
|
"large"
|
|
1391
|
-
],
|
|
1391
|
+
], Vn = [
|
|
1392
1392
|
"left",
|
|
1393
1393
|
"right"
|
|
1394
|
-
],
|
|
1394
|
+
], ft = {
|
|
1395
1395
|
name: "MaAlert"
|
|
1396
|
-
},
|
|
1397
|
-
...
|
|
1396
|
+
}, jn = /* @__PURE__ */ k({
|
|
1397
|
+
...ft,
|
|
1398
1398
|
props: {
|
|
1399
1399
|
variant: { default: "dark" },
|
|
1400
1400
|
type: { default: "primary" },
|
|
@@ -1404,13 +1404,13 @@ const Pn = [
|
|
|
1404
1404
|
icon: null
|
|
1405
1405
|
},
|
|
1406
1406
|
setup(a) {
|
|
1407
|
-
const s = a, e =
|
|
1408
|
-
return (i, r) => (n(),
|
|
1409
|
-
class: t
|
|
1407
|
+
const s = a, e = te(), t = c(() => [`ma-alert ak-alert ak-alert--${s.variant}--${s.type}`]), l = c(() => !!s?.icon || !!e?.icon);
|
|
1408
|
+
return (i, r) => (n(), g(o(Ye), x(i.$attrs, {
|
|
1409
|
+
class: o(t),
|
|
1410
1410
|
description: a.description,
|
|
1411
1411
|
message: a.message,
|
|
1412
1412
|
closable: a.closable,
|
|
1413
|
-
showIcon:
|
|
1413
|
+
showIcon: o(l),
|
|
1414
1414
|
"prefix-cls": "antd-alert"
|
|
1415
1415
|
}), {
|
|
1416
1416
|
closeIcon: f(() => [
|
|
@@ -1420,36 +1420,36 @@ const Pn = [
|
|
|
1420
1420
|
})
|
|
1421
1421
|
]),
|
|
1422
1422
|
icon: f(() => [
|
|
1423
|
-
s?.icon ? (n(),
|
|
1423
|
+
s?.icon ? (n(), g(b, {
|
|
1424
1424
|
key: 0,
|
|
1425
1425
|
name: a.icon,
|
|
1426
1426
|
size: "lg"
|
|
1427
1427
|
}, null, 8, ["name"])) : h("", !0),
|
|
1428
|
-
|
|
1428
|
+
_(i.$slots, "icon")
|
|
1429
1429
|
]),
|
|
1430
1430
|
message: f(() => [
|
|
1431
|
-
|
|
1431
|
+
_(i.$slots, "message")
|
|
1432
1432
|
]),
|
|
1433
1433
|
description: f(() => [
|
|
1434
|
-
|
|
1434
|
+
_(i.$slots, "description")
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 3
|
|
1437
1437
|
}, 16, ["class", "description", "message", "closable", "showIcon"]));
|
|
1438
1438
|
}
|
|
1439
1439
|
});
|
|
1440
|
-
const
|
|
1440
|
+
const On = [
|
|
1441
1441
|
"dark",
|
|
1442
1442
|
"blue",
|
|
1443
1443
|
"green",
|
|
1444
1444
|
"orange",
|
|
1445
1445
|
"red"
|
|
1446
|
-
],
|
|
1446
|
+
], qn = [
|
|
1447
1447
|
"primary",
|
|
1448
1448
|
"secondary"
|
|
1449
|
-
],
|
|
1449
|
+
], _t = {
|
|
1450
1450
|
name: "MaAnimation"
|
|
1451
|
-
},
|
|
1452
|
-
...
|
|
1451
|
+
}, yt = /* @__PURE__ */ k({
|
|
1452
|
+
..._t,
|
|
1453
1453
|
props: {
|
|
1454
1454
|
name: { default: "rocket" },
|
|
1455
1455
|
loop: { type: Boolean, default: !0 },
|
|
@@ -1460,34 +1460,34 @@ const En = [
|
|
|
1460
1460
|
},
|
|
1461
1461
|
emits: ["onLoaded", "onComplete", "onError"],
|
|
1462
1462
|
setup(a, { expose: s, emit: e }) {
|
|
1463
|
-
const
|
|
1463
|
+
const t = a;
|
|
1464
1464
|
let l;
|
|
1465
|
-
const i =
|
|
1465
|
+
const i = E(null), r = E(null);
|
|
1466
1466
|
s({
|
|
1467
1467
|
animation: r
|
|
1468
1468
|
});
|
|
1469
|
-
const
|
|
1470
|
-
width:
|
|
1471
|
-
height:
|
|
1469
|
+
const d = c(() => ({
|
|
1470
|
+
width: t.width ? `${t.width}px` : void 0,
|
|
1471
|
+
height: t.height ? `${t.height}px` : void 0
|
|
1472
1472
|
}));
|
|
1473
1473
|
oe(
|
|
1474
|
-
() =>
|
|
1474
|
+
() => t.name,
|
|
1475
1475
|
() => {
|
|
1476
|
-
B(),
|
|
1476
|
+
B(), m();
|
|
1477
1477
|
}
|
|
1478
1478
|
);
|
|
1479
|
-
const
|
|
1479
|
+
const p = async () => {
|
|
1480
1480
|
const { default: z } = await import("./lottie_light-b08f9446.mjs").then((S) => S.l);
|
|
1481
1481
|
l = z;
|
|
1482
|
-
},
|
|
1482
|
+
}, m = async () => {
|
|
1483
1483
|
try {
|
|
1484
|
-
const { default: z } = await re(/* @__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/${
|
|
1484
|
+
const { default: z } = await re(/* @__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/${t.name}.json`);
|
|
1485
1485
|
r.value = l.loadAnimation({
|
|
1486
1486
|
container: i.value,
|
|
1487
|
-
loop:
|
|
1488
|
-
autoplay:
|
|
1487
|
+
loop: t.loop,
|
|
1488
|
+
autoplay: t.autoplay,
|
|
1489
1489
|
animationData: z,
|
|
1490
|
-
rendererSettings:
|
|
1490
|
+
rendererSettings: t?.rendererSettings
|
|
1491
1491
|
}), r.value.onComplete = () => e("onComplete"), r.value.addEventListener("DOMLoaded", function() {
|
|
1492
1492
|
e("onLoaded");
|
|
1493
1493
|
});
|
|
@@ -1498,24 +1498,24 @@ const En = [
|
|
|
1498
1498
|
r.value && r.value.destroy();
|
|
1499
1499
|
};
|
|
1500
1500
|
return ce(async () => {
|
|
1501
|
-
await
|
|
1502
|
-
}),
|
|
1501
|
+
await p(), m();
|
|
1502
|
+
}), he(() => {
|
|
1503
1503
|
B();
|
|
1504
|
-
}), (z, S) => (n(),
|
|
1504
|
+
}), (z, S) => (n(), u("div", {
|
|
1505
1505
|
ref_key: "animationRef",
|
|
1506
1506
|
ref: i,
|
|
1507
1507
|
class: "ma-animation",
|
|
1508
|
-
style:
|
|
1508
|
+
style: ne(o(d))
|
|
1509
1509
|
}, null, 4));
|
|
1510
1510
|
}
|
|
1511
|
-
}),
|
|
1511
|
+
}), Hn = [
|
|
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
|
+
], Wn = [
|
|
1519
1519
|
"info",
|
|
1520
1520
|
"success",
|
|
1521
1521
|
"confirm",
|
|
@@ -1527,19 +1527,19 @@ const En = [
|
|
|
1527
1527
|
confirm: "warning",
|
|
1528
1528
|
warning: "warning",
|
|
1529
1529
|
error: "close-circle-bold"
|
|
1530
|
-
},
|
|
1530
|
+
}, ht = {
|
|
1531
1531
|
key: 1,
|
|
1532
1532
|
class: "ak-modal__title"
|
|
1533
|
-
},
|
|
1533
|
+
}, bt = { class: "ak-modal__content" }, kt = {
|
|
1534
1534
|
key: 0,
|
|
1535
1535
|
class: "ak-modal__description"
|
|
1536
|
-
},
|
|
1536
|
+
}, $t = {
|
|
1537
1537
|
key: 2,
|
|
1538
1538
|
class: "ak-modal__footer"
|
|
1539
|
-
},
|
|
1539
|
+
}, Ct = {
|
|
1540
1540
|
name: "MaModal"
|
|
1541
1541
|
}, ve = /* @__PURE__ */ k({
|
|
1542
|
-
|
|
1542
|
+
...Ct,
|
|
1543
1543
|
props: {
|
|
1544
1544
|
visible: { type: Boolean, default: !0 },
|
|
1545
1545
|
type: null,
|
|
@@ -1557,7 +1557,7 @@ const En = [
|
|
|
1557
1557
|
},
|
|
1558
1558
|
emits: ["update:visible", "ok", "cancel"],
|
|
1559
1559
|
setup(a, { emit: s }) {
|
|
1560
|
-
const e = a,
|
|
1560
|
+
const e = a, t = c({
|
|
1561
1561
|
get() {
|
|
1562
1562
|
return e.visible;
|
|
1563
1563
|
},
|
|
@@ -1570,30 +1570,30 @@ const En = [
|
|
|
1570
1570
|
() => e.type === "error" ? "danger" : e.type === "warning" ? "warning" : "info"
|
|
1571
1571
|
), r = c(
|
|
1572
1572
|
() => z?.footer || e.okText || e.cancelText
|
|
1573
|
-
),
|
|
1573
|
+
), d = c(() => [
|
|
1574
1574
|
"ma-modal",
|
|
1575
1575
|
"ak-modal",
|
|
1576
1576
|
{ [`ak-modal--${e.type}`]: !!e.type }
|
|
1577
|
-
]),
|
|
1577
|
+
]), p = c(() => [
|
|
1578
1578
|
"ak-modal__header-icon",
|
|
1579
1579
|
{ [`ak-modal__header-icon--${e.type}`]: !!e.type }
|
|
1580
|
-
]),
|
|
1581
|
-
|
|
1580
|
+
]), m = () => {
|
|
1581
|
+
t.value = !1, s("cancel");
|
|
1582
1582
|
}, B = () => {
|
|
1583
1583
|
s("ok");
|
|
1584
|
-
}, z =
|
|
1585
|
-
return (S,
|
|
1586
|
-
visible: t
|
|
1587
|
-
"onUpdate:visible":
|
|
1584
|
+
}, z = te();
|
|
1585
|
+
return (S, T) => (n(), g(o(Xe), x(S.$attrs, {
|
|
1586
|
+
visible: o(t),
|
|
1587
|
+
"onUpdate:visible": T[0] || (T[0] = (w) => K(t) ? t.value = w : null),
|
|
1588
1588
|
"prefix-cls": "antd-modal",
|
|
1589
|
-
class:
|
|
1589
|
+
class: o(d),
|
|
1590
1590
|
closable: e.closable,
|
|
1591
1591
|
mask: e.mask,
|
|
1592
1592
|
"mask-closable": e.maskClosable,
|
|
1593
1593
|
width: e.width,
|
|
1594
1594
|
footer: null,
|
|
1595
1595
|
onOk: B,
|
|
1596
|
-
onCancel:
|
|
1596
|
+
onCancel: m
|
|
1597
1597
|
}), {
|
|
1598
1598
|
closeIcon: f(() => [
|
|
1599
1599
|
M(b, {
|
|
@@ -1602,27 +1602,27 @@ const En = [
|
|
|
1602
1602
|
})
|
|
1603
1603
|
]),
|
|
1604
1604
|
default: f(() => [
|
|
1605
|
-
|
|
1605
|
+
o(l) ? (n(), u("div", {
|
|
1606
1606
|
key: 0,
|
|
1607
|
-
class:
|
|
1607
|
+
class: F(o(p))
|
|
1608
1608
|
}, [
|
|
1609
|
-
M(b, { name:
|
|
1609
|
+
M(b, { name: o(l) }, null, 8, ["name"])
|
|
1610
1610
|
], 2)) : h("", !0),
|
|
1611
|
-
e.title || S.$slots.title ? (n(),
|
|
1612
|
-
|
|
1611
|
+
e.title || S.$slots.title ? (n(), u("h1", ht, [
|
|
1612
|
+
_(S.$slots, "title"),
|
|
1613
1613
|
L(" " + C(e.title), 1)
|
|
1614
1614
|
])) : h("", !0),
|
|
1615
|
-
|
|
1616
|
-
e.content ? (n(),
|
|
1617
|
-
|
|
1618
|
-
|
|
1615
|
+
y("div", bt, [
|
|
1616
|
+
e.content ? (n(), u("div", kt, C(e.content), 1)) : h("", !0),
|
|
1617
|
+
_(S.$slots, "content"),
|
|
1618
|
+
_(S.$slots, "default")
|
|
1619
1619
|
]),
|
|
1620
|
-
|
|
1621
|
-
e.okText ? (n(),
|
|
1620
|
+
o(r) ? (n(), u("div", $t, [
|
|
1621
|
+
e.okText ? (n(), g(Q, x({
|
|
1622
1622
|
key: 0,
|
|
1623
1623
|
onClick: B,
|
|
1624
1624
|
class: "ak-modal__ok-button",
|
|
1625
|
-
variant:
|
|
1625
|
+
variant: o(i),
|
|
1626
1626
|
loading: e.confirmLoading
|
|
1627
1627
|
}, e.okButtonProps), {
|
|
1628
1628
|
default: f(() => [
|
|
@@ -1630,9 +1630,9 @@ const En = [
|
|
|
1630
1630
|
]),
|
|
1631
1631
|
_: 1
|
|
1632
1632
|
}, 16, ["variant", "loading"])) : h("", !0),
|
|
1633
|
-
e.cancelText ? (n(),
|
|
1633
|
+
e.cancelText ? (n(), g(Q, x({
|
|
1634
1634
|
key: 1,
|
|
1635
|
-
onClick:
|
|
1635
|
+
onClick: m,
|
|
1636
1636
|
type: "grey-link"
|
|
1637
1637
|
}, e.cancelButtonProps), {
|
|
1638
1638
|
default: f(() => [
|
|
@@ -1640,18 +1640,18 @@ const En = [
|
|
|
1640
1640
|
]),
|
|
1641
1641
|
_: 1
|
|
1642
1642
|
}, 16)) : h("", !0),
|
|
1643
|
-
|
|
1643
|
+
_(S.$slots, "footer")
|
|
1644
1644
|
])) : h("", !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 wt = ["info", "success", "warning", "error", "confirm"];
|
|
1651
|
+
wt.forEach((a) => {
|
|
1652
1652
|
ve[a] = (s) => {
|
|
1653
|
-
const e = document.createElement("div"),
|
|
1654
|
-
render: () =>
|
|
1653
|
+
const e = document.createElement("div"), t = Ie(ve, s), l = Se({
|
|
1654
|
+
render: () => t
|
|
1655
1655
|
});
|
|
1656
1656
|
return l.mount(e), document.body.appendChild(e), s.onCancel = () => {
|
|
1657
1657
|
l.unmount();
|
|
@@ -1662,10 +1662,10 @@ Co.forEach((a) => {
|
|
|
1662
1662
|
};
|
|
1663
1663
|
};
|
|
1664
1664
|
});
|
|
1665
|
-
const
|
|
1665
|
+
const xt = {
|
|
1666
1666
|
name: "MaRateStar"
|
|
1667
|
-
},
|
|
1668
|
-
...
|
|
1667
|
+
}, Mt = /* @__PURE__ */ k({
|
|
1668
|
+
...xt,
|
|
1669
1669
|
props: {
|
|
1670
1670
|
value: null,
|
|
1671
1671
|
starRate: null,
|
|
@@ -1677,22 +1677,22 @@ const wo = {
|
|
|
1677
1677
|
{
|
|
1678
1678
|
"ak-rate__item__icon--filled": s.value + 0.5 >= s.starRate
|
|
1679
1679
|
}
|
|
1680
|
-
]),
|
|
1681
|
-
return (i, r) => (n(),
|
|
1680
|
+
]), t = c(() => s.starRate - 0.5 === s.value), l = c(() => t.value ? "star-half-colored" : "star-bold");
|
|
1681
|
+
return (i, r) => (n(), g(ye, { name: "fade" }, {
|
|
1682
1682
|
default: f(() => [
|
|
1683
1683
|
M(b, {
|
|
1684
|
-
class:
|
|
1685
|
-
name:
|
|
1684
|
+
class: F(o(e)),
|
|
1685
|
+
name: o(l),
|
|
1686
1686
|
size: a.iconSize
|
|
1687
1687
|
}, null, 8, ["class", "name", "size"])
|
|
1688
1688
|
]),
|
|
1689
1689
|
_: 1
|
|
1690
1690
|
}));
|
|
1691
1691
|
}
|
|
1692
|
-
}),
|
|
1692
|
+
}), Bt = ["tabindex"], zt = ["onMousemove", "onMouseover"], It = {
|
|
1693
1693
|
name: "MaRate"
|
|
1694
|
-
},
|
|
1695
|
-
...
|
|
1694
|
+
}, Kn = /* @__PURE__ */ k({
|
|
1695
|
+
...It,
|
|
1696
1696
|
props: {
|
|
1697
1697
|
value: null,
|
|
1698
1698
|
allowClear: { type: Boolean },
|
|
@@ -1704,7 +1704,7 @@ const wo = {
|
|
|
1704
1704
|
},
|
|
1705
1705
|
emits: ["update:value", "change"],
|
|
1706
1706
|
setup(a, { emit: s }) {
|
|
1707
|
-
const e = a,
|
|
1707
|
+
const e = a, t = E(0), l = c(() => [
|
|
1708
1708
|
`ak-rate ak-rate--${e.size} ak-rate--${e.color}`,
|
|
1709
1709
|
{
|
|
1710
1710
|
"ak-rate--disabled": e?.disabled
|
|
@@ -1718,68 +1718,68 @@ const wo = {
|
|
|
1718
1718
|
default:
|
|
1719
1719
|
return "xs";
|
|
1720
1720
|
}
|
|
1721
|
-
}), r = c(() => e?.disabled ? -1 : e.tabIndex),
|
|
1721
|
+
}), r = c(() => e?.disabled ? -1 : e.tabIndex), d = () => {
|
|
1722
1722
|
if (!e?.disabled) {
|
|
1723
|
-
if (e?.allowClear &&
|
|
1723
|
+
if (e?.allowClear && t.value === e.value) {
|
|
1724
1724
|
S(0);
|
|
1725
1725
|
return;
|
|
1726
1726
|
}
|
|
1727
|
-
S(
|
|
1727
|
+
S(t.value);
|
|
1728
1728
|
}
|
|
1729
|
-
},
|
|
1730
|
-
e?.disabled || (
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1733
|
-
}, B = (
|
|
1734
|
-
!e?.allowHalf || e.disabled || (
|
|
1735
|
-
}, z = (
|
|
1736
|
-
e?.disabled || (
|
|
1737
|
-
}, S = (
|
|
1738
|
-
s("update:value",
|
|
1729
|
+
}, p = (T) => {
|
|
1730
|
+
e?.disabled || (t.value = T);
|
|
1731
|
+
}, m = () => {
|
|
1732
|
+
t.value = 0;
|
|
1733
|
+
}, B = (T, w) => {
|
|
1734
|
+
!e?.allowHalf || e.disabled || (T.offsetX < T.target.clientWidth / 2 ? t.value = w - 0.5 : t.value = w);
|
|
1735
|
+
}, z = (T) => {
|
|
1736
|
+
e?.disabled || (T.key === "ArrowRight" && e.value < 5 ? S(e.value + (e.allowHalf ? 0.5 : 1)) : T.key === "ArrowLeft" && e.value > 0 && S(e.value - (e.allowHalf ? 0.5 : 1)));
|
|
1737
|
+
}, S = (T) => {
|
|
1738
|
+
s("update:value", T), s("change", T);
|
|
1739
1739
|
};
|
|
1740
|
-
return (
|
|
1741
|
-
class:
|
|
1742
|
-
onMouseleave:
|
|
1740
|
+
return (T, w) => (n(), u("ul", {
|
|
1741
|
+
class: F(o(l)),
|
|
1742
|
+
onMouseleave: m,
|
|
1743
1743
|
onKeydown: z,
|
|
1744
|
-
tabindex:
|
|
1744
|
+
tabindex: o(r)
|
|
1745
1745
|
}, [
|
|
1746
|
-
(n(),
|
|
1746
|
+
(n(), u(q, null, U(5, (A) => y("li", {
|
|
1747
1747
|
class: "ak-rate__item",
|
|
1748
|
-
key:
|
|
1749
|
-
onMousemove: (I) => B(I,
|
|
1750
|
-
onMouseover: (I) =>
|
|
1751
|
-
onClick: w[0] || (w[0] = (I) =>
|
|
1748
|
+
key: A,
|
|
1749
|
+
onMousemove: (I) => B(I, A),
|
|
1750
|
+
onMouseover: (I) => p(A),
|
|
1751
|
+
onClick: w[0] || (w[0] = (I) => d())
|
|
1752
1752
|
}, [
|
|
1753
|
-
M(
|
|
1754
|
-
"star-rate":
|
|
1755
|
-
value:
|
|
1756
|
-
"icon-size":
|
|
1753
|
+
M(Mt, {
|
|
1754
|
+
"star-rate": A,
|
|
1755
|
+
value: t.value || e.value,
|
|
1756
|
+
"icon-size": o(i)
|
|
1757
1757
|
}, null, 8, ["star-rate", "value", "icon-size"])
|
|
1758
|
-
], 40,
|
|
1759
|
-
], 42,
|
|
1758
|
+
], 40, zt)), 64))
|
|
1759
|
+
], 42, Bt));
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
|
-
const
|
|
1762
|
+
const Gn = [
|
|
1763
1763
|
"small",
|
|
1764
1764
|
"medium",
|
|
1765
1765
|
"large"
|
|
1766
|
-
],
|
|
1766
|
+
], Jn = [
|
|
1767
1767
|
"orange",
|
|
1768
1768
|
"green",
|
|
1769
1769
|
"red"
|
|
1770
|
-
],
|
|
1770
|
+
], St = {
|
|
1771
1771
|
key: 0,
|
|
1772
1772
|
class: "ma-spin__overlay"
|
|
1773
|
-
},
|
|
1773
|
+
}, At = {
|
|
1774
1774
|
key: 0,
|
|
1775
1775
|
class: "custom-indicator"
|
|
1776
|
-
},
|
|
1776
|
+
}, Tt = {
|
|
1777
1777
|
key: 2,
|
|
1778
1778
|
class: "tip"
|
|
1779
|
-
},
|
|
1779
|
+
}, Pt = {
|
|
1780
1780
|
name: "MaSpin"
|
|
1781
1781
|
}, fe = /* @__PURE__ */ k({
|
|
1782
|
-
...
|
|
1782
|
+
...Pt,
|
|
1783
1783
|
props: {
|
|
1784
1784
|
type: { default: "round" },
|
|
1785
1785
|
color: { default: "dark" },
|
|
@@ -1787,7 +1787,7 @@ const On = [
|
|
|
1787
1787
|
tip: null
|
|
1788
1788
|
},
|
|
1789
1789
|
setup(a) {
|
|
1790
|
-
const s = a, e =
|
|
1790
|
+
const s = a, e = te(), t = c(() => [
|
|
1791
1791
|
`ma-spin ma-spin--${s.type} ma-spin--${s.color}`,
|
|
1792
1792
|
{
|
|
1793
1793
|
"ma-spin-container": e?.default
|
|
@@ -1795,40 +1795,40 @@ const On = [
|
|
|
1795
1795
|
]), l = c(() => [
|
|
1796
1796
|
"ma-spin__icon"
|
|
1797
1797
|
]), i = c(() => `spin-${s.type}`);
|
|
1798
|
-
return (r,
|
|
1799
|
-
s.spinning ? (n(),
|
|
1800
|
-
r.$slots.indicator ? (n(),
|
|
1801
|
-
|
|
1798
|
+
return (r, d) => (n(), u("div", x({ class: o(t) }, r.$attrs), [
|
|
1799
|
+
s.spinning ? (n(), u("div", St, [
|
|
1800
|
+
r.$slots.indicator ? (n(), u("div", At, [
|
|
1801
|
+
_(r.$slots, "indicator")
|
|
1802
1802
|
])) : h("", !0),
|
|
1803
|
-
s.spinning && !r.$slots.indicator ? (n(),
|
|
1803
|
+
s.spinning && !r.$slots.indicator ? (n(), g(b, {
|
|
1804
1804
|
key: 1,
|
|
1805
|
-
class:
|
|
1806
|
-
name:
|
|
1805
|
+
class: F(o(l)),
|
|
1806
|
+
name: o(i)
|
|
1807
1807
|
}, null, 8, ["class", "name"])) : h("", !0),
|
|
1808
|
-
r.$slots?.tip || s?.tip ? (n(),
|
|
1808
|
+
r.$slots?.tip || s?.tip ? (n(), u("div", Tt, [
|
|
1809
1809
|
L(C(s?.tip) + " ", 1),
|
|
1810
|
-
|
|
1810
|
+
_(r.$slots, "tip")
|
|
1811
1811
|
])) : h("", !0)
|
|
1812
1812
|
])) : h("", !0),
|
|
1813
|
-
|
|
1813
|
+
_(r.$slots, "default")
|
|
1814
1814
|
], 16));
|
|
1815
1815
|
}
|
|
1816
1816
|
});
|
|
1817
|
-
const
|
|
1817
|
+
const Zn = [
|
|
1818
1818
|
"round",
|
|
1819
1819
|
"dots",
|
|
1820
1820
|
"three-circles",
|
|
1821
1821
|
"three-dots"
|
|
1822
|
-
],
|
|
1822
|
+
], Yn = [
|
|
1823
1823
|
"dark",
|
|
1824
1824
|
"jordy",
|
|
1825
1825
|
"blue",
|
|
1826
1826
|
"orange",
|
|
1827
1827
|
"grey"
|
|
1828
|
-
],
|
|
1828
|
+
], Nt = {
|
|
1829
1829
|
name: "MaDropdown"
|
|
1830
|
-
},
|
|
1831
|
-
...
|
|
1830
|
+
}, Dt = /* @__PURE__ */ k({
|
|
1831
|
+
...Nt,
|
|
1832
1832
|
props: {
|
|
1833
1833
|
destroyPopupOnHide: { type: Boolean, default: !1 },
|
|
1834
1834
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1839,7 +1839,7 @@ const Hn = [
|
|
|
1839
1839
|
},
|
|
1840
1840
|
emits: ["update:visible", "visibleChange"],
|
|
1841
1841
|
setup(a, { emit: s }) {
|
|
1842
|
-
const e = a,
|
|
1842
|
+
const e = a, t = c({
|
|
1843
1843
|
get() {
|
|
1844
1844
|
return typeof e.visible == "boolean" ? e.visible : void 0;
|
|
1845
1845
|
},
|
|
@@ -1849,43 +1849,43 @@ const Hn = [
|
|
|
1849
1849
|
}), l = c(
|
|
1850
1850
|
() => ["ma-dropdown-overlay", e?.overlayClassName].join(" ")
|
|
1851
1851
|
);
|
|
1852
|
-
return (i, r) => (n(),
|
|
1852
|
+
return (i, r) => (n(), g(o(Qe), x({
|
|
1853
1853
|
"prefix-cls": "antd-dropdown",
|
|
1854
|
-
overlayClassName:
|
|
1854
|
+
overlayClassName: o(l),
|
|
1855
1855
|
destroyPopupOnHide: e.destroyPopupOnHide,
|
|
1856
1856
|
disabled: e.disabled,
|
|
1857
1857
|
placement: e.placement,
|
|
1858
1858
|
trigger: e.trigger
|
|
1859
1859
|
}, i.$attrs, {
|
|
1860
|
-
visible: t
|
|
1861
|
-
"onUpdate:visible": r[0] || (r[0] = (
|
|
1860
|
+
visible: o(t),
|
|
1861
|
+
"onUpdate:visible": r[0] || (r[0] = (d) => K(t) ? t.value = d : null)
|
|
1862
1862
|
}), {
|
|
1863
1863
|
overlay: f(() => [
|
|
1864
|
-
|
|
1864
|
+
_(i.$slots, "overlay")
|
|
1865
1865
|
]),
|
|
1866
1866
|
default: f(() => [
|
|
1867
|
-
|
|
1867
|
+
_(i.$slots, "default")
|
|
1868
1868
|
]),
|
|
1869
1869
|
_: 3
|
|
1870
1870
|
}, 16, ["overlayClassName", "destroyPopupOnHide", "disabled", "placement", "trigger", "visible"]));
|
|
1871
1871
|
}
|
|
1872
1872
|
});
|
|
1873
|
-
const
|
|
1873
|
+
const Xn = [
|
|
1874
1874
|
"bottomLeft",
|
|
1875
1875
|
"bottom",
|
|
1876
1876
|
"bottomRight",
|
|
1877
1877
|
"topLeft",
|
|
1878
1878
|
"top",
|
|
1879
1879
|
"topRight"
|
|
1880
|
-
],
|
|
1880
|
+
], Qn = [
|
|
1881
1881
|
"click",
|
|
1882
1882
|
"hover",
|
|
1883
1883
|
"contextmenu"
|
|
1884
|
-
],
|
|
1884
|
+
], ea = [
|
|
1885
1885
|
"small",
|
|
1886
1886
|
"medium",
|
|
1887
1887
|
"large"
|
|
1888
|
-
],
|
|
1888
|
+
], sa = [
|
|
1889
1889
|
"general",
|
|
1890
1890
|
"add-app",
|
|
1891
1891
|
"table",
|
|
@@ -1895,10 +1895,10 @@ const Kn = [
|
|
|
1895
1895
|
"add-app": "add-app",
|
|
1896
1896
|
table: "empty-table",
|
|
1897
1897
|
selection: "selection"
|
|
1898
|
-
},
|
|
1898
|
+
}, Lt = { class: "ma-empty__title" }, Et = { class: "ma-empty__description" }, Ft = { class: "ma-empty__content" }, Rt = {
|
|
1899
1899
|
name: "MaEmpty"
|
|
1900
|
-
},
|
|
1901
|
-
...
|
|
1900
|
+
}, ta = /* @__PURE__ */ k({
|
|
1901
|
+
...Rt,
|
|
1902
1902
|
props: {
|
|
1903
1903
|
size: { default: "large" },
|
|
1904
1904
|
variant: { default: "general" },
|
|
@@ -1910,39 +1910,39 @@ const Kn = [
|
|
|
1910
1910
|
setup(a) {
|
|
1911
1911
|
const s = a, e = c(
|
|
1912
1912
|
() => s.variant && _e[s.variant] ? _e[s.variant] : null
|
|
1913
|
-
),
|
|
1913
|
+
), t = c(() => [
|
|
1914
1914
|
`ma-empty ma-empty--${s.variant} ma-empty--${s.size}`
|
|
1915
1915
|
]);
|
|
1916
|
-
return (l, i) => (n(),
|
|
1917
|
-
class:
|
|
1916
|
+
return (l, i) => (n(), u("div", {
|
|
1917
|
+
class: F(o(t))
|
|
1918
1918
|
}, [
|
|
1919
|
-
s?.animation ? (n(),
|
|
1919
|
+
s?.animation ? (n(), g(yt, x({
|
|
1920
1920
|
key: 0,
|
|
1921
1921
|
name: a.animation
|
|
1922
|
-
}, a.animationProps), null, 16, ["name"])) : l.$slots.icon ?
|
|
1922
|
+
}, a.animationProps), null, 16, ["name"])) : l.$slots.icon ? _(l.$slots, "icon", { key: 1 }) : (n(), g(b, {
|
|
1923
1923
|
key: 2,
|
|
1924
|
-
name:
|
|
1924
|
+
name: o(e),
|
|
1925
1925
|
class: "ma-empty__icon"
|
|
1926
1926
|
}, null, 8, ["name"])),
|
|
1927
|
-
|
|
1927
|
+
y("span", Lt, [
|
|
1928
1928
|
L(C(a.title) + " ", 1),
|
|
1929
|
-
|
|
1929
|
+
_(l.$slots, "title")
|
|
1930
1930
|
]),
|
|
1931
|
-
|
|
1931
|
+
y("span", Et, [
|
|
1932
1932
|
L(C(a.description) + " ", 1),
|
|
1933
|
-
|
|
1933
|
+
_(l.$slots, "description")
|
|
1934
1934
|
]),
|
|
1935
|
-
|
|
1936
|
-
|
|
1935
|
+
y("div", Ft, [
|
|
1936
|
+
_(l.$slots, "default")
|
|
1937
1937
|
])
|
|
1938
1938
|
], 2));
|
|
1939
1939
|
}
|
|
1940
1940
|
});
|
|
1941
|
-
const
|
|
1941
|
+
const oa = [
|
|
1942
1942
|
"button",
|
|
1943
1943
|
"box",
|
|
1944
1944
|
"small-box"
|
|
1945
|
-
],
|
|
1945
|
+
], Ut = [
|
|
1946
1946
|
"xs",
|
|
1947
1947
|
"sm",
|
|
1948
1948
|
"md",
|
|
@@ -1956,63 +1956,63 @@ const ie = (a) => {
|
|
|
1956
1956
|
} catch {
|
|
1957
1957
|
return a;
|
|
1958
1958
|
}
|
|
1959
|
-
},
|
|
1959
|
+
}, Vt = (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
|
-
},
|
|
1965
|
-
const l =
|
|
1966
|
-
return { progress: l, upload: async (r,
|
|
1967
|
-
const
|
|
1968
|
-
|
|
1969
|
-
|
|
1964
|
+
}, jt = (a, s = {}, e = {}, t) => {
|
|
1965
|
+
const l = E(0);
|
|
1966
|
+
return { progress: l, upload: async (r, d) => {
|
|
1967
|
+
const p = new FormData();
|
|
1968
|
+
p.append(t, r.file), Object.entries(e).forEach(([B, z]) => {
|
|
1969
|
+
p.append(B, z);
|
|
1970
1970
|
});
|
|
1971
|
-
const
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
}),
|
|
1975
|
-
B.lengthComputable && (l.value = B.loaded / B.total * 100,
|
|
1976
|
-
},
|
|
1977
|
-
|
|
1971
|
+
const m = new XMLHttpRequest();
|
|
1972
|
+
m.open("POST", a), Object.entries(s).forEach(([B, z]) => {
|
|
1973
|
+
m.setRequestHeader(B, z);
|
|
1974
|
+
}), m.upload.onprogress = (B) => {
|
|
1975
|
+
B.lengthComputable && (l.value = B.loaded / B.total * 100, d(W.uploading, l.value));
|
|
1976
|
+
}, m.onload = () => {
|
|
1977
|
+
m.status >= 200 && m.status < 300 ? d(
|
|
1978
1978
|
W.done,
|
|
1979
1979
|
l.value,
|
|
1980
|
-
ie(
|
|
1981
|
-
) :
|
|
1980
|
+
ie(m.responseText)
|
|
1981
|
+
) : d(
|
|
1982
1982
|
W.error,
|
|
1983
1983
|
l.value,
|
|
1984
|
-
ie(
|
|
1984
|
+
ie(m.responseText)
|
|
1985
1985
|
);
|
|
1986
|
-
},
|
|
1987
|
-
|
|
1986
|
+
}, m.onerror = () => {
|
|
1987
|
+
d(
|
|
1988
1988
|
W.error,
|
|
1989
1989
|
l.value,
|
|
1990
|
-
ie(
|
|
1990
|
+
ie(m.responseText)
|
|
1991
1991
|
);
|
|
1992
|
-
},
|
|
1992
|
+
}, m.send(p), r.cancelRequest = () => m.abort();
|
|
1993
1993
|
} };
|
|
1994
|
-
},
|
|
1994
|
+
}, Ot = (a, s) => {
|
|
1995
1995
|
if (!s)
|
|
1996
1996
|
return !0;
|
|
1997
|
-
const e = s.split(",").map((i) => i.trim()),
|
|
1997
|
+
const e = s.split(",").map((i) => i.trim()), t = a.type, l = a.name.split(".").pop()?.toLowerCase();
|
|
1998
1998
|
for (const i of e)
|
|
1999
1999
|
if (i.includes("*")) {
|
|
2000
2000
|
const [r] = i.split("/");
|
|
2001
|
-
if (
|
|
2001
|
+
if (t.startsWith(r))
|
|
2002
2002
|
return !0;
|
|
2003
2003
|
} else if (i.startsWith(".")) {
|
|
2004
2004
|
if (i.slice(1) === l)
|
|
2005
2005
|
return !0;
|
|
2006
2006
|
} else {
|
|
2007
|
-
const [r,
|
|
2008
|
-
if (r ===
|
|
2007
|
+
const [r, d] = i.split("/"), [p, m] = t.split("/");
|
|
2008
|
+
if (r === p && d === m)
|
|
2009
2009
|
return !0;
|
|
2010
2010
|
}
|
|
2011
2011
|
return !1;
|
|
2012
|
-
},
|
|
2012
|
+
}, qt = { class: "single-file" }, Ht = { class: "icon-wrapper" }, Wt = { class: "single-file__detail" }, Kt = { class: "file-name" }, Gt = {
|
|
2013
2013
|
key: 0,
|
|
2014
2014
|
class: "file-size"
|
|
2015
|
-
},
|
|
2015
|
+
}, Jt = { class: "file-progress" }, Zt = { class: "single-file__actions" }, Yt = /* @__PURE__ */ k({
|
|
2016
2016
|
__name: "singleFile",
|
|
2017
2017
|
props: {
|
|
2018
2018
|
file: null,
|
|
@@ -2021,55 +2021,55 @@ const ie = (a) => {
|
|
|
2021
2021
|
},
|
|
2022
2022
|
emits: ["remove", "cancel"],
|
|
2023
2023
|
setup(a, { emit: s }) {
|
|
2024
|
-
const e = a,
|
|
2024
|
+
const e = a, t = 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 (
|
|
2028
|
-
|
|
2027
|
+
return (d, p) => (n(), u("div", qt, [
|
|
2028
|
+
y("div", Ht, [
|
|
2029
2029
|
M(b, { name: "document-bulk" })
|
|
2030
2030
|
]),
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2031
|
+
y("div", Wt, [
|
|
2032
|
+
y("span", Kt, C(a.file.file.name), 1),
|
|
2033
|
+
o(l) ? (n(), u("span", Gt, C(o(t)), 1)) : h("", !0),
|
|
2034
|
+
y("span", Jt, [
|
|
2035
|
+
y("span", {
|
|
2036
2036
|
class: "progress-item",
|
|
2037
|
-
style:
|
|
2037
|
+
style: ne({ width: `${a.file.progress}%` })
|
|
2038
2038
|
}, null, 4)
|
|
2039
2039
|
])
|
|
2040
2040
|
]),
|
|
2041
|
-
|
|
2042
|
-
a.file.status ===
|
|
2041
|
+
y("div", Zt, [
|
|
2042
|
+
a.file.status === o(W).uploading ? (n(), g(Q, {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
disabled: a.disabled,
|
|
2045
|
-
onClick:
|
|
2045
|
+
onClick: p[0] || (p[0] = (m) => r()),
|
|
2046
2046
|
size: "small",
|
|
2047
2047
|
type: "primary",
|
|
2048
2048
|
variant: "plain",
|
|
2049
2049
|
icon: "close-circle-bulk"
|
|
2050
|
-
}, null, 8, ["disabled"])) : (n(),
|
|
2050
|
+
}, null, 8, ["disabled"])) : (n(), g(Q, {
|
|
2051
2051
|
key: 1,
|
|
2052
2052
|
disabled: a.disabled,
|
|
2053
|
-
onClick:
|
|
2053
|
+
onClick: p[1] || (p[1] = (m) => i()),
|
|
2054
2054
|
size: "small",
|
|
2055
2055
|
type: "primary",
|
|
2056
2056
|
variant: "plain",
|
|
2057
2057
|
icon: "trash-bulk"
|
|
2058
2058
|
}, null, 8, ["disabled"])),
|
|
2059
|
-
|
|
2059
|
+
y("span", null, "%" + C(parseInt(a.file.progress.toString())), 1)
|
|
2060
2060
|
])
|
|
2061
2061
|
]));
|
|
2062
2062
|
}
|
|
2063
|
-
}),
|
|
2063
|
+
}), Xt = ["onDrop"], Qt = ["accept", "multiple", "disabled"], eo = { class: "text" }, so = /* @__PURE__ */ y("span", null, "Uploading file...", -1), to = { class: "upload-icon" }, oo = {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
class: "upload-title"
|
|
2066
|
-
},
|
|
2066
|
+
}, no = {
|
|
2067
2067
|
key: 1,
|
|
2068
2068
|
class: "upload-description"
|
|
2069
|
-
},
|
|
2069
|
+
}, ao = {
|
|
2070
2070
|
name: "MaUpload"
|
|
2071
|
-
},
|
|
2072
|
-
...
|
|
2071
|
+
}, na = /* @__PURE__ */ k({
|
|
2072
|
+
...ao,
|
|
2073
2073
|
props: {
|
|
2074
2074
|
fileList: null,
|
|
2075
2075
|
type: { default: "box" },
|
|
@@ -2092,17 +2092,17 @@ const ie = (a) => {
|
|
|
2092
2092
|
},
|
|
2093
2093
|
emits: ["update:fileList", "change", "remove", "error"],
|
|
2094
2094
|
setup(a, { emit: s }) {
|
|
2095
|
-
const e = a,
|
|
2095
|
+
const e = a, t = E(null), l = E(null), i = E(!1), r = ["dragenter", "dragover", "dragleave", "drop"], d = ["dragenter", "dragover"], p = ["dragleave", "drop"], m = c({
|
|
2096
2096
|
get() {
|
|
2097
2097
|
return e.fileList;
|
|
2098
2098
|
},
|
|
2099
2099
|
set($) {
|
|
2100
|
-
s("update:fileList", $), s("change", $), e?.action && $.forEach(async (N,
|
|
2100
|
+
s("update:fileList", $), s("change", $), e?.action && $.forEach(async (N, j) => {
|
|
2101
2101
|
if ([W.done, W.error].includes(
|
|
2102
2102
|
N.status
|
|
2103
2103
|
))
|
|
2104
2104
|
return;
|
|
2105
|
-
const { upload: X } =
|
|
2105
|
+
const { upload: X } = jt(
|
|
2106
2106
|
e?.action || "",
|
|
2107
2107
|
// || added for tsc warning
|
|
2108
2108
|
e.headers,
|
|
@@ -2110,43 +2110,43 @@ const ie = (a) => {
|
|
|
2110
2110
|
e.name
|
|
2111
2111
|
);
|
|
2112
2112
|
e?.beforeUpload && (N.file = await e.beforeUpload(N.file)), X(N, (se, xe, me) => {
|
|
2113
|
-
if (
|
|
2113
|
+
if (m.value[j]) {
|
|
2114
2114
|
if (se === W.error) {
|
|
2115
2115
|
s("error", { file: N.file, message: me }), le(
|
|
2116
|
-
|
|
2116
|
+
m.value.findIndex((Me) => Me.id === N.id)
|
|
2117
2117
|
);
|
|
2118
2118
|
return;
|
|
2119
2119
|
}
|
|
2120
|
-
|
|
2120
|
+
m.value[j].progress = xe, m.value[j].status = se, m.value[j].response = me || null, s("change", m.value[j]);
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
});
|
|
2124
2124
|
}
|
|
2125
2125
|
}), B = c(
|
|
2126
|
-
() =>
|
|
2126
|
+
() => m.value.map(($) => $.file.name).join(", ")
|
|
2127
2127
|
), z = c(
|
|
2128
|
-
() => e.type === "box" ? e.multiple ? !0 : !
|
|
2128
|
+
() => e.type === "box" ? e.multiple ? !0 : !m.value.length : !0
|
|
2129
2129
|
), S = c(
|
|
2130
|
-
() => e.ordered && I.value ? !1 :
|
|
2131
|
-
),
|
|
2130
|
+
() => e.ordered && I.value ? !1 : m.value.length ? e.showFileList : !1
|
|
2131
|
+
), T = c(() => [
|
|
2132
2132
|
`ma-upload ma-upload--${e.type} ma-upload--${e.type}--${e.size}`,
|
|
2133
2133
|
{
|
|
2134
2134
|
"ma-upload--active": i.value
|
|
2135
2135
|
},
|
|
2136
2136
|
{
|
|
2137
|
-
"ma-upload--disabled":
|
|
2137
|
+
"ma-upload--disabled": V.value
|
|
2138
2138
|
}
|
|
2139
2139
|
]), w = c(() => [
|
|
2140
2140
|
"ma-file-list",
|
|
2141
2141
|
{
|
|
2142
2142
|
"only-file-list": !z.value
|
|
2143
2143
|
}
|
|
2144
|
-
]),
|
|
2145
|
-
const $ = e?.size ?
|
|
2146
|
-
return
|
|
2144
|
+
]), A = c(() => {
|
|
2145
|
+
const $ = e?.size ? Ut.indexOf(e.size) : 0;
|
|
2146
|
+
return ls[$];
|
|
2147
2147
|
}), I = c(
|
|
2148
|
-
() => e.wait ||
|
|
2149
|
-
),
|
|
2148
|
+
() => e.wait || m.value.some(($) => $.status === W.uploading)
|
|
2149
|
+
), V = c(() => e?.disabled || I.value), R = ($) => Array.from($).find(
|
|
2150
2150
|
(N) => e?.maxFileSize && N.size > e.maxFileSize
|
|
2151
2151
|
), G = ($) => {
|
|
2152
2152
|
const N = $.target;
|
|
@@ -2160,112 +2160,112 @@ const ie = (a) => {
|
|
|
2160
2160
|
}, H = () => {
|
|
2161
2161
|
i.value = !1;
|
|
2162
2162
|
}, ae = ($) => {
|
|
2163
|
-
|
|
2164
|
-
Array.from($.dataTransfer.files).filter((N) => e?.accept && !
|
|
2163
|
+
V.value || $.dataTransfer?.files && ue(
|
|
2164
|
+
Array.from($.dataTransfer.files).filter((N) => e?.accept && !Ot(N, e.accept) ? (s("error", { file: N, message: "file type does not match!" }), !1) : !0)
|
|
2165
2165
|
);
|
|
2166
2166
|
}, ue = ($) => {
|
|
2167
|
-
const N =
|
|
2167
|
+
const N = R($);
|
|
2168
2168
|
if (N) {
|
|
2169
2169
|
s("error", { file: N, message: "File too large" });
|
|
2170
2170
|
return;
|
|
2171
2171
|
}
|
|
2172
|
-
const
|
|
2172
|
+
const j = Array.from($).filter(
|
|
2173
2173
|
(X, se) => e?.maxCount ? se + 1 <= e.maxCount : !0
|
|
2174
2174
|
).map((X) => ({
|
|
2175
2175
|
file: X,
|
|
2176
|
-
id:
|
|
2176
|
+
id: Vt(),
|
|
2177
2177
|
status: e?.action ? W.uploading : W.done,
|
|
2178
2178
|
progress: e?.action ? 0 : 100,
|
|
2179
2179
|
response: null
|
|
2180
2180
|
}));
|
|
2181
|
-
e.multiple ?
|
|
2181
|
+
e.multiple ? m.value = [...m.value, ...j] : j.length && (m.value = [j[0]]);
|
|
2182
2182
|
}, le = ($) => {
|
|
2183
|
-
s("remove",
|
|
2183
|
+
s("remove", m.value[$]), m.value = m.value.filter((N, j) => j !== $);
|
|
2184
2184
|
}, de = ($) => {
|
|
2185
|
-
const N =
|
|
2185
|
+
const N = m.value[$];
|
|
2186
2186
|
typeof N?.cancelRequest == "function" && N.cancelRequest(), le($);
|
|
2187
2187
|
}, we = ($) => {
|
|
2188
|
-
$.stopPropagation(),
|
|
2188
|
+
$.stopPropagation(), m.value.forEach((N, j) => de(j)), m.value = [];
|
|
2189
2189
|
};
|
|
2190
2190
|
return ce(() => {
|
|
2191
2191
|
r.forEach(($) => {
|
|
2192
|
-
|
|
2193
|
-
}), u.forEach(($) => {
|
|
2194
|
-
o.value?.addEventListener($, D);
|
|
2192
|
+
t.value?.addEventListener($, P);
|
|
2195
2193
|
}), d.forEach(($) => {
|
|
2196
|
-
|
|
2194
|
+
t.value?.addEventListener($, D);
|
|
2195
|
+
}), p.forEach(($) => {
|
|
2196
|
+
t.value?.addEventListener($, H);
|
|
2197
2197
|
});
|
|
2198
|
-
}),
|
|
2198
|
+
}), Ae(() => {
|
|
2199
2199
|
r.forEach(($) => {
|
|
2200
|
-
|
|
2201
|
-
}), u.forEach(($) => {
|
|
2202
|
-
o.value?.removeEventListener($, D);
|
|
2200
|
+
t.value?.removeEventListener($, P);
|
|
2203
2201
|
}), d.forEach(($) => {
|
|
2204
|
-
|
|
2202
|
+
t.value?.removeEventListener($, D);
|
|
2203
|
+
}), p.forEach(($) => {
|
|
2204
|
+
t.value?.removeEventListener($, H);
|
|
2205
2205
|
});
|
|
2206
|
-
}), ($, N) => (n(),
|
|
2207
|
-
Z(
|
|
2206
|
+
}), ($, N) => (n(), u("div", x({ class: "ma-upload-wrapper" }, $.$attrs), [
|
|
2207
|
+
Z(y("div", {
|
|
2208
2208
|
ref_key: "uploadArea",
|
|
2209
|
-
ref:
|
|
2210
|
-
class:
|
|
2209
|
+
ref: t,
|
|
2210
|
+
class: F(o(T)),
|
|
2211
2211
|
onDrop: be(ae, ["prevent"])
|
|
2212
2212
|
}, [
|
|
2213
|
-
(n(),
|
|
2213
|
+
(n(), u("input", {
|
|
2214
2214
|
type: "file",
|
|
2215
2215
|
accept: a.accept,
|
|
2216
2216
|
multiple: e.multiple,
|
|
2217
|
-
disabled:
|
|
2217
|
+
disabled: o(V),
|
|
2218
2218
|
onChange: G,
|
|
2219
|
-
key:
|
|
2219
|
+
key: o(m).length,
|
|
2220
2220
|
ref_key: "fileInput",
|
|
2221
2221
|
ref: l
|
|
2222
|
-
}, null, 40,
|
|
2223
|
-
e.type === "button" ? (n(),
|
|
2222
|
+
}, null, 40, Qt)),
|
|
2223
|
+
e.type === "button" ? (n(), g(Q, {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
type: a.fileList.length ? "primary" : "secondary",
|
|
2226
2226
|
variant: "dark",
|
|
2227
2227
|
icon: "export-2",
|
|
2228
2228
|
onClick: v,
|
|
2229
|
-
size:
|
|
2230
|
-
disabled:
|
|
2231
|
-
loading:
|
|
2229
|
+
size: o(A),
|
|
2230
|
+
disabled: o(V),
|
|
2231
|
+
loading: o(I)
|
|
2232
2232
|
}, {
|
|
2233
2233
|
default: f(() => [
|
|
2234
|
-
L(C(a.fileList.length ?
|
|
2234
|
+
L(C(a.fileList.length ? o(B) : e?.title), 1)
|
|
2235
2235
|
]),
|
|
2236
2236
|
_: 1
|
|
2237
|
-
}, 8, ["type", "size", "disabled", "loading"])) : e.type === "small-box" ? (n(),
|
|
2237
|
+
}, 8, ["type", "size", "disabled", "loading"])) : e.type === "small-box" ? (n(), u("div", {
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
class: "ma-upload__small_box",
|
|
2240
2240
|
onClick: v
|
|
2241
2241
|
}, [
|
|
2242
|
-
|
|
2242
|
+
o(I) ? (n(), g(fe, {
|
|
2243
2243
|
key: 0,
|
|
2244
2244
|
type: "three-circles",
|
|
2245
2245
|
color: "blue"
|
|
2246
|
-
})) : (n(),
|
|
2246
|
+
})) : (n(), g(b, {
|
|
2247
2247
|
key: 1,
|
|
2248
2248
|
name: "export-2-bulk"
|
|
2249
2249
|
})),
|
|
2250
|
-
|
|
2251
|
-
|
|
2250
|
+
y("span", eo, [
|
|
2251
|
+
o(I) ? (n(), u(q, { key: 0 }, [
|
|
2252
2252
|
L(" Uploading... ")
|
|
2253
|
-
], 64)) : (n(),
|
|
2253
|
+
], 64)) : (n(), u(q, { key: 1 }, [
|
|
2254
2254
|
L(C(e?.title) + " ", 1),
|
|
2255
|
-
|
|
2255
|
+
_($.$slots, "small-box-title")
|
|
2256
2256
|
], 64))
|
|
2257
2257
|
])
|
|
2258
|
-
])) : (n(),
|
|
2258
|
+
])) : (n(), u("div", {
|
|
2259
2259
|
key: 2,
|
|
2260
2260
|
class: "ma-upload__box",
|
|
2261
2261
|
onClick: v
|
|
2262
2262
|
}, [
|
|
2263
|
-
e.ordered &&
|
|
2263
|
+
e.ordered && o(I) ? (n(), u(q, { key: 0 }, [
|
|
2264
2264
|
M(fe, {
|
|
2265
2265
|
type: "three-circles",
|
|
2266
2266
|
color: "blue"
|
|
2267
2267
|
}),
|
|
2268
|
-
|
|
2268
|
+
so,
|
|
2269
2269
|
M(Q, {
|
|
2270
2270
|
onClick: we,
|
|
2271
2271
|
class: "box-cancel",
|
|
@@ -2277,31 +2277,31 @@ const ie = (a) => {
|
|
|
2277
2277
|
]),
|
|
2278
2278
|
_: 1
|
|
2279
2279
|
})
|
|
2280
|
-
], 64)) : (n(),
|
|
2281
|
-
|
|
2280
|
+
], 64)) : (n(), u(q, { key: 1 }, [
|
|
2281
|
+
y("div", to, [
|
|
2282
2282
|
M(b, { name: "upload-bulk" })
|
|
2283
2283
|
]),
|
|
2284
|
-
e?.title ? (n(),
|
|
2284
|
+
e?.title ? (n(), u("span", oo, [
|
|
2285
2285
|
L(C(e?.title) + " ", 1),
|
|
2286
|
-
|
|
2286
|
+
_($.$slots, "box-title")
|
|
2287
2287
|
])) : h("", !0),
|
|
2288
|
-
e?.description ? (n(),
|
|
2288
|
+
e?.description ? (n(), u("span", no, [
|
|
2289
2289
|
L(C(e?.description) + " ", 1),
|
|
2290
|
-
|
|
2290
|
+
_($.$slots, "box-description")
|
|
2291
2291
|
])) : h("", !0)
|
|
2292
2292
|
], 64))
|
|
2293
2293
|
]))
|
|
2294
|
-
], 42,
|
|
2295
|
-
[Y,
|
|
2294
|
+
], 42, Xt), [
|
|
2295
|
+
[Y, o(z)]
|
|
2296
2296
|
]),
|
|
2297
|
-
|
|
2297
|
+
o(S) ? (n(), u("div", {
|
|
2298
2298
|
key: 0,
|
|
2299
|
-
class:
|
|
2299
|
+
class: F(o(w))
|
|
2300
2300
|
}, [
|
|
2301
|
-
(n(!0),
|
|
2301
|
+
(n(!0), u(q, null, U(o(m), (j, X) => (n(), g(Yt, {
|
|
2302
2302
|
onRemove: (se) => le(X),
|
|
2303
2303
|
onCancel: (se) => de(X),
|
|
2304
|
-
file:
|
|
2304
|
+
file: j,
|
|
2305
2305
|
key: X,
|
|
2306
2306
|
disabled: e.disabled
|
|
2307
2307
|
}, null, 8, ["onRemove", "onCancel", "file", "disabled"]))), 128))
|
|
@@ -2309,10 +2309,10 @@ const ie = (a) => {
|
|
|
2309
2309
|
], 16));
|
|
2310
2310
|
}
|
|
2311
2311
|
});
|
|
2312
|
-
const
|
|
2312
|
+
const lo = {
|
|
2313
2313
|
name: "MaSideMenuButton"
|
|
2314
|
-
},
|
|
2315
|
-
...
|
|
2314
|
+
}, aa = /* @__PURE__ */ k({
|
|
2315
|
+
...lo,
|
|
2316
2316
|
props: {
|
|
2317
2317
|
icon: { default: "app" },
|
|
2318
2318
|
activeIcon: null,
|
|
@@ -2322,49 +2322,49 @@ const at = {
|
|
|
2322
2322
|
active: { type: Boolean, default: !1 }
|
|
2323
2323
|
},
|
|
2324
2324
|
setup(a) {
|
|
2325
|
-
const s = a, e =
|
|
2325
|
+
const s = a, e = E(!1), t = c(() => s?.href ? "a" : "button"), l = c(() => s?.activeIcon || `${s.icon.replace("-bulk", "-bold")}`), i = c(() => [
|
|
2326
2326
|
"ma-side-menu-button",
|
|
2327
2327
|
{ active: s?.active }
|
|
2328
|
-
]), r = c(() => e.value || s.active),
|
|
2329
|
-
return (
|
|
2330
|
-
onMousedown:
|
|
2331
|
-
onMouseup:
|
|
2328
|
+
]), r = c(() => e.value || s.active), d = () => e.value = !0, p = () => e.value = !1;
|
|
2329
|
+
return (m, B) => (n(), g(ee(o(t)), x({
|
|
2330
|
+
onMousedown: d,
|
|
2331
|
+
onMouseup: p,
|
|
2332
2332
|
role: "button",
|
|
2333
2333
|
target: s?.target,
|
|
2334
|
-
class:
|
|
2334
|
+
class: o(i),
|
|
2335
2335
|
href: s?.href
|
|
2336
|
-
},
|
|
2336
|
+
}, m.$attrs), {
|
|
2337
2337
|
default: f(() => [
|
|
2338
|
-
s?.icon ? (n(),
|
|
2338
|
+
s?.icon ? (n(), u(q, { key: 0 }, [
|
|
2339
2339
|
Z(M(b, {
|
|
2340
2340
|
size: "md",
|
|
2341
|
-
name:
|
|
2341
|
+
name: o(l)
|
|
2342
2342
|
}, null, 8, ["name"]), [
|
|
2343
|
-
[Y,
|
|
2343
|
+
[Y, o(r)]
|
|
2344
2344
|
]),
|
|
2345
2345
|
Z(M(b, {
|
|
2346
2346
|
size: "md",
|
|
2347
2347
|
name: s.icon
|
|
2348
2348
|
}, null, 8, ["name"]), [
|
|
2349
|
-
[Y, !
|
|
2349
|
+
[Y, !o(r)]
|
|
2350
2350
|
])
|
|
2351
2351
|
], 64)) : h("", !0),
|
|
2352
|
-
|
|
2352
|
+
y("span", null, [
|
|
2353
2353
|
L(C(s?.text) + " ", 1),
|
|
2354
|
-
|
|
2354
|
+
_(m.$slots, "default")
|
|
2355
2355
|
])
|
|
2356
2356
|
]),
|
|
2357
2357
|
_: 3
|
|
2358
2358
|
}, 16, ["target", "class", "href"]));
|
|
2359
2359
|
}
|
|
2360
2360
|
});
|
|
2361
|
-
const
|
|
2361
|
+
const io = {
|
|
2362
2362
|
key: 0,
|
|
2363
2363
|
class: "ma-side-menu-item-icon"
|
|
2364
|
-
},
|
|
2364
|
+
}, ro = {
|
|
2365
2365
|
name: "MaSideMenuItem"
|
|
2366
|
-
},
|
|
2367
|
-
...
|
|
2366
|
+
}, la = /* @__PURE__ */ k({
|
|
2367
|
+
...ro,
|
|
2368
2368
|
props: {
|
|
2369
2369
|
href: null,
|
|
2370
2370
|
target: null,
|
|
@@ -2378,7 +2378,7 @@ const lt = {
|
|
|
2378
2378
|
activeIcon: null
|
|
2379
2379
|
},
|
|
2380
2380
|
setup(a) {
|
|
2381
|
-
const s = a, e = c(() => s?.href ? "a" : "button"),
|
|
2381
|
+
const s = a, e = c(() => s?.href ? "a" : "button"), t = c(() => [
|
|
2382
2382
|
`ma-side-menu-item color-${s.activeColor}`,
|
|
2383
2383
|
{
|
|
2384
2384
|
active: s.active
|
|
@@ -2389,18 +2389,18 @@ const lt = {
|
|
|
2389
2389
|
]), l = c(
|
|
2390
2390
|
() => s?.activeIcon ? s.activeIcon : s.icon ? s.icon.replace("bulk", "bold") : null
|
|
2391
2391
|
);
|
|
2392
|
-
return (i, r) => (n(),
|
|
2392
|
+
return (i, r) => (n(), g(ee(o(e)), x({
|
|
2393
2393
|
role: "button",
|
|
2394
2394
|
target: s?.target,
|
|
2395
|
-
class: t
|
|
2395
|
+
class: o(t),
|
|
2396
2396
|
href: s?.href
|
|
2397
2397
|
}, i.$attrs), {
|
|
2398
2398
|
default: f(() => [
|
|
2399
|
-
|
|
2400
|
-
s?.icon ? (n(),
|
|
2399
|
+
y("span", null, [
|
|
2400
|
+
s?.icon ? (n(), u("div", io, [
|
|
2401
2401
|
Z(M(b, {
|
|
2402
2402
|
size: "xs",
|
|
2403
|
-
name:
|
|
2403
|
+
name: o(l)
|
|
2404
2404
|
}, null, 8, ["name"]), [
|
|
2405
2405
|
[Y, s.active]
|
|
2406
2406
|
]),
|
|
@@ -2412,9 +2412,9 @@ const lt = {
|
|
|
2412
2412
|
])
|
|
2413
2413
|
])) : h("", !0),
|
|
2414
2414
|
L(" " + C(s?.text) + " ", 1),
|
|
2415
|
-
|
|
2415
|
+
_(i.$slots, "default")
|
|
2416
2416
|
]),
|
|
2417
|
-
s.badgeText ? (n(),
|
|
2417
|
+
s.badgeText ? (n(), g(vt, {
|
|
2418
2418
|
key: 0,
|
|
2419
2419
|
size: "small",
|
|
2420
2420
|
variant: s.badgeColor
|
|
@@ -2429,7 +2429,7 @@ const lt = {
|
|
|
2429
2429
|
}, 16, ["target", "class", "href"]));
|
|
2430
2430
|
}
|
|
2431
2431
|
});
|
|
2432
|
-
const
|
|
2432
|
+
const ia = [
|
|
2433
2433
|
"dark",
|
|
2434
2434
|
"blue",
|
|
2435
2435
|
"jordy-blue",
|
|
@@ -2438,11 +2438,11 @@ const oa = [
|
|
|
2438
2438
|
"red",
|
|
2439
2439
|
"purple",
|
|
2440
2440
|
"purple-light"
|
|
2441
|
-
],
|
|
2441
|
+
], co = {
|
|
2442
2442
|
name: "MaSideMenuIconButton",
|
|
2443
2443
|
inheritAttrs: !1
|
|
2444
|
-
},
|
|
2445
|
-
...
|
|
2444
|
+
}, ra = /* @__PURE__ */ k({
|
|
2445
|
+
...co,
|
|
2446
2446
|
props: {
|
|
2447
2447
|
icon: null,
|
|
2448
2448
|
activeIcon: null,
|
|
@@ -2452,11 +2452,11 @@ const oa = [
|
|
|
2452
2452
|
active: { type: Boolean, default: !1 }
|
|
2453
2453
|
},
|
|
2454
2454
|
setup(a) {
|
|
2455
|
-
const s = a, e =
|
|
2455
|
+
const s = a, e = E(!1), t = c(() => s?.href ? "a" : "button"), l = c(() => e.value || s.active), i = c(() => s?.activeIcon || `${s.icon}-bold`), r = c(() => [
|
|
2456
2456
|
"ma-side-menu-icon-button",
|
|
2457
2457
|
{ active: s?.active }
|
|
2458
|
-
]),
|
|
2459
|
-
return (
|
|
2458
|
+
]), d = () => e.value = !0, p = () => e.value = !1;
|
|
2459
|
+
return (m, B) => s?.tooltipText ? (n(), g(pe, {
|
|
2460
2460
|
key: 0,
|
|
2461
2461
|
overlayClassName: "ma-icon-button-tooltip",
|
|
2462
2462
|
title: s?.tooltipText,
|
|
@@ -2464,72 +2464,72 @@ const oa = [
|
|
|
2464
2464
|
placement: "bottomLeft"
|
|
2465
2465
|
}, {
|
|
2466
2466
|
default: f(() => [
|
|
2467
|
-
(n(),
|
|
2468
|
-
onMousedown:
|
|
2469
|
-
onMouseup:
|
|
2470
|
-
class:
|
|
2467
|
+
(n(), g(ee(o(t)), x({
|
|
2468
|
+
onMousedown: d,
|
|
2469
|
+
onMouseup: p,
|
|
2470
|
+
class: o(r),
|
|
2471
2471
|
href: s?.href,
|
|
2472
2472
|
target: s?.target,
|
|
2473
2473
|
role: "button"
|
|
2474
|
-
},
|
|
2474
|
+
}, m.$attrs), {
|
|
2475
2475
|
default: f(() => [
|
|
2476
2476
|
Z(M(b, {
|
|
2477
2477
|
size: "xs",
|
|
2478
|
-
name:
|
|
2478
|
+
name: o(i)
|
|
2479
2479
|
}, null, 8, ["name"]), [
|
|
2480
|
-
[Y,
|
|
2480
|
+
[Y, o(l)]
|
|
2481
2481
|
]),
|
|
2482
2482
|
Z(M(b, {
|
|
2483
2483
|
size: "xs",
|
|
2484
2484
|
name: s.icon
|
|
2485
2485
|
}, null, 8, ["name"]), [
|
|
2486
|
-
[Y, !
|
|
2486
|
+
[Y, !o(l)]
|
|
2487
2487
|
]),
|
|
2488
|
-
|
|
2488
|
+
_(m.$slots, "default")
|
|
2489
2489
|
]),
|
|
2490
2490
|
_: 3
|
|
2491
2491
|
}, 16, ["class", "href", "target"]))
|
|
2492
2492
|
]),
|
|
2493
2493
|
_: 3
|
|
2494
|
-
}, 8, ["title"])) : (n(),
|
|
2494
|
+
}, 8, ["title"])) : (n(), g(ee(o(t)), x({
|
|
2495
2495
|
key: 1,
|
|
2496
|
-
onMousedown:
|
|
2497
|
-
onMouseup:
|
|
2498
|
-
class:
|
|
2496
|
+
onMousedown: d,
|
|
2497
|
+
onMouseup: p,
|
|
2498
|
+
class: o(r),
|
|
2499
2499
|
href: s?.href,
|
|
2500
2500
|
target: s?.target,
|
|
2501
2501
|
role: "button"
|
|
2502
|
-
},
|
|
2502
|
+
}, m.$attrs), {
|
|
2503
2503
|
default: f(() => [
|
|
2504
2504
|
Z(M(b, {
|
|
2505
2505
|
size: "xs",
|
|
2506
|
-
name:
|
|
2506
|
+
name: o(i)
|
|
2507
2507
|
}, null, 8, ["name"]), [
|
|
2508
|
-
[Y,
|
|
2508
|
+
[Y, o(l)]
|
|
2509
2509
|
]),
|
|
2510
2510
|
Z(M(b, {
|
|
2511
2511
|
size: "xs",
|
|
2512
2512
|
name: s.icon
|
|
2513
2513
|
}, null, 8, ["name"]), [
|
|
2514
|
-
[Y, !
|
|
2514
|
+
[Y, !o(l)]
|
|
2515
2515
|
]),
|
|
2516
|
-
|
|
2516
|
+
_(m.$slots, "default")
|
|
2517
2517
|
]),
|
|
2518
2518
|
_: 3
|
|
2519
2519
|
}, 16, ["class", "href", "target"]));
|
|
2520
2520
|
}
|
|
2521
2521
|
});
|
|
2522
|
-
const
|
|
2522
|
+
const po = {
|
|
2523
2523
|
name: "MaSideMenuRoundIconButton",
|
|
2524
2524
|
inheritAttrs: !1
|
|
2525
|
-
},
|
|
2526
|
-
...
|
|
2525
|
+
}, ca = /* @__PURE__ */ k({
|
|
2526
|
+
...po,
|
|
2527
2527
|
props: {
|
|
2528
2528
|
icon: null
|
|
2529
2529
|
},
|
|
2530
2530
|
setup(a) {
|
|
2531
2531
|
const s = a;
|
|
2532
|
-
return (e,
|
|
2532
|
+
return (e, t) => (n(), u("button", x({
|
|
2533
2533
|
class: "ma-side-menu-round-icon-button",
|
|
2534
2534
|
role: "button"
|
|
2535
2535
|
}, e.$attrs), [
|
|
@@ -2537,15 +2537,15 @@ const ct = {
|
|
|
2537
2537
|
size: "xs",
|
|
2538
2538
|
name: s.icon
|
|
2539
2539
|
}, null, 8, ["name"]),
|
|
2540
|
-
|
|
2540
|
+
_(e.$slots, "default")
|
|
2541
2541
|
], 16));
|
|
2542
2542
|
}
|
|
2543
2543
|
});
|
|
2544
|
-
const
|
|
2544
|
+
const uo = ["src", "alt"], mo = {
|
|
2545
2545
|
name: "MaSideMenuAppButton",
|
|
2546
2546
|
inheritAttrs: !1
|
|
2547
|
-
},
|
|
2548
|
-
...
|
|
2547
|
+
}, pa = /* @__PURE__ */ k({
|
|
2548
|
+
...mo,
|
|
2549
2549
|
props: {
|
|
2550
2550
|
appImage: null,
|
|
2551
2551
|
appName: null,
|
|
@@ -2556,32 +2556,32 @@ const pt = ["src", "alt"], ut = {
|
|
|
2556
2556
|
"ma-side-menu-app-icon-button",
|
|
2557
2557
|
{ active: s?.active }
|
|
2558
2558
|
]);
|
|
2559
|
-
return (
|
|
2559
|
+
return (t, l) => (n(), g(pe, {
|
|
2560
2560
|
overlayClassName: "ma-app-button-tooltip",
|
|
2561
2561
|
title: a.appName,
|
|
2562
2562
|
type: "primary",
|
|
2563
2563
|
placement: "topLeft"
|
|
2564
2564
|
}, {
|
|
2565
2565
|
default: f(() => [
|
|
2566
|
-
|
|
2567
|
-
class:
|
|
2566
|
+
y("button", x({
|
|
2567
|
+
class: o(e),
|
|
2568
2568
|
role: "button"
|
|
2569
|
-
},
|
|
2570
|
-
|
|
2569
|
+
}, t.$attrs), [
|
|
2570
|
+
y("img", {
|
|
2571
2571
|
src: a.appImage,
|
|
2572
2572
|
alt: a.appName
|
|
2573
|
-
}, null, 8,
|
|
2574
|
-
|
|
2573
|
+
}, null, 8, uo),
|
|
2574
|
+
_(t.$slots, "default")
|
|
2575
2575
|
], 16)
|
|
2576
2576
|
]),
|
|
2577
2577
|
_: 3
|
|
2578
2578
|
}, 8, ["title"]));
|
|
2579
2579
|
}
|
|
2580
2580
|
});
|
|
2581
|
-
const
|
|
2581
|
+
const go = {
|
|
2582
2582
|
name: "MaSideMenuAddNewAppButton"
|
|
2583
|
-
},
|
|
2584
|
-
...
|
|
2583
|
+
}, ua = /* @__PURE__ */ k({
|
|
2584
|
+
...go,
|
|
2585
2585
|
props: {
|
|
2586
2586
|
href: null,
|
|
2587
2587
|
target: null,
|
|
@@ -2590,7 +2590,7 @@ const dt = {
|
|
|
2590
2590
|
},
|
|
2591
2591
|
setup(a) {
|
|
2592
2592
|
const s = a;
|
|
2593
|
-
return (e,
|
|
2593
|
+
return (e, t) => (n(), g(Q, x(e.$attrs, {
|
|
2594
2594
|
target: s?.target,
|
|
2595
2595
|
href: s?.href,
|
|
2596
2596
|
disabled: s?.disabled,
|
|
@@ -2598,16 +2598,16 @@ const dt = {
|
|
|
2598
2598
|
}), {
|
|
2599
2599
|
default: f(() => [
|
|
2600
2600
|
L(C(s?.text) + " ", 1),
|
|
2601
|
-
|
|
2601
|
+
_(e.$slots, "default")
|
|
2602
2602
|
]),
|
|
2603
2603
|
_: 3
|
|
2604
2604
|
}, 16, ["target", "href", "disabled"]));
|
|
2605
2605
|
}
|
|
2606
2606
|
});
|
|
2607
|
-
const
|
|
2607
|
+
const vo = { class: "ma-progress-circle" }, fo = ["viewBox"], _o = ["d", "stroke-width"], yo = ["d", "stroke-dasharray", "stroke-dashoffset", "stroke-width"], ho = { key: 1 }, bo = {
|
|
2608
2608
|
key: 0,
|
|
2609
2609
|
class: "label"
|
|
2610
|
-
},
|
|
2610
|
+
}, ko = { class: "percent" }, $o = /* @__PURE__ */ k({
|
|
2611
2611
|
__name: "circle",
|
|
2612
2612
|
props: {
|
|
2613
2613
|
percent: null,
|
|
@@ -2650,44 +2650,44 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2650
2650
|
strokeDashArray: 179,
|
|
2651
2651
|
strokeWidth: 6
|
|
2652
2652
|
}
|
|
2653
|
-
},
|
|
2654
|
-
() =>
|
|
2653
|
+
}, t = c(() => e[s.size]), l = c(
|
|
2654
|
+
() => t.value.strokeDashArray * (100 - s.percent) / 100
|
|
2655
2655
|
);
|
|
2656
|
-
return (i, r) => (n(),
|
|
2657
|
-
(n(),
|
|
2656
|
+
return (i, r) => (n(), u("div", vo, [
|
|
2657
|
+
(n(), u("svg", {
|
|
2658
2658
|
class: "circle",
|
|
2659
|
-
viewBox: t
|
|
2659
|
+
viewBox: o(t).viewBox,
|
|
2660
2660
|
fill: "none",
|
|
2661
2661
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2662
2662
|
}, [
|
|
2663
|
-
|
|
2664
|
-
d: t
|
|
2663
|
+
y("path", {
|
|
2664
|
+
d: o(t).path,
|
|
2665
2665
|
"stroke-linecap": "round",
|
|
2666
2666
|
"stroke-linejoin": "round",
|
|
2667
|
-
"stroke-width": t
|
|
2667
|
+
"stroke-width": o(t).strokeWidth,
|
|
2668
2668
|
class: "wrapper"
|
|
2669
|
-
}, null, 8,
|
|
2670
|
-
s.percent > 0 ? (n(),
|
|
2669
|
+
}, null, 8, _o),
|
|
2670
|
+
s.percent > 0 ? (n(), u("path", {
|
|
2671
2671
|
key: 0,
|
|
2672
|
-
d: t
|
|
2672
|
+
d: o(t).path,
|
|
2673
2673
|
"stroke-linecap": "round",
|
|
2674
2674
|
"stroke-linejoin": "round",
|
|
2675
|
-
"stroke-dasharray": t
|
|
2676
|
-
"stroke-dashoffset":
|
|
2677
|
-
"stroke-width": t
|
|
2675
|
+
"stroke-dasharray": o(t).strokeDashArray,
|
|
2676
|
+
"stroke-dashoffset": o(l),
|
|
2677
|
+
"stroke-width": o(t).strokeWidth,
|
|
2678
2678
|
class: "percent"
|
|
2679
|
-
}, null, 8,
|
|
2680
|
-
], 8,
|
|
2681
|
-
s?.icon ? (n(),
|
|
2679
|
+
}, null, 8, yo)) : h("", !0)
|
|
2680
|
+
], 8, fo)),
|
|
2681
|
+
s?.icon ? (n(), g(b, {
|
|
2682
2682
|
key: 0,
|
|
2683
2683
|
name: s.icon
|
|
2684
|
-
}, null, 8, ["name"])) : (n(),
|
|
2685
|
-
s?.label ? (n(),
|
|
2686
|
-
|
|
2684
|
+
}, null, 8, ["name"])) : (n(), u("label", ho, [
|
|
2685
|
+
s?.label ? (n(), u("span", bo, C(s.label), 1)) : h("", !0),
|
|
2686
|
+
y("span", ko, C(s?.percent) + "% ", 1)
|
|
2687
2687
|
]))
|
|
2688
2688
|
]));
|
|
2689
2689
|
}
|
|
2690
|
-
}),
|
|
2690
|
+
}), Co = { class: "ma-progress-line" }, wo = { class: "line-wrapper" }, xo = { key: 1 }, Mo = { class: "line-wrapper" }, Bo = { key: 1 }, zo = /* @__PURE__ */ k({
|
|
2691
2691
|
__name: "line",
|
|
2692
2692
|
props: {
|
|
2693
2693
|
percent: null,
|
|
@@ -2699,7 +2699,7 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2699
2699
|
size: null
|
|
2700
2700
|
},
|
|
2701
2701
|
setup(a) {
|
|
2702
|
-
const s = a, e = c(() => ({ width: `${s.percent}%` })),
|
|
2702
|
+
const s = a, e = c(() => ({ width: `${s.percent}%` })), t = c(() => ({
|
|
2703
2703
|
overlayClassName: "ma-progress-tooltip",
|
|
2704
2704
|
icon: "warning-2-bold",
|
|
2705
2705
|
closable: !0,
|
|
@@ -2708,39 +2708,39 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2708
2708
|
trigger: "click",
|
|
2709
2709
|
...s.tooltipProps
|
|
2710
2710
|
}));
|
|
2711
|
-
return (l, i) => (n(),
|
|
2712
|
-
s?.showTooltip ? (n(),
|
|
2711
|
+
return (l, i) => (n(), u("div", Co, [
|
|
2712
|
+
s?.showTooltip ? (n(), g(pe, Te(x({ key: 0 }, o(t))), {
|
|
2713
2713
|
default: f(() => [
|
|
2714
|
-
|
|
2715
|
-
|
|
2714
|
+
y("div", wo, [
|
|
2715
|
+
y("div", {
|
|
2716
2716
|
class: "line",
|
|
2717
|
-
style:
|
|
2717
|
+
style: ne(o(e))
|
|
2718
2718
|
}, null, 4)
|
|
2719
2719
|
]),
|
|
2720
|
-
s?.icon ? (n(),
|
|
2720
|
+
s?.icon ? (n(), g(b, {
|
|
2721
2721
|
key: 0,
|
|
2722
2722
|
name: s.icon
|
|
2723
|
-
}, null, 8, ["name"])) : a.showPercent ? (n(),
|
|
2723
|
+
}, null, 8, ["name"])) : a.showPercent ? (n(), u("label", xo, C(s.percent) + "%", 1)) : h("", !0)
|
|
2724
2724
|
]),
|
|
2725
2725
|
_: 1
|
|
2726
|
-
}, 16)) : (n(),
|
|
2727
|
-
|
|
2728
|
-
|
|
2726
|
+
}, 16)) : (n(), u(q, { key: 1 }, [
|
|
2727
|
+
y("div", Mo, [
|
|
2728
|
+
y("div", {
|
|
2729
2729
|
class: "line",
|
|
2730
|
-
style:
|
|
2730
|
+
style: ne(o(e))
|
|
2731
2731
|
}, null, 4)
|
|
2732
2732
|
]),
|
|
2733
|
-
s?.icon ? (n(),
|
|
2733
|
+
s?.icon ? (n(), g(b, {
|
|
2734
2734
|
key: 0,
|
|
2735
2735
|
name: s.icon
|
|
2736
|
-
}, null, 8, ["name"])) : a.showPercent ? (n(),
|
|
2736
|
+
}, null, 8, ["name"])) : a.showPercent ? (n(), u("label", Bo, C(s.percent) + "%", 1)) : h("", !0)
|
|
2737
2737
|
], 64))
|
|
2738
2738
|
]));
|
|
2739
2739
|
}
|
|
2740
|
-
}),
|
|
2740
|
+
}), Io = { class: "ma-progress-circle ma-progress-half-circle" }, So = ["viewBox"], Ao = ["d", "stroke-width"], To = ["d", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Po = { key: 1 }, No = {
|
|
2741
2741
|
key: 0,
|
|
2742
2742
|
class: "label"
|
|
2743
|
-
},
|
|
2743
|
+
}, Do = { class: "percent" }, Lo = /* @__PURE__ */ k({
|
|
2744
2744
|
__name: "halfCircle",
|
|
2745
2745
|
props: {
|
|
2746
2746
|
percent: null,
|
|
@@ -2783,44 +2783,44 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2783
2783
|
strokeDashArray: 91,
|
|
2784
2784
|
strokeWidth: 6
|
|
2785
2785
|
}
|
|
2786
|
-
},
|
|
2787
|
-
() =>
|
|
2786
|
+
}, t = c(() => e[s.size]), l = c(
|
|
2787
|
+
() => t.value.strokeDashArray * (100 - s.percent) / 100
|
|
2788
2788
|
);
|
|
2789
|
-
return (i, r) => (n(),
|
|
2790
|
-
(n(),
|
|
2789
|
+
return (i, r) => (n(), u("div", Io, [
|
|
2790
|
+
(n(), u("svg", {
|
|
2791
2791
|
class: "circle",
|
|
2792
|
-
viewBox: t
|
|
2792
|
+
viewBox: o(t).viewBox,
|
|
2793
2793
|
fill: "none",
|
|
2794
2794
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2795
2795
|
}, [
|
|
2796
|
-
|
|
2797
|
-
d: t
|
|
2798
|
-
"stroke-width": t
|
|
2796
|
+
y("path", {
|
|
2797
|
+
d: o(t).path,
|
|
2798
|
+
"stroke-width": o(t).strokeWidth,
|
|
2799
2799
|
"stroke-linecap": "round",
|
|
2800
2800
|
"stroke-linejoin": "round",
|
|
2801
2801
|
class: "wrapper"
|
|
2802
|
-
}, null, 8,
|
|
2803
|
-
s.percent > 0 ? (n(),
|
|
2802
|
+
}, null, 8, Ao),
|
|
2803
|
+
s.percent > 0 ? (n(), u("path", {
|
|
2804
2804
|
key: 0,
|
|
2805
|
-
d: t
|
|
2806
|
-
"stroke-width": t
|
|
2805
|
+
d: o(t).path,
|
|
2806
|
+
"stroke-width": o(t).strokeWidth,
|
|
2807
2807
|
"stroke-linecap": "round",
|
|
2808
2808
|
"stroke-linejoin": "round",
|
|
2809
|
-
"stroke-dasharray": t
|
|
2810
|
-
"stroke-dashoffset":
|
|
2809
|
+
"stroke-dasharray": o(t).strokeDashArray,
|
|
2810
|
+
"stroke-dashoffset": o(l),
|
|
2811
2811
|
class: "percent"
|
|
2812
|
-
}, null, 8,
|
|
2813
|
-
], 8,
|
|
2814
|
-
s?.icon ? (n(),
|
|
2812
|
+
}, null, 8, To)) : h("", !0)
|
|
2813
|
+
], 8, So)),
|
|
2814
|
+
s?.icon ? (n(), g(b, {
|
|
2815
2815
|
key: 0,
|
|
2816
2816
|
name: s.icon
|
|
2817
|
-
}, null, 8, ["name"])) : (n(),
|
|
2818
|
-
s?.label ? (n(),
|
|
2819
|
-
|
|
2817
|
+
}, null, 8, ["name"])) : (n(), u("label", Po, [
|
|
2818
|
+
s?.label ? (n(), u("span", No, C(s.label), 1)) : h("", !0),
|
|
2819
|
+
y("span", Do, C(s?.percent) + "% ", 1)
|
|
2820
2820
|
]))
|
|
2821
2821
|
]));
|
|
2822
2822
|
}
|
|
2823
|
-
}),
|
|
2823
|
+
}), Eo = { class: "ma-progress-line-step" }, Fo = { class: "step-line-wrapper" }, Ro = { key: 1 }, Uo = /* @__PURE__ */ k({
|
|
2824
2824
|
__name: "stepLine",
|
|
2825
2825
|
props: {
|
|
2826
2826
|
percent: null,
|
|
@@ -2832,35 +2832,35 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2832
2832
|
size: null
|
|
2833
2833
|
},
|
|
2834
2834
|
setup(a) {
|
|
2835
|
-
const s = a, e = (
|
|
2836
|
-
const l = (
|
|
2835
|
+
const s = a, e = (t) => {
|
|
2836
|
+
const l = (t - 1) * 10, i = t * 10;
|
|
2837
2837
|
let r = 0;
|
|
2838
2838
|
return s.percent >= i ? r = 100 : s.percent > l && s.percent < i && (r = 100 * (s.percent - l) / (i - l)), {
|
|
2839
2839
|
width: `${r}%`
|
|
2840
2840
|
};
|
|
2841
2841
|
};
|
|
2842
|
-
return (
|
|
2843
|
-
|
|
2844
|
-
(n(),
|
|
2842
|
+
return (t, l) => (n(), u("div", Eo, [
|
|
2843
|
+
y("div", Fo, [
|
|
2844
|
+
(n(), u(q, null, U(10, (i) => y("div", {
|
|
2845
2845
|
class: "single-line",
|
|
2846
2846
|
key: i
|
|
2847
2847
|
}, [
|
|
2848
|
-
|
|
2848
|
+
y("div", {
|
|
2849
2849
|
class: "single-line-fill",
|
|
2850
|
-
style:
|
|
2850
|
+
style: ne(e(i))
|
|
2851
2851
|
}, null, 4)
|
|
2852
2852
|
])), 64))
|
|
2853
2853
|
]),
|
|
2854
|
-
s?.icon ? (n(),
|
|
2854
|
+
s?.icon ? (n(), g(b, {
|
|
2855
2855
|
key: 0,
|
|
2856
2856
|
name: s.icon
|
|
2857
|
-
}, null, 8, ["name"])) : s?.showPercent ? (n(),
|
|
2857
|
+
}, null, 8, ["name"])) : s?.showPercent ? (n(), u("label", Ro, C(s.percent) + "%", 1)) : h("", !0)
|
|
2858
2858
|
]));
|
|
2859
2859
|
}
|
|
2860
|
-
}),
|
|
2860
|
+
}), Vo = {
|
|
2861
2861
|
name: "MaProgress"
|
|
2862
|
-
},
|
|
2863
|
-
...
|
|
2862
|
+
}, da = /* @__PURE__ */ k({
|
|
2863
|
+
...Vo,
|
|
2864
2864
|
props: {
|
|
2865
2865
|
type: { default: "line" },
|
|
2866
2866
|
percent: null,
|
|
@@ -2889,12 +2889,12 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2889
2889
|
{
|
|
2890
2890
|
"percentage-left": s?.percentAlignment === "left"
|
|
2891
2891
|
}
|
|
2892
|
-
]),
|
|
2892
|
+
]), t = c(
|
|
2893
2893
|
() => ({
|
|
2894
|
-
circle:
|
|
2895
|
-
line:
|
|
2896
|
-
["half-circle"]:
|
|
2897
|
-
["line-step"]:
|
|
2894
|
+
circle: $o,
|
|
2895
|
+
line: zo,
|
|
2896
|
+
["half-circle"]: Lo,
|
|
2897
|
+
["line-step"]: Uo
|
|
2898
2898
|
})[s.type]
|
|
2899
2899
|
), l = c(() => [
|
|
2900
2900
|
`
|
|
@@ -2904,12 +2904,12 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2904
2904
|
]), i = c(
|
|
2905
2905
|
() => s.percent > 100 ? 100 : s.percent
|
|
2906
2906
|
);
|
|
2907
|
-
return (r,
|
|
2908
|
-
class:
|
|
2907
|
+
return (r, d) => (n(), u("div", {
|
|
2908
|
+
class: F(o(e))
|
|
2909
2909
|
}, [
|
|
2910
|
-
(n(),
|
|
2911
|
-
class:
|
|
2912
|
-
percent:
|
|
2910
|
+
(n(), g(ee(o(t)), {
|
|
2911
|
+
class: F(o(l)),
|
|
2912
|
+
percent: o(i),
|
|
2913
2913
|
icon: s?.icon,
|
|
2914
2914
|
label: s?.label,
|
|
2915
2915
|
size: s?.circleSize,
|
|
@@ -2920,33 +2920,33 @@ const mt = { class: "ma-progress-circle" }, gt = ["viewBox"], vt = ["d", "stroke
|
|
|
2920
2920
|
], 2));
|
|
2921
2921
|
}
|
|
2922
2922
|
});
|
|
2923
|
-
const
|
|
2923
|
+
const ma = [
|
|
2924
2924
|
"line",
|
|
2925
2925
|
"line-step",
|
|
2926
2926
|
"circle",
|
|
2927
2927
|
"half-circle"
|
|
2928
|
-
],
|
|
2928
|
+
], ga = [
|
|
2929
2929
|
"dark",
|
|
2930
2930
|
"blue",
|
|
2931
2931
|
"green",
|
|
2932
2932
|
"orange",
|
|
2933
2933
|
"red"
|
|
2934
|
-
],
|
|
2934
|
+
], va = [
|
|
2935
2935
|
"xs",
|
|
2936
2936
|
"sm",
|
|
2937
2937
|
"md",
|
|
2938
2938
|
"lg",
|
|
2939
2939
|
"xl"
|
|
2940
|
-
],
|
|
2940
|
+
], fa = [
|
|
2941
2941
|
"left",
|
|
2942
2942
|
"right"
|
|
2943
|
-
],
|
|
2943
|
+
], jo = {
|
|
2944
2944
|
key: 0,
|
|
2945
2945
|
class: "ak-autocomplete__label"
|
|
2946
|
-
},
|
|
2946
|
+
}, Oo = { class: "ak-autocomplete__options" }, qo = ["onMousedown", "onMouseover"], Ho = { key: 1 }, Wo = {
|
|
2947
2947
|
name: "MaAutocomplete"
|
|
2948
|
-
},
|
|
2949
|
-
...
|
|
2948
|
+
}, _a = /* @__PURE__ */ k({
|
|
2949
|
+
...Wo,
|
|
2950
2950
|
props: {
|
|
2951
2951
|
value: null,
|
|
2952
2952
|
options: { default: () => [] },
|
|
@@ -2960,34 +2960,34 @@ const ra = [
|
|
|
2960
2960
|
},
|
|
2961
2961
|
emits: ["update:value", "search"],
|
|
2962
2962
|
setup(a, { emit: s }) {
|
|
2963
|
-
const e = a,
|
|
2963
|
+
const e = a, t = te(), l = E(!1), i = E(null), r = E(null), d = E(-1), p = c({
|
|
2964
2964
|
get() {
|
|
2965
2965
|
return e?.value;
|
|
2966
2966
|
},
|
|
2967
2967
|
set(v) {
|
|
2968
|
-
s("update:value", v),
|
|
2968
|
+
s("update:value", v), d.value = -1;
|
|
2969
2969
|
}
|
|
2970
|
-
}),
|
|
2970
|
+
}), m = c(() => e?.avatarUrl ? J.userInfo : J.text), B = c(() => !!t.default), z = c(
|
|
2971
2971
|
() => e.options.filter(
|
|
2972
|
-
(v) => e.filterFn(
|
|
2972
|
+
(v) => e.filterFn(p.value || "", v)
|
|
2973
2973
|
)
|
|
2974
2974
|
), S = (v) => {
|
|
2975
2975
|
const P = v?.value || v?.label || v;
|
|
2976
|
-
|
|
2977
|
-
},
|
|
2976
|
+
p.value = P, B.value && r.value && (r.value.value = P), l.value = !1;
|
|
2977
|
+
}, T = async () => {
|
|
2978
2978
|
const v = `${r.value?.value}`;
|
|
2979
2979
|
s("search", v), B.value && s("update:value", v), l.value || (l.value = !0);
|
|
2980
2980
|
}, w = (v) => {
|
|
2981
2981
|
l.value = !0;
|
|
2982
|
-
},
|
|
2982
|
+
}, A = (v) => {
|
|
2983
2983
|
l.value && i.value && v.target instanceof Node && !i.value.contains(v.target) && (l.value = !1);
|
|
2984
2984
|
}, I = (v) => {
|
|
2985
|
-
v.key === "ArrowUp" &&
|
|
2986
|
-
},
|
|
2987
|
-
|
|
2988
|
-
},
|
|
2989
|
-
"active-option": v?.value ===
|
|
2990
|
-
"current-option":
|
|
2985
|
+
v.key === "ArrowUp" && d.value > -1 ? d.value-- : v.key === "ArrowDown" && d.value < z.value.length ? d.value++ : v.key === "Enter" && z.value[d.value] && S(z.value[d.value]);
|
|
2986
|
+
}, V = (v) => {
|
|
2987
|
+
d.value = v;
|
|
2988
|
+
}, R = (v, P) => ({
|
|
2989
|
+
"active-option": v?.value === p.value,
|
|
2990
|
+
"current-option": d.value === P
|
|
2991
2991
|
}), G = c(() => [
|
|
2992
2992
|
`ak-autocomplete ak-autocomplete--${e.size}`
|
|
2993
2993
|
]);
|
|
@@ -2999,59 +2999,59 @@ const ra = [
|
|
|
2999
2999
|
}, 0);
|
|
3000
3000
|
}
|
|
3001
3001
|
), ce(() => {
|
|
3002
|
-
i.value && (i.value.addEventListener("input",
|
|
3003
|
-
}),
|
|
3004
|
-
i.value && (i.value.removeEventListener("input",
|
|
3005
|
-
}), (v, P) => (n(),
|
|
3002
|
+
i.value && (i.value.addEventListener("input", T), i.value.addEventListener("keydown", I), document.addEventListener("click", A), r.value = i.value.querySelector('input[type="text"]'), r.value && r.value.addEventListener("focus", w));
|
|
3003
|
+
}), he(() => {
|
|
3004
|
+
i.value && (i.value.removeEventListener("input", T), document.removeEventListener("click", A), i.value.removeEventListener("keydown", I), r.value && r.value.removeEventListener("focus", w));
|
|
3005
|
+
}), (v, P) => (n(), u("div", x({
|
|
3006
3006
|
class: "ak-autocomplete-wrapper",
|
|
3007
3007
|
ref_key: "autoComplete",
|
|
3008
3008
|
ref: i
|
|
3009
3009
|
}, v.$attrs), [
|
|
3010
|
-
M(
|
|
3010
|
+
M(Dt, {
|
|
3011
3011
|
"overlay-class-name": "ak-autocomplete__dropdown",
|
|
3012
3012
|
trigger: [],
|
|
3013
3013
|
visible: l.value,
|
|
3014
3014
|
"onUpdate:visible": P[1] || (P[1] = (D) => l.value = D)
|
|
3015
3015
|
}, {
|
|
3016
3016
|
overlay: f(() => [
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
(n(!0),
|
|
3020
|
-
class: R(
|
|
3017
|
+
y("div", Oo, [
|
|
3018
|
+
y("ul", null, [
|
|
3019
|
+
(n(!0), u(q, null, U(o(z), (D, H) => (n(), u("li", {
|
|
3020
|
+
class: F(R(D, H)),
|
|
3021
3021
|
onMousedown: be((ae) => S(D), ["prevent"]),
|
|
3022
|
-
onMouseover: (ae) =>
|
|
3022
|
+
onMouseover: (ae) => V(H),
|
|
3023
3023
|
key: H
|
|
3024
3024
|
}, [
|
|
3025
|
-
v.$slots.option ?
|
|
3025
|
+
v.$slots.option ? _(v.$slots, "option", {
|
|
3026
3026
|
key: 0,
|
|
3027
3027
|
label: D?.label,
|
|
3028
3028
|
value: D.value
|
|
3029
|
-
}) : (n(),
|
|
3030
|
-
D?.value ===
|
|
3029
|
+
}) : (n(), u("span", Ho, C(D?.label || D?.value), 1)),
|
|
3030
|
+
D?.value === o(p) ? (n(), g(b, {
|
|
3031
3031
|
key: 2,
|
|
3032
3032
|
name: "tick",
|
|
3033
3033
|
size: "sm"
|
|
3034
3034
|
})) : h("", !0)
|
|
3035
|
-
], 42,
|
|
3035
|
+
], 42, qo))), 128))
|
|
3036
3036
|
]),
|
|
3037
|
-
|
|
3037
|
+
_(v.$slots, "overlay")
|
|
3038
3038
|
])
|
|
3039
3039
|
]),
|
|
3040
3040
|
default: f(() => [
|
|
3041
|
-
|
|
3042
|
-
class:
|
|
3041
|
+
y("div", {
|
|
3042
|
+
class: F(o(G))
|
|
3043
3043
|
}, [
|
|
3044
|
-
e.label ? (n(),
|
|
3045
|
-
v.$slots.default ?
|
|
3044
|
+
e.label ? (n(), u("label", jo, C(e.label), 1)) : h("", !0),
|
|
3045
|
+
v.$slots.default ? _(v.$slots, "default", { key: 1 }) : (n(), g(Ce, {
|
|
3046
3046
|
key: 2,
|
|
3047
|
-
class:
|
|
3047
|
+
class: F({ "active-input": o(p)?.length }),
|
|
3048
3048
|
size: e.size,
|
|
3049
3049
|
placeholder: e?.placeholder,
|
|
3050
3050
|
prefixIcon: e?.prefixIcon,
|
|
3051
3051
|
avatarUrl: e?.avatarUrl,
|
|
3052
|
-
type:
|
|
3053
|
-
value:
|
|
3054
|
-
"onUpdate:value": P[0] || (P[0] = (D) => K(
|
|
3052
|
+
type: o(m),
|
|
3053
|
+
value: o(p),
|
|
3054
|
+
"onUpdate:value": P[0] || (P[0] = (D) => K(p) ? p.value = D : null)
|
|
3055
3055
|
}, null, 8, ["class", "size", "placeholder", "prefixIcon", "avatarUrl", "type", "value"]))
|
|
3056
3056
|
], 2)
|
|
3057
3057
|
]),
|
|
@@ -3060,10 +3060,10 @@ const ra = [
|
|
|
3060
3060
|
], 16));
|
|
3061
3061
|
}
|
|
3062
3062
|
});
|
|
3063
|
-
const
|
|
3063
|
+
const Ko = {
|
|
3064
3064
|
name: "MaTabs"
|
|
3065
|
-
},
|
|
3066
|
-
...
|
|
3065
|
+
}, ya = /* @__PURE__ */ k({
|
|
3066
|
+
...Ko,
|
|
3067
3067
|
props: {
|
|
3068
3068
|
activeKey: null,
|
|
3069
3069
|
animated: { type: Boolean, default: !1 },
|
|
@@ -3073,7 +3073,7 @@ const Ht = {
|
|
|
3073
3073
|
},
|
|
3074
3074
|
emits: ["update:activeKey"],
|
|
3075
3075
|
setup(a, { emit: s }) {
|
|
3076
|
-
const e = a,
|
|
3076
|
+
const e = a, t = c({
|
|
3077
3077
|
get() {
|
|
3078
3078
|
return e?.activeKey;
|
|
3079
3079
|
},
|
|
@@ -3081,16 +3081,16 @@ const Ht = {
|
|
|
3081
3081
|
s("update:activeKey", l);
|
|
3082
3082
|
}
|
|
3083
3083
|
});
|
|
3084
|
-
return (l, i) => (n(),
|
|
3084
|
+
return (l, i) => (n(), g(o(es), x({
|
|
3085
3085
|
class: "ak-tabs",
|
|
3086
3086
|
animated: e?.animated,
|
|
3087
3087
|
destroyInactiveTabPane: e?.destroyInactiveTabPane,
|
|
3088
3088
|
tabPosition: e?.tabPosition,
|
|
3089
3089
|
type: a.type,
|
|
3090
3090
|
"prefix-cls": "antd-tabs",
|
|
3091
|
-
activeKey: t
|
|
3092
|
-
"onUpdate:activeKey": i[0] || (i[0] = (r) => K(
|
|
3093
|
-
}, l.$attrs),
|
|
3091
|
+
activeKey: o(t),
|
|
3092
|
+
"onUpdate:activeKey": i[0] || (i[0] = (r) => K(t) ? t.value = r : null)
|
|
3093
|
+
}, l.$attrs), O({
|
|
3094
3094
|
moreIcon: f(() => [
|
|
3095
3095
|
M(b, {
|
|
3096
3096
|
name: "ellipsis-horizontal",
|
|
@@ -3099,42 +3099,42 @@ const Ht = {
|
|
|
3099
3099
|
]),
|
|
3100
3100
|
_: 2
|
|
3101
3101
|
}, [
|
|
3102
|
-
U(l.$slots, (r,
|
|
3103
|
-
name:
|
|
3102
|
+
U(l.$slots, (r, d) => ({
|
|
3103
|
+
name: d,
|
|
3104
3104
|
fn: f(() => [
|
|
3105
|
-
|
|
3105
|
+
_(l.$slots, d)
|
|
3106
3106
|
])
|
|
3107
3107
|
}))
|
|
3108
3108
|
]), 1040, ["animated", "destroyInactiveTabPane", "tabPosition", "type", "activeKey"]));
|
|
3109
3109
|
}
|
|
3110
3110
|
});
|
|
3111
|
-
const
|
|
3111
|
+
const ha = [
|
|
3112
3112
|
"left",
|
|
3113
3113
|
"right",
|
|
3114
3114
|
"top",
|
|
3115
3115
|
"bottom"
|
|
3116
|
-
],
|
|
3116
|
+
], ba = [
|
|
3117
3117
|
"card",
|
|
3118
3118
|
"line"
|
|
3119
|
-
],
|
|
3119
|
+
], ka = [
|
|
3120
3120
|
"left",
|
|
3121
3121
|
"right"
|
|
3122
|
-
],
|
|
3122
|
+
], $a = /* @__PURE__ */ k({
|
|
3123
3123
|
__name: "tabPane",
|
|
3124
3124
|
setup(a) {
|
|
3125
|
-
return (s, e) => (n(),
|
|
3126
|
-
U(s.$slots, (
|
|
3125
|
+
return (s, e) => (n(), g(o(ss), x({ tab: "test" }, s.$attrs), O({ _: 2 }, [
|
|
3126
|
+
U(s.$slots, (t, l) => ({
|
|
3127
3127
|
name: l,
|
|
3128
3128
|
fn: f(() => [
|
|
3129
|
-
|
|
3129
|
+
_(s.$slots, l)
|
|
3130
3130
|
])
|
|
3131
3131
|
}))
|
|
3132
3132
|
]), 1040));
|
|
3133
3133
|
}
|
|
3134
|
-
}),
|
|
3134
|
+
}), Go = { class: "country-option" }, Jo = { class: "country-option__name" }, Zo = { class: "country-option__code" }, Yo = {
|
|
3135
3135
|
name: "MaCountrySelect"
|
|
3136
|
-
},
|
|
3137
|
-
...
|
|
3136
|
+
}, Ca = /* @__PURE__ */ k({
|
|
3137
|
+
...Yo,
|
|
3138
3138
|
props: {
|
|
3139
3139
|
value: null,
|
|
3140
3140
|
filterFn: { type: Function, default: (a, s) => typeof name == "string" ? s.name.toLowerCase().search(a.toLowerCase()) > -1 : !0 },
|
|
@@ -3148,7 +3148,7 @@ const ga = [
|
|
|
3148
3148
|
},
|
|
3149
3149
|
emits: ["update:value", "change"],
|
|
3150
3150
|
setup(a, { emit: s }) {
|
|
3151
|
-
const e = a,
|
|
3151
|
+
const e = a, t = c({
|
|
3152
3152
|
get() {
|
|
3153
3153
|
return e.value;
|
|
3154
3154
|
},
|
|
@@ -3161,8 +3161,8 @@ const ga = [
|
|
|
3161
3161
|
"only-code": e.showSelectedCountryCode
|
|
3162
3162
|
}
|
|
3163
3163
|
]);
|
|
3164
|
-
return (r,
|
|
3165
|
-
class:
|
|
3164
|
+
return (r, d) => (n(), g($e, x({
|
|
3165
|
+
class: o(i),
|
|
3166
3166
|
size: e.size,
|
|
3167
3167
|
"show-search": e.showSearch,
|
|
3168
3168
|
"filter-option": e.filterFn,
|
|
@@ -3171,23 +3171,23 @@ const ga = [
|
|
|
3171
3171
|
placeholder: e?.placeholder,
|
|
3172
3172
|
"dropdown-class-name": "country-select-dropdown"
|
|
3173
3173
|
}, r.$attrs, {
|
|
3174
|
-
value: t
|
|
3175
|
-
"onUpdate:value":
|
|
3174
|
+
value: o(t),
|
|
3175
|
+
"onUpdate:value": d[0] || (d[0] = (p) => K(t) ? t.value = p : null)
|
|
3176
3176
|
}), {
|
|
3177
3177
|
default: f(() => [
|
|
3178
|
-
(n(!0),
|
|
3179
|
-
key:
|
|
3180
|
-
name:
|
|
3181
|
-
value:
|
|
3178
|
+
(n(!0), u(q, null, U(e.countries, (p) => (n(), g(Hs, {
|
|
3179
|
+
key: p.code,
|
|
3180
|
+
name: p.name,
|
|
3181
|
+
value: p.code
|
|
3182
3182
|
}, {
|
|
3183
3183
|
default: f(() => [
|
|
3184
|
-
|
|
3184
|
+
y("div", Go, [
|
|
3185
3185
|
M(b, {
|
|
3186
|
-
name: l(
|
|
3186
|
+
name: l(p.code),
|
|
3187
3187
|
size: "sm"
|
|
3188
3188
|
}, null, 8, ["name"]),
|
|
3189
|
-
|
|
3190
|
-
|
|
3189
|
+
y("span", Jo, C(p.name), 1),
|
|
3190
|
+
y("span", Zo, C(p.code), 1)
|
|
3191
3191
|
])
|
|
3192
3192
|
]),
|
|
3193
3193
|
_: 2
|
|
@@ -3197,19 +3197,114 @@ const ga = [
|
|
|
3197
3197
|
}, 16, ["class", "size", "show-search", "filter-option", "dropdown-match-select-width", "list-height", "placeholder", "value"]));
|
|
3198
3198
|
}
|
|
3199
3199
|
});
|
|
3200
|
-
|
|
3201
|
-
|
|
3200
|
+
const Xo = { key: 0 }, Qo = { key: 0 }, en = {
|
|
3201
|
+
name: "MaInputNumber"
|
|
3202
|
+
}, wa = /* @__PURE__ */ k({
|
|
3203
|
+
...en,
|
|
3204
|
+
props: {
|
|
3205
|
+
disabled: { type: Boolean, default: !1 },
|
|
3206
|
+
value: { default: 1e3 },
|
|
3207
|
+
size: { default: "small" },
|
|
3208
|
+
addonBefore: null,
|
|
3209
|
+
addonAfter: null,
|
|
3210
|
+
stepCount: { default: 1 },
|
|
3211
|
+
autofocus: { type: Boolean, default: !1 },
|
|
3212
|
+
controls: { type: Boolean, default: !0 },
|
|
3213
|
+
formatter: null,
|
|
3214
|
+
parser: null,
|
|
3215
|
+
decimalSeparator: null,
|
|
3216
|
+
defaultValue: null,
|
|
3217
|
+
keyboard: { type: Boolean, default: !0 },
|
|
3218
|
+
max: null,
|
|
3219
|
+
min: null,
|
|
3220
|
+
precision: null,
|
|
3221
|
+
status: null
|
|
3222
|
+
},
|
|
3223
|
+
emits: [
|
|
3224
|
+
"pressEnter",
|
|
3225
|
+
"step",
|
|
3226
|
+
"update:value"
|
|
3227
|
+
],
|
|
3228
|
+
setup(a, { emit: s }) {
|
|
3229
|
+
const e = a, t = te(), l = c({
|
|
3230
|
+
get() {
|
|
3231
|
+
return isNaN(e?.value) ? "" : e.value;
|
|
3232
|
+
},
|
|
3233
|
+
set(p) {
|
|
3234
|
+
p = typeof p == "number" ? p : parseFloat(p), s("update:value", p);
|
|
3235
|
+
}
|
|
3236
|
+
}), i = c(() => [
|
|
3237
|
+
`ak-input-number ak-input-number--${e.size}`,
|
|
3238
|
+
{
|
|
3239
|
+
"ak-input-number--disabled": e?.disabled
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
"ak-input-number--before": e?.addonBefore,
|
|
3243
|
+
"ak-input-number--after": e?.addonAfter
|
|
3244
|
+
},
|
|
3245
|
+
{
|
|
3246
|
+
"ak-input-number--before-list": t?.addonBefore,
|
|
3247
|
+
"ak-input-number--after-list": t?.addonAfter
|
|
3248
|
+
}
|
|
3249
|
+
]), r = (p, m) => {
|
|
3250
|
+
l.value = p, s("step", p, m);
|
|
3251
|
+
}, d = (p) => {
|
|
3252
|
+
s("pressEnter", p);
|
|
3253
|
+
};
|
|
3254
|
+
return (p, m) => (n(), u("div", null, [
|
|
3255
|
+
M(o(ts), {
|
|
3256
|
+
class: F(o(i)),
|
|
3257
|
+
value: o(l),
|
|
3258
|
+
"onUpdate:value": m[0] || (m[0] = (B) => K(l) ? l.value = B : null),
|
|
3259
|
+
disabled: a.disabled,
|
|
3260
|
+
step: e?.stepCount,
|
|
3261
|
+
autofocus: e?.autofocus,
|
|
3262
|
+
controls: e?.controls,
|
|
3263
|
+
decimalSeparator: e?.decimalSeparator,
|
|
3264
|
+
defaultValue: e?.defaultValue,
|
|
3265
|
+
formatter: e?.formatter,
|
|
3266
|
+
parser: e?.parser,
|
|
3267
|
+
keyboard: e?.keyboard,
|
|
3268
|
+
max: e?.max,
|
|
3269
|
+
min: e?.min,
|
|
3270
|
+
precision: e?.precision,
|
|
3271
|
+
staus: e.status,
|
|
3272
|
+
"string-mode": e?.stringMode,
|
|
3273
|
+
onKeydown: Pe(d, ["enter"]),
|
|
3274
|
+
onStep: r,
|
|
3275
|
+
"prefix-cls": "antd-input-number"
|
|
3276
|
+
}, O({ _: 2 }, [
|
|
3277
|
+
e.addonBefore || p.$slots?.addonBefore ? {
|
|
3278
|
+
name: "addonBefore",
|
|
3279
|
+
fn: f(() => [
|
|
3280
|
+
e.addonBefore ? (n(), u("span", Xo, C(e.addonBefore), 1)) : _(p.$slots, "addonBefore", { key: 1 })
|
|
3281
|
+
]),
|
|
3282
|
+
key: "0"
|
|
3283
|
+
} : void 0,
|
|
3284
|
+
e.addonAfter || p.$slots?.addonAfter ? {
|
|
3285
|
+
name: "addonAfter",
|
|
3286
|
+
fn: f(() => [
|
|
3287
|
+
e.addonAfter ? (n(), u("span", Qo, C(e.addonAfter), 1)) : _(p.$slots, "addonAfter", { key: 1 })
|
|
3288
|
+
]),
|
|
3289
|
+
key: "1"
|
|
3290
|
+
} : void 0
|
|
3291
|
+
]), 1032, ["class", "value", "disabled", "step", "autofocus", "controls", "decimalSeparator", "defaultValue", "formatter", "parser", "keyboard", "max", "min", "precision", "staus", "string-mode", "onKeydown"])
|
|
3292
|
+
]));
|
|
3293
|
+
}
|
|
3294
|
+
});
|
|
3295
|
+
class sn {
|
|
3296
|
+
config = Ne({
|
|
3202
3297
|
language: "en"
|
|
3203
3298
|
});
|
|
3204
3299
|
setConfig(s) {
|
|
3205
3300
|
for (const e in s)
|
|
3206
3301
|
if (Object.prototype.hasOwnProperty.call(s, e)) {
|
|
3207
|
-
const
|
|
3208
|
-
this.config[
|
|
3302
|
+
const t = e;
|
|
3303
|
+
this.config[t] = s[t];
|
|
3209
3304
|
}
|
|
3210
3305
|
}
|
|
3211
3306
|
getConfig() {
|
|
3212
|
-
return
|
|
3307
|
+
return De(this.config);
|
|
3213
3308
|
}
|
|
3214
3309
|
setLanguage(s) {
|
|
3215
3310
|
this.config.language = s;
|
|
@@ -3218,105 +3313,106 @@ class Zt {
|
|
|
3218
3313
|
return this.config.language;
|
|
3219
3314
|
}
|
|
3220
3315
|
}
|
|
3221
|
-
const
|
|
3222
|
-
function
|
|
3223
|
-
return
|
|
3316
|
+
const tn = new sn();
|
|
3317
|
+
function xa() {
|
|
3318
|
+
return Le(tn.getConfig());
|
|
3224
3319
|
}
|
|
3225
3320
|
export {
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3321
|
+
tn as ActionKitConfig,
|
|
3322
|
+
Hn as Animations,
|
|
3323
|
+
Dn as AppIconPlatforms,
|
|
3324
|
+
Nn as AppIconSizes,
|
|
3325
|
+
un as ButtonIconAlignMents,
|
|
3326
|
+
cn as ButtonShapes,
|
|
3327
|
+
ls as ButtonSizes,
|
|
3328
|
+
pn as ButtonTargets,
|
|
3329
|
+
ln as ButtonTypes,
|
|
3330
|
+
rn as ButtonVariants,
|
|
3331
|
+
jn as MaAlert,
|
|
3332
|
+
qn as MaAlertPropTypes,
|
|
3333
|
+
On as MaAlertPropVariants,
|
|
3334
|
+
yt as MaAnimation,
|
|
3335
|
+
Pn as MaAppIcon,
|
|
3336
|
+
Tn as MaAppTrackButton,
|
|
3337
|
+
_a as MaAutoComplete,
|
|
3338
|
+
vt as MaBadge,
|
|
3339
|
+
Vn as MaBadgePropIconAlignments,
|
|
3340
|
+
Un as MaBadgePropSizes,
|
|
3341
|
+
Rn as MaBadgePropTypes,
|
|
3342
|
+
Fn as MaBadgePropVariants,
|
|
3248
3343
|
Q as MaButton,
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3344
|
+
zn as MaCheckbox,
|
|
3345
|
+
In as MaCheckboxGroup,
|
|
3346
|
+
Ca as MaCountrySelect,
|
|
3347
|
+
Dt as MaDropdown,
|
|
3348
|
+
Xn as MaDropdownPlacements,
|
|
3349
|
+
Qn as MaDropdownTriggers,
|
|
3350
|
+
ta as MaEmpty,
|
|
3256
3351
|
_e as MaEmptyIcons,
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3352
|
+
ea as MaEmptySizes,
|
|
3353
|
+
sa as MaEmptyVariants,
|
|
3354
|
+
$n as MaForm,
|
|
3355
|
+
Cn as MaFormItem,
|
|
3356
|
+
wn as MaFormLayouts,
|
|
3262
3357
|
b as MaIcon,
|
|
3263
|
-
|
|
3264
|
-
|
|
3358
|
+
os as MaIconSizeClassNames,
|
|
3359
|
+
an as MaIconSizes,
|
|
3265
3360
|
Ce as MaInput,
|
|
3266
|
-
|
|
3267
|
-
|
|
3361
|
+
xn as MaInputCurrency,
|
|
3362
|
+
wa as MaInputNumber,
|
|
3363
|
+
Bs as MaInputSize,
|
|
3268
3364
|
J as MaInputType,
|
|
3269
3365
|
ve as MaModal,
|
|
3270
3366
|
ge as MaModalTypeIcon,
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3367
|
+
Wn as MaModalTypes,
|
|
3368
|
+
Sn as MaNumericInput,
|
|
3369
|
+
da as MaProgress,
|
|
3370
|
+
va as MaProgressCircleSizes,
|
|
3371
|
+
ga as MaProgressColors,
|
|
3372
|
+
fa as MaProgressPercentAlignments,
|
|
3373
|
+
ma as MaProgressTypes,
|
|
3374
|
+
Xs as MaRadio,
|
|
3375
|
+
Ln as MaRadioGroup,
|
|
3376
|
+
En as MaRadioTypes,
|
|
3377
|
+
Kn as MaRate,
|
|
3378
|
+
Jn as MaRateColors,
|
|
3379
|
+
Gn as MaRateSizes,
|
|
3284
3380
|
$e as MaSelect,
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3381
|
+
Hs as MaSelectOption,
|
|
3382
|
+
ua as MaSideMenuAddNewAppButton,
|
|
3383
|
+
pa as MaSideMenuAppButton,
|
|
3384
|
+
aa as MaSideMenuButton,
|
|
3385
|
+
ra as MaSideMenuIconButton,
|
|
3386
|
+
la as MaSideMenuItem,
|
|
3387
|
+
ia as MaSideMenuItemColors,
|
|
3388
|
+
ca as MaSideMenuRoundIconButton,
|
|
3293
3389
|
fe as MaSpin,
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3390
|
+
Yn as MaSpinColors,
|
|
3391
|
+
Zn as MaSpinTypes,
|
|
3392
|
+
_n as MaSwitch,
|
|
3393
|
+
ka as MaTabIconAlignMents,
|
|
3394
|
+
$a as MaTabPane,
|
|
3395
|
+
ha as MaTabPositions,
|
|
3396
|
+
ba as MaTabTypes,
|
|
3397
|
+
ya as MaTabs,
|
|
3398
|
+
vn as MaToggle,
|
|
3303
3399
|
pe as MaTooltip,
|
|
3304
|
-
|
|
3305
|
-
|
|
3400
|
+
dn as MaTrackButton,
|
|
3401
|
+
na as MaUpload,
|
|
3306
3402
|
W as MaUploadFileStatus,
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3403
|
+
Ut as MaUploadSizes,
|
|
3404
|
+
oa as MaUploadTypes,
|
|
3405
|
+
An as NumericInputSizes,
|
|
3406
|
+
Bn as SelectModes,
|
|
3407
|
+
Mn as SelectSizes,
|
|
3408
|
+
yn as SwitchTypes,
|
|
3409
|
+
fn as ToggleSizes,
|
|
3410
|
+
hn as TooltipPlacements,
|
|
3411
|
+
kn as TooltipTriggerTypes,
|
|
3412
|
+
bn as TooltipTypes,
|
|
3413
|
+
gn as TrackButtonSizes,
|
|
3414
|
+
mn as TrackButtonVariants,
|
|
3415
|
+
Is as currencyOptions,
|
|
3416
|
+
zs as currencySymbols,
|
|
3417
|
+
xa as useActionKitConfig
|
|
3322
3418
|
};
|