@wfrog/vc-ui 1.3.0 → 1.4.0

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 (221) hide show
  1. package/dist/es/chunk/{CCmEeM7D.mjs → B3GxuXVE.mjs} +6 -6
  2. package/dist/es/chunk/BL8WhaLp.mjs +427 -0
  3. package/dist/es/chunk/{BiHWk71g.mjs → BPqrpkTb.mjs} +4 -4
  4. package/dist/es/chunk/{C_7t9blX.mjs → BZ1uhZQF.mjs} +1 -1
  5. package/dist/es/chunk/{-ga82G_B.mjs → BdVq9mV6.mjs} +1 -1
  6. package/dist/es/chunk/{DGGhWn1A.mjs → BfjuZmry.mjs} +6 -5
  7. package/dist/es/chunk/{BLLKi_0v.mjs → Bu3XHP55.mjs} +1 -1
  8. package/dist/es/chunk/{DEiqPcuO.mjs → BvNFaD5d.mjs} +3 -3
  9. package/dist/es/chunk/BxibBO68.mjs +5741 -0
  10. package/dist/es/chunk/{DO-mBaf5.mjs → By7FMB3I.mjs} +1 -43
  11. package/dist/es/chunk/{DATKTbFj.mjs → CGhekNBa.mjs} +5 -5
  12. package/dist/es/chunk/{plK2vnjp.mjs → CJ0afvkJ.mjs} +1 -1
  13. package/dist/es/chunk/{CtYp4FB7.mjs → CK5Bluh4.mjs} +2 -2
  14. package/dist/es/chunk/{Vv8g5_A1.mjs → CKZGL4_3.mjs} +9 -8
  15. package/dist/es/chunk/CNEMJL35.mjs +69 -0
  16. package/dist/es/chunk/{C9ldJ8Hh.mjs → CPCieLBG.mjs} +1 -1
  17. package/dist/es/chunk/{C50_dziC.mjs → CQz3lhyS.mjs} +2 -1
  18. package/dist/es/chunk/{Cekqdlxf.mjs → CbYM6R_O.mjs} +12 -77
  19. package/dist/es/chunk/{CQbpo0im.mjs → CboHfRXN.mjs} +5 -6
  20. package/dist/es/chunk/{BambM7zX.mjs → Cdh3HNZa.mjs} +2 -2
  21. package/dist/es/chunk/{aX4SRHmD.mjs → Cg-Krnly.mjs} +2 -1
  22. package/dist/es/chunk/{9qQNa4bM.mjs → Cjp0Czyu.mjs} +1 -1
  23. package/dist/es/chunk/Cmb_E8Ip.mjs +184 -0
  24. package/dist/es/chunk/{BIK5Djc_.mjs → Co77DVCw.mjs} +2 -2
  25. package/dist/es/chunk/CqTa_Vd-.mjs +375 -0
  26. package/dist/es/{components/dual-pane/dual-pane.mjs → chunk/CsjEhAYY.mjs} +11 -91
  27. package/dist/es/chunk/{BQyZW57B.mjs → CwXV7M2F.mjs} +3 -3
  28. package/dist/es/chunk/{b9dx0jdT.mjs → D1MHFKtN.mjs} +3 -3
  29. package/dist/es/chunk/{DskGUrkJ.mjs → D6m3vWpc.mjs} +2 -1
  30. package/dist/es/chunk/{4F1xxyju.mjs → D6nWUATi.mjs} +48 -2117
  31. package/dist/es/chunk/{C6bIuBQg.mjs → D7CQDxqy.mjs} +3 -3
  32. package/dist/es/chunk/{Dqk3gyUk.mjs → D9Lr0Bzb.mjs} +1 -374
  33. package/dist/es/chunk/{Xk5kfdyT.mjs → DAIuzoFs.mjs} +2 -1
  34. package/dist/es/chunk/{OVbHCQoq.mjs → DCS0eqqM.mjs} +3 -101
  35. package/dist/es/chunk/{BJTCqgn1.mjs → DDR6UjaC.mjs} +1 -1
  36. package/dist/es/chunk/{BKmk2ptO.mjs → DNsAO9iB.mjs} +2 -2
  37. package/dist/es/chunk/{-_x5oKYF.mjs → DQK0ezHm.mjs} +5 -4
  38. package/dist/es/chunk/{BQHHM_Gw.mjs → DQi1QPak.mjs} +30 -70
  39. package/dist/es/chunk/{BaqDgAvL.mjs → DSt2uDNE.mjs} +22 -434
  40. package/dist/es/chunk/DSw4GnC6.mjs +44 -0
  41. package/dist/es/chunk/DTbnchOm.mjs +94 -0
  42. package/dist/es/chunk/DViraU6I.mjs +45 -0
  43. package/dist/es/chunk/{C540ZOUa.mjs → DX84QR5M.mjs} +10 -9
  44. package/dist/es/chunk/DYKOYbzT.mjs +2003 -0
  45. package/dist/es/chunk/{D1PKXAql.mjs → D_F7nIja.mjs} +3 -4
  46. package/dist/es/chunk/{DcTh6n4x.mjs → D_Mvdscy.mjs} +5 -4
  47. package/dist/es/chunk/DhGOsWxx.mjs +6 -0
  48. package/dist/es/chunk/{DFxeI_lP.mjs → DhGcJR5p.mjs} +6 -6
  49. package/dist/es/chunk/DxxbB5jY.mjs +34 -0
  50. package/dist/es/chunk/EMeQxUfH.mjs +49 -0
  51. package/dist/es/chunk/{eN6VJ63C.mjs → F2ph6lWu.mjs} +9 -8
  52. package/dist/es/chunk/{Dn-BFXcJ.mjs → dN0VcQc2.mjs} +1 -1
  53. package/dist/es/chunk/{DTpr71Gd.mjs → e5i7OJY-.mjs} +4 -4
  54. package/dist/es/chunk/fueZ9sVu.mjs +890 -0
  55. package/dist/es/chunk/{CV2NA_2e.mjs → ipA7n6-J.mjs} +1 -1
  56. package/dist/es/chunk/{Dw-yyl2m.mjs → q2jRgbir.mjs} +2 -2
  57. package/dist/es/chunk/{C72pWnuz.mjs → w7VqVeWU.mjs} +5 -4
  58. package/dist/es/chunk/{DWcIzeMM.mjs → ytiKcA3H.mjs} +108 -10
  59. package/dist/es/chunk/{DFHjl3eL.mjs → yuIXvUxc.mjs} +1 -1
  60. package/dist/es/components/backbottom/backbottom.mjs +2 -2
  61. package/dist/es/components/button/button.d.ts +2 -1
  62. package/dist/es/components/button/button.mjs +68 -17
  63. package/dist/es/components/button/button.vue.d.ts +4 -1
  64. package/dist/es/components/choice/choice.mjs +3 -2
  65. package/dist/es/components/color-switcher/color-switcher.d.ts +15 -0
  66. package/dist/es/components/color-switcher/color-switcher.mjs +1215 -0
  67. package/dist/es/components/color-switcher/color-switcher.vue.d.ts +122 -0
  68. package/dist/es/components/color-switcher/index.css +5 -0
  69. package/dist/es/components/color-switcher/index.d.ts +4 -0
  70. package/dist/es/components/color-switcher/index.mjs +6 -0
  71. package/dist/es/components/cropper/cropper.mjs +12 -11
  72. package/dist/es/components/cropper/cropper.vue.d.ts +2 -2
  73. package/dist/es/components/currency/currency.mjs +7 -7
  74. package/dist/es/components/dark-switcher/dark-switcher.d.ts +10 -0
  75. package/dist/es/components/dark-switcher/dark-switcher.mjs +87 -0
  76. package/dist/es/components/dark-switcher/dark-switcher.vue.d.ts +12 -0
  77. package/dist/es/components/dark-switcher/index.css +11 -0
  78. package/dist/es/components/dark-switcher/index.d.ts +4 -0
  79. package/dist/es/components/dark-switcher/index.mjs +6 -0
  80. package/dist/es/components/daterange-picker/daterange-picker.mjs +21 -20
  81. package/dist/es/components/dialog/dialog.d.ts +1 -1
  82. package/dist/es/components/dialog/dialog.mjs +46 -61
  83. package/dist/es/components/dialog/dialog.vue.d.ts +1 -3
  84. package/dist/es/components/dialog/index.css +31 -32
  85. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +12 -12
  86. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -5
  87. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -13
  88. package/dist/es/components/document.vue.d.ts +14 -0
  89. package/dist/es/components/drag-verify/drag-verify.mjs +14 -14
  90. package/dist/es/components/drag-verify/index.css +11 -11
  91. package/dist/es/components/drawer/drawer.mjs +14 -14
  92. package/dist/es/components/drawer/index.css +16 -15
  93. package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
  94. package/dist/es/components/el-icon/el-icon.mjs +2 -2
  95. package/dist/es/components/example-wrapper.vue.d.ts +19 -0
  96. package/dist/es/components/explorer/docs/data.d.ts +13 -0
  97. package/dist/es/components/explorer/explorer.d.ts +12 -0
  98. package/dist/es/components/explorer/explorer.mjs +64 -0
  99. package/dist/es/components/explorer/explorer.vue.d.ts +183 -0
  100. package/dist/es/components/explorer/explorer2.mjs +6 -0
  101. package/dist/es/components/explorer/index.css +14 -0
  102. package/dist/es/components/explorer/index.d.ts +4 -0
  103. package/dist/es/components/explorer/index.mjs +6 -0
  104. package/dist/es/components/explorer-column-table/explorer-column-table.d.ts +23 -0
  105. package/dist/es/components/explorer-column-table/explorer-column-table.mjs +2948 -0
  106. package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1486 -0
  107. package/dist/es/components/explorer-column-table/index.css +49 -0
  108. package/dist/es/components/explorer-column-table/index.d.ts +4 -0
  109. package/dist/es/components/explorer-column-table/index.mjs +6 -0
  110. package/dist/es/components/explorer-filter/explorer-filter.d.ts +12 -0
  111. package/dist/es/components/explorer-filter/explorer-filter.mjs +81 -0
  112. package/dist/es/components/explorer-filter/explorer-filter.vue.d.ts +14 -0
  113. package/dist/es/components/explorer-filter/index.css +7 -0
  114. package/dist/es/components/explorer-filter/index.d.ts +4 -0
  115. package/dist/es/components/explorer-filter/index.mjs +6 -0
  116. package/dist/es/components/explorer-footer/explorer-footer.d.ts +5 -0
  117. package/dist/es/components/explorer-footer/explorer-footer.mjs +92 -0
  118. package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +21 -0
  119. package/dist/es/components/explorer-footer/index.css +7 -0
  120. package/dist/es/components/explorer-footer/index.d.ts +4 -0
  121. package/dist/es/components/explorer-footer/index.mjs +6 -0
  122. package/dist/es/components/explorer-list/explorer-list.d.ts +23 -0
  123. package/dist/es/components/explorer-list/explorer-list.mjs +157 -0
  124. package/dist/es/components/explorer-list/explorer-list.vue.d.ts +38 -0
  125. package/dist/es/components/explorer-list/index.css +47 -0
  126. package/dist/es/components/explorer-list/index.d.ts +4 -0
  127. package/dist/es/components/explorer-list/index.mjs +6 -0
  128. package/dist/es/components/explorer-panel/explorer-panel.d.ts +14 -0
  129. package/dist/es/components/explorer-panel/explorer-panel.mjs +77 -0
  130. package/dist/es/components/explorer-panel/explorer-panel.vue.d.ts +253 -0
  131. package/dist/es/components/explorer-panel/explorer-panel2.mjs +6 -0
  132. package/dist/es/components/explorer-panel/index.css +12 -0
  133. package/dist/es/components/explorer-panel/index.d.ts +4 -0
  134. package/dist/es/components/explorer-panel/index.mjs +6 -0
  135. package/dist/es/components/explorer-query/explorer-query.d.ts +11 -0
  136. package/dist/es/components/explorer-query/explorer-query.mjs +2376 -0
  137. package/dist/es/components/explorer-query/explorer-query.vue.d.ts +396 -0
  138. package/dist/es/components/explorer-query/index.css +36 -0
  139. package/dist/es/components/explorer-query/index.d.ts +4 -0
  140. package/dist/es/components/explorer-query/index.mjs +6 -0
  141. package/dist/es/components/explorer-table/explorer-table.d.ts +11 -0
  142. package/dist/es/components/explorer-table/explorer-table.mjs +116 -0
  143. package/dist/es/components/explorer-table/explorer-table.vue.d.ts +25 -0
  144. package/dist/es/components/explorer-table/index.css +18 -0
  145. package/dist/es/components/explorer-table/index.d.ts +4 -0
  146. package/dist/es/components/explorer-table/index.mjs +6 -0
  147. package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +3028 -0
  148. package/dist/es/components/explorer-tools/explorer-tools.d.ts +35 -0
  149. package/dist/es/components/explorer-tools/explorer-tools.mjs +585 -0
  150. package/dist/es/components/explorer-tools/explorer-tools.vue.d.ts +43 -0
  151. package/dist/es/components/explorer-tools/index.css +60 -0
  152. package/dist/es/components/explorer-tools/index.d.ts +4 -0
  153. package/dist/es/components/explorer-tools/index.mjs +6 -0
  154. package/dist/es/components/explorer-tree/explorer-tree.d.ts +22 -0
  155. package/dist/es/components/explorer-tree/explorer-tree.mjs +174 -0
  156. package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2055 -0
  157. package/dist/es/components/explorer-tree/index.css +55 -0
  158. package/dist/es/components/explorer-tree/index.d.ts +4 -0
  159. package/dist/es/components/explorer-tree/index.mjs +6 -0
  160. package/dist/es/components/icon/icon2.mjs +2 -2
  161. package/dist/es/components/icon-picker/components/collections.vue.d.ts +242 -196
  162. package/dist/es/components/icon-picker/icon-picker.mjs +38 -921
  163. package/dist/es/components/icon-picker/index.css +31 -29
  164. package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
  165. package/dist/es/components/image/image.mjs +5 -5
  166. package/dist/es/components/image/image.vue.d.ts +7 -7
  167. package/dist/es/components/input/index.css +4 -5
  168. package/dist/es/components/input/input.mjs +7 -7
  169. package/dist/es/components/input/input.vue.d.ts +3 -3
  170. package/dist/es/components/input-number/input-number.mjs +5 -5
  171. package/dist/es/components/pca-picker/components/c.vue.d.ts +3 -3
  172. package/dist/es/components/pca-picker/index.css +4 -4
  173. package/dist/es/components/pca-picker/pca-picker.mjs +21 -209
  174. package/dist/es/components/pca-picker/pca-picker.vue.d.ts +10 -10
  175. package/dist/es/components/screenfull/screenfull.mjs +4 -4
  176. package/dist/es/components/scrollbar/index.css +6 -5
  177. package/dist/es/components/scrollbar/scrollbar.d.ts +2 -0
  178. package/dist/es/components/scrollbar/scrollbar.mjs +17 -12
  179. package/dist/es/components/scrollbar/scrollbar.vue.d.ts +156 -134
  180. package/dist/es/components/select/select.mjs +7 -7
  181. package/dist/es/components/single-player/index.css +11 -11
  182. package/dist/es/components/single-player/single-player.mjs +20 -19
  183. package/dist/es/components/splitter/index.d.ts +4 -0
  184. package/dist/es/components/splitter/index.mjs +6 -0
  185. package/dist/es/components/splitter/splitter.d.ts +4 -0
  186. package/dist/es/components/splitter/splitter.mjs +28 -0
  187. package/dist/es/components/{dual-pane/dual-pane.vue.d.ts → splitter/splitter.vue.d.ts} +3 -5
  188. package/dist/es/components/splitter-panel/index.css +5 -0
  189. package/dist/es/components/splitter-panel/index.d.ts +4 -0
  190. package/dist/es/components/splitter-panel/index.mjs +6 -0
  191. package/dist/es/components/splitter-panel/splitter-panel.d.ts +3 -0
  192. package/dist/es/components/splitter-panel/splitter-panel.mjs +49 -0
  193. package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +20 -0
  194. package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
  195. package/dist/es/components/switch/switch.mjs +2 -2
  196. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
  197. package/dist/es/components/tags/tags.mjs +12 -11
  198. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
  199. package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +1 -1
  200. package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
  201. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -8
  202. package/dist/es/components/tinymce/index.css +1 -1
  203. package/dist/es/components/tinymce/tinymce.d.ts +1 -0
  204. package/dist/es/components/tinymce/tinymce.mjs +20 -11
  205. package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
  206. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  207. package/dist/es/components/tree-picker/tree-picker.mjs +11 -10
  208. package/dist/es/components/tree-picker/tree-picker.vue.d.ts +10 -10
  209. package/dist/es/components/upload-file/upload-file.mjs +2 -2
  210. package/dist/es/index.d.ts +14 -1
  211. package/dist/es/index.mjs +69 -39
  212. package/dist/es/use/usePersistentModel/index.d.ts +4 -0
  213. package/dist/es/use/usePersistentModel/index.mjs +19 -0
  214. package/dist/global.d.ts +14 -1
  215. package/dist/index.css +450 -123
  216. package/package.json +4 -1
  217. package/dist/es/chunk/DVNTpOBR.mjs +0 -4
  218. package/dist/es/components/dual-pane/dual-pane.d.ts +0 -8
  219. package/dist/es/components/dual-pane/index.css +0 -8
  220. package/dist/es/components/dual-pane/index.d.ts +0 -4
  221. package/dist/es/components/dual-pane/index.mjs +0 -6
@@ -1,7 +1,7 @@
1
1
  import { isRef, computed, watch, onScopeDispose } from 'vue';
2
- import { t as throwError, u as useNamespace } from './DO-mBaf5.mjs';
3
- import { h as hasClass, b as addClass, g as getStyle, r as removeClass } from './C50_dziC.mjs';
4
- import { e as getScrollBarWidth } from './CQbpo0im.mjs';
2
+ import { t as throwError, u as useNamespace } from './By7FMB3I.mjs';
3
+ import { h as hasClass, b as addClass, g as getStyle, r as removeClass } from './CQz3lhyS.mjs';
4
+ import { d as getScrollBarWidth } from './CboHfRXN.mjs';
5
5
 
6
6
  const useLockscreen = (trigger, options = {}) => {
7
7
  if (!isRef(trigger)) {
@@ -1,177 +1,3 @@
1
- import { computed, inject, ref, useSlots, Text, defineComponent, createBlock, openBlock, resolveDynamicComponent, mergeProps, unref, withCtx, createElementBlock, createCommentVNode, Fragment, renderSlot, normalizeClass, provide, reactive, toRef } from 'vue';
2
- import { E as ElIcon } from './b9dx0jdT.mjs';
3
- import { u as useDeprecated } from './DFHjl3eL.mjs';
4
- import { u as useGlobalConfig } from './CCmEeM7D.mjs';
5
- import { u as useFormItem, c as useFormSize, b as useFormDisabled } from './DEiqPcuO.mjs';
6
- import { Loading } from '@element-plus/icons-vue';
7
- import { c as buildProps, d as definePropType, u as useNamespace } from './DO-mBaf5.mjs';
8
- import { u as useSizeProp } from './C9ldJ8Hh.mjs';
9
- import { i as iconPropType } from '../components/icon/icon2.mjs';
10
- import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from './Dn-BFXcJ.mjs';
11
-
12
- const buttonGroupContextKey = Symbol(
13
- "buttonGroupContextKey"
14
- );
15
-
16
- const useButton = (props, emit) => {
17
- useDeprecated(
18
- {
19
- from: "type.text",
20
- replacement: "link",
21
- version: "3.0.0",
22
- scope: "props",
23
- ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
24
- },
25
- computed(() => props.type === "text")
26
- );
27
- const buttonGroupContext = inject(buttonGroupContextKey, void 0);
28
- const globalConfig = useGlobalConfig("button");
29
- const { form } = useFormItem();
30
- const _size = useFormSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
31
- const _disabled = useFormDisabled();
32
- const _ref = ref();
33
- const slots = useSlots();
34
- const _type = computed(
35
- () => {
36
- var _a;
37
- return props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || ((_a = globalConfig.value) == null ? void 0 : _a.type) || "";
38
- }
39
- );
40
- const autoInsertSpace = computed(
41
- () => {
42
- var _a, _b, _c;
43
- return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
44
- }
45
- );
46
- const _plain = computed(
47
- () => {
48
- var _a, _b, _c;
49
- return (_c = (_b = props.plain) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.plain) != null ? _c : false;
50
- }
51
- );
52
- const _round = computed(
53
- () => {
54
- var _a, _b, _c;
55
- return (_c = (_b = props.round) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.round) != null ? _c : false;
56
- }
57
- );
58
- const _text = computed(() => {
59
- var _a, _b, _c;
60
- return (_c = (_b = props.text) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.text) != null ? _c : false;
61
- });
62
- const _props = computed(() => {
63
- if (props.tag === "button") {
64
- return {
65
- ariaDisabled: _disabled.value || props.loading,
66
- disabled: _disabled.value || props.loading,
67
- autofocus: props.autofocus,
68
- type: props.nativeType
69
- };
70
- }
71
- return {};
72
- });
73
- const shouldAddSpace = computed(() => {
74
- var _a;
75
- const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
76
- if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
77
- const slot = defaultSlot[0];
78
- if ((slot == null ? void 0 : slot.type) === Text) {
79
- const text = slot.children;
80
- return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
81
- }
82
- }
83
- return false;
84
- });
85
- const handleClick = (evt) => {
86
- if (_disabled.value || props.loading) {
87
- evt.stopPropagation();
88
- return;
89
- }
90
- if (props.nativeType === "reset") {
91
- form == null ? void 0 : form.resetFields();
92
- }
93
- emit("click", evt);
94
- };
95
- return {
96
- _disabled,
97
- _size,
98
- _type,
99
- _ref,
100
- _props,
101
- _plain,
102
- _round,
103
- _text,
104
- shouldAddSpace,
105
- handleClick
106
- };
107
- };
108
-
109
- const buttonTypes = [
110
- "default",
111
- "primary",
112
- "success",
113
- "warning",
114
- "info",
115
- "danger",
116
- "text",
117
- ""
118
- ];
119
- const buttonNativeTypes = ["button", "submit", "reset"];
120
- const buttonProps = buildProps({
121
- size: useSizeProp,
122
- disabled: {
123
- type: Boolean,
124
- default: void 0
125
- },
126
- type: {
127
- type: String,
128
- values: buttonTypes,
129
- default: ""
130
- },
131
- icon: {
132
- type: iconPropType
133
- },
134
- nativeType: {
135
- type: String,
136
- values: buttonNativeTypes,
137
- default: "button"
138
- },
139
- loading: Boolean,
140
- loadingIcon: {
141
- type: iconPropType,
142
- default: () => Loading
143
- },
144
- plain: {
145
- type: Boolean,
146
- default: void 0
147
- },
148
- text: {
149
- type: Boolean,
150
- default: void 0
151
- },
152
- link: Boolean,
153
- bg: Boolean,
154
- autofocus: Boolean,
155
- round: {
156
- type: Boolean,
157
- default: void 0
158
- },
159
- circle: Boolean,
160
- color: String,
161
- dark: Boolean,
162
- autoInsertSpace: {
163
- type: Boolean,
164
- default: void 0
165
- },
166
- tag: {
167
- type: definePropType([String, Object]),
168
- default: "button"
169
- }
170
- });
171
- const buttonEmits = {
172
- click: (evt) => evt instanceof MouseEvent
173
- };
174
-
175
1
  /**
176
2
  * Take input from [0, n] and return it as [0, 1]
177
3
  * @hidden
@@ -1307,203 +1133,4 @@ var TinyColor = /** @class */ (function () {
1307
1133
  return TinyColor;
1308
1134
  }());
1309
1135
 
1310
- function darken(color, amount = 20) {
1311
- return color.mix("#141414", amount).toString();
1312
- }
1313
- function useButtonCustomStyle(props) {
1314
- const _disabled = useFormDisabled();
1315
- const ns = useNamespace("button");
1316
- return computed(() => {
1317
- let styles = {};
1318
- let buttonColor = props.color;
1319
- if (buttonColor) {
1320
- const match = buttonColor.match(/var\((.*?)\)/);
1321
- if (match) {
1322
- buttonColor = window.getComputedStyle(window.document.documentElement).getPropertyValue(match[1]);
1323
- }
1324
- const color = new TinyColor(buttonColor);
1325
- const activeBgColor = props.dark ? color.tint(20).toString() : darken(color, 20);
1326
- if (props.plain) {
1327
- styles = ns.cssVarBlock({
1328
- "bg-color": props.dark ? darken(color, 90) : color.tint(90).toString(),
1329
- "text-color": buttonColor,
1330
- "border-color": props.dark ? darken(color, 50) : color.tint(50).toString(),
1331
- "hover-text-color": `var(${ns.cssVarName("color-white")})`,
1332
- "hover-bg-color": buttonColor,
1333
- "hover-border-color": buttonColor,
1334
- "active-bg-color": activeBgColor,
1335
- "active-text-color": `var(${ns.cssVarName("color-white")})`,
1336
- "active-border-color": activeBgColor
1337
- });
1338
- if (_disabled.value) {
1339
- styles[ns.cssVarBlockName("disabled-bg-color")] = props.dark ? darken(color, 90) : color.tint(90).toString();
1340
- styles[ns.cssVarBlockName("disabled-text-color")] = props.dark ? darken(color, 50) : color.tint(50).toString();
1341
- styles[ns.cssVarBlockName("disabled-border-color")] = props.dark ? darken(color, 80) : color.tint(80).toString();
1342
- }
1343
- } else {
1344
- const hoverBgColor = props.dark ? darken(color, 30) : color.tint(30).toString();
1345
- const textColor = color.isDark() ? `var(${ns.cssVarName("color-white")})` : `var(${ns.cssVarName("color-black")})`;
1346
- styles = ns.cssVarBlock({
1347
- "bg-color": buttonColor,
1348
- "text-color": textColor,
1349
- "border-color": buttonColor,
1350
- "hover-bg-color": hoverBgColor,
1351
- "hover-text-color": textColor,
1352
- "hover-border-color": hoverBgColor,
1353
- "active-bg-color": activeBgColor,
1354
- "active-border-color": activeBgColor
1355
- });
1356
- if (_disabled.value) {
1357
- const disabledButtonColor = props.dark ? darken(color, 50) : color.tint(50).toString();
1358
- styles[ns.cssVarBlockName("disabled-bg-color")] = disabledButtonColor;
1359
- styles[ns.cssVarBlockName("disabled-text-color")] = props.dark ? "rgba(255, 255, 255, 0.5)" : `var(${ns.cssVarName("color-white")})`;
1360
- styles[ns.cssVarBlockName("disabled-border-color")] = disabledButtonColor;
1361
- }
1362
- }
1363
- }
1364
- return styles;
1365
- });
1366
- }
1367
-
1368
- const _sfc_main$1 = defineComponent({
1369
- ...{
1370
- name: "ElButton"
1371
- },
1372
- __name: "button",
1373
- props: buttonProps,
1374
- emits: buttonEmits,
1375
- setup(__props, { expose: __expose, emit: __emit }) {
1376
- const props = __props;
1377
- const emit = __emit;
1378
- const buttonStyle = useButtonCustomStyle(props);
1379
- const ns = useNamespace("button");
1380
- const {
1381
- _ref,
1382
- _size,
1383
- _type,
1384
- _disabled,
1385
- _props,
1386
- _plain,
1387
- _round,
1388
- _text,
1389
- shouldAddSpace,
1390
- handleClick
1391
- } = useButton(props, emit);
1392
- const buttonKls = computed(() => [
1393
- ns.b(),
1394
- ns.m(_type.value),
1395
- ns.m(_size.value),
1396
- ns.is("disabled", _disabled.value),
1397
- ns.is("loading", props.loading),
1398
- ns.is("plain", _plain.value),
1399
- ns.is("round", _round.value),
1400
- ns.is("circle", props.circle),
1401
- ns.is("text", _text.value),
1402
- ns.is("link", props.link),
1403
- ns.is("has-bg", props.bg)
1404
- ]);
1405
- __expose({
1406
- ref: _ref,
1407
- size: _size,
1408
- type: _type,
1409
- disabled: _disabled,
1410
- shouldAddSpace
1411
- });
1412
- return (_ctx, _cache) => {
1413
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), mergeProps({
1414
- ref_key: "_ref",
1415
- ref: _ref
1416
- }, unref(_props), {
1417
- class: buttonKls.value,
1418
- style: unref(buttonStyle),
1419
- onClick: unref(handleClick)
1420
- }), {
1421
- default: withCtx(() => [
1422
- _ctx.loading ? (openBlock(), createElementBlock(
1423
- Fragment,
1424
- { key: 0 },
1425
- [
1426
- _ctx.$slots.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(ElIcon), {
1427
- key: 1,
1428
- class: normalizeClass(unref(ns).is("loading"))
1429
- }, {
1430
- default: withCtx(() => [
1431
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.loadingIcon)))
1432
- ]),
1433
- _: 1
1434
- }, 8, ["class"]))
1435
- ],
1436
- 64
1437
- )) : _ctx.icon || _ctx.$slots.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
1438
- default: withCtx(() => [
1439
- _ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { key: 0 })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
1440
- ]),
1441
- _: 3
1442
- })) : createCommentVNode("v-if", true),
1443
- _ctx.$slots.default ? (openBlock(), createElementBlock(
1444
- "span",
1445
- {
1446
- key: 2,
1447
- class: normalizeClass({ [unref(ns).em("text", "expand")]: unref(shouldAddSpace) })
1448
- },
1449
- [
1450
- renderSlot(_ctx.$slots, "default")
1451
- ],
1452
- 2
1453
- )) : createCommentVNode("v-if", true)
1454
- ]),
1455
- _: 3
1456
- }, 16, ["class", "style", "onClick"]);
1457
- };
1458
- }
1459
- });
1460
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);
1461
-
1462
- const buttonGroupProps = {
1463
- size: buttonProps.size,
1464
- type: buttonProps.type,
1465
- direction: {
1466
- type: definePropType(String),
1467
- values: ["horizontal", "vertical"],
1468
- default: "horizontal"
1469
- }
1470
- };
1471
-
1472
- const _sfc_main = defineComponent({
1473
- ...{
1474
- name: "ElButtonGroup"
1475
- },
1476
- __name: "button-group",
1477
- props: buttonGroupProps,
1478
- setup(__props) {
1479
- const props = __props;
1480
- provide(
1481
- buttonGroupContextKey,
1482
- reactive({
1483
- size: toRef(props, "size"),
1484
- type: toRef(props, "type")
1485
- })
1486
- );
1487
- const ns = useNamespace("button");
1488
- return (_ctx, _cache) => {
1489
- return openBlock(), createElementBlock(
1490
- "div",
1491
- {
1492
- class: normalizeClass([unref(ns).b("group"), unref(ns).bm("group", props.direction)])
1493
- },
1494
- [
1495
- renderSlot(_ctx.$slots, "default")
1496
- ],
1497
- 2
1498
- );
1499
- };
1500
- }
1501
- });
1502
- var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);
1503
-
1504
- const ElButton = withInstall(Button, {
1505
- ButtonGroup
1506
- });
1507
- withNoopInstall(ButtonGroup);
1508
-
1509
- export { ElButton as E, buttonTypes as b };
1136
+ export { TinyColor as T };
@@ -1,7 +1,8 @@
1
1
  import { getCurrentInstance, shallowRef, ref, watch, unref, onMounted, nextTick } from 'vue';
2
2
  import { useEventListener } from '@vueuse/core';
3
- import { o as isElement, j as isFunction } from './DO-mBaf5.mjs';
3
+ import { f as isElement } from './DViraU6I.mjs';
4
4
  import { a as isFocusable } from './CsLIbnzG.mjs';
5
+ import { f as isFunction } from './By7FMB3I.mjs';
5
6
 
6
7
  function useFocusController(target, {
7
8
  disabled,
@@ -1,5 +1,5 @@
1
- import { c as buildProps } from './DO-mBaf5.mjs';
2
- import { g as getNative, q as eq, S as Symbol$1, b as isArray, l as isArguments, o as arrayPush, u as castPath, t as toKey, h as isLength, m as isIndex, i as isObject, d as baseGet } from './DWcIzeMM.mjs';
1
+ import { b as buildProps } from './By7FMB3I.mjs';
2
+ import { v as defineProperty, S as Symbol$1, f as isArray, g as isArguments, n as arrayPush, s as castPath, u as toKey, k as isLength, c as isIndex, q as baseGet, w as baseSet } from './ytiKcA3H.mjs';
3
3
 
4
4
  /**
5
5
  * This method returns the first argument it receives.
@@ -102,14 +102,6 @@ function constant(value) {
102
102
  };
103
103
  }
104
104
 
105
- var defineProperty = (function() {
106
- try {
107
- var func = getNative(Object, 'defineProperty');
108
- func({}, '', {});
109
- return func;
110
- } catch (e) {}
111
- }());
112
-
113
105
  /**
114
106
  * The base implementation of `setToString` without support for hot loop shorting.
115
107
  *
@@ -137,52 +129,6 @@ var baseSetToString = !defineProperty ? identity : function(func, string) {
137
129
  */
138
130
  var setToString = shortOut(baseSetToString);
139
131
 
140
- /**
141
- * The base implementation of `assignValue` and `assignMergeValue` without
142
- * value checks.
143
- *
144
- * @private
145
- * @param {Object} object The object to modify.
146
- * @param {string} key The key of the property to assign.
147
- * @param {*} value The value to assign.
148
- */
149
- function baseAssignValue(object, key, value) {
150
- if (key == '__proto__' && defineProperty) {
151
- defineProperty(object, key, {
152
- 'configurable': true,
153
- 'enumerable': true,
154
- 'value': value,
155
- 'writable': true
156
- });
157
- } else {
158
- object[key] = value;
159
- }
160
- }
161
-
162
- /** Used for built-in method references. */
163
- var objectProto = Object.prototype;
164
-
165
- /** Used to check objects for own properties. */
166
- var hasOwnProperty = objectProto.hasOwnProperty;
167
-
168
- /**
169
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
170
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
171
- * for equality comparisons.
172
- *
173
- * @private
174
- * @param {Object} object The object to modify.
175
- * @param {string} key The key of the property to assign.
176
- * @param {*} value The value to assign.
177
- */
178
- function assignValue(object, key, value) {
179
- var objValue = object[key];
180
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
181
- (value === undefined && !(key in object))) {
182
- baseAssignValue(object, key, value);
183
- }
184
- }
185
-
186
132
  /* Built-in method references for those with the same name as other `lodash` methods. */
187
133
  var nativeMax = Math.max;
188
134
 
@@ -368,50 +314,6 @@ function hasIn(object, path) {
368
314
  return object != null && hasPath(object, path, baseHasIn);
369
315
  }
370
316
 
371
- /**
372
- * The base implementation of `_.set`.
373
- *
374
- * @private
375
- * @param {Object} object The object to modify.
376
- * @param {Array|string} path The path of the property to set.
377
- * @param {*} value The value to set.
378
- * @param {Function} [customizer] The function to customize path creation.
379
- * @returns {Object} Returns `object`.
380
- */
381
- function baseSet(object, path, value, customizer) {
382
- if (!isObject(object)) {
383
- return object;
384
- }
385
- path = castPath(path, object);
386
-
387
- var index = -1,
388
- length = path.length,
389
- lastIndex = length - 1,
390
- nested = object;
391
-
392
- while (nested != null && ++index < length) {
393
- var key = toKey(path[index]),
394
- newValue = value;
395
-
396
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
397
- return object;
398
- }
399
-
400
- if (index != lastIndex) {
401
- var objValue = nested[key];
402
- newValue = undefined;
403
- if (newValue === undefined) {
404
- newValue = isObject(objValue)
405
- ? objValue
406
- : (isIndex(path[index + 1]) ? [] : {});
407
- }
408
- }
409
- assignValue(nested, key, newValue);
410
- nested = nested[key];
411
- }
412
- return object;
413
- }
414
-
415
317
  /**
416
318
  * The base implementation of `_.pickBy` without support for iteratee shorthands.
417
319
  *
@@ -485,4 +387,4 @@ const useAriaProps = (arias) => {
485
387
  return pick(ariaProps, arias);
486
388
  };
487
389
 
488
- export { flatRest as a, baseFlatten as b, baseAssignValue as c, assignValue as d, flatten as f, hasIn as h, identity as i, pick as p, useAriaProps as u };
390
+ export { flatRest as a, baseFlatten as b, hasIn as c, flatten as f, hasPath as h, identity as i, overRest as o, pick as p, setToString as s, useAriaProps as u };
@@ -1,5 +1,5 @@
1
1
  import { computed, getCurrentInstance } from 'vue';
2
- import { e as debugWarn, n as fromPairs } from './DO-mBaf5.mjs';
2
+ import { a as debugWarn, k as fromPairs } from './By7FMB3I.mjs';
3
3
 
4
4
  const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
5
5
  const LISTENER_PREFIX = /^on[A-Z]/;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, renderSlot } from 'vue';
2
- import { c as buildProps, d as definePropType, u as useNamespace } from './DO-mBaf5.mjs';
3
- import { _ as _export_sfc, w as withInstall } from './Dn-BFXcJ.mjs';
2
+ import { b as buildProps, d as definePropType, u as useNamespace } from './By7FMB3I.mjs';
3
+ import { _ as _export_sfc, w as withInstall } from './dN0VcQc2.mjs';
4
4
 
5
5
  const dividerProps = buildProps({
6
6
  direction: {
@@ -1,10 +1,11 @@
1
1
  import { defineComponent, computed, ref, unref, createBlock, openBlock, mergeProps, withCtx, renderSlot, createCommentVNode, createElementBlock, normalizeClass, toDisplayString, createTextVNode } from 'vue';
2
- import { u as useTooltipContentProps, r as roleTypes, f as useTooltipTriggerProps, a as ElTooltip } from './DGGhWn1A.mjs';
3
- import { c as buildProps, d as definePropType, q as isBoolean, u as useNamespace } from './DO-mBaf5.mjs';
2
+ import { u as useTooltipContentProps, r as roleTypes, f as useTooltipTriggerProps, a as ElTooltip } from './BfjuZmry.mjs';
3
+ import { b as buildProps, d as definePropType, u as useNamespace } from './By7FMB3I.mjs';
4
4
  import { E as EVENT_CODE } from './BTpNRPQW.mjs';
5
5
  import { i as iconPropType } from '../components/icon/icon2.mjs';
6
- import { _ as _export_sfc, w as withInstall, b as withInstallDirective } from './Dn-BFXcJ.mjs';
7
- import { a as addUnit } from './C50_dziC.mjs';
6
+ import { d as isBoolean } from './DViraU6I.mjs';
7
+ import { _ as _export_sfc, w as withInstall, b as withInstallDirective } from './dN0VcQc2.mjs';
8
+ import { a as addUnit } from './CQz3lhyS.mjs';
8
9
 
9
10
  const dropdownProps = buildProps({
10
11
  trigger: {