st-comp 0.0.279 → 0.0.281
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +13 -14
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +377 -376
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +294 -294
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +19 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +260 -260
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +579 -553
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +23 -24
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +30 -29
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +517 -425
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +43 -43
- package/es/User.cjs +1 -1
- package/es/User.js +898 -866
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +110 -109
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +615 -464
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +18 -18
- package/es/VarietySearch.js +3079 -2913
- package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
- package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +51 -51
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +1927 -2259
- package/es/_baseClone-f8e5d3ba.cjs +1 -0
- package/es/_baseClone-fb6a3947.js +210 -0
- package/es/base-d987e5c9.cjs +5 -0
- package/es/base-dd156b8e.js +790 -0
- package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
- package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
- package/es/clamp-17c4d8aa.cjs +1 -0
- package/es/clamp-c7512966.js +10 -0
- package/es/config-provider-06d8207f.js +86 -0
- package/es/config-provider-bb61bd3e.cjs +1 -0
- package/es/debounce-0a98a9c6.js +57 -0
- package/es/debounce-37b17615.cjs +1 -0
- package/es/dropdown-8fa21bfd.cjs +1 -0
- package/es/dropdown-bcf8d198.js +178 -0
- package/es/el-autocomplete-13b9e372.cjs +1 -0
- package/es/el-autocomplete-419bfbcf.js +434 -0
- package/es/el-button-ee9fe159.js +343 -0
- package/es/el-button-fac5e058.cjs +1 -0
- package/es/el-checkbox-6cf1a71c.cjs +1 -0
- package/es/el-checkbox-b5ac7f04.js +566 -0
- package/es/el-dialog-060b3735.js +252 -0
- package/es/el-dialog-54aebacd.cjs +1 -0
- package/es/el-divider-3f0320be.cjs +1 -0
- package/es/el-divider-c5d72961.js +51 -0
- package/es/el-empty-552baf04.js +159 -0
- package/es/el-empty-58bc2a10.cjs +1 -0
- package/es/el-form-item-2be6b683.js +1265 -0
- package/es/el-form-item-758dfefa.cjs +12 -0
- package/es/el-input-7fe53030.cjs +1 -0
- package/es/el-input-d23f5442.js +761 -0
- package/es/el-input-number-484fb184.js +390 -0
- package/es/el-input-number-f0f4eedb.cjs +1 -0
- package/es/el-loading-9d3e405c.js +190 -0
- package/es/el-loading-fafaaa7b.cjs +1 -0
- package/es/el-menu-item-0ac22681.js +824 -0
- package/es/el-menu-item-c91ae430.cjs +1 -0
- package/es/el-message-box-568a0aa6.js +481 -0
- package/es/el-message-box-ceacb54e.cjs +1 -0
- package/es/el-overlay-9f36e73c.cjs +1 -0
- package/es/el-overlay-cb5c85aa.js +444 -0
- package/es/el-popconfirm-4a8cd35c.cjs +1 -0
- package/es/el-popconfirm-6f8e65c8.js +190 -0
- package/es/el-popper-0454c8e8.js +2235 -0
- package/es/el-popper-acd0ff35.cjs +1 -0
- package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
- package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
- package/es/el-segmented-64dc7258.js +168 -0
- package/es/el-segmented-eb3c8e65.cjs +1 -0
- package/es/el-select-a573c78b.js +1535 -0
- package/es/el-select-c317294a.cjs +1 -0
- package/es/el-table-column-1c443963.js +3651 -0
- package/es/el-table-column-f555115d.cjs +14 -0
- package/es/el-tag-2d8a3fe7.js +77 -0
- package/es/el-tag-dca1292c.cjs +1 -0
- package/es/el-text-649c986a.cjs +1 -0
- package/es/el-text-761e6717.js +84 -0
- package/es/index-11181b5f.cjs +1 -0
- package/es/index-21a3dc89.cjs +1 -0
- package/es/index-33e039e3.cjs +1 -0
- package/es/index-3806160e.js +710 -0
- package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
- package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
- package/es/index-5cada1ed.cjs +1 -0
- package/es/index-6a36e1fc.cjs +1 -0
- package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
- package/es/index-71ba4c28.cjs +1 -0
- package/es/index-78dab605.js +141 -0
- package/es/index-798fec2d.cjs +1 -0
- package/es/index-9573f74b.js +372 -0
- package/es/index-a181f161.js +429 -0
- package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
- package/es/index-beb5cb7d.cjs +1 -0
- package/es/index-c09fc6f5.js +131 -0
- package/es/index-ceae4c47.cjs +1 -0
- package/es/index-d372e68f.cjs +5 -0
- package/es/index-d9379af4.js +413 -0
- package/es/index-dddacf80.js +47 -0
- package/es/index-de9ad85c.js +12 -0
- package/es/index-e2e58ea9.js +468 -0
- package/es/index-f5474dcc.cjs +3 -0
- package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
- package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
- package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
- package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
- package/es/scroll-07bade1e.cjs +1 -0
- package/es/scroll-70271cb1.js +35 -0
- package/es/style.css +1 -1
- package/es/toNumber-b47ceb68.cjs +1 -0
- package/es/toNumber-f077c66a.js +31 -0
- package/es/use-form-item-76516e50.cjs +2 -0
- package/es/use-form-item-784142b4.js +422 -0
- package/es/use-global-config-7ff9a1c2.cjs +1 -0
- package/es/use-global-config-9a4ccf33.js +71 -0
- package/es/validator-1926345b.cjs +1 -0
- package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
- package/es/vnode-6f7b84f0.cjs +1 -0
- package/es/vnode-8ee9bf4e.js +12 -0
- package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
- package/es/zh-cn-ad12d9f5.cjs +1 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +265 -246
- package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
- package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_initCloneObject-5e73c9c8.js +0 -81
- package/es/_initCloneObject-a5832933.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/config-provider-06ea6b42.cjs +0 -1
- package/es/config-provider-88b637a8.js +0 -59
- package/es/dayjs.min-2c20abe6.cjs +0 -1
- package/es/dayjs.min-8313b006.js +0 -299
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/debounce-8d53f4dd.js +0 -83
- package/es/dropdown-4ce4c3e2.cjs +0 -1
- package/es/dropdown-72fbc15d.js +0 -178
- package/es/el-autocomplete-6cafcdf1.js +0 -329
- package/es/el-autocomplete-e0857c5b.cjs +0 -1
- package/es/el-button-613e0bb2.cjs +0 -1
- package/es/el-button-94d3de38.js +0 -272
- package/es/el-checkbox-6d4cb393.js +0 -459
- package/es/el-checkbox-e90762df.cjs +0 -1
- package/es/el-dialog-02942e22.cjs +0 -1
- package/es/el-dialog-5e30161f.js +0 -276
- package/es/el-divider-4713d74c.cjs +0 -1
- package/es/el-divider-4e059794.js +0 -45
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-empty-33cb66f1.js +0 -183
- package/es/el-form-item-44f060d8.cjs +0 -12
- package/es/el-form-item-9e8969ea.js +0 -1269
- package/es/el-input-342b2def.js +0 -531
- package/es/el-input-9a9a7f7f.cjs +0 -1
- package/es/el-input-number-65c847d6.cjs +0 -1
- package/es/el-input-number-c22b803a.js +0 -311
- package/es/el-loading-8179b497.cjs +0 -1
- package/es/el-loading-bcc51e3d.js +0 -203
- package/es/el-menu-item-339baf6d.js +0 -768
- package/es/el-menu-item-83186444.cjs +0 -1
- package/es/el-message-box-035b699c.js +0 -489
- package/es/el-message-box-c62d3217.cjs +0 -1
- package/es/el-overlay-3e17604b.js +0 -324
- package/es/el-overlay-8f1da9e8.cjs +0 -1
- package/es/el-popconfirm-4e32ec1b.cjs +0 -1
- package/es/el-popconfirm-f8a86e2c.js +0 -162
- package/es/el-popper-a4f3ae4d.cjs +0 -1
- package/es/el-popper-fbd0dcea.js +0 -2094
- package/es/el-segmented-56bd58a8.js +0 -142
- package/es/el-segmented-833ac177.cjs +0 -1
- package/es/el-select-44fa547d.js +0 -1256
- package/es/el-select-70806166.cjs +0 -1
- package/es/el-table-column-3e2cdfca.cjs +0 -14
- package/es/el-table-column-b74a857d.js +0 -3432
- package/es/el-tag-66c83156.js +0 -117
- package/es/el-tag-9c2f329f.cjs +0 -1
- package/es/el-text-034bd3f4.js +0 -67
- package/es/el-text-6b2374bb.cjs +0 -1
- package/es/index-00f6ca75.cjs +0 -1
- package/es/index-185792a7.cjs +0 -1
- package/es/index-1e2a38ab.js +0 -113
- package/es/index-2e331d74.js +0 -10
- package/es/index-3153c1db.cjs +0 -1
- package/es/index-5216d5f5.js +0 -406
- package/es/index-5c0dd943.cjs +0 -1
- package/es/index-657047bb.js +0 -513
- package/es/index-870b6c9d.cjs +0 -1
- package/es/index-8c2d7e05.js +0 -368
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9d16cea8.cjs +0 -1
- package/es/index-ac8dc53d.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c5f2d372.js +0 -326
- package/es/index-c6584658.js +0 -163
- package/es/index-d77a7336.js +0 -204
- package/es/index-eea0bcb3.cjs +0 -1
- package/es/index-f034b910.js +0 -60
- package/es/index-f1c702f6.cjs +0 -1
- package/es/index-f58b2920.cjs +0 -1
- package/es/scroll-679bd6bf.js +0 -35
- package/es/scroll-b108dabd.cjs +0 -1
- package/es/use-form-common-props-ac666630.cjs +0 -1
- package/es/use-form-common-props-ed72e914.js +0 -364
- package/es/use-global-config-23472471.cjs +0 -1
- package/es/use-global-config-ee406d58.js +0 -72
- package/es/validator-366dbf39.cjs +0 -1
- package/es/vnode-5ddb7ed1.js +0 -14
- package/es/vnode-b906ae6d.cjs +0 -1
- package/es/zh-cn-c21d12d8.cjs +0 -1
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
import { K as Le, a as H, s as Y, q as I, b as Se, c as P, m as E, i as F, N as X, C as D, k as Ve, u as U, w as Ee, n as Z } from "./base-dd156b8e.js";
|
|
2
|
+
import { q as Be, u as G, U as O, C as z, l as Ne } from "./el-popper-0454c8e8.js";
|
|
3
|
+
import { h as ee, p as Oe, g as te, d as M, e as J, f as ae } from "./use-form-item-784142b4.js";
|
|
4
|
+
import { u as w } from "./index-de9ad85c.js";
|
|
5
|
+
import { inject as L, computed as v, getCurrentInstance as le, watch as ne, nextTick as ue, ref as A, toRaw as Q, defineComponent as T, useSlots as oe, openBlock as y, createBlock as _, resolveDynamicComponent as $, unref as c, normalizeClass as p, withCtx as se, createElementVNode as N, withDirectives as ie, mergeProps as R, isRef as re, withModifiers as de, vModelCheckbox as ce, createElementBlock as B, renderSlot as j, Fragment as ve, createTextVNode as be, toDisplayString as me, createCommentVNode as K, normalizeStyle as Pe, provide as we, toRefs as Ie, renderList as Fe } from "vue";
|
|
6
|
+
import { i as fe } from "./index-9573f74b.js";
|
|
7
|
+
import { c as De, d as ge, t as W, b as ze } from "./index-a181f161.js";
|
|
8
|
+
import { c as Ae, g as _e, e as $e } from "./_baseClone-fb6a3947.js";
|
|
9
|
+
function Ke(e, t, a) {
|
|
10
|
+
var u = -1, l = e.length;
|
|
11
|
+
t < 0 && (t = -t > l ? 0 : l + t), a = a > l ? l : a, a < 0 && (a += l), l = t > a ? 0 : a - t >>> 0, t >>>= 0;
|
|
12
|
+
for (var o = Array(l); ++u < l; )
|
|
13
|
+
o[u] = e[u + t];
|
|
14
|
+
return o;
|
|
15
|
+
}
|
|
16
|
+
function Ue(e) {
|
|
17
|
+
var t = e == null ? 0 : e.length;
|
|
18
|
+
return t ? e[t - 1] : void 0;
|
|
19
|
+
}
|
|
20
|
+
function Me(e, t) {
|
|
21
|
+
return t.length < 2 ? e : De(e, Ke(t, 0, -1));
|
|
22
|
+
}
|
|
23
|
+
var Te = Object.prototype, Re = Te.hasOwnProperty;
|
|
24
|
+
function je(e, t) {
|
|
25
|
+
t = ge(t, e);
|
|
26
|
+
var a = -1, u = t.length;
|
|
27
|
+
if (!u)
|
|
28
|
+
return !0;
|
|
29
|
+
for (; ++a < u; ) {
|
|
30
|
+
var l = W(t[a]);
|
|
31
|
+
if (l === "__proto__" && !Re.call(e, "__proto__") || (l === "constructor" || l === "prototype") && a < u - 1)
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
var o = Me(e, t);
|
|
35
|
+
return o == null || delete o[W(Ue(t))];
|
|
36
|
+
}
|
|
37
|
+
function qe(e) {
|
|
38
|
+
return Le(e) ? void 0 : e;
|
|
39
|
+
}
|
|
40
|
+
var He = 1, Ye = 2, Je = 4, Qe = Be(function(e, t) {
|
|
41
|
+
var a = {};
|
|
42
|
+
if (e == null)
|
|
43
|
+
return a;
|
|
44
|
+
var u = !1;
|
|
45
|
+
t = ze(t, function(o) {
|
|
46
|
+
return o = ge(o, e), u || (u = o.length > 1), o;
|
|
47
|
+
}), Ae(e, _e(e), a), u && (a = $e(a, He | Ye | Je, qe));
|
|
48
|
+
for (var l = t.length; l--; )
|
|
49
|
+
je(a, t[l]);
|
|
50
|
+
return a;
|
|
51
|
+
});
|
|
52
|
+
const We = Qe, he = {
|
|
53
|
+
/**
|
|
54
|
+
* @description binding value
|
|
55
|
+
*/
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: [
|
|
58
|
+
Number,
|
|
59
|
+
String,
|
|
60
|
+
Boolean
|
|
61
|
+
],
|
|
62
|
+
default: void 0
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* @description label of the Checkbox when used inside a `checkbox-group`
|
|
66
|
+
*/
|
|
67
|
+
label: {
|
|
68
|
+
type: [
|
|
69
|
+
String,
|
|
70
|
+
Boolean,
|
|
71
|
+
Number,
|
|
72
|
+
Object
|
|
73
|
+
],
|
|
74
|
+
default: void 0
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* @description value of the Checkbox when used inside a `checkbox-group`
|
|
78
|
+
*/
|
|
79
|
+
value: {
|
|
80
|
+
type: [
|
|
81
|
+
String,
|
|
82
|
+
Boolean,
|
|
83
|
+
Number,
|
|
84
|
+
Object
|
|
85
|
+
],
|
|
86
|
+
default: void 0
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* @description Set indeterminate state, only responsible for style control
|
|
90
|
+
*/
|
|
91
|
+
indeterminate: Boolean,
|
|
92
|
+
/**
|
|
93
|
+
* @description whether the Checkbox is disabled
|
|
94
|
+
*/
|
|
95
|
+
disabled: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: void 0
|
|
98
|
+
},
|
|
99
|
+
/**
|
|
100
|
+
* @description if the Checkbox is checked
|
|
101
|
+
*/
|
|
102
|
+
checked: Boolean,
|
|
103
|
+
/**
|
|
104
|
+
* @description native 'name' attribute
|
|
105
|
+
*/
|
|
106
|
+
name: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: void 0
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* @description value of the Checkbox if it's checked
|
|
112
|
+
*/
|
|
113
|
+
trueValue: {
|
|
114
|
+
type: [String, Number],
|
|
115
|
+
default: void 0
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* @description value of the Checkbox if it's not checked
|
|
119
|
+
*/
|
|
120
|
+
falseValue: {
|
|
121
|
+
type: [String, Number],
|
|
122
|
+
default: void 0
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated use `trueValue` instead
|
|
126
|
+
* @description value of the Checkbox if it's checked
|
|
127
|
+
*/
|
|
128
|
+
trueLabel: {
|
|
129
|
+
type: [String, Number],
|
|
130
|
+
default: void 0
|
|
131
|
+
},
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated use `falseValue` instead
|
|
134
|
+
* @description value of the Checkbox if it's not checked
|
|
135
|
+
*/
|
|
136
|
+
falseLabel: {
|
|
137
|
+
type: [String, Number],
|
|
138
|
+
default: void 0
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
* @description input id
|
|
142
|
+
*/
|
|
143
|
+
id: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: void 0
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* @description whether to add a border around Checkbox
|
|
149
|
+
*/
|
|
150
|
+
border: Boolean,
|
|
151
|
+
/**
|
|
152
|
+
* @description size of the Checkbox
|
|
153
|
+
*/
|
|
154
|
+
size: ee,
|
|
155
|
+
/**
|
|
156
|
+
* @description input tabindex
|
|
157
|
+
*/
|
|
158
|
+
tabindex: [String, Number],
|
|
159
|
+
/**
|
|
160
|
+
* @description whether to trigger form validation
|
|
161
|
+
*/
|
|
162
|
+
validateEvent: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: !0
|
|
165
|
+
},
|
|
166
|
+
ariaLabel: String,
|
|
167
|
+
...G(["ariaControls"])
|
|
168
|
+
}, xe = {
|
|
169
|
+
[O]: (e) => H(e) || Y(e) || I(e),
|
|
170
|
+
change: (e) => H(e) || Y(e) || I(e)
|
|
171
|
+
}, S = Symbol("checkboxGroupContextKey"), Xe = Se({
|
|
172
|
+
/**
|
|
173
|
+
* @description binding value
|
|
174
|
+
*/
|
|
175
|
+
modelValue: {
|
|
176
|
+
type: P(Array),
|
|
177
|
+
default: () => []
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* @description whether the nesting checkboxes are disabled
|
|
181
|
+
*/
|
|
182
|
+
disabled: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: void 0
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* @description minimum number of checkbox checked
|
|
188
|
+
*/
|
|
189
|
+
min: Number,
|
|
190
|
+
/**
|
|
191
|
+
* @description maximum number of checkbox checked
|
|
192
|
+
*/
|
|
193
|
+
max: Number,
|
|
194
|
+
/**
|
|
195
|
+
* @description size of checkbox
|
|
196
|
+
*/
|
|
197
|
+
size: ee,
|
|
198
|
+
/**
|
|
199
|
+
* @description border and background color when button is active
|
|
200
|
+
*/
|
|
201
|
+
fill: String,
|
|
202
|
+
/**
|
|
203
|
+
* @description font color when button is active
|
|
204
|
+
*/
|
|
205
|
+
textColor: String,
|
|
206
|
+
/**
|
|
207
|
+
* @description element tag of the checkbox group
|
|
208
|
+
*/
|
|
209
|
+
tag: {
|
|
210
|
+
type: String,
|
|
211
|
+
default: "div"
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* @description whether to trigger form validation
|
|
215
|
+
*/
|
|
216
|
+
validateEvent: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
default: !0
|
|
219
|
+
},
|
|
220
|
+
options: { type: P(Array) },
|
|
221
|
+
props: {
|
|
222
|
+
type: P(Object),
|
|
223
|
+
default: () => ke
|
|
224
|
+
},
|
|
225
|
+
type: {
|
|
226
|
+
type: String,
|
|
227
|
+
values: ["checkbox", "button"],
|
|
228
|
+
default: "checkbox"
|
|
229
|
+
},
|
|
230
|
+
...G(["ariaLabel"])
|
|
231
|
+
}), Ze = {
|
|
232
|
+
[O]: (e) => E(e),
|
|
233
|
+
change: (e) => E(e)
|
|
234
|
+
}, ke = {
|
|
235
|
+
label: "label",
|
|
236
|
+
value: "value",
|
|
237
|
+
disabled: "disabled"
|
|
238
|
+
}, Ge = ({ model: e, isChecked: t }) => {
|
|
239
|
+
const a = L(S, void 0), u = L(Oe, void 0), l = v(() => {
|
|
240
|
+
var s, b;
|
|
241
|
+
const o = (s = a == null ? void 0 : a.max) == null ? void 0 : s.value, r = (b = a == null ? void 0 : a.min) == null ? void 0 : b.value;
|
|
242
|
+
return !F(o) && e.value.length >= o && !t.value || !F(r) && e.value.length <= r && t.value;
|
|
243
|
+
});
|
|
244
|
+
return {
|
|
245
|
+
isDisabled: te(v(() => {
|
|
246
|
+
var o;
|
|
247
|
+
return a === void 0 ? (u == null ? void 0 : u.disabled) ?? l.value : ((o = a.disabled) == null ? void 0 : o.value) || l.value;
|
|
248
|
+
})),
|
|
249
|
+
isLimitDisabled: l
|
|
250
|
+
};
|
|
251
|
+
}, et = (e, { model: t, isLimitExceeded: a, hasOwnLabel: u, isDisabled: l, isLabeledByFormItem: o }) => {
|
|
252
|
+
const r = L(S, void 0), { formItem: s } = M(), { emit: b } = le();
|
|
253
|
+
function d(n) {
|
|
254
|
+
return [
|
|
255
|
+
!0,
|
|
256
|
+
e.trueValue,
|
|
257
|
+
e.trueLabel
|
|
258
|
+
].includes(n) ? e.trueValue ?? e.trueLabel ?? !0 : e.falseValue ?? e.falseLabel ?? !1;
|
|
259
|
+
}
|
|
260
|
+
function f(n, i) {
|
|
261
|
+
b(z, d(n), i);
|
|
262
|
+
}
|
|
263
|
+
function m(n) {
|
|
264
|
+
if (a.value)
|
|
265
|
+
return;
|
|
266
|
+
const i = n.target;
|
|
267
|
+
b(z, d(i.checked), n);
|
|
268
|
+
}
|
|
269
|
+
async function x(n) {
|
|
270
|
+
a.value || !u.value && !l.value && o.value && (n.composedPath().some((i) => i.tagName === "LABEL") || (t.value = d([
|
|
271
|
+
!1,
|
|
272
|
+
e.falseValue,
|
|
273
|
+
e.falseLabel
|
|
274
|
+
].includes(t.value)), await ue(), f(t.value, n)));
|
|
275
|
+
}
|
|
276
|
+
const k = v(() => (r == null ? void 0 : r.validateEvent) || e.validateEvent);
|
|
277
|
+
return ne(() => e.modelValue, () => {
|
|
278
|
+
k.value && (s == null || s.validate("change").catch(X));
|
|
279
|
+
}), {
|
|
280
|
+
handleChange: m,
|
|
281
|
+
onClickRoot: x
|
|
282
|
+
};
|
|
283
|
+
}, tt = (e) => {
|
|
284
|
+
const t = A(!1), { emit: a, vnode: u } = le(), l = L(S, void 0), o = v(() => F(l) === !1), r = A(!1), s = v(() => {
|
|
285
|
+
const d = u.props ?? {};
|
|
286
|
+
return "modelValue" in d || "model-value" in d;
|
|
287
|
+
}), b = v({
|
|
288
|
+
get() {
|
|
289
|
+
var d;
|
|
290
|
+
return o.value ? (d = l == null ? void 0 : l.modelValue) == null ? void 0 : d.value : s.value ? e.modelValue : t.value;
|
|
291
|
+
},
|
|
292
|
+
set(d) {
|
|
293
|
+
var f, m;
|
|
294
|
+
o.value && E(d) ? (r.value = ((f = l == null ? void 0 : l.max) == null ? void 0 : f.value) !== void 0 && d.length > (l == null ? void 0 : l.max.value) && d.length > b.value.length, r.value === !1 && ((m = l == null ? void 0 : l.changeEvent) == null || m.call(l, d))) : (a(O, d), t.value = d);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
return {
|
|
298
|
+
model: b,
|
|
299
|
+
isGroup: o,
|
|
300
|
+
isLimitExceeded: r
|
|
301
|
+
};
|
|
302
|
+
}, at = (e, t, { model: a }) => {
|
|
303
|
+
const u = L(S, void 0), l = A(!1), o = v(() => D(e.value) ? e.label : e.value), r = v(() => {
|
|
304
|
+
const s = a.value;
|
|
305
|
+
return I(s) ? s : E(s) ? Ve(o.value) ? s.map(Q).some((b) => fe(b, o.value)) : s.map(Q).includes(o.value) : s != null ? s === e.trueValue || s === e.trueLabel : !!s;
|
|
306
|
+
});
|
|
307
|
+
return {
|
|
308
|
+
checkboxButtonSize: J(v(() => {
|
|
309
|
+
var s;
|
|
310
|
+
return (s = u == null ? void 0 : u.size) == null ? void 0 : s.value;
|
|
311
|
+
}), { prop: !0 }),
|
|
312
|
+
isChecked: r,
|
|
313
|
+
isFocused: l,
|
|
314
|
+
checkboxSize: J(v(() => {
|
|
315
|
+
var s;
|
|
316
|
+
return (s = u == null ? void 0 : u.size) == null ? void 0 : s.value;
|
|
317
|
+
})),
|
|
318
|
+
hasOwnLabel: v(() => !!t.default || !D(o.value)),
|
|
319
|
+
actualValue: o
|
|
320
|
+
};
|
|
321
|
+
}, Ce = (e, t) => {
|
|
322
|
+
const { formItem: a } = M(), { model: u, isGroup: l, isLimitExceeded: o } = tt(e), { isFocused: r, isChecked: s, checkboxButtonSize: b, checkboxSize: d, hasOwnLabel: f, actualValue: m } = at(e, t, { model: u }), { isDisabled: x } = Ge({
|
|
323
|
+
model: u,
|
|
324
|
+
isChecked: s
|
|
325
|
+
}), { inputId: k, isLabeledByFormItem: n } = ae(e, {
|
|
326
|
+
formItemContext: a,
|
|
327
|
+
disableIdGeneration: f,
|
|
328
|
+
disableIdManagement: l
|
|
329
|
+
}), { handleChange: i, onClickRoot: g } = et(e, {
|
|
330
|
+
model: u,
|
|
331
|
+
isLimitExceeded: o,
|
|
332
|
+
hasOwnLabel: f,
|
|
333
|
+
isDisabled: x,
|
|
334
|
+
isLabeledByFormItem: n
|
|
335
|
+
});
|
|
336
|
+
return (() => {
|
|
337
|
+
function h() {
|
|
338
|
+
E(u.value) && !u.value.includes(m.value) ? u.value.push(m.value) : u.value = e.trueValue ?? e.trueLabel ?? !0;
|
|
339
|
+
}
|
|
340
|
+
e.checked && h();
|
|
341
|
+
})(), w({
|
|
342
|
+
from: "label act as value",
|
|
343
|
+
replacement: "value",
|
|
344
|
+
version: "3.0.0",
|
|
345
|
+
scope: "el-checkbox",
|
|
346
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
347
|
+
}, v(() => l.value && D(e.value))), w({
|
|
348
|
+
from: "true-label",
|
|
349
|
+
replacement: "true-value",
|
|
350
|
+
version: "3.0.0",
|
|
351
|
+
scope: "el-checkbox",
|
|
352
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
353
|
+
}, v(() => !!e.trueLabel)), w({
|
|
354
|
+
from: "false-label",
|
|
355
|
+
replacement: "false-value",
|
|
356
|
+
version: "3.0.0",
|
|
357
|
+
scope: "el-checkbox",
|
|
358
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
359
|
+
}, v(() => !!e.falseLabel)), {
|
|
360
|
+
inputId: k,
|
|
361
|
+
isLabeledByFormItem: n,
|
|
362
|
+
isChecked: s,
|
|
363
|
+
isDisabled: x,
|
|
364
|
+
isFocused: r,
|
|
365
|
+
checkboxButtonSize: b,
|
|
366
|
+
checkboxSize: d,
|
|
367
|
+
hasOwnLabel: f,
|
|
368
|
+
model: u,
|
|
369
|
+
actualValue: m,
|
|
370
|
+
handleChange: i,
|
|
371
|
+
onClickRoot: g
|
|
372
|
+
};
|
|
373
|
+
}, lt = [
|
|
374
|
+
"id",
|
|
375
|
+
"indeterminate",
|
|
376
|
+
"name",
|
|
377
|
+
"tabindex",
|
|
378
|
+
"disabled"
|
|
379
|
+
];
|
|
380
|
+
var nt = /* @__PURE__ */ T({
|
|
381
|
+
name: "ElCheckbox",
|
|
382
|
+
__name: "checkbox",
|
|
383
|
+
props: he,
|
|
384
|
+
emits: xe,
|
|
385
|
+
setup(e) {
|
|
386
|
+
const t = e, { inputId: a, isLabeledByFormItem: u, isChecked: l, isDisabled: o, isFocused: r, checkboxSize: s, hasOwnLabel: b, model: d, actualValue: f, handleChange: m, onClickRoot: x } = Ce(t, oe()), k = v(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
387
|
+
"true-value": t.trueValue ?? t.trueLabel ?? !0,
|
|
388
|
+
"false-value": t.falseValue ?? t.falseLabel ?? !1
|
|
389
|
+
} : { value: f.value }), n = U("checkbox"), i = v(() => [
|
|
390
|
+
n.b(),
|
|
391
|
+
n.m(s.value),
|
|
392
|
+
n.is("disabled", o.value),
|
|
393
|
+
n.is("bordered", t.border),
|
|
394
|
+
n.is("checked", l.value)
|
|
395
|
+
]), g = v(() => [
|
|
396
|
+
n.e("input"),
|
|
397
|
+
n.is("disabled", o.value),
|
|
398
|
+
n.is("checked", l.value),
|
|
399
|
+
n.is("indeterminate", t.indeterminate),
|
|
400
|
+
n.is("focus", r.value)
|
|
401
|
+
]);
|
|
402
|
+
return (C, h) => (y(), _($(!c(b) && c(u) ? "span" : "label"), {
|
|
403
|
+
for: !c(b) && c(u) ? null : c(a),
|
|
404
|
+
class: p(i.value),
|
|
405
|
+
"aria-controls": e.indeterminate ? e.ariaControls : null,
|
|
406
|
+
"aria-checked": e.indeterminate ? "mixed" : void 0,
|
|
407
|
+
"aria-label": e.ariaLabel,
|
|
408
|
+
onClick: c(x)
|
|
409
|
+
}, {
|
|
410
|
+
default: se(() => [N("span", { class: p(g.value) }, [ie(N("input", R({
|
|
411
|
+
id: c(a),
|
|
412
|
+
"onUpdate:modelValue": h[0] || (h[0] = (V) => re(d) ? d.value = V : null),
|
|
413
|
+
class: c(n).e("original"),
|
|
414
|
+
type: "checkbox",
|
|
415
|
+
indeterminate: e.indeterminate,
|
|
416
|
+
name: e.name,
|
|
417
|
+
tabindex: e.tabindex,
|
|
418
|
+
disabled: c(o)
|
|
419
|
+
}, k.value, {
|
|
420
|
+
onChange: h[1] || (h[1] = (...V) => c(m) && c(m)(...V)),
|
|
421
|
+
onFocus: h[2] || (h[2] = (V) => r.value = !0),
|
|
422
|
+
onBlur: h[3] || (h[3] = (V) => r.value = !1),
|
|
423
|
+
onClick: h[4] || (h[4] = de(() => {
|
|
424
|
+
}, ["stop"]))
|
|
425
|
+
}), null, 16, lt), [[ce, c(d)]]), N("span", { class: p(c(n).e("inner")) }, null, 2)], 2), c(b) ? (y(), B("span", {
|
|
426
|
+
key: 0,
|
|
427
|
+
class: p(c(n).e("label"))
|
|
428
|
+
}, [j(C.$slots, "default"), C.$slots.default ? K("v-if", !0) : (y(), B(ve, { key: 0 }, [be(me(e.label), 1)], 64))], 2)) : K("v-if", !0)]),
|
|
429
|
+
_: 3
|
|
430
|
+
}, 8, [
|
|
431
|
+
"for",
|
|
432
|
+
"class",
|
|
433
|
+
"aria-controls",
|
|
434
|
+
"aria-checked",
|
|
435
|
+
"aria-label",
|
|
436
|
+
"onClick"
|
|
437
|
+
]));
|
|
438
|
+
}
|
|
439
|
+
}), ye = nt;
|
|
440
|
+
const ut = [
|
|
441
|
+
"name",
|
|
442
|
+
"tabindex",
|
|
443
|
+
"disabled"
|
|
444
|
+
];
|
|
445
|
+
var ot = /* @__PURE__ */ T({
|
|
446
|
+
name: "ElCheckboxButton",
|
|
447
|
+
__name: "checkbox-button",
|
|
448
|
+
props: he,
|
|
449
|
+
emits: xe,
|
|
450
|
+
setup(e) {
|
|
451
|
+
const t = e, { isFocused: a, isChecked: u, isDisabled: l, checkboxButtonSize: o, model: r, actualValue: s, handleChange: b } = Ce(t, oe()), d = v(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
452
|
+
"true-value": t.trueValue ?? t.trueLabel ?? !0,
|
|
453
|
+
"false-value": t.falseValue ?? t.falseLabel ?? !1
|
|
454
|
+
} : { value: s.value }), f = L(S, void 0), m = U("checkbox"), x = v(() => {
|
|
455
|
+
var i, g;
|
|
456
|
+
const n = ((i = f == null ? void 0 : f.fill) == null ? void 0 : i.value) ?? "";
|
|
457
|
+
return {
|
|
458
|
+
backgroundColor: n,
|
|
459
|
+
borderColor: n,
|
|
460
|
+
color: ((g = f == null ? void 0 : f.textColor) == null ? void 0 : g.value) ?? "",
|
|
461
|
+
boxShadow: n ? `-1px 0 0 0 ${n}` : void 0
|
|
462
|
+
};
|
|
463
|
+
}), k = v(() => [
|
|
464
|
+
m.b("button"),
|
|
465
|
+
m.bm("button", o.value),
|
|
466
|
+
m.is("disabled", l.value),
|
|
467
|
+
m.is("checked", u.value),
|
|
468
|
+
m.is("focus", a.value)
|
|
469
|
+
]);
|
|
470
|
+
return (n, i) => (y(), B("label", { class: p(k.value) }, [ie(N("input", R({
|
|
471
|
+
"onUpdate:modelValue": i[0] || (i[0] = (g) => re(r) ? r.value = g : null),
|
|
472
|
+
class: c(m).be("button", "original"),
|
|
473
|
+
type: "checkbox",
|
|
474
|
+
name: e.name,
|
|
475
|
+
tabindex: e.tabindex,
|
|
476
|
+
disabled: c(l)
|
|
477
|
+
}, d.value, {
|
|
478
|
+
onChange: i[1] || (i[1] = (...g) => c(b) && c(b)(...g)),
|
|
479
|
+
onFocus: i[2] || (i[2] = (g) => a.value = !0),
|
|
480
|
+
onBlur: i[3] || (i[3] = (g) => a.value = !1),
|
|
481
|
+
onClick: i[4] || (i[4] = de(() => {
|
|
482
|
+
}, ["stop"]))
|
|
483
|
+
}), null, 16, ut), [[ce, c(r)]]), n.$slots.default || e.label ? (y(), B("span", {
|
|
484
|
+
key: 0,
|
|
485
|
+
class: p(c(m).be("button", "inner")),
|
|
486
|
+
style: Pe(c(u) ? x.value : void 0)
|
|
487
|
+
}, [j(n.$slots, "default", {}, () => [be(me(e.label), 1)])], 6)) : K("v-if", !0)], 2));
|
|
488
|
+
}
|
|
489
|
+
}), q = ot, st = /* @__PURE__ */ T({
|
|
490
|
+
name: "ElCheckboxGroup",
|
|
491
|
+
__name: "checkbox-group",
|
|
492
|
+
props: Xe,
|
|
493
|
+
emits: Ze,
|
|
494
|
+
setup(e, { emit: t }) {
|
|
495
|
+
const a = e, u = t, l = U("checkbox"), o = te(), { formItem: r } = M(), { inputId: s, isLabeledByFormItem: b } = ae(a, { formItemContext: r }), d = async (n) => {
|
|
496
|
+
u(O, n), await ue(), u(z, n);
|
|
497
|
+
}, f = v({
|
|
498
|
+
get() {
|
|
499
|
+
return a.modelValue;
|
|
500
|
+
},
|
|
501
|
+
set(n) {
|
|
502
|
+
d(n);
|
|
503
|
+
}
|
|
504
|
+
}), m = v(() => ({
|
|
505
|
+
...ke,
|
|
506
|
+
...a.props
|
|
507
|
+
})), x = (n) => {
|
|
508
|
+
const { label: i, value: g, disabled: C } = m.value, h = {
|
|
509
|
+
label: n[i],
|
|
510
|
+
value: n[g],
|
|
511
|
+
disabled: n[C]
|
|
512
|
+
};
|
|
513
|
+
return {
|
|
514
|
+
...We(n, [
|
|
515
|
+
i,
|
|
516
|
+
g,
|
|
517
|
+
C
|
|
518
|
+
]),
|
|
519
|
+
...h
|
|
520
|
+
};
|
|
521
|
+
}, k = v(() => a.type === "button" ? q : ye);
|
|
522
|
+
return we(S, {
|
|
523
|
+
...Ne(Ie(a), [
|
|
524
|
+
"size",
|
|
525
|
+
"min",
|
|
526
|
+
"max",
|
|
527
|
+
"validateEvent",
|
|
528
|
+
"fill",
|
|
529
|
+
"textColor"
|
|
530
|
+
]),
|
|
531
|
+
disabled: o,
|
|
532
|
+
modelValue: f,
|
|
533
|
+
changeEvent: d
|
|
534
|
+
}), ne(() => a.modelValue, (n, i) => {
|
|
535
|
+
a.validateEvent && !fe(n, i) && (r == null || r.validate("change").catch(X));
|
|
536
|
+
}), (n, i) => {
|
|
537
|
+
var g;
|
|
538
|
+
return y(), _($(e.tag), {
|
|
539
|
+
id: c(s),
|
|
540
|
+
class: p(c(l).b("group")),
|
|
541
|
+
role: "group",
|
|
542
|
+
"aria-label": c(b) ? void 0 : e.ariaLabel || "checkbox-group",
|
|
543
|
+
"aria-labelledby": c(b) ? (g = c(r)) == null ? void 0 : g.labelId : void 0
|
|
544
|
+
}, {
|
|
545
|
+
default: se(() => [j(n.$slots, "default", {}, () => [(y(!0), B(ve, null, Fe(e.options, (C, h) => (y(), _($(k.value), R({ key: h }, { ref_for: !0 }, x(C)), null, 16))), 128))])]),
|
|
546
|
+
_: 3
|
|
547
|
+
}, 8, [
|
|
548
|
+
"id",
|
|
549
|
+
"class",
|
|
550
|
+
"aria-label",
|
|
551
|
+
"aria-labelledby"
|
|
552
|
+
]);
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
}), pe = st;
|
|
556
|
+
const gt = Ee(ye, {
|
|
557
|
+
CheckboxButton: q,
|
|
558
|
+
CheckboxGroup: pe
|
|
559
|
+
});
|
|
560
|
+
Z(q);
|
|
561
|
+
const ht = Z(pe);
|
|
562
|
+
export {
|
|
563
|
+
gt as E,
|
|
564
|
+
ht as a,
|
|
565
|
+
We as o
|
|
566
|
+
};
|