jmash-core 0.0.2 → 0.0.4
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/401-DoLCxv3l.mjs +103 -0
- package/dist/404-D1KiG-19.mjs +37 -0
- package/dist/BarChart-C1VgkGMN.mjs +203 -0
- package/dist/FileSaver.min-CbZYb_R2.mjs +77 -0
- package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
- package/dist/PieChart-D4hXD0SH.mjs +4 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-BzbbPmOh.mjs +90 -0
- package/dist/RadarChart-BIL7VT1H.mjs +4 -0
- package/dist/RadarChart.vue_vue_type_script_setup_true_lang-DcuctIiI.mjs +109 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/caret-bottom-Cm1qBSrY.mjs +59 -0
- package/dist/common-DuVBTwAv.mjs +36 -0
- package/dist/debounce-C0G0JMal.mjs +81 -0
- package/dist/dropdown2-BiRFTrOq.mjs +160 -0
- package/dist/edit-Bpt21Eir.mjs +833 -0
- package/dist/edit-CYWeo3RE.mjs +4 -0
- package/dist/edit-Cde8RIRN.mjs +4 -0
- package/dist/edit-D3-EslTs.mjs +4 -0
- package/dist/edit-DLx0iRHQ.mjs +469 -0
- package/dist/edit-NICINRFG.mjs +4 -0
- package/dist/edit-Vk23bJyE.mjs +4 -0
- package/dist/edit-sqzPOfBX.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BYoUZaYJ.mjs +157 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CFHGaytm.mjs +137 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-C_NNjRjK.mjs +622 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DBxZMZyS.mjs +222 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-_tHqd9tg.mjs +226 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-mM66jf9N.mjs +288 -0
- package/dist/el-card-BIRVdEQY.mjs +61 -0
- package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
- package/dist/el-checkbox-miY6QbQ8.mjs +548 -0
- package/dist/el-col-BOgRUJYE.mjs +135 -0
- package/dist/el-date-picker-D9yvdcj2.mjs +3349 -0
- package/dist/el-dialog-BSTwker5.mjs +378 -0
- package/dist/el-dropdown-item-YDb2-w9y.mjs +675 -0
- package/dist/el-form-item-BzKoZc6I.mjs +1489 -0
- package/dist/el-icon-l0sNRNKZ.mjs +1 -0
- package/dist/el-popover-DuRdut0P.mjs +159 -0
- package/dist/el-popper-AjIjI4wK.mjs +1656 -0
- package/dist/el-progress-BPv5gfee.mjs +898 -0
- package/dist/el-radio-NC-gfUsx.mjs +251 -0
- package/dist/el-scrollbar-p0O6uID0.mjs +607 -0
- package/dist/el-select-DAMII7lv.mjs +1040 -0
- package/dist/el-switch-C2AFgHGW.mjs +254 -0
- package/dist/el-table-IQFrP3zv.mjs +3168 -0
- package/dist/el-tag-l0sNRNKZ.mjs +1 -0
- package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
- package/dist/el-tree-select-CyDKS6nF.mjs +1316 -0
- package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWWbxFGH.mjs +117 -0
- package/dist/index-A3UILhe-.mjs +279 -0
- package/dist/index-Ax_8ZsXK.mjs +3163 -0
- package/dist/index-B46NFfoE.mjs +487 -0
- package/dist/index-BWx4KWAY.mjs +282 -0
- package/dist/index-BWyb1bu2.mjs +505 -0
- package/dist/index-BjqMDjBg.mjs +43994 -0
- package/dist/index-BnbEfNmI.mjs +134 -0
- package/dist/index-BpAihYhN.mjs +280 -0
- package/dist/index-Bs3AcT6R.mjs +107 -0
- package/dist/index-BvixCbHl.mjs +329 -0
- package/dist/index-C0UgbyoZ.mjs +452 -0
- package/dist/index-C0vV2_4K.mjs +63 -0
- package/dist/index-CBB_r4G5.mjs +965 -0
- package/dist/index-CCFtIl_h.mjs +516 -0
- package/dist/index-Cd3TOW5i.mjs +93 -0
- package/dist/index-CgNPGcHv.mjs +292 -0
- package/dist/index-CoOFKDgw.mjs +74 -0
- package/dist/index-CrNYgyNm.mjs +8800 -0
- package/dist/index-CurzO9C6.mjs +248 -0
- package/dist/index-DJ08yxAP.mjs +11 -0
- package/dist/index-DjkMA-Wh.mjs +40 -0
- package/dist/index-Url6hMpl.mjs +483 -0
- package/dist/index-eT2JltVa.mjs +55 -0
- package/dist/index-mkT_dTWL.mjs +13 -0
- package/dist/index-uykKwY2Z.mjs +12 -0
- package/dist/index-xtDIXRPY.mjs +633 -0
- package/dist/index.mjs +19 -273
- package/dist/index.vue_vue_type_script_setup_true_lang-BoxqootF.mjs +58 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-C6yk_vUt.mjs +286 -0
- package/dist/isUndefined-CUQZk6oB.mjs +6 -0
- package/dist/moment-CMYwqyVT.mjs +2579 -0
- package/dist/picture-kPnmHaoS.mjs +599 -0
- package/dist/profile-RVQuIwXg.mjs +319 -0
- package/dist/refs-S3PYDmaW.mjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types-CCG3Dvqs.mjs +205 -0
- package/dist/updatePwd-2UsTmJa5.mjs +4 -0
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-_Uadc2g3.mjs +151 -0
- package/dist/useColumnToggleTable-D_QF8Uy9.mjs +272 -0
- package/dist/vue-i18n-CE6tUbcO.mjs +3808 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -2
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { defineComponent as G, computed as d, ref as S, watch as O, onMounted as Y, openBlock as i, createElementBlock as v, normalizeClass as u, unref as a, withModifiers as Z, createElementVNode as E, withKeys as x, createBlock as c, withCtx as p, resolveDynamicComponent as y, createCommentVNode as r, toDisplayString as T, normalizeStyle as ee, createVNode as ae, renderSlot as U, nextTick as ie } from "vue";
|
|
2
|
+
import { k as te, bG as ne, X as g, m as oe, aI as P, aJ as V, N, o as C, aK as B, bH as A, aQ as le, aM as se, w as ce, aR as re, aN as ue, bq as de, aS as _, y as h, bI as ve, _ as fe, bJ as $, a3 as pe, K as he } from "./index-CrNYgyNm.mjs";
|
|
3
|
+
const me = te({
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: [Boolean, String, Number],
|
|
6
|
+
default: !1
|
|
7
|
+
},
|
|
8
|
+
disabled: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
loading: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
validator: ne
|
|
19
|
+
},
|
|
20
|
+
width: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
inlinePrompt: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
inactiveActionIcon: {
|
|
29
|
+
type: g
|
|
30
|
+
},
|
|
31
|
+
activeActionIcon: {
|
|
32
|
+
type: g
|
|
33
|
+
},
|
|
34
|
+
activeIcon: {
|
|
35
|
+
type: g
|
|
36
|
+
},
|
|
37
|
+
inactiveIcon: {
|
|
38
|
+
type: g
|
|
39
|
+
},
|
|
40
|
+
activeText: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
inactiveText: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
activeValue: {
|
|
49
|
+
type: [Boolean, String, Number],
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
inactiveValue: {
|
|
53
|
+
type: [Boolean, String, Number],
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
name: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
validateEvent: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !0
|
|
63
|
+
},
|
|
64
|
+
beforeChange: {
|
|
65
|
+
type: oe(Function)
|
|
66
|
+
},
|
|
67
|
+
id: String,
|
|
68
|
+
tabindex: {
|
|
69
|
+
type: [String, Number]
|
|
70
|
+
},
|
|
71
|
+
label: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: void 0
|
|
74
|
+
}
|
|
75
|
+
}), ye = {
|
|
76
|
+
[P]: (l) => V(l) || N(l) || C(l),
|
|
77
|
+
[B]: (l) => V(l) || N(l) || C(l),
|
|
78
|
+
[A]: (l) => V(l) || N(l) || C(l)
|
|
79
|
+
}, be = ["onClick"], Ie = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"], ke = ["aria-hidden"], ge = ["aria-hidden"], Ve = ["aria-hidden"], K = "ElSwitch", we = G({
|
|
80
|
+
name: K
|
|
81
|
+
}), Se = /* @__PURE__ */ G({
|
|
82
|
+
...we,
|
|
83
|
+
props: me,
|
|
84
|
+
emits: ye,
|
|
85
|
+
setup(l, { expose: H, emit: f }) {
|
|
86
|
+
const n = l, { formItem: b } = le(), J = se(), t = ce("switch"), { inputId: L } = re(n, {
|
|
87
|
+
formItemContext: b
|
|
88
|
+
}), I = ue(d(() => n.loading)), z = S(n.modelValue !== !1), m = S(), R = S(), q = d(() => [
|
|
89
|
+
t.b(),
|
|
90
|
+
t.m(J.value),
|
|
91
|
+
t.is("disabled", I.value),
|
|
92
|
+
t.is("checked", o.value)
|
|
93
|
+
]), Q = d(() => [
|
|
94
|
+
t.e("label"),
|
|
95
|
+
t.em("label", "left"),
|
|
96
|
+
t.is("active", !o.value)
|
|
97
|
+
]), W = d(() => [
|
|
98
|
+
t.e("label"),
|
|
99
|
+
t.em("label", "right"),
|
|
100
|
+
t.is("active", o.value)
|
|
101
|
+
]), X = d(() => ({
|
|
102
|
+
width: de(n.width)
|
|
103
|
+
}));
|
|
104
|
+
O(() => n.modelValue, () => {
|
|
105
|
+
z.value = !0;
|
|
106
|
+
});
|
|
107
|
+
const D = d(() => z.value ? n.modelValue : !1), o = d(() => D.value === n.activeValue);
|
|
108
|
+
[n.activeValue, n.inactiveValue].includes(D.value) || (f(P, n.inactiveValue), f(B, n.inactiveValue), f(A, n.inactiveValue)), O(o, (e) => {
|
|
109
|
+
var s;
|
|
110
|
+
m.value.checked = e, n.validateEvent && ((s = b == null ? void 0 : b.validate) == null || s.call(b, "change").catch((F) => _(F)));
|
|
111
|
+
});
|
|
112
|
+
const k = () => {
|
|
113
|
+
const e = o.value ? n.inactiveValue : n.activeValue;
|
|
114
|
+
f(P, e), f(B, e), f(A, e), ie(() => {
|
|
115
|
+
m.value.checked = o.value;
|
|
116
|
+
});
|
|
117
|
+
}, M = () => {
|
|
118
|
+
if (I.value)
|
|
119
|
+
return;
|
|
120
|
+
const { beforeChange: e } = n;
|
|
121
|
+
if (!e) {
|
|
122
|
+
k();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const s = e();
|
|
126
|
+
[
|
|
127
|
+
$(s),
|
|
128
|
+
V(s)
|
|
129
|
+
].includes(!0) || pe(K, "beforeChange must return type `Promise<boolean>` or `boolean`"), $(s) ? s.then((w) => {
|
|
130
|
+
w && k();
|
|
131
|
+
}).catch((w) => {
|
|
132
|
+
_(K, `some error occurred: ${w}`);
|
|
133
|
+
}) : s && k();
|
|
134
|
+
}, j = () => {
|
|
135
|
+
var e, s;
|
|
136
|
+
(s = (e = m.value) == null ? void 0 : e.focus) == null || s.call(e);
|
|
137
|
+
};
|
|
138
|
+
return Y(() => {
|
|
139
|
+
m.value.checked = o.value;
|
|
140
|
+
}), H({
|
|
141
|
+
focus: j,
|
|
142
|
+
checked: o
|
|
143
|
+
}), (e, s) => (i(), v("div", {
|
|
144
|
+
class: u(a(q)),
|
|
145
|
+
onClick: Z(M, ["prevent"])
|
|
146
|
+
}, [
|
|
147
|
+
E("input", {
|
|
148
|
+
id: a(L),
|
|
149
|
+
ref_key: "input",
|
|
150
|
+
ref: m,
|
|
151
|
+
class: u(a(t).e("input")),
|
|
152
|
+
type: "checkbox",
|
|
153
|
+
role: "switch",
|
|
154
|
+
"aria-checked": a(o),
|
|
155
|
+
"aria-disabled": a(I),
|
|
156
|
+
"aria-label": e.label,
|
|
157
|
+
name: e.name,
|
|
158
|
+
"true-value": e.activeValue,
|
|
159
|
+
"false-value": e.inactiveValue,
|
|
160
|
+
disabled: a(I),
|
|
161
|
+
tabindex: e.tabindex,
|
|
162
|
+
onChange: k,
|
|
163
|
+
onKeydown: x(M, ["enter"])
|
|
164
|
+
}, null, 42, Ie),
|
|
165
|
+
!e.inlinePrompt && (e.inactiveIcon || e.inactiveText) ? (i(), v("span", {
|
|
166
|
+
key: 0,
|
|
167
|
+
class: u(a(Q))
|
|
168
|
+
}, [
|
|
169
|
+
e.inactiveIcon ? (i(), c(a(h), { key: 0 }, {
|
|
170
|
+
default: p(() => [
|
|
171
|
+
(i(), c(y(e.inactiveIcon)))
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})) : r("v-if", !0),
|
|
175
|
+
!e.inactiveIcon && e.inactiveText ? (i(), v("span", {
|
|
176
|
+
key: 1,
|
|
177
|
+
"aria-hidden": a(o)
|
|
178
|
+
}, T(e.inactiveText), 9, ke)) : r("v-if", !0)
|
|
179
|
+
], 2)) : r("v-if", !0),
|
|
180
|
+
E("span", {
|
|
181
|
+
ref_key: "core",
|
|
182
|
+
ref: R,
|
|
183
|
+
class: u(a(t).e("core")),
|
|
184
|
+
style: ee(a(X))
|
|
185
|
+
}, [
|
|
186
|
+
e.inlinePrompt ? (i(), v("div", {
|
|
187
|
+
key: 0,
|
|
188
|
+
class: u(a(t).e("inner"))
|
|
189
|
+
}, [
|
|
190
|
+
e.activeIcon || e.inactiveIcon ? (i(), c(a(h), {
|
|
191
|
+
key: 0,
|
|
192
|
+
class: u(a(t).is("icon"))
|
|
193
|
+
}, {
|
|
194
|
+
default: p(() => [
|
|
195
|
+
(i(), c(y(a(o) ? e.activeIcon : e.inactiveIcon)))
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["class"])) : e.activeText || e.inactiveText ? (i(), v("span", {
|
|
199
|
+
key: 1,
|
|
200
|
+
class: u(a(t).is("text")),
|
|
201
|
+
"aria-hidden": !a(o)
|
|
202
|
+
}, T(a(o) ? e.activeText : e.inactiveText), 11, ge)) : r("v-if", !0)
|
|
203
|
+
], 2)) : r("v-if", !0),
|
|
204
|
+
E("div", {
|
|
205
|
+
class: u(a(t).e("action"))
|
|
206
|
+
}, [
|
|
207
|
+
e.loading ? (i(), c(a(h), {
|
|
208
|
+
key: 0,
|
|
209
|
+
class: u(a(t).is("loading"))
|
|
210
|
+
}, {
|
|
211
|
+
default: p(() => [
|
|
212
|
+
ae(a(ve))
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 8, ["class"])) : a(o) ? U(e.$slots, "active-action", { key: 1 }, () => [
|
|
216
|
+
e.activeActionIcon ? (i(), c(a(h), { key: 0 }, {
|
|
217
|
+
default: p(() => [
|
|
218
|
+
(i(), c(y(e.activeActionIcon)))
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
})) : r("v-if", !0)
|
|
222
|
+
]) : a(o) ? r("v-if", !0) : U(e.$slots, "inactive-action", { key: 2 }, () => [
|
|
223
|
+
e.inactiveActionIcon ? (i(), c(a(h), { key: 0 }, {
|
|
224
|
+
default: p(() => [
|
|
225
|
+
(i(), c(y(e.inactiveActionIcon)))
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})) : r("v-if", !0)
|
|
229
|
+
])
|
|
230
|
+
], 2)
|
|
231
|
+
], 6),
|
|
232
|
+
!e.inlinePrompt && (e.activeIcon || e.activeText) ? (i(), v("span", {
|
|
233
|
+
key: 1,
|
|
234
|
+
class: u(a(W))
|
|
235
|
+
}, [
|
|
236
|
+
e.activeIcon ? (i(), c(a(h), { key: 0 }, {
|
|
237
|
+
default: p(() => [
|
|
238
|
+
(i(), c(y(e.activeIcon)))
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
})) : r("v-if", !0),
|
|
242
|
+
!e.activeIcon && e.activeText ? (i(), v("span", {
|
|
243
|
+
key: 1,
|
|
244
|
+
"aria-hidden": !a(o)
|
|
245
|
+
}, T(e.activeText), 9, Ve)) : r("v-if", !0)
|
|
246
|
+
], 2)) : r("v-if", !0)
|
|
247
|
+
], 10, be));
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
var Ee = /* @__PURE__ */ fe(Se, [["__file", "switch.vue"]]);
|
|
251
|
+
const Ce = he(Ee);
|
|
252
|
+
export {
|
|
253
|
+
Ce as E
|
|
254
|
+
};
|