st-comp 0.0.86 → 0.0.88
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/components.d.ts +1 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +10 -10
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +89 -89
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +7 -7
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +138 -138
- package/es/Table.cjs +1 -20
- package/es/Table.js +390 -3589
- package/es/TreeMap.cjs +1 -2
- package/es/TreeMap.js +1 -163
- package/es/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +1551 -1391
- package/es/VirtualTable.cjs +4 -4
- package/es/VirtualTable.js +100 -100
- package/es/{base-4865d432.cjs → base-2b869b95.cjs} +1 -1
- package/es/{base-6faccb01.js → base-5e2578a9.js} +65 -65
- package/es/{castArray-bdee0d50.js → castArray-9b96e1ad.js} +1 -1
- package/es/castArray-adec592d.cjs +1 -0
- package/es/{config-provider-465c8253.cjs → config-provider-25d2db4b.cjs} +1 -1
- package/es/{config-provider-be0e9c36.js → config-provider-ddbd0b1c.js} +11 -11
- package/es/{el-button-aad5268b.cjs → el-button-8fca9a5d.cjs} +1 -1
- package/es/{el-button-1b9c4fd6.js → el-button-daeb181f.js} +56 -56
- package/es/{el-empty-348c46f7.js → el-empty-b1d5d1e4.js} +4 -4
- package/es/{el-empty-608948d9.cjs → el-empty-d83469ab.cjs} +1 -1
- package/es/el-icon-0bfbe0c8.js +3795 -0
- package/es/el-icon-19bc1691.cjs +20 -0
- package/es/{el-overlay-4713107e.cjs → el-overlay-88994e77.cjs} +2 -2
- package/es/{el-overlay-400ac6ce.js → el-overlay-fcd84f34.js} +46 -46
- package/es/{el-scrollbar-83abe3de.js → el-scrollbar-0f49204a.js} +46 -46
- package/es/{el-scrollbar-bc381e35.cjs → el-scrollbar-43353984.cjs} +1 -1
- package/es/{el-select-895360ba.js → el-select-1a2f2c95.js} +285 -285
- package/es/el-select-c3d21536.cjs +9 -0
- package/es/{el-tag-30cecca3.js → el-tag-1e32cb79.js} +122 -122
- package/es/el-tag-7737bede.cjs +1 -0
- package/es/{focus-trap-a169f160.cjs → focus-trap-19c04a47.cjs} +1 -1
- package/es/{focus-trap-5ac78614.js → focus-trap-82e6ab3c.js} +18 -18
- package/es/{raf-92c5ed6d.js → raf-7414f3eb.js} +1 -1
- package/es/{raf-5e5c53db.cjs → raf-a8539dc6.cjs} +1 -1
- package/es/{scroll-bb8039ba.cjs → scroll-5ec08336.cjs} +1 -1
- package/es/{scroll-264c50f3.js → scroll-8d15ce5a.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-item-6cef6b15.cjs → use-form-item-3d2a7ac7.cjs} +2 -2
- package/es/{use-form-item-0e9cae13.js → use-form-item-ea29755c.js} +138 -137
- package/es/use-global-config-3496cd4f.cjs +1 -0
- package/es/use-global-config-9eba4e5e.js +110 -0
- package/es/{vnode-b78096e3.js → vnode-2ad5aae4.js} +4 -4
- package/es/{vnode-abafec9e.cjs → vnode-b447c505.cjs} +1 -1
- package/es/{zh-cn-e4d38144.cjs → zh-cn-35bd18a8.cjs} +1 -1
- package/es/{zh-cn-8aaa7dd2.js → zh-cn-6a7c1846.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +153 -153
- package/lib/{index-137cb843.js → index-cf938a55.js} +18765 -18608
- package/lib/{python-02b0f7eb.js → python-40015c17.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +190 -59
- package/packages/VarietySearch/components/FactorScreen/index.vue +84 -27
- package/packages/VarietySearch/config.js +41 -12
- package/packages/VarietySearch/index.vue +67 -12
- package/src/pages/VarietySearch/index.vue +70 -11
- package/es/castArray-3341cbb4.cjs +0 -1
- package/es/el-icon-158ddc19.cjs +0 -1
- package/es/el-icon-d385d377.js +0 -593
- package/es/el-select-7116533b.cjs +0 -9
- package/es/el-tag-2c7e5d4a.cjs +0 -1
- package/es/use-global-config-17f3d7c7.cjs +0 -1
- package/es/use-global-config-8c9c775f.js +0 -110
package/es/el-icon-d385d377.js
DELETED
|
@@ -1,593 +0,0 @@
|
|
|
1
|
-
import { d as M, b as Se, a as we, e as Le } from "./use-global-config-8c9c775f.js";
|
|
2
|
-
import { a as Ee, v as ne, b as Be, w as Ie, e as $e, m as Oe, x as Pe, U as K, z as Fe, i as Ne } from "./el-tag-30cecca3.js";
|
|
3
|
-
import { l as te, S as R, p as Ve, U as Te, V as Ge, W as ze, i as H, k as W, x as N, E as V, j as le, A as E, e as De, u as z, _ as D, b as Ue, d as Ae, w as Me, f as ae } from "./base-6faccb01.js";
|
|
4
|
-
import { inject as B, computed as g, getCurrentInstance as oe, watch as se, nextTick as ie, ref as T, toRaw as q, defineComponent as w, useSlots as re, openBlock as y, createBlock as ue, resolveDynamicComponent as de, unref as r, normalizeClass as x, withCtx as ce, createElementVNode as J, withDirectives as I, createElementBlock as C, isRef as $, withModifiers as O, vModelCheckbox as P, renderSlot as U, Fragment as Ke, createTextVNode as ve, toDisplayString as be, createCommentVNode as G, normalizeStyle as Re, provide as He, toRefs as We } from "vue";
|
|
5
|
-
import { n as fe, s as qe, t as A, l as Q, v as me } from "./use-form-item-0e9cae13.js";
|
|
6
|
-
import { U as F } from "./focus-trap-5ac78614.js";
|
|
7
|
-
var X = Object.create, Je = function() {
|
|
8
|
-
function e() {
|
|
9
|
-
}
|
|
10
|
-
return function(n) {
|
|
11
|
-
if (!te(n))
|
|
12
|
-
return {};
|
|
13
|
-
if (X)
|
|
14
|
-
return X(n);
|
|
15
|
-
e.prototype = n;
|
|
16
|
-
var t = new e();
|
|
17
|
-
return e.prototype = void 0, t;
|
|
18
|
-
};
|
|
19
|
-
}();
|
|
20
|
-
const Qe = Je;
|
|
21
|
-
function Xe(e, n, t) {
|
|
22
|
-
switch (t.length) {
|
|
23
|
-
case 0:
|
|
24
|
-
return e.call(n);
|
|
25
|
-
case 1:
|
|
26
|
-
return e.call(n, t[0]);
|
|
27
|
-
case 2:
|
|
28
|
-
return e.call(n, t[0], t[1]);
|
|
29
|
-
case 3:
|
|
30
|
-
return e.call(n, t[0], t[1], t[2]);
|
|
31
|
-
}
|
|
32
|
-
return e.apply(n, t);
|
|
33
|
-
}
|
|
34
|
-
function Jn(e, n) {
|
|
35
|
-
var t = -1, l = e.length;
|
|
36
|
-
for (n || (n = Array(l)); ++t < l; )
|
|
37
|
-
n[t] = e[t];
|
|
38
|
-
return n;
|
|
39
|
-
}
|
|
40
|
-
var Ye = 800, Ze = 16, je = Date.now;
|
|
41
|
-
function _e(e) {
|
|
42
|
-
var n = 0, t = 0;
|
|
43
|
-
return function() {
|
|
44
|
-
var l = je(), s = Ze - (l - t);
|
|
45
|
-
if (t = l, s > 0) {
|
|
46
|
-
if (++n >= Ye)
|
|
47
|
-
return arguments[0];
|
|
48
|
-
} else
|
|
49
|
-
n = 0;
|
|
50
|
-
return e.apply(void 0, arguments);
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function en(e) {
|
|
54
|
-
return function() {
|
|
55
|
-
return e;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
var nn = M ? function(e, n) {
|
|
59
|
-
return M(e, "toString", {
|
|
60
|
-
configurable: !0,
|
|
61
|
-
enumerable: !1,
|
|
62
|
-
value: en(n),
|
|
63
|
-
writable: !0
|
|
64
|
-
});
|
|
65
|
-
} : Ee;
|
|
66
|
-
const tn = nn;
|
|
67
|
-
var ln = _e(tn);
|
|
68
|
-
const an = ln;
|
|
69
|
-
function Qn(e, n, t, l) {
|
|
70
|
-
var s = !t;
|
|
71
|
-
t || (t = {});
|
|
72
|
-
for (var d = -1, c = n.length; ++d < c; ) {
|
|
73
|
-
var a = n[d], v = l ? l(t[a], e[a], a, t, e) : void 0;
|
|
74
|
-
v === void 0 && (v = e[a]), s ? Se(t, a, v) : we(t, a, v);
|
|
75
|
-
}
|
|
76
|
-
return t;
|
|
77
|
-
}
|
|
78
|
-
var Y = Math.max;
|
|
79
|
-
function on(e, n, t) {
|
|
80
|
-
return n = Y(n === void 0 ? e.length - 1 : n, 0), function() {
|
|
81
|
-
for (var l = arguments, s = -1, d = Y(l.length - n, 0), c = Array(d); ++s < d; )
|
|
82
|
-
c[s] = l[n + s];
|
|
83
|
-
s = -1;
|
|
84
|
-
for (var a = Array(n + 1); ++s < n; )
|
|
85
|
-
a[s] = l[s];
|
|
86
|
-
return a[n] = t(c), Xe(e, this, a);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function sn(e) {
|
|
90
|
-
var n = [];
|
|
91
|
-
if (e != null)
|
|
92
|
-
for (var t in Object(e))
|
|
93
|
-
n.push(t);
|
|
94
|
-
return n;
|
|
95
|
-
}
|
|
96
|
-
var rn = Object.prototype, un = rn.hasOwnProperty;
|
|
97
|
-
function dn(e) {
|
|
98
|
-
if (!te(e))
|
|
99
|
-
return sn(e);
|
|
100
|
-
var n = ne(e), t = [];
|
|
101
|
-
for (var l in e)
|
|
102
|
-
l == "constructor" && (n || !un.call(e, l)) || t.push(l);
|
|
103
|
-
return t;
|
|
104
|
-
}
|
|
105
|
-
function Xn(e) {
|
|
106
|
-
return Be(e) ? Ie(e, !0) : dn(e);
|
|
107
|
-
}
|
|
108
|
-
var Z = R ? R.isConcatSpreadable : void 0;
|
|
109
|
-
function cn(e) {
|
|
110
|
-
return Ve(e) || $e(e) || !!(Z && e && e[Z]);
|
|
111
|
-
}
|
|
112
|
-
function pe(e, n, t, l, s) {
|
|
113
|
-
var d = -1, c = e.length;
|
|
114
|
-
for (t || (t = cn), s || (s = []); ++d < c; ) {
|
|
115
|
-
var a = e[d];
|
|
116
|
-
n > 0 && t(a) ? n > 1 ? pe(a, n - 1, t, l, s) : Oe(s, a) : l || (s[s.length] = a);
|
|
117
|
-
}
|
|
118
|
-
return s;
|
|
119
|
-
}
|
|
120
|
-
function vn(e) {
|
|
121
|
-
var n = e == null ? 0 : e.length;
|
|
122
|
-
return n ? pe(e, 1) : [];
|
|
123
|
-
}
|
|
124
|
-
function bn(e) {
|
|
125
|
-
return an(on(e, void 0, vn), e + "");
|
|
126
|
-
}
|
|
127
|
-
var fn = Pe(Object.getPrototypeOf, Object);
|
|
128
|
-
const mn = fn;
|
|
129
|
-
var he = typeof exports == "object" && exports && !exports.nodeType && exports, j = he && typeof module == "object" && module && !module.nodeType && module, pn = j && j.exports === he, _ = pn ? Te.Buffer : void 0, ee = _ ? _.allocUnsafe : void 0;
|
|
130
|
-
function Yn(e, n) {
|
|
131
|
-
if (n)
|
|
132
|
-
return e.slice();
|
|
133
|
-
var t = e.length, l = ee ? ee(t) : new e.constructor(t);
|
|
134
|
-
return e.copy(l), l;
|
|
135
|
-
}
|
|
136
|
-
function hn(e) {
|
|
137
|
-
var n = new e.constructor(e.byteLength);
|
|
138
|
-
return new K(n).set(new K(e)), n;
|
|
139
|
-
}
|
|
140
|
-
function Zn(e, n) {
|
|
141
|
-
var t = n ? hn(e.buffer) : e.buffer;
|
|
142
|
-
return new e.constructor(t, e.byteOffset, e.length);
|
|
143
|
-
}
|
|
144
|
-
function jn(e) {
|
|
145
|
-
return typeof e.constructor == "function" && !ne(e) ? Qe(mn(e)) : {};
|
|
146
|
-
}
|
|
147
|
-
function gn(e, n, t) {
|
|
148
|
-
for (var l = -1, s = n.length, d = {}; ++l < s; ) {
|
|
149
|
-
var c = n[l], a = Ge(e, c);
|
|
150
|
-
t(a, c) && Le(d, ze(c, e), a);
|
|
151
|
-
}
|
|
152
|
-
return d;
|
|
153
|
-
}
|
|
154
|
-
function kn(e, n) {
|
|
155
|
-
return gn(e, n, function(t, l) {
|
|
156
|
-
return Fe(e, l);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
var xn = bn(function(e, n) {
|
|
160
|
-
return e == null ? {} : kn(e, n);
|
|
161
|
-
});
|
|
162
|
-
const yn = xn, ge = {
|
|
163
|
-
modelValue: {
|
|
164
|
-
type: [Number, String, Boolean],
|
|
165
|
-
default: void 0
|
|
166
|
-
},
|
|
167
|
-
label: {
|
|
168
|
-
type: [String, Boolean, Number, Object]
|
|
169
|
-
},
|
|
170
|
-
indeterminate: Boolean,
|
|
171
|
-
disabled: Boolean,
|
|
172
|
-
checked: Boolean,
|
|
173
|
-
name: {
|
|
174
|
-
type: String,
|
|
175
|
-
default: void 0
|
|
176
|
-
},
|
|
177
|
-
trueLabel: {
|
|
178
|
-
type: [String, Number],
|
|
179
|
-
default: void 0
|
|
180
|
-
},
|
|
181
|
-
falseLabel: {
|
|
182
|
-
type: [String, Number],
|
|
183
|
-
default: void 0
|
|
184
|
-
},
|
|
185
|
-
id: {
|
|
186
|
-
type: String,
|
|
187
|
-
default: void 0
|
|
188
|
-
},
|
|
189
|
-
controls: {
|
|
190
|
-
type: String,
|
|
191
|
-
default: void 0
|
|
192
|
-
},
|
|
193
|
-
border: Boolean,
|
|
194
|
-
size: fe,
|
|
195
|
-
tabindex: [String, Number],
|
|
196
|
-
validateEvent: {
|
|
197
|
-
type: Boolean,
|
|
198
|
-
default: !0
|
|
199
|
-
}
|
|
200
|
-
}, ke = {
|
|
201
|
-
[F]: (e) => H(e) || W(e) || N(e),
|
|
202
|
-
change: (e) => H(e) || W(e) || N(e)
|
|
203
|
-
}, L = Symbol("checkboxGroupContextKey"), Cn = ({
|
|
204
|
-
model: e,
|
|
205
|
-
isChecked: n
|
|
206
|
-
}) => {
|
|
207
|
-
const t = B(L, void 0), l = g(() => {
|
|
208
|
-
var d, c;
|
|
209
|
-
const a = (d = t == null ? void 0 : t.max) == null ? void 0 : d.value, v = (c = t == null ? void 0 : t.min) == null ? void 0 : c.value;
|
|
210
|
-
return !V(a) && e.value.length >= a && !n.value || !V(v) && e.value.length <= v && n.value;
|
|
211
|
-
});
|
|
212
|
-
return {
|
|
213
|
-
isDisabled: qe(g(() => (t == null ? void 0 : t.disabled.value) || l.value)),
|
|
214
|
-
isLimitDisabled: l
|
|
215
|
-
};
|
|
216
|
-
}, Sn = (e, {
|
|
217
|
-
model: n,
|
|
218
|
-
isLimitExceeded: t,
|
|
219
|
-
hasOwnLabel: l,
|
|
220
|
-
isDisabled: s,
|
|
221
|
-
isLabeledByFormItem: d
|
|
222
|
-
}) => {
|
|
223
|
-
const c = B(L, void 0), { formItem: a } = A(), { emit: v } = oe();
|
|
224
|
-
function o(i) {
|
|
225
|
-
var f, m;
|
|
226
|
-
return i === e.trueLabel || i === !0 ? (f = e.trueLabel) != null ? f : !0 : (m = e.falseLabel) != null ? m : !1;
|
|
227
|
-
}
|
|
228
|
-
function p(i, f) {
|
|
229
|
-
v("change", o(i), f);
|
|
230
|
-
}
|
|
231
|
-
function h(i) {
|
|
232
|
-
if (t.value)
|
|
233
|
-
return;
|
|
234
|
-
const f = i.target;
|
|
235
|
-
v("change", o(f.checked), i);
|
|
236
|
-
}
|
|
237
|
-
async function S(i) {
|
|
238
|
-
t.value || !l.value && !s.value && d.value && (i.composedPath().some((b) => b.tagName === "LABEL") || (n.value = o([!1, e.falseLabel].includes(n.value)), await ie(), p(n.value, i)));
|
|
239
|
-
}
|
|
240
|
-
const u = g(() => (c == null ? void 0 : c.validateEvent) || e.validateEvent);
|
|
241
|
-
return se(() => e.modelValue, () => {
|
|
242
|
-
u.value && (a == null || a.validate("change").catch((i) => le(i)));
|
|
243
|
-
}), {
|
|
244
|
-
handleChange: h,
|
|
245
|
-
onClickRoot: S
|
|
246
|
-
};
|
|
247
|
-
}, wn = (e) => {
|
|
248
|
-
const n = T(!1), { emit: t } = oe(), l = B(L, void 0), s = g(() => V(l) === !1), d = T(!1);
|
|
249
|
-
return {
|
|
250
|
-
model: g({
|
|
251
|
-
get() {
|
|
252
|
-
var a, v;
|
|
253
|
-
return s.value ? (a = l == null ? void 0 : l.modelValue) == null ? void 0 : a.value : (v = e.modelValue) != null ? v : n.value;
|
|
254
|
-
},
|
|
255
|
-
set(a) {
|
|
256
|
-
var v, o;
|
|
257
|
-
s.value && E(a) ? (d.value = ((v = l == null ? void 0 : l.max) == null ? void 0 : v.value) !== void 0 && a.length > (l == null ? void 0 : l.max.value), d.value === !1 && ((o = l == null ? void 0 : l.changeEvent) == null || o.call(l, a))) : (t(F, a), n.value = a);
|
|
258
|
-
}
|
|
259
|
-
}),
|
|
260
|
-
isGroup: s,
|
|
261
|
-
isLimitExceeded: d
|
|
262
|
-
};
|
|
263
|
-
}, Ln = (e, n, { model: t }) => {
|
|
264
|
-
const l = B(L, void 0), s = T(!1), d = g(() => {
|
|
265
|
-
const o = t.value;
|
|
266
|
-
return N(o) ? o : E(o) ? De(e.label) ? o.map(q).some((p) => Ne(p, e.label)) : o.map(q).includes(e.label) : o != null ? o === e.trueLabel : !!o;
|
|
267
|
-
}), c = Q(g(() => {
|
|
268
|
-
var o;
|
|
269
|
-
return (o = l == null ? void 0 : l.size) == null ? void 0 : o.value;
|
|
270
|
-
}), {
|
|
271
|
-
prop: !0
|
|
272
|
-
}), a = Q(g(() => {
|
|
273
|
-
var o;
|
|
274
|
-
return (o = l == null ? void 0 : l.size) == null ? void 0 : o.value;
|
|
275
|
-
})), v = g(() => !!(n.default || e.label));
|
|
276
|
-
return {
|
|
277
|
-
checkboxButtonSize: c,
|
|
278
|
-
isChecked: d,
|
|
279
|
-
isFocused: s,
|
|
280
|
-
checkboxSize: a,
|
|
281
|
-
hasOwnLabel: v
|
|
282
|
-
};
|
|
283
|
-
}, En = (e, { model: n }) => {
|
|
284
|
-
function t() {
|
|
285
|
-
E(n.value) && !n.value.includes(e.label) ? n.value.push(e.label) : n.value = e.trueLabel || !0;
|
|
286
|
-
}
|
|
287
|
-
e.checked && t();
|
|
288
|
-
}, xe = (e, n) => {
|
|
289
|
-
const { formItem: t } = A(), { model: l, isGroup: s, isLimitExceeded: d } = wn(e), {
|
|
290
|
-
isFocused: c,
|
|
291
|
-
isChecked: a,
|
|
292
|
-
checkboxButtonSize: v,
|
|
293
|
-
checkboxSize: o,
|
|
294
|
-
hasOwnLabel: p
|
|
295
|
-
} = Ln(e, n, { model: l }), { isDisabled: h } = Cn({ model: l, isChecked: a }), { inputId: S, isLabeledByFormItem: u } = me(e, {
|
|
296
|
-
formItemContext: t,
|
|
297
|
-
disableIdGeneration: p,
|
|
298
|
-
disableIdManagement: s
|
|
299
|
-
}), { handleChange: i, onClickRoot: f } = Sn(e, {
|
|
300
|
-
model: l,
|
|
301
|
-
isLimitExceeded: d,
|
|
302
|
-
hasOwnLabel: p,
|
|
303
|
-
isDisabled: h,
|
|
304
|
-
isLabeledByFormItem: u
|
|
305
|
-
});
|
|
306
|
-
return En(e, { model: l }), {
|
|
307
|
-
inputId: S,
|
|
308
|
-
isLabeledByFormItem: u,
|
|
309
|
-
isChecked: a,
|
|
310
|
-
isDisabled: h,
|
|
311
|
-
isFocused: c,
|
|
312
|
-
checkboxButtonSize: v,
|
|
313
|
-
checkboxSize: o,
|
|
314
|
-
hasOwnLabel: p,
|
|
315
|
-
model: l,
|
|
316
|
-
handleChange: i,
|
|
317
|
-
onClickRoot: f
|
|
318
|
-
};
|
|
319
|
-
}, Bn = ["tabindex", "role", "aria-checked"], In = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"], $n = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"], On = w({
|
|
320
|
-
name: "ElCheckbox"
|
|
321
|
-
}), Pn = /* @__PURE__ */ w({
|
|
322
|
-
...On,
|
|
323
|
-
props: ge,
|
|
324
|
-
emits: ke,
|
|
325
|
-
setup(e) {
|
|
326
|
-
const n = e, t = re(), {
|
|
327
|
-
inputId: l,
|
|
328
|
-
isLabeledByFormItem: s,
|
|
329
|
-
isChecked: d,
|
|
330
|
-
isDisabled: c,
|
|
331
|
-
isFocused: a,
|
|
332
|
-
checkboxSize: v,
|
|
333
|
-
hasOwnLabel: o,
|
|
334
|
-
model: p,
|
|
335
|
-
handleChange: h,
|
|
336
|
-
onClickRoot: S
|
|
337
|
-
} = xe(n, t), u = z("checkbox"), i = g(() => [
|
|
338
|
-
u.b(),
|
|
339
|
-
u.m(v.value),
|
|
340
|
-
u.is("disabled", c.value),
|
|
341
|
-
u.is("bordered", n.border),
|
|
342
|
-
u.is("checked", d.value)
|
|
343
|
-
]), f = g(() => [
|
|
344
|
-
u.e("input"),
|
|
345
|
-
u.is("disabled", c.value),
|
|
346
|
-
u.is("checked", d.value),
|
|
347
|
-
u.is("indeterminate", n.indeterminate),
|
|
348
|
-
u.is("focus", a.value)
|
|
349
|
-
]);
|
|
350
|
-
return (m, b) => (y(), ue(de(!r(o) && r(s) ? "span" : "label"), {
|
|
351
|
-
class: x(r(i)),
|
|
352
|
-
"aria-controls": m.indeterminate ? m.controls : null,
|
|
353
|
-
onClick: r(S)
|
|
354
|
-
}, {
|
|
355
|
-
default: ce(() => [
|
|
356
|
-
J("span", {
|
|
357
|
-
class: x(r(f)),
|
|
358
|
-
tabindex: m.indeterminate ? 0 : void 0,
|
|
359
|
-
role: m.indeterminate ? "checkbox" : void 0,
|
|
360
|
-
"aria-checked": m.indeterminate ? "mixed" : void 0
|
|
361
|
-
}, [
|
|
362
|
-
m.trueLabel || m.falseLabel ? I((y(), C("input", {
|
|
363
|
-
key: 0,
|
|
364
|
-
id: r(l),
|
|
365
|
-
"onUpdate:modelValue": b[0] || (b[0] = (k) => $(p) ? p.value = k : null),
|
|
366
|
-
class: x(r(u).e("original")),
|
|
367
|
-
type: "checkbox",
|
|
368
|
-
"aria-hidden": m.indeterminate ? "true" : "false",
|
|
369
|
-
name: m.name,
|
|
370
|
-
tabindex: m.tabindex,
|
|
371
|
-
disabled: r(c),
|
|
372
|
-
"true-value": m.trueLabel,
|
|
373
|
-
"false-value": m.falseLabel,
|
|
374
|
-
onChange: b[1] || (b[1] = (...k) => r(h) && r(h)(...k)),
|
|
375
|
-
onFocus: b[2] || (b[2] = (k) => a.value = !0),
|
|
376
|
-
onBlur: b[3] || (b[3] = (k) => a.value = !1),
|
|
377
|
-
onClick: b[4] || (b[4] = O(() => {
|
|
378
|
-
}, ["stop"]))
|
|
379
|
-
}, null, 42, In)), [
|
|
380
|
-
[P, r(p)]
|
|
381
|
-
]) : I((y(), C("input", {
|
|
382
|
-
key: 1,
|
|
383
|
-
id: r(l),
|
|
384
|
-
"onUpdate:modelValue": b[5] || (b[5] = (k) => $(p) ? p.value = k : null),
|
|
385
|
-
class: x(r(u).e("original")),
|
|
386
|
-
type: "checkbox",
|
|
387
|
-
"aria-hidden": m.indeterminate ? "true" : "false",
|
|
388
|
-
disabled: r(c),
|
|
389
|
-
value: m.label,
|
|
390
|
-
name: m.name,
|
|
391
|
-
tabindex: m.tabindex,
|
|
392
|
-
onChange: b[6] || (b[6] = (...k) => r(h) && r(h)(...k)),
|
|
393
|
-
onFocus: b[7] || (b[7] = (k) => a.value = !0),
|
|
394
|
-
onBlur: b[8] || (b[8] = (k) => a.value = !1),
|
|
395
|
-
onClick: b[9] || (b[9] = O(() => {
|
|
396
|
-
}, ["stop"]))
|
|
397
|
-
}, null, 42, $n)), [
|
|
398
|
-
[P, r(p)]
|
|
399
|
-
]),
|
|
400
|
-
J("span", {
|
|
401
|
-
class: x(r(u).e("inner"))
|
|
402
|
-
}, null, 2)
|
|
403
|
-
], 10, Bn),
|
|
404
|
-
r(o) ? (y(), C("span", {
|
|
405
|
-
key: 0,
|
|
406
|
-
class: x(r(u).e("label"))
|
|
407
|
-
}, [
|
|
408
|
-
U(m.$slots, "default"),
|
|
409
|
-
m.$slots.default ? G("v-if", !0) : (y(), C(Ke, { key: 0 }, [
|
|
410
|
-
ve(be(m.label), 1)
|
|
411
|
-
], 64))
|
|
412
|
-
], 2)) : G("v-if", !0)
|
|
413
|
-
]),
|
|
414
|
-
_: 3
|
|
415
|
-
}, 8, ["class", "aria-controls", "onClick"]));
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
var Fn = /* @__PURE__ */ D(Pn, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);
|
|
419
|
-
const Nn = ["name", "tabindex", "disabled", "true-value", "false-value"], Vn = ["name", "tabindex", "disabled", "value"], Tn = w({
|
|
420
|
-
name: "ElCheckboxButton"
|
|
421
|
-
}), Gn = /* @__PURE__ */ w({
|
|
422
|
-
...Tn,
|
|
423
|
-
props: ge,
|
|
424
|
-
emits: ke,
|
|
425
|
-
setup(e) {
|
|
426
|
-
const n = e, t = re(), {
|
|
427
|
-
isFocused: l,
|
|
428
|
-
isChecked: s,
|
|
429
|
-
isDisabled: d,
|
|
430
|
-
checkboxButtonSize: c,
|
|
431
|
-
model: a,
|
|
432
|
-
handleChange: v
|
|
433
|
-
} = xe(n, t), o = B(L, void 0), p = z("checkbox"), h = g(() => {
|
|
434
|
-
var u, i, f, m;
|
|
435
|
-
const b = (i = (u = o == null ? void 0 : o.fill) == null ? void 0 : u.value) != null ? i : "";
|
|
436
|
-
return {
|
|
437
|
-
backgroundColor: b,
|
|
438
|
-
borderColor: b,
|
|
439
|
-
color: (m = (f = o == null ? void 0 : o.textColor) == null ? void 0 : f.value) != null ? m : "",
|
|
440
|
-
boxShadow: b ? `-1px 0 0 0 ${b}` : void 0
|
|
441
|
-
};
|
|
442
|
-
}), S = g(() => [
|
|
443
|
-
p.b("button"),
|
|
444
|
-
p.bm("button", c.value),
|
|
445
|
-
p.is("disabled", d.value),
|
|
446
|
-
p.is("checked", s.value),
|
|
447
|
-
p.is("focus", l.value)
|
|
448
|
-
]);
|
|
449
|
-
return (u, i) => (y(), C("label", {
|
|
450
|
-
class: x(r(S))
|
|
451
|
-
}, [
|
|
452
|
-
u.trueLabel || u.falseLabel ? I((y(), C("input", {
|
|
453
|
-
key: 0,
|
|
454
|
-
"onUpdate:modelValue": i[0] || (i[0] = (f) => $(a) ? a.value = f : null),
|
|
455
|
-
class: x(r(p).be("button", "original")),
|
|
456
|
-
type: "checkbox",
|
|
457
|
-
name: u.name,
|
|
458
|
-
tabindex: u.tabindex,
|
|
459
|
-
disabled: r(d),
|
|
460
|
-
"true-value": u.trueLabel,
|
|
461
|
-
"false-value": u.falseLabel,
|
|
462
|
-
onChange: i[1] || (i[1] = (...f) => r(v) && r(v)(...f)),
|
|
463
|
-
onFocus: i[2] || (i[2] = (f) => l.value = !0),
|
|
464
|
-
onBlur: i[3] || (i[3] = (f) => l.value = !1),
|
|
465
|
-
onClick: i[4] || (i[4] = O(() => {
|
|
466
|
-
}, ["stop"]))
|
|
467
|
-
}, null, 42, Nn)), [
|
|
468
|
-
[P, r(a)]
|
|
469
|
-
]) : I((y(), C("input", {
|
|
470
|
-
key: 1,
|
|
471
|
-
"onUpdate:modelValue": i[5] || (i[5] = (f) => $(a) ? a.value = f : null),
|
|
472
|
-
class: x(r(p).be("button", "original")),
|
|
473
|
-
type: "checkbox",
|
|
474
|
-
name: u.name,
|
|
475
|
-
tabindex: u.tabindex,
|
|
476
|
-
disabled: r(d),
|
|
477
|
-
value: u.label,
|
|
478
|
-
onChange: i[6] || (i[6] = (...f) => r(v) && r(v)(...f)),
|
|
479
|
-
onFocus: i[7] || (i[7] = (f) => l.value = !0),
|
|
480
|
-
onBlur: i[8] || (i[8] = (f) => l.value = !1),
|
|
481
|
-
onClick: i[9] || (i[9] = O(() => {
|
|
482
|
-
}, ["stop"]))
|
|
483
|
-
}, null, 42, Vn)), [
|
|
484
|
-
[P, r(a)]
|
|
485
|
-
]),
|
|
486
|
-
u.$slots.default || u.label ? (y(), C("span", {
|
|
487
|
-
key: 2,
|
|
488
|
-
class: x(r(p).be("button", "inner")),
|
|
489
|
-
style: Re(r(s) ? r(h) : void 0)
|
|
490
|
-
}, [
|
|
491
|
-
U(u.$slots, "default", {}, () => [
|
|
492
|
-
ve(be(u.label), 1)
|
|
493
|
-
])
|
|
494
|
-
], 6)) : G("v-if", !0)
|
|
495
|
-
], 2));
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
var ye = /* @__PURE__ */ D(Gn, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);
|
|
499
|
-
const zn = Ue({
|
|
500
|
-
modelValue: {
|
|
501
|
-
type: Ae(Array),
|
|
502
|
-
default: () => []
|
|
503
|
-
},
|
|
504
|
-
disabled: Boolean,
|
|
505
|
-
min: Number,
|
|
506
|
-
max: Number,
|
|
507
|
-
size: fe,
|
|
508
|
-
label: String,
|
|
509
|
-
fill: String,
|
|
510
|
-
textColor: String,
|
|
511
|
-
tag: {
|
|
512
|
-
type: String,
|
|
513
|
-
default: "div"
|
|
514
|
-
},
|
|
515
|
-
validateEvent: {
|
|
516
|
-
type: Boolean,
|
|
517
|
-
default: !0
|
|
518
|
-
}
|
|
519
|
-
}), Dn = {
|
|
520
|
-
[F]: (e) => E(e),
|
|
521
|
-
change: (e) => E(e)
|
|
522
|
-
}, Un = w({
|
|
523
|
-
name: "ElCheckboxGroup"
|
|
524
|
-
}), An = /* @__PURE__ */ w({
|
|
525
|
-
...Un,
|
|
526
|
-
props: zn,
|
|
527
|
-
emits: Dn,
|
|
528
|
-
setup(e, { emit: n }) {
|
|
529
|
-
const t = e, l = z("checkbox"), { formItem: s } = A(), { inputId: d, isLabeledByFormItem: c } = me(t, {
|
|
530
|
-
formItemContext: s
|
|
531
|
-
}), a = async (o) => {
|
|
532
|
-
n(F, o), await ie(), n("change", o);
|
|
533
|
-
}, v = g({
|
|
534
|
-
get() {
|
|
535
|
-
return t.modelValue;
|
|
536
|
-
},
|
|
537
|
-
set(o) {
|
|
538
|
-
a(o);
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
return He(L, {
|
|
542
|
-
...yn(We(t), [
|
|
543
|
-
"size",
|
|
544
|
-
"min",
|
|
545
|
-
"max",
|
|
546
|
-
"disabled",
|
|
547
|
-
"validateEvent",
|
|
548
|
-
"fill",
|
|
549
|
-
"textColor"
|
|
550
|
-
]),
|
|
551
|
-
modelValue: v,
|
|
552
|
-
changeEvent: a
|
|
553
|
-
}), se(() => t.modelValue, () => {
|
|
554
|
-
t.validateEvent && (s == null || s.validate("change").catch((o) => le(o)));
|
|
555
|
-
}), (o, p) => {
|
|
556
|
-
var h;
|
|
557
|
-
return y(), ue(de(o.tag), {
|
|
558
|
-
id: r(d),
|
|
559
|
-
class: x(r(l).b("group")),
|
|
560
|
-
role: "group",
|
|
561
|
-
"aria-label": r(c) ? void 0 : o.label || "checkbox-group",
|
|
562
|
-
"aria-labelledby": r(c) ? (h = r(s)) == null ? void 0 : h.labelId : void 0
|
|
563
|
-
}, {
|
|
564
|
-
default: ce(() => [
|
|
565
|
-
U(o.$slots, "default")
|
|
566
|
-
]),
|
|
567
|
-
_: 3
|
|
568
|
-
}, 8, ["id", "class", "aria-label", "aria-labelledby"]);
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
var Ce = /* @__PURE__ */ D(An, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);
|
|
573
|
-
const _n = Me(Fn, {
|
|
574
|
-
CheckboxButton: ye,
|
|
575
|
-
CheckboxGroup: Ce
|
|
576
|
-
});
|
|
577
|
-
ae(ye);
|
|
578
|
-
const et = ae(Ce);
|
|
579
|
-
export {
|
|
580
|
-
_n as E,
|
|
581
|
-
Jn as a,
|
|
582
|
-
Yn as b,
|
|
583
|
-
Qn as c,
|
|
584
|
-
Zn as d,
|
|
585
|
-
pe as e,
|
|
586
|
-
hn as f,
|
|
587
|
-
mn as g,
|
|
588
|
-
et as h,
|
|
589
|
-
jn as i,
|
|
590
|
-
Xn as k,
|
|
591
|
-
on as o,
|
|
592
|
-
an as s
|
|
593
|
-
};
|