st-comp 0.0.279 → 0.0.280

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.
Files changed (229) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +13 -14
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +342 -547
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +294 -294
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +19 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +253 -253
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +579 -553
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +17 -17
  15. package/es/KlinePlus.cjs +2 -2
  16. package/es/KlinePlus.js +23 -24
  17. package/es/MonacoEditor.cjs +1 -1
  18. package/es/MonacoEditor.js +30 -29
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +517 -425
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +46 -46
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +898 -866
  27. package/es/VarSelectDialog.cjs +3 -3
  28. package/es/VarSelectDialog.js +110 -109
  29. package/es/VarietyAiHelper.cjs +7 -7
  30. package/es/VarietyAiHelper.js +605 -443
  31. package/es/VarietyAutoComplete.cjs +1 -1
  32. package/es/VarietyAutoComplete.js +11 -11
  33. package/es/VarietySearch.cjs +18 -18
  34. package/es/VarietySearch.js +3079 -2913
  35. package/es/{VarietySelect-d58eee29.cjs → VarietySelect-aa082a9c.cjs} +1 -1
  36. package/es/{VarietySelect-41daac7b.js → VarietySelect-c402bade.js} +5 -5
  37. package/es/VarietyTextCopy.cjs +3 -3
  38. package/es/VarietyTextCopy.js +51 -51
  39. package/es/VirtualTable.cjs +13 -1
  40. package/es/VirtualTable.js +1929 -2261
  41. package/es/_baseClone-10bdb989.cjs +1 -0
  42. package/es/_baseClone-98af8b33.js +210 -0
  43. package/es/base-d987e5c9.cjs +5 -0
  44. package/es/base-dd156b8e.js +790 -0
  45. package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
  46. package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
  47. package/es/clamp-17c4d8aa.cjs +1 -0
  48. package/es/clamp-c7512966.js +10 -0
  49. package/es/config-provider-33a127c4.cjs +1 -0
  50. package/es/config-provider-563023c9.js +86 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-ce7496c7.cjs +1 -0
  54. package/es/dropdown-feea8702.js +178 -0
  55. package/es/el-autocomplete-d9253bba.cjs +1 -0
  56. package/es/el-autocomplete-eac54f9f.js +434 -0
  57. package/es/el-button-8259594b.cjs +1 -0
  58. package/es/el-button-8a9721f8.js +343 -0
  59. package/es/el-checkbox-6303fc92.cjs +1 -0
  60. package/es/el-checkbox-c328b097.js +566 -0
  61. package/es/el-dialog-67536fac.js +252 -0
  62. package/es/el-dialog-8788bcc1.cjs +1 -0
  63. package/es/el-divider-3f0320be.cjs +1 -0
  64. package/es/el-divider-c5d72961.js +51 -0
  65. package/es/el-empty-552baf04.js +159 -0
  66. package/es/el-empty-58bc2a10.cjs +1 -0
  67. package/es/el-form-item-8efcf2c3.js +1265 -0
  68. package/es/el-form-item-95e68669.cjs +12 -0
  69. package/es/el-input-c8a9bb71.cjs +1 -0
  70. package/es/el-input-e66500b7.js +761 -0
  71. package/es/el-input-number-68ee0d65.js +390 -0
  72. package/es/el-input-number-d7a81922.cjs +1 -0
  73. package/es/el-loading-62132db2.cjs +1 -0
  74. package/es/el-loading-db4c6d13.js +190 -0
  75. package/es/el-menu-item-4b8e7794.cjs +1 -0
  76. package/es/el-menu-item-c2523d82.js +824 -0
  77. package/es/el-message-box-7c13546c.js +481 -0
  78. package/es/el-message-box-fed174f0.cjs +1 -0
  79. package/es/el-overlay-17299785.cjs +1 -0
  80. package/es/el-overlay-36f223e9.js +444 -0
  81. package/es/el-popconfirm-520b2928.cjs +1 -0
  82. package/es/el-popconfirm-a857c54a.js +190 -0
  83. package/es/el-popper-852446fd.js +2235 -0
  84. package/es/el-popper-f824c63b.cjs +1 -0
  85. package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
  86. package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
  87. package/es/el-segmented-45dcc036.cjs +1 -0
  88. package/es/el-segmented-bf08279f.js +168 -0
  89. package/es/el-select-a34348e1.js +1535 -0
  90. package/es/el-select-d2958ae8.cjs +1 -0
  91. package/es/el-table-column-ad70ee0e.cjs +14 -0
  92. package/es/el-table-column-e2be313e.js +3651 -0
  93. package/es/el-tag-527f06f0.cjs +1 -0
  94. package/es/el-tag-9bcfae32.js +77 -0
  95. package/es/el-text-f9379288.js +84 -0
  96. package/es/el-text-fc345ffd.cjs +1 -0
  97. package/es/index-2419d69a.js +468 -0
  98. package/es/index-3806160e.js +710 -0
  99. package/es/index-3a0a7c36.cjs +1 -0
  100. package/es/index-3e7d5ffb.cjs +1 -0
  101. package/es/index-3ed0c678.cjs +1 -0
  102. package/es/index-47d30a52.js +372 -0
  103. package/es/index-5dec535a.cjs +1 -0
  104. package/es/index-5e76a22d.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-60900c6c.js} +223 -254
  106. package/es/{index-a33b2fb8.js → index-69d2353a.js} +5090 -5090
  107. package/es/index-71ba4c28.cjs +1 -0
  108. package/es/index-7711aa69.cjs +1 -0
  109. package/es/index-7c4d8f5d.js +47 -0
  110. package/es/index-86678b72.js +131 -0
  111. package/es/index-99bb359f.cjs +1 -0
  112. package/es/index-99d4335d.cjs +1 -0
  113. package/es/index-a0522466.js +413 -0
  114. package/es/index-a181f161.js +429 -0
  115. package/es/index-b9a26e7f.js +141 -0
  116. package/es/{index-a9246d17.cjs → index-bb0bc131.cjs} +109 -109
  117. package/es/index-d372e68f.cjs +5 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/{index-44a382a5.js → index-dfb34e00.js} +12 -12
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-8a1664e6.js → python-6eafa04b.js} +32 -31
  122. package/es/{python-a3db9620.cjs → python-922eca89.cjs} +1 -1
  123. package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
  124. package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
  125. package/es/scroll-07bade1e.cjs +1 -0
  126. package/es/scroll-70271cb1.js +35 -0
  127. package/es/style.css +1 -1
  128. package/es/toNumber-b47ceb68.cjs +1 -0
  129. package/es/toNumber-f077c66a.js +31 -0
  130. package/es/use-form-item-0a831287.cjs +2 -0
  131. package/es/use-form-item-187cd7db.js +422 -0
  132. package/es/use-global-config-17dafd40.js +71 -0
  133. package/es/use-global-config-c90c91f7.cjs +1 -0
  134. package/es/{validator-c60a8956.js → validator-800ed2ba.js} +1 -1
  135. package/es/validator-ee5bc3eb.cjs +1 -0
  136. package/es/vnode-6f7b84f0.cjs +1 -0
  137. package/es/vnode-8ee9bf4e.js +12 -0
  138. package/es/{zh-cn-b59a0910.js → zh-cn-26cc7233.js} +36 -33
  139. package/es/zh-cn-a22a6792.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +271 -252
  142. package/lib/{index-62fa175a.js → index-74ed48c6.js} +54107 -52151
  143. package/lib/{python-4a48fa39.js → python-7aaa84e4.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/package.json +1 -1
  146. package/es/_initCloneObject-5e73c9c8.js +0 -81
  147. package/es/_initCloneObject-a5832933.cjs +0 -1
  148. package/es/base-a5af3db3.js +0 -288
  149. package/es/base-ef747d02.cjs +0 -5
  150. package/es/config-provider-06ea6b42.cjs +0 -1
  151. package/es/config-provider-88b637a8.js +0 -59
  152. package/es/dayjs.min-2c20abe6.cjs +0 -1
  153. package/es/dayjs.min-8313b006.js +0 -299
  154. package/es/debounce-62f5b6e8.cjs +0 -1
  155. package/es/debounce-8d53f4dd.js +0 -83
  156. package/es/dropdown-4ce4c3e2.cjs +0 -1
  157. package/es/dropdown-72fbc15d.js +0 -178
  158. package/es/el-autocomplete-6cafcdf1.js +0 -329
  159. package/es/el-autocomplete-e0857c5b.cjs +0 -1
  160. package/es/el-button-613e0bb2.cjs +0 -1
  161. package/es/el-button-94d3de38.js +0 -272
  162. package/es/el-checkbox-6d4cb393.js +0 -459
  163. package/es/el-checkbox-e90762df.cjs +0 -1
  164. package/es/el-dialog-02942e22.cjs +0 -1
  165. package/es/el-dialog-5e30161f.js +0 -276
  166. package/es/el-divider-4713d74c.cjs +0 -1
  167. package/es/el-divider-4e059794.js +0 -45
  168. package/es/el-empty-1697ded8.cjs +0 -1
  169. package/es/el-empty-33cb66f1.js +0 -183
  170. package/es/el-form-item-44f060d8.cjs +0 -12
  171. package/es/el-form-item-9e8969ea.js +0 -1269
  172. package/es/el-input-342b2def.js +0 -531
  173. package/es/el-input-9a9a7f7f.cjs +0 -1
  174. package/es/el-input-number-65c847d6.cjs +0 -1
  175. package/es/el-input-number-c22b803a.js +0 -311
  176. package/es/el-loading-8179b497.cjs +0 -1
  177. package/es/el-loading-bcc51e3d.js +0 -203
  178. package/es/el-menu-item-339baf6d.js +0 -768
  179. package/es/el-menu-item-83186444.cjs +0 -1
  180. package/es/el-message-box-035b699c.js +0 -489
  181. package/es/el-message-box-c62d3217.cjs +0 -1
  182. package/es/el-overlay-3e17604b.js +0 -324
  183. package/es/el-overlay-8f1da9e8.cjs +0 -1
  184. package/es/el-popconfirm-4e32ec1b.cjs +0 -1
  185. package/es/el-popconfirm-f8a86e2c.js +0 -162
  186. package/es/el-popper-a4f3ae4d.cjs +0 -1
  187. package/es/el-popper-fbd0dcea.js +0 -2094
  188. package/es/el-segmented-56bd58a8.js +0 -142
  189. package/es/el-segmented-833ac177.cjs +0 -1
  190. package/es/el-select-44fa547d.js +0 -1256
  191. package/es/el-select-70806166.cjs +0 -1
  192. package/es/el-table-column-3e2cdfca.cjs +0 -14
  193. package/es/el-table-column-b74a857d.js +0 -3432
  194. package/es/el-tag-66c83156.js +0 -117
  195. package/es/el-tag-9c2f329f.cjs +0 -1
  196. package/es/el-text-034bd3f4.js +0 -67
  197. package/es/el-text-6b2374bb.cjs +0 -1
  198. package/es/index-00f6ca75.cjs +0 -1
  199. package/es/index-185792a7.cjs +0 -1
  200. package/es/index-1e2a38ab.js +0 -113
  201. package/es/index-2e331d74.js +0 -10
  202. package/es/index-3153c1db.cjs +0 -1
  203. package/es/index-5216d5f5.js +0 -406
  204. package/es/index-5c0dd943.cjs +0 -1
  205. package/es/index-657047bb.js +0 -513
  206. package/es/index-870b6c9d.cjs +0 -1
  207. package/es/index-8c2d7e05.js +0 -368
  208. package/es/index-960806da.js +0 -314
  209. package/es/index-9780a537.cjs +0 -1
  210. package/es/index-9d16cea8.cjs +0 -1
  211. package/es/index-ac8dc53d.cjs +0 -1
  212. package/es/index-bb833443.cjs +0 -1
  213. package/es/index-c5f2d372.js +0 -326
  214. package/es/index-c6584658.js +0 -163
  215. package/es/index-d77a7336.js +0 -204
  216. package/es/index-eea0bcb3.cjs +0 -1
  217. package/es/index-f034b910.js +0 -60
  218. package/es/index-f1c702f6.cjs +0 -1
  219. package/es/index-f58b2920.cjs +0 -1
  220. package/es/scroll-679bd6bf.js +0 -35
  221. package/es/scroll-b108dabd.cjs +0 -1
  222. package/es/use-form-common-props-ac666630.cjs +0 -1
  223. package/es/use-form-common-props-ed72e914.js +0 -364
  224. package/es/use-global-config-23472471.cjs +0 -1
  225. package/es/use-global-config-ee406d58.js +0 -72
  226. package/es/validator-366dbf39.cjs +0 -1
  227. package/es/vnode-5ddb7ed1.js +0 -14
  228. package/es/vnode-b906ae6d.cjs +0 -1
  229. 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-852446fd.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-187cd7db.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-47d30a52.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-98af8b33.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
+ };