@wfrog/vc-ui 1.3.1 → 1.5.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 (233) 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 +47 -62
  83. package/dist/es/components/dialog/dialog.vue.d.ts +2 -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/drag-verify/drag-verify.mjs +14 -14
  89. package/dist/es/components/drag-verify/drag-verify.vue.d.ts +1 -1
  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/explorer/docs/data.d.ts +13 -0
  96. package/dist/es/components/explorer/explorer.d.ts +12 -0
  97. package/dist/es/components/explorer/explorer.mjs +64 -0
  98. package/dist/es/components/explorer/explorer.vue.d.ts +183 -0
  99. package/dist/es/components/explorer/explorer2.mjs +6 -0
  100. package/dist/es/components/explorer/index.css +14 -0
  101. package/dist/es/components/explorer/index.d.ts +4 -0
  102. package/dist/es/components/explorer/index.mjs +6 -0
  103. package/dist/es/components/explorer-column-table/explorer-column-table.d.ts +23 -0
  104. package/dist/es/components/explorer-column-table/explorer-column-table.mjs +2948 -0
  105. package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1486 -0
  106. package/dist/es/components/explorer-column-table/index.css +49 -0
  107. package/dist/es/components/explorer-column-table/index.d.ts +4 -0
  108. package/dist/es/components/explorer-column-table/index.mjs +6 -0
  109. package/dist/es/components/explorer-container/explorer-container.d.ts +5 -0
  110. package/dist/es/components/explorer-container/explorer-container.mjs +76 -0
  111. package/dist/es/components/explorer-container/explorer-container.vue.d.ts +23 -0
  112. package/dist/es/components/explorer-container/index.css +26 -0
  113. package/dist/es/components/explorer-container/index.d.ts +4 -0
  114. package/dist/es/components/explorer-container/index.mjs +6 -0
  115. package/dist/es/components/explorer-filter/explorer-filter.d.ts +12 -0
  116. package/dist/es/components/explorer-filter/explorer-filter.mjs +81 -0
  117. package/dist/es/components/explorer-filter/explorer-filter.vue.d.ts +14 -0
  118. package/dist/es/components/explorer-filter/index.css +7 -0
  119. package/dist/es/components/explorer-filter/index.d.ts +4 -0
  120. package/dist/es/components/explorer-filter/index.mjs +6 -0
  121. package/dist/es/components/explorer-footer/explorer-footer.d.ts +5 -0
  122. package/dist/es/components/explorer-footer/explorer-footer.mjs +92 -0
  123. package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +21 -0
  124. package/dist/es/components/explorer-footer/index.css +7 -0
  125. package/dist/es/components/explorer-footer/index.d.ts +4 -0
  126. package/dist/es/components/explorer-footer/index.mjs +6 -0
  127. package/dist/es/components/explorer-form/explorer-form.d.ts +19 -0
  128. package/dist/es/components/explorer-form/explorer-form.mjs +174 -0
  129. package/dist/es/components/explorer-form/explorer-form.vue.d.ts +33 -0
  130. package/dist/es/components/explorer-form/index.css +33 -0
  131. package/dist/es/components/explorer-form/index.d.ts +4 -0
  132. package/dist/es/components/explorer-form/index.mjs +6 -0
  133. package/dist/es/components/explorer-list/explorer-list.d.ts +23 -0
  134. package/dist/es/components/explorer-list/explorer-list.mjs +160 -0
  135. package/dist/es/components/explorer-list/explorer-list.vue.d.ts +38 -0
  136. package/dist/es/components/explorer-list/index.css +51 -0
  137. package/dist/es/components/explorer-list/index.d.ts +4 -0
  138. package/dist/es/components/explorer-list/index.mjs +6 -0
  139. package/dist/es/components/explorer-panel/explorer-panel.d.ts +14 -0
  140. package/dist/es/components/explorer-panel/explorer-panel.mjs +77 -0
  141. package/dist/es/components/explorer-panel/explorer-panel.vue.d.ts +253 -0
  142. package/dist/es/components/explorer-panel/explorer-panel2.mjs +6 -0
  143. package/dist/es/components/explorer-panel/index.css +12 -0
  144. package/dist/es/components/explorer-panel/index.d.ts +4 -0
  145. package/dist/es/components/explorer-panel/index.mjs +6 -0
  146. package/dist/es/components/explorer-query/explorer-query.d.ts +11 -0
  147. package/dist/es/components/explorer-query/explorer-query.mjs +2376 -0
  148. package/dist/es/components/explorer-query/explorer-query.vue.d.ts +396 -0
  149. package/dist/es/components/explorer-query/index.css +40 -0
  150. package/dist/es/components/explorer-query/index.d.ts +4 -0
  151. package/dist/es/components/explorer-query/index.mjs +6 -0
  152. package/dist/es/components/explorer-table/explorer-table.d.ts +11 -0
  153. package/dist/es/components/explorer-table/explorer-table.mjs +116 -0
  154. package/dist/es/components/explorer-table/explorer-table.vue.d.ts +25 -0
  155. package/dist/es/components/explorer-table/index.css +18 -0
  156. package/dist/es/components/explorer-table/index.d.ts +4 -0
  157. package/dist/es/components/explorer-table/index.mjs +6 -0
  158. package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +3028 -0
  159. package/dist/es/components/explorer-tools/explorer-tools.d.ts +35 -0
  160. package/dist/es/components/explorer-tools/explorer-tools.mjs +585 -0
  161. package/dist/es/components/explorer-tools/explorer-tools.vue.d.ts +43 -0
  162. package/dist/es/components/explorer-tools/index.css +60 -0
  163. package/dist/es/components/explorer-tools/index.d.ts +4 -0
  164. package/dist/es/components/explorer-tools/index.mjs +6 -0
  165. package/dist/es/components/explorer-tree/explorer-tree.d.ts +22 -0
  166. package/dist/es/components/explorer-tree/explorer-tree.mjs +177 -0
  167. package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2055 -0
  168. package/dist/es/components/explorer-tree/index.css +58 -0
  169. package/dist/es/components/explorer-tree/index.d.ts +4 -0
  170. package/dist/es/components/explorer-tree/index.mjs +6 -0
  171. package/dist/es/components/icon/icon.mjs +4 -3
  172. package/dist/es/components/icon/icon2.mjs +2 -2
  173. package/dist/es/components/icon-picker/components/collections.vue.d.ts +245 -199
  174. package/dist/es/components/icon-picker/icon-picker.mjs +38 -921
  175. package/dist/es/components/icon-picker/index.css +31 -29
  176. package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
  177. package/dist/es/components/image/image.mjs +5 -5
  178. package/dist/es/components/image/image.vue.d.ts +9 -9
  179. package/dist/es/components/input/index.css +4 -5
  180. package/dist/es/components/input/input.mjs +7 -7
  181. package/dist/es/components/input/input.vue.d.ts +6 -6
  182. package/dist/es/components/input-number/input-number.mjs +5 -5
  183. package/dist/es/components/pca-picker/components/c.vue.d.ts +3 -3
  184. package/dist/es/components/pca-picker/index.css +4 -4
  185. package/dist/es/components/pca-picker/pca-picker.mjs +21 -209
  186. package/dist/es/components/pca-picker/pca-picker.vue.d.ts +11 -11
  187. package/dist/es/components/screenfull/screenfull.mjs +4 -4
  188. package/dist/es/components/scrollbar/index.css +6 -5
  189. package/dist/es/components/scrollbar/scrollbar.d.ts +2 -0
  190. package/dist/es/components/scrollbar/scrollbar.mjs +17 -11
  191. package/dist/es/components/scrollbar/scrollbar.vue.d.ts +158 -136
  192. package/dist/es/components/select/select.mjs +7 -7
  193. package/dist/es/components/single-player/index.css +11 -11
  194. package/dist/es/components/single-player/single-player.mjs +20 -19
  195. package/dist/es/components/splitter/index.d.ts +4 -0
  196. package/dist/es/components/splitter/index.mjs +6 -0
  197. package/dist/es/components/splitter/splitter.d.ts +4 -0
  198. package/dist/es/components/splitter/splitter.mjs +28 -0
  199. package/dist/es/components/{dual-pane/dual-pane.vue.d.ts → splitter/splitter.vue.d.ts} +3 -5
  200. package/dist/es/components/splitter-panel/index.css +5 -0
  201. package/dist/es/components/splitter-panel/index.d.ts +4 -0
  202. package/dist/es/components/splitter-panel/index.mjs +6 -0
  203. package/dist/es/components/splitter-panel/splitter-panel.d.ts +3 -0
  204. package/dist/es/components/splitter-panel/splitter-panel.mjs +49 -0
  205. package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +20 -0
  206. package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
  207. package/dist/es/components/switch/switch.mjs +2 -2
  208. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
  209. package/dist/es/components/tags/tags.mjs +12 -11
  210. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
  211. package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +1 -1
  212. package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
  213. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +14 -14
  214. package/dist/es/components/tinymce/index.css +1 -1
  215. package/dist/es/components/tinymce/tinymce.d.ts +1 -0
  216. package/dist/es/components/tinymce/tinymce.mjs +20 -11
  217. package/dist/es/components/tinymce/tinymce.vue.d.ts +3 -2
  218. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  219. package/dist/es/components/tree-picker/tree-picker.mjs +11 -10
  220. package/dist/es/components/tree-picker/tree-picker.vue.d.ts +11 -11
  221. package/dist/es/components/upload-file/upload-file.mjs +2 -2
  222. package/dist/es/index.d.ts +16 -1
  223. package/dist/es/index.mjs +73 -39
  224. package/dist/es/use/usePersistentModel/index.d.ts +4 -0
  225. package/dist/es/use/usePersistentModel/index.mjs +19 -0
  226. package/dist/global.d.ts +16 -1
  227. package/dist/index.css +520 -123
  228. package/package.json +4 -1
  229. package/dist/es/chunk/DVNTpOBR.mjs +0 -4
  230. package/dist/es/components/dual-pane/dual-pane.d.ts +0 -8
  231. package/dist/es/components/dual-pane/index.css +0 -8
  232. package/dist/es/components/dual-pane/index.d.ts +0 -4
  233. package/dist/es/components/dual-pane/index.mjs +0 -6
@@ -0,0 +1,174 @@
1
+ import './index.css'
2
+ import '../../chunk/By7FMB3I.mjs';
3
+ import { v as vLoading } from '../../chunk/CwXV7M2F.mjs';
4
+ import { defineComponent, ref, useTemplateRef, watch, onBeforeMount, onBeforeUnmount, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, unref, withCtx, resolveDynamicComponent, mergeProps } from 'vue';
5
+ import { ElForm } from 'element-plus';
6
+ import { C as Component$2 } from '../button/button.mjs';
7
+ import { C as Component$1 } from '../iconify-icon/iconify-icon.mjs';
8
+ import { C as Component$3 } from '../scrollbar/scrollbar.mjs';
9
+ import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
10
+
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "explorer-form",
13
+ props: {
14
+ title: {},
15
+ icon: { default: "fluent:form-48-regular" },
16
+ form: {},
17
+ formProps: {},
18
+ initialValues: {},
19
+ autoInitial: { type: Boolean, default: true },
20
+ defaultEditing: { type: Boolean },
21
+ onCancel: { type: Function, default: () => {
22
+ } },
23
+ onSave: { type: Function, default: () => {
24
+ } }
25
+ },
26
+ emits: ["clickEdit"],
27
+ setup(__props, { emit: __emit }) {
28
+ const props = __props;
29
+ const emits = __emit;
30
+ const isEditing = ref(false);
31
+ const loading = ref(false);
32
+ const formRef = useTemplateRef("formRef");
33
+ const formComponent = ref();
34
+ function handleEdit() {
35
+ emits("clickEdit");
36
+ isEditing.value = true;
37
+ }
38
+ async function handleCancel() {
39
+ formRef.value.resetFields();
40
+ await props.onCancel();
41
+ isEditing.value = false;
42
+ }
43
+ async function handleSave() {
44
+ const valid = await formRef.value.validate();
45
+ if (!valid) {
46
+ return;
47
+ }
48
+ await props.onSave(props.form.fields);
49
+ formRef.value?.setInitialValues(props.form.fields);
50
+ isEditing.value = false;
51
+ }
52
+ const editingWatch = watch(() => props.defaultEditing, (val) => {
53
+ isEditing.value = val;
54
+ }, { immediate: true });
55
+ const autoInitialWatch = watch(() => props.form.fields, (val) => {
56
+ props.autoInitial && formRef.value?.setInitialValues(val);
57
+ }, { immediate: true });
58
+ const initialValuesWatch = watch(() => props.initialValues, () => {
59
+ props.initialValues && formRef.value?.setInitialValues(props.initialValues);
60
+ }, { immediate: true, deep: true });
61
+ onBeforeMount(() => {
62
+ formComponent.value = ElForm;
63
+ });
64
+ onBeforeUnmount(() => {
65
+ initialValuesWatch.stop();
66
+ autoInitialWatch.stop();
67
+ editingWatch.stop();
68
+ });
69
+ return (_ctx, _cache) => {
70
+ const _directive_loading = vLoading;
71
+ return withDirectives((openBlock(), createElementBlock("div", {
72
+ class: normalizeClass(_ctx.$style["explorer-form"])
73
+ }, [
74
+ createElementVNode("div", {
75
+ class: normalizeClass(_ctx.$style.header)
76
+ }, [
77
+ createElementVNode("div", {
78
+ class: normalizeClass(_ctx.$style["header-container"])
79
+ }, [
80
+ __props.icon ? (openBlock(), createBlock(Component$1, {
81
+ key: 0,
82
+ name: __props.icon,
83
+ class: normalizeClass(_ctx.$style.icon)
84
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true),
85
+ renderSlot(_ctx.$slots, "title", {}, () => [
86
+ createTextVNode(toDisplayString(__props.title), 1)
87
+ ])
88
+ ], 2),
89
+ createElementVNode("div", {
90
+ class: normalizeClass(_ctx.$style.actions)
91
+ }, [
92
+ unref(isEditing) ? (openBlock(), createBlock(Component$2, {
93
+ key: 0,
94
+ icon: { type: "el", name: "Close" },
95
+ onClick: handleCancel
96
+ }, {
97
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
98
+ createTextVNode("取消", -1)
99
+ ])]),
100
+ _: 1
101
+ })) : createCommentVNode("", true),
102
+ unref(isEditing) ? (openBlock(), createBlock(Component$2, {
103
+ key: 1,
104
+ type: "primary",
105
+ icon: { type: "el", name: "Check" },
106
+ onClick: handleSave
107
+ }, {
108
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
109
+ createTextVNode("保存", -1)
110
+ ])]),
111
+ _: 1
112
+ })) : createCommentVNode("", true),
113
+ !unref(isEditing) ? (openBlock(), createBlock(Component$2, {
114
+ key: 2,
115
+ type: "primary",
116
+ icon: { type: "el", name: "Edit" },
117
+ onClick: handleEdit
118
+ }, {
119
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
120
+ createTextVNode("编辑", -1)
121
+ ])]),
122
+ _: 1
123
+ })) : createCommentVNode("", true),
124
+ renderSlot(_ctx.$slots, "action")
125
+ ], 2)
126
+ ], 2),
127
+ createVNode(Component$3, { always: "" }, {
128
+ default: withCtx(() => [
129
+ (openBlock(), createBlock(resolveDynamicComponent(unref(formComponent)), mergeProps({
130
+ ref_key: "formRef",
131
+ ref: formRef
132
+ }, props.formProps, {
133
+ model: __props.form.fields,
134
+ rules: __props.form.rules,
135
+ disabled: !unref(isEditing),
136
+ "require-asterisk-position": "right"
137
+ }), {
138
+ default: withCtx(() => [
139
+ renderSlot(_ctx.$slots, "default")
140
+ ]),
141
+ _: 3
142
+ }, 16, ["model", "rules", "disabled"]))
143
+ ]),
144
+ _: 3
145
+ })
146
+ ], 2)), [
147
+ [_directive_loading, unref(loading)]
148
+ ]);
149
+ };
150
+ }
151
+ });
152
+
153
+ /* unplugin-vue-components disabled */const header = "_header_gacal_8";
154
+ const icon = "_icon_gacal_25";
155
+ const actions = "_actions_gacal_29";
156
+ const style0 = {
157
+ "explorer-form": "_explorer-form_gacal_1",
158
+ header: header,
159
+ "header-container": "_header-container_gacal_21",
160
+ icon: icon,
161
+ actions: actions
162
+ };
163
+
164
+ const cssModules = {
165
+ "$style": style0
166
+ };
167
+ const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
168
+
169
+ const __vite_glob_0_24 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
170
+ __proto__: null,
171
+ default: Component
172
+ }, Symbol.toStringTag, { value: 'Module' }));
173
+
174
+ export { Component as C, __vite_glob_0_24 as _ };
@@ -0,0 +1,33 @@
1
+ import { IExplorerFormProps } from './explorer-form';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ title?(_: {}): any;
6
+ action?(_: {}): any;
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {
10
+ formRef: unknown;
11
+ };
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ clickEdit: () => any;
17
+ }, string, import('vue').PublicProps, Readonly<IExplorerFormProps> & Readonly<{
18
+ onClickEdit?: (() => any) | undefined;
19
+ }>, {
20
+ icon: string;
21
+ onCancel: () => void | Promise<void>;
22
+ onSave: (data: Record<string, any>) => void | Promise<void>;
23
+ autoInitial: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ formRef: unknown;
26
+ }, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,33 @@
1
+ /* source: src/components/explorer-form/explorer-form.vue */
2
+ ._explorer-form_gacal_1 {
3
+ display: flex;
4
+ flex-direction: column;
5
+ flex-grow: 1;
6
+ height: 100px;
7
+ }
8
+ ._header_gacal_8 {
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: space-between;
12
+ border-bottom: 1px solid var(--el-border-color-lighter);
13
+ padding-bottom: 7px;
14
+ box-sizing: border-box;
15
+ margin-bottom: 8px;
16
+ color: var(--el-text-color-regular);
17
+ flex-wrap: wrap;
18
+ row-gap: 8px;
19
+ }
20
+ ._header-container_gacal_21 {
21
+ font-size: 1.2em;
22
+ }
23
+ ._icon_gacal_25 {
24
+ margin-right: 4px;
25
+ }
26
+ ._actions_gacal_29 {
27
+ display: flex;
28
+ align-items: center;
29
+ gap: 8px;
30
+ }
31
+ ._actions_gacal_29 .el-button {
32
+ margin-left: 0 !important;
33
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/typescript';
2
+ import { default as Component } from './explorer-form.vue';
3
+ export declare const VcExplorerContainer: SFCWithInstall<typeof Component>;
4
+ export default VcExplorerContainer;
@@ -0,0 +1,6 @@
1
+ import { w as withInstall } from '../../chunk/ClZGuAIb.mjs';
2
+ import { C as Component } from './explorer-form.mjs';
3
+
4
+ const VcExplorerContainer = withInstall(Component);
5
+
6
+ export { VcExplorerContainer, VcExplorerContainer as default };
@@ -0,0 +1,23 @@
1
+ import { IButtonProps } from '../button/button';
2
+ export interface IExplorerListItem<T = any> {
3
+ label: string;
4
+ icon?: string;
5
+ value: string | number;
6
+ original?: T;
7
+ }
8
+ export interface IExplorerListProps {
9
+ data?: IExplorerListItem[];
10
+ actions?: ('create' | 'modify' | 'remove')[];
11
+ filterMethod?: (keyword: string, item: IExplorerListItem) => boolean;
12
+ emptyText?: string;
13
+ loading?: boolean;
14
+ loadingText?: string;
15
+ highlightCurrent?: boolean;
16
+ confirmParams?: (item: IExplorerListItem) => IButtonProps['confirm'];
17
+ }
18
+ export interface IExplorerListEmits {
19
+ (e: 'itemClick', value: string | number, item: IExplorerListItem, event: MouseEvent): void;
20
+ (e: 'create', value: string | number, item: IExplorerListItem): void;
21
+ (e: 'modify', value: string | number, item: IExplorerListItem): void;
22
+ (e: 'remove', value: string | number, item: IExplorerListItem): void;
23
+ }
@@ -0,0 +1,160 @@
1
+ import './index.css'
2
+ import '../../chunk/By7FMB3I.mjs';
3
+ import { defineComponent, ref, computed, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, Fragment, renderList, unref, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode } from 'vue';
4
+ import { Loading } from '@element-plus/icons-vue';
5
+ import { C as Component$3 } from '../button/button.mjs';
6
+ import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
7
+ import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
8
+ import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
9
+ import { E as ElIcon } from '../../chunk/D1MHFKtN.mjs';
10
+ import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
11
+
12
+ const _hoisted_1 = ["onClick"];
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ __name: "explorer-list",
15
+ props: {
16
+ data: { default: () => [] },
17
+ actions: { default: () => [] },
18
+ filterMethod: {},
19
+ emptyText: { default: "没有数据" },
20
+ loading: { type: Boolean },
21
+ loadingText: { default: "数据加载中..." },
22
+ highlightCurrent: { type: Boolean, default: true },
23
+ confirmParams: { type: Function, default: (item) => {
24
+ return { msg: `确定要删除 ${item.label} 吗?` };
25
+ } }
26
+ },
27
+ emits: ["itemClick", "create", "modify", "remove"],
28
+ setup(__props, { emit: __emit }) {
29
+ const props = __props;
30
+ const emits = __emit;
31
+ const { filterKeyword } = injectExplorerPanelState();
32
+ const actived = ref();
33
+ const filterMethod = props.filterMethod || ((keyword, item) => {
34
+ return item.label.toLowerCase().includes(keyword.toLowerCase());
35
+ });
36
+ const myData = computed(() => {
37
+ return filterKeyword.value ? props.data.filter((item) => filterMethod(filterKeyword.value, item)) : props.data;
38
+ });
39
+ const isEmpty = computed(() => myData.value.length === 0);
40
+ function handleClick(item, e) {
41
+ if (!props.highlightCurrent) {
42
+ return;
43
+ }
44
+ actived.value = item.value;
45
+ emits("itemClick", item.value, item, e);
46
+ }
47
+ return (_ctx, _cache) => {
48
+ const _component_ElIcon = ElIcon;
49
+ return openBlock(), createBlock(Component$1, { always: "" }, {
50
+ default: withCtx(() => [
51
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(myData), (item, index) => {
52
+ return openBlock(), createElementBlock("div", {
53
+ key: item.value,
54
+ class: normalizeClass([_ctx.$style.item, { [_ctx.$style.active]: unref(actived) === item.value }]),
55
+ onClick: (e) => handleClick(item, e)
56
+ }, [
57
+ createElementVNode("div", {
58
+ class: normalizeClass(_ctx.$style.label)
59
+ }, [
60
+ renderSlot(_ctx.$slots, "default", {
61
+ data: item,
62
+ index
63
+ }, () => [
64
+ item.icon ? (openBlock(), createBlock(Component$2, {
65
+ key: 0,
66
+ name: item.icon,
67
+ class: normalizeClass(_ctx.$style.icon)
68
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true),
69
+ createTextVNode(toDisplayString(item.label), 1)
70
+ ])
71
+ ], 2),
72
+ __props.actions.length ? (openBlock(), createElementBlock("div", {
73
+ key: 0,
74
+ class: normalizeClass(_ctx.$style.actions)
75
+ }, [
76
+ __props.actions.includes("create") ? (openBlock(), createBlock(Component$3, {
77
+ key: 0,
78
+ title: "新增",
79
+ type: "success",
80
+ link: "",
81
+ icon: { type: "el", name: "Plus" },
82
+ stop: "",
83
+ onClick: ($event) => emits("create", item.value, item)
84
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
85
+ __props.actions.includes("modify") ? (openBlock(), createBlock(Component$3, {
86
+ key: 1,
87
+ title: "修改",
88
+ type: "primary",
89
+ link: "",
90
+ icon: { type: "el", name: "Edit" },
91
+ stop: "",
92
+ onClick: ($event) => emits("modify", item.value, item)
93
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
94
+ __props.actions.includes("remove") ? (openBlock(), createBlock(Component$3, {
95
+ key: 2,
96
+ title: "删除",
97
+ type: "danger",
98
+ link: "",
99
+ icon: { type: "el", name: "Delete" },
100
+ confirm: __props.confirmParams(item),
101
+ stop: "",
102
+ class: normalizeClass(_ctx.$style.remove),
103
+ onClick: ($event) => emits("remove", item.value, item)
104
+ }, null, 8, ["confirm", "class", "onClick"])) : createCommentVNode("", true)
105
+ ], 2)) : createCommentVNode("", true)
106
+ ], 10, _hoisted_1);
107
+ }), 128)),
108
+ unref(isEmpty) && !__props.loading ? (openBlock(), createElementBlock("div", {
109
+ key: 0,
110
+ class: normalizeClass(_ctx.$style.empty)
111
+ }, toDisplayString(__props.emptyText), 3)) : createCommentVNode("", true),
112
+ __props.loading ? (openBlock(), createElementBlock("div", {
113
+ key: 1,
114
+ class: normalizeClass(_ctx.$style.loading)
115
+ }, [
116
+ createVNode(_component_ElIcon, { class: "is-loading" }, {
117
+ default: withCtx(() => [
118
+ createVNode(unref(Loading))
119
+ ]),
120
+ _: 1
121
+ }),
122
+ createTextVNode(toDisplayString(__props.loadingText), 1)
123
+ ], 2)) : createCommentVNode("", true)
124
+ ]),
125
+ _: 3
126
+ });
127
+ };
128
+ }
129
+ });
130
+
131
+ /* unplugin-vue-components disabled */const item = "_item_5dblq_1";
132
+ const actions = "_actions_5dblq_16";
133
+ const active = "_active_5dblq_20";
134
+ const label = "_label_5dblq_25";
135
+ const icon = "_icon_5dblq_31";
136
+ const remove = "_remove_5dblq_44";
137
+ const empty = "_empty_5dblq_48";
138
+ const loading = "_loading_5dblq_49";
139
+ const style0 = {
140
+ item: item,
141
+ actions: actions,
142
+ active: active,
143
+ label: label,
144
+ icon: icon,
145
+ remove: remove,
146
+ empty: empty,
147
+ loading: loading
148
+ };
149
+
150
+ const cssModules = {
151
+ "$style": style0
152
+ };
153
+ const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
154
+
155
+ const __vite_glob_0_25 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
156
+ __proto__: null,
157
+ default: Component
158
+ }, Symbol.toStringTag, { value: 'Module' }));
159
+
160
+ export { Component as C, __vite_glob_0_25 as _ };
@@ -0,0 +1,38 @@
1
+ import { IExplorerListItem, IExplorerListProps } from './explorer-list';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {
6
+ data: IExplorerListItem<any>;
7
+ index: number;
8
+ }): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<IExplorerListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ create: (value: string | number, item: IExplorerListItem<any>) => any;
16
+ modify: (value: string | number, item: IExplorerListItem<any>) => any;
17
+ remove: (value: string | number, item: IExplorerListItem<any>) => any;
18
+ itemClick: (value: string | number, item: IExplorerListItem<any>, event: MouseEvent) => any;
19
+ }, string, import('vue').PublicProps, Readonly<IExplorerListProps> & Readonly<{
20
+ onCreate?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
21
+ onModify?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
22
+ onRemove?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
23
+ onItemClick?: ((value: string | number, item: IExplorerListItem<any>, event: MouseEvent) => any) | undefined;
24
+ }>, {
25
+ data: IExplorerListItem[];
26
+ loadingText: string;
27
+ emptyText: string;
28
+ highlightCurrent: boolean;
29
+ actions: ("create" | "modify" | "remove")[];
30
+ confirmParams: (item: IExplorerListItem) => import('../button/button').IButtonProps["confirm"];
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,51 @@
1
+ /* source: src/components/explorer-list/explorer-list.vue */
2
+ ._item_5dblq_1 {
3
+ padding: 4px 8px;
4
+ cursor: pointer;
5
+ display: flex;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ font-size: var(--el-font-size-base);
9
+ color: var(--el-text-color-regular);
10
+ min-height: 32px;
11
+ box-sizing: border-box;
12
+ line-height: 1;
13
+ }
14
+ ._item_5dblq_1:hover {
15
+ background-color: var(--el-color-primary-light-9);
16
+ }
17
+ ._item_5dblq_1:hover ._actions_5dblq_16 {
18
+ display: inline-flex;
19
+ align-items: flex-start;
20
+ }
21
+ ._item_5dblq_1._active_5dblq_20 {
22
+ color: var(--el-color-primary);
23
+ background-color: var(--el-color-primary-light-9);
24
+ }
25
+ ._label_5dblq_25 {
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ white-space: nowrap;
29
+ }
30
+ ._icon_5dblq_31 {
31
+ margin-right: 4px;
32
+ }
33
+ ._actions_5dblq_16 {
34
+ display: none;
35
+ column-gap: 4px;
36
+ }
37
+ ._actions_5dblq_16 > button {
38
+ margin-left: 0 !important;
39
+ font-size: 1.2em;
40
+ }
41
+ ._remove_5dblq_44 {
42
+ transform: translateY(-1px);
43
+ }
44
+ ._empty_5dblq_48,
45
+ ._loading_5dblq_49 {
46
+ padding: 4px 8px;
47
+ display: flex;
48
+ align-items: center;
49
+ column-gap: 4px;
50
+ color: var(--el-text-color-secondary);
51
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/typescript';
2
+ import { default as Component } from './explorer-list.vue';
3
+ export declare const VcExplorerList: SFCWithInstall<typeof Component>;
4
+ export default VcExplorerList;
@@ -0,0 +1,6 @@
1
+ import { w as withInstall } from '../../chunk/ClZGuAIb.mjs';
2
+ import { C as Component } from './explorer-list.mjs';
3
+
4
+ const VcExplorerList = withInstall(Component);
5
+
6
+ export { VcExplorerList, VcExplorerList as default };
@@ -0,0 +1,14 @@
1
+ import { Reactive, Ref } from 'vue';
2
+ import { IColumnConfig } from '../explorer-column-table/explorer-column-table';
3
+ export interface IExplorerPanelProps {
4
+ resizable?: boolean;
5
+ padding?: number;
6
+ }
7
+ export interface IExplorerPanelState {
8
+ fullscreenTarget: Ref<HTMLElement>;
9
+ columnConfig: Ref<IColumnConfig[]>;
10
+ filterKeyword: Ref<string>;
11
+ actions: Reactive<Record<string, () => void>>;
12
+ }
13
+ export declare const KEY_NAME: unique symbol;
14
+ export declare const injectExplorerPanelState: () => IExplorerPanelState;
@@ -0,0 +1,77 @@
1
+ import './index.css'
2
+ import '../../chunk/By7FMB3I.mjs';
3
+ /* empty css */
4
+ import { defineComponent, useCssVars, useTemplateRef, ref, reactive, onMounted, createBlock, openBlock, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot } from 'vue';
5
+ import { useProvide } from '../../use/useStore/index.mjs';
6
+ import { K as KEY_NAME } from './explorer-panel2.mjs';
7
+ import { a as ElSplitterPanel } from '../../chunk/CsjEhAYY.mjs';
8
+ import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
9
+
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "explorer-panel",
12
+ props: {
13
+ resizable: { type: Boolean, default: false },
14
+ padding: { default: 8 }
15
+ },
16
+ setup(__props) {
17
+ useCssVars((_ctx) => ({
18
+ "v1db768b6": `${_ctx.padding}px`
19
+ }));
20
+ const panelRef = useTemplateRef("panelRef");
21
+ const fullscreenTarget = ref();
22
+ const columnConfig = ref([]);
23
+ const filterKeyword = ref("");
24
+ const actions = reactive({
25
+ saveColumnConfig: () => {
26
+ }
27
+ });
28
+ useProvide(KEY_NAME, {
29
+ fullscreenTarget,
30
+ columnConfig,
31
+ filterKeyword,
32
+ actions
33
+ });
34
+ onMounted(() => {
35
+ if (panelRef.value?.splitterPanelRef) {
36
+ fullscreenTarget.value = panelRef.value.splitterPanelRef;
37
+ }
38
+ });
39
+ return (_ctx, _cache) => {
40
+ const _component_ElSplitterPanel = ElSplitterPanel;
41
+ return openBlock(), createBlock(_component_ElSplitterPanel, mergeProps({
42
+ ref_key: "panelRef",
43
+ ref: panelRef,
44
+ class: _ctx.$style.panel,
45
+ resizable: __props.resizable
46
+ }, _ctx.$attrs), {
47
+ default: withCtx(() => [
48
+ createElementVNode("div", {
49
+ class: normalizeClass(_ctx.$style.container)
50
+ }, [
51
+ renderSlot(_ctx.$slots, "default")
52
+ ], 2)
53
+ ]),
54
+ _: 3
55
+ }, 16, ["class", "resizable"]);
56
+ };
57
+ }
58
+ });
59
+
60
+ /* unplugin-vue-components disabled */const panel = "_panel_eba23_1";
61
+ const container = "_container_eba23_6";
62
+ const style0 = {
63
+ panel: panel,
64
+ container: container
65
+ };
66
+
67
+ const cssModules = {
68
+ "$style": style0
69
+ };
70
+ const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
71
+
72
+ const __vite_glob_0_26 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
73
+ __proto__: null,
74
+ default: Component
75
+ }, Symbol.toStringTag, { value: 'Module' }));
76
+
77
+ export { Component as C, __vite_glob_0_26 as _ };