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