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,444 @@
1
+ import { U as Y } from "./el-popper-852446fd.js";
2
+ import { t as se, u as q, j as ue, h as ie, z as re, r as ce, N as D, b as L, c as f, q as de, p as fe, k as ve, v as ye, m as me, B as V, e as $, y as ge } from "./base-dd156b8e.js";
3
+ import { i as be, v as Ce } from "./use-form-item-187cd7db.js";
4
+ import { isRef as pe, computed as u, watch as E, onScopeDispose as Be, defineComponent as Oe, createVNode as he, renderSlot as U, h as Ee, getCurrentInstance as xe, ref as B, nextTick as we, onMounted as Ae } from "vue";
5
+ import { g as Ie } from "./scroll-70271cb1.js";
6
+ import { a as W } from "./index-a181f161.js";
7
+ import { a as Se } from "./use-global-config-17dafd40.js";
8
+ const Me = (e, t = {}) => {
9
+ pe(e) || se("[useLockscreen]", "You need to pass a ref param to this function");
10
+ const n = t.ns || q("popup"), s = u(() => n.bm("parent", "hidden"));
11
+ let i = 0, r = !1, l = "0", a = !1;
12
+ const v = () => {
13
+ a || (a = !0, setTimeout(() => {
14
+ typeof document > "u" || r && document && (document.body.style.width = l, ce(document.body, s.value));
15
+ }, 200));
16
+ };
17
+ E(e, (g) => {
18
+ if (!g) {
19
+ v();
20
+ return;
21
+ }
22
+ a = !1, r = !ue(document.body, s.value), r && (l = document.body.style.width, ie(document.body, s.value)), i = Ie(n.namespace.value);
23
+ const b = document.documentElement.clientHeight < document.body.scrollHeight, C = re(document.body, "overflowY");
24
+ i > 0 && (b || C === "scroll") && r && (document.body.style.width = `calc(100% - ${i}px)`);
25
+ }), Be(() => v());
26
+ }, ke = (e) => {
27
+ if (!e)
28
+ return {
29
+ onClick: D,
30
+ onMousedown: D,
31
+ onMouseup: D
32
+ };
33
+ let t = !1, n = !1;
34
+ return {
35
+ onClick: (l) => {
36
+ t && n && e(l), t = n = !1;
37
+ },
38
+ onMousedown: (l) => {
39
+ t = l.target === l.currentTarget;
40
+ },
41
+ onMouseup: (l) => {
42
+ n = l.target === l.currentTarget;
43
+ }
44
+ };
45
+ }, De = L({
46
+ /**
47
+ * @description whether to align the header and footer in center
48
+ */
49
+ center: Boolean,
50
+ /**
51
+ * @description whether to align the dialog both horizontally and vertically
52
+ */
53
+ alignCenter: {
54
+ type: Boolean,
55
+ default: void 0
56
+ },
57
+ /**
58
+ * @description custom close icon, default is Close
59
+ */
60
+ closeIcon: { type: be },
61
+ /**
62
+ * @description enable dragging feature for Dialog
63
+ */
64
+ draggable: {
65
+ type: Boolean,
66
+ default: void 0
67
+ },
68
+ /**
69
+ * @description draggable Dialog can overflow the viewport
70
+ */
71
+ overflow: {
72
+ type: Boolean,
73
+ default: void 0
74
+ },
75
+ /**
76
+ * @description whether the Dialog takes up full screen
77
+ */
78
+ fullscreen: Boolean,
79
+ /**
80
+ * @description custom class names for header wrapper
81
+ */
82
+ headerClass: {
83
+ type: f([
84
+ String,
85
+ Array,
86
+ Object,
87
+ Boolean
88
+ ]),
89
+ default: void 0
90
+ },
91
+ /**
92
+ * @description custom class names for body wrapper
93
+ */
94
+ bodyClass: {
95
+ type: f([
96
+ String,
97
+ Array,
98
+ Object,
99
+ Boolean
100
+ ]),
101
+ default: void 0
102
+ },
103
+ /**
104
+ * @description custom class names for footer wrapper
105
+ */
106
+ footerClass: {
107
+ type: f([
108
+ String,
109
+ Array,
110
+ Object,
111
+ Boolean
112
+ ]),
113
+ default: void 0
114
+ },
115
+ /**
116
+ * @description whether to show a close button
117
+ */
118
+ showClose: {
119
+ type: Boolean,
120
+ default: !0
121
+ },
122
+ /**
123
+ * @description title of Dialog. Can also be passed with a named slot (see the following table)
124
+ */
125
+ title: {
126
+ type: String,
127
+ default: ""
128
+ },
129
+ /**
130
+ * @description header's aria-level attribute
131
+ */
132
+ ariaLevel: {
133
+ type: String,
134
+ default: "2"
135
+ }
136
+ }), Ke = { close: () => !0 }, Ye = L({
137
+ ...De,
138
+ /**
139
+ * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`
140
+ */
141
+ appendToBody: Boolean,
142
+ /**
143
+ * @description which element the Dialog appends to
144
+ */
145
+ appendTo: {
146
+ type: f([String, Object]),
147
+ default: "body"
148
+ },
149
+ /**
150
+ * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog
151
+ */
152
+ beforeClose: { type: f(Function) },
153
+ /**
154
+ * @description destroy elements in Dialog when closed
155
+ */
156
+ destroyOnClose: Boolean,
157
+ /**
158
+ * @description whether the Dialog can be closed by clicking the mask
159
+ */
160
+ closeOnClickModal: {
161
+ type: Boolean,
162
+ default: !0
163
+ },
164
+ /**
165
+ * @description whether the Dialog can be closed by pressing ESC
166
+ */
167
+ closeOnPressEscape: {
168
+ type: Boolean,
169
+ default: !0
170
+ },
171
+ /**
172
+ * @description whether scroll of body is disabled while Dialog is displayed
173
+ */
174
+ lockScroll: {
175
+ type: Boolean,
176
+ default: !0
177
+ },
178
+ /**
179
+ * @description whether a mask is displayed
180
+ */
181
+ modal: {
182
+ type: Boolean,
183
+ default: !0
184
+ },
185
+ /**
186
+ * @description whether the mask is penetrable
187
+ */
188
+ modalPenetrable: Boolean,
189
+ /**
190
+ * @description the Time(milliseconds) before open
191
+ */
192
+ openDelay: {
193
+ type: Number,
194
+ default: 0
195
+ },
196
+ /**
197
+ * @description the Time(milliseconds) before close
198
+ */
199
+ closeDelay: {
200
+ type: Number,
201
+ default: 0
202
+ },
203
+ /**
204
+ * @description value for `margin-top` of Dialog CSS, default is 15vh
205
+ */
206
+ top: { type: String },
207
+ /**
208
+ * @description visibility of Dialog
209
+ */
210
+ modelValue: Boolean,
211
+ /**
212
+ * @description custom class names for mask
213
+ */
214
+ modalClass: {
215
+ type: f([
216
+ String,
217
+ Array,
218
+ Object,
219
+ Boolean
220
+ ]),
221
+ default: void 0
222
+ },
223
+ /**
224
+ * @description width of Dialog, default is 50%
225
+ */
226
+ width: { type: [String, Number] },
227
+ /**
228
+ * @description same as z-index in native CSS, z-order of dialog
229
+ */
230
+ zIndex: { type: Number },
231
+ trapFocus: Boolean,
232
+ /**
233
+ * @description header's aria-level attribute
234
+ */
235
+ headerAriaLevel: {
236
+ type: String,
237
+ default: "2"
238
+ },
239
+ /**
240
+ * @description custom transition configuration for dialog animation, it can be a string (transition name) or an object with Vue transition props
241
+ */
242
+ transition: {
243
+ type: f([String, Object]),
244
+ default: void 0
245
+ }
246
+ }), qe = {
247
+ open: () => !0,
248
+ opened: () => !0,
249
+ close: () => !0,
250
+ closed: () => !0,
251
+ [Y]: (e) => de(e),
252
+ openAutoFocus: () => !0,
253
+ closeAutoFocus: () => !0
254
+ }, Le = L({
255
+ mask: {
256
+ type: Boolean,
257
+ default: !0
258
+ },
259
+ customMaskEvent: Boolean,
260
+ overlayClass: {
261
+ type: f([
262
+ String,
263
+ Array,
264
+ Object,
265
+ Boolean
266
+ ]),
267
+ default: void 0
268
+ },
269
+ zIndex: { type: f([String, Number]) }
270
+ }), Pe = { click: (e) => e instanceof MouseEvent }, Ne = "overlay";
271
+ var Te = Oe({
272
+ name: "ElOverlay",
273
+ props: Le,
274
+ emits: Pe,
275
+ setup(e, { slots: t, emit: n }) {
276
+ const s = q(Ne), i = (v) => {
277
+ n("click", v);
278
+ }, { onClick: r, onMousedown: l, onMouseup: a } = ke(e.customMaskEvent ? void 0 : i);
279
+ return () => e.mask ? he("div", {
280
+ class: [s.b(), e.overlayClass],
281
+ style: { zIndex: e.zIndex },
282
+ onClick: r,
283
+ onMousedown: l,
284
+ onMouseup: a
285
+ }, [U(t, "default")], 14, [
286
+ "onClick",
287
+ "onMouseup",
288
+ "onMousedown"
289
+ ]) : Ee("div", {
290
+ class: e.overlayClass,
291
+ style: {
292
+ zIndex: e.zIndex,
293
+ position: "fixed",
294
+ top: "0px",
295
+ right: "0px",
296
+ bottom: "0px",
297
+ left: "0px"
298
+ }
299
+ }, [U(t, "default")]);
300
+ }
301
+ });
302
+ const Ge = Te, He = Symbol("dialogInjectionKey"), K = "dialog-fade", ze = "ElDialog", Ze = (e, t) => {
303
+ const n = xe().emit, { nextZIndex: s } = Ce();
304
+ let i = "";
305
+ const r = W(), l = W(), a = B(!1), v = B(!1), g = B(!1), b = B(e.zIndex ?? s()), C = B(!1);
306
+ let y, m;
307
+ const P = Se(), G = u(() => {
308
+ var o;
309
+ return ((o = P.value) == null ? void 0 : o.namespace) ?? "el";
310
+ }), O = u(() => {
311
+ var o;
312
+ return (o = P.value) == null ? void 0 : o.dialog;
313
+ }), H = u(() => {
314
+ const o = {}, c = `--${G.value}-dialog`;
315
+ if (!e.fullscreen) {
316
+ e.top && (o[`${c}-margin-top`] = e.top);
317
+ const p = fe(e.width);
318
+ p && (o[`${c}-width`] = p);
319
+ }
320
+ return o;
321
+ }), Z = u(() => {
322
+ var o;
323
+ return (e.draggable ?? ((o = O.value) == null ? void 0 : o.draggable) ?? !1) && !e.fullscreen;
324
+ }), N = u(() => {
325
+ var o;
326
+ return e.alignCenter ?? ((o = O.value) == null ? void 0 : o.alignCenter) ?? !1;
327
+ }), J = u(() => {
328
+ var o;
329
+ return e.overflow ?? ((o = O.value) == null ? void 0 : o.overflow) ?? !1;
330
+ }), T = u(() => e.modalPenetrable && !e.modal && !e.fullscreen), Q = u(() => N.value ? { display: "flex" } : {}), X = u(() => {
331
+ var p;
332
+ const o = e.transition ?? ((p = O.value) == null ? void 0 : p.transition) ?? "dialog-fade", c = {
333
+ name: o,
334
+ onAfterEnter: x,
335
+ onBeforeLeave: A,
336
+ onAfterLeave: w
337
+ };
338
+ if (ve(o)) {
339
+ const d = { ...o }, k = (h, ae) => (j) => {
340
+ me(h) ? h.forEach((_) => {
341
+ V(_) && _(j);
342
+ }) : V(h) && h(j), ae();
343
+ };
344
+ return d.onAfterEnter = k(d.onAfterEnter, x), d.onBeforeLeave = k(d.onBeforeLeave, A), d.onAfterLeave = k(d.onAfterLeave, w), d.name || (d.name = K, ye(ze, `transition.name is missing when using object syntax, fallback to '${K}'`)), d;
345
+ }
346
+ return c;
347
+ });
348
+ function x() {
349
+ n("opened");
350
+ }
351
+ function w() {
352
+ n("closed"), n(Y, !1), e.destroyOnClose && (g.value = !1), C.value = !1;
353
+ }
354
+ function A() {
355
+ C.value = !0, n("close");
356
+ }
357
+ function z() {
358
+ m == null || m(), y == null || y(), e.openDelay && e.openDelay > 0 ? { stop: y } = $(() => F(), e.openDelay) : F();
359
+ }
360
+ function I() {
361
+ y == null || y(), m == null || m(), e.closeDelay && e.closeDelay > 0 ? { stop: m } = $(() => M(), e.closeDelay) : M();
362
+ }
363
+ function S() {
364
+ function o(c) {
365
+ c || (v.value = !0, a.value = !1);
366
+ }
367
+ e.beforeClose ? e.beforeClose(o) : I();
368
+ }
369
+ function R() {
370
+ e.closeOnClickModal && S();
371
+ }
372
+ function F() {
373
+ ge && (a.value = !0);
374
+ }
375
+ function M() {
376
+ a.value = !1;
377
+ }
378
+ function ee() {
379
+ n("openAutoFocus");
380
+ }
381
+ function oe() {
382
+ n("closeAutoFocus");
383
+ }
384
+ function te(o) {
385
+ var c;
386
+ ((c = o.detail) == null ? void 0 : c.focusReason) === "pointer" && o.preventDefault();
387
+ }
388
+ e.lockScroll && Me(a);
389
+ function ne() {
390
+ e.closeOnPressEscape && S();
391
+ }
392
+ function le() {
393
+ !a.value || !T.value || e.zIndex !== void 0 || (b.value = s());
394
+ }
395
+ return E(() => e.zIndex, () => {
396
+ b.value = e.zIndex ?? s();
397
+ }), E(() => e.modelValue, (o) => {
398
+ o ? (v.value = !1, C.value = !1, z(), g.value = !0, b.value = e.zIndex ?? s(), we(() => {
399
+ n("open"), t.value && (t.value.parentElement.scrollTop = 0, t.value.parentElement.scrollLeft = 0, t.value.scrollTop = 0);
400
+ })) : a.value && I();
401
+ }), E(() => e.fullscreen, (o) => {
402
+ t.value && (o ? (i = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = i);
403
+ }), Ae(() => {
404
+ e.modelValue && (a.value = !0, g.value = !0, z());
405
+ }), {
406
+ afterEnter: x,
407
+ afterLeave: w,
408
+ beforeLeave: A,
409
+ handleClose: S,
410
+ onModalClick: R,
411
+ close: I,
412
+ doClose: M,
413
+ onOpenAutoFocus: ee,
414
+ onCloseAutoFocus: oe,
415
+ onCloseRequested: ne,
416
+ onFocusoutPrevented: te,
417
+ bringToFront: le,
418
+ titleId: r,
419
+ bodyId: l,
420
+ closed: v,
421
+ style: H,
422
+ overlayDialogStyle: Q,
423
+ rendered: g,
424
+ visible: a,
425
+ zIndex: b,
426
+ transitionConfig: X,
427
+ _draggable: Z,
428
+ _alignCenter: N,
429
+ _overflow: J,
430
+ closing: C,
431
+ penetrable: T
432
+ };
433
+ };
434
+ export {
435
+ Ge as E,
436
+ qe as a,
437
+ Me as b,
438
+ ke as c,
439
+ Ye as d,
440
+ De as e,
441
+ Ke as f,
442
+ He as g,
443
+ Ze as u
444
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("./base-d987e5c9.cjs"),k=require("./index-d372e68f.cjs"),g=require("./index-3e7d5ffb.cjs"),r=require("./el-popper-f824c63b.cjs"),c=require("./el-button-8259594b.cjs"),S=require("./use-form-item-0a831287.cjs"),e=require("vue"),E=l.buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:c.buttonTypes,default:"primary"},cancelButtonType:{type:String,values:c.buttonTypes,default:"text"},icon:{type:S.iconPropType,default:()=>g.question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...r.useTooltipContentProps.effect,default:"light"},teleported:r.useTooltipContentProps.teleported,persistent:r.useTooltipContentProps.persistent,width:{type:[String,Number],default:150},virtualTriggering:r.useTooltipTriggerProps.virtualTriggering,virtualRef:r.useTooltipTriggerProps.virtualRef}),N={confirm:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent};var w=e.defineComponent({name:"ElPopconfirm",__name:"popconfirm",props:E,emits:N,setup(t,{expose:T,emit:v}){const a=t,f=v,{t:p}=k.useLocale(),i=l.useNamespace("popconfirm"),s=e.ref(),m=e.ref(),x=e.computed(()=>{var o;return(o=e.unref(s))==null?void 0:o.popperRef}),B=()=>{var o,n;(n=(o=m.value)==null?void 0:o.focus)==null||n.call(o)},u=()=>{var o,n;(n=(o=s.value)==null?void 0:o.onClose)==null||n.call(o)},C=e.computed(()=>({width:l.addUnit(a.width)})),d=o=>{f("confirm",o),u()},y=o=>{f("cancel",o),u()},h=e.computed(()=>a.confirmButtonText||p("el.popconfirm.confirmButtonText")),P=e.computed(()=>a.cancelButtonText||p("el.popconfirm.cancelButtonText"));return T({popperRef:x,hide:u}),(o,n)=>(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),e.mergeProps({ref_key:"tooltipRef",ref:s,trigger:"click",effect:t.effect},o.$attrs,{"virtual-triggering":t.virtualTriggering,"virtual-ref":t.virtualRef,"popper-class":`${e.unref(i).namespace.value}-popover`,"popper-style":C.value,teleported:t.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":t.hideAfter,persistent:t.persistent,loop:"",onShow:B}),{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"rootRef",ref:m,tabindex:"-1",class:e.normalizeClass(e.unref(i).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("main"))},[!t.hideIcon&&t.icon?(e.openBlock(),e.createBlock(e.unref(g.ElIcon),{key:0,class:e.normalizeClass(e.unref(i).e("icon")),style:e.normalizeStyle({color:t.iconColor})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))]),_:1},8,["class","style"])):e.createCommentVNode("v-if",!0),e.createTextVNode(" "+e.toDisplayString(t.title),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("action"))},[e.renderSlot(o.$slots,"actions",{confirm:d,cancel:y},()=>[e.createVNode(e.unref(c.ElButton),{size:"small",type:t.cancelButtonType==="text"?"":t.cancelButtonType,text:t.cancelButtonType==="text",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value),1)]),_:1},8,["type","text"]),e.createVNode(e.unref(c.ElButton),{size:"small",type:t.confirmButtonType==="text"?"":t.confirmButtonType,text:t.confirmButtonType==="text",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:e.withCtx(()=>[o.$slots.reference?e.renderSlot(o.$slots,"reference",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),b=w;const V=l.withInstall(b);exports.ElPopconfirm=V;
@@ -0,0 +1,190 @@
1
+ import { b as A, u as D, p as M, w as L } from "./base-dd156b8e.js";
2
+ import { u as U } from "./index-a181f161.js";
3
+ import { q as j, E as F } from "./index-60900c6c.js";
4
+ import { b as p, c as C, E as G } from "./el-popper-852446fd.js";
5
+ import { b as E, E as b } from "./el-button-8a9721f8.js";
6
+ import { i as H } from "./use-form-item-187cd7db.js";
7
+ import { defineComponent as J, ref as P, computed as l, unref as o, openBlock as u, createBlock as m, mergeProps as K, withCtx as i, createElementVNode as d, normalizeClass as c, normalizeStyle as O, resolveDynamicComponent as Q, createCommentVNode as S, createTextVNode as y, toDisplayString as g, renderSlot as k, createVNode as R } from "vue";
8
+ const W = A({
9
+ /**
10
+ * @description Title
11
+ */
12
+ title: String,
13
+ /**
14
+ * @description Confirm button text
15
+ */
16
+ confirmButtonText: String,
17
+ /**
18
+ * @description Cancel button text
19
+ */
20
+ cancelButtonText: String,
21
+ /**
22
+ * @description Confirm button type
23
+ */
24
+ confirmButtonType: {
25
+ type: String,
26
+ values: E,
27
+ default: "primary"
28
+ },
29
+ /**
30
+ * @description Cancel button type
31
+ */
32
+ cancelButtonType: {
33
+ type: String,
34
+ values: E,
35
+ default: "text"
36
+ },
37
+ /**
38
+ * @description Icon Component
39
+ */
40
+ icon: {
41
+ type: H,
42
+ default: () => j
43
+ },
44
+ /**
45
+ * @description Icon color
46
+ */
47
+ iconColor: {
48
+ type: String,
49
+ default: "#f90"
50
+ },
51
+ /**
52
+ * @description is hide Icon
53
+ */
54
+ hideIcon: Boolean,
55
+ /**
56
+ * @description delay of disappear, in millisecond
57
+ */
58
+ hideAfter: {
59
+ type: Number,
60
+ default: 200
61
+ },
62
+ /**
63
+ * @description Tooltip theme, built-in theme: `dark` / `light`
64
+ */
65
+ effect: {
66
+ ...p.effect,
67
+ default: "light"
68
+ },
69
+ /**
70
+ * @description whether popconfirm is teleported to the body
71
+ */
72
+ teleported: p.teleported,
73
+ /**
74
+ * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed
75
+ */
76
+ persistent: p.persistent,
77
+ /**
78
+ * @description popconfirm width, min width 150px
79
+ */
80
+ width: {
81
+ type: [String, Number],
82
+ default: 150
83
+ },
84
+ virtualTriggering: C.virtualTriggering,
85
+ virtualRef: C.virtualRef
86
+ }), X = {
87
+ /**
88
+ * @description triggers when click confirm button
89
+ */
90
+ confirm: (e) => e instanceof MouseEvent,
91
+ /**
92
+ * @description triggers when click cancel button
93
+ */
94
+ cancel: (e) => e instanceof MouseEvent
95
+ };
96
+ var Y = /* @__PURE__ */ J({
97
+ name: "ElPopconfirm",
98
+ __name: "popconfirm",
99
+ props: W,
100
+ emits: X,
101
+ setup(e, { expose: w, emit: N }) {
102
+ const a = e, v = N, { t: T } = U(), r = D("popconfirm"), s = P(), B = P(), $ = l(() => {
103
+ var t;
104
+ return (t = o(s)) == null ? void 0 : t.popperRef;
105
+ }), z = () => {
106
+ var t, n;
107
+ (n = (t = B.value) == null ? void 0 : t.focus) == null || n.call(t);
108
+ }, f = () => {
109
+ var t, n;
110
+ (n = (t = s.value) == null ? void 0 : t.onClose) == null || n.call(t);
111
+ }, I = l(() => ({ width: M(a.width) })), x = (t) => {
112
+ v("confirm", t), f();
113
+ }, h = (t) => {
114
+ v("cancel", t), f();
115
+ }, V = l(() => a.confirmButtonText || T("el.popconfirm.confirmButtonText")), q = l(() => a.cancelButtonText || T("el.popconfirm.cancelButtonText"));
116
+ return w({
117
+ popperRef: $,
118
+ hide: f
119
+ }), (t, n) => (u(), m(o(G), K({
120
+ ref_key: "tooltipRef",
121
+ ref: s,
122
+ trigger: "click",
123
+ effect: e.effect
124
+ }, t.$attrs, {
125
+ "virtual-triggering": e.virtualTriggering,
126
+ "virtual-ref": e.virtualRef,
127
+ "popper-class": `${o(r).namespace.value}-popover`,
128
+ "popper-style": I.value,
129
+ teleported: e.teleported,
130
+ "fallback-placements": [
131
+ "bottom",
132
+ "top",
133
+ "right",
134
+ "left"
135
+ ],
136
+ "hide-after": e.hideAfter,
137
+ persistent: e.persistent,
138
+ loop: "",
139
+ onShow: z
140
+ }), {
141
+ content: i(() => [d("div", {
142
+ ref_key: "rootRef",
143
+ ref: B,
144
+ tabindex: "-1",
145
+ class: c(o(r).b())
146
+ }, [d("div", { class: c(o(r).e("main")) }, [!e.hideIcon && e.icon ? (u(), m(o(F), {
147
+ key: 0,
148
+ class: c(o(r).e("icon")),
149
+ style: O({ color: e.iconColor })
150
+ }, {
151
+ default: i(() => [(u(), m(Q(e.icon)))]),
152
+ _: 1
153
+ }, 8, ["class", "style"])) : S("v-if", !0), y(" " + g(e.title), 1)], 2), d("div", { class: c(o(r).e("action")) }, [k(t.$slots, "actions", {
154
+ confirm: x,
155
+ cancel: h
156
+ }, () => [R(o(b), {
157
+ size: "small",
158
+ type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
159
+ text: e.cancelButtonType === "text",
160
+ onClick: h
161
+ }, {
162
+ default: i(() => [y(g(q.value), 1)]),
163
+ _: 1
164
+ }, 8, ["type", "text"]), R(o(b), {
165
+ size: "small",
166
+ type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
167
+ text: e.confirmButtonType === "text",
168
+ onClick: x
169
+ }, {
170
+ default: i(() => [y(g(V.value), 1)]),
171
+ _: 1
172
+ }, 8, ["type", "text"])])], 2)], 2)]),
173
+ default: i(() => [t.$slots.reference ? k(t.$slots, "reference", { key: 0 }) : S("v-if", !0)]),
174
+ _: 3
175
+ }, 16, [
176
+ "effect",
177
+ "virtual-triggering",
178
+ "virtual-ref",
179
+ "popper-class",
180
+ "popper-style",
181
+ "teleported",
182
+ "hide-after",
183
+ "persistent"
184
+ ]));
185
+ }
186
+ }), Z = Y;
187
+ const le = L(Z);
188
+ export {
189
+ le as E
190
+ };