@mobileaction/action-kit 1.0.17 → 1.0.18
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/components/track-button/index.vue.d.ts +1 -0
- package/dist/components/track-button/stories/default.stories.d.ts +2 -1
- package/dist/index.es.js +80 -76
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export interface MaTrackButtonProps {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
tracked?: boolean;
|
|
8
|
+
showClose?: boolean;
|
|
8
9
|
keyword: string;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaTrackButtonProps>, {
|
|
@@ -3,5 +3,6 @@ import MaTrackButton from '../index.vue';
|
|
|
3
3
|
declare const meta: Meta<typeof MaTrackButton>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof MaTrackButton>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Closable: Story;
|
|
7
8
|
export declare const ButtonGroups: StoryFn<typeof meta>;
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, computed as p, defineAsyncComponent as K, openBlock as n, createBlock as d, resolveDynamicComponent as E, unref as a, normalizeClass as F, mergeProps as w, createSlots as B, renderList as I, withCtx as g, renderSlot as $, createVNode as b, Transition as G, createTextVNode as U, toDisplayString as x, createElementBlock as f, isRef as P, createCommentVNode as _, createElementVNode as z, ref as V, normalizeProps as Y, guardReactiveProps as W, useSlots as Q, Fragment as L, watch as O } from "vue";
|
|
2
2
|
import { Button as H, Switch as X, Tooltip as Z, Form as ss, FormItem as es, Avatar as os, Select as ts, InputPassword as as, Input as ns, ConfigProvider as is, Textarea as ls, SelectOption as rs, Checkbox as cs, CheckboxGroup as ps, Radio as ms, RadioGroup as gs, Alert as us } from "ant-design-vue";
|
|
3
3
|
const q = (o, e) => {
|
|
4
4
|
const s = o[e];
|
|
@@ -13,7 +13,7 @@ const q = (o, e) => {
|
|
|
13
13
|
xl: "w-9 h-9"
|
|
14
14
|
}, fs = {
|
|
15
15
|
name: "MaIcon"
|
|
16
|
-
}, v = /* @__PURE__ */
|
|
16
|
+
}, v = /* @__PURE__ */ h({
|
|
17
17
|
...fs,
|
|
18
18
|
props: {
|
|
19
19
|
name: null,
|
|
@@ -35,12 +35,12 @@ const q = (o, e) => {
|
|
|
35
35
|
{ "animate-spin": e.spin }
|
|
36
36
|
]);
|
|
37
37
|
return (l, r) => (n(), d(E(a(i)), {
|
|
38
|
-
class:
|
|
38
|
+
class: F(a(t))
|
|
39
39
|
}, null, 8, ["class"]));
|
|
40
40
|
}
|
|
41
41
|
}), vs = {
|
|
42
42
|
name: "MaButton"
|
|
43
|
-
}, _s = /* @__PURE__ */
|
|
43
|
+
}, _s = /* @__PURE__ */ h({
|
|
44
44
|
...vs,
|
|
45
45
|
props: {
|
|
46
46
|
type: { default: "dark" },
|
|
@@ -80,7 +80,7 @@ const q = (o, e) => {
|
|
|
80
80
|
type: a(s),
|
|
81
81
|
role: "button"
|
|
82
82
|
}, r.$attrs, { "prefix-cls": "antd-btn" }), B({ _: 2 }, [
|
|
83
|
-
I(r.$slots, (
|
|
83
|
+
I(r.$slots, (y, N) => ({
|
|
84
84
|
name: N,
|
|
85
85
|
fn: g(() => [
|
|
86
86
|
$(r.$slots, N)
|
|
@@ -104,16 +104,17 @@ const q = (o, e) => {
|
|
|
104
104
|
]), 1040, ["class", "href", "target", "disabled", "type"]));
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
const
|
|
107
|
+
const hs = {
|
|
108
108
|
name: "MaTrackButton"
|
|
109
|
-
}, $e = /* @__PURE__ */
|
|
110
|
-
...
|
|
109
|
+
}, $e = /* @__PURE__ */ h({
|
|
110
|
+
...hs,
|
|
111
111
|
props: {
|
|
112
112
|
variant: { default: "default" },
|
|
113
113
|
size: { default: "md" },
|
|
114
114
|
disabled: { type: Boolean },
|
|
115
115
|
loading: { type: Boolean },
|
|
116
116
|
tracked: { type: Boolean },
|
|
117
|
+
showClose: { type: Boolean },
|
|
117
118
|
keyword: null
|
|
118
119
|
},
|
|
119
120
|
setup(o) {
|
|
@@ -124,17 +125,20 @@ const ys = {
|
|
|
124
125
|
ma-track-button--${e.size}
|
|
125
126
|
`,
|
|
126
127
|
{
|
|
127
|
-
"ma-track-button--tracked": e
|
|
128
|
+
"ma-track-button--tracked": e?.tracked
|
|
128
129
|
},
|
|
129
130
|
{
|
|
130
|
-
"ma-track-button--loading": e
|
|
131
|
+
"ma-track-button--loading": e?.loading
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"ma-track-button--show-close": e?.showClose
|
|
131
135
|
}
|
|
132
136
|
]), i = p(
|
|
133
|
-
() => e.loading ? "loader" : e
|
|
137
|
+
() => e.loading ? "loader" : e?.showClose ? "close-circle" : e?.tracked ? "tick-circle-bold" : "add"
|
|
134
138
|
), t = p(() => e.size === "lg" ? "sm" : "xs");
|
|
135
139
|
return (l, r) => (n(), d(a(H), w(l.$attrs, {
|
|
136
140
|
class: a(s),
|
|
137
|
-
disabled: e
|
|
141
|
+
disabled: e?.disabled || e?.loading,
|
|
138
142
|
role: "button",
|
|
139
143
|
"prefix-cls": "antd-btn"
|
|
140
144
|
}), B({
|
|
@@ -142,7 +146,7 @@ const ys = {
|
|
|
142
146
|
b(G, { name: "fade" }, {
|
|
143
147
|
default: g(() => [
|
|
144
148
|
b(v, {
|
|
145
|
-
spin: e
|
|
149
|
+
spin: e?.loading,
|
|
146
150
|
name: a(i),
|
|
147
151
|
size: a(t)
|
|
148
152
|
}, null, 8, ["spin", "name", "size"])
|
|
@@ -155,16 +159,16 @@ const ys = {
|
|
|
155
159
|
]),
|
|
156
160
|
_: 2
|
|
157
161
|
}, [
|
|
158
|
-
I(l.$slots, (m,
|
|
159
|
-
name:
|
|
162
|
+
I(l.$slots, (m, y) => ({
|
|
163
|
+
name: y,
|
|
160
164
|
fn: g(() => [
|
|
161
|
-
$(l.$slots,
|
|
165
|
+
$(l.$slots, y)
|
|
162
166
|
])
|
|
163
167
|
}))
|
|
164
168
|
]), 1040, ["class", "disabled"]));
|
|
165
169
|
}
|
|
166
170
|
});
|
|
167
|
-
const
|
|
171
|
+
const ys = {
|
|
168
172
|
key: 0,
|
|
169
173
|
class: "ma-toggle__titles"
|
|
170
174
|
}, bs = {
|
|
@@ -175,7 +179,7 @@ const hs = {
|
|
|
175
179
|
class: "ma-toggle__titles__sub-title"
|
|
176
180
|
}, $s = {
|
|
177
181
|
name: "MaToggle"
|
|
178
|
-
}, we = /* @__PURE__ */
|
|
182
|
+
}, we = /* @__PURE__ */ h({
|
|
179
183
|
...$s,
|
|
180
184
|
props: {
|
|
181
185
|
size: { default: "default" },
|
|
@@ -204,7 +208,7 @@ const hs = {
|
|
|
204
208
|
}
|
|
205
209
|
]);
|
|
206
210
|
return (l, r) => (n(), f("div", {
|
|
207
|
-
class:
|
|
211
|
+
class: F(a(t))
|
|
208
212
|
}, [
|
|
209
213
|
b(a(X), w({
|
|
210
214
|
class: "ma-toggle__switch",
|
|
@@ -218,7 +222,7 @@ const hs = {
|
|
|
218
222
|
unCheckedChildren: s.unCheckedChildren,
|
|
219
223
|
"prefix-cls": "antd-switch"
|
|
220
224
|
}), null, 16, ["checked", "disabled", "loading", "checkedChildren", "unCheckedChildren"]),
|
|
221
|
-
s.title || s.subTitle ? (n(), f("div",
|
|
225
|
+
s.title || s.subTitle ? (n(), f("div", ys, [
|
|
222
226
|
s.title ? (n(), f("span", bs, x(s.title), 1)) : _("", !0),
|
|
223
227
|
s.subTitle ? (n(), f("span", ks, x(s.subTitle), 1)) : _("", !0)
|
|
224
228
|
])) : _("", !0)
|
|
@@ -227,7 +231,7 @@ const hs = {
|
|
|
227
231
|
});
|
|
228
232
|
const ws = ["aria-checked", "disabled"], Cs = {
|
|
229
233
|
name: "MaSwitch"
|
|
230
|
-
}, Ce = /* @__PURE__ */
|
|
234
|
+
}, Ce = /* @__PURE__ */ h({
|
|
231
235
|
...Cs,
|
|
232
236
|
props: {
|
|
233
237
|
active: null,
|
|
@@ -267,16 +271,16 @@ const ws = ["aria-checked", "disabled"], Cs = {
|
|
|
267
271
|
disabled: s.disabled
|
|
268
272
|
}), [
|
|
269
273
|
z("span", {
|
|
270
|
-
class:
|
|
271
|
-
onClick: m[0] || (m[0] = (
|
|
274
|
+
class: F({ active: s.active === s.leftValue }),
|
|
275
|
+
onClick: m[0] || (m[0] = (y) => l(s.leftValue))
|
|
272
276
|
}, [
|
|
273
277
|
b(v, {
|
|
274
278
|
name: s.leftIcon
|
|
275
279
|
}, null, 8, ["name"])
|
|
276
280
|
], 2),
|
|
277
281
|
z("span", {
|
|
278
|
-
class:
|
|
279
|
-
onClick: m[1] || (m[1] = (
|
|
282
|
+
class: F({ active: s.active === s.rightValue }),
|
|
283
|
+
onClick: m[1] || (m[1] = (y) => l(s.rightValue))
|
|
280
284
|
}, [
|
|
281
285
|
b(v, {
|
|
282
286
|
name: s.rightIcon
|
|
@@ -290,7 +294,7 @@ const xs = { class: "ma-tooltip-overlay__content" }, Is = { class: "ma-tooltip-o
|
|
|
290
294
|
class: "ma-tooltip-overlay__content__description"
|
|
291
295
|
}, zs = {
|
|
292
296
|
name: "MaTooltip"
|
|
293
|
-
}, xe = /* @__PURE__ */
|
|
297
|
+
}, xe = /* @__PURE__ */ h({
|
|
294
298
|
...zs,
|
|
295
299
|
props: {
|
|
296
300
|
placement: { default: "top" },
|
|
@@ -316,7 +320,7 @@ const xs = { class: "ma-tooltip-overlay__content" }, Is = { class: "ma-tooltip-o
|
|
|
316
320
|
};
|
|
317
321
|
return (r, m) => (n(), d(a(Z), w(r.$attrs, {
|
|
318
322
|
visible: t.value,
|
|
319
|
-
"onUpdate:visible": m[0] || (m[0] = (
|
|
323
|
+
"onUpdate:visible": m[0] || (m[0] = (y) => t.value = y),
|
|
320
324
|
class: a(s),
|
|
321
325
|
placement: e.placement,
|
|
322
326
|
trigger: e.trigger,
|
|
@@ -343,7 +347,7 @@ const xs = { class: "ma-tooltip-overlay__content" }, Is = { class: "ma-tooltip-o
|
|
|
343
347
|
]),
|
|
344
348
|
_: 2
|
|
345
349
|
}, [
|
|
346
|
-
I(r.$slots, (
|
|
350
|
+
I(r.$slots, (y, N) => ({
|
|
347
351
|
name: N,
|
|
348
352
|
fn: g(() => [
|
|
349
353
|
$(r.$slots, N)
|
|
@@ -354,7 +358,7 @@ const xs = { class: "ma-tooltip-overlay__content" }, Is = { class: "ma-tooltip-o
|
|
|
354
358
|
});
|
|
355
359
|
const Ns = {
|
|
356
360
|
name: "MaForm"
|
|
357
|
-
}, Ie = /* @__PURE__ */
|
|
361
|
+
}, Ie = /* @__PURE__ */ h({
|
|
358
362
|
...Ns,
|
|
359
363
|
setup(o, { expose: e }) {
|
|
360
364
|
const s = V();
|
|
@@ -364,16 +368,16 @@ const Ns = {
|
|
|
364
368
|
resetFields: () => s.value.resetFields(),
|
|
365
369
|
scrollToField: () => s.value.scrollToField(),
|
|
366
370
|
validateFields: () => s.value.validateFields()
|
|
367
|
-
}), (
|
|
371
|
+
}), (y, N) => (n(), d(a(ss), w(y.$attrs, {
|
|
368
372
|
class: "ma-form",
|
|
369
373
|
"prefix-cls": "antd-form",
|
|
370
374
|
ref_key: "form",
|
|
371
375
|
ref: s
|
|
372
376
|
}), B({ _: 2 }, [
|
|
373
|
-
I(
|
|
377
|
+
I(y.$slots, (A, S) => ({
|
|
374
378
|
name: S,
|
|
375
379
|
fn: g(() => [
|
|
376
|
-
$(
|
|
380
|
+
$(y.$slots, S)
|
|
377
381
|
])
|
|
378
382
|
}))
|
|
379
383
|
]), 1040));
|
|
@@ -381,7 +385,7 @@ const Ns = {
|
|
|
381
385
|
});
|
|
382
386
|
const Ss = {
|
|
383
387
|
name: "MaFormItem"
|
|
384
|
-
}, Be = /* @__PURE__ */
|
|
388
|
+
}, Be = /* @__PURE__ */ h({
|
|
385
389
|
...Ss,
|
|
386
390
|
setup(o) {
|
|
387
391
|
return (e, s) => (n(), d(a(es), w(e.$attrs, {
|
|
@@ -408,16 +412,16 @@ const Ms = {
|
|
|
408
412
|
{ label: "EUR", value: "EUR" },
|
|
409
413
|
{ label: "GBP", value: "GBP" },
|
|
410
414
|
{ label: "JPY", value: "JPY" }
|
|
411
|
-
],
|
|
415
|
+
], As = {
|
|
412
416
|
name: "MaAvatar"
|
|
413
|
-
},
|
|
414
|
-
...
|
|
417
|
+
}, Fs = /* @__PURE__ */ h({
|
|
418
|
+
...As,
|
|
415
419
|
setup(o) {
|
|
416
420
|
return (e, s) => (n(), d(a(os), Y(W(e.$attrs)), null, 16));
|
|
417
421
|
}
|
|
418
422
|
}), Ds = { class: "dropdown-wrapper" }, Ps = { class: "mobile-header" }, js = /* @__PURE__ */ z("label", null, "Select", -1), Rs = {
|
|
419
423
|
name: "MaDropdownRender"
|
|
420
|
-
}, Ts = /* @__PURE__ */
|
|
424
|
+
}, Ts = /* @__PURE__ */ h({
|
|
421
425
|
...Rs,
|
|
422
426
|
props: {
|
|
423
427
|
menu: {
|
|
@@ -461,7 +465,7 @@ const Ms = {
|
|
|
461
465
|
]),
|
|
462
466
|
b(Ks, {
|
|
463
467
|
value: a(t),
|
|
464
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
468
|
+
"onUpdate:value": m[0] || (m[0] = (y) => P(t) ? t.value = y : null),
|
|
465
469
|
autofocus: "",
|
|
466
470
|
placeholder: "Search",
|
|
467
471
|
"prefix-icon": "search-normal"
|
|
@@ -474,7 +478,7 @@ const Ms = {
|
|
|
474
478
|
class: "prefix-icon"
|
|
475
479
|
}, Os = {
|
|
476
480
|
name: "MaSelect"
|
|
477
|
-
}, qs = /* @__PURE__ */
|
|
481
|
+
}, qs = /* @__PURE__ */ h({
|
|
478
482
|
...Os,
|
|
479
483
|
props: {
|
|
480
484
|
allowClear: { type: Boolean },
|
|
@@ -511,7 +515,7 @@ const Ms = {
|
|
|
511
515
|
set(u) {
|
|
512
516
|
e("update:value", u);
|
|
513
517
|
}
|
|
514
|
-
}),
|
|
518
|
+
}), y = p(() => [
|
|
515
519
|
"ma-select",
|
|
516
520
|
`ma-select--${s.size}`,
|
|
517
521
|
{
|
|
@@ -527,7 +531,7 @@ const Ms = {
|
|
|
527
531
|
s?.dropdownClassName,
|
|
528
532
|
"ma-select-dropdown",
|
|
529
533
|
!s?.mode && (i?.prefixIcon || s?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
530
|
-
].join(" ")),
|
|
534
|
+
].join(" ")), A = p(() => s?.loading ? "loader" : s?.suffixIcon), S = () => {
|
|
531
535
|
l.value = !0;
|
|
532
536
|
}, D = (u) => {
|
|
533
537
|
l.value = u, t.value = "";
|
|
@@ -538,7 +542,7 @@ const Ms = {
|
|
|
538
542
|
value: a(m),
|
|
539
543
|
"onUpdate:value": C[1] || (C[1] = (R) => P(m) ? m.value = R : null)
|
|
540
544
|
}, u.$attrs, {
|
|
541
|
-
class: a(
|
|
545
|
+
class: a(y),
|
|
542
546
|
allowClear: s?.allowClear,
|
|
543
547
|
autoClearSearchValue: s?.autoClearSearchValue,
|
|
544
548
|
autofocus: s?.autofocus,
|
|
@@ -563,7 +567,7 @@ const Ms = {
|
|
|
563
567
|
suffixIcon: g(() => [
|
|
564
568
|
b(v, {
|
|
565
569
|
spin: s?.loading,
|
|
566
|
-
name: a(
|
|
570
|
+
name: a(A) || "chevron-down"
|
|
567
571
|
}, null, 8, ["spin", "name"]),
|
|
568
572
|
u.$slots?.prefixIcon || s?.prefixIcon ? (n(), f("div", Us, [
|
|
569
573
|
$(u.$slots, "prefixIcon", {}, () => [
|
|
@@ -644,7 +648,7 @@ const Es = ["for"], Gs = {
|
|
|
644
648
|
}, Js = {
|
|
645
649
|
name: "MaInput",
|
|
646
650
|
inheritAttrs: !1
|
|
647
|
-
}, Ks = /* @__PURE__ */
|
|
651
|
+
}, Ks = /* @__PURE__ */ h({
|
|
648
652
|
...Js,
|
|
649
653
|
props: {
|
|
650
654
|
allowClear: { type: Boolean },
|
|
@@ -689,14 +693,14 @@ const Es = ["for"], Gs = {
|
|
|
689
693
|
set(c) {
|
|
690
694
|
e("update:value", c);
|
|
691
695
|
}
|
|
692
|
-
}), m = p(() => s.amountCurrency ? Ms[s.amountCurrency.toLowerCase()] : null),
|
|
696
|
+
}), m = p(() => s.amountCurrency ? Ms[s.amountCurrency.toLowerCase()] : null), y = p({
|
|
693
697
|
get() {
|
|
694
698
|
return s.amountCurrency;
|
|
695
699
|
},
|
|
696
700
|
set(c) {
|
|
697
701
|
e("update:amountCurrency", c);
|
|
698
702
|
}
|
|
699
|
-
}), N = p(() => s.type === M.password ? as : ns),
|
|
703
|
+
}), N = p(() => s.type === M.password ? as : ns), A = p(() => s.type === M.url ? "https" : s?.addonBefore), S = (c) => {
|
|
700
704
|
e("change", c);
|
|
701
705
|
}, D = (c) => {
|
|
702
706
|
e("currency-change", c);
|
|
@@ -704,7 +708,7 @@ const Es = ["for"], Gs = {
|
|
|
704
708
|
i.value.focus();
|
|
705
709
|
};
|
|
706
710
|
return (c, k) => (n(), f("div", {
|
|
707
|
-
class:
|
|
711
|
+
class: F(a(l))
|
|
708
712
|
}, [
|
|
709
713
|
$(c.$slots, "title"),
|
|
710
714
|
s.title ? (n(), f("label", {
|
|
@@ -724,7 +728,7 @@ const Es = ["for"], Gs = {
|
|
|
724
728
|
type: a(t),
|
|
725
729
|
disabled: s?.disabled,
|
|
726
730
|
placeholder: s?.placeholder,
|
|
727
|
-
addonBefore: a(
|
|
731
|
+
addonBefore: a(A),
|
|
728
732
|
addonAfter: o.addonAfter,
|
|
729
733
|
class: "ma-input__input",
|
|
730
734
|
onChange: S,
|
|
@@ -738,7 +742,7 @@ const Es = ["for"], Gs = {
|
|
|
738
742
|
name: s.prefixIcon
|
|
739
743
|
}, null, 8, ["name"])) : a(m) ? (n(), f(L, { key: 1 }, [
|
|
740
744
|
U(x(a(m)), 1)
|
|
741
|
-
], 64)) : s.type === a(M).userInfo ? (n(), d(
|
|
745
|
+
], 64)) : s.type === a(M).userInfo ? (n(), d(Fs, {
|
|
742
746
|
key: 2,
|
|
743
747
|
src: s.avatarUrl,
|
|
744
748
|
disabled: s.disabled
|
|
@@ -747,8 +751,8 @@ const Es = ["for"], Gs = {
|
|
|
747
751
|
suffix: g(() => [
|
|
748
752
|
s.type === "amount" ? (n(), d(qs, {
|
|
749
753
|
key: 0,
|
|
750
|
-
value: a(
|
|
751
|
-
"onUpdate:value": k[0] || (k[0] = (u) => P(
|
|
754
|
+
value: a(y),
|
|
755
|
+
"onUpdate:value": k[0] || (k[0] = (u) => P(y) ? y.value = u : null),
|
|
752
756
|
onChange: D,
|
|
753
757
|
dropdownClassName: "ma-input__input__ma-select__dropdown",
|
|
754
758
|
options: a(Vs),
|
|
@@ -802,7 +806,7 @@ const Es = ["for"], Gs = {
|
|
|
802
806
|
});
|
|
803
807
|
const Ys = {
|
|
804
808
|
name: "MaSelectOption"
|
|
805
|
-
}, ze = /* @__PURE__ */
|
|
809
|
+
}, ze = /* @__PURE__ */ h({
|
|
806
810
|
...Ys,
|
|
807
811
|
setup(o) {
|
|
808
812
|
return (e, s) => (n(), d(a(rs), w(e.$attrs, {
|
|
@@ -819,7 +823,7 @@ const Ys = {
|
|
|
819
823
|
}
|
|
820
824
|
}), Ws = {
|
|
821
825
|
name: "MaCheckbox"
|
|
822
|
-
}, Ne = /* @__PURE__ */
|
|
826
|
+
}, Ne = /* @__PURE__ */ h({
|
|
823
827
|
...Ws,
|
|
824
828
|
props: {
|
|
825
829
|
hint: null,
|
|
@@ -854,7 +858,7 @@ const Ys = {
|
|
|
854
858
|
});
|
|
855
859
|
const Qs = {
|
|
856
860
|
name: "MaCheckboxGroup"
|
|
857
|
-
}, Se = /* @__PURE__ */
|
|
861
|
+
}, Se = /* @__PURE__ */ h({
|
|
858
862
|
...Qs,
|
|
859
863
|
props: {
|
|
860
864
|
hint: null,
|
|
@@ -878,7 +882,7 @@ const Qs = {
|
|
|
878
882
|
}))
|
|
879
883
|
]), 1040));
|
|
880
884
|
}
|
|
881
|
-
}), Xs = ["value"], Zs = /* @__PURE__ */
|
|
885
|
+
}), Xs = ["value"], Zs = /* @__PURE__ */ h({
|
|
882
886
|
__name: "singleNumericInput",
|
|
883
887
|
props: {
|
|
884
888
|
value: { default: "" },
|
|
@@ -911,7 +915,7 @@ const Qs = {
|
|
|
911
915
|
}
|
|
912
916
|
}), se = {
|
|
913
917
|
name: "MaNumericInput"
|
|
914
|
-
}, Me = /* @__PURE__ */
|
|
918
|
+
}, Me = /* @__PURE__ */ h({
|
|
915
919
|
...se,
|
|
916
920
|
props: {
|
|
917
921
|
disabled: { type: Boolean },
|
|
@@ -932,7 +936,7 @@ const Qs = {
|
|
|
932
936
|
{
|
|
933
937
|
"ma-numeric-input--disabled": s?.disabled
|
|
934
938
|
}
|
|
935
|
-
]), r = p(() => s?.placeholderStatus ? "0" : null), m = (c) => /^Digit[0-9]$/.test(c),
|
|
939
|
+
]), r = p(() => s?.placeholderStatus ? "0" : null), m = (c) => /^Digit[0-9]$/.test(c), y = (c) => i.value = c, N = (c, k) => {
|
|
936
940
|
switch (c.code) {
|
|
937
941
|
case "Backspace":
|
|
938
942
|
case "Delete":
|
|
@@ -942,13 +946,13 @@ const Qs = {
|
|
|
942
946
|
c.preventDefault(), S();
|
|
943
947
|
break;
|
|
944
948
|
case "ArrowRight":
|
|
945
|
-
c.preventDefault(),
|
|
949
|
+
c.preventDefault(), A();
|
|
946
950
|
break;
|
|
947
951
|
default:
|
|
948
|
-
m(c.code) && (c.preventDefault(), D(c.key, k),
|
|
952
|
+
m(c.code) && (c.preventDefault(), D(c.key, k), A());
|
|
949
953
|
break;
|
|
950
954
|
}
|
|
951
|
-
},
|
|
955
|
+
}, A = () => {
|
|
952
956
|
i.value < s.length && i.value++;
|
|
953
957
|
}, S = () => {
|
|
954
958
|
s.length >= i.value && i.value > 0 && i.value--;
|
|
@@ -956,7 +960,7 @@ const Qs = {
|
|
|
956
960
|
t.value[k] = c;
|
|
957
961
|
}, j = (c, k) => {
|
|
958
962
|
c.preventDefault();
|
|
959
|
-
const u = c.clipboardData.getData("text/plain").replaceAll(" ", "").slice(0, s.length);
|
|
963
|
+
const u = c.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, s.length);
|
|
960
964
|
u.length === 1 && u.match(/^\d+$/) ? t.value[k] = u : u.match(/^\d+$/) && (t.value = u.split(""));
|
|
961
965
|
};
|
|
962
966
|
return O(
|
|
@@ -978,7 +982,7 @@ const Qs = {
|
|
|
978
982
|
placeholder: a(r),
|
|
979
983
|
value: t.value[u - 1],
|
|
980
984
|
disabled: s.disabled,
|
|
981
|
-
onFocus: (C) =>
|
|
985
|
+
onFocus: (C) => y(u - 1),
|
|
982
986
|
onKeydown: (C) => N(C, u - 1),
|
|
983
987
|
onPaste: (C) => j(C, u - 1),
|
|
984
988
|
class: "ma-numeric-input__input"
|
|
@@ -988,7 +992,7 @@ const Qs = {
|
|
|
988
992
|
});
|
|
989
993
|
const ee = {
|
|
990
994
|
name: "MaRadio"
|
|
991
|
-
}, oe = /* @__PURE__ */
|
|
995
|
+
}, oe = /* @__PURE__ */ h({
|
|
992
996
|
...ee,
|
|
993
997
|
props: {
|
|
994
998
|
type: { default: "button" },
|
|
@@ -1019,7 +1023,7 @@ const te = ["aria-checked", "disabled"], ae = ["src", "alt"], ne = { class: "ma-
|
|
|
1019
1023
|
class: "ma-app-track-button__text__category"
|
|
1020
1024
|
}, re = { class: "ma-app-track-button__check" }, ce = {
|
|
1021
1025
|
name: "MaAppTrackButton"
|
|
1022
|
-
}, Ve = /* @__PURE__ */
|
|
1026
|
+
}, Ve = /* @__PURE__ */ h({
|
|
1023
1027
|
...ce,
|
|
1024
1028
|
props: {
|
|
1025
1029
|
checked: { type: Boolean, default: !1 },
|
|
@@ -1100,7 +1104,7 @@ const pe = { class: "ma-app-icon__logo" }, me = ["src"], ge = {
|
|
|
1100
1104
|
class: "ma-app-description"
|
|
1101
1105
|
}, ve = {
|
|
1102
1106
|
name: "MaAppIcon"
|
|
1103
|
-
},
|
|
1107
|
+
}, Ae = /* @__PURE__ */ h({
|
|
1104
1108
|
...ve,
|
|
1105
1109
|
props: {
|
|
1106
1110
|
appIcon: null,
|
|
@@ -1122,7 +1126,7 @@ const pe = { class: "ma-app-icon__logo" }, me = ["src"], ge = {
|
|
|
1122
1126
|
e("close");
|
|
1123
1127
|
};
|
|
1124
1128
|
return (r, m) => (n(), f("div", {
|
|
1125
|
-
class:
|
|
1129
|
+
class: F(a(t))
|
|
1126
1130
|
}, [
|
|
1127
1131
|
z("div", pe, [
|
|
1128
1132
|
s.closable ? (n(), f("span", {
|
|
@@ -1155,7 +1159,7 @@ const pe = { class: "ma-app-icon__logo" }, me = ["src"], ge = {
|
|
|
1155
1159
|
});
|
|
1156
1160
|
const _e = {
|
|
1157
1161
|
name: "MaRadioGroup"
|
|
1158
|
-
},
|
|
1162
|
+
}, Fe = /* @__PURE__ */ h({
|
|
1159
1163
|
..._e,
|
|
1160
1164
|
setup(o) {
|
|
1161
1165
|
return (e, s) => (n(), d(a(gs), w(e.$attrs, { "prefix-cls": "antd-radio" }), B({ _: 2 }, [
|
|
@@ -1167,10 +1171,10 @@ const _e = {
|
|
|
1167
1171
|
}))
|
|
1168
1172
|
]), 1040));
|
|
1169
1173
|
}
|
|
1170
|
-
}),
|
|
1174
|
+
}), he = {
|
|
1171
1175
|
name: "MaBadge"
|
|
1172
|
-
}, De = /* @__PURE__ */
|
|
1173
|
-
...
|
|
1176
|
+
}, De = /* @__PURE__ */ h({
|
|
1177
|
+
...he,
|
|
1174
1178
|
props: {
|
|
1175
1179
|
type: { default: "primary" },
|
|
1176
1180
|
variant: { default: "dark" },
|
|
@@ -1188,7 +1192,7 @@ const _e = {
|
|
|
1188
1192
|
}
|
|
1189
1193
|
]);
|
|
1190
1194
|
return (i, t) => (n(), f("div", {
|
|
1191
|
-
class:
|
|
1195
|
+
class: F(a(s))
|
|
1192
1196
|
}, [
|
|
1193
1197
|
e?.icon ? (n(), d(v, {
|
|
1194
1198
|
key: 0,
|
|
@@ -1198,10 +1202,10 @@ const _e = {
|
|
|
1198
1202
|
], 2));
|
|
1199
1203
|
}
|
|
1200
1204
|
});
|
|
1201
|
-
const
|
|
1205
|
+
const ye = {
|
|
1202
1206
|
name: "MaAlert"
|
|
1203
|
-
}, Pe = /* @__PURE__ */
|
|
1204
|
-
...
|
|
1207
|
+
}, Pe = /* @__PURE__ */ h({
|
|
1208
|
+
...ye,
|
|
1205
1209
|
props: {
|
|
1206
1210
|
variant: { default: "dark" },
|
|
1207
1211
|
type: { default: "primary" },
|
|
@@ -1248,7 +1252,7 @@ const he = {
|
|
|
1248
1252
|
});
|
|
1249
1253
|
export {
|
|
1250
1254
|
Pe as MaAlert,
|
|
1251
|
-
|
|
1255
|
+
Ae as MaAppIcon,
|
|
1252
1256
|
Ve as MaAppTrackButton,
|
|
1253
1257
|
De as MaBadge,
|
|
1254
1258
|
_s as MaButton,
|
|
@@ -1260,7 +1264,7 @@ export {
|
|
|
1260
1264
|
Ks as MaInput,
|
|
1261
1265
|
Me as MaNumericInput,
|
|
1262
1266
|
oe as MaRadio,
|
|
1263
|
-
|
|
1267
|
+
Fe as MaRadioGroup,
|
|
1264
1268
|
qs as MaSelect,
|
|
1265
1269
|
ze as MaSelectOption,
|
|
1266
1270
|
Ce as MaSwitch,
|