@web-utils/component 2.7.20 → 2.7.22

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 (290) hide show
  1. package/dist/chunks/{config.46422d7f.js → config.7dec2bf2.js} +2 -2
  2. package/dist/chunks/confirmable-mixin.35bd1934.js +104 -0
  3. package/dist/chunks/dataformat.9cc4428a.js +158 -0
  4. package/dist/chunks/dayjs.ed2e1b73.js +247 -0
  5. package/dist/chunks/detail.d47a021c.js +29 -0
  6. package/dist/chunks/dic.9de2fe5a.js +135 -0
  7. package/dist/chunks/{event.dd6f522d.js → event.fc358074.js} +31 -31
  8. package/dist/chunks/{form-input-mixin.ff5b58f7.js → form-input-mixin.760cd65d.js} +6 -6
  9. package/dist/chunks/form-item-mixin.fa314b67.js +139 -0
  10. package/dist/chunks/{form-pick-mixin.61ad06b2.js → form-pick-mixin.c4e0391b.js} +2 -2
  11. package/dist/chunks/init.e0133910.js +122 -0
  12. package/dist/chunks/{input-number-mixin.41a066be.js → input-number-mixin.6849fa63.js} +4 -4
  13. package/dist/chunks/{mixins.5a78e0db.js → mixins.6a394a6c.js} +4 -4
  14. package/dist/chunks/{packages.1fc9ccba.js → packages.419bde01.js} +7 -7
  15. package/dist/chunks/permission.07c49abf.js +16 -0
  16. package/dist/chunks/slot.a7387ecc.js +27 -0
  17. package/dist/chunks/tab-mixin.9d568df9.js +81 -0
  18. package/dist/chunks/util.89913643.js +261 -0
  19. package/dist/chunks/utils.d7f73f8d.js +185 -0
  20. package/dist/chunks/utils.f44207f4.js +26 -0
  21. package/dist/chunks/vueComponentNormalizer.77ec6792.js +32 -0
  22. package/dist/components/address-input/index.js +36 -36
  23. package/dist/components/affix/index.js +39 -39
  24. package/dist/components/aside-menu/index.js +29 -29
  25. package/dist/components/avatar/index.js +43 -43
  26. package/dist/components/awesome-button/index.js +64 -34
  27. package/dist/components/base.css +1 -1
  28. package/dist/components/capsule-tab/index.js +26 -26
  29. package/dist/components/card/index.js +49 -49
  30. package/dist/components/carousel/index.js +35 -35
  31. package/dist/components/chat/index.js +203 -203
  32. package/dist/components/chunk-file-uploader/index.js +46 -46
  33. package/dist/components/chunk-file-uploader-button/index.js +22 -22
  34. package/dist/components/chunk-file-uploader-drop/index.js +47 -29
  35. package/dist/components/chunk-file-uploader-file/index.js +119 -119
  36. package/dist/components/chunk-file-uploader-files/index.js +27 -27
  37. package/dist/components/chunk-file-uploader-list/index.js +27 -27
  38. package/dist/components/chunk-file-uploader-un-support/index.js +27 -27
  39. package/dist/components/code-mirror-editor/index.js +136 -136
  40. package/dist/components/color-picker/index.js +57 -39
  41. package/dist/components/column/index.js +66 -66
  42. package/dist/components/column-default/index.js +54 -54
  43. package/dist/components/column-dynamic/index.js +54 -54
  44. package/dist/components/column-menu/index.js +128 -128
  45. package/dist/components/column-slot/index.js +168 -168
  46. package/dist/components/comment/index.js +33 -33
  47. package/dist/components/confirm-button/index.js +18 -18
  48. package/dist/components/confirmable/index.js +17 -17
  49. package/dist/components/context-menu/index.js +89 -89
  50. package/dist/components/count-up/index.js +50 -39
  51. package/dist/components/custom-scrollbar/index.js +62 -49
  52. package/dist/components/data-box/index.js +41 -41
  53. package/dist/components/data-card/index.js +38 -38
  54. package/dist/components/data-cardtext/index.js +33 -33
  55. package/dist/components/data-display/index.js +37 -37
  56. package/dist/components/data-icons/index.js +40 -40
  57. package/dist/components/data-imgtext/index.js +44 -44
  58. package/dist/components/data-operatext/index.js +44 -44
  59. package/dist/components/data-panel/index.js +38 -38
  60. package/dist/components/data-pay/index.js +60 -60
  61. package/dist/components/data-price/index.js +38 -38
  62. package/dist/components/data-progress/index.js +39 -39
  63. package/dist/components/data-rotate/index.js +39 -39
  64. package/dist/components/data-table-picker/index.js +151 -53
  65. package/dist/components/data-tabs/index.js +39 -39
  66. package/dist/components/data-tabs/style.css +1 -1
  67. package/dist/components/dialog-column/index.js +50 -50
  68. package/dist/components/dialog-excel/index.js +68 -68
  69. package/dist/components/dialog-filter/index.js +84 -84
  70. package/dist/components/dialog-form/index.js +89 -89
  71. package/dist/components/dynamic-table/index.js +71 -71
  72. package/dist/components/e-charts/index.js +95 -94
  73. package/dist/components/easy-popup/index.js +87 -0
  74. package/dist/components/easy-popup/style.css +1 -0
  75. package/dist/components/editable-progress/index.js +48 -48
  76. package/dist/components/editable-tree/index.js +701 -348
  77. package/dist/components/egd-collapse/index.js +29 -29
  78. package/dist/components/egd-collapse-item/index.js +51 -51
  79. package/dist/components/element-dialog/index.js +74 -65
  80. package/dist/components/empty-view/index.js +26 -26
  81. package/dist/components/error-view/index.js +25 -25
  82. package/dist/components/flex-column/index.js +31 -19
  83. package/dist/components/flex-item/index.js +32 -20
  84. package/dist/components/flex-row/index.js +31 -19
  85. package/dist/components/flex-scroller/index.js +24 -24
  86. package/dist/components/flex-scroller/style.css +1 -1
  87. package/dist/components/flow/index.js +100 -100
  88. package/dist/components/flow-node/index.js +37 -37
  89. package/dist/components/flow-viewer/index.js +162 -0
  90. package/dist/components/flow-viewer/style.css +1 -0
  91. package/dist/components/form-button/index.js +32 -32
  92. package/dist/components/form-cascader/index.js +73 -61
  93. package/dist/components/form-checkbox-group/index.js +72 -61
  94. package/dist/components/form-date-picker/index.js +71 -62
  95. package/dist/components/form-group/index.js +38 -38
  96. package/dist/components/form-holder/index.js +50 -32
  97. package/dist/components/form-input/index.js +61 -50
  98. package/dist/components/form-input-email/index.js +55 -44
  99. package/dist/components/form-input-id-card/index.js +60 -49
  100. package/dist/components/form-input-number/index.js +60 -49
  101. package/dist/components/form-input-phone-number/index.js +56 -45
  102. package/dist/components/form-input-time/index.js +59 -48
  103. package/dist/components/form-item/index.js +107 -79
  104. package/dist/components/form-item-config-provider/index.js +19 -19
  105. package/dist/components/form-item-group/index.js +65 -65
  106. package/dist/components/form-radio-group/index.js +72 -61
  107. package/dist/components/form-select/index.js +63 -52
  108. package/dist/components/form-switch/index.js +56 -45
  109. package/dist/components/form-temp/index.js +50 -50
  110. package/dist/components/form-textarea/index.js +55 -44
  111. package/dist/components/form-view/index.js +172 -149
  112. package/dist/components/fy-array/index.js +64 -64
  113. package/dist/components/fy-article/index.js +34 -34
  114. package/dist/components/fy-cascader/index.js +52 -52
  115. package/dist/components/fy-checkbox/index.js +52 -52
  116. package/dist/components/fy-code/index.js +30 -30
  117. package/dist/components/fy-curd/index.js +317 -317
  118. package/dist/components/fy-date/index.js +45 -45
  119. package/dist/components/fy-dialog-form/index.js +115 -115
  120. package/dist/components/fy-draggable/index.js +120 -120
  121. package/dist/components/fy-draggable/style.css +1 -1
  122. package/dist/components/fy-dynamic/index.js +126 -126
  123. package/dist/components/fy-empty/index.js +26 -26
  124. package/dist/components/fy-form/index.js +384 -366
  125. package/dist/components/fy-form-design/index.js +6956 -459
  126. package/dist/components/fy-form-design/style.css +1 -1
  127. package/dist/components/fy-form-menu/index.js +45 -45
  128. package/dist/components/fy-input/index.js +61 -61
  129. package/dist/components/fy-input-color/index.js +41 -41
  130. package/dist/components/fy-input-icon/index.js +70 -70
  131. package/dist/components/fy-input-map/index.js +102 -102
  132. package/dist/components/fy-input-number/index.js +39 -39
  133. package/dist/components/fy-input-table/index.js +70 -70
  134. package/dist/components/fy-input-tree/index.js +105 -105
  135. package/dist/components/fy-progress/index.js +25 -25
  136. package/dist/components/fy-radio/index.js +36 -36
  137. package/dist/components/fy-rate/index.js +40 -40
  138. package/dist/components/fy-select/index.js +101 -101
  139. package/dist/components/fy-slider/index.js +42 -42
  140. package/dist/components/fy-switch/index.js +37 -37
  141. package/dist/components/fy-tabs/index.js +35 -35
  142. package/dist/components/fy-time/index.js +47 -47
  143. package/dist/components/fy-title/index.js +23 -23
  144. package/dist/components/fy-tree/index.js +157 -157
  145. package/dist/components/fy-u-editor/index.js +138 -105
  146. package/dist/components/fy-upload/index.js +270 -270
  147. package/dist/components/guide-steps/index.js +41 -41
  148. package/dist/components/header-menu/index.js +94 -94
  149. package/dist/components/header-search/index.js +121 -121
  150. package/dist/components/highlight-j-s/index.js +76 -0
  151. package/dist/components/highlight-j-s/style.css +1 -0
  152. package/dist/components/icon-card/index.js +28 -28
  153. package/dist/components/icon-temp/index.js +24 -24
  154. package/dist/components/iframe-window/index.js +24 -24
  155. package/dist/components/iframe-window/style.css +1 -1
  156. package/dist/components/image-cropper/index.js +128 -119
  157. package/dist/components/image-preview/index.js +140 -130
  158. package/dist/components/image-viewer/index.js +35 -35
  159. package/dist/components/input-number/index.js +116 -116
  160. package/dist/components/input-number-range/index.js +37 -37
  161. package/dist/components/j-s-x-component/index.js +4 -4
  162. package/dist/components/keep-view-alive/index.js +71 -71
  163. package/dist/components/keyboard/index.js +182 -182
  164. package/dist/components/keyboard/style.css +1 -1
  165. package/dist/components/license/index.js +54 -54
  166. package/dist/components/loading-view/index.js +25 -25
  167. package/dist/components/login/index.js +94 -94
  168. package/dist/components/name-avatar/index.js +26 -26
  169. package/dist/components/nav-bar/index.js +22 -22
  170. package/dist/components/not-implement/index.js +22 -22
  171. package/dist/components/notice/index.js +55 -55
  172. package/dist/components/page/index.js +20 -20
  173. package/dist/components/page-header/index.js +28 -28
  174. package/dist/components/page-index/index.js +86 -62
  175. package/dist/components/page-index-top/index.js +73 -51
  176. package/dist/components/page-skeleton/index.js +28 -28
  177. package/dist/components/page-skeleton-new/index.js +38 -38
  178. package/dist/components/pageable-table/index.js +206 -161
  179. package/dist/components/pageable-table/style.css +1 -1
  180. package/dist/components/pageable-view/index.js +169 -124
  181. package/dist/components/pageable-view/style.css +1 -1
  182. package/dist/components/photo-swipe/index.js +88 -66
  183. package/dist/components/process-designer/index.js +4668 -0
  184. package/dist/components/process-designer/style.css +1 -0
  185. package/dist/components/properties-panel/index.js +4791 -0
  186. package/dist/components/properties-panel/style.css +1 -0
  187. package/dist/components/queue/index.js +24 -24
  188. package/dist/components/record-video/index.js +55 -55
  189. package/dist/components/resize-observer/index.js +26 -26
  190. package/dist/components/search/index.js +64 -64
  191. package/dist/components/search-popover/index.js +119 -99
  192. package/dist/components/sign/index.js +66 -66
  193. package/dist/components/sign-panel/index.js +78 -78
  194. package/dist/components/sign-panel/style.css +1 -1
  195. package/dist/components/skeleton/index.js +35 -35
  196. package/dist/components/split-pane/index.js +108 -90
  197. package/dist/components/stateful/index.js +29 -29
  198. package/dist/components/static-pageable-table/index.js +30 -30
  199. package/dist/components/swiper/index.js +93 -73
  200. package/dist/components/tab/index.js +47 -47
  201. package/dist/components/tab-item/index.js +29 -29
  202. package/dist/components/table-column/index.js +37 -27
  203. package/dist/components/table-page/index.js +51 -51
  204. package/dist/components/table-view/index.js +175 -148
  205. package/dist/components/tag-render/index.js +50 -39
  206. package/dist/components/text-ellipsis/index.js +40 -40
  207. package/dist/components/tinymce-editor/index.js +85 -67
  208. package/dist/components/tinymce-wrapper/index.js +88 -78
  209. package/dist/components/toolbar/index.js +52 -52
  210. package/dist/components/toolbar-button/index.js +56 -38
  211. package/dist/components/trigger/index.js +27 -27
  212. package/dist/components/verify/index.js +33 -33
  213. package/dist/components/vue-tags-input/index.js +137 -137
  214. package/dist/components/watermark/index.js +37 -27
  215. package/dist/components/watermark/style.css +1 -1
  216. package/dist/index.css +1983 -228
  217. package/dist/index.es.js +23132 -12684
  218. package/package.json +18 -6
  219. package/web-types.json +307 -1
  220. package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +0 -302
  221. package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +0 -51
  222. package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +0 -24
  223. package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +0 -52
  224. package/dist/chunks/ConfigDate.vue_vue_type_template_lang.116fbad4.js +0 -104
  225. package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.99082e47.js +0 -133
  226. package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +0 -96
  227. package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +0 -48
  228. package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +0 -96
  229. package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +0 -31
  230. package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +0 -130
  231. package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +0 -125
  232. package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.dfc91f07.js +0 -488
  233. package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +0 -99
  234. package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +0 -54
  235. package/dist/chunks/ConfigTable.vue_vue_type_template_lang.b27540fd.js +0 -344
  236. package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +0 -88
  237. package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +0 -87
  238. package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js +0 -465
  239. package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +0 -240
  240. package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.129c0ced.js +0 -476
  241. package/dist/chunks/FormConfig.vue_vue_type_template_lang.82463ce5.js +0 -220
  242. package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js +0 -1821
  243. package/dist/chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js +0 -247
  244. package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js +0 -271
  245. package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +0 -24
  246. package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js +0 -229
  247. package/dist/chunks/confirmable-mixin.3a79781b.js +0 -75
  248. package/dist/chunks/dataformat.65b92bfe.js +0 -158
  249. package/dist/chunks/detail.d67573b1.js +0 -28
  250. package/dist/chunks/dic.70feb9b4.js +0 -135
  251. package/dist/chunks/form-item-mixin.79f6eaff.js +0 -128
  252. package/dist/chunks/init.7c58eb34.js +0 -122
  253. package/dist/chunks/monaco.cefcb9f5.js +0 -290
  254. package/dist/chunks/permission.ce5d2121.js +0 -16
  255. package/dist/chunks/slot.4b391395.js +0 -27
  256. package/dist/chunks/tab-mixin.8c0142e0.js +0 -81
  257. package/dist/chunks/util.23fe58fb.js +0 -261
  258. package/dist/chunks/utils.97652d86.js +0 -26
  259. package/dist/chunks/utils.fa73de78.js +0 -185
  260. package/dist/chunks/vueComponentNormalizer.71e2aa87.js +0 -32
  261. package/dist/components/afd-column/index.js +0 -57
  262. package/dist/components/config-array/index.js +0 -28
  263. package/dist/components/config-color/index.js +0 -28
  264. package/dist/components/config-custom/index.js +0 -62
  265. package/dist/components/config-date/index.js +0 -28
  266. package/dist/components/config-dynamic/index.js +0 -28
  267. package/dist/components/config-event/index.js +0 -74
  268. package/dist/components/config-group/index.js +0 -36
  269. package/dist/components/config-input/index.js +0 -29
  270. package/dist/components/config-map/index.js +0 -28
  271. package/dist/components/config-number/index.js +0 -28
  272. package/dist/components/config-rate/index.js +0 -71
  273. package/dist/components/config-rate/style.css +0 -1
  274. package/dist/components/config-select/index.js +0 -90
  275. package/dist/components/config-slider/index.js +0 -28
  276. package/dist/components/config-switch/index.js +0 -33
  277. package/dist/components/config-switch/style.css +0 -1
  278. package/dist/components/config-table/index.js +0 -122
  279. package/dist/components/config-textarea/index.js +0 -28
  280. package/dist/components/config-title/index.js +0 -33
  281. package/dist/components/config-tree/index.js +0 -122
  282. package/dist/components/config-tree/style.css +0 -1
  283. package/dist/components/config-u-editor/index.js +0 -34
  284. package/dist/components/config-upload/index.js +0 -58
  285. package/dist/components/form-config/index.js +0 -28
  286. package/dist/components/widget-config/index.js +0 -110
  287. package/dist/components/widget-form/index.js +0 -71
  288. package/dist/components/widget-form-group/index.js +0 -96
  289. package/dist/components/widget-form-item/index.js +0 -71
  290. package/dist/components/widget-form-table/index.js +0 -95
@@ -1,6 +1,18 @@
1
- import { h as s } from "../../chunks/utils.fa73de78.js";
2
- import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- const c = {
1
+ var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
2
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
6
+ for (var prop in b || (b = {}))
7
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
8
+ if (__getOwnPropSymbols)
9
+ for (var prop of __getOwnPropSymbols(b))
10
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
11
+ return a;
12
+ }, __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13
+ import { g as getClass } from "../../chunks/utils.d7f73f8d.js";
14
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
15
+ const __vue2_script = {
4
16
  name: "FlexColumn",
5
17
  functional: !0,
6
18
  props: {
@@ -21,30 +33,30 @@ const c = {
21
33
  default: !1
22
34
  }
23
35
  },
24
- render(l, { data: n, children: o, props: e }) {
25
- const t = s(n.class, "flex-column");
26
- return e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), l("div", { ...n, class: t }, o);
36
+ render(createElement, { data, children, props }) {
37
+ const viewClass = getClass(data.class, "flex-column");
38
+ return props.center || props.horizonCenter && props.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props.horizonCenter && viewClass.push("horizon-center"), props.verticalCenter && viewClass.push("vertical-center")), props.textCenter && viewClass.push("text-center"), createElement("div", __spreadProps(__spreadValues({}, data), { class: viewClass }), children);
27
39
  }
28
40
  };
29
- let i, u;
30
- const r = {};
31
- var f = /* @__PURE__ */ a(
32
- c,
33
- i,
34
- u,
41
+ let __vue2_render, __vue2_staticRenderFns;
42
+ const __cssModules = {};
43
+ var __component__ = /* @__PURE__ */ normalizeComponent(
44
+ __vue2_script,
45
+ __vue2_render,
46
+ __vue2_staticRenderFns,
35
47
  !1,
36
- _,
48
+ __vue2_injectStyles,
37
49
  null,
38
50
  null,
39
51
  null
40
52
  );
41
- function _(l) {
42
- for (let n in r)
43
- this[n] = r[n];
53
+ function __vue2_injectStyles(context) {
54
+ for (let o in __cssModules)
55
+ this[o] = __cssModules[o];
44
56
  }
45
- const v = /* @__PURE__ */ function() {
46
- return f.exports;
57
+ const FlexColumn = /* @__PURE__ */ function() {
58
+ return __component__.exports;
47
59
  }();
48
60
  export {
49
- v as default
61
+ FlexColumn as default
50
62
  };
@@ -1,6 +1,18 @@
1
- import { h as f } from "../../chunks/utils.fa73de78.js";
2
- import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- const r = {
1
+ var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
2
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
6
+ for (var prop in b || (b = {}))
7
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
8
+ if (__getOwnPropSymbols)
9
+ for (var prop of __getOwnPropSymbols(b))
10
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
11
+ return a;
12
+ }, __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13
+ import { g as getClass } from "../../chunks/utils.d7f73f8d.js";
14
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
15
+ const __vue2_script = {
4
16
  name: "FlexItem",
5
17
  functional: !0,
6
18
  props: {
@@ -37,33 +49,33 @@ const r = {
37
49
  default: !1
38
50
  }
39
51
  },
40
- render(n, { children: l, data: o, props: e }) {
41
- const t = f(o.class, e.relative ? "flex-item-relative" : "flex-item");
42
- return e.absolute && !e.relative && t.push("flex-item-relative"), e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), e.flexColumn && t.push("flex-column"), e.flexRow && t.push("flex-row"), e.absolute ? n("div", { ...o, class: t }, [n("div", {
52
+ render(createElement, { children, data, props }) {
53
+ const viewClass = getClass(data.class, props.relative ? "flex-item-relative" : "flex-item");
54
+ return props.absolute && !props.relative && viewClass.push("flex-item-relative"), props.center || props.horizonCenter && props.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props.horizonCenter && viewClass.push("horizon-center"), props.verticalCenter && viewClass.push("vertical-center")), props.textCenter && viewClass.push("text-center"), props.flexColumn && viewClass.push("flex-column"), props.flexRow && viewClass.push("flex-row"), props.absolute ? createElement("div", __spreadProps(__spreadValues({}, data), { class: viewClass }), [createElement("div", {
43
55
  class: "absolute",
44
56
  style: "overflow:auto"
45
- }, l)]) : n("div", { ...o, class: t }, l);
57
+ }, children)]) : createElement("div", __spreadProps(__spreadValues({}, data), { class: viewClass }), children);
46
58
  }
47
59
  };
48
- let i, u;
49
- const a = {};
50
- var c = /* @__PURE__ */ s(
51
- r,
52
- i,
53
- u,
60
+ let __vue2_render, __vue2_staticRenderFns;
61
+ const __cssModules = {};
62
+ var __component__ = /* @__PURE__ */ normalizeComponent(
63
+ __vue2_script,
64
+ __vue2_render,
65
+ __vue2_staticRenderFns,
54
66
  !1,
55
- v,
67
+ __vue2_injectStyles,
56
68
  null,
57
69
  null,
58
70
  null
59
71
  );
60
- function v(n) {
61
- for (let l in a)
62
- this[l] = a[l];
72
+ function __vue2_injectStyles(context) {
73
+ for (let o in __cssModules)
74
+ this[o] = __cssModules[o];
63
75
  }
64
- const h = /* @__PURE__ */ function() {
65
- return c.exports;
76
+ const FlexItem = /* @__PURE__ */ function() {
77
+ return __component__.exports;
66
78
  }();
67
79
  export {
68
- h as default
80
+ FlexItem as default
69
81
  };
@@ -1,6 +1,18 @@
1
- import { h as s } from "../../chunks/utils.fa73de78.js";
2
- import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- const c = {
1
+ var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
2
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
6
+ for (var prop in b || (b = {}))
7
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
8
+ if (__getOwnPropSymbols)
9
+ for (var prop of __getOwnPropSymbols(b))
10
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
11
+ return a;
12
+ }, __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13
+ import { g as getClass } from "../../chunks/utils.d7f73f8d.js";
14
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
15
+ const __vue2_script = {
4
16
  name: "FlexRow",
5
17
  functional: !0,
6
18
  props: {
@@ -21,30 +33,30 @@ const c = {
21
33
  default: !1
22
34
  }
23
35
  },
24
- render(r, { data: n, children: o, props: e }) {
25
- const t = s(n.class, "flex-row");
26
- return e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), r("div", { ...n, class: t }, o);
36
+ render(createElement, { data, children, props }) {
37
+ const viewClass = getClass(data.class, "flex-row");
38
+ return props.center || props.horizonCenter && props.verticalCenter ? (viewClass.push("horizon-center"), viewClass.push("vertical-center")) : (props.horizonCenter && viewClass.push("horizon-center"), props.verticalCenter && viewClass.push("vertical-center")), props.textCenter && viewClass.push("text-center"), createElement("div", __spreadProps(__spreadValues({}, data), { class: viewClass }), children);
27
39
  }
28
40
  };
29
- let i, u;
30
- const l = {};
31
- var f = /* @__PURE__ */ a(
32
- c,
33
- i,
34
- u,
41
+ let __vue2_render, __vue2_staticRenderFns;
42
+ const __cssModules = {};
43
+ var __component__ = /* @__PURE__ */ normalizeComponent(
44
+ __vue2_script,
45
+ __vue2_render,
46
+ __vue2_staticRenderFns,
35
47
  !1,
36
- _,
48
+ __vue2_injectStyles,
37
49
  null,
38
50
  null,
39
51
  null
40
52
  );
41
- function _(r) {
42
- for (let n in l)
43
- this[n] = l[n];
53
+ function __vue2_injectStyles(context) {
54
+ for (let o in __cssModules)
55
+ this[o] = __cssModules[o];
44
56
  }
45
- const C = /* @__PURE__ */ function() {
46
- return f.exports;
57
+ const FlexRow = /* @__PURE__ */ function() {
58
+ return __component__.exports;
47
59
  }();
48
60
  export {
49
- C as default
61
+ FlexRow as default
50
62
  };
@@ -1,17 +1,17 @@
1
- import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
- var r = function() {
3
- var e = this, l = e.$createElement, n = e._self._c || l;
4
- return n("div", {
1
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
2
+ var render = function() {
3
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
4
+ return _c("div", {
5
5
  staticClass: "flex-scroller-wrapper"
6
- }, [n("div", {
6
+ }, [_c("div", {
7
7
  class: ["flex-scroller", {
8
- "flex-column": e.flexColumn,
9
- "flex-row": e.flexRow,
10
- "content-scroll": e.contentScroll
11
- }, e.contentClass]
12
- }, [e._t("default")], 2)]);
13
- }, c = [];
14
- const s = {
8
+ "flex-column": _vm.flexColumn,
9
+ "flex-row": _vm.flexRow,
10
+ "content-scroll": _vm.contentScroll
11
+ }, _vm.contentClass]
12
+ }, [_vm._t("default")], 2)]);
13
+ }, staticRenderFns = [];
14
+ const __vue2_script = {
15
15
  name: "FlexScroller",
16
16
  props: {
17
17
  flexColumn: Boolean,
@@ -24,24 +24,24 @@ const s = {
24
24
  default: !0
25
25
  }
26
26
  }
27
- }, t = {};
28
- var a = /* @__PURE__ */ o(
29
- s,
30
- r,
31
- c,
27
+ }, __cssModules = {};
28
+ var __component__ = /* @__PURE__ */ normalizeComponent(
29
+ __vue2_script,
30
+ render,
31
+ staticRenderFns,
32
32
  !1,
33
- _,
33
+ __vue2_injectStyles,
34
34
  null,
35
35
  null,
36
36
  null
37
37
  );
38
- function _(e) {
39
- for (let l in t)
40
- this[l] = t[l];
38
+ function __vue2_injectStyles(context) {
39
+ for (let o in __cssModules)
40
+ this[o] = __cssModules[o];
41
41
  }
42
- const f = /* @__PURE__ */ function() {
43
- return a.exports;
42
+ const FlexScroller = /* @__PURE__ */ function() {
43
+ return __component__.exports;
44
44
  }();
45
45
  export {
46
- f as default
46
+ FlexScroller as default
47
47
  };
@@ -1 +1 @@
1
- .flex-scroller-wrapper{position:relative;flex:1 1 auto}.flex-scroller-wrapper .flex-scroller{position:absolute;top:0;right:0;bottom:0;left:0}.flex-scroller-wrapper .flex-scroller.content-scroll{overflow:auto}
1
+ .flex-scroller-wrapper{position:relative;flex:1 1 auto}.flex-scroller-wrapper .flex-scroller{position:absolute;inset:0}.flex-scroller-wrapper .flex-scroller.content-scroll{overflow:auto}
@@ -1,49 +1,49 @@
1
- import { s as l, r as c } from "../../chunks/util.23fe58fb.js";
2
- import { n as u } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- var h = function() {
4
- var t = this, e = t.$createElement, n = t._self._c || e;
5
- return n("div", {
1
+ import { s as setPx, r as randomId } from "../../chunks/util.89913643.js";
2
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
3
+ var render = function() {
4
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
5
+ return _c("div", {
6
6
  staticClass: "avue-flow",
7
- style: t.styleName
8
- }, [n("div", {
9
- style: t.styleName,
7
+ style: _vm.styleName
8
+ }, [_c("div", {
9
+ style: _vm.styleName,
10
10
  attrs: {
11
- id: t.id
11
+ id: _vm.id
12
12
  }
13
- }, [n("div", {
13
+ }, [_c("div", {
14
14
  staticClass: "avue-grid"
15
- }), t._l(t.option.nodeList, function(i, o) {
16
- return [i.display ? t._e() : n("FlowNode", {
17
- key: o,
15
+ }), _vm._l(_vm.option.nodeList, function(node, index) {
16
+ return [node.display ? _vm._e() : _c("FlowNode", {
17
+ key: index,
18
18
  attrs: {
19
- id: i.id,
20
- node: i,
21
- index: o,
22
- active: t.active
19
+ id: node.id,
20
+ node,
21
+ index,
22
+ active: _vm.active
23
23
  },
24
24
  on: {
25
- changeNodeSite: t.changeNodeSite
25
+ changeNodeSite: _vm.changeNodeSite
26
26
  },
27
27
  nativeOn: {
28
- click: function(s) {
29
- return t.handleClick(i);
28
+ click: function($event) {
29
+ return _vm.handleClick(node);
30
30
  }
31
31
  },
32
- scopedSlots: t._u([{
32
+ scopedSlots: _vm._u([{
33
33
  key: "header",
34
- fn: function(s) {
35
- var a = s.node;
36
- return [t._t("header", null, {
37
- node: a
34
+ fn: function(_ref) {
35
+ var s = _ref.node;
36
+ return [_vm._t("header", null, {
37
+ node: s
38
38
  })];
39
39
  }
40
40
  }], null, !0)
41
- }, [t._t("default", null, {
42
- node: i
41
+ }, [_vm._t("default", null, {
42
+ node
43
43
  })], 2)];
44
44
  })], 2)]);
45
- }, d = [];
46
- const m = {
45
+ }, staticRenderFns = [];
46
+ const __vue2_script = {
47
47
  name: "Flow",
48
48
  props: {
49
49
  value: {
@@ -118,20 +118,20 @@ const m = {
118
118
  get() {
119
119
  return this.value;
120
120
  },
121
- set(t) {
122
- this.$emit("input", t), this.$emit("change", t);
121
+ set(val) {
122
+ this.$emit("input", val), this.$emit("change", val);
123
123
  }
124
124
  },
125
125
  styleName() {
126
126
  return {
127
127
  position: "relative",
128
- width: l(this.width),
129
- height: l(this.height)
128
+ width: setPx(this.width),
129
+ height: setPx(this.height)
130
130
  };
131
131
  }
132
132
  },
133
133
  created() {
134
- this.id = c(), this.jsplumbSetting.Container = this.id;
134
+ this.id = randomId(), this.jsplumbSetting.Container = this.id;
135
135
  },
136
136
  mounted() {
137
137
  this.init();
@@ -142,77 +142,77 @@ const m = {
142
142
  this.jsPlumbInit();
143
143
  });
144
144
  },
145
- handleClick(t) {
146
- this.$emit("click", t);
145
+ handleClick(node) {
146
+ this.$emit("click", node);
147
147
  },
148
148
  // 是否具有该线
149
- hasLine(t, e) {
150
- for (let n = 0; n < this.data.lineList.length; n++) {
151
- const i = this.data.lineList[n];
152
- if (i.from === t && i.to === e)
149
+ hasLine(from, to) {
150
+ for (let i = 0; i < this.data.lineList.length; i++) {
151
+ const line = this.data.lineList[i];
152
+ if (line.from === from && line.to === to)
153
153
  return !0;
154
154
  }
155
155
  return !1;
156
156
  },
157
157
  // 是否含有相反的线
158
- hashOppositeLine(t, e) {
159
- return this.hasLine(e, t);
158
+ hashOppositeLine(from, to) {
159
+ return this.hasLine(to, from);
160
160
  },
161
161
  // 删除线
162
- deleteLine(t, e) {
163
- this.option.lineList = this.option.lineList.filter(function(n) {
164
- return n.from !== t && n.to !== e;
162
+ deleteLine(from, to) {
163
+ this.option.lineList = this.option.lineList.filter(function(line) {
164
+ return line.from !== from && line.to !== to;
165
165
  });
166
166
  },
167
167
  // 改变连线
168
- changeLine(t, e) {
169
- this.deleteLine(t, e);
168
+ changeLine(oldFrom, oldTo) {
169
+ this.deleteLine(oldFrom, oldTo);
170
170
  },
171
171
  // 改变节点的位置
172
- changeNodeSite({ index: t, left: e, top: n }) {
172
+ changeNodeSite({ index, left, top }) {
173
173
  for (let i = 0; i < this.option.nodeList.length; i++)
174
- i === t && (this.$set(this.option.nodeList[i], "left", e), this.$set(this.option.nodeList[i], "top", n));
174
+ i === index && (this.$set(this.option.nodeList[i], "left", left), this.$set(this.option.nodeList[i], "top", top));
175
175
  },
176
176
  // 删除节点
177
- deleteNode(t) {
178
- return this.$confirm(`确定要删除节点${t}?`, "提示", {
177
+ deleteNode(nodeId) {
178
+ return this.$confirm(`确定要删除节点${nodeId}?`, "提示", {
179
179
  confirmButtonText: "确定",
180
180
  cancelButtonText: "取消",
181
181
  type: "warning",
182
182
  closeOnClickModal: !1
183
183
  }).then(() => {
184
- this.option.nodeList.forEach((e) => {
185
- e.id === t && (e.display = !0);
184
+ this.option.nodeList.forEach((node) => {
185
+ node.id === nodeId && (node.display = !0);
186
186
  }), this.$nextTick(function() {
187
- this.jsPlumb.removeAllEndpoints(t);
187
+ this.jsPlumb.removeAllEndpoints(nodeId);
188
188
  });
189
189
  }).catch(() => {
190
190
  }), !0;
191
191
  },
192
192
  // 添加新的节点
193
- addNode(t) {
194
- const e = this.option.nodeList.length, n = `node${e}`;
193
+ addNode(name) {
194
+ const index = this.option.nodeList.length, nodeId = `node${index}`;
195
195
  this.option.nodeList.push({
196
- id: `node${e}`,
197
- name: t,
196
+ id: `node${index}`,
197
+ name,
198
198
  left: 0,
199
199
  top: 0
200
200
  }), this.$nextTick(function() {
201
- this.jsPlumb.makeSource(n, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(n, this.jsplumbTargetOptions), this.jsPlumb.draggable(n, {
201
+ this.jsPlumb.makeSource(nodeId, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(nodeId, this.jsplumbTargetOptions), this.jsPlumb.draggable(nodeId, {
202
202
  containment: "parent"
203
203
  });
204
204
  });
205
205
  },
206
206
  loadEasyFlow() {
207
- for (var t = 0; t < this.option.nodeList.length; t++) {
208
- const e = this.option.nodeList[t];
209
- this.jsPlumb.makeSource(e.id, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(e.id, this.jsplumbTargetOptions), this.jsPlumb.draggable(e.id);
207
+ for (var i = 0; i < this.option.nodeList.length; i++) {
208
+ const node = this.option.nodeList[i];
209
+ this.jsPlumb.makeSource(node.id, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(node.id, this.jsplumbTargetOptions), this.jsPlumb.draggable(node.id);
210
210
  }
211
- for (var t = 0; t < this.option.lineList.length; t++) {
212
- const n = this.option.lineList[t];
211
+ for (var i = 0; i < this.option.lineList.length; i++) {
212
+ const line = this.option.lineList[i];
213
213
  this.jsPlumb.connect({
214
- source: n.from,
215
- target: n.to
214
+ source: line.from,
215
+ target: line.to
216
216
  }, this.jsplumbConnectOptions);
217
217
  }
218
218
  this.$nextTick(function() {
@@ -220,58 +220,58 @@ const m = {
220
220
  });
221
221
  },
222
222
  jsPlumbInit() {
223
- const t = this;
223
+ const _this = this;
224
224
  this.jsPlumb.ready(function() {
225
- t.jsPlumb.importDefaults(t.jsplumbSetting), t.jsPlumb.setSuspendDrawing(!1, !0), t.loadEasyFlow(), t.jsPlumb.bind("click", function(e) {
226
- console.log("click", e), t.$confirm("确定删除所点击的线吗?", "提示", {
225
+ _this.jsPlumb.importDefaults(_this.jsplumbSetting), _this.jsPlumb.setSuspendDrawing(!1, !0), _this.loadEasyFlow(), _this.jsPlumb.bind("click", function(conn) {
226
+ console.log("click", conn), _this.$confirm("确定删除所点击的线吗?", "提示", {
227
227
  confirmButtonText: "确定",
228
228
  cancelButtonText: "取消",
229
229
  type: "warning"
230
230
  }).then(() => {
231
- t.jsPlumb.deleteConnection(e);
231
+ _this.jsPlumb.deleteConnection(conn);
232
232
  }).catch(() => {
233
233
  });
234
- }), t.jsPlumb.bind("connection", function(e) {
235
- console.log("connection", e);
236
- const n = e.source.id, i = e.target.id;
237
- t.loadEasyFlowFinish && t.option.lineList.push({
238
- from: n,
239
- to: i
234
+ }), _this.jsPlumb.bind("connection", function(evt) {
235
+ console.log("connection", evt);
236
+ const from = evt.source.id, to = evt.target.id;
237
+ _this.loadEasyFlowFinish && _this.option.lineList.push({
238
+ from,
239
+ to
240
240
  });
241
- }), t.jsPlumb.bind("connectionDetached", function(e) {
242
- console.log("connectionDetached", e), t.deleteLine(e.sourceId, e.targetId);
243
- }), t.jsPlumb.bind("connectionMoved", function(e) {
244
- console.log("connectionMoved", e), t.changeLine(e.originalSourceId, e.originalTargetId);
245
- }), t.jsPlumb.bind("contextmenu", function(e) {
246
- console.log("contextmenu", e);
247
- }), t.jsPlumb.bind("beforeDrop", function(e) {
248
- console.log("beforeDrop", e);
249
- const n = e.sourceId, i = e.targetId;
250
- return n === i ? (t.$message.error("不能连接自己"), !1) : t.hasLine(n, i) ? (t.$message.error("不能重复连线"), !1) : t.hashOppositeLine(n, i) ? (t.$message.error("不能回环哦"), !1) : !0;
251
- }), t.jsPlumb.bind("beforeDetach", function(e) {
252
- console.log("beforeDetach", e);
241
+ }), _this.jsPlumb.bind("connectionDetached", function(evt) {
242
+ console.log("connectionDetached", evt), _this.deleteLine(evt.sourceId, evt.targetId);
243
+ }), _this.jsPlumb.bind("connectionMoved", function(evt) {
244
+ console.log("connectionMoved", evt), _this.changeLine(evt.originalSourceId, evt.originalTargetId);
245
+ }), _this.jsPlumb.bind("contextmenu", function(evt) {
246
+ console.log("contextmenu", evt);
247
+ }), _this.jsPlumb.bind("beforeDrop", function(evt) {
248
+ console.log("beforeDrop", evt);
249
+ const from = evt.sourceId, to = evt.targetId;
250
+ return from === to ? (_this.$message.error("不能连接自己"), !1) : _this.hasLine(from, to) ? (_this.$message.error("不能重复连线"), !1) : _this.hashOppositeLine(from, to) ? (_this.$message.error("不能回环哦"), !1) : !0;
251
+ }), _this.jsPlumb.bind("beforeDetach", function(evt) {
252
+ console.log("beforeDetach", evt);
253
253
  });
254
254
  });
255
255
  }
256
256
  }
257
- }, r = {};
258
- var f = /* @__PURE__ */ u(
259
- m,
260
- h,
261
- d,
257
+ }, __cssModules = {};
258
+ var __component__ = /* @__PURE__ */ normalizeComponent(
259
+ __vue2_script,
260
+ render,
261
+ staticRenderFns,
262
262
  !1,
263
- p,
263
+ __vue2_injectStyles,
264
264
  null,
265
265
  null,
266
266
  null
267
267
  );
268
- function p(t) {
269
- for (let e in r)
270
- this[e] = r[e];
268
+ function __vue2_injectStyles(context) {
269
+ for (let o in __cssModules)
270
+ this[o] = __cssModules[o];
271
271
  }
272
- const j = /* @__PURE__ */ function() {
273
- return f.exports;
272
+ const Flow = /* @__PURE__ */ function() {
273
+ return __component__.exports;
274
274
  }();
275
275
  export {
276
- j as default
276
+ Flow as default
277
277
  };