@farris/ui-vue 1.2.9 → 1.3.1

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 (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6193 -4702
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4562 -3294
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,15 +1,15 @@
1
- import { ref as H, defineComponent as Fe, computed as Te, createVNode as J, createTextVNode as gt, inject as me, provide as Ee, watch as Ue, onMounted as He, onBeforeUnmount as yt, mergeProps as $e, isVNode as ht } from "vue";
1
+ import { ref as H, defineComponent as Fe, computed as Te, createVNode as J, createTextVNode as gt, inject as me, provide as Oe, watch as He, onMounted as We, onBeforeUnmount as yt, mergeProps as $e, isVNode as ht } from "vue";
2
2
  import { findIndex as Ye } from "lodash-es";
3
3
  import Ct from "../accordion/index.esm.js";
4
- import xt from "../avatar/index.esm.js";
5
- import bt from "../button-edit/index.esm.js";
4
+ import bt from "../avatar/index.esm.js";
5
+ import xt from "../button-edit/index.esm.js";
6
6
  import wt from "../button-group/index.esm.js";
7
7
  import Pt from "../calendar/index.esm.js";
8
8
  import It from "../capsule/index.esm.js";
9
9
  import St from "../checkbox/index.esm.js";
10
10
  import Tt from "../color-picker/index.esm.js";
11
- import Et from "../combo-list/index.esm.js";
12
- import Ot from "../content-container/index.esm.js";
11
+ import Ot from "../combo-list/index.esm.js";
12
+ import Et from "../content-container/index.esm.js";
13
13
  import Ft from "../data-grid/index.esm.js";
14
14
  import At from "../date-picker/index.esm.js";
15
15
  import Nt from "../dropdown/index.esm.js";
@@ -54,8 +54,8 @@ import gn from "../verify-detail/index.esm.js";
54
54
  import yn from "../weather/index.esm.js";
55
55
  import hn from "../component/index.esm.js";
56
56
  import Cn from "../video/index.esm.js";
57
- import xn from "../textarea/index.esm.js";
58
- import bn from "../tree-grid/index.esm.js";
57
+ import bn from "../textarea/index.esm.js";
58
+ import xn from "../tree-grid/index.esm.js";
59
59
  import { getCustomClass as je } from "../common/index.esm.js";
60
60
  const wn = {
61
61
  /**
@@ -65,7 +65,7 @@ const wn = {
65
65
  };
66
66
  function Pn() {
67
67
  const w = { aroundDirection: "none", left: 2, right: 2, top: 2, bottom: 2, x: 0, y: 0 };
68
- function B() {
68
+ function N() {
69
69
  const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
70
70
  return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("class", ""), e;
71
71
  }
@@ -77,73 +77,73 @@ function Pn() {
77
77
  const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
78
78
  return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("stroke-linecap", "round"), e;
79
79
  }
80
- function b(e, t, c, v) {
80
+ function x(e, t, u, v) {
81
81
  const s = (n) => {
82
82
  n.key === "Delete" && (e.indexOf("^"), document.removeEventListener("keydown", s), t.remove());
83
83
  };
84
- c.addEventListener("mouseenter", () => {
85
- c.setAttribute("stroke", "#37d0ff"), v.setAttribute("stroke", "#37d0ff"), c.setAttribute("stroke-width", "3"), document.addEventListener("keydown", s);
86
- }), c.addEventListener("mouseleave", () => {
87
- c.setAttribute("stroke", "#4d53e8"), c.setAttribute("stroke-width", "2"), v.setAttribute("stroke", "#4d53e8"), document.removeEventListener("keydown", s);
84
+ u.addEventListener("mouseenter", () => {
85
+ u.setAttribute("stroke", "#37d0ff"), v.setAttribute("stroke", "#37d0ff"), u.setAttribute("stroke-width", "3"), document.addEventListener("keydown", s);
86
+ }), u.addEventListener("mouseleave", () => {
87
+ u.setAttribute("stroke", "#4d53e8"), u.setAttribute("stroke-width", "2"), v.setAttribute("stroke", "#4d53e8"), document.removeEventListener("keydown", s);
88
88
  });
89
89
  }
90
90
  function p(e) {
91
91
  let t = document.getElementById(e);
92
92
  if (t == null) {
93
- const c = document.createElementNS("http://www.w3.org/2000/svg", "svg"), v = B();
94
- c.appendChild(v);
93
+ const u = document.createElementNS("http://www.w3.org/2000/svg", "svg"), v = N();
94
+ u.appendChild(v);
95
95
  const s = g();
96
- c.appendChild(s);
96
+ u.appendChild(s);
97
97
  const n = C();
98
- c.appendChild(n);
98
+ u.appendChild(n);
99
99
  const j = C();
100
- c.appendChild(j), t = document.createElement("div"), t.id = e, t.style.position = "absolute", t.appendChild(c), b(e, t, v, s);
100
+ u.appendChild(j), t = document.createElement("div"), t.id = e, t.style.position = "absolute", t.appendChild(u), x(e, t, v, s);
101
101
  const L = document.getElementById("svg-container");
102
102
  return L && L.appendChild(t), t;
103
103
  }
104
104
  return t;
105
105
  }
106
- function T(e, t, c, v, s) {
106
+ function T(e, t, u, v, s) {
107
107
  const n = { x: 0, y: 0 };
108
- return e === "west" && (t === "north_west" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (c === "north" && (n.x = -100, n.y = 0 - s / 2), c === "east" && (n.x = -100, n.y = 0 - s / 2)), t === "south_east" && (c === "south" && (n.x = -100, n.y = 0 + s / 2), c === "east" && (n.x = -100, n.y = 0 + s / 2)), t === "south_west" && (c === "south" && (n.x = 0, n.y = 0 + s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0))), e === "east" && (t === "north_west" && (c === "north" && (n.x = -100, n.y = 0 - s / 2), c === "west" && (n.x = 100, n.y = 0 - s / 2)), t === "north_east" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (c === "south" && (n.x = 0, n.y = 0 + s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (c === "south" && (n.x = 100, n.y = 0 + s / 2), c === "west" && (n.x = 100, n.y = 0 + s / 2))), e === "north" && (t === "north_west" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (c === "south" && (n.x = 0 + v / 2, n.y = -100), c === "east" && (n.x = 0 + v / 2, n.y = -100)), t === "south_west" && (c === "south" && (n.x = 0 - v / 2, n.y = -100), c === "west" && (n.x = 0 - v / 2, n.y = -100))), e === "south" && (t === "north_west" && (c === "north" && (n.x = 0 - v / 2, n.y = 100), c === "west" && (n.x = 0 - v / 2, n.y = 100)), t === "north_east" && (c === "north" && (n.x = 0 + v / 2, n.y = 100), c === "east" && (n.x = 0 + v / 2, n.y = 100)), t === "south_east" && (c === "south" && (n.x = 0, n.y = 0 + s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (c === "south" && (n.x = 0, n.y = s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0))), n;
108
+ return e === "west" && (t === "north_west" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (u === "north" && (n.x = -100, n.y = 0 - s / 2), u === "east" && (n.x = -100, n.y = 0 - s / 2)), t === "south_east" && (u === "south" && (n.x = -100, n.y = 0 + s / 2), u === "east" && (n.x = -100, n.y = 0 + s / 2)), t === "south_west" && (u === "south" && (n.x = 0, n.y = 0 + s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0))), e === "east" && (t === "north_west" && (u === "north" && (n.x = -100, n.y = 0 - s / 2), u === "west" && (n.x = 100, n.y = 0 - s / 2)), t === "north_east" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (u === "south" && (n.x = 0, n.y = 0 + s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (u === "south" && (n.x = 100, n.y = 0 + s / 2), u === "west" && (n.x = 100, n.y = 0 + s / 2))), e === "north" && (t === "north_west" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (u === "north" && (n.x = 0, n.y = 0 - s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (u === "south" && (n.x = 0 + v / 2, n.y = -100), u === "east" && (n.x = 0 + v / 2, n.y = -100)), t === "south_west" && (u === "south" && (n.x = 0 - v / 2, n.y = -100), u === "west" && (n.x = 0 - v / 2, n.y = -100))), e === "south" && (t === "north_west" && (u === "north" && (n.x = 0 - v / 2, n.y = 100), u === "west" && (n.x = 0 - v / 2, n.y = 100)), t === "north_east" && (u === "north" && (n.x = 0 + v / 2, n.y = 100), u === "east" && (n.x = 0 + v / 2, n.y = 100)), t === "south_east" && (u === "south" && (n.x = 0, n.y = 0 + s / 2), u === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (u === "south" && (n.x = 0, n.y = s / 2), u === "west" && (n.x = 0 - v / 2, n.y = 0))), n;
109
109
  }
110
- function O(e, t, c, v) {
110
+ function F(e, t, u, v) {
111
111
  const s = { x: 0, y: 0 };
112
- return e === "south" && (t === "west" && (s.x = -100, s.y = 0 - v / 2), t === "east" && (s.x = 100, s.y = -100), t === "south" && (s.x = 0 - c / 2, s.y = 100), (t === "north" || t === "center") && (s.x = 0, s.y = 0 - v / 2)), e === "north" && (t === "west" && (s.x = -100, s.y = 100), t === "east" && (s.x = 100, s.y = 100), t === "north" && (s.x = 0 - c / 2, s.y = -100), (t === "south" || t === "center") && (s.x = 0, s.y = v / 2)), e === "east" && (t === "north" && (s.y = -100, s.x = -100), t === "south" && (s.y = 100, s.x = -100), t === "east" && (s.x = 100, s.y = 100), (t === "west" || t === "center") && (s.x = 0 - c / 2, s.y = 0)), e === "west" && (t === "north" && (s.y = -100, s.x = 100), t === "south" && (s.y = 100, s.x = 100), t === "west" && (s.x = -100, s.y = v / 2), (t === "east" || t === "center") && (s.x = c / 2, s.y = 0)), s;
112
+ return e === "south" && (t === "west" && (s.x = -100, s.y = 0 - v / 2), t === "east" && (s.x = 100, s.y = -100), t === "south" && (s.x = 0 - u / 2, s.y = 100), (t === "north" || t === "center") && (s.x = 0, s.y = 0 - v / 2)), e === "north" && (t === "west" && (s.x = -100, s.y = 100), t === "east" && (s.x = 100, s.y = 100), t === "north" && (s.x = 0 - u / 2, s.y = -100), (t === "south" || t === "center") && (s.x = 0, s.y = v / 2)), e === "east" && (t === "north" && (s.y = -100, s.x = -100), t === "south" && (s.y = 100, s.x = -100), t === "east" && (s.x = 100, s.y = 100), (t === "west" || t === "center") && (s.x = 0 - u / 2, s.y = 0)), e === "west" && (t === "north" && (s.y = -100, s.x = 100), t === "south" && (s.y = 100, s.x = 100), t === "west" && (s.x = -100, s.y = v / 2), (t === "east" || t === "center") && (s.x = u / 2, s.y = 0)), s;
113
113
  }
114
- function d(e, t, c, v, s, n, j) {
115
- const L = j === "south" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "north", ie = j === "center" ? L === "landscape" ? "west" : "south" : j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W;
114
+ function f(e, t, u, v, s, n, j) {
115
+ const L = j === "south" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "north", ie = j === "center" ? L === "landscape" ? "west" : "south" : j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W;
116
116
  K < 0 && (t += Math.abs(K));
117
- const de = /* @__PURE__ */ new Map([["default", 0 + N], ["portrait", 0 + N], ["landscape", 0 + N]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]);
118
- N < 0 && (e += Math.abs(N)), q > 0 && (e += q);
117
+ const de = /* @__PURE__ */ new Map([["default", 0 + D], ["portrait", 0 + D], ["landscape", 0 + D]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]);
118
+ D < 0 && (e += Math.abs(D)), q > 0 && (e += q);
119
119
  const ye = /* @__PURE__ */ new Map([["default", e + q], ["portrait", e + q], ["landscape", e + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.left > w.left, ae = v.bottom > w.bottom, pe = le ? 0 : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
120
120
  return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
121
121
  }
122
- function S(e, t, c, v, s, n, j) {
123
- const L = j === "south" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "north", ie = j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W;
124
- K < 0 && (t += Math.abs(K)), N > 0 && (e += N), q < 0 && (e += Math.abs(q));
125
- const de = /* @__PURE__ */ new Map([["default", e + N], ["portrait", e + N], ["landscape", e + N]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]), ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.right > w.right, ae = v.bottom > w.bottom, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
122
+ function S(e, t, u, v, s, n, j) {
123
+ const L = j === "south" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "north", ie = j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W;
124
+ K < 0 && (t += Math.abs(K)), D > 0 && (e += D), q < 0 && (e += Math.abs(q));
125
+ const de = /* @__PURE__ */ new Map([["default", e + D], ["portrait", e + D], ["landscape", e + D]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]), ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.right > w.right, ae = v.bottom > w.bottom, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
126
126
  return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
127
127
  }
128
- function f(e, t, c, v, s, n, j) {
129
- const L = j === "north" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "south", ie = j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W, de = /* @__PURE__ */ new Map([["default", 0 + N], ["portrait", 0 + N], ["landscape", 0 + N]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
130
- N < 0 && (e += Math.abs(N)), h < 0 && (t += Math.abs(h)), q > 0 && (e += q), K > 0 && (t += K);
128
+ function d(e, t, u, v, s, n, j) {
129
+ const L = j === "north" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "south", ie = j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W, de = /* @__PURE__ */ new Map([["default", 0 + D], ["portrait", 0 + D], ["landscape", 0 + D]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
130
+ D < 0 && (e += Math.abs(D)), h < 0 && (t += Math.abs(h)), q > 0 && (e += q), K > 0 && (t += K);
131
131
  const ye = /* @__PURE__ */ new Map([["default", e + q], ["portrait", e + q], ["landscape", e + q]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = v.left > w.left, ae = v.top > w.top, pe = le ? 0 : ae ? e / 2 : de.get(L), he = ae ? 0 : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
132
132
  return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
133
133
  }
134
- function r(e, t, c, v, s, n, j) {
135
- const L = j === "north" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "south", ie = j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W;
134
+ function i(e, t, u, v, s, n, j) {
135
+ const L = j === "north" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "south", ie = j, se = T(ee, n, V, e, t), { x: D, y: h } = se, W = F(V, ie, e, t), { x: q, y: K } = W;
136
136
  q < 0 && (e += Math.abs(q));
137
- const de = /* @__PURE__ */ new Map([["default", e + N], ["portrait", e + N], ["landscape", e + N]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
137
+ const de = /* @__PURE__ */ new Map([["default", e + D], ["portrait", e + D], ["landscape", e + D]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
138
138
  h < 0 && (t += Math.abs(h)), K > 0 && (t += K);
139
139
  const ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = v.right > w.right, ae = v.top > w.top, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? 0 : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
140
140
  return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
141
141
  }
142
- const i = /* @__PURE__ */ new Map([
143
- ["north_east", d],
142
+ const o = /* @__PURE__ */ new Map([
143
+ ["north_east", f],
144
144
  ["north_west", S],
145
- ["south_east", f],
146
- ["south_west", r]
145
+ ["south_east", d],
146
+ ["south_west", i]
147
147
  ]), y = /* @__PURE__ */ new Map([
148
148
  ["east", ["north_west", "south_west"]],
149
149
  ["west", ["north_east", "south_east"]],
@@ -166,7 +166,7 @@ function Pn() {
166
166
  bottom: t.bottom
167
167
  } : t;
168
168
  }
169
- function F(e, t) {
169
+ function O(e, t) {
170
170
  return e === "north_east" ? {
171
171
  left: 100,
172
172
  right: t.right,
@@ -208,35 +208,35 @@ function Pn() {
208
208
  function l(e, t) {
209
209
  return t;
210
210
  }
211
- const E = /* @__PURE__ */ new Map([
211
+ const A = /* @__PURE__ */ new Map([
212
212
  ["east", a],
213
- ["west", F],
213
+ ["west", O],
214
214
  ["north", $],
215
215
  ["south", R],
216
216
  ["center", l]
217
217
  ]);
218
- function U(e, t, c, v) {
219
- const s = t.x - e.x, n = t.y - e.y, j = s >= 0 ? "east" : "west", L = n >= 0 ? "south" : "north", ee = `${L}_${j}`, ie = (y.get(c) || []).includes(ee), se = E.get(c), N = ie ? se(ee, w) : w, h = Math.abs(s), W = Math.abs(n), q = i.get(`${L}_${j}`), [K, de, oe] = q(
218
+ function U(e, t, u, v) {
219
+ const s = t.x - e.x, n = t.y - e.y, j = s >= 0 ? "east" : "west", L = n >= 0 ? "south" : "north", ee = `${L}_${j}`, ie = (y.get(u) || []).includes(ee), se = A.get(u), D = ie ? se(ee, w) : w, h = Math.abs(s), W = Math.abs(n), q = o.get(`${L}_${j}`), [K, de, oe] = q(
220
220
  h,
221
221
  W,
222
222
  ie,
223
- N,
224
- c,
223
+ D,
224
+ u,
225
225
  ee,
226
226
  v
227
- ), ye = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x > 0 ? oe.x : 0, ce = N.left + N.right + h + ye, le = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y > 0 ? oe.y : 0, ae = N.top + N.bottom + W + le, pe = j === "east" ? e.x - N.left : e.x + N.right - ce, he = L === "south" ? e.y - N.top : e.y + N.bottom - ae, Ce = j === "east" ? N.left : ce - N.right, ve = L === "north" ? ae - N.bottom : N.top, Be = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x < 0 ? ce : ce - oe.x, Ae = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y < 0 ? ae : ae - oe.y;
227
+ ), ye = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x > 0 ? oe.x : 0, ce = D.left + D.right + h + ye, le = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y > 0 ? oe.y : 0, ae = D.top + D.bottom + W + le, pe = j === "east" ? e.x - D.left : e.x + D.right - ce, he = L === "south" ? e.y - D.top : e.y + D.bottom - ae, Ce = j === "east" ? D.left : ce - D.right, ve = L === "north" ? ae - D.bottom : D.top, Be = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x < 0 ? ce : ce - oe.x, Ae = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y < 0 ? ae : ae - oe.y;
228
228
  return { width: ce, height: ae, left: pe, top: he, startPoinInBoundray: { x: Ce, y: ve }, firstControlPoint: K, secondControlPoint: de, endPoinInBoundray: { x: Be, y: Ae } };
229
229
  }
230
- function Y(e, t, c, v, s) {
231
- e.style.position = "absolute", e.style.alignItems = "center", e.style.left = `${t}px`, e.style.top = `${c}px`, e.style.width = v + "px", e.style.height = s + "px";
230
+ function Y(e, t, u, v, s) {
231
+ e.style.position = "absolute", e.style.alignItems = "center", e.style.left = `${t}px`, e.style.top = `${u}px`, e.style.width = v + "px", e.style.height = s + "px";
232
232
  }
233
- function re(e, t, c, v, s, n, j) {
233
+ function re(e, t, u, v, s, n, j) {
234
234
  const L = e.childNodes[0];
235
- L.setAttribute("width", String(t)), L.setAttribute("height", String(c)), e.appendChild(L);
236
- const ee = L.childNodes[0], V = `${v.x} ${v.y}`, ie = `${s.x} ${s.y}`, se = `${n.x} ${n.y}`, N = `${j.x} ${j.y}`, h = "M ".concat(V).concat(" C ").concat(ie).concat("," + se + ",").concat(N);
235
+ L.setAttribute("width", String(t)), L.setAttribute("height", String(u)), e.appendChild(L);
236
+ const ee = L.childNodes[0], V = `${v.x} ${v.y}`, ie = `${s.x} ${s.y}`, se = `${n.x} ${n.y}`, D = `${j.x} ${j.y}`, h = "M ".concat(V).concat(" C ").concat(ie).concat("," + se + ",").concat(D);
237
237
  ee.setAttribute("d", h), ee.setAttribute("fill", "none"), ee.setAttribute("stroke", "#4d53e8"), ee.setAttribute("stroke-width", "2"), ee.setAttribute("class", "");
238
238
  }
239
- function Q(e, t, c, v, s) {
239
+ function Q(e, t, u, v, s) {
240
240
  const {
241
241
  width: n,
242
242
  height: j,
@@ -245,40 +245,40 @@ function Pn() {
245
245
  startPoinInBoundray: V,
246
246
  firstControlPoint: ie,
247
247
  secondControlPoint: se,
248
- endPoinInBoundray: N
249
- } = U(t, c, v, s);
250
- Y(e, L, ee, n, j), re(e, n, j, V, ie, se, N);
248
+ endPoinInBoundray: D
249
+ } = U(t, u, v, s);
250
+ Y(e, L, ee, n, j), re(e, n, j, V, ie, se, D);
251
251
  }
252
- function m(e, t, c, v, s) {
252
+ function m(e, t, u, v, s) {
253
253
  const n = p(e);
254
- Q(n, t, c, v, s);
254
+ Q(n, t, u, v, s);
255
255
  }
256
256
  function G(e) {
257
257
  return Number(e.replace("px", ""));
258
258
  }
259
259
  function Z(e) {
260
260
  if (e !== null) {
261
- const t = e.parentNode, c = G(t.style.left), v = G(t.style.top);
261
+ const t = e.parentNode, u = G(t.style.left), v = G(t.style.top);
262
262
  return {
263
- x: c + e.offsetLeft + e.offsetWidth / 2,
263
+ x: u + e.offsetLeft + e.offsetWidth / 2,
264
264
  y: v + e.offsetTop + e.offsetHeight / 2
265
265
  };
266
266
  }
267
267
  return { x: 0, y: 0 };
268
268
  }
269
- function u(e, t) {
270
- const c = document.getElementById(e), v = document.getElementById(t), s = Z(c), n = Z(v), j = s.x + 2, L = s.y, ee = n.x - 2, V = n.y;
269
+ function c(e, t) {
270
+ const u = document.getElementById(e), v = document.getElementById(t), s = Z(u), n = Z(v), j = s.x + 2, L = s.y, ee = n.x - 2, V = n.y;
271
271
  return { startPoint: { x: j, y: L }, endPoint: { x: ee, y: V } };
272
272
  }
273
- function A(e, t, c, v) {
274
- const { startPoint: s, endPoint: n } = u(e, t);
275
- m(`${e}_${t}`, s, n, c, v);
273
+ function E(e, t, u, v) {
274
+ const { startPoint: s, endPoint: n } = c(e, t);
275
+ m(`${e}_${t}`, s, n, u, v);
276
276
  }
277
- return { connect: A, drawing: m };
277
+ return { connect: E, drawing: m };
278
278
  }
279
- function In(D) {
280
- const z = H(), I = H(0), w = H(0), B = H({ x: 0, y: 0 }), g = H(), { drawing: C } = D;
281
- function b(a) {
279
+ function In(B) {
280
+ const z = H(), I = H(0), w = H(0), N = H({ x: 0, y: 0 }), g = H(), { drawing: C } = B;
281
+ function x(a) {
282
282
  return Number(a.replace("px", ""));
283
283
  }
284
284
  function p(a) {
@@ -298,40 +298,40 @@ function In(D) {
298
298
  return "center";
299
299
  }
300
300
  }
301
- function O(a, F, $) {
301
+ function F(a, O, $) {
302
302
  const R = $.getBoundingClientRect();
303
- I.value = R.left, w.value = R.top, B.value = { x: a, y: F }, z.value = T($);
303
+ I.value = R.left, w.value = R.top, N.value = { x: a, y: O }, z.value = T($);
304
304
  }
305
- function d(a) {
305
+ function f(a) {
306
306
  var Y;
307
- const F = a.clientX - I.value, $ = a.clientY - w.value, R = B.value.x + F, l = B.value.y + $, E = a.target, U = E && typeof E.className == "string" && p(E) ? T(E) : "center";
307
+ const O = a.clientX - I.value, $ = a.clientY - w.value, R = N.value.x + O, l = N.value.y + $, A = a.target, U = A && typeof A.className == "string" && p(A) ? T(A) : "center";
308
308
  C(
309
309
  `${(Y = g.value) == null ? void 0 : Y.id}_curve_to`,
310
- { x: B.value.x, y: B.value.y },
310
+ { x: N.value.x, y: N.value.y },
311
311
  { x: R, y: l },
312
312
  z.value,
313
313
  U
314
314
  );
315
315
  }
316
316
  function S(a) {
317
- const F = document.getElementById(a);
318
- F && F.remove();
317
+ const O = document.getElementById(a);
318
+ O && O.remove();
319
319
  }
320
- function f() {
321
- document.addEventListener("mousemove", d);
320
+ function d() {
321
+ document.addEventListener("mousemove", f);
322
322
  }
323
- function r() {
324
- document.removeEventListener("mousemove", d);
323
+ function i() {
324
+ document.removeEventListener("mousemove", f);
325
325
  }
326
- function i(a) {
327
- g.value = void 0, r();
326
+ function o(a) {
327
+ g.value = void 0, i();
328
328
  }
329
- function y(a, F) {
329
+ function y(a, O) {
330
330
  g.value = document.getElementById(a);
331
- const $ = g.value.offsetParent, R = g.value.getBoundingClientRect(), l = $.getBoundingClientRect(), E = b($.style.left) + (R.left - l.left), U = b($.style.top) + (R.top - l.top), Y = E + R.width / 2, re = U + R.height / 2;
332
- O(Y, re, g.value), f();
331
+ const $ = g.value.offsetParent, R = g.value.getBoundingClientRect(), l = $.getBoundingClientRect(), A = x($.style.left) + (R.left - l.left), U = x($.style.top) + (R.top - l.top), Y = A + R.width / 2, re = U + R.height / 2;
332
+ F(Y, re, g.value), d();
333
333
  }
334
- return { drawFrom: y, eraseDrawingLine: S, finishToDraw: i, getAncherPointPosition: T, isAncherPoint: p };
334
+ return { drawFrom: y, eraseDrawingLine: S, finishToDraw: o, getAncherPointPosition: T, isAncherPoint: p };
335
335
  }
336
336
  const Sn = {
337
337
  id: { type: String, default: "" },
@@ -343,35 +343,35 @@ const Sn = {
343
343
  x: { type: Number, default: 0 },
344
344
  y: { type: Number, default: 0 },
345
345
  connection: { type: Array, default: [] }
346
- }, Oe = H(0);
347
- function Tn(D, z) {
348
- const I = z.getBoundingClientRect(), w = D.getBoundingClientRect(), B = w.top >= I.top, g = w.top <= I.bottom;
349
- return B && g;
346
+ }, Ee = H(0);
347
+ function Tn(B, z) {
348
+ const I = z.getBoundingClientRect(), w = B.getBoundingClientRect(), N = w.top >= I.top, g = w.top <= I.bottom;
349
+ return N && g;
350
350
  }
351
- function tt(D) {
352
- if (!D)
351
+ function ze(B) {
352
+ if (!B)
353
353
  return;
354
354
  let z;
355
- if (D.className.includes("dgComponentSelected") ? z = D : z = D.querySelector(".dgComponentSelected"), !z)
355
+ if (B.className.includes("dgComponentSelected") ? z = B : z = B.querySelector(".dgComponentSelected"), !z)
356
356
  return;
357
357
  const I = z.getBoundingClientRect();
358
358
  if (I.width === 0 && I.height === 0)
359
359
  return;
360
360
  const w = z.querySelector(".component-btn-group");
361
361
  if (w) {
362
- if (!Tn(z, D)) {
362
+ if (!Tn(z, B)) {
363
363
  w.style.display = "none";
364
364
  return;
365
365
  }
366
366
  w.style.display = "";
367
367
  const g = w.getBoundingClientRect(), C = w.querySelector("div");
368
368
  if (C) {
369
- const b = C.getBoundingClientRect();
370
- C.style.top = g.top + "px", C.style.left = g.left - b.width + "px";
369
+ const x = C.getBoundingClientRect();
370
+ C.style.top = g.top + "px", C.style.left = g.left - x.width + "px";
371
371
  }
372
372
  }
373
373
  }
374
- const En = {
374
+ const On = {
375
375
  /**
376
376
  * 组件值
377
377
  */
@@ -379,292 +379,292 @@ const En = {
379
379
  componentId: { type: String, default: "" }
380
380
  };
381
381
  var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
382
- function On(D) {
383
- return D && D.__esModule && Object.prototype.hasOwnProperty.call(D, "default") ? D.default : D;
382
+ function En(B) {
383
+ return B && B.__esModule && Object.prototype.hasOwnProperty.call(B, "default") ? B.default : B;
384
384
  }
385
- function De(D) {
386
- throw new Error('Could not dynamically require "' + D + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
385
+ function De(B) {
386
+ throw new Error('Could not dynamically require "' + B + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
387
387
  }
388
388
  var nt = { exports: {} };
389
- (function(D, z) {
389
+ (function(B, z) {
390
390
  (function(I) {
391
- D.exports = I();
391
+ B.exports = I();
392
392
  })(function() {
393
393
  return (/* @__PURE__ */ function() {
394
- function I(w, B, g) {
395
- function C(T, O) {
396
- if (!B[T]) {
394
+ function I(w, N, g) {
395
+ function C(T, F) {
396
+ if (!N[T]) {
397
397
  if (!w[T]) {
398
- var d = typeof De == "function" && De;
399
- if (!O && d) return d(T, !0);
400
- if (b) return b(T, !0);
398
+ var f = typeof De == "function" && De;
399
+ if (!F && f) return f(T, !0);
400
+ if (x) return x(T, !0);
401
401
  var S = new Error("Cannot find module '" + T + "'");
402
402
  throw S.code = "MODULE_NOT_FOUND", S;
403
403
  }
404
- var f = B[T] = { exports: {} };
405
- w[T][0].call(f.exports, function(r) {
406
- var i = w[T][1][r];
407
- return C(i || r);
408
- }, f, f.exports, I, w, B, g);
404
+ var d = N[T] = { exports: {} };
405
+ w[T][0].call(d.exports, function(i) {
406
+ var o = w[T][1][i];
407
+ return C(o || i);
408
+ }, d, d.exports, I, w, N, g);
409
409
  }
410
- return B[T].exports;
410
+ return N[T].exports;
411
411
  }
412
- for (var b = typeof De == "function" && De, p = 0; p < g.length; p++) C(g[p]);
412
+ for (var x = typeof De == "function" && De, p = 0; p < g.length; p++) C(g[p]);
413
413
  return C;
414
414
  }
415
415
  return I;
416
416
  }())({
417
- 1: [function(I, w, B) {
418
- var g = {}, C = "(?:^|\\s)", b = "(?:\\s|$)";
419
- function p(d) {
420
- var S = g[d];
421
- return S ? S.lastIndex = 0 : g[d] = S = new RegExp(C + d + b, "g"), S;
417
+ 1: [function(I, w, N) {
418
+ var g = {}, C = "(?:^|\\s)", x = "(?:\\s|$)";
419
+ function p(f) {
420
+ var S = g[f];
421
+ return S ? S.lastIndex = 0 : g[f] = S = new RegExp(C + f + x, "g"), S;
422
422
  }
423
- function T(d, S) {
424
- var f = d.className;
425
- f.length ? p(S).test(f) || (d.className += " " + S) : d.className = S;
423
+ function T(f, S) {
424
+ var d = f.className;
425
+ d.length ? p(S).test(d) || (f.className += " " + S) : f.className = S;
426
426
  }
427
- function O(d, S) {
428
- d.className = d.className.replace(p(S), " ").trim();
427
+ function F(f, S) {
428
+ f.className = f.className.replace(p(S), " ").trim();
429
429
  }
430
430
  w.exports = {
431
431
  add: T,
432
- rm: O
432
+ rm: F
433
433
  };
434
434
  }, {}],
435
- 2: [function(I, w, B) {
435
+ 2: [function(I, w, N) {
436
436
  (function(g) {
437
- var C = I("contra/emitter"), b = I("crossvent"), p = I("./classes"), T = document, O = T.documentElement;
438
- function d(m, G) {
437
+ var C = I("contra/emitter"), x = I("crossvent"), p = I("./classes"), T = document, F = T.documentElement;
438
+ function f(m, G) {
439
439
  var Z = arguments.length;
440
440
  Z === 1 && Array.isArray(m) === !1 && (G = m, m = []);
441
- var u, A, e, t, c, v, s, n, j, L = null, ee, V, ie = !1, se = 0, N, h = G || {};
442
- h.moves === void 0 && (h.moves = F), h.accepts === void 0 && (h.accepts = F), h.invalid === void 0 && (h.invalid = Be), h.containers === void 0 && (h.containers = m || []), h.isContainer === void 0 && (h.isContainer = a), h.copy === void 0 && (h.copy = !1), h.copySortSource === void 0 && (h.copySortSource = !1), h.revertOnSpill === void 0 && (h.revertOnSpill = !1), h.removeOnSpill === void 0 && (h.removeOnSpill = !1), h.direction === void 0 && (h.direction = "vertical"), h.ignoreInputTextSelection === void 0 && (h.ignoreInputTextSelection = !0), h.mirrorContainer === void 0 && (h.mirrorContainer = T.body);
441
+ var c, E, e, t, u, v, s, n, j, L = null, ee, V, ie = !1, se = 0, D, h = G || {};
442
+ h.moves === void 0 && (h.moves = O), h.accepts === void 0 && (h.accepts = O), h.invalid === void 0 && (h.invalid = Be), h.containers === void 0 && (h.containers = m || []), h.isContainer === void 0 && (h.isContainer = a), h.copy === void 0 && (h.copy = !1), h.copySortSource === void 0 && (h.copySortSource = !1), h.revertOnSpill === void 0 && (h.revertOnSpill = !1), h.removeOnSpill === void 0 && (h.removeOnSpill = !1), h.direction === void 0 && (h.direction = "vertical"), h.ignoreInputTextSelection === void 0 && (h.ignoreInputTextSelection = !0), h.mirrorContainer === void 0 && (h.mirrorContainer = T.body);
443
443
  var W = C({
444
444
  containers: h.containers,
445
445
  start: Ce,
446
446
  end: Ae,
447
- cancel: Ge,
448
- remove: qe,
447
+ cancel: Ke,
448
+ remove: Ge,
449
449
  destroy: ye,
450
450
  canMove: he,
451
451
  dragging: !1
452
452
  });
453
453
  return h.removeOnSpill === !0 && W.on("over", rt).on("out", it), K(), W;
454
- function q(o) {
455
- return W.containers.indexOf(o) !== -1 || h.isContainer(o);
454
+ function q(r) {
455
+ return W.containers.indexOf(r) !== -1 || h.isContainer(r);
456
456
  }
457
- function K(o) {
458
- var x = o ? "remove" : "add";
459
- r(O, x, "mousedown", le), r(O, x, "mouseup", Ne);
457
+ function K(r) {
458
+ var b = r ? "remove" : "add";
459
+ i(F, b, "mousedown", le), i(F, b, "mouseup", Ne);
460
460
  }
461
- function de(o) {
462
- var x = o ? "remove" : "add";
463
- r(O, x, "mousemove", ae);
461
+ function de(r) {
462
+ var b = r ? "remove" : "add";
463
+ i(F, b, "mousemove", ae);
464
464
  }
465
- function oe(o) {
466
- var x = o ? "remove" : "add";
467
- b[x](O, "selectstart", ce), b[x](O, "click", ce);
465
+ function oe(r) {
466
+ var b = r ? "remove" : "add";
467
+ x[b](F, "selectstart", ce), x[b](F, "click", ce);
468
468
  }
469
469
  function ye() {
470
470
  K(!0), Ne({});
471
471
  }
472
- function ce(o) {
473
- ee && o.preventDefault();
472
+ function ce(r) {
473
+ ee && r.preventDefault();
474
474
  }
475
- function le(o) {
476
- t = o.clientX, c = o.clientY;
477
- var x = i(o) !== 1 || o.metaKey || o.ctrlKey;
478
- if (!x) {
479
- var P = o.target, X = pe(P);
480
- X && (ee = X, de(), o.type === "mousedown" && (E(P) ? P.focus() : o.preventDefault()));
475
+ function le(r) {
476
+ t = r.clientX, u = r.clientY;
477
+ var b = o(r) !== 1 || r.metaKey || r.ctrlKey;
478
+ if (!b) {
479
+ var P = r.target, X = pe(P);
480
+ X && (ee = X, de(), r.type === "mousedown" && (A(P) ? P.focus() : r.preventDefault()));
481
481
  }
482
482
  }
483
- function ae(o) {
483
+ function ae(r) {
484
484
  if (ee) {
485
- if (i(o) === 0) {
485
+ if (o(r) === 0) {
486
486
  Ne({});
487
487
  return;
488
488
  }
489
- if (!(o.clientX !== void 0 && Math.abs(o.clientX - t) <= (h.slideFactorX || 0) && o.clientY !== void 0 && Math.abs(o.clientY - c) <= (h.slideFactorY || 0))) {
489
+ if (!(r.clientX !== void 0 && Math.abs(r.clientX - t) <= (h.slideFactorX || 0) && r.clientY !== void 0 && Math.abs(r.clientY - u) <= (h.slideFactorY || 0))) {
490
490
  if (h.ignoreInputTextSelection) {
491
- var x = Q("clientX", o) || 0, P = Q("clientY", o) || 0, X = T.elementFromPoint(x, P);
492
- if (E(X))
491
+ var b = Q("clientX", r) || 0, P = Q("clientY", r) || 0, X = T.elementFromPoint(b, P);
492
+ if (A(X))
493
493
  return;
494
494
  }
495
495
  var te = ee;
496
- de(!0), oe(), Ae(), ve(te), p.add(n || e, "gu-transit"), at(), st(), se = 0, ke(o);
496
+ de(!0), oe(), Ae(), ve(te), p.add(n || e, "gu-transit"), at(), st(), se = 0, ke(r);
497
497
  }
498
498
  }
499
499
  }
500
- function pe(o) {
501
- if (!(W.dragging && u) && !q(o)) {
502
- for (var x = o; l(o) && q(l(o)) === !1; )
503
- if (h.invalid(o, x) || (o = l(o), !o))
500
+ function pe(r) {
501
+ if (!(W.dragging && c) && !q(r)) {
502
+ for (var b = r; l(r) && q(l(r)) === !1; )
503
+ if (h.invalid(r, b) || (r = l(r), !r))
504
504
  return;
505
- var P = l(o);
506
- if (P && !h.invalid(o, x)) {
507
- var X = h.moves(o, P, x, Y(o));
505
+ var P = l(r);
506
+ if (P && !h.invalid(r, b)) {
507
+ var X = h.moves(r, P, b, Y(r));
508
508
  if (X)
509
509
  return {
510
- item: o,
510
+ item: r,
511
511
  source: P
512
512
  };
513
513
  }
514
514
  }
515
515
  }
516
- function he(o) {
517
- return !!pe(o);
516
+ function he(r) {
517
+ return !!pe(r);
518
518
  }
519
- function Ce(o) {
520
- var x = pe(o);
521
- x && ve(x);
519
+ function Ce(r) {
520
+ var b = pe(r);
521
+ b && ve(b);
522
522
  }
523
- function ve(o) {
524
- vt(o.item, o.source) && (n = o.item.cloneNode(!0), W.emit("cloned", n, o.item, "copy")), A = o.source, e = o.item, v = s = Y(o.item), W.dragging = !0, W.emit("drag", e, A);
523
+ function ve(r) {
524
+ vt(r.item, r.source) && (n = r.item.cloneNode(!0), W.emit("cloned", n, r.item, "copy")), E = r.source, e = r.item, v = s = Y(r.item), W.dragging = !0, W.emit("drag", e, E);
525
525
  }
526
526
  function Be() {
527
527
  return !1;
528
528
  }
529
529
  function Ae() {
530
530
  if (W.dragging) {
531
- var o = n || e;
532
- We(o, l(o));
531
+ var r = n || e;
532
+ qe(r, l(r));
533
533
  }
534
534
  }
535
535
  function Me() {
536
536
  ee = !1, de(!0), oe(!0);
537
537
  }
538
- function Ne(o) {
538
+ function Ne(r) {
539
539
  if (Me(), !!W.dragging) {
540
- var x = n || e, P = Q("clientX", o) || 0, X = Q("clientY", o) || 0, te = y(u, P, X), ne = Ke(te, P, X);
541
- ne && (n && h.copySortSource || !n || ne !== A) ? We(x, ne) : h.removeOnSpill ? qe() : Ge();
540
+ var b = n || e, P = Q("clientX", r) || 0, X = Q("clientY", r) || 0, te = y(c, P, X), ne = Qe(te, P, X);
541
+ ne && (n && h.copySortSource || !n || ne !== E) ? qe(b, ne) : h.removeOnSpill ? Ge() : Ke();
542
542
  }
543
543
  }
544
- function We(o, x) {
545
- var P = l(o);
546
- n && h.copySortSource && x === A && P.removeChild(e), Le(x) ? W.emit("cancel", o, A) : W.emit("drop", o, x, A, s), _e();
544
+ function qe(r, b) {
545
+ var P = l(r);
546
+ n && h.copySortSource && b === E && P.removeChild(e), Le(b) ? W.emit("cancel", r, E) : W.emit("drop", r, b, E, s), _e();
547
547
  }
548
- function qe() {
548
+ function Ge() {
549
549
  if (W.dragging) {
550
- var o = n || e, x = l(o);
551
- x && x.removeChild(o), W.emit(n ? "cancel" : "remove", o, x, A), _e();
550
+ var r = n || e, b = l(r);
551
+ b && b.removeChild(r), W.emit(n ? "cancel" : "remove", r, b, E), _e();
552
552
  }
553
553
  }
554
- function Ge(o) {
554
+ function Ke(r) {
555
555
  if (W.dragging) {
556
- var x = arguments.length > 0 ? o : h.revertOnSpill, P = n || e, X = l(P), te = Le(X);
557
- te === !1 && x && (n ? X && X.removeChild(n) : A.insertBefore(P, v)), te || x ? W.emit("cancel", P, A, A) : W.emit("drop", P, X, A, s), _e();
556
+ var b = arguments.length > 0 ? r : h.revertOnSpill, P = n || e, X = l(P), te = Le(X);
557
+ te === !1 && b && (n ? X && X.removeChild(n) : E.insertBefore(P, v)), te || b ? W.emit("cancel", P, E, E) : W.emit("drop", P, X, E, s), _e();
558
558
  }
559
559
  }
560
560
  function _e() {
561
- var o = n || e;
562
- Me(), ct(), lt(), o && p.rm(o, "gu-transit"), j && clearTimeout(j), W.dragging = !1, L && W.emit("out", o, L, A), W.emit("dragend", o, se), A = e = n = v = s = j = L = null;
561
+ var r = n || e;
562
+ Me(), ct(), lt(), r && p.rm(r, "gu-transit"), j && clearTimeout(j), W.dragging = !1, L && W.emit("out", r, L, E), W.emit("dragend", r, se), E = e = n = v = s = j = L = null;
563
563
  }
564
- function Le(o, x) {
564
+ function Le(r, b) {
565
565
  var P;
566
- return x !== void 0 ? P = x : u ? P = s : P = Y(n || e), o === A && P === v;
566
+ return b !== void 0 ? P = b : c ? P = s : P = Y(n || e), r === E && P === v;
567
567
  }
568
- function Ke(o, x, P) {
569
- for (var X = o; X && !te(); )
568
+ function Qe(r, b, P) {
569
+ for (var X = r; X && !te(); )
570
570
  X = l(X);
571
571
  return X;
572
572
  function te() {
573
573
  var ne = q(X);
574
574
  if (ne === !1)
575
575
  return !1;
576
- var we = Qe(X, o), ge = Je(X, we, x, P), be = Le(X, ge);
577
- return be ? !0 : h.accepts(e, X, A, ge);
576
+ var we = Je(X, r), ge = Ze(X, we, b, P), xe = Le(X, ge);
577
+ return xe ? !0 : h.accepts(e, X, E, ge);
578
578
  }
579
579
  }
580
- function ke(o) {
581
- if (!u)
580
+ function ke(r) {
581
+ if (!c)
582
582
  return;
583
- o.preventDefault();
584
- var x = Q("clientX", o) || 0, P = Q("clientY", o) || 0;
585
- u.style.left = x - 2 + "px", u.style.top = P - 2 + "px";
586
- var X = n || e, te = y(u, x, P), ne = Ke(te, x, P), we = ne !== null && ne !== L;
587
- (we || ne === null) && (xe(), L = ne, Ie()), mt(te, P);
583
+ r.preventDefault();
584
+ var b = Q("clientX", r) || 0, P = Q("clientY", r) || 0;
585
+ c.style.left = b - 2 + "px", c.style.top = P - 2 + "px";
586
+ var X = n || e, te = y(c, b, P), ne = Qe(te, b, P), we = ne !== null && ne !== L;
587
+ (we || ne === null) && (be(), L = ne, Ie()), mt(te, P);
588
588
  var ge = l(X);
589
- if (ne === A && n && !h.copySortSource) {
589
+ if (ne === E && n && !h.copySortSource) {
590
590
  ge && ge.removeChild(X);
591
591
  return;
592
592
  }
593
- var be, Pe = Qe(ne, te);
593
+ var xe, Pe = Je(ne, te);
594
594
  if (ie = ut(Pe, ne), Pe !== null)
595
- be = Je(ne, Pe, x, P);
595
+ xe = Ze(ne, Pe, b, P);
596
596
  else if (h.revertOnSpill === !0 && !n)
597
- be = v, ne = A;
597
+ xe = v, ne = E;
598
598
  else {
599
599
  n && ge && ge.removeChild(X), n && V && (V.style.display = "none");
600
600
  return;
601
601
  }
602
- V.style.display = "block", ot(be, X, we), be ? dt(Pe, be) : pt(ne);
602
+ V.style.display = "block", ot(xe, X, we), xe ? dt(Pe, xe) : pt(ne);
603
603
  function ue(fe) {
604
- W.emit(fe, X, L, A);
604
+ W.emit(fe, X, L, E);
605
605
  }
606
606
  function Ie() {
607
607
  we && ue("over");
608
608
  }
609
- function xe() {
609
+ function be() {
610
610
  L && ue("out");
611
611
  }
612
612
  }
613
- function ot(o, x, P) {
614
- (o === x || o === Y(x)) && (s = Y(x)), (o === null && P || o !== x && o !== Y(x)) && (s = o);
613
+ function ot(r, b, P) {
614
+ (r === b || r === Y(b)) && (s = Y(b)), (r === null && P || r !== b && r !== Y(b)) && (s = r);
615
615
  }
616
- function rt(o) {
617
- p.rm(o, "gu-hide");
616
+ function rt(r) {
617
+ p.rm(r, "gu-hide");
618
618
  }
619
- function it(o) {
620
- W.dragging && p.add(o, "gu-hide");
619
+ function it(r) {
620
+ W.dragging && p.add(r, "gu-hide");
621
621
  }
622
622
  function st() {
623
- u || (u = document.createElement("div"), u.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", u.innerHTML = h.getMirrorText && h.getMirrorText(e) || "控件", p.add(u, "gu-mirror"), h.mirrorContainer.appendChild(u), r(O, "add", "mousemove", ke), p.add(h.mirrorContainer, "gu-unselectable"), W.emit("cloned", u, e, "mirror"));
623
+ c || (c = document.createElement("div"), c.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", c.innerHTML = h.getMirrorText && h.getMirrorText(e) || "控件", p.add(c, "gu-mirror"), h.mirrorContainer.appendChild(c), i(F, "add", "mousemove", ke), p.add(h.mirrorContainer, "gu-unselectable"), W.emit("cloned", c, e, "mirror"));
624
624
  }
625
625
  function at() {
626
626
  if (V = document.createElement("div"), p.add(V, "gu-insertion"), e) {
627
- var o = e.getBoundingClientRect();
628
- V.style.left = o.left + "px", V.style.top = o.top + "px";
627
+ var r = e.getBoundingClientRect();
628
+ V.style.left = r.left + "px", V.style.top = r.top + "px";
629
629
  }
630
630
  ie = !1, h.mirrorContainer.appendChild(V);
631
631
  }
632
632
  function ct() {
633
- u && (p.rm(h.mirrorContainer, "gu-unselectable"), r(O, "remove", "mousemove", ke), l(u).removeChild(u), u = null);
633
+ c && (p.rm(h.mirrorContainer, "gu-unselectable"), i(F, "remove", "mousemove", ke), l(c).removeChild(c), c = null);
634
634
  }
635
635
  function lt() {
636
636
  V && (l(V).removeChild(V), V = null);
637
637
  }
638
- function Qe(o, x) {
639
- for (var P = x; P !== o && l(P) !== o; )
638
+ function Je(r, b) {
639
+ for (var P = b; P !== r && l(P) !== r; )
640
640
  P = l(P);
641
- return P === O ? null : P;
641
+ return P === F ? null : P;
642
642
  }
643
- function ut(o, x) {
644
- if (!x)
643
+ function ut(r, b) {
644
+ if (!b)
645
645
  return ie;
646
- var P = o || x && x.lastElementChild;
646
+ var P = r || b && b.lastElementChild;
647
647
  if (!P)
648
648
  return !0;
649
- var X = getComputedStyle(o), te = /^inline/.test(X.getPropertyValue("display")) || /^(left|right)$/.test(X.getPropertyValue("float"));
649
+ var X = getComputedStyle(r), te = /^inline/.test(X.getPropertyValue("display")) || /^(left|right)$/.test(X.getPropertyValue("float"));
650
650
  if (te)
651
651
  return !0;
652
- if (x) {
653
- var ne = getComputedStyle(x), we = ne.getPropertyValue("display");
652
+ if (b) {
653
+ var ne = getComputedStyle(b), we = ne.getPropertyValue("display");
654
654
  if (/flex$/.test(we)) {
655
655
  var ge = ne.getPropertyValue("flex-direction") || "row";
656
656
  if (ge === "row" || ge === "row-reverse")
657
- return !ft(x);
657
+ return !ft(b);
658
658
  }
659
659
  return !1;
660
660
  }
661
661
  return !0;
662
662
  }
663
- function ft(o) {
664
- if (!o.children || !o.children.length)
663
+ function ft(r) {
664
+ if (!r.children || !r.children.length)
665
665
  return !1;
666
- for (const x of Array.from(o.children)) {
667
- const X = (x.className && x.className.split(" ") || []).filter((te) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(te));
666
+ for (const b of Array.from(r.children)) {
667
+ const X = (b.className && b.className.split(" ") || []).filter((te) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(te));
668
668
  if (!X.length)
669
669
  return !1;
670
670
  for (const te of X) {
@@ -675,89 +675,89 @@ var nt = { exports: {} };
675
675
  }
676
676
  return !0;
677
677
  }
678
- function dt(o, x) {
679
- const P = x.getBoundingClientRect();
678
+ function dt(r, b) {
679
+ const P = b.getBoundingClientRect();
680
680
  if (V.style.left = P.left + "px", V.style.top = P.top + "px", ie) {
681
- if (V.style.height = P.height + "px", V.style.width = "4px", o) {
682
- const X = o.getBoundingClientRect();
681
+ if (V.style.height = P.height + "px", V.style.width = "4px", r) {
682
+ const X = r.getBoundingClientRect();
683
683
  X.top !== P.top && (V.style.left = X.right + "px", V.style.top = X.top + "px", V.style.height = X.height + "px");
684
684
  }
685
- } else if (V.style.height = "4px", V.style.width = P.width + "px", N) {
686
- const X = N.getBoundingClientRect();
685
+ } else if (V.style.height = "4px", V.style.width = P.width + "px", D) {
686
+ const X = D.getBoundingClientRect();
687
687
  P.top < X.top && (V.style.display = "none");
688
688
  }
689
- x === e && e && (V.style.display = "none");
689
+ b === e && e && (V.style.display = "none");
690
690
  }
691
- function pt(o) {
691
+ function pt(r) {
692
692
  s = null;
693
- var x = o.lastElementChild;
694
- if (x) {
695
- var P = x.getBoundingClientRect();
696
- ie ? (V.style.left = P.right + "px", V.style.top = P.top + "px", V.style.height = P.height + "px", V.style.width = "4px") : (V.style.left = P.left + "px", V.style.top = P.bottom + "px", V.style.height = "4px", V.style.width = P.width + "px"), x === e && e && (V.style.display = "none");
693
+ var b = r.lastElementChild;
694
+ if (b) {
695
+ var P = b.getBoundingClientRect();
696
+ ie ? (V.style.left = P.right + "px", V.style.top = P.top + "px", V.style.height = P.height + "px", V.style.width = "4px") : (V.style.left = P.left + "px", V.style.top = P.bottom + "px", V.style.height = "4px", V.style.width = P.width + "px"), b === e && e && (V.style.display = "none");
697
697
  } else
698
698
  V.style.display = "none";
699
699
  }
700
- function mt(o, x) {
701
- if (!h.mirrorContainer.contains(o) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (N = S(o), !N || !N.contains(o)))
700
+ function mt(r, b) {
701
+ if (!h.mirrorContainer.contains(r) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (D = S(r), !D || !D.contains(r)))
702
702
  return;
703
- const P = document.querySelector(".dgComponentSelected"), X = N.getBoundingClientRect();
704
- if (x - 30 < X.top && N.scrollTop > 0) {
705
- let te = N.scrollTop < 10 ? N.scrollTop : 10;
706
- N.scrollBy(0, -1 * te), P && N.contains(P) && (se = se + -1 * te);
703
+ const P = document.querySelector(".dgComponentSelected"), X = D.getBoundingClientRect();
704
+ if (b - 30 < X.top && D.scrollTop > 0) {
705
+ let te = D.scrollTop < 10 ? D.scrollTop : 10;
706
+ D.scrollBy(0, -1 * te), P && D.contains(P) && (se = se + -1 * te);
707
707
  }
708
- if (x + 30 > X.bottom && N.scrollTop < N.scrollHeight - N.clientHeight) {
709
- const te = N.scrollHeight - N.clientHeight - N.scrollTop;
708
+ if (b + 30 > X.bottom && D.scrollTop < D.scrollHeight - D.clientHeight) {
709
+ const te = D.scrollHeight - D.clientHeight - D.scrollTop;
710
710
  let ne = te < 10 ? te : 10;
711
- N.scrollBy(0, ne), P && N.contains(P) && (se = se + ne);
711
+ D.scrollBy(0, ne), P && D.contains(P) && (se = se + ne);
712
712
  }
713
713
  }
714
- function Je(o, x, P, X) {
715
- var te = h.direction === "horizontal", ne = h.direction === "mixed", we = x !== o ? be() : ge();
714
+ function Ze(r, b, P, X) {
715
+ var te = h.direction === "horizontal", ne = h.direction === "mixed", we = b !== r ? xe() : ge();
716
716
  return we;
717
717
  function ge() {
718
- var ue = o.children.length, Ie, xe, fe;
718
+ var ue = r.children.length, Ie, be, fe;
719
719
  for (Ie = 0; Ie < ue; Ie++)
720
- if (xe = o.children[Ie], fe = xe.getBoundingClientRect(), te && fe.left + fe.width / 2 > P || !ne && !te && fe.top + fe.height / 2 > X || ne && fe.left + fe.width > P && fe.top + fe.height > X)
721
- return xe;
720
+ if (be = r.children[Ie], fe = be.getBoundingClientRect(), te && fe.left + fe.width / 2 > P || !ne && !te && fe.top + fe.height / 2 > X || ne && fe.left + fe.width > P && fe.top + fe.height > X)
721
+ return be;
722
722
  return null;
723
723
  }
724
- function be() {
725
- var ue = x.getBoundingClientRect();
724
+ function xe() {
725
+ var ue = b.getBoundingClientRect();
726
726
  if (ne) {
727
- var Ie = X - ue.top, xe = P - ue.left, fe = ue.bottom - X, Re = ue.right - P, Ve = Math.min(xe, Re, Ie, fe), Xe;
728
- return ie ? Xe = Re < xe : Xe = fe === Ve || Re === Ve || xe === Ve, Pe(Xe);
727
+ var Ie = X - ue.top, be = P - ue.left, fe = ue.bottom - X, Re = ue.right - P, Ve = Math.min(be, Re, Ie, fe), Xe;
728
+ return ie ? Xe = Re < be : Xe = fe === Ve || Re === Ve || be === Ve, Pe(Xe);
729
729
  }
730
730
  return Pe(te ? P > ue.left + $(ue) / 2 : X > ue.top + R(ue) / 2);
731
731
  }
732
732
  function Pe(ue) {
733
- return ue ? Y(x) : x;
733
+ return ue ? Y(b) : b;
734
734
  }
735
735
  }
736
- function vt(o, x) {
737
- return typeof h.copy == "boolean" ? h.copy : h.copy(o, x);
736
+ function vt(r, b) {
737
+ return typeof h.copy == "boolean" ? h.copy : h.copy(r, b);
738
738
  }
739
739
  }
740
740
  function S(m) {
741
741
  const G = Array.from(window.scrollContainerList);
742
742
  if (G.length === 1) {
743
- const u = Array.from(window.scrollContainerList)[0];
744
- return document.getElementById(u);
743
+ const c = Array.from(window.scrollContainerList)[0];
744
+ return document.getElementById(c);
745
745
  }
746
- const Z = f(G);
747
- for (const u of Z)
748
- if (u.contains(m))
749
- return u;
746
+ const Z = d(G);
747
+ for (const c of Z)
748
+ if (c.contains(m))
749
+ return c;
750
750
  return null;
751
751
  }
752
- function f(m) {
752
+ function d(m) {
753
753
  const G = [];
754
754
  return m.forEach((Z) => {
755
- const u = document.getElementById(Z);
756
- u && G.push(u);
757
- }), G.sort((Z, u) => Z.contains(u) ? 1 : u.contains(Z) ? -1 : 0), G;
755
+ const c = document.getElementById(Z);
756
+ c && G.push(c);
757
+ }), G.sort((Z, c) => Z.contains(c) ? 1 : c.contains(Z) ? -1 : 0), G;
758
758
  }
759
- function r(m, G, Z, u) {
760
- var A = {
759
+ function i(m, G, Z, c) {
760
+ var E = {
761
761
  mouseup: "touchend",
762
762
  mousedown: "touchstart",
763
763
  mousemove: "touchmove"
@@ -770,9 +770,9 @@ var nt = { exports: {} };
770
770
  mousedown: "MSPointerDown",
771
771
  mousemove: "MSPointerMove"
772
772
  };
773
- g.navigator.pointerEnabled ? b[G](m, e[Z], u) : g.navigator.msPointerEnabled ? b[G](m, t[Z], u) : (b[G](m, A[Z], u), b[G](m, Z, u));
773
+ g.navigator.pointerEnabled ? x[G](m, e[Z], c) : g.navigator.msPointerEnabled ? x[G](m, t[Z], c) : (x[G](m, E[Z], c), x[G](m, Z, c));
774
774
  }
775
- function i(m) {
775
+ function o(m) {
776
776
  if (m.touches !== void 0)
777
777
  return m.touches.length;
778
778
  if (m.which !== void 0 && m.which !== 0)
@@ -785,13 +785,13 @@ var nt = { exports: {} };
785
785
  }
786
786
  function y(m, G, Z) {
787
787
  m = m || {};
788
- var u = m.className || "", A;
789
- return m.className += " gu-hide", A = T.elementFromPoint(G, Z), m.className = u, A;
788
+ var c = m.className || "", E;
789
+ return m.className += " gu-hide", E = T.elementFromPoint(G, Z), m.className = c, E;
790
790
  }
791
791
  function a() {
792
792
  return !1;
793
793
  }
794
- function F() {
794
+ function O() {
795
795
  return !0;
796
796
  }
797
797
  function $(m) {
@@ -803,7 +803,7 @@ var nt = { exports: {} };
803
803
  function l(m) {
804
804
  return m.parentNode === T ? null : m.parentNode;
805
805
  }
806
- function E(m) {
806
+ function A(m) {
807
807
  return m.tagName === "INPUT" || m.tagName === "TEXTAREA" || m.tagName === "SELECT" || U(m);
808
808
  }
809
809
  function U(m) {
@@ -823,101 +823,101 @@ var nt = { exports: {} };
823
823
  return m.targetTouches && m.targetTouches.length ? m.targetTouches[0] : m.changedTouches && m.changedTouches.length ? m.changedTouches[0] : m;
824
824
  }
825
825
  function Q(m, G) {
826
- var Z = re(G), u = {
826
+ var Z = re(G), c = {
827
827
  pageX: "clientX",
828
828
  // IE8
829
829
  pageY: "clientY"
830
830
  // IE8
831
831
  };
832
- return m in u && !(m in Z) && u[m] in Z && (m = u[m]), Z[m];
832
+ return m in c && !(m in Z) && c[m] in Z && (m = c[m]), Z[m];
833
833
  }
834
- w.exports = d;
834
+ w.exports = f;
835
835
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
836
836
  }, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
837
- 3: [function(I, w, B) {
838
- w.exports = function(C, b) {
839
- return Array.prototype.slice.call(C, b);
837
+ 3: [function(I, w, N) {
838
+ w.exports = function(C, x) {
839
+ return Array.prototype.slice.call(C, x);
840
840
  };
841
841
  }, {}],
842
- 4: [function(I, w, B) {
842
+ 4: [function(I, w, N) {
843
843
  var g = I("ticky");
844
- w.exports = function(b, p, T) {
845
- b && g(function() {
846
- b.apply(T || null, p || []);
844
+ w.exports = function(x, p, T) {
845
+ x && g(function() {
846
+ x.apply(T || null, p || []);
847
847
  });
848
848
  };
849
849
  }, { ticky: 10 }],
850
- 5: [function(I, w, B) {
850
+ 5: [function(I, w, N) {
851
851
  var g = I("atoa"), C = I("./debounce");
852
852
  w.exports = function(p, T) {
853
- var O = T || {}, d = {};
854
- return p === void 0 && (p = {}), p.on = function(S, f) {
855
- return d[S] ? d[S].push(f) : d[S] = [f], p;
856
- }, p.once = function(S, f) {
857
- return f._once = !0, p.on(S, f), p;
858
- }, p.off = function(S, f) {
859
- var r = arguments.length;
860
- if (r === 1)
861
- delete d[S];
862
- else if (r === 0)
863
- d = {};
853
+ var F = T || {}, f = {};
854
+ return p === void 0 && (p = {}), p.on = function(S, d) {
855
+ return f[S] ? f[S].push(d) : f[S] = [d], p;
856
+ }, p.once = function(S, d) {
857
+ return d._once = !0, p.on(S, d), p;
858
+ }, p.off = function(S, d) {
859
+ var i = arguments.length;
860
+ if (i === 1)
861
+ delete f[S];
862
+ else if (i === 0)
863
+ f = {};
864
864
  else {
865
- var i = d[S];
866
- if (!i)
865
+ var o = f[S];
866
+ if (!o)
867
867
  return p;
868
- i.splice(i.indexOf(f), 1);
868
+ o.splice(o.indexOf(d), 1);
869
869
  }
870
870
  return p;
871
871
  }, p.emit = function() {
872
872
  var S = g(arguments);
873
873
  return p.emitterSnapshot(S.shift()).apply(this, S);
874
874
  }, p.emitterSnapshot = function(S) {
875
- var f = (d[S] || []).slice(0);
875
+ var d = (f[S] || []).slice(0);
876
876
  return function() {
877
- var r = g(arguments), i = this || p;
878
- if (S === "error" && O.throws !== !1 && !f.length)
879
- throw r.length === 1 ? r[0] : r;
880
- return f.forEach(function(a) {
881
- O.async ? C(a, r, i) : a.apply(i, r), a._once && p.off(S, a);
877
+ var i = g(arguments), o = this || p;
878
+ if (S === "error" && F.throws !== !1 && !d.length)
879
+ throw i.length === 1 ? i[0] : i;
880
+ return d.forEach(function(a) {
881
+ F.async ? C(a, i, o) : a.apply(o, i), a._once && p.off(S, a);
882
882
  }), p;
883
883
  };
884
884
  }, p;
885
885
  };
886
886
  }, { "./debounce": 4, atoa: 3 }],
887
- 6: [function(I, w, B) {
887
+ 6: [function(I, w, N) {
888
888
  (function(g) {
889
- var C = I("custom-event"), b = I("./eventmap"), p = g.document, T = S, O = r, d = [];
890
- g.addEventListener || (T = f, O = i), w.exports = {
889
+ var C = I("custom-event"), x = I("./eventmap"), p = g.document, T = S, F = i, f = [];
890
+ g.addEventListener || (T = d, F = o), w.exports = {
891
891
  add: T,
892
- remove: O,
892
+ remove: F,
893
893
  fabricate: y
894
894
  };
895
- function S(l, E, U, Y) {
896
- return l.addEventListener(E, U, Y);
895
+ function S(l, A, U, Y) {
896
+ return l.addEventListener(A, U, Y);
897
897
  }
898
- function f(l, E, U) {
899
- return l.attachEvent("on" + E, F(l, E, U));
898
+ function d(l, A, U) {
899
+ return l.attachEvent("on" + A, O(l, A, U));
900
900
  }
901
- function r(l, E, U, Y) {
902
- return l.removeEventListener(E, U, Y);
901
+ function i(l, A, U, Y) {
902
+ return l.removeEventListener(A, U, Y);
903
903
  }
904
- function i(l, E, U) {
905
- var Y = $(l, E, U);
904
+ function o(l, A, U) {
905
+ var Y = $(l, A, U);
906
906
  if (Y)
907
- return l.detachEvent("on" + E, Y);
907
+ return l.detachEvent("on" + A, Y);
908
908
  }
909
- function y(l, E, U) {
910
- var Y = b.indexOf(E) === -1 ? Q() : re();
911
- l.dispatchEvent ? l.dispatchEvent(Y) : l.fireEvent("on" + E, Y);
909
+ function y(l, A, U) {
910
+ var Y = x.indexOf(A) === -1 ? Q() : re();
911
+ l.dispatchEvent ? l.dispatchEvent(Y) : l.fireEvent("on" + A, Y);
912
912
  function re() {
913
913
  var m;
914
- return p.createEvent ? (m = p.createEvent("Event"), m.initEvent(E, !0, !0)) : p.createEventObject && (m = p.createEventObject()), m;
914
+ return p.createEvent ? (m = p.createEvent("Event"), m.initEvent(A, !0, !0)) : p.createEventObject && (m = p.createEventObject()), m;
915
915
  }
916
916
  function Q() {
917
- return new C(E, { detail: U });
917
+ return new C(A, { detail: U });
918
918
  }
919
919
  }
920
- function a(l, E, U) {
920
+ function a(l, A, U) {
921
921
  return function(re) {
922
922
  var Q = re || g.event;
923
923
  Q.target = Q.target || Q.srcElement, Q.preventDefault = Q.preventDefault || function() {
@@ -927,42 +927,42 @@ var nt = { exports: {} };
927
927
  }, Q.which = Q.which || Q.keyCode, U.call(l, Q);
928
928
  };
929
929
  }
930
- function F(l, E, U) {
931
- var Y = $(l, E, U) || a(l, E, U);
932
- return d.push({
930
+ function O(l, A, U) {
931
+ var Y = $(l, A, U) || a(l, A, U);
932
+ return f.push({
933
933
  wrapper: Y,
934
934
  element: l,
935
- type: E,
935
+ type: A,
936
936
  fn: U
937
937
  }), Y;
938
938
  }
939
- function $(l, E, U) {
940
- var Y = R(l, E, U);
939
+ function $(l, A, U) {
940
+ var Y = R(l, A, U);
941
941
  if (Y) {
942
- var re = d[Y].wrapper;
943
- return d.splice(Y, 1), re;
942
+ var re = f[Y].wrapper;
943
+ return f.splice(Y, 1), re;
944
944
  }
945
945
  }
946
- function R(l, E, U) {
946
+ function R(l, A, U) {
947
947
  var Y, re;
948
- for (Y = 0; Y < d.length; Y++)
949
- if (re = d[Y], re.element === l && re.type === E && re.fn === U)
948
+ for (Y = 0; Y < f.length; Y++)
949
+ if (re = f[Y], re.element === l && re.type === A && re.fn === U)
950
950
  return Y;
951
951
  }
952
952
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
953
953
  }, { "./eventmap": 7, "custom-event": 8 }],
954
- 7: [function(I, w, B) {
954
+ 7: [function(I, w, N) {
955
955
  (function(g) {
956
- var C = [], b = "", p = /^on/;
957
- for (b in g)
958
- p.test(b) && C.push(b.slice(2));
956
+ var C = [], x = "", p = /^on/;
957
+ for (x in g)
958
+ p.test(x) && C.push(x.slice(2));
959
959
  w.exports = C;
960
960
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
961
961
  }, {}],
962
- 8: [function(I, w, B) {
962
+ 8: [function(I, w, N) {
963
963
  (function(g) {
964
964
  var C = g.CustomEvent;
965
- function b() {
965
+ function x() {
966
966
  try {
967
967
  var p = new C("cat", { detail: { foo: "bar" } });
968
968
  return p.type === "cat" && p.detail.foo === "bar";
@@ -970,23 +970,23 @@ var nt = { exports: {} };
970
970
  }
971
971
  return !1;
972
972
  }
973
- w.exports = b() ? C : (
973
+ w.exports = x() ? C : (
974
974
  // IE >= 9
975
- typeof document < "u" && typeof document.createEvent == "function" ? function(T, O) {
976
- var d = document.createEvent("CustomEvent");
977
- return O ? d.initCustomEvent(T, O.bubbles, O.cancelable, O.detail) : d.initCustomEvent(T, !1, !1, void 0), d;
975
+ typeof document < "u" && typeof document.createEvent == "function" ? function(T, F) {
976
+ var f = document.createEvent("CustomEvent");
977
+ return F ? f.initCustomEvent(T, F.bubbles, F.cancelable, F.detail) : f.initCustomEvent(T, !1, !1, void 0), f;
978
978
  } : (
979
979
  // IE <= 8
980
- function(T, O) {
981
- var d = document.createEventObject();
982
- return d.type = T, O ? (d.bubbles = !!O.bubbles, d.cancelable = !!O.cancelable, d.detail = O.detail) : (d.bubbles = !1, d.cancelable = !1, d.detail = void 0), d;
980
+ function(T, F) {
981
+ var f = document.createEventObject();
982
+ return f.type = T, F ? (f.bubbles = !!F.bubbles, f.cancelable = !!F.cancelable, f.detail = F.detail) : (f.bubbles = !1, f.cancelable = !1, f.detail = void 0), f;
983
983
  }
984
984
  )
985
985
  );
986
986
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
987
987
  }, {}],
988
- 9: [function(I, w, B) {
989
- var g = w.exports = {}, C, b;
988
+ 9: [function(I, w, N) {
989
+ var g = w.exports = {}, C, x;
990
990
  function p() {
991
991
  throw new Error("setTimeout has not been defined");
992
992
  }
@@ -1000,12 +1000,12 @@ var nt = { exports: {} };
1000
1000
  C = p;
1001
1001
  }
1002
1002
  try {
1003
- typeof clearTimeout == "function" ? b = clearTimeout : b = T;
1003
+ typeof clearTimeout == "function" ? x = clearTimeout : x = T;
1004
1004
  } catch {
1005
- b = T;
1005
+ x = T;
1006
1006
  }
1007
1007
  })();
1008
- function O(R) {
1008
+ function F(R) {
1009
1009
  if (C === setTimeout)
1010
1010
  return setTimeout(R, 0);
1011
1011
  if ((C === p || !C) && setTimeout)
@@ -1020,48 +1020,48 @@ var nt = { exports: {} };
1020
1020
  }
1021
1021
  }
1022
1022
  }
1023
- function d(R) {
1024
- if (b === clearTimeout)
1023
+ function f(R) {
1024
+ if (x === clearTimeout)
1025
1025
  return clearTimeout(R);
1026
- if ((b === T || !b) && clearTimeout)
1027
- return b = clearTimeout, clearTimeout(R);
1026
+ if ((x === T || !x) && clearTimeout)
1027
+ return x = clearTimeout, clearTimeout(R);
1028
1028
  try {
1029
- return b(R);
1029
+ return x(R);
1030
1030
  } catch {
1031
1031
  try {
1032
- return b.call(null, R);
1032
+ return x.call(null, R);
1033
1033
  } catch {
1034
- return b.call(this, R);
1034
+ return x.call(this, R);
1035
1035
  }
1036
1036
  }
1037
1037
  }
1038
- var S = [], f = !1, r, i = -1;
1038
+ var S = [], d = !1, i, o = -1;
1039
1039
  function y() {
1040
- !f || !r || (f = !1, r.length ? S = r.concat(S) : i = -1, S.length && a());
1040
+ !d || !i || (d = !1, i.length ? S = i.concat(S) : o = -1, S.length && a());
1041
1041
  }
1042
1042
  function a() {
1043
- if (!f) {
1044
- var R = O(y);
1045
- f = !0;
1043
+ if (!d) {
1044
+ var R = F(y);
1045
+ d = !0;
1046
1046
  for (var l = S.length; l; ) {
1047
- for (r = S, S = []; ++i < l; )
1048
- r && r[i].run();
1049
- i = -1, l = S.length;
1047
+ for (i = S, S = []; ++o < l; )
1048
+ i && i[o].run();
1049
+ o = -1, l = S.length;
1050
1050
  }
1051
- r = null, f = !1, d(R);
1051
+ i = null, d = !1, f(R);
1052
1052
  }
1053
1053
  }
1054
1054
  g.nextTick = function(R) {
1055
1055
  var l = new Array(arguments.length - 1);
1056
1056
  if (arguments.length > 1)
1057
- for (var E = 1; E < arguments.length; E++)
1058
- l[E - 1] = arguments[E];
1059
- S.push(new F(R, l)), S.length === 1 && !f && O(a);
1057
+ for (var A = 1; A < arguments.length; A++)
1058
+ l[A - 1] = arguments[A];
1059
+ S.push(new O(R, l)), S.length === 1 && !d && F(a);
1060
1060
  };
1061
- function F(R, l) {
1061
+ function O(R, l) {
1062
1062
  this.fun = R, this.array = l;
1063
1063
  }
1064
- F.prototype.run = function() {
1064
+ O.prototype.run = function() {
1065
1065
  this.fun.apply(null, this.array);
1066
1066
  }, g.title = "browser", g.browser = !0, g.env = {}, g.argv = [], g.version = "", g.versions = {};
1067
1067
  function $() {
@@ -1078,49 +1078,49 @@ var nt = { exports: {} };
1078
1078
  return 0;
1079
1079
  };
1080
1080
  }, {}],
1081
- 10: [function(I, w, B) {
1081
+ 10: [function(I, w, N) {
1082
1082
  (function(g) {
1083
- var C = typeof g == "function", b;
1084
- C ? b = function(p) {
1083
+ var C = typeof g == "function", x;
1084
+ C ? x = function(p) {
1085
1085
  g(p);
1086
- } : b = function(p) {
1086
+ } : x = function(p) {
1087
1087
  setTimeout(p, 0);
1088
- }, w.exports = b;
1088
+ }, w.exports = x;
1089
1089
  }).call(this, I("timers").setImmediate);
1090
1090
  }, { timers: 11 }],
1091
- 11: [function(I, w, B) {
1091
+ 11: [function(I, w, N) {
1092
1092
  (function(g, C) {
1093
- var b = I("process/browser.js").nextTick, p = Function.prototype.apply, T = Array.prototype.slice, O = {}, d = 0;
1094
- B.setTimeout = function() {
1093
+ var x = I("process/browser.js").nextTick, p = Function.prototype.apply, T = Array.prototype.slice, F = {}, f = 0;
1094
+ N.setTimeout = function() {
1095
1095
  return new S(p.call(setTimeout, window, arguments), clearTimeout);
1096
- }, B.setInterval = function() {
1096
+ }, N.setInterval = function() {
1097
1097
  return new S(p.call(setInterval, window, arguments), clearInterval);
1098
- }, B.clearTimeout = B.clearInterval = function(f) {
1099
- f.close();
1098
+ }, N.clearTimeout = N.clearInterval = function(d) {
1099
+ d.close();
1100
1100
  };
1101
- function S(f, r) {
1102
- this._id = f, this._clearFn = r;
1101
+ function S(d, i) {
1102
+ this._id = d, this._clearFn = i;
1103
1103
  }
1104
1104
  S.prototype.unref = S.prototype.ref = function() {
1105
1105
  }, S.prototype.close = function() {
1106
1106
  this._clearFn.call(window, this._id);
1107
- }, B.enroll = function(f, r) {
1108
- clearTimeout(f._idleTimeoutId), f._idleTimeout = r;
1109
- }, B.unenroll = function(f) {
1110
- clearTimeout(f._idleTimeoutId), f._idleTimeout = -1;
1111
- }, B._unrefActive = B.active = function(f) {
1112
- clearTimeout(f._idleTimeoutId);
1113
- var r = f._idleTimeout;
1114
- r >= 0 && (f._idleTimeoutId = setTimeout(function() {
1115
- f._onTimeout && f._onTimeout();
1116
- }, r));
1117
- }, B.setImmediate = typeof g == "function" ? g : function(f) {
1118
- var r = d++, i = arguments.length < 2 ? !1 : T.call(arguments, 1);
1119
- return O[r] = !0, b(function() {
1120
- O[r] && (i ? f.apply(null, i) : f.call(null), B.clearImmediate(r));
1121
- }), r;
1122
- }, B.clearImmediate = typeof C == "function" ? C : function(f) {
1123
- delete O[f];
1107
+ }, N.enroll = function(d, i) {
1108
+ clearTimeout(d._idleTimeoutId), d._idleTimeout = i;
1109
+ }, N.unenroll = function(d) {
1110
+ clearTimeout(d._idleTimeoutId), d._idleTimeout = -1;
1111
+ }, N._unrefActive = N.active = function(d) {
1112
+ clearTimeout(d._idleTimeoutId);
1113
+ var i = d._idleTimeout;
1114
+ i >= 0 && (d._idleTimeoutId = setTimeout(function() {
1115
+ d._onTimeout && d._onTimeout();
1116
+ }, i));
1117
+ }, N.setImmediate = typeof g == "function" ? g : function(d) {
1118
+ var i = f++, o = arguments.length < 2 ? !1 : T.call(arguments, 1);
1119
+ return F[i] = !0, x(function() {
1120
+ F[i] && (o ? d.apply(null, o) : d.call(null), N.clearImmediate(i));
1121
+ }), i;
1122
+ }, N.clearImmediate = typeof C == "function" ? C : function(d) {
1123
+ delete F[d];
1124
1124
  };
1125
1125
  }).call(this, I("timers").setImmediate, I("timers").clearImmediate);
1126
1126
  }, { "process/browser.js": 9, timers: 11 }]
@@ -1128,166 +1128,166 @@ var nt = { exports: {} };
1128
1128
  });
1129
1129
  })(nt);
1130
1130
  var Fn = nt.exports;
1131
- const Ze = /* @__PURE__ */ On(Fn);
1132
- function An(D) {
1131
+ const et = /* @__PURE__ */ En(Fn);
1132
+ function An(B) {
1133
1133
  let z;
1134
- function I(r, i, y) {
1134
+ function I(i, o, y) {
1135
1135
  const a = {};
1136
- return a.sourceElement = r, a.sourceContainer = y, a.targetContainer = i, a.sourceType = r.getAttribute("data-sourceType") || "move", a.controlType = r.getAttribute("data-controlType"), a.controlTypeName = r.getAttribute("data-controlTypeName"), a.controlCategory = r.getAttribute("data-category"), a.controlFeature = r.getAttribute("data-feature"), a.parentComponentInstance = i.componentInstance, a.controlCategory === "input" ? a.bindingType = "field" : a.controlCategory === "dataCollection" && (a.bindingType = "entity"), r.componentInstance && (a.controlType = r.componentInstance.value.schema.type, a.controlCategory = r.componentInstance.value.schema.category), a;
1136
+ return a.sourceElement = i, a.sourceContainer = y, a.targetContainer = o, a.sourceType = i.getAttribute("data-sourceType") || "move", a.controlType = i.getAttribute("data-controlType"), a.controlTypeName = i.getAttribute("data-controlTypeName"), a.controlCategory = i.getAttribute("data-category"), a.controlFeature = i.getAttribute("data-feature"), a.parentComponentInstance = o.componentInstance, a.controlCategory === "input" ? a.bindingType = "field" : a.controlCategory === "dataCollection" && (a.bindingType = "entity"), i.componentInstance && (a.controlType = i.componentInstance.value.schema.type, a.controlCategory = i.componentInstance.value.schema.category), a;
1137
1137
  }
1138
- function w(r, i, y) {
1139
- if (r.contains(i) || i.classList.contains("no-drop"))
1138
+ function w(i, o, y) {
1139
+ if (i.contains(o) || o.classList.contains("no-drop"))
1140
1140
  return !1;
1141
1141
  const a = !0;
1142
- if (r.componentInstance && r.componentInstance.value.getDragScopeElement) {
1143
- const F = r.componentInstance.value.getDragScopeElement();
1144
- if (F && !F.contains(i))
1142
+ if (i.componentInstance && i.componentInstance.value.getDragScopeElement) {
1143
+ const O = i.componentInstance.value.getDragScopeElement();
1144
+ if (O && !O.contains(o))
1145
1145
  return !1;
1146
1146
  }
1147
- if (i.componentInstance && i.componentInstance.value.canAccepts) {
1148
- const F = I(r, i, y);
1149
- return i.componentInstance.value.canAccepts(F);
1147
+ if (o.componentInstance && o.componentInstance.value.canAccepts) {
1148
+ const O = I(i, o, y);
1149
+ return o.componentInstance.value.canAccepts(O);
1150
1150
  }
1151
1151
  return a;
1152
1152
  }
1153
- function B(r, i) {
1154
- const y = i.getBoundingClientRect(), a = r.getBoundingClientRect(), F = a.top >= y.top, $ = a.top < y.bottom;
1155
- return F && $;
1153
+ function N(i, o) {
1154
+ const y = o.getBoundingClientRect(), a = i.getBoundingClientRect(), O = a.top >= y.top, $ = a.top < y.bottom;
1155
+ return O && $;
1156
1156
  }
1157
- function g(r, i) {
1158
- const y = r.querySelector(".dgComponentSelected");
1159
- if (!(!y || i === 0) && B(y, r)) {
1157
+ function g(i, o) {
1158
+ const y = i.querySelector(".dgComponentSelected");
1159
+ if (!(!y || o === 0) && N(y, i)) {
1160
1160
  const a = y.querySelector(".component-btn-group");
1161
1161
  if (a) {
1162
- const F = a.querySelector("div");
1163
- if (F && F.style.top) {
1164
- const $ = Number.parseFloat(F.style.top);
1165
- F.style.top = $ - i + "px";
1162
+ const O = a.querySelector("div");
1163
+ if (O && O.style.top) {
1164
+ const $ = Number.parseFloat(O.style.top);
1165
+ O.style.top = $ - o + "px";
1166
1166
  }
1167
1167
  }
1168
1168
  }
1169
1169
  }
1170
- function C(r, i, y) {
1171
- r.componentInstance;
1170
+ function C(i, o, y) {
1171
+ i.componentInstance;
1172
1172
  let a = -1;
1173
- if (!i)
1173
+ if (!o)
1174
1174
  return -1;
1175
- if (r.componentInstance.value.contents) {
1175
+ if (i.componentInstance.value.contents) {
1176
1176
  if (y && y.componentInstance) {
1177
1177
  if (y.getAttribute("data-noattach"))
1178
1178
  a = Number(y.getAttribute("data-position"));
1179
1179
  else {
1180
- const F = y.componentInstance.value.schema;
1181
- let $ = { id: F.id };
1182
- F.type === "Component" && ($ = { component: F.id }), a = Ye(r.componentInstance.value.contents, $), a = a === -1 ? 0 : a;
1180
+ const O = y.componentInstance.value.schema;
1181
+ let $ = { id: O.id };
1182
+ O.type === "Component" && ($ = { component: O.id }), a = Ye(i.componentInstance.value.contents, $), a = a === -1 ? 0 : a;
1183
1183
  }
1184
- a !== -1 && r.componentInstance.value.contents.splice(a, 0, i);
1184
+ a !== -1 && i.componentInstance.value.contents.splice(a, 0, o);
1185
1185
  } else
1186
- r.componentInstance.value.contents.push(i);
1187
- r.componentInstance.value.updateDragAndDropRules();
1186
+ i.componentInstance.value.contents.push(o);
1187
+ i.componentInstance.value.updateDragAndDropRules();
1188
1188
  }
1189
1189
  return a;
1190
1190
  }
1191
- function b(r, i) {
1192
- if (!r.componentInstance.value.contents)
1191
+ function x(i, o) {
1192
+ if (!i.componentInstance.value.contents)
1193
1193
  return -1;
1194
- if (r.componentInstance.value.contents.length === 0)
1194
+ if (i.componentInstance.value.contents.length === 0)
1195
1195
  return 0;
1196
- if (!i || !i.componentInstance)
1197
- return r.componentInstance.value.contents.length;
1198
- if (i.getAttribute("data-noattach"))
1199
- return Number(i.getAttribute("data-position"));
1200
- const y = i.componentInstance.value.schema;
1196
+ if (!o || !o.componentInstance)
1197
+ return i.componentInstance.value.contents.length;
1198
+ if (o.getAttribute("data-noattach"))
1199
+ return Number(o.getAttribute("data-position"));
1200
+ const y = o.componentInstance.value.schema;
1201
1201
  let a;
1202
1202
  y.type === "Component" ? a = { component: y.id } : a = { id: y.id };
1203
- let F = Ye(r.componentInstance.value.contents, a);
1204
- return F = F === -1 ? 0 : F, F;
1203
+ let O = Ye(i.componentInstance.value.contents, a);
1204
+ return O = O === -1 ? 0 : O, O;
1205
1205
  }
1206
- function p(r, i, y, a) {
1207
- if (i.componentInstance.value.addNewChildComponentSchema) {
1208
- const F = b(i, a), $ = String(r.getAttribute("data-controltype")), R = r.getAttribute("data-feature"), l = String(r.innerText), E = i.componentInstance.value, U = { componentType: $, label: l, parentComponentInstance: E, targetPosition: F }, Y = R ? JSON.parse(R) : {}, re = Object.assign(U, Y), Q = i.componentInstance.value.addNewChildComponentSchema(re, D);
1209
- C(i, Q, a);
1206
+ function p(i, o, y, a) {
1207
+ if (o.componentInstance.value.addNewChildComponentSchema) {
1208
+ const O = x(o, a), $ = String(i.getAttribute("data-controltype")), R = i.getAttribute("data-feature"), l = String(i.innerText), A = o.componentInstance.value, U = { componentType: $, label: l, parentComponentInstance: A, targetPosition: O }, Y = R ? JSON.parse(R) : {}, re = Object.assign(U, Y), Q = o.componentInstance.value.addNewChildComponentSchema(re, B);
1209
+ C(o, Q, a);
1210
1210
  }
1211
- i.contains(r) && i.removeChild(r);
1211
+ o.contains(i) && o.removeChild(i);
1212
1212
  }
1213
- function T(r, i, y, a) {
1214
- let F, $ = -1;
1215
- if (r.componentInstance && r.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
1216
- const E = r.componentInstance.value.getBelongedComponentInstance(r.componentInstance);
1217
- E && (r = H(E.elementRef).value.parentElement, y = r.parentElement);
1213
+ function T(i, o, y, a) {
1214
+ let O, $ = -1;
1215
+ if (i.componentInstance && i.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
1216
+ const A = i.componentInstance.value.getBelongedComponentInstance(i.componentInstance);
1217
+ A && (i = H(A.elementRef).value.parentElement, y = i.parentElement);
1218
1218
  }
1219
- const R = r.componentInstance && r.componentInstance.value.schema;
1219
+ const R = i.componentInstance && i.componentInstance.value.schema;
1220
1220
  let l = { id: R && R.id };
1221
- R.type === "component" && (l = { component: R && R.id }), $ = Ye(y.componentInstance.value.contents, l), $ !== -1 && y.componentInstance.value.contents && (F = y.componentInstance.value.contents.splice($, 1), F = F[0]), C(i, F, a), y.componentInstance && y.componentInstance.value.onChildElementMovedOut && y.componentInstance.value.onChildElementMovedOut(r), i.componentInstance && i.componentInstance.value.onAcceptMovedChildElement && i.componentInstance.value.onAcceptMovedChildElement(r, y);
1221
+ R.type === "component" && (l = { component: R && R.id }), $ = Ye(y.componentInstance.value.contents, l), $ !== -1 && y.componentInstance.value.contents && (O = y.componentInstance.value.contents.splice($, 1), O = O[0]), C(o, O, a), y.componentInstance && y.componentInstance.value.onChildElementMovedOut && y.componentInstance.value.onChildElementMovedOut(i), o.componentInstance && o.componentInstance.value.onAcceptMovedChildElement && o.componentInstance.value.onAcceptMovedChildElement(i, y);
1222
1222
  }
1223
- function O(r, i, y, a) {
1224
- if (!i || r.contains(i))
1223
+ function F(i, o, y, a) {
1224
+ if (!o || i.contains(o))
1225
1225
  return;
1226
- switch (r.getAttribute("data-sourceType")) {
1226
+ switch (i.getAttribute("data-sourceType")) {
1227
1227
  case "control":
1228
1228
  case "field":
1229
1229
  case "entity": {
1230
- p(r, i, y, a);
1230
+ p(i, o, y, a);
1231
1231
  break;
1232
1232
  }
1233
1233
  default:
1234
- y.componentInstance.value.contents ? T(r, i, y, a) : i.contains(r) && i.removeChild(r);
1234
+ y.componentInstance.value.contents ? T(i, o, y, a) : o.contains(i) && o.removeChild(i);
1235
1235
  }
1236
- Oe.value++;
1236
+ Ee.value++;
1237
1237
  }
1238
- function d(r) {
1239
- z && z.destroy(), Ze && (z = Ze([], {
1238
+ function f(i) {
1239
+ z && z.destroy(), et && (z = et([], {
1240
1240
  // 镜像容器
1241
- mirrorContainer: r,
1241
+ mirrorContainer: i,
1242
1242
  direction: "mixed",
1243
1243
  revertOnSpill: !0,
1244
1244
  // 判断是否可移动
1245
- moves(i, y, a) {
1246
- let F = !0;
1247
- return i.classList.contains("no-drag") && (F = !1), i.componentInstance && (F = !!a.getAttribute("data-dragging-icon")), F;
1245
+ moves(o, y, a) {
1246
+ let O = !0;
1247
+ return o.classList.contains("no-drag") && (O = !1), o.componentInstance && (O = !!a.getAttribute("data-dragging-icon")), O;
1248
1248
  },
1249
1249
  // 判断是否可拷贝
1250
- copy(i) {
1251
- return i.classList.contains("drag-copy");
1250
+ copy(o) {
1251
+ return o.classList.contains("drag-copy");
1252
1252
  },
1253
1253
  // 获取镜像元素的文本内容
1254
- getMirrorText(i) {
1255
- return i.componentInstance && i.componentInstance.value.getDraggingDisplayText ? i.componentInstance.value.getDraggingDisplayText() : i.innerText || "控件";
1254
+ getMirrorText(o) {
1255
+ return o.componentInstance && o.componentInstance.value.getDraggingDisplayText ? o.componentInstance.value.getDraggingDisplayText() : o.innerText || "控件";
1256
1256
  },
1257
1257
  // 判断目标区域是否可接收拖拽的控件
1258
- accepts(i, y, a) {
1259
- const F = w(i, y, a), $ = r.lastElementChild;
1260
- return F ? $.className = $.className.replace("undroppable", "") : $.className.includes("undroppable") || ($.className += " undroppable"), F;
1258
+ accepts(o, y, a) {
1259
+ const O = w(o, y, a), $ = i.lastElementChild;
1260
+ return O ? $.className = $.className.replace("undroppable", "") : $.className.includes("undroppable") || ($.className += " undroppable"), O;
1261
1261
  }
1262
- }).on("over", (i, y) => {
1262
+ }).on("over", (o, y) => {
1263
1263
  y.className += " drag-over";
1264
- }).on("out", (i, y) => {
1264
+ }).on("out", (o, y) => {
1265
1265
  y.className = y.className.replace("drag-over", "").replace(" ", "");
1266
- }).on("drop", (i, y, a, F) => {
1267
- O(i, y, a, F);
1268
- }).on("dragend", (i, y) => {
1269
- g(i, y);
1266
+ }).on("drop", (o, y, a, O) => {
1267
+ F(o, y, a, O);
1268
+ }).on("dragend", (o, y) => {
1269
+ g(o, y);
1270
1270
  }));
1271
1271
  }
1272
- function S(r, i) {
1273
- if (!r)
1272
+ function S(i, o) {
1273
+ if (!i)
1274
1274
  return;
1275
- if (i.noDragDrop)
1276
- return r;
1277
- const y = r.querySelector(`[data-dragref='${i.id}-container']`) || r;
1275
+ if (o.noDragDrop)
1276
+ return i;
1277
+ const y = i.querySelector(`[data-dragref='${o.id}-container']`) || i;
1278
1278
  z && y && z.containers.push(y);
1279
1279
  }
1280
- function f() {
1280
+ function d() {
1281
1281
  if (!z)
1282
1282
  return;
1283
- const r = document.getElementsByClassName("controlCategory");
1284
- r && (z.containers = z.containers.filter(
1285
- (i) => !i.className.includes("controlCategory")
1286
- ), Array.from(r).forEach((i) => {
1287
- z.containers.push(i);
1283
+ const i = document.getElementsByClassName("controlCategory");
1284
+ i && (z.containers = z.containers.filter(
1285
+ (o) => !o.className.includes("controlCategory")
1286
+ ), Array.from(i).forEach((o) => {
1287
+ z.containers.push(o);
1288
1288
  }));
1289
1289
  }
1290
- return { attachComponents: S, attachToolbox: f, initializeDragula: d };
1290
+ return { attachComponents: S, attachToolbox: d, initializeDragula: f };
1291
1291
  }
1292
1292
  const Nn = {
1293
1293
  id: { type: String, default: "" },
@@ -1305,9 +1305,9 @@ const Nn = {
1305
1305
  modelValue: { type: Object },
1306
1306
  ignore: { type: Boolean, default: !1 }
1307
1307
  }, M = {}, _ = {}, k = {};
1308
- let et = !1;
1308
+ let tt = !1;
1309
1309
  function Dn() {
1310
- et || (et = !0, xt.registerDesigner(M, _, k), Ct.registerDesigner(M, _, k), bt.registerDesigner(M, _, k), wt.registerDesigner(M, _, k), Pt.registerDesigner(M, _, k), It.registerDesigner(M, _, k), St.registerDesigner(M, _, k), Tt.registerDesigner(M, _, k), Et.registerDesigner(M, _, k), Ot.registerDesigner(M, _, k), Ft.registerDesigner(M, _, k), At.registerDesigner(M, _, k), Nt.registerDesigner(M, _, k), Dt.registerDesigner(M, _, k), Mt.registerDesigner(M, _, k), Bt.registerDesigner(M, _), _t.registerDesigner(M, _, k), Lt.registerDesigner(M, _, k), kt.registerDesigner(M, _, k), Rt.registerDesigner(M, _, k), Xt.registerDesigner(M, _, k), Vt.registerDesigner(M, _, k), Yt.registerDesigner(M, _, k), $t.registerDesigner(M, _, k), zt.registerDesigner(M, _, k), jt.registerDesigner(M, _, k), Ut.registerDesigner(M, _, k), Ht.registerDesigner(M, _, k), Wt.registerDesigner(M, _, k), qt.registerDesigner(M, _, k), Gt.registerDesigner(M, _, k), Kt.registerDesigner(M, _, k), Qt.registerDesigner(M, _, k), en.registerDesigner(M, _, k), tn.registerDesigner(M, _, k), Zt.registerDesigner(M, _, k), Jt.registerDesigner(M, _, k), nn.registerDesigner(M, _, k), on.registerDesigner(M, _, k), rn.registerDesigner(M, _, k), sn.registerDesigner(M, _, k), an.registerDesigner(M, _, k), cn.registerDesigner(M, _, k), ln.registerDesigner(M, _, k), un.registerDesigner(M, _, k), fn.registerDesigner(M, _, k), yn.registerDesigner(M, _, k), dn.registerDesigner(M, _, k), pn.registerDesigner(M, _, k), mn.registerDesigner(M, _, k), vn.registerDesigner(M, _, k), gn.registerDesigner(M, _, k), hn.registerDesigner(M, _), Cn.registerDesigner(M, _, k), xn.registerDesigner(M, _, k), bn.registerDesigner(M, _, k));
1310
+ tt || (tt = !0, bt.registerDesigner(M, _, k), Ct.registerDesigner(M, _, k), xt.registerDesigner(M, _, k), wt.registerDesigner(M, _, k), Pt.registerDesigner(M, _, k), It.registerDesigner(M, _, k), St.registerDesigner(M, _, k), Tt.registerDesigner(M, _, k), Ot.registerDesigner(M, _, k), Et.registerDesigner(M, _, k), Ft.registerDesigner(M, _, k), At.registerDesigner(M, _, k), Nt.registerDesigner(M, _, k), Dt.registerDesigner(M, _, k), Mt.registerDesigner(M, _, k), Bt.registerDesigner(M, _), _t.registerDesigner(M, _, k), Lt.registerDesigner(M, _, k), kt.registerDesigner(M, _, k), Rt.registerDesigner(M, _, k), Xt.registerDesigner(M, _, k), Vt.registerDesigner(M, _, k), Yt.registerDesigner(M, _, k), $t.registerDesigner(M, _, k), zt.registerDesigner(M, _, k), jt.registerDesigner(M, _, k), Ut.registerDesigner(M, _, k), Ht.registerDesigner(M, _, k), Wt.registerDesigner(M, _, k), qt.registerDesigner(M, _, k), Gt.registerDesigner(M, _, k), Kt.registerDesigner(M, _, k), Qt.registerDesigner(M, _, k), en.registerDesigner(M, _, k), tn.registerDesigner(M, _, k), Zt.registerDesigner(M, _, k), Jt.registerDesigner(M, _, k), nn.registerDesigner(M, _, k), on.registerDesigner(M, _, k), rn.registerDesigner(M, _, k), sn.registerDesigner(M, _, k), an.registerDesigner(M, _, k), cn.registerDesigner(M, _, k), ln.registerDesigner(M, _, k), un.registerDesigner(M, _, k), fn.registerDesigner(M, _, k), yn.registerDesigner(M, _, k), dn.registerDesigner(M, _, k), pn.registerDesigner(M, _, k), mn.registerDesigner(M, _, k), vn.registerDesigner(M, _, k), gn.registerDesigner(M, _, k), hn.registerDesigner(M, _), Cn.registerDesigner(M, _, k), bn.registerDesigner(M, _, k), xn.registerDesigner(M, _, k));
1311
1311
  }
1312
1312
  const Bn = {
1313
1313
  id: { type: String }
@@ -1315,7 +1315,7 @@ const Bn = {
1315
1315
  name: "FDesignerPlaceholder",
1316
1316
  props: Bn,
1317
1317
  emits: [],
1318
- setup(D) {
1318
+ setup(B) {
1319
1319
  const z = Te(() => ({
1320
1320
  "drag-and-drop-alert": !0,
1321
1321
  "no-drag": !0,
@@ -1342,70 +1342,70 @@ const Bn = {
1342
1342
  }, [gt("拖拽组件到这里")]);
1343
1343
  }
1344
1344
  });
1345
- function _n(D) {
1346
- return typeof D == "function" || Object.prototype.toString.call(D) === "[object Object]" && !ht(D);
1345
+ function _n(B) {
1346
+ return typeof B == "function" || Object.prototype.toString.call(B) === "[object Object]" && !ht(B);
1347
1347
  }
1348
- const ze = /* @__PURE__ */ Fe({
1348
+ const Ue = /* @__PURE__ */ Fe({
1349
1349
  name: "FDesignerItem",
1350
1350
  props: Nn,
1351
1351
  emits: ["selectionChange"],
1352
- setup(D, z) {
1353
- const I = H(`${D.modelValue.id}-component`), w = H(D.canMove), B = H(D.canDelete), g = H(!1), C = H(D.modelValue), b = H(D.componentId || ""), p = H(""), T = H(""), O = H(D.customClass), d = H(), S = me("canvas-dragula"), f = H(), r = me("design-item-context"), i = {
1354
- designerItemElementRef: d,
1355
- componentInstance: f,
1352
+ setup(B, z) {
1353
+ const I = H(`${B.modelValue.id}-component`), w = H(B.canMove), N = H(B.canDelete), g = H(!1), C = H(B.modelValue), x = H(B.componentId || ""), p = H(""), T = H(""), F = H(B.customClass), f = H(), S = me("canvas-dragula"), d = H(), i = me("design-item-context"), o = {
1354
+ designerItemElementRef: f,
1355
+ componentInstance: d,
1356
1356
  schema: C.value,
1357
- parent: r,
1357
+ parent: i,
1358
1358
  setupContext: z
1359
1359
  };
1360
- Ee("design-item-context", i);
1360
+ Oe("design-item-context", o);
1361
1361
  const y = me("useFormSchema"), a = Te(() => {
1362
- const u = D.modelValue.appearance && D.modelValue.appearance.class || "";
1363
- let A = {
1362
+ const c = B.modelValue.appearance && B.modelValue.appearance.class || "";
1363
+ let E = {
1364
1364
  "farris-component": !0,
1365
1365
  // 受position-relative影响,整个容器的高度不能被撑起
1366
1366
  "flex-fill": C.value.id == "root-component",
1367
- "position-relative": w.value && B.value,
1367
+ "position-relative": w.value && N.value,
1368
1368
  "farris-nested": g.value,
1369
1369
  "can-move": w.value,
1370
- "d-none": d.value && d.value.classList.contains("d-none"),
1371
- dgComponentSelected: d.value && d.value.classList.contains("dgComponentSelected"),
1372
- dgComponentFocused: d.value && d.value.classList.contains("dgComponentFocused")
1370
+ "d-none": f.value && f.value.classList.contains("d-none"),
1371
+ dgComponentSelected: f.value && f.value.classList.contains("dgComponentSelected"),
1372
+ dgComponentFocused: f.value && f.value.classList.contains("dgComponentFocused")
1373
1373
  };
1374
- return A[`farris-component-${C.value.type}`] = !0, A = je(A, u), A = je(A, T.value), A = je(A, O.value), A;
1375
- }), F = Te(() => {
1376
- const u = {}, A = D.modelValue.appearance && D.modelValue.appearance.style || "";
1377
- return A && A.split(";").reduce((e, t) => {
1378
- const [c, v] = t.split(":");
1379
- return e[c] = v, e;
1380
- }, u), p.value && p.value.split(";").reduce((e, t) => {
1381
- const [c, v] = t.split(":");
1382
- return c && (e[c] = v), e;
1383
- }, u), u;
1374
+ return E[`farris-component-${C.value.type}`] = !0, E = je(E, c), E = je(E, T.value), E = je(E, F.value), E;
1375
+ }), O = Te(() => {
1376
+ const c = {}, E = B.modelValue.appearance && B.modelValue.appearance.style || "";
1377
+ return E && E.split(";").reduce((e, t) => {
1378
+ const [u, v] = t.split(":");
1379
+ return e[u] = v, e;
1380
+ }, c), p.value && p.value.split(";").reduce((e, t) => {
1381
+ const [u, v] = t.split(":");
1382
+ return u && (e[u] = v), e;
1383
+ }, c), c;
1384
1384
  });
1385
- function $(u, A) {
1386
- var c, v, s;
1387
- if (u && (u.preventDefault(), u.stopPropagation()), f.value.triggerBelongedComponentToDeleteWhenDeleted) {
1388
- const n = f.value.getBelongedComponentInstance(f);
1385
+ function $(c, E) {
1386
+ var u, v, s;
1387
+ if (c && (c.preventDefault(), c.stopPropagation()), d.value.triggerBelongedComponentToDeleteWhenDeleted) {
1388
+ const n = d.value.getBelongedComponentInstance(d);
1389
1389
  if (n && n.parent) {
1390
1390
  const j = H(n == null ? void 0 : n.parent), L = j.value.contents.findIndex((ee) => ee.id === n.schema.id);
1391
- (v = (c = j.value) == null ? void 0 : c.contents) == null || v.splice(L, 1), (s = j.value) == null || s.updateDragAndDropRules(), Oe.value++;
1391
+ (v = (u = j.value) == null ? void 0 : u.contents) == null || v.splice(L, 1), (s = j.value) == null || s.updateDragAndDropRules(), Ee.value++;
1392
1392
  }
1393
1393
  return;
1394
1394
  }
1395
- let e = r, t = (n) => n.id === A.id;
1396
- if (A.type === "component" && (e = r == null ? void 0 : r.parent, t = (n) => n.component === A.id), e && e.schema.contents) {
1395
+ let e = i, t = (n) => n.id === E.id;
1396
+ if (E.type === "component" && (e = i == null ? void 0 : i.parent, t = (n) => n.component === E.id), e && e.schema.contents) {
1397
1397
  const n = e.schema.contents.findIndex(t);
1398
- e.schema.contents.splice(n, 1), e.componentInstance.value.updateDragAndDropRules(), Oe.value++, z.emit("selectionChange");
1398
+ e.schema.contents.splice(n, 1), e.componentInstance.value.updateDragAndDropRules(), Ee.value++, z.emit("selectionChange");
1399
1399
  }
1400
1400
  }
1401
- function R(u) {
1402
- return B.value && J("div", {
1401
+ function R(c) {
1402
+ return N.value && J("div", {
1403
1403
  role: "button",
1404
1404
  class: "btn component-settings-button",
1405
1405
  title: "删除",
1406
1406
  ref: "removeComponent",
1407
- onClick: (A) => {
1408
- $(A, u);
1407
+ onClick: (E) => {
1408
+ $(E, c);
1409
1409
  }
1410
1410
  }, [J("i", {
1411
1411
  class: "f-icon f-icon-yxs_delete"
@@ -1422,53 +1422,53 @@ const ze = /* @__PURE__ */ Fe({
1422
1422
  class: "cmp_move f-icon f-icon-yxs_move"
1423
1423
  }, null)]);
1424
1424
  }
1425
- function E() {
1426
- return D.customButtons && !!D.customButtons.length && D.customButtons.map((u) => J("div", {
1425
+ function A() {
1426
+ return B.customButtons && !!B.customButtons.length && B.customButtons.map((c) => J("div", {
1427
1427
  role: "button",
1428
- class: `btn component-settings-button ${u.class || ""}`,
1429
- title: u.title,
1430
- ref: u.id
1428
+ class: `btn component-settings-button ${c.class || ""}`,
1429
+ title: c.title,
1430
+ ref: c.id
1431
1431
  }, [J("i", {
1432
- class: u.icon
1432
+ class: c.icon
1433
1433
  }, null)]));
1434
1434
  }
1435
- function U(u) {
1435
+ function U(c) {
1436
1436
  return J("div", {
1437
1437
  class: "component-btn-group",
1438
1438
  "data-noattach": "true"
1439
- }, [J("div", null, [R(u), l(), E()])]);
1439
+ }, [J("div", null, [R(c), l(), A()])]);
1440
1440
  }
1441
- function Y(u, A, e, t) {
1442
- z.emit("selectionChange", u, A, e, t);
1441
+ function Y(c, E, e, t) {
1442
+ z.emit("selectionChange", c, E, e, t);
1443
1443
  }
1444
- function re(u) {
1445
- let A;
1446
- const e = u.type, t = M[e], c = _[e], v = c ? c(u) : {};
1447
- v.customClass = D.ignore ? v.customClass : "", v.componentId = b.value;
1448
- const s = u.contents && u.contents.length === 0;
1449
- return u.contents && !!u.contents.length && t ? J(t, $e({
1450
- ref: f
1451
- }, v), _n(A = u.contents.map((j) => J(ze, {
1444
+ function re(c) {
1445
+ let E;
1446
+ const e = c.type, t = M[e], u = _[e], v = u ? u(c) : {};
1447
+ v.customClass = B.ignore ? v.customClass : "", v.componentId = x.value;
1448
+ const s = c.contents && c.contents.length === 0;
1449
+ return c.contents && !!c.contents.length && t ? J(t, $e({
1450
+ ref: d
1451
+ }, v), _n(E = c.contents.map((j) => J(Ue, {
1452
1452
  key: j.id,
1453
1453
  modelValue: j,
1454
1454
  "onUpdate:modelValue": (L) => j = L,
1455
- componentId: b.value,
1455
+ componentId: x.value,
1456
1456
  onSelectionChange: Y
1457
- }, null))) ? A : {
1458
- default: () => [A]
1457
+ }, null))) ? E : {
1458
+ default: () => [E]
1459
1459
  }) : t ? s ? J(t, $e({
1460
- ref: f
1460
+ ref: d
1461
1461
  }, v), {
1462
1462
  default: () => [J(Mn, null, null)]
1463
1463
  }) : J(t, $e({
1464
- ref: f
1464
+ ref: d
1465
1465
  }, v), null) : J("div", null, null);
1466
1466
  }
1467
- function Q(u) {
1468
- if (u.type === "component-ref") {
1469
- let e = y == null ? void 0 : y.getFormSchema().module.components.find((t) => t.id === u.component);
1467
+ function Q(c) {
1468
+ if (c.type === "component-ref") {
1469
+ let e = y == null ? void 0 : y.getFormSchema().module.components.find((t) => t.id === c.component);
1470
1470
  if (e)
1471
- return J(ze, {
1471
+ return J(Ue, {
1472
1472
  key: e.id,
1473
1473
  modelValue: e,
1474
1474
  "onUpdate:modelValue": (t) => e = t,
@@ -1477,52 +1477,54 @@ const ze = /* @__PURE__ */ Fe({
1477
1477
  }, null);
1478
1478
  }
1479
1479
  }
1480
- Ue(() => D.modelValue, (u) => {
1481
- C.value = u, I.value = `${u.id}-component`;
1480
+ He(() => B.modelValue, (c) => {
1481
+ C.value = c, I.value = `${c.id}-component`;
1482
1482
  });
1483
- function m(u) {
1484
- const A = u.target;
1485
- tt(A);
1483
+ function m(c) {
1484
+ const E = c == null ? void 0 : c.target;
1485
+ ze(E);
1486
1486
  }
1487
1487
  function G() {
1488
- var u, A;
1489
- (A = (u = C.value) == null ? void 0 : u.contents) != null && A.length && d.value && d.value.addEventListener("scroll", m);
1488
+ var c, E;
1489
+ (E = (c = C.value) == null ? void 0 : c.contents) != null && E.length && f.value && f.value.addEventListener("scroll", m);
1490
1490
  }
1491
- He(() => {
1492
- if (d.value && f.value && f.value.schema) {
1493
- const u = d.value.querySelector(`[data-dragref='${f.value.schema.id}-container']`);
1494
- S && u && S.attachComponents(u, C.value), g.value = f.value.canNested !== void 0 ? f.value.canNested : g.value, B.value = f.value.canDelete !== void 0 ? f.value.canDelete : B.value, w.value = f.value.canMove !== void 0 ? f.value.canMove : w.value, p.value = f.value.styles || "", T.value = f.value.designerClass || "", d.value && (d.value.componentInstance = f, d.value.designItemContext = i);
1491
+ We(() => {
1492
+ if (f.value && d.value && d.value.schema) {
1493
+ const c = f.value.querySelector(`[data-dragref='${d.value.schema.id}-container']`);
1494
+ S && c && S.attachComponents(c, C.value), g.value = d.value.canNested !== void 0 ? d.value.canNested : g.value, N.value = d.value.canDelete !== void 0 ? d.value.canDelete : N.value, w.value = d.value.canMove !== void 0 ? d.value.canMove : w.value, p.value = d.value.styles || "", T.value = d.value.designerClass || "", f.value && (f.value.componentInstance = d, f.value.designItemContext = o), d.value.belongedComponentId = x.value;
1495
1495
  }
1496
- G(), Oe.value++;
1496
+ G(), Ee.value++;
1497
1497
  }), yt(() => {
1498
- d.value && d.value.removeEventListener("scroll", m);
1498
+ f.value && f.value.removeEventListener("scroll", m);
1499
1499
  });
1500
- function Z(u) {
1501
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((e) => e.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
1502
- const A = d.value;
1503
- if (A) {
1504
- const e = document.getElementsByClassName("dgComponentSelected");
1505
- if (!(e && e.length === 1 && e[0] === d.value) && (Array.from(e).forEach((c) => c.classList.remove("dgComponentSelected")), A.classList.add("dgComponentFocused"), z.emit("selectionChange", C.value.type, C.value, b.value, f.value), f.value.getDraggableDesignItemElement)) {
1506
- const c = f.value.getDraggableDesignItemElement(i);
1507
- c && c.value && c.value.classList.add("dgComponentSelected");
1508
- }
1500
+ function Z(c) {
1501
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((t) => t.classList.remove("dgComponentFocused")), c && (c.preventDefault(), c.stopPropagation());
1502
+ let E = o.designerItemElementRef;
1503
+ const e = f.value;
1504
+ if (e) {
1505
+ const t = document.getElementsByClassName("dgComponentSelected");
1506
+ t && t.length === 1 && t[0] === f.value || (Array.from(t).forEach((v) => v.classList.remove("dgComponentSelected")), e.classList.add("dgComponentFocused"), z.emit("selectionChange", C.value.type, C.value, x.value, d.value), d.value.getDraggableDesignItemElement && (E = d.value.getDraggableDesignItemElement(o), E && E.value && E.value.classList.add("dgComponentSelected")));
1509
1507
  }
1510
- m(u);
1508
+ m({
1509
+ target: E == null ? void 0 : E.value
1510
+ });
1511
1511
  }
1512
1512
  return () => C.value.type === "component-ref" ? Q(C.value) : J("div", {
1513
1513
  id: `${C.value.id}-design-item`,
1514
- ref: d,
1514
+ ref: f,
1515
1515
  class: a.value,
1516
- style: F.value,
1516
+ style: O.value,
1517
1517
  onClick: Z
1518
1518
  }, [U(C.value), re(C.value)]);
1519
1519
  }
1520
1520
  }), Ln = /* @__PURE__ */ Fe({
1521
1521
  name: "FDesignerCanvas",
1522
- props: En,
1522
+ props: On,
1523
1523
  emits: ["init", "selectionChange", "canvasChanged"],
1524
- setup(D, z) {
1525
- const I = H(), w = H(), B = H(), g = H(), C = H(), b = H(D.componentId), p = {
1524
+ setup(B, z) {
1525
+ const I = H(), w = H(), N = H(), g = H(), C = H(), x = H(B.componentId);
1526
+ let p, T;
1527
+ const F = {
1526
1528
  eventsEditorUtils: me("eventsEditorUtils"),
1527
1529
  formSchemaUtils: me("useFormSchema"),
1528
1530
  formMetadataConverter: me("formMetadataConverter"),
@@ -1531,84 +1533,91 @@ const ze = /* @__PURE__ */ Fe({
1531
1533
  metadataService: me("Meatdata_Http_Service_Token"),
1532
1534
  schemaService: me("schemaService")
1533
1535
  };
1534
- Ee("designer-host-service", p);
1535
- const T = An(p);
1536
- Dn(), Ee("canvas-dragula", T), Ee("design-item-context", {
1536
+ Oe("designer-host-service", F);
1537
+ const f = An(F);
1538
+ Dn(), Oe("canvas-dragula", f), Oe("design-item-context", {
1537
1539
  designerItemElementRef: g,
1538
1540
  componentInstance: C,
1539
1541
  schema: w.value,
1540
1542
  parent: void 0
1541
1543
  });
1542
- const O = Te(() => ({
1544
+ const S = Te(() => ({
1543
1545
  "d-flex": !0,
1544
1546
  "flex-fill": !0,
1545
1547
  "flex-column": !0
1546
1548
  }));
1547
- He(() => {
1548
- B.value && T.initializeDragula(B.value), I.value = D.modelValue, z.emit("init", T);
1549
- }), Ue(Oe, () => {
1550
- tt(B.value), z.emit("canvasChanged");
1549
+ We(() => {
1550
+ N.value && f.initializeDragula(N.value), I.value = B.modelValue, z.emit("init", f), d();
1551
+ }), He(Ee, () => {
1552
+ ze(N.value), z.emit("canvasChanged");
1551
1553
  }, {
1552
1554
  flush: "post"
1553
1555
  });
1554
- function d(S, f, r, i) {
1555
- z.emit("selectionChange", S, f, r, i);
1556
+ function d() {
1557
+ p = new ResizeObserver(() => {
1558
+ T && clearTimeout(T), T = setTimeout(() => {
1559
+ ze(N.value);
1560
+ });
1561
+ }), p.observe(N.value);
1562
+ }
1563
+ function i(o, y, a, O) {
1564
+ z.emit("selectionChange", o, y, a, O);
1556
1565
  }
1557
1566
  return () => J("div", {
1558
1567
  class: "editorDiv flex-fill h-100"
1559
1568
  }, [J("div", {
1560
1569
  class: "editorPanel d-flex flex-fill flex-column PC"
1561
1570
  }, [J("div", {
1562
- ref: B,
1563
- class: O.value
1564
- }, [I.value && J(ze, {
1571
+ ref: N,
1572
+ class: S.value
1573
+ }, [I.value && J(Ue, {
1565
1574
  modelValue: I.value,
1566
- "onUpdate:modelValue": (S) => I.value = S,
1567
- onSelectionChange: d,
1568
- componentId: b.value
1575
+ "onUpdate:modelValue": (o) => I.value = o,
1576
+ onSelectionChange: i,
1577
+ componentId: x.value
1569
1578
  }, null)])])]);
1570
1579
  }
1571
1580
  }), kn = /* @__PURE__ */ Fe({
1572
1581
  name: "FFlowNodeItem",
1573
1582
  props: Sn,
1574
1583
  emits: [],
1575
- setup(D, z) {
1576
- const I = H(D.id), w = H(D.modelValue), B = H(), g = me("use-drawing-bezier-composition"), {
1584
+ setup(B, z) {
1585
+ const I = H(B.id), w = H(B.modelValue), N = H(), g = me("use-drawing-bezier-composition"), {
1577
1586
  drawFrom: C,
1578
- eraseDrawingLine: b,
1587
+ eraseDrawingLine: x,
1579
1588
  finishToDraw: p,
1580
1589
  getAncherPointPosition: T,
1581
- isAncherPoint: O
1582
- } = g, d = me("use-bezier-curve-composition"), {
1590
+ isAncherPoint: F
1591
+ } = g, f = me("use-bezier-curve-composition"), {
1583
1592
  connect: S
1584
- } = d, f = me("use-connections-composition"), {
1585
- addConnection: r,
1586
- getConnectionsOfNode: i
1587
- } = f;
1588
- new Map(D.connection);
1593
+ } = f, d = me("use-connections-composition"), {
1594
+ addConnection: i,
1595
+ getConnectionsOfNode: o
1596
+ } = d;
1597
+ new Map(B.connection);
1589
1598
  const y = Te(() => ({
1590
- left: `${D.x}px`,
1591
- top: `${D.y}px`
1599
+ left: `${B.x}px`,
1600
+ top: `${B.y}px`
1592
1601
  }));
1593
- function a(l, E) {
1594
- if (O(l) && O(E)) {
1595
- const U = T(l), Y = T(E);
1596
- S(l.id, E.id, U, Y);
1597
- const re = l.id, Q = E.id, m = re.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0], G = Q.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0];
1598
- r(m, re, G, Q);
1602
+ function a(l, A) {
1603
+ if (F(l) && F(A)) {
1604
+ const U = T(l), Y = T(A);
1605
+ S(l.id, A.id, U, Y);
1606
+ const re = l.id, Q = A.id, m = re.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0], G = Q.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0];
1607
+ i(m, re, G, Q);
1599
1608
  }
1600
1609
  }
1601
- function F(l) {
1602
- var E;
1603
- document.removeEventListener("mouseup", F), p(l), b(`${(E = B.value) == null ? void 0 : E.id}_curve_to`), a(B.value, l.target);
1610
+ function O(l) {
1611
+ var A;
1612
+ document.removeEventListener("mouseup", O), p(l), x(`${(A = N.value) == null ? void 0 : A.id}_curve_to`), a(N.value, l.target);
1604
1613
  }
1605
- function $(l, E) {
1606
- B.value = document.getElementById(l), C(l, E), document.addEventListener("mouseup", F), E.stopPropagation();
1614
+ function $(l, A) {
1615
+ N.value = document.getElementById(l), C(l, A), document.addEventListener("mouseup", O), A.stopPropagation();
1607
1616
  }
1608
- Ue([() => D.x, () => D.y], () => {
1609
- const l = i(I.value);
1610
- l.length && l.forEach((E) => {
1611
- const U = document.getElementById(E.from), Y = document.getElementById(E.to);
1617
+ He([() => B.x, () => B.y], () => {
1618
+ const l = o(I.value);
1619
+ l.length && l.forEach((A) => {
1620
+ const U = document.getElementById(A.from), Y = document.getElementById(A.to);
1612
1621
  U && Y && a(U, Y);
1613
1622
  });
1614
1623
  });
@@ -1645,32 +1654,32 @@ const ze = /* @__PURE__ */ Fe({
1645
1654
  }, null)]);
1646
1655
  }
1647
1656
  });
1648
- function Rn(D) {
1657
+ function Rn(B) {
1649
1658
  const z = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
1650
- function w(C, b) {
1659
+ function w(C, x) {
1651
1660
  const p = I.get(C) || [];
1652
1661
  p.filter(
1653
- (O) => b.from === O.from && b.to === O.to
1654
- ).length > 0 || (p.push(b), I.set(C, p));
1662
+ (F) => x.from === F.from && x.to === F.to
1663
+ ).length > 0 || (p.push(x), I.set(C, p));
1655
1664
  }
1656
- function B(C, b, p, T) {
1657
- const O = new Set(z.get(b) || []);
1658
- O.add(T), z.set(b, [...O]);
1659
- const d = { from: b, to: T, type: "Curve" };
1660
- w(C, d), w(p, d);
1665
+ function N(C, x, p, T) {
1666
+ const F = new Set(z.get(x) || []);
1667
+ F.add(T), z.set(x, [...F]);
1668
+ const f = { from: x, to: T, type: "Curve" };
1669
+ w(C, f), w(p, f);
1661
1670
  }
1662
1671
  function g(C) {
1663
1672
  return I.get(C) || [];
1664
1673
  }
1665
- return { addConnection: B, getConnectionsOfNode: g };
1674
+ return { addConnection: N, getConnectionsOfNode: g };
1666
1675
  }
1667
1676
  const Uo = /* @__PURE__ */ Fe({
1668
1677
  name: "FFlowCanvas",
1669
1678
  props: wn,
1670
1679
  emits: [],
1671
- setup(D, z) {
1672
- const I = H(), w = Pn(), B = In(w), g = Rn();
1673
- Ee("use-bezier-curve-composition", w), Ee("use-connections-composition", g), Ee("use-drawing-bezier-composition", B);
1680
+ setup(B, z) {
1681
+ const I = H(), w = Pn(), N = In(w), g = Rn();
1682
+ Oe("use-bezier-curve-composition", w), Oe("use-connections-composition", g), Oe("use-drawing-bezier-composition", N);
1674
1683
  const C = Te(() => ({
1675
1684
  transition: "transform 0.2s",
1676
1685
  "background-color": "#F2F3F5",
@@ -1678,19 +1687,19 @@ const Uo = /* @__PURE__ */ Fe({
1678
1687
  width: "100%",
1679
1688
  position: "relative"
1680
1689
  }));
1681
- He(() => {
1682
- I.value = D.modelValue;
1690
+ We(() => {
1691
+ I.value = B.modelValue;
1683
1692
  });
1684
- const b = H(), p = H(), T = H(), O = H(), d = H();
1685
- function S(i) {
1686
- const y = i.clientX - O.value, a = i.clientY - d.value;
1687
- b.value && b.value.position && (b.value.position.x = p.value + y, b.value.position.y = T.value + a);
1693
+ const x = H(), p = H(), T = H(), F = H(), f = H();
1694
+ function S(o) {
1695
+ const y = o.clientX - F.value, a = o.clientY - f.value;
1696
+ x.value && x.value.position && (x.value.position.x = p.value + y, x.value.position.y = T.value + a);
1688
1697
  }
1689
- function f() {
1690
- document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", f), b.value = void 0, O.value = void 0, d.value = void 0;
1698
+ function d() {
1699
+ document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", d), x.value = void 0, F.value = void 0, f.value = void 0;
1691
1700
  }
1692
- function r(i, y) {
1693
- b.value = i, p.value = i.position.x, T.value = i.position.y, O.value = y.clientX, d.value = y.clientY, document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
1701
+ function i(o, y) {
1702
+ x.value = o, p.value = o.position.x, T.value = o.position.y, F.value = y.clientX, f.value = y.clientY, document.addEventListener("mousemove", S), document.addEventListener("mouseup", d);
1694
1703
  }
1695
1704
  return () => J("div", {
1696
1705
  class: "f-flow-canvas editorDiv flex-fill h-100"
@@ -1698,13 +1707,13 @@ const Uo = /* @__PURE__ */ Fe({
1698
1707
  id: "svg-container",
1699
1708
  class: "f-struct-wrapper flex-fill",
1700
1709
  style: C.value
1701
- }, [I.value && I.value.contents.map((i) => J(kn, {
1702
- modelValue: i.content[0],
1703
- "onUpdate:modelValue": (y) => i.content[0] = y,
1704
- id: i.id,
1705
- x: i.position.x,
1706
- y: i.position.y,
1707
- onMousedown: (y) => r(i, y)
1710
+ }, [I.value && I.value.contents.map((o) => J(kn, {
1711
+ modelValue: o.content[0],
1712
+ "onUpdate:modelValue": (y) => o.content[0] = y,
1713
+ id: o.id,
1714
+ x: o.position.x,
1715
+ y: o.position.y,
1716
+ onMousedown: (y) => i(o, y)
1708
1717
  }, null))])]);
1709
1718
  }
1710
1719
  });