@farris/ui-vue 1.2.7 → 1.2.9

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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,704 +1,706 @@
1
- import { ref as H, defineComponent as Be, computed as ve, createVNode as J, createTextVNode as ht, inject as re, provide as ye, watch as Ge, onMounted as ze, onBeforeUnmount as yt, mergeProps as Ae, isVNode as Ct } from "vue";
2
- import { findIndex as Me, cloneDeep as Dt } from "lodash-es";
3
- import bt from "@farris/ui-vue/components/accordion";
4
- import wt from "@farris/ui-vue/components/avatar";
5
- import St from "@farris/ui-vue/components/button-edit";
6
- import Tt from "@farris/ui-vue/components/button-group";
7
- import Et from "@farris/ui-vue/components/calendar";
8
- import Ft from "@farris/ui-vue/components/capsule";
9
- import Pt from "@farris/ui-vue/components/checkbox";
10
- import It from "@farris/ui-vue/components/color-picker";
11
- import At from "@farris/ui-vue/components/combo-list";
12
- import Mt from "@farris/ui-vue/components/content-container";
13
- import Nt from "@farris/ui-vue/components/data-grid";
14
- import Bt from "@farris/ui-vue/components/date-picker";
15
- import xt from "@farris/ui-vue/components/dropdown";
16
- import kt from "@farris/ui-vue/components/dynamic-form";
17
- import _t from "@farris/ui-vue/components/external-container";
18
- import Ot from "@farris/ui-vue/components/events-editor";
19
- import Lt from "@farris/ui-vue/components/filter-bar";
20
- import Vt from "@farris/ui-vue/components/image-cropper";
21
- import jt from "@farris/ui-vue/components/input-group";
22
- import $t from "@farris/ui-vue/components/layout";
23
- import Ut from "@farris/ui-vue/components/list-nav";
24
- import qt from "@farris/ui-vue/components/list-view";
25
- import Ht from "@farris/ui-vue/components/lookup";
26
- import Xt from "@farris/ui-vue/components/nav";
27
- import Wt from "@farris/ui-vue/components/number-spinner";
28
- import Yt from "@farris/ui-vue/components/number-range";
29
- import Gt from "@farris/ui-vue/components/order";
30
- import zt from "@farris/ui-vue/components/page-header";
31
- import Jt from "@farris/ui-vue/components/page-footer";
32
- import Kt from "@farris/ui-vue/components/pagination";
33
- import Qt from "@farris/ui-vue/components/progress";
34
- import Zt from "@farris/ui-vue/components/query-solution";
35
- import Rt from "@farris/ui-vue/components/radio-group";
36
- import en from "@farris/ui-vue/components/rate";
37
- import tn from "@farris/ui-vue/components/response-toolbar";
38
- import nn from "@farris/ui-vue/components/response-layout";
39
- import on from "@farris/ui-vue/components/response-layout-editor";
40
- import rn from "@farris/ui-vue/components/search-box";
41
- import an from "@farris/ui-vue/components/section";
42
- import cn from "@farris/ui-vue/components/smoke-detector";
43
- import ln from "@farris/ui-vue/components/splitter";
44
- import un from "@farris/ui-vue/components/step";
45
- import sn from "@farris/ui-vue/components/switch";
46
- import fn from "@farris/ui-vue/components/tabs";
47
- import pn from "@farris/ui-vue/components/tags";
48
- import mn from "@farris/ui-vue/components/text";
49
- import dn from "@farris/ui-vue/components/time-picker";
50
- import vn from "@farris/ui-vue/components/transfer";
51
- import gn from "@farris/ui-vue/components/tree-view";
52
- import hn from "@farris/ui-vue/components/uploader";
53
- import yn from "@farris/ui-vue/components/verify-detail";
54
- import Cn from "@farris/ui-vue/components/weather";
55
- import Dn from "@farris/ui-vue/components/component";
56
- import bn from "@farris/ui-vue/components/video";
57
- import wn from "@farris/ui-vue/components/textarea";
58
- const de = H(0);
59
- function Sn(w, f) {
60
- const t = f.getBoundingClientRect(), D = w.getBoundingClientRect(), B = D.top >= t.top, l = D.top <= t.bottom;
61
- return B && l;
1
+ import { ref as X, defineComponent as xe, computed as ve, createVNode as z, createTextVNode as yt, inject as ae, provide as ye, watch as ze, onMounted as Je, onBeforeUnmount as Ct, mergeProps as Ae, isVNode as Dt } from "vue";
2
+ import { findIndex as Me, cloneDeep as bt } from "lodash-es";
3
+ import wt from "../accordion/index.esm.js";
4
+ import St from "../avatar/index.esm.js";
5
+ import Tt from "../button-edit/index.esm.js";
6
+ import Et from "../button-group/index.esm.js";
7
+ import Ft from "../calendar/index.esm.js";
8
+ import Pt from "../capsule/index.esm.js";
9
+ import It from "../checkbox/index.esm.js";
10
+ import At from "../color-picker/index.esm.js";
11
+ import Mt from "../combo-list/index.esm.js";
12
+ import Nt from "../content-container/index.esm.js";
13
+ import Bt from "../data-grid/index.esm.js";
14
+ import xt from "../date-picker/index.esm.js";
15
+ import kt from "../dropdown/index.esm.js";
16
+ import _t from "../dynamic-form/index.esm.js";
17
+ import Ot from "../external-container/index.esm.js";
18
+ import Lt from "../events-editor/index.esm.js";
19
+ import Vt from "../filter-bar/index.esm.js";
20
+ import jt from "../image-cropper/index.esm.js";
21
+ import $t from "../input-group/index.esm.js";
22
+ import Ut from "../layout/index.esm.js";
23
+ import qt from "../list-nav/index.esm.js";
24
+ import Ht from "../list-view/index.esm.js";
25
+ import Xt from "../lookup/index.esm.js";
26
+ import Wt from "../nav/index.esm.js";
27
+ import Yt from "../number-spinner/index.esm.js";
28
+ import Gt from "../number-range/index.esm.js";
29
+ import zt from "../order/index.esm.js";
30
+ import Jt from "../page-header/index.esm.js";
31
+ import Qt from "../page-footer/index.esm.js";
32
+ import Kt from "../pagination/index.esm.js";
33
+ import Zt from "../progress/index.esm.js";
34
+ import Rt from "../query-solution/index.esm.js";
35
+ import en from "../radio-group/index.esm.js";
36
+ import tn from "../rate/index.esm.js";
37
+ import nn from "../response-toolbar/index.esm.js";
38
+ import on from "../response-layout/index.esm.js";
39
+ import rn from "../response-layout-editor/index.esm.js";
40
+ import an from "../search-box/index.esm.js";
41
+ import cn from "../section/index.esm.js";
42
+ import ln from "../smoke-detector/index.esm.js";
43
+ import un from "../splitter/index.esm.js";
44
+ import sn from "../step/index.esm.js";
45
+ import fn from "../switch/index.esm.js";
46
+ import pn from "../tabs/index.esm.js";
47
+ import mn from "../tags/index.esm.js";
48
+ import dn from "../text/index.esm.js";
49
+ import vn from "../time-picker/index.esm.js";
50
+ import gn from "../transfer/index.esm.js";
51
+ import hn from "../tree-view/index.esm.js";
52
+ import yn from "../uploader/index.esm.js";
53
+ import Cn from "../verify-detail/index.esm.js";
54
+ import Dn from "../weather/index.esm.js";
55
+ import bn from "../component/index.esm.js";
56
+ import wn from "../video/index.esm.js";
57
+ import Sn from "../textarea/index.esm.js";
58
+ import Tn from "../tree-grid/index.esm.js";
59
+ import { getCustomClass as Ne } from "../common/index.esm.js";
60
+ const de = X(0);
61
+ function En(A, c) {
62
+ const t = c.getBoundingClientRect(), b = A.getBoundingClientRect(), I = b.top >= t.top, u = b.top <= t.bottom;
63
+ return I && u;
62
64
  }
63
- function Je(w) {
64
- if (!w)
65
+ function Qe(A) {
66
+ if (!A)
65
67
  return;
66
- let f;
67
- if (w.className.includes("dgComponentSelected") ? f = w : f = w.querySelector(".dgComponentSelected"), !f)
68
+ let c;
69
+ if (A.className.includes("dgComponentSelected") ? c = A : c = A.querySelector(".dgComponentSelected"), !c)
68
70
  return;
69
- const t = f.getBoundingClientRect();
71
+ const t = c.getBoundingClientRect();
70
72
  if (t.width === 0 && t.height === 0)
71
73
  return;
72
- const D = f.querySelector(".component-btn-group");
73
- if (D) {
74
- if (!Sn(f, w)) {
75
- D.style.display = "none";
74
+ const b = c.querySelector(".component-btn-group");
75
+ if (b) {
76
+ if (!En(c, A)) {
77
+ b.style.display = "none";
76
78
  return;
77
79
  }
78
- D.style.display = "";
79
- const l = D.getBoundingClientRect(), h = D.querySelector("div");
80
- if (h) {
81
- const T = h.getBoundingClientRect();
82
- h.style.top = l.top + "px", h.style.left = l.left - T.width + "px";
80
+ b.style.display = "";
81
+ const u = b.getBoundingClientRect(), m = b.querySelector("div");
82
+ if (m) {
83
+ const C = m.getBoundingClientRect();
84
+ m.style.top = u.top + "px", m.style.left = u.left - C.width + "px";
83
85
  }
84
86
  }
85
87
  }
86
- const Tn = {
88
+ const Fn = {
87
89
  /**
88
90
  * 组件值
89
91
  */
90
92
  modelValue: { type: Object, default: {} },
91
93
  componentId: { type: String, default: "" }
92
94
  };
93
- var le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
94
- function En(w) {
95
- return w && w.__esModule && Object.prototype.hasOwnProperty.call(w, "default") ? w.default : w;
95
+ var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
96
+ function Pn(A) {
97
+ return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
96
98
  }
97
- function he(w) {
98
- throw new Error('Could not dynamically require "' + w + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
99
+ function he(A) {
100
+ throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
99
101
  }
100
102
  var Ke = { exports: {} };
101
- (function(w, f) {
103
+ (function(A, c) {
102
104
  (function(t) {
103
- w.exports = t();
105
+ A.exports = t();
104
106
  })(function() {
105
107
  return (/* @__PURE__ */ function() {
106
- function t(D, B, l) {
107
- function h(x, b) {
108
- if (!B[x]) {
109
- if (!D[x]) {
110
- var C = typeof he == "function" && he;
111
- if (!b && C) return C(x, !0);
112
- if (T) return T(x, !0);
113
- var a = new Error("Cannot find module '" + x + "'");
114
- throw a.code = "MODULE_NOT_FOUND", a;
108
+ function t(b, I, u) {
109
+ function m(x, k) {
110
+ if (!I[x]) {
111
+ if (!b[x]) {
112
+ var s = typeof he == "function" && he;
113
+ if (!k && s) return s(x, !0);
114
+ if (C) return C(x, !0);
115
+ var y = new Error("Cannot find module '" + x + "'");
116
+ throw y.code = "MODULE_NOT_FOUND", y;
115
117
  }
116
- var e = B[x] = { exports: {} };
117
- D[x][0].call(e.exports, function(o) {
118
- var c = D[x][1][o];
119
- return h(c || o);
120
- }, e, e.exports, t, D, B, l);
118
+ var l = I[x] = { exports: {} };
119
+ b[x][0].call(l.exports, function(n) {
120
+ var o = b[x][1][n];
121
+ return m(o || n);
122
+ }, l, l.exports, t, b, I, u);
121
123
  }
122
- return B[x].exports;
124
+ return I[x].exports;
123
125
  }
124
- for (var T = typeof he == "function" && he, p = 0; p < l.length; p++) h(l[p]);
125
- return h;
126
+ for (var C = typeof he == "function" && he, p = 0; p < u.length; p++) m(u[p]);
127
+ return m;
126
128
  }
127
129
  return t;
128
130
  }())({
129
- 1: [function(t, D, B) {
130
- var l = {}, h = "(?:^|\\s)", T = "(?:\\s|$)";
131
- function p(C) {
132
- var a = l[C];
133
- return a ? a.lastIndex = 0 : l[C] = a = new RegExp(h + C + T, "g"), a;
131
+ 1: [function(t, b, I) {
132
+ var u = {}, m = "(?:^|\\s)", C = "(?:\\s|$)";
133
+ function p(s) {
134
+ var y = u[s];
135
+ return y ? y.lastIndex = 0 : u[s] = y = new RegExp(m + s + C, "g"), y;
134
136
  }
135
- function x(C, a) {
136
- var e = C.className;
137
- e.length ? p(a).test(e) || (C.className += " " + a) : C.className = a;
137
+ function x(s, y) {
138
+ var l = s.className;
139
+ l.length ? p(y).test(l) || (s.className += " " + y) : s.className = y;
138
140
  }
139
- function b(C, a) {
140
- C.className = C.className.replace(p(a), " ").trim();
141
+ function k(s, y) {
142
+ s.className = s.className.replace(p(y), " ").trim();
141
143
  }
142
- D.exports = {
144
+ b.exports = {
143
145
  add: x,
144
- rm: b
146
+ rm: k
145
147
  };
146
148
  }, {}],
147
- 2: [function(t, D, B) {
148
- (function(l) {
149
- var h = t("contra/emitter"), T = t("crossvent"), p = t("./classes"), x = document, b = x.documentElement;
150
- function C(r, j) {
151
- var s = arguments.length;
152
- s === 1 && Array.isArray(r) === !1 && (j = r, r = []);
153
- var v, E, k, z, Y, R, te, q, pe, ue = null, me, O, se = !1, fe = 0, K, M = j || {};
154
- M.moves === void 0 && (M.moves = V), M.accepts === void 0 && (M.accepts = V), M.invalid === void 0 && (M.invalid = ot), M.containers === void 0 && (M.containers = r || []), M.isContainer === void 0 && (M.isContainer = I), M.copy === void 0 && (M.copy = !1), M.copySortSource === void 0 && (M.copySortSource = !1), M.revertOnSpill === void 0 && (M.revertOnSpill = !1), M.removeOnSpill === void 0 && (M.removeOnSpill = !1), M.direction === void 0 && (M.direction = "vertical"), M.ignoreInputTextSelection === void 0 && (M.ignoreInputTextSelection = !0), M.mirrorContainer === void 0 && (M.mirrorContainer = x.body);
155
- var G = h({
149
+ 2: [function(t, b, I) {
150
+ (function(u) {
151
+ var m = t("contra/emitter"), C = t("crossvent"), p = t("./classes"), x = document, k = x.documentElement;
152
+ function s(r, U) {
153
+ var W = arguments.length;
154
+ W === 1 && Array.isArray(r) === !1 && (U = r, r = []);
155
+ var a, w, F, Y, J, Q, ee, L, ne, oe = null, fe, j, pe = !1, me = 0, K, M = U || {};
156
+ M.moves === void 0 && (M.moves = B), M.accepts === void 0 && (M.accepts = B), M.invalid === void 0 && (M.invalid = rt), M.containers === void 0 && (M.containers = r || []), M.isContainer === void 0 && (M.isContainer = d), M.copy === void 0 && (M.copy = !1), M.copySortSource === void 0 && (M.copySortSource = !1), M.revertOnSpill === void 0 && (M.revertOnSpill = !1), M.removeOnSpill === void 0 && (M.removeOnSpill = !1), M.direction === void 0 && (M.direction = "vertical"), M.ignoreInputTextSelection === void 0 && (M.ignoreInputTextSelection = !0), M.mirrorContainer === void 0 && (M.mirrorContainer = x.body);
157
+ var G = m({
156
158
  containers: M.containers,
157
- start: nt,
158
- end: Le,
159
- cancel: Ue,
160
- remove: $e,
161
- destroy: Ze,
162
- canMove: tt,
159
+ start: ot,
160
+ end: Ve,
161
+ cancel: qe,
162
+ remove: Ue,
163
+ destroy: Re,
164
+ canMove: nt,
163
165
  dragging: !1
164
166
  });
165
- return M.removeOnSpill === !0 && G.on("over", it).on("out", at), xe(), G;
166
- function Ce(n) {
167
- return G.containers.indexOf(n) !== -1 || M.isContainer(n);
167
+ return M.removeOnSpill === !0 && G.on("over", at).on("out", ct), ke(), G;
168
+ function Ce(e) {
169
+ return G.containers.indexOf(e) !== -1 || M.isContainer(e);
168
170
  }
169
- function xe(n) {
170
- var u = n ? "remove" : "add";
171
- o(b, u, "mousedown", Re), o(b, u, "mouseup", we);
171
+ function ke(e) {
172
+ var f = e ? "remove" : "add";
173
+ n(k, f, "mousedown", et), n(k, f, "mouseup", we);
172
174
  }
173
- function De(n) {
174
- var u = n ? "remove" : "add";
175
- o(b, u, "mousemove", et);
175
+ function De(e) {
176
+ var f = e ? "remove" : "add";
177
+ n(k, f, "mousemove", tt);
176
178
  }
177
- function ke(n) {
178
- var u = n ? "remove" : "add";
179
- T[u](b, "selectstart", _e), T[u](b, "click", _e);
179
+ function _e(e) {
180
+ var f = e ? "remove" : "add";
181
+ C[f](k, "selectstart", Oe), C[f](k, "click", Oe);
180
182
  }
181
- function Ze() {
182
- xe(!0), we({});
183
+ function Re() {
184
+ ke(!0), we({});
183
185
  }
184
- function _e(n) {
185
- me && n.preventDefault();
186
+ function Oe(e) {
187
+ fe && e.preventDefault();
186
188
  }
187
- function Re(n) {
188
- z = n.clientX, Y = n.clientY;
189
- var u = c(n) !== 1 || n.metaKey || n.ctrlKey;
190
- if (!u) {
191
- var d = n.target, N = be(d);
192
- N && (me = N, De(), n.type === "mousedown" && (i(d) ? d.focus() : n.preventDefault()));
189
+ function et(e) {
190
+ Y = e.clientX, J = e.clientY;
191
+ var f = o(e) !== 1 || e.metaKey || e.ctrlKey;
192
+ if (!f) {
193
+ var v = e.target, N = be(v);
194
+ N && (fe = N, De(), e.type === "mousedown" && (i(v) ? v.focus() : e.preventDefault()));
193
195
  }
194
196
  }
195
- function et(n) {
196
- if (me) {
197
- if (c(n) === 0) {
197
+ function tt(e) {
198
+ if (fe) {
199
+ if (o(e) === 0) {
198
200
  we({});
199
201
  return;
200
202
  }
201
- if (!(n.clientX !== void 0 && Math.abs(n.clientX - z) <= (M.slideFactorX || 0) && n.clientY !== void 0 && Math.abs(n.clientY - Y) <= (M.slideFactorY || 0))) {
203
+ if (!(e.clientX !== void 0 && Math.abs(e.clientX - Y) <= (M.slideFactorX || 0) && e.clientY !== void 0 && Math.abs(e.clientY - J) <= (M.slideFactorY || 0))) {
202
204
  if (M.ignoreInputTextSelection) {
203
- var u = L("clientX", n) || 0, d = L("clientY", n) || 0, N = x.elementFromPoint(u, d);
205
+ var f = V("clientX", e) || 0, v = V("clientY", e) || 0, N = x.elementFromPoint(f, v);
204
206
  if (i(N))
205
207
  return;
206
208
  }
207
- var $ = me;
208
- De(!0), ke(), Le(), Oe($), p.add(q || k, "gu-transit"), lt(), ct(), fe = 0, Ee(n);
209
+ var q = fe;
210
+ De(!0), _e(), Ve(), Le(q), p.add(L || F, "gu-transit"), ut(), lt(), me = 0, Ee(e);
209
211
  }
210
212
  }
211
213
  }
212
- function be(n) {
213
- if (!(G.dragging && v) && !Ce(n)) {
214
- for (var u = n; y(n) && Ce(y(n)) === !1; )
215
- if (M.invalid(n, u) || (n = y(n), !n))
214
+ function be(e) {
215
+ if (!(G.dragging && a) && !Ce(e)) {
216
+ for (var f = e; D(e) && Ce(D(e)) === !1; )
217
+ if (M.invalid(e, f) || (e = D(e), !e))
216
218
  return;
217
- var d = y(n);
218
- if (d && !M.invalid(n, u)) {
219
- var N = M.moves(n, d, u, m(n));
219
+ var v = D(e);
220
+ if (v && !M.invalid(e, f)) {
221
+ var N = M.moves(e, v, f, h(e));
220
222
  if (N)
221
223
  return {
222
- item: n,
223
- source: d
224
+ item: e,
225
+ source: v
224
226
  };
225
227
  }
226
228
  }
227
229
  }
228
- function tt(n) {
229
- return !!be(n);
230
+ function nt(e) {
231
+ return !!be(e);
230
232
  }
231
- function nt(n) {
232
- var u = be(n);
233
- u && Oe(u);
233
+ function ot(e) {
234
+ var f = be(e);
235
+ f && Le(f);
234
236
  }
235
- function Oe(n) {
236
- gt(n.item, n.source) && (q = n.item.cloneNode(!0), G.emit("cloned", q, n.item, "copy")), E = n.source, k = n.item, R = te = m(n.item), G.dragging = !0, G.emit("drag", k, E);
237
+ function Le(e) {
238
+ ht(e.item, e.source) && (L = e.item.cloneNode(!0), G.emit("cloned", L, e.item, "copy")), w = e.source, F = e.item, Q = ee = h(e.item), G.dragging = !0, G.emit("drag", F, w);
237
239
  }
238
- function ot() {
240
+ function rt() {
239
241
  return !1;
240
242
  }
241
- function Le() {
243
+ function Ve() {
242
244
  if (G.dragging) {
243
- var n = q || k;
244
- je(n, y(n));
245
+ var e = L || F;
246
+ $e(e, D(e));
245
247
  }
246
248
  }
247
- function Ve() {
248
- me = !1, De(!0), ke(!0);
249
+ function je() {
250
+ fe = !1, De(!0), _e(!0);
249
251
  }
250
- function we(n) {
251
- if (Ve(), !!G.dragging) {
252
- var u = q || k, d = L("clientX", n) || 0, N = L("clientY", n) || 0, $ = g(v, d, N), U = qe($, d, N);
253
- U && (q && M.copySortSource || !q || U !== E) ? je(u, U) : M.removeOnSpill ? $e() : Ue();
252
+ function we(e) {
253
+ if (je(), !!G.dragging) {
254
+ var f = L || F, v = V("clientX", e) || 0, N = V("clientY", e) || 0, q = g(a, v, N), H = He(q, v, N);
255
+ H && (L && M.copySortSource || !L || H !== w) ? $e(f, H) : M.removeOnSpill ? Ue() : qe();
254
256
  }
255
257
  }
256
- function je(n, u) {
257
- var d = y(n);
258
- q && M.copySortSource && u === E && d.removeChild(k), Te(u) ? G.emit("cancel", n, E) : G.emit("drop", n, u, E, te), Se();
258
+ function $e(e, f) {
259
+ var v = D(e);
260
+ L && M.copySortSource && f === w && v.removeChild(F), Te(f) ? G.emit("cancel", e, w) : G.emit("drop", e, f, w, ee), Se();
259
261
  }
260
- function $e() {
262
+ function Ue() {
261
263
  if (G.dragging) {
262
- var n = q || k, u = y(n);
263
- u && u.removeChild(n), G.emit(q ? "cancel" : "remove", n, u, E), Se();
264
+ var e = L || F, f = D(e);
265
+ f && f.removeChild(e), G.emit(L ? "cancel" : "remove", e, f, w), Se();
264
266
  }
265
267
  }
266
- function Ue(n) {
268
+ function qe(e) {
267
269
  if (G.dragging) {
268
- var u = arguments.length > 0 ? n : M.revertOnSpill, d = q || k, N = y(d), $ = Te(N);
269
- $ === !1 && u && (q ? N && N.removeChild(q) : E.insertBefore(d, R)), $ || u ? G.emit("cancel", d, E, E) : G.emit("drop", d, N, E, te), Se();
270
+ var f = arguments.length > 0 ? e : M.revertOnSpill, v = L || F, N = D(v), q = Te(N);
271
+ q === !1 && f && (L ? N && N.removeChild(L) : w.insertBefore(v, Q)), q || f ? G.emit("cancel", v, w, w) : G.emit("drop", v, N, w, ee), Se();
270
272
  }
271
273
  }
272
274
  function Se() {
273
- var n = q || k;
274
- Ve(), ut(), st(), n && p.rm(n, "gu-transit"), pe && clearTimeout(pe), G.dragging = !1, ue && G.emit("out", n, ue, E), G.emit("dragend", n, fe), E = k = q = R = te = pe = ue = null;
275
+ var e = L || F;
276
+ je(), st(), ft(), e && p.rm(e, "gu-transit"), ne && clearTimeout(ne), G.dragging = !1, oe && G.emit("out", e, oe, w), G.emit("dragend", e, me), w = F = L = Q = ee = ne = oe = null;
275
277
  }
276
- function Te(n, u) {
277
- var d;
278
- return u !== void 0 ? d = u : v ? d = te : d = m(q || k), n === E && d === R;
278
+ function Te(e, f) {
279
+ var v;
280
+ return f !== void 0 ? v = f : a ? v = ee : v = h(L || F), e === w && v === Q;
279
281
  }
280
- function qe(n, u, d) {
281
- for (var N = n; N && !$(); )
282
- N = y(N);
282
+ function He(e, f, v) {
283
+ for (var N = e; N && !q(); )
284
+ N = D(N);
283
285
  return N;
284
- function $() {
285
- var U = Ce(N);
286
- if (U === !1)
286
+ function q() {
287
+ var H = Ce(N);
288
+ if (H === !1)
287
289
  return !1;
288
- var ie = He(N, n), ee = Xe(N, ie, u, d), oe = Te(N, ee);
289
- return oe ? !0 : M.accepts(k, N, E, ee);
290
+ var ce = Xe(N, e), te = We(N, ce, f, v), ie = Te(N, te);
291
+ return ie ? !0 : M.accepts(F, N, w, te);
290
292
  }
291
293
  }
292
- function Ee(n) {
293
- if (!v)
294
+ function Ee(e) {
295
+ if (!a)
294
296
  return;
295
- n.preventDefault();
296
- var u = L("clientX", n) || 0, d = L("clientY", n) || 0;
297
- v.style.left = u - 2 + "px", v.style.top = d - 2 + "px";
298
- var N = q || k, $ = g(v, u, d), U = qe($, u, d), ie = U !== null && U !== ue;
299
- (ie || U === null) && (ne(), ue = U, ce()), vt($, d);
300
- var ee = y(N);
301
- if (U === E && q && !M.copySortSource) {
302
- ee && ee.removeChild(N);
297
+ e.preventDefault();
298
+ var f = V("clientX", e) || 0, v = V("clientY", e) || 0;
299
+ a.style.left = f - 2 + "px", a.style.top = v - 2 + "px";
300
+ var N = L || F, q = g(a, f, v), H = He(q, f, v), ce = H !== null && H !== oe;
301
+ (ce || H === null) && (re(), oe = H, ue()), gt(q, v);
302
+ var te = D(N);
303
+ if (H === w && L && !M.copySortSource) {
304
+ te && te.removeChild(N);
303
305
  return;
304
306
  }
305
- var oe, ae = He(U, $);
306
- if (se = ft(ae, U), ae !== null)
307
- oe = Xe(U, ae, u, d);
308
- else if (M.revertOnSpill === !0 && !q)
309
- oe = R, U = E;
307
+ var ie, le = Xe(H, q);
308
+ if (pe = pt(le, H), le !== null)
309
+ ie = We(H, le, f, v);
310
+ else if (M.revertOnSpill === !0 && !L)
311
+ ie = Q, H = w;
310
312
  else {
311
- q && ee && ee.removeChild(N), q && O && (O.style.display = "none");
313
+ L && te && te.removeChild(N), L && j && (j.style.display = "none");
312
314
  return;
313
315
  }
314
- O.style.display = "block", rt(oe, N, ie), oe ? mt(ae, oe) : dt(U);
315
- function Q(Z) {
316
- G.emit(Z, N, ue, E);
316
+ j.style.display = "block", it(ie, N, ce), ie ? dt(le, ie) : vt(H);
317
+ function Z(R) {
318
+ G.emit(R, N, oe, w);
317
319
  }
318
- function ce() {
319
- ie && Q("over");
320
+ function ue() {
321
+ ce && Z("over");
320
322
  }
321
- function ne() {
322
- ue && Q("out");
323
+ function re() {
324
+ oe && Z("out");
323
325
  }
324
326
  }
325
- function rt(n, u, d) {
326
- (n === u || n === m(u)) && (te = m(u)), (n === null && d || n !== u && n !== m(u)) && (te = n);
327
+ function it(e, f, v) {
328
+ (e === f || e === h(f)) && (ee = h(f)), (e === null && v || e !== f && e !== h(f)) && (ee = e);
327
329
  }
328
- function it(n) {
329
- p.rm(n, "gu-hide");
330
+ function at(e) {
331
+ p.rm(e, "gu-hide");
330
332
  }
331
- function at(n) {
332
- G.dragging && p.add(n, "gu-hide");
333
- }
334
- function ct() {
335
- v || (v = document.createElement("div"), v.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;", v.innerHTML = M.getMirrorText && M.getMirrorText(k) || "控件", p.add(v, "gu-mirror"), M.mirrorContainer.appendChild(v), o(b, "add", "mousemove", Ee), p.add(M.mirrorContainer, "gu-unselectable"), G.emit("cloned", v, k, "mirror"));
333
+ function ct(e) {
334
+ G.dragging && p.add(e, "gu-hide");
336
335
  }
337
336
  function lt() {
338
- if (O = document.createElement("div"), p.add(O, "gu-insertion"), k) {
339
- var n = k.getBoundingClientRect();
340
- O.style.left = n.left + "px", O.style.top = n.top + "px";
341
- }
342
- se = !1, M.mirrorContainer.appendChild(O);
337
+ a || (a = document.createElement("div"), a.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;", a.innerHTML = M.getMirrorText && M.getMirrorText(F) || "控件", p.add(a, "gu-mirror"), M.mirrorContainer.appendChild(a), n(k, "add", "mousemove", Ee), p.add(M.mirrorContainer, "gu-unselectable"), G.emit("cloned", a, F, "mirror"));
343
338
  }
344
339
  function ut() {
345
- v && (p.rm(M.mirrorContainer, "gu-unselectable"), o(b, "remove", "mousemove", Ee), y(v).removeChild(v), v = null);
340
+ if (j = document.createElement("div"), p.add(j, "gu-insertion"), F) {
341
+ var e = F.getBoundingClientRect();
342
+ j.style.left = e.left + "px", j.style.top = e.top + "px";
343
+ }
344
+ pe = !1, M.mirrorContainer.appendChild(j);
346
345
  }
347
346
  function st() {
348
- O && (y(O).removeChild(O), O = null);
347
+ a && (p.rm(M.mirrorContainer, "gu-unselectable"), n(k, "remove", "mousemove", Ee), D(a).removeChild(a), a = null);
349
348
  }
350
- function He(n, u) {
351
- for (var d = u; d !== n && y(d) !== n; )
352
- d = y(d);
353
- return d === b ? null : d;
349
+ function ft() {
350
+ j && (D(j).removeChild(j), j = null);
354
351
  }
355
- function ft(n, u) {
356
- if (!u)
357
- return se;
358
- var d = n || u && u.lastElementChild;
359
- if (!d)
352
+ function Xe(e, f) {
353
+ for (var v = f; v !== e && D(v) !== e; )
354
+ v = D(v);
355
+ return v === k ? null : v;
356
+ }
357
+ function pt(e, f) {
358
+ if (!f)
359
+ return pe;
360
+ var v = e || f && f.lastElementChild;
361
+ if (!v)
360
362
  return !0;
361
- var N = getComputedStyle(n), $ = /^inline/.test(N.getPropertyValue("display")) || /^(left|right)$/.test(N.getPropertyValue("float"));
362
- if ($)
363
+ var N = getComputedStyle(e), q = /^inline/.test(N.getPropertyValue("display")) || /^(left|right)$/.test(N.getPropertyValue("float"));
364
+ if (q)
363
365
  return !0;
364
- if (u) {
365
- var U = getComputedStyle(u), ie = U.getPropertyValue("display");
366
- if (/flex$/.test(ie)) {
367
- var ee = U.getPropertyValue("flex-direction") || "row";
368
- if (ee === "row" || ee === "row-reverse")
369
- return !pt(u);
366
+ if (f) {
367
+ var H = getComputedStyle(f), ce = H.getPropertyValue("display");
368
+ if (/flex$/.test(ce)) {
369
+ var te = H.getPropertyValue("flex-direction") || "row";
370
+ if (te === "row" || te === "row-reverse")
371
+ return !mt(f);
370
372
  }
371
373
  return !1;
372
374
  }
373
375
  return !0;
374
376
  }
375
- function pt(n) {
376
- if (!n.children || !n.children.length)
377
+ function mt(e) {
378
+ if (!e.children || !e.children.length)
377
379
  return !1;
378
- for (const u of Array.from(n.children)) {
379
- const N = (u.className && u.className.split(" ") || []).filter(($) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test($));
380
+ for (const f of Array.from(e.children)) {
381
+ const N = (f.className && f.className.split(" ") || []).filter((q) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(q));
380
382
  if (!N.length)
381
383
  return !1;
382
- for (const $ of N) {
383
- const U = $.slice($.lastIndexOf("-") + 1);
384
- if (parseInt(U, 10) !== 12)
384
+ for (const q of N) {
385
+ const H = q.slice(q.lastIndexOf("-") + 1);
386
+ if (parseInt(H, 10) !== 12)
385
387
  return !1;
386
388
  }
387
389
  }
388
390
  return !0;
389
391
  }
390
- function mt(n, u) {
391
- const d = u.getBoundingClientRect();
392
- if (O.style.left = d.left + "px", O.style.top = d.top + "px", se) {
393
- if (O.style.height = d.height + "px", O.style.width = "4px", n) {
394
- const N = n.getBoundingClientRect();
395
- N.top !== d.top && (O.style.left = N.right + "px", O.style.top = N.top + "px", O.style.height = N.height + "px");
392
+ function dt(e, f) {
393
+ const v = f.getBoundingClientRect();
394
+ if (j.style.left = v.left + "px", j.style.top = v.top + "px", pe) {
395
+ if (j.style.height = v.height + "px", j.style.width = "4px", e) {
396
+ const N = e.getBoundingClientRect();
397
+ N.top !== v.top && (j.style.left = N.right + "px", j.style.top = N.top + "px", j.style.height = N.height + "px");
396
398
  }
397
- } else if (O.style.height = "4px", O.style.width = d.width + "px", K) {
399
+ } else if (j.style.height = "4px", j.style.width = v.width + "px", K) {
398
400
  const N = K.getBoundingClientRect();
399
- d.top < N.top && (O.style.display = "none");
401
+ v.top < N.top && (j.style.display = "none");
400
402
  }
401
- u === k && k && (O.style.display = "none");
403
+ f === F && F && (j.style.display = "none");
402
404
  }
403
- function dt(n) {
404
- te = null;
405
- var u = n.lastElementChild;
406
- if (u) {
407
- var d = u.getBoundingClientRect();
408
- se ? (O.style.left = d.right + "px", O.style.top = d.top + "px", O.style.height = d.height + "px", O.style.width = "4px") : (O.style.left = d.left + "px", O.style.top = d.bottom + "px", O.style.height = "4px", O.style.width = d.width + "px"), u === k && k && (O.style.display = "none");
405
+ function vt(e) {
406
+ ee = null;
407
+ var f = e.lastElementChild;
408
+ if (f) {
409
+ var v = f.getBoundingClientRect();
410
+ pe ? (j.style.left = v.right + "px", j.style.top = v.top + "px", j.style.height = v.height + "px", j.style.width = "4px") : (j.style.left = v.left + "px", j.style.top = v.bottom + "px", j.style.height = "4px", j.style.width = v.width + "px"), f === F && F && (j.style.display = "none");
409
411
  } else
410
- O.style.display = "none";
412
+ j.style.display = "none";
411
413
  }
412
- function vt(n, u) {
413
- if (!M.mirrorContainer.contains(n) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (K = a(n), !K || !K.contains(n)))
414
+ function gt(e, f) {
415
+ if (!M.mirrorContainer.contains(e) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (K = y(e), !K || !K.contains(e)))
414
416
  return;
415
- const d = document.querySelector(".dgComponentSelected"), N = K.getBoundingClientRect();
416
- if (u - 30 < N.top && K.scrollTop > 0) {
417
- let $ = K.scrollTop < 10 ? K.scrollTop : 10;
418
- K.scrollBy(0, -1 * $), d && K.contains(d) && (fe = fe + -1 * $);
417
+ const v = document.querySelector(".dgComponentSelected"), N = K.getBoundingClientRect();
418
+ if (f - 30 < N.top && K.scrollTop > 0) {
419
+ let q = K.scrollTop < 10 ? K.scrollTop : 10;
420
+ K.scrollBy(0, -1 * q), v && K.contains(v) && (me = me + -1 * q);
419
421
  }
420
- if (u + 30 > N.bottom && K.scrollTop < K.scrollHeight - K.clientHeight) {
421
- const $ = K.scrollHeight - K.clientHeight - K.scrollTop;
422
- let U = $ < 10 ? $ : 10;
423
- K.scrollBy(0, U), d && K.contains(d) && (fe = fe + U);
422
+ if (f + 30 > N.bottom && K.scrollTop < K.scrollHeight - K.clientHeight) {
423
+ const q = K.scrollHeight - K.clientHeight - K.scrollTop;
424
+ let H = q < 10 ? q : 10;
425
+ K.scrollBy(0, H), v && K.contains(v) && (me = me + H);
424
426
  }
425
427
  }
426
- function Xe(n, u, d, N) {
427
- var $ = M.direction === "horizontal", U = M.direction === "mixed", ie = u !== n ? oe() : ee();
428
- return ie;
429
- function ee() {
430
- var Q = n.children.length, ce, ne, Z;
431
- for (ce = 0; ce < Q; ce++)
432
- if (ne = n.children[ce], Z = ne.getBoundingClientRect(), $ && Z.left + Z.width / 2 > d || !U && !$ && Z.top + Z.height / 2 > N || U && Z.left + Z.width > d && Z.top + Z.height > N)
433
- return ne;
428
+ function We(e, f, v, N) {
429
+ var q = M.direction === "horizontal", H = M.direction === "mixed", ce = f !== e ? ie() : te();
430
+ return ce;
431
+ function te() {
432
+ var Z = e.children.length, ue, re, R;
433
+ for (ue = 0; ue < Z; ue++)
434
+ if (re = e.children[ue], R = re.getBoundingClientRect(), q && R.left + R.width / 2 > v || !H && !q && R.top + R.height / 2 > N || H && R.left + R.width > v && R.top + R.height > N)
435
+ return re;
434
436
  return null;
435
437
  }
436
- function oe() {
437
- var Q = u.getBoundingClientRect();
438
- if (U) {
439
- var ce = N - Q.top, ne = d - Q.left, Z = Q.bottom - N, Fe = Q.right - d, Pe = Math.min(ne, Fe, ce, Z), Ie;
440
- return se ? Ie = Fe < ne : Ie = Z === Pe || Fe === Pe || ne === Pe, ae(Ie);
438
+ function ie() {
439
+ var Z = f.getBoundingClientRect();
440
+ if (H) {
441
+ var ue = N - Z.top, re = v - Z.left, R = Z.bottom - N, Fe = Z.right - v, Pe = Math.min(re, Fe, ue, R), Ie;
442
+ return pe ? Ie = Fe < re : Ie = R === Pe || Fe === Pe || re === Pe, le(Ie);
441
443
  }
442
- return ae($ ? d > Q.left + X(Q) / 2 : N > Q.top + _(Q) / 2);
444
+ return le(q ? v > Z.left + O(Z) / 2 : N > Z.top + _(Z) / 2);
443
445
  }
444
- function ae(Q) {
445
- return Q ? m(u) : u;
446
+ function le(Z) {
447
+ return Z ? h(f) : f;
446
448
  }
447
449
  }
448
- function gt(n, u) {
449
- return typeof M.copy == "boolean" ? M.copy : M.copy(n, u);
450
+ function ht(e, f) {
451
+ return typeof M.copy == "boolean" ? M.copy : M.copy(e, f);
450
452
  }
451
453
  }
452
- function a(r) {
453
- const j = Array.from(window.scrollContainerList);
454
- if (j.length === 1) {
455
- const v = Array.from(window.scrollContainerList)[0];
456
- return document.getElementById(v);
454
+ function y(r) {
455
+ const U = Array.from(window.scrollContainerList);
456
+ if (U.length === 1) {
457
+ const a = Array.from(window.scrollContainerList)[0];
458
+ return document.getElementById(a);
457
459
  }
458
- const s = e(j);
459
- for (const v of s)
460
- if (v.contains(r))
461
- return v;
460
+ const W = l(U);
461
+ for (const a of W)
462
+ if (a.contains(r))
463
+ return a;
462
464
  return null;
463
465
  }
464
- function e(r) {
465
- const j = [];
466
- return r.forEach((s) => {
467
- const v = document.getElementById(s);
468
- v && j.push(v);
469
- }), j.sort((s, v) => s.contains(v) ? 1 : v.contains(s) ? -1 : 0), j;
466
+ function l(r) {
467
+ const U = [];
468
+ return r.forEach((W) => {
469
+ const a = document.getElementById(W);
470
+ a && U.push(a);
471
+ }), U.sort((W, a) => W.contains(a) ? 1 : a.contains(W) ? -1 : 0), U;
470
472
  }
471
- function o(r, j, s, v) {
472
- var E = {
473
+ function n(r, U, W, a) {
474
+ var w = {
473
475
  mouseup: "touchend",
474
476
  mousedown: "touchstart",
475
477
  mousemove: "touchmove"
476
- }, k = {
478
+ }, F = {
477
479
  mouseup: "pointerup",
478
480
  mousedown: "pointerdown",
479
481
  mousemove: "pointermove"
480
- }, z = {
482
+ }, Y = {
481
483
  mouseup: "MSPointerUp",
482
484
  mousedown: "MSPointerDown",
483
485
  mousemove: "MSPointerMove"
484
486
  };
485
- l.navigator.pointerEnabled ? T[j](r, k[s], v) : l.navigator.msPointerEnabled ? T[j](r, z[s], v) : (T[j](r, E[s], v), T[j](r, s, v));
487
+ u.navigator.pointerEnabled ? C[U](r, F[W], a) : u.navigator.msPointerEnabled ? C[U](r, Y[W], a) : (C[U](r, w[W], a), C[U](r, W, a));
486
488
  }
487
- function c(r) {
489
+ function o(r) {
488
490
  if (r.touches !== void 0)
489
491
  return r.touches.length;
490
492
  if (r.which !== void 0 && r.which !== 0)
491
493
  return r.which;
492
494
  if (r.buttons !== void 0)
493
495
  return r.buttons;
494
- var j = r.button;
495
- if (j !== void 0)
496
- return j & 1 ? 1 : j & 2 ? 3 : j & 4 ? 2 : 0;
496
+ var U = r.button;
497
+ if (U !== void 0)
498
+ return U & 1 ? 1 : U & 2 ? 3 : U & 4 ? 2 : 0;
497
499
  }
498
- function g(r, j, s) {
500
+ function g(r, U, W) {
499
501
  r = r || {};
500
- var v = r.className || "", E;
501
- return r.className += " gu-hide", E = x.elementFromPoint(j, s), r.className = v, E;
502
+ var a = r.className || "", w;
503
+ return r.className += " gu-hide", w = x.elementFromPoint(U, W), r.className = a, w;
502
504
  }
503
- function I() {
505
+ function d() {
504
506
  return !1;
505
507
  }
506
- function V() {
508
+ function B() {
507
509
  return !0;
508
510
  }
509
- function X(r) {
511
+ function O(r) {
510
512
  return r.width || r.right - r.left;
511
513
  }
512
514
  function _(r) {
513
515
  return r.height || r.bottom - r.top;
514
516
  }
515
- function y(r) {
517
+ function D(r) {
516
518
  return r.parentNode === x ? null : r.parentNode;
517
519
  }
518
520
  function i(r) {
519
- return r.tagName === "INPUT" || r.tagName === "TEXTAREA" || r.tagName === "SELECT" || S(r);
521
+ return r.tagName === "INPUT" || r.tagName === "TEXTAREA" || r.tagName === "SELECT" || E(r);
520
522
  }
521
- function S(r) {
522
- return !r || r.contentEditable === "false" ? !1 : r.contentEditable === "true" ? !0 : S(y(r));
523
+ function E(r) {
524
+ return !r || r.contentEditable === "false" ? !1 : r.contentEditable === "true" ? !0 : E(D(r));
523
525
  }
524
- function m(r) {
525
- return r.nextElementSibling || j();
526
- function j() {
527
- var s = r;
526
+ function h(r) {
527
+ return r.nextElementSibling || U();
528
+ function U() {
529
+ var W = r;
528
530
  do
529
- s = s.nextSibling;
530
- while (s && s.nodeType !== 1);
531
- return s;
531
+ W = W.nextSibling;
532
+ while (W && W.nodeType !== 1);
533
+ return W;
532
534
  }
533
535
  }
534
- function W(r) {
536
+ function $(r) {
535
537
  return r.targetTouches && r.targetTouches.length ? r.targetTouches[0] : r.changedTouches && r.changedTouches.length ? r.changedTouches[0] : r;
536
538
  }
537
- function L(r, j) {
538
- var s = W(j), v = {
539
+ function V(r, U) {
540
+ var W = $(U), a = {
539
541
  pageX: "clientX",
540
542
  // IE8
541
543
  pageY: "clientY"
542
544
  // IE8
543
545
  };
544
- return r in v && !(r in s) && v[r] in s && (r = v[r]), s[r];
546
+ return r in a && !(r in W) && a[r] in W && (r = a[r]), W[r];
545
547
  }
546
- D.exports = C;
547
- }).call(this, typeof le < "u" ? le : typeof self < "u" ? self : typeof window < "u" ? window : {});
548
+ b.exports = s;
549
+ }).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
548
550
  }, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
549
- 3: [function(t, D, B) {
550
- D.exports = function(h, T) {
551
- return Array.prototype.slice.call(h, T);
551
+ 3: [function(t, b, I) {
552
+ b.exports = function(m, C) {
553
+ return Array.prototype.slice.call(m, C);
552
554
  };
553
555
  }, {}],
554
- 4: [function(t, D, B) {
555
- var l = t("ticky");
556
- D.exports = function(T, p, x) {
557
- T && l(function() {
558
- T.apply(x || null, p || []);
556
+ 4: [function(t, b, I) {
557
+ var u = t("ticky");
558
+ b.exports = function(C, p, x) {
559
+ C && u(function() {
560
+ C.apply(x || null, p || []);
559
561
  });
560
562
  };
561
563
  }, { ticky: 10 }],
562
- 5: [function(t, D, B) {
563
- var l = t("atoa"), h = t("./debounce");
564
- D.exports = function(p, x) {
565
- var b = x || {}, C = {};
566
- return p === void 0 && (p = {}), p.on = function(a, e) {
567
- return C[a] ? C[a].push(e) : C[a] = [e], p;
568
- }, p.once = function(a, e) {
569
- return e._once = !0, p.on(a, e), p;
570
- }, p.off = function(a, e) {
571
- var o = arguments.length;
572
- if (o === 1)
573
- delete C[a];
574
- else if (o === 0)
575
- C = {};
564
+ 5: [function(t, b, I) {
565
+ var u = t("atoa"), m = t("./debounce");
566
+ b.exports = function(p, x) {
567
+ var k = x || {}, s = {};
568
+ return p === void 0 && (p = {}), p.on = function(y, l) {
569
+ return s[y] ? s[y].push(l) : s[y] = [l], p;
570
+ }, p.once = function(y, l) {
571
+ return l._once = !0, p.on(y, l), p;
572
+ }, p.off = function(y, l) {
573
+ var n = arguments.length;
574
+ if (n === 1)
575
+ delete s[y];
576
+ else if (n === 0)
577
+ s = {};
576
578
  else {
577
- var c = C[a];
578
- if (!c)
579
+ var o = s[y];
580
+ if (!o)
579
581
  return p;
580
- c.splice(c.indexOf(e), 1);
582
+ o.splice(o.indexOf(l), 1);
581
583
  }
582
584
  return p;
583
585
  }, p.emit = function() {
584
- var a = l(arguments);
585
- return p.emitterSnapshot(a.shift()).apply(this, a);
586
- }, p.emitterSnapshot = function(a) {
587
- var e = (C[a] || []).slice(0);
586
+ var y = u(arguments);
587
+ return p.emitterSnapshot(y.shift()).apply(this, y);
588
+ }, p.emitterSnapshot = function(y) {
589
+ var l = (s[y] || []).slice(0);
588
590
  return function() {
589
- var o = l(arguments), c = this || p;
590
- if (a === "error" && b.throws !== !1 && !e.length)
591
- throw o.length === 1 ? o[0] : o;
592
- return e.forEach(function(I) {
593
- b.async ? h(I, o, c) : I.apply(c, o), I._once && p.off(a, I);
591
+ var n = u(arguments), o = this || p;
592
+ if (y === "error" && k.throws !== !1 && !l.length)
593
+ throw n.length === 1 ? n[0] : n;
594
+ return l.forEach(function(d) {
595
+ k.async ? m(d, n, o) : d.apply(o, n), d._once && p.off(y, d);
594
596
  }), p;
595
597
  };
596
598
  }, p;
597
599
  };
598
600
  }, { "./debounce": 4, atoa: 3 }],
599
- 6: [function(t, D, B) {
600
- (function(l) {
601
- var h = t("custom-event"), T = t("./eventmap"), p = l.document, x = a, b = o, C = [];
602
- l.addEventListener || (x = e, b = c), D.exports = {
601
+ 6: [function(t, b, I) {
602
+ (function(u) {
603
+ var m = t("custom-event"), C = t("./eventmap"), p = u.document, x = y, k = n, s = [];
604
+ u.addEventListener || (x = l, k = o), b.exports = {
603
605
  add: x,
604
- remove: b,
606
+ remove: k,
605
607
  fabricate: g
606
608
  };
607
- function a(y, i, S, m) {
608
- return y.addEventListener(i, S, m);
609
+ function y(D, i, E, h) {
610
+ return D.addEventListener(i, E, h);
609
611
  }
610
- function e(y, i, S) {
611
- return y.attachEvent("on" + i, V(y, i, S));
612
+ function l(D, i, E) {
613
+ return D.attachEvent("on" + i, B(D, i, E));
612
614
  }
613
- function o(y, i, S, m) {
614
- return y.removeEventListener(i, S, m);
615
+ function n(D, i, E, h) {
616
+ return D.removeEventListener(i, E, h);
615
617
  }
616
- function c(y, i, S) {
617
- var m = X(y, i, S);
618
- if (m)
619
- return y.detachEvent("on" + i, m);
618
+ function o(D, i, E) {
619
+ var h = O(D, i, E);
620
+ if (h)
621
+ return D.detachEvent("on" + i, h);
620
622
  }
621
- function g(y, i, S) {
622
- var m = T.indexOf(i) === -1 ? L() : W();
623
- y.dispatchEvent ? y.dispatchEvent(m) : y.fireEvent("on" + i, m);
624
- function W() {
623
+ function g(D, i, E) {
624
+ var h = C.indexOf(i) === -1 ? V() : $();
625
+ D.dispatchEvent ? D.dispatchEvent(h) : D.fireEvent("on" + i, h);
626
+ function $() {
625
627
  var r;
626
628
  return p.createEvent ? (r = p.createEvent("Event"), r.initEvent(i, !0, !0)) : p.createEventObject && (r = p.createEventObject()), r;
627
629
  }
628
- function L() {
629
- return new h(i, { detail: S });
630
+ function V() {
631
+ return new m(i, { detail: E });
630
632
  }
631
633
  }
632
- function I(y, i, S) {
633
- return function(W) {
634
- var L = W || l.event;
635
- L.target = L.target || L.srcElement, L.preventDefault = L.preventDefault || function() {
636
- L.returnValue = !1;
637
- }, L.stopPropagation = L.stopPropagation || function() {
638
- L.cancelBubble = !0;
639
- }, L.which = L.which || L.keyCode, S.call(y, L);
634
+ function d(D, i, E) {
635
+ return function($) {
636
+ var V = $ || u.event;
637
+ V.target = V.target || V.srcElement, V.preventDefault = V.preventDefault || function() {
638
+ V.returnValue = !1;
639
+ }, V.stopPropagation = V.stopPropagation || function() {
640
+ V.cancelBubble = !0;
641
+ }, V.which = V.which || V.keyCode, E.call(D, V);
640
642
  };
641
643
  }
642
- function V(y, i, S) {
643
- var m = X(y, i, S) || I(y, i, S);
644
- return C.push({
645
- wrapper: m,
646
- element: y,
644
+ function B(D, i, E) {
645
+ var h = O(D, i, E) || d(D, i, E);
646
+ return s.push({
647
+ wrapper: h,
648
+ element: D,
647
649
  type: i,
648
- fn: S
649
- }), m;
650
+ fn: E
651
+ }), h;
650
652
  }
651
- function X(y, i, S) {
652
- var m = _(y, i, S);
653
- if (m) {
654
- var W = C[m].wrapper;
655
- return C.splice(m, 1), W;
653
+ function O(D, i, E) {
654
+ var h = _(D, i, E);
655
+ if (h) {
656
+ var $ = s[h].wrapper;
657
+ return s.splice(h, 1), $;
656
658
  }
657
659
  }
658
- function _(y, i, S) {
659
- var m, W;
660
- for (m = 0; m < C.length; m++)
661
- if (W = C[m], W.element === y && W.type === i && W.fn === S)
662
- return m;
660
+ function _(D, i, E) {
661
+ var h, $;
662
+ for (h = 0; h < s.length; h++)
663
+ if ($ = s[h], $.element === D && $.type === i && $.fn === E)
664
+ return h;
663
665
  }
664
- }).call(this, typeof le < "u" ? le : typeof self < "u" ? self : typeof window < "u" ? window : {});
666
+ }).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
665
667
  }, { "./eventmap": 7, "custom-event": 8 }],
666
- 7: [function(t, D, B) {
667
- (function(l) {
668
- var h = [], T = "", p = /^on/;
669
- for (T in l)
670
- p.test(T) && h.push(T.slice(2));
671
- D.exports = h;
672
- }).call(this, typeof le < "u" ? le : typeof self < "u" ? self : typeof window < "u" ? window : {});
668
+ 7: [function(t, b, I) {
669
+ (function(u) {
670
+ var m = [], C = "", p = /^on/;
671
+ for (C in u)
672
+ p.test(C) && m.push(C.slice(2));
673
+ b.exports = m;
674
+ }).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
673
675
  }, {}],
674
- 8: [function(t, D, B) {
675
- (function(l) {
676
- var h = l.CustomEvent;
677
- function T() {
676
+ 8: [function(t, b, I) {
677
+ (function(u) {
678
+ var m = u.CustomEvent;
679
+ function C() {
678
680
  try {
679
- var p = new h("cat", { detail: { foo: "bar" } });
681
+ var p = new m("cat", { detail: { foo: "bar" } });
680
682
  return p.type === "cat" && p.detail.foo === "bar";
681
683
  } catch {
682
684
  }
683
685
  return !1;
684
686
  }
685
- D.exports = T() ? h : (
687
+ b.exports = C() ? m : (
686
688
  // IE >= 9
687
- typeof document < "u" && typeof document.createEvent == "function" ? function(x, b) {
688
- var C = document.createEvent("CustomEvent");
689
- return b ? C.initCustomEvent(x, b.bubbles, b.cancelable, b.detail) : C.initCustomEvent(x, !1, !1, void 0), C;
689
+ typeof document < "u" && typeof document.createEvent == "function" ? function(x, k) {
690
+ var s = document.createEvent("CustomEvent");
691
+ return k ? s.initCustomEvent(x, k.bubbles, k.cancelable, k.detail) : s.initCustomEvent(x, !1, !1, void 0), s;
690
692
  } : (
691
693
  // IE <= 8
692
- function(x, b) {
693
- var C = document.createEventObject();
694
- return C.type = x, b ? (C.bubbles = !!b.bubbles, C.cancelable = !!b.cancelable, C.detail = b.detail) : (C.bubbles = !1, C.cancelable = !1, C.detail = void 0), C;
694
+ function(x, k) {
695
+ var s = document.createEventObject();
696
+ return s.type = x, k ? (s.bubbles = !!k.bubbles, s.cancelable = !!k.cancelable, s.detail = k.detail) : (s.bubbles = !1, s.cancelable = !1, s.detail = void 0), s;
695
697
  }
696
698
  )
697
699
  );
698
- }).call(this, typeof le < "u" ? le : typeof self < "u" ? self : typeof window < "u" ? window : {});
700
+ }).call(this, typeof se < "u" ? se : typeof self < "u" ? self : typeof window < "u" ? window : {});
699
701
  }, {}],
700
- 9: [function(t, D, B) {
701
- var l = D.exports = {}, h, T;
702
+ 9: [function(t, b, I) {
703
+ var u = b.exports = {}, m, C;
702
704
  function p() {
703
705
  throw new Error("setTimeout has not been defined");
704
706
  }
@@ -707,255 +709,256 @@ var Ke = { exports: {} };
707
709
  }
708
710
  (function() {
709
711
  try {
710
- typeof setTimeout == "function" ? h = setTimeout : h = p;
712
+ typeof setTimeout == "function" ? m = setTimeout : m = p;
711
713
  } catch {
712
- h = p;
714
+ m = p;
713
715
  }
714
716
  try {
715
- typeof clearTimeout == "function" ? T = clearTimeout : T = x;
717
+ typeof clearTimeout == "function" ? C = clearTimeout : C = x;
716
718
  } catch {
717
- T = x;
719
+ C = x;
718
720
  }
719
721
  })();
720
- function b(_) {
721
- if (h === setTimeout)
722
+ function k(_) {
723
+ if (m === setTimeout)
722
724
  return setTimeout(_, 0);
723
- if ((h === p || !h) && setTimeout)
724
- return h = setTimeout, setTimeout(_, 0);
725
+ if ((m === p || !m) && setTimeout)
726
+ return m = setTimeout, setTimeout(_, 0);
725
727
  try {
726
- return h(_, 0);
728
+ return m(_, 0);
727
729
  } catch {
728
730
  try {
729
- return h.call(null, _, 0);
731
+ return m.call(null, _, 0);
730
732
  } catch {
731
- return h.call(this, _, 0);
733
+ return m.call(this, _, 0);
732
734
  }
733
735
  }
734
736
  }
735
- function C(_) {
736
- if (T === clearTimeout)
737
+ function s(_) {
738
+ if (C === clearTimeout)
737
739
  return clearTimeout(_);
738
- if ((T === x || !T) && clearTimeout)
739
- return T = clearTimeout, clearTimeout(_);
740
+ if ((C === x || !C) && clearTimeout)
741
+ return C = clearTimeout, clearTimeout(_);
740
742
  try {
741
- return T(_);
743
+ return C(_);
742
744
  } catch {
743
745
  try {
744
- return T.call(null, _);
746
+ return C.call(null, _);
745
747
  } catch {
746
- return T.call(this, _);
748
+ return C.call(this, _);
747
749
  }
748
750
  }
749
751
  }
750
- var a = [], e = !1, o, c = -1;
752
+ var y = [], l = !1, n, o = -1;
751
753
  function g() {
752
- !e || !o || (e = !1, o.length ? a = o.concat(a) : c = -1, a.length && I());
754
+ !l || !n || (l = !1, n.length ? y = n.concat(y) : o = -1, y.length && d());
753
755
  }
754
- function I() {
755
- if (!e) {
756
- var _ = b(g);
757
- e = !0;
758
- for (var y = a.length; y; ) {
759
- for (o = a, a = []; ++c < y; )
760
- o && o[c].run();
761
- c = -1, y = a.length;
756
+ function d() {
757
+ if (!l) {
758
+ var _ = k(g);
759
+ l = !0;
760
+ for (var D = y.length; D; ) {
761
+ for (n = y, y = []; ++o < D; )
762
+ n && n[o].run();
763
+ o = -1, D = y.length;
762
764
  }
763
- o = null, e = !1, C(_);
765
+ n = null, l = !1, s(_);
764
766
  }
765
767
  }
766
- l.nextTick = function(_) {
767
- var y = new Array(arguments.length - 1);
768
+ u.nextTick = function(_) {
769
+ var D = new Array(arguments.length - 1);
768
770
  if (arguments.length > 1)
769
771
  for (var i = 1; i < arguments.length; i++)
770
- y[i - 1] = arguments[i];
771
- a.push(new V(_, y)), a.length === 1 && !e && b(I);
772
+ D[i - 1] = arguments[i];
773
+ y.push(new B(_, D)), y.length === 1 && !l && k(d);
772
774
  };
773
- function V(_, y) {
774
- this.fun = _, this.array = y;
775
+ function B(_, D) {
776
+ this.fun = _, this.array = D;
775
777
  }
776
- V.prototype.run = function() {
778
+ B.prototype.run = function() {
777
779
  this.fun.apply(null, this.array);
778
- }, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
779
- function X() {
780
+ }, u.title = "browser", u.browser = !0, u.env = {}, u.argv = [], u.version = "", u.versions = {};
781
+ function O() {
780
782
  }
781
- l.on = X, l.addListener = X, l.once = X, l.off = X, l.removeListener = X, l.removeAllListeners = X, l.emit = X, l.prependListener = X, l.prependOnceListener = X, l.listeners = function(_) {
783
+ u.on = O, u.addListener = O, u.once = O, u.off = O, u.removeListener = O, u.removeAllListeners = O, u.emit = O, u.prependListener = O, u.prependOnceListener = O, u.listeners = function(_) {
782
784
  return [];
783
- }, l.binding = function(_) {
785
+ }, u.binding = function(_) {
784
786
  throw new Error("process.binding is not supported");
785
- }, l.cwd = function() {
787
+ }, u.cwd = function() {
786
788
  return "/";
787
- }, l.chdir = function(_) {
789
+ }, u.chdir = function(_) {
788
790
  throw new Error("process.chdir is not supported");
789
- }, l.umask = function() {
791
+ }, u.umask = function() {
790
792
  return 0;
791
793
  };
792
794
  }, {}],
793
- 10: [function(t, D, B) {
794
- (function(l) {
795
- var h = typeof l == "function", T;
796
- h ? T = function(p) {
797
- l(p);
798
- } : T = function(p) {
795
+ 10: [function(t, b, I) {
796
+ (function(u) {
797
+ var m = typeof u == "function", C;
798
+ m ? C = function(p) {
799
+ u(p);
800
+ } : C = function(p) {
799
801
  setTimeout(p, 0);
800
- }, D.exports = T;
802
+ }, b.exports = C;
801
803
  }).call(this, t("timers").setImmediate);
802
804
  }, { timers: 11 }],
803
- 11: [function(t, D, B) {
804
- (function(l, h) {
805
- var T = t("process/browser.js").nextTick, p = Function.prototype.apply, x = Array.prototype.slice, b = {}, C = 0;
806
- B.setTimeout = function() {
807
- return new a(p.call(setTimeout, window, arguments), clearTimeout);
808
- }, B.setInterval = function() {
809
- return new a(p.call(setInterval, window, arguments), clearInterval);
810
- }, B.clearTimeout = B.clearInterval = function(e) {
811
- e.close();
805
+ 11: [function(t, b, I) {
806
+ (function(u, m) {
807
+ var C = t("process/browser.js").nextTick, p = Function.prototype.apply, x = Array.prototype.slice, k = {}, s = 0;
808
+ I.setTimeout = function() {
809
+ return new y(p.call(setTimeout, window, arguments), clearTimeout);
810
+ }, I.setInterval = function() {
811
+ return new y(p.call(setInterval, window, arguments), clearInterval);
812
+ }, I.clearTimeout = I.clearInterval = function(l) {
813
+ l.close();
812
814
  };
813
- function a(e, o) {
814
- this._id = e, this._clearFn = o;
815
+ function y(l, n) {
816
+ this._id = l, this._clearFn = n;
815
817
  }
816
- a.prototype.unref = a.prototype.ref = function() {
817
- }, a.prototype.close = function() {
818
+ y.prototype.unref = y.prototype.ref = function() {
819
+ }, y.prototype.close = function() {
818
820
  this._clearFn.call(window, this._id);
819
- }, B.enroll = function(e, o) {
820
- clearTimeout(e._idleTimeoutId), e._idleTimeout = o;
821
- }, B.unenroll = function(e) {
822
- clearTimeout(e._idleTimeoutId), e._idleTimeout = -1;
823
- }, B._unrefActive = B.active = function(e) {
824
- clearTimeout(e._idleTimeoutId);
825
- var o = e._idleTimeout;
826
- o >= 0 && (e._idleTimeoutId = setTimeout(function() {
827
- e._onTimeout && e._onTimeout();
828
- }, o));
829
- }, B.setImmediate = typeof l == "function" ? l : function(e) {
830
- var o = C++, c = arguments.length < 2 ? !1 : x.call(arguments, 1);
831
- return b[o] = !0, T(function() {
832
- b[o] && (c ? e.apply(null, c) : e.call(null), B.clearImmediate(o));
833
- }), o;
834
- }, B.clearImmediate = typeof h == "function" ? h : function(e) {
835
- delete b[e];
821
+ }, I.enroll = function(l, n) {
822
+ clearTimeout(l._idleTimeoutId), l._idleTimeout = n;
823
+ }, I.unenroll = function(l) {
824
+ clearTimeout(l._idleTimeoutId), l._idleTimeout = -1;
825
+ }, I._unrefActive = I.active = function(l) {
826
+ clearTimeout(l._idleTimeoutId);
827
+ var n = l._idleTimeout;
828
+ n >= 0 && (l._idleTimeoutId = setTimeout(function() {
829
+ l._onTimeout && l._onTimeout();
830
+ }, n));
831
+ }, I.setImmediate = typeof u == "function" ? u : function(l) {
832
+ var n = s++, o = arguments.length < 2 ? !1 : x.call(arguments, 1);
833
+ return k[n] = !0, C(function() {
834
+ k[n] && (o ? l.apply(null, o) : l.call(null), I.clearImmediate(n));
835
+ }), n;
836
+ }, I.clearImmediate = typeof m == "function" ? m : function(l) {
837
+ delete k[l];
836
838
  };
837
839
  }).call(this, t("timers").setImmediate, t("timers").clearImmediate);
838
840
  }, { "process/browser.js": 9, timers: 11 }]
839
841
  }, {}, [2])(2);
840
842
  });
841
843
  })(Ke);
842
- var Fn = Ke.exports;
843
- const We = /* @__PURE__ */ En(Fn);
844
- function Pn() {
845
- let w;
846
- function f(e, o, c) {
847
- const g = {};
848
- return g.sourceElement = e, g.sourceContainer = c, g.targetContainer = o, g.sourceType = e.getAttribute("data-sourceType") || "move", g.controlType = e.getAttribute("data-controlType"), g.controlTypeName = e.getAttribute("data-controlTypeName"), g.controlCategory = e.getAttribute("data-category"), g.controlFeature = e.getAttribute("data-feature"), g.parentComponentInstance = o.componentInstance, g.controlCategory === "input" ? g.bindingType = "field" : g.controlCategory === "dataCollection" && (g.bindingType = "entity"), e.componentInstance && (g.controlType = e.componentInstance.value.schema.type, g.controlCategory = e.componentInstance.value.schema.category), g;
844
+ var In = Ke.exports;
845
+ const Ye = /* @__PURE__ */ Pn(In);
846
+ function An(A) {
847
+ let c;
848
+ function t(n, o, g) {
849
+ const d = {};
850
+ return d.sourceElement = n, d.sourceContainer = g, d.targetContainer = o, d.sourceType = n.getAttribute("data-sourceType") || "move", d.controlType = n.getAttribute("data-controlType"), d.controlTypeName = n.getAttribute("data-controlTypeName"), d.controlCategory = n.getAttribute("data-category"), d.controlFeature = n.getAttribute("data-feature"), d.parentComponentInstance = o.componentInstance, d.controlCategory === "input" ? d.bindingType = "field" : d.controlCategory === "dataCollection" && (d.bindingType = "entity"), n.componentInstance && (d.controlType = n.componentInstance.value.schema.type, d.controlCategory = n.componentInstance.value.schema.category), d;
849
851
  }
850
- function t(e, o, c) {
851
- if (e.contains(o) || o.classList.contains("no-drop"))
852
+ function b(n, o, g) {
853
+ if (n.contains(o) || o.classList.contains("no-drop"))
852
854
  return !1;
853
- const g = !0;
854
- if (e.componentInstance && e.componentInstance.value.getDragScopeElement) {
855
- const I = e.componentInstance.value.getDragScopeElement();
856
- if (I && !I.contains(o))
855
+ const d = !0;
856
+ if (n.componentInstance && n.componentInstance.value.getDragScopeElement) {
857
+ const B = n.componentInstance.value.getDragScopeElement();
858
+ if (B && !B.contains(o))
857
859
  return !1;
858
860
  }
859
861
  if (o.componentInstance && o.componentInstance.value.canAccepts) {
860
- const I = f(e, o, c);
861
- return o.componentInstance.value.canAccepts(I);
862
+ const B = t(n, o, g);
863
+ return o.componentInstance.value.canAccepts(B);
862
864
  }
863
- return g;
865
+ return d;
864
866
  }
865
- function D(e, o) {
866
- const c = o.getBoundingClientRect(), g = e.getBoundingClientRect(), I = g.top >= c.top, V = g.top < c.bottom;
867
- return I && V;
867
+ function I(n, o) {
868
+ const g = o.getBoundingClientRect(), d = n.getBoundingClientRect(), B = d.top >= g.top, O = d.top < g.bottom;
869
+ return B && O;
868
870
  }
869
- function B(e, o) {
870
- const c = e.querySelector(".dgComponentSelected");
871
- if (!(!c || o === 0) && D(c, e)) {
872
- const g = c.querySelector(".component-btn-group");
873
- if (g) {
874
- const I = g.querySelector("div");
875
- if (I && I.style.top) {
876
- const V = Number.parseFloat(I.style.top);
877
- I.style.top = V - o + "px";
871
+ function u(n, o) {
872
+ const g = n.querySelector(".dgComponentSelected");
873
+ if (!(!g || o === 0) && I(g, n)) {
874
+ const d = g.querySelector(".component-btn-group");
875
+ if (d) {
876
+ const B = d.querySelector("div");
877
+ if (B && B.style.top) {
878
+ const O = Number.parseFloat(B.style.top);
879
+ B.style.top = O - o + "px";
878
880
  }
879
881
  }
880
882
  }
881
883
  }
882
- function l(e, o, c) {
883
- e.componentInstance;
884
- let g = -1;
884
+ function m(n, o, g) {
885
+ n.componentInstance;
886
+ let d = -1;
885
887
  if (!o)
886
888
  return -1;
887
- if (e.componentInstance.value.contents) {
888
- if (c && c.componentInstance) {
889
- if (c.getAttribute("data-noattach"))
890
- g = Number(c.getAttribute("data-position"));
889
+ if (n.componentInstance.value.contents) {
890
+ if (g && g.componentInstance) {
891
+ if (g.getAttribute("data-noattach"))
892
+ d = Number(g.getAttribute("data-position"));
891
893
  else {
892
- const I = c.componentInstance.value.schema;
893
- let V = { id: I.id };
894
- I.type === "Component" && (V = { component: I.id }), g = Me(e.componentInstance.value.contents, V), g = g === -1 ? 0 : g;
894
+ const B = g.componentInstance.value.schema;
895
+ let O = { id: B.id };
896
+ B.type === "Component" && (O = { component: B.id }), d = Me(n.componentInstance.value.contents, O), d = d === -1 ? 0 : d;
895
897
  }
896
- g !== -1 && e.componentInstance.value.contents.splice(g, 0, o);
898
+ d !== -1 && n.componentInstance.value.contents.splice(d, 0, o);
897
899
  } else
898
- e.componentInstance.value.contents.push(o);
899
- e.componentInstance.value.updateDragAndDropRules();
900
+ n.componentInstance.value.contents.push(o);
901
+ n.componentInstance.value.updateDragAndDropRules();
900
902
  }
901
- return g;
903
+ return d;
902
904
  }
903
- function h(e, o) {
904
- if (!e.componentInstance.value.contents)
905
+ function C(n, o) {
906
+ if (!n.componentInstance.value.contents)
905
907
  return -1;
906
- if (e.componentInstance.value.contents.length === 0)
908
+ if (n.componentInstance.value.contents.length === 0)
907
909
  return 0;
908
910
  if (!o || !o.componentInstance)
909
- return e.componentInstance.value.contents.length;
911
+ return n.componentInstance.value.contents.length;
910
912
  if (o.getAttribute("data-noattach"))
911
913
  return Number(o.getAttribute("data-position"));
912
- const c = o.componentInstance.value.schema;
913
- let g;
914
- c.type === "Component" ? g = { component: c.id } : g = { id: c.id };
915
- let I = Me(e.componentInstance.value.contents, g);
916
- return I = I === -1 ? 0 : I, I;
914
+ const g = o.componentInstance.value.schema;
915
+ let d;
916
+ g.type === "Component" ? d = { component: g.id } : d = { id: g.id };
917
+ let B = Me(n.componentInstance.value.contents, d);
918
+ return B = B === -1 ? 0 : B, B;
917
919
  }
918
- function T(e, o, c, g) {
920
+ function p(n, o, g, d) {
919
921
  if (o.componentInstance.value.addNewChildComponentSchema) {
920
- const I = h(o, g), V = String(e.getAttribute("data-controltype")), X = e.getAttribute("data-feature"), _ = String(e.innerText), y = o.componentInstance.value, i = { componentType: V, label: _, parentComponentInstance: y, targetPosition: I }, S = X ? JSON.parse(X) : {}, m = Object.assign(i, S), W = o.componentInstance.value.addNewChildComponentSchema(m);
921
- l(o, W, g);
922
+ const B = C(o, d), O = String(n.getAttribute("data-controltype")), _ = n.getAttribute("data-feature"), D = String(n.innerText), i = o.componentInstance.value, E = { componentType: O, label: D, parentComponentInstance: i, targetPosition: B }, h = _ ? JSON.parse(_) : {}, $ = Object.assign(E, h), V = o.componentInstance.value.addNewChildComponentSchema($, A);
923
+ m(o, V, d);
922
924
  }
923
- o.contains(e) && o.removeChild(e);
925
+ o.contains(n) && o.removeChild(n);
924
926
  }
925
- function p(e, o, c, g) {
926
- let I, V = -1;
927
- if (e.componentInstance && e.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
928
- const y = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
929
- y && (e = H(y.elementRef).value.parentElement, c = e.parentElement);
927
+ function x(n, o, g, d) {
928
+ let B, O = -1;
929
+ if (n.componentInstance && n.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
930
+ const i = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
931
+ i && (n = X(i.elementRef).value.parentElement, g = n.parentElement);
930
932
  }
931
- const X = e.componentInstance && e.componentInstance.value.schema, _ = { id: X && X.id };
932
- V = Me(c.componentInstance.value.contents, _), V !== -1 && c.componentInstance.value.contents && (I = c.componentInstance.value.contents.splice(V, 1), I = I[0]), l(o, I, g), c.componentInstance && c.componentInstance.value.onChildElementMovedOut && c.componentInstance.value.onChildElementMovedOut(e), o.componentInstance && o.componentInstance.value.onAcceptMovedChildElement && o.componentInstance.value.onAcceptMovedChildElement(e, c);
933
+ const _ = n.componentInstance && n.componentInstance.value.schema;
934
+ let D = { id: _ && _.id };
935
+ _.type === "component" && (D = { component: _ && _.id }), O = Me(g.componentInstance.value.contents, D), O !== -1 && g.componentInstance.value.contents && (B = g.componentInstance.value.contents.splice(O, 1), B = B[0]), m(o, B, d), g.componentInstance && g.componentInstance.value.onChildElementMovedOut && g.componentInstance.value.onChildElementMovedOut(n), o.componentInstance && o.componentInstance.value.onAcceptMovedChildElement && o.componentInstance.value.onAcceptMovedChildElement(n, g);
933
936
  }
934
- function x(e, o, c, g) {
935
- if (!o || e.contains(o))
937
+ function k(n, o, g, d) {
938
+ if (!o || n.contains(o))
936
939
  return;
937
- switch (e.getAttribute("data-sourceType")) {
940
+ switch (n.getAttribute("data-sourceType")) {
938
941
  case "control":
939
942
  case "field":
940
943
  case "entity": {
941
- T(e, o, c, g);
944
+ p(n, o, g, d);
942
945
  break;
943
946
  }
944
947
  default:
945
- c.componentInstance.value.contents ? p(e, o, c, g) : o.contains(e) && o.removeChild(e);
948
+ g.componentInstance.value.contents ? x(n, o, g, d) : o.contains(n) && o.removeChild(n);
946
949
  }
947
950
  de.value++;
948
951
  }
949
- function b(e) {
950
- w && w.destroy(), We && (w = We([], {
952
+ function s(n) {
953
+ c && c.destroy(), Ye && (c = Ye([], {
951
954
  // 镜像容器
952
- mirrorContainer: e,
955
+ mirrorContainer: n,
953
956
  direction: "mixed",
954
957
  revertOnSpill: !0,
955
958
  // 判断是否可移动
956
- moves(o, c, g) {
957
- let I = !0;
958
- return o.classList.contains("no-drag") && (I = !1), o.componentInstance && (I = !!g.getAttribute("data-dragging-icon")), I;
959
+ moves(o, g, d) {
960
+ let B = !0;
961
+ return o.classList.contains("no-drag") && (B = !1), o.componentInstance && (B = !!d.getAttribute("data-dragging-icon")), B;
959
962
  },
960
963
  // 判断是否可拷贝
961
964
  copy(o) {
@@ -966,41 +969,41 @@ function Pn() {
966
969
  return o.componentInstance && o.componentInstance.value.getDraggingDisplayText ? o.componentInstance.value.getDraggingDisplayText() : o.innerText || "控件";
967
970
  },
968
971
  // 判断目标区域是否可接收拖拽的控件
969
- accepts(o, c, g) {
970
- const I = t(o, c, g), V = e.lastElementChild;
971
- return I ? V.className = V.className.replace("undroppable", "") : V.className.includes("undroppable") || (V.className += " undroppable"), I;
972
+ accepts(o, g, d) {
973
+ const B = b(o, g, d), O = n.lastElementChild;
974
+ return B ? O.className = O.className.replace("undroppable", "") : O.className.includes("undroppable") || (O.className += " undroppable"), B;
972
975
  }
973
- }).on("over", (o, c) => {
974
- c.className += " drag-over";
975
- }).on("out", (o, c) => {
976
- c.className = c.className.replace("drag-over", "").replace(" ", "");
977
- }).on("drop", (o, c, g, I) => {
978
- x(o, c, g, I);
979
- }).on("dragend", (o, c) => {
980
- B(o, c);
976
+ }).on("over", (o, g) => {
977
+ g.className += " drag-over";
978
+ }).on("out", (o, g) => {
979
+ g.className = g.className.replace("drag-over", "").replace(" ", "");
980
+ }).on("drop", (o, g, d, B) => {
981
+ k(o, g, d, B);
982
+ }).on("dragend", (o, g) => {
983
+ u(o, g);
981
984
  }));
982
985
  }
983
- function C(e, o) {
984
- if (!e)
986
+ function y(n, o) {
987
+ if (!n)
985
988
  return;
986
989
  if (o.noDragDrop)
987
- return e;
988
- const c = e.querySelector(`[data-dragref='${o.id}-container']`) || e;
989
- w && c && w.containers.push(c);
990
+ return n;
991
+ const g = n.querySelector(`[data-dragref='${o.id}-container']`) || n;
992
+ c && g && c.containers.push(g);
990
993
  }
991
- function a() {
992
- if (!w)
994
+ function l() {
995
+ if (!c)
993
996
  return;
994
- const e = document.getElementsByClassName("controlCategory");
995
- e && (w.containers = w.containers.filter(
997
+ const n = document.getElementsByClassName("controlCategory");
998
+ n && (c.containers = c.containers.filter(
996
999
  (o) => !o.className.includes("controlCategory")
997
- ), Array.from(e).forEach((o) => {
998
- w.containers.push(o);
1000
+ ), Array.from(n).forEach((o) => {
1001
+ c.containers.push(o);
999
1002
  }));
1000
1003
  }
1001
- return { attachComponents: C, attachToolbox: a, initializeDragula: b };
1004
+ return { attachComponents: y, attachToolbox: l, initializeDragula: s };
1002
1005
  }
1003
- const In = {
1006
+ const Mn = {
1004
1007
  id: { type: String, default: "" },
1005
1008
  componentId: { type: String, default: "" },
1006
1009
  type: { type: String, default: "" },
@@ -1015,22 +1018,20 @@ const In = {
1015
1018
  */
1016
1019
  modelValue: { type: Object },
1017
1020
  ignore: { type: Boolean, default: !1 }
1018
- }, F = {}, P = {}, A = {};
1019
- let Ye = !1;
1020
- function An() {
1021
- Ye || (Ye = !0, wt.registerDesigner(F, P, A), bt.registerDesigner(F, P, A), St.registerDesigner(F, P, A), Tt.registerDesigner(F, P, A), Et.registerDesigner(F, P, A), Ft.registerDesigner(F, P, A), Pt.registerDesigner(F, P, A), It.registerDesigner(F, P, A), At.registerDesigner(F, P, A), Mt.registerDesigner(F, P, A), Nt.registerDesigner(F, P, A), Bt.registerDesigner(F, P, A), xt.registerDesigner(F, P, A), kt.registerDesigner(F, P, A), Ot.registerDesigner(F, P, A), _t.registerDesigner(F, P), Lt.registerDesigner(F, P, A), Vt.registerDesigner(F, P, A), jt.registerDesigner(F, P, A), $t.registerDesigner(F, P, A), qt.registerDesigner(F, P, A), Ut.registerDesigner(F, P, A), Xt.registerDesigner(F, P, A), Ht.registerDesigner(F, P, A), Yt.registerDesigner(F, P, A), Wt.registerDesigner(F, P, A), Gt.registerDesigner(F, P, A), zt.registerDesigner(F, P, A), Jt.registerDesigner(F, P, A), Kt.registerDesigner(F, P, A), Qt.registerDesigner(F, P, A), Zt.registerDesigner(F, P, A), Rt.registerDesigner(F, P, A), nn.registerDesigner(F, P, A), on.registerDesigner(F, P, A), tn.registerDesigner(F, P, A), en.registerDesigner(F, P, A), rn.registerDesigner(F, P, A), an.registerDesigner(F, P, A), cn.registerDesigner(F, P, A), ln.registerDesigner(F, P, A), un.registerDesigner(F, P, A), sn.registerDesigner(F, P, A), fn.registerDesigner(F, P, A), pn.registerDesigner(F, P, A), mn.registerDesigner(F, P, A), Cn.registerDesigner(F, P, A), dn.registerDesigner(F, P, A), vn.registerDesigner(F, P, A), gn.registerDesigner(F, P, A), hn.registerDesigner(F, P, A), yn.registerDesigner(F, P, A), Dn.registerDesigner(F, P), bn.registerDesigner(F, P, A), wn.registerDesigner(F, P, A));
1021
+ }, S = {}, T = {}, P = {};
1022
+ let Ge = !1;
1023
+ function Nn() {
1024
+ Ge || (Ge = !0, St.registerDesigner(S, T, P), wt.registerDesigner(S, T, P), Tt.registerDesigner(S, T, P), Et.registerDesigner(S, T, P), Ft.registerDesigner(S, T, P), Pt.registerDesigner(S, T, P), It.registerDesigner(S, T, P), At.registerDesigner(S, T, P), Mt.registerDesigner(S, T, P), Nt.registerDesigner(S, T, P), Bt.registerDesigner(S, T, P), xt.registerDesigner(S, T, P), kt.registerDesigner(S, T, P), _t.registerDesigner(S, T, P), Lt.registerDesigner(S, T, P), Ot.registerDesigner(S, T), Vt.registerDesigner(S, T, P), jt.registerDesigner(S, T, P), $t.registerDesigner(S, T, P), Ut.registerDesigner(S, T, P), Ht.registerDesigner(S, T, P), qt.registerDesigner(S, T, P), Wt.registerDesigner(S, T, P), Xt.registerDesigner(S, T, P), Gt.registerDesigner(S, T, P), Yt.registerDesigner(S, T, P), zt.registerDesigner(S, T, P), Jt.registerDesigner(S, T, P), Qt.registerDesigner(S, T, P), Kt.registerDesigner(S, T, P), Zt.registerDesigner(S, T, P), Rt.registerDesigner(S, T, P), en.registerDesigner(S, T, P), on.registerDesigner(S, T, P), rn.registerDesigner(S, T, P), nn.registerDesigner(S, T, P), tn.registerDesigner(S, T, P), an.registerDesigner(S, T, P), cn.registerDesigner(S, T, P), ln.registerDesigner(S, T, P), un.registerDesigner(S, T, P), sn.registerDesigner(S, T, P), fn.registerDesigner(S, T, P), pn.registerDesigner(S, T, P), mn.registerDesigner(S, T, P), dn.registerDesigner(S, T, P), Dn.registerDesigner(S, T, P), vn.registerDesigner(S, T, P), gn.registerDesigner(S, T, P), hn.registerDesigner(S, T, P), yn.registerDesigner(S, T, P), Cn.registerDesigner(S, T, P), bn.registerDesigner(S, T), wn.registerDesigner(S, T, P), Sn.registerDesigner(S, T, P), Tn.registerDesigner(S, T, P));
1022
1025
  }
1023
- const Mn = {
1026
+ const Bn = {
1024
1027
  id: { type: String }
1025
- }, Nn = /* @__PURE__ */ Be({
1028
+ }, xn = /* @__PURE__ */ xe({
1026
1029
  name: "FDesignerPlaceholder",
1027
- props: Mn,
1030
+ props: Bn,
1028
1031
  emits: [],
1029
- setup(w) {
1030
- const f = ve(() => ({
1032
+ setup(A) {
1033
+ const c = ve(() => ({
1031
1034
  "drag-and-drop-alert": !0,
1032
- alert: !0,
1033
- "alert-info": !0,
1034
1035
  "no-drag": !0,
1035
1036
  "w-100": !0
1036
1037
  })), t = ve(() => ({
@@ -1038,351 +1039,363 @@ const Mn = {
1038
1039
  display: "flex",
1039
1040
  "justify-content": "center",
1040
1041
  "align-items": "center",
1041
- margin: 0
1042
+ margin: 0,
1043
+ padding: ".75rem 1.25rem",
1044
+ border: "1px solid transparent",
1045
+ "border-radius": "3px",
1046
+ color: "#315585",
1047
+ "background-color": "#dfedff",
1048
+ "border-color": "#d2e6ff"
1042
1049
  }));
1043
- return () => J("div", {
1044
- class: f.value,
1050
+ return () => z("div", {
1051
+ class: c.value,
1045
1052
  style: t.value,
1046
1053
  role: "alert",
1047
1054
  "data-noattach": "true",
1048
1055
  "data-position": "0"
1049
- }, [ht("拖拽组件到这里")]);
1056
+ }, [yt("拖拽组件到这里")]);
1050
1057
  }
1051
1058
  });
1052
- function Bn(w) {
1053
- return typeof w == "function" || Object.prototype.toString.call(w) === "[object Object]" && !Ct(w);
1059
+ function kn(A) {
1060
+ return typeof A == "function" || Object.prototype.toString.call(A) === "[object Object]" && !Dt(A);
1054
1061
  }
1055
- const Ne = /* @__PURE__ */ Be({
1062
+ const Be = /* @__PURE__ */ xe({
1056
1063
  name: "FDesignerItem",
1057
- props: In,
1064
+ props: Mn,
1058
1065
  emits: ["selectionChange"],
1059
- setup(w, f) {
1060
- const t = H(`${w.modelValue.id}-component`), D = H(w.canMove), B = H(w.canDelete), l = H(!1), h = H(w.modelValue), T = H(w.componentId || ""), p = H(""), x = H(""), b = H(), C = re("canvas-dragula"), a = H(), e = re("design-item-context"), o = {
1061
- designerItemElementRef: b,
1062
- componentInstance: a,
1063
- schema: h.value,
1064
- parent: e,
1065
- setupContext: f
1066
+ setup(A, c) {
1067
+ const t = X(`${A.modelValue.id}-component`), b = X(A.canMove), I = X(A.canDelete), u = X(!1), m = X(A.modelValue), C = X(A.componentId || ""), p = X(""), x = X(""), k = X(A.customClass), s = X(), y = ae("canvas-dragula"), l = X(), n = ae("design-item-context"), o = {
1068
+ designerItemElementRef: s,
1069
+ componentInstance: l,
1070
+ schema: m.value,
1071
+ parent: n,
1072
+ setupContext: c
1066
1073
  };
1067
1074
  ye("design-item-context", o);
1068
- const c = re("useFormSchema"), g = ve(() => {
1069
- const s = w.modelValue.appearance && w.modelValue.appearance.class || "", v = {
1075
+ const g = ae("useFormSchema"), d = ve(() => {
1076
+ const a = A.modelValue.appearance && A.modelValue.appearance.class || "";
1077
+ let w = {
1070
1078
  "farris-component": !0,
1071
1079
  // 受position-relative影响,整个容器的高度不能被撑起
1072
- "flex-fill": h.value.id == "root-component",
1073
- "position-relative": D.value && B.value,
1074
- "farris-nested": l.value,
1075
- "can-move": D.value,
1076
- "d-none": b.value && b.value.classList.contains("d-none")
1080
+ "flex-fill": m.value.id == "root-component",
1081
+ "position-relative": b.value && I.value,
1082
+ "farris-nested": u.value,
1083
+ "can-move": b.value,
1084
+ "d-none": s.value && s.value.classList.contains("d-none"),
1085
+ dgComponentSelected: s.value && s.value.classList.contains("dgComponentSelected"),
1086
+ dgComponentFocused: s.value && s.value.classList.contains("dgComponentFocused")
1077
1087
  };
1078
- return v[`farris-component-${h.value.type}`] = !0, s && s.split(" ").reduce((E, k) => (E[k] = !0, E), v), x.value && x.value.split(" ").reduce((E, k) => (E[k] = !0, E), v), v;
1079
- }), I = ve(() => {
1080
- const s = {}, v = w.modelValue.appearance && w.modelValue.appearance.style || "";
1081
- return v && v.split(";").reduce((E, k) => {
1082
- const [z, Y] = k.split(":");
1083
- return E[z] = Y, E;
1084
- }, s), p.value && p.value.split(";").reduce((E, k) => {
1085
- const [z, Y] = k.split(":");
1086
- return z && (E[z] = Y), E;
1087
- }, s), s;
1088
+ return w[`farris-component-${m.value.type}`] = !0, w = Ne(w, a), w = Ne(w, x.value), w = Ne(w, k.value), w;
1089
+ }), B = ve(() => {
1090
+ const a = {}, w = A.modelValue.appearance && A.modelValue.appearance.style || "";
1091
+ return w && w.split(";").reduce((F, Y) => {
1092
+ const [J, Q] = Y.split(":");
1093
+ return F[J] = Q, F;
1094
+ }, a), p.value && p.value.split(";").reduce((F, Y) => {
1095
+ const [J, Q] = Y.split(":");
1096
+ return J && (F[J] = Q), F;
1097
+ }, a), a;
1088
1098
  });
1089
- function V(s, v) {
1090
- var E, k, z;
1091
- if (s && (s.preventDefault(), s.stopPropagation()), a.value.triggerBelongedComponentToDeleteWhenDeleted) {
1092
- const Y = a.value.getBelongedComponentInstance(a);
1093
- if (Y && Y.parent) {
1094
- const R = H(Y == null ? void 0 : Y.parent), te = R.value.contents.findIndex((q) => q.id === Y.schema.id);
1095
- (k = (E = R.value) == null ? void 0 : E.contents) == null || k.splice(te, 1), (z = R.value) == null || z.updateDragAndDropRules(), de.value++;
1099
+ function O(a, w) {
1100
+ var J, Q, ee;
1101
+ if (a && (a.preventDefault(), a.stopPropagation()), l.value.triggerBelongedComponentToDeleteWhenDeleted) {
1102
+ const L = l.value.getBelongedComponentInstance(l);
1103
+ if (L && L.parent) {
1104
+ const ne = X(L == null ? void 0 : L.parent), oe = ne.value.contents.findIndex((fe) => fe.id === L.schema.id);
1105
+ (Q = (J = ne.value) == null ? void 0 : J.contents) == null || Q.splice(oe, 1), (ee = ne.value) == null || ee.updateDragAndDropRules(), de.value++;
1096
1106
  }
1097
1107
  return;
1098
1108
  }
1099
- if (e && e.schema.contents) {
1100
- const Y = e.schema.contents.findIndex((R) => R.id === v.id);
1101
- e.schema.contents.splice(Y, 1), e.componentInstance.value.updateDragAndDropRules(), de.value++;
1109
+ let F = n, Y = (L) => L.id === w.id;
1110
+ if (w.type === "component" && (F = n == null ? void 0 : n.parent, Y = (L) => L.component === w.id), F && F.schema.contents) {
1111
+ const L = F.schema.contents.findIndex(Y);
1112
+ F.schema.contents.splice(L, 1), F.componentInstance.value.updateDragAndDropRules(), de.value++, c.emit("selectionChange");
1102
1113
  }
1103
1114
  }
1104
- function X(s) {
1105
- return B.value && J("div", {
1115
+ function _(a) {
1116
+ return I.value && z("div", {
1106
1117
  role: "button",
1107
1118
  class: "btn component-settings-button",
1108
1119
  title: "删除",
1109
1120
  ref: "removeComponent",
1110
- onClick: (v) => {
1111
- V(v, s);
1121
+ onClick: (w) => {
1122
+ O(w, a);
1112
1123
  }
1113
- }, [J("i", {
1124
+ }, [z("i", {
1114
1125
  class: "f-icon f-icon-yxs_delete"
1115
1126
  }, null)]);
1116
1127
  }
1117
- function _() {
1118
- return D.value && J("div", {
1128
+ function D() {
1129
+ return b.value && z("div", {
1119
1130
  role: "button",
1120
1131
  class: "btn component-settings-button",
1121
1132
  title: "移动",
1122
1133
  ref: "moveComponent"
1123
- }, [J("i", {
1134
+ }, [z("i", {
1124
1135
  "data-dragging-icon": "true",
1125
1136
  class: "cmp_move f-icon f-icon-yxs_move"
1126
1137
  }, null)]);
1127
1138
  }
1128
- function y() {
1129
- return w.customButtons && !!w.customButtons.length && w.customButtons.map((s) => J("div", {
1139
+ function i() {
1140
+ return A.customButtons && !!A.customButtons.length && A.customButtons.map((a) => z("div", {
1130
1141
  role: "button",
1131
- class: `btn component-settings-button ${s.class || ""}`,
1132
- title: s.title,
1133
- ref: s.id
1134
- }, [J("i", {
1135
- class: s.icon
1142
+ class: `btn component-settings-button ${a.class || ""}`,
1143
+ title: a.title,
1144
+ ref: a.id
1145
+ }, [z("i", {
1146
+ class: a.icon
1136
1147
  }, null)]));
1137
1148
  }
1138
- function i(s) {
1139
- return J("div", {
1149
+ function E(a) {
1150
+ return z("div", {
1140
1151
  class: "component-btn-group",
1141
1152
  "data-noattach": "true"
1142
- }, [J("div", null, [X(s), _(), y()])]);
1153
+ }, [z("div", null, [_(a), D(), i()])]);
1143
1154
  }
1144
- function S(s, v, E, k) {
1145
- f.emit("selectionChange", s, v, E, k);
1155
+ function h(a, w, F, Y) {
1156
+ c.emit("selectionChange", a, w, F, Y);
1146
1157
  }
1147
- function m(s) {
1148
- let v;
1149
- const E = s.type, k = F[E], z = P[E], Y = z ? z(s) : {};
1150
- Y.customClass = w.ignore ? Y.customClass : "", Y.componentId = T.value;
1151
- const R = s.contents && s.contents.length === 0;
1152
- return s.contents && !!s.contents.length && k ? J(k, Ae({
1153
- ref: a
1154
- }, Y), Bn(v = s.contents.map((q) => J(Ne, {
1155
- key: q.id,
1156
- modelValue: q,
1157
- "onUpdate:modelValue": (pe) => q = pe,
1158
- componentId: T.value,
1159
- onSelectionChange: S
1160
- }, null))) ? v : {
1161
- default: () => [v]
1162
- }) : k ? R ? J(k, Ae({
1163
- ref: a
1164
- }, Y), {
1165
- default: () => [J(Nn, null, null)]
1166
- }) : J(k, Ae({
1167
- ref: a
1168
- }, Y), null) : J("div", null, null);
1158
+ function $(a) {
1159
+ let w;
1160
+ const F = a.type, Y = S[F], J = T[F], Q = J ? J(a) : {};
1161
+ Q.customClass = A.ignore ? Q.customClass : "", Q.componentId = C.value;
1162
+ const ee = a.contents && a.contents.length === 0;
1163
+ return a.contents && !!a.contents.length && Y ? z(Y, Ae({
1164
+ ref: l
1165
+ }, Q), kn(w = a.contents.map((ne) => z(Be, {
1166
+ key: ne.id,
1167
+ modelValue: ne,
1168
+ "onUpdate:modelValue": (oe) => ne = oe,
1169
+ componentId: C.value,
1170
+ onSelectionChange: h
1171
+ }, null))) ? w : {
1172
+ default: () => [w]
1173
+ }) : Y ? ee ? z(Y, Ae({
1174
+ ref: l
1175
+ }, Q), {
1176
+ default: () => [z(xn, null, null)]
1177
+ }) : z(Y, Ae({
1178
+ ref: l
1179
+ }, Q), null) : z("div", null, null);
1169
1180
  }
1170
- function W(s) {
1171
- if (s.type === "component-ref") {
1172
- let E = c == null ? void 0 : c.getFormSchema().module.components.find((k) => k.id === s.component);
1173
- if (E)
1174
- return J(Ne, {
1175
- key: E.id,
1176
- modelValue: E,
1177
- "onUpdate:modelValue": (k) => E = k,
1178
- componentId: E.id,
1179
- onSelectionChange: S
1181
+ function V(a) {
1182
+ if (a.type === "component-ref") {
1183
+ let F = g == null ? void 0 : g.getFormSchema().module.components.find((Y) => Y.id === a.component);
1184
+ if (F)
1185
+ return z(Be, {
1186
+ key: F.id,
1187
+ modelValue: F,
1188
+ "onUpdate:modelValue": (Y) => F = Y,
1189
+ componentId: F.id,
1190
+ onSelectionChange: h
1180
1191
  }, null);
1181
1192
  }
1182
1193
  }
1183
- Ge(() => w.modelValue, (s) => {
1184
- h.value = s, t.value = `${s.id}-component`;
1194
+ ze(() => A.modelValue, (a) => {
1195
+ m.value = a, t.value = `${a.id}-component`;
1185
1196
  });
1186
- function L(s) {
1187
- const v = s.target;
1188
- Je(v);
1197
+ function r(a) {
1198
+ const w = a.target;
1199
+ Qe(w);
1189
1200
  }
1190
- function r() {
1191
- var s, v;
1192
- (v = (s = h.value) == null ? void 0 : s.contents) != null && v.length && b.value && b.value.addEventListener("scroll", L);
1201
+ function U() {
1202
+ var a, w;
1203
+ (w = (a = m.value) == null ? void 0 : a.contents) != null && w.length && s.value && s.value.addEventListener("scroll", r);
1193
1204
  }
1194
- ze(() => {
1195
- if (b.value && a.value && a.value.schema) {
1196
- const s = b.value.querySelector(`[data-dragref='${a.value.schema.id}-container']`);
1197
- C && s && C.attachComponents(s, h.value), l.value = a.value.canNested !== void 0 ? a.value.canNested : l.value, B.value = a.value.canDelete !== void 0 ? a.value.canDelete : B.value, D.value = a.value.canMove !== void 0 ? a.value.canMove : D.value, p.value = a.value.styles || "", x.value = a.value.designerClass || "", b.value && (b.value.componentInstance = a, b.value.designItemContext = o);
1205
+ Je(() => {
1206
+ if (s.value && l.value && l.value.schema) {
1207
+ const a = s.value.querySelector(`[data-dragref='${l.value.schema.id}-container']`);
1208
+ y && a && y.attachComponents(a, m.value), u.value = l.value.canNested !== void 0 ? l.value.canNested : u.value, I.value = l.value.canDelete !== void 0 ? l.value.canDelete : I.value, b.value = l.value.canMove !== void 0 ? l.value.canMove : b.value, p.value = l.value.styles || "", x.value = l.value.designerClass || "", s.value && (s.value.componentInstance = l, s.value.designItemContext = o);
1198
1209
  }
1199
- r(), de.value++;
1200
- }), yt(() => {
1201
- b.value && b.value.removeEventListener("scroll", L);
1210
+ U(), de.value++;
1211
+ }), Ct(() => {
1212
+ s.value && s.value.removeEventListener("scroll", r);
1202
1213
  });
1203
- function j(s) {
1204
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((E) => E.classList.remove("dgComponentFocused")), s && (s.preventDefault(), s.stopPropagation());
1205
- const v = b.value;
1206
- if (v) {
1207
- const E = document.getElementsByClassName("dgComponentSelected");
1208
- if (!(E && E.length === 1 && E[0] === b.value) && (Array.from(E).forEach((z) => z.classList.remove("dgComponentSelected")), v.classList.add("dgComponentFocused"), f.emit("selectionChange", h.value.type, h.value, T.value, a.value), a.value.getDraggableDesignItemElement)) {
1209
- const z = a.value.getDraggableDesignItemElement(o);
1210
- z && z.value && z.value.classList.add("dgComponentSelected");
1214
+ function W(a) {
1215
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((F) => F.classList.remove("dgComponentFocused")), a && (a.preventDefault(), a.stopPropagation());
1216
+ const w = s.value;
1217
+ if (w) {
1218
+ const F = document.getElementsByClassName("dgComponentSelected");
1219
+ if (!(F && F.length === 1 && F[0] === s.value) && (Array.from(F).forEach((J) => J.classList.remove("dgComponentSelected")), w.classList.add("dgComponentFocused"), c.emit("selectionChange", m.value.type, m.value, C.value, l.value), l.value.getDraggableDesignItemElement)) {
1220
+ const J = l.value.getDraggableDesignItemElement(o);
1221
+ J && J.value && J.value.classList.add("dgComponentSelected");
1211
1222
  }
1212
1223
  }
1213
- L(s);
1224
+ r(a);
1214
1225
  }
1215
- return () => h.value.type === "component-ref" ? W(h.value) : J("div", {
1216
- id: `${h.value.id}-design-item`,
1217
- ref: b,
1218
- class: g.value,
1219
- style: I.value,
1220
- onClick: j
1221
- }, [i(h.value), m(h.value)]);
1226
+ return () => m.value.type === "component-ref" ? V(m.value) : z("div", {
1227
+ id: `${m.value.id}-design-item`,
1228
+ ref: s,
1229
+ class: d.value,
1230
+ style: B.value,
1231
+ onClick: W
1232
+ }, [E(m.value), $(m.value)]);
1222
1233
  }
1223
- }), jo = /* @__PURE__ */ Be({
1234
+ }), Ho = /* @__PURE__ */ xe({
1224
1235
  name: "FDesignerCanvas",
1225
- props: Tn,
1236
+ props: Fn,
1226
1237
  emits: ["init", "selectionChange", "canvasChanged"],
1227
- setup(w, f) {
1228
- const t = H(), D = H(), B = H(), l = H(), h = H(), T = Pn(), p = H(w.componentId);
1229
- An(), ye("canvas-dragula", T), ye("design-item-context", {
1230
- designerItemElementRef: l,
1231
- componentInstance: h,
1232
- schema: D.value,
1238
+ setup(A, c) {
1239
+ const t = X(), b = X(), I = X(), u = X(), m = X(), C = X(A.componentId), p = {
1240
+ eventsEditorUtils: ae("eventsEditorUtils"),
1241
+ formSchemaUtils: ae("useFormSchema"),
1242
+ formMetadataConverter: ae("formMetadataConverter"),
1243
+ designViewModelUtils: ae("designViewModelUtils"),
1244
+ controlCreatorUtils: ae("controlCreatorUtils"),
1245
+ metadataService: ae("Meatdata_Http_Service_Token"),
1246
+ schemaService: ae("schemaService")
1247
+ };
1248
+ ye("designer-host-service", p);
1249
+ const x = An(p);
1250
+ Nn(), ye("canvas-dragula", x), ye("design-item-context", {
1251
+ designerItemElementRef: u,
1252
+ componentInstance: m,
1253
+ schema: b.value,
1233
1254
  parent: void 0
1234
- }), ye("designer-host-service", {
1235
- eventsEditorUtils: re("eventsEditorUtils"),
1236
- formSchemaUtils: re("useFormSchema"),
1237
- formMetadataConverter: re("formMetadataConverter"),
1238
- designViewModelUtils: re("designViewModelUtils"),
1239
- controlCreatorUtils: re("controlCreatorUtils"),
1240
- metadataService: re("Meatdata_Http_Service_Token"),
1241
- schemaService: re("schemaService")
1242
1255
  });
1243
- const x = ve(() => ({
1256
+ const k = ve(() => ({
1244
1257
  "d-flex": !0,
1245
1258
  "flex-fill": !0,
1246
1259
  "flex-column": !0
1247
1260
  }));
1248
- ze(() => {
1249
- B.value && T.initializeDragula(B.value), t.value = w.modelValue, f.emit("init", T);
1250
- }), Ge(de, () => {
1251
- Je(B.value), f.emit("canvasChanged");
1261
+ Je(() => {
1262
+ I.value && x.initializeDragula(I.value), t.value = A.modelValue, c.emit("init", x);
1263
+ }), ze(de, () => {
1264
+ Qe(I.value), c.emit("canvasChanged");
1252
1265
  }, {
1253
1266
  flush: "post"
1254
1267
  });
1255
- function b(C, a, e, o) {
1256
- f.emit("selectionChange", C, a, e, o);
1268
+ function s(y, l, n, o) {
1269
+ c.emit("selectionChange", y, l, n, o);
1257
1270
  }
1258
- return () => J("div", {
1271
+ return () => z("div", {
1259
1272
  class: "editorDiv flex-fill h-100"
1260
- }, [J("div", {
1273
+ }, [z("div", {
1261
1274
  class: "editorPanel d-flex flex-fill flex-column PC"
1262
- }, [J("div", {
1263
- ref: B,
1264
- class: x.value
1265
- }, [t.value && J(Ne, {
1275
+ }, [z("div", {
1276
+ ref: I,
1277
+ class: k.value
1278
+ }, [t.value && z(Be, {
1266
1279
  modelValue: t.value,
1267
- "onUpdate:modelValue": (C) => t.value = C,
1268
- onSelectionChange: b,
1269
- componentId: p.value
1280
+ "onUpdate:modelValue": (y) => t.value = y,
1281
+ onSelectionChange: s,
1282
+ componentId: C.value
1270
1283
  }, null)])])]);
1271
1284
  }
1272
- }), xn = {}, kn = {};
1273
- function Qe(w) {
1274
- const { properties: f, title: t } = w, D = Object.keys(f).reduce((B, l) => (B[l] = f[l].type === "object" && f[l].properties ? Qe(f[l]) : Dt(f[l].default), B), {});
1275
- return D.id = `${t}-${Date.now()}`, D;
1285
+ }), _n = {}, On = {};
1286
+ function Ze(A) {
1287
+ const { properties: c, title: t, ignore: b } = A, I = b && Array.isArray(b), u = Object.keys(c).reduce((m, C) => ((!I || !b.find((p) => p == C)) && (m[C] = c[C].type === "object" && c[C].properties ? Ze(c[C]) : bt(c[C].default)), m), {});
1288
+ return (!I || !b.find((m) => m == "id")) && (u.id = `${t}-${Date.now()}`), u;
1276
1289
  }
1277
- function ge(w, f = {}) {
1278
- const t = xn[w];
1279
- if (t) {
1280
- let D = Qe(t);
1281
- const B = kn[w];
1282
- return D = B ? B({ getSchemaByType: ge }, D, f) : D, D;
1290
+ function ge(A, c = {}, t) {
1291
+ const b = _n[A];
1292
+ if (b) {
1293
+ let I = Ze(b);
1294
+ const u = On[A];
1295
+ return I = u ? u({ getSchemaByType: ge }, I, c, t) : I, I;
1283
1296
  }
1284
1297
  return null;
1285
1298
  }
1286
- function $o(w, f, t) {
1287
- var y;
1288
- function D() {
1299
+ function Xo(A, c, t) {
1300
+ var D;
1301
+ function b() {
1289
1302
  t != null && t.resolveComponentContext && t.resolveComponentContext();
1290
1303
  }
1291
- D();
1292
- const B = t && t.getStyles && t.getStyles() || "", l = t && t.getDesignerClass && t.getDesignerClass() || "", h = H();
1293
- function T() {
1294
- return (f == null ? void 0 : f.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1304
+ b();
1305
+ const I = t && t.getStyles && t.getStyles() || "", u = t && t.getDesignerClass && t.getDesignerClass() || "", m = X();
1306
+ function C() {
1307
+ return (c == null ? void 0 : c.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1295
1308
  }
1296
1309
  function p() {
1297
1310
  return !1;
1298
1311
  }
1299
1312
  function x() {
1300
- return (f == null ? void 0 : f.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1313
+ return (c == null ? void 0 : c.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
1301
1314
  }
1302
- function b() {
1303
- return (f == null ? void 0 : f.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1315
+ function k() {
1316
+ return (c == null ? void 0 : c.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
1304
1317
  }
1305
- function C(i) {
1318
+ function s(i) {
1306
1319
  if (!i || !i.value)
1307
1320
  return null;
1308
1321
  if (i.value.schema && i.value.schema.type === "component")
1309
1322
  return i.value;
1310
- const S = H(i == null ? void 0 : i.value.parent), m = C(S);
1311
- return m || null;
1323
+ const E = X(i == null ? void 0 : i.value.parent), h = s(E);
1324
+ return h || null;
1312
1325
  }
1313
- function a(i = f) {
1314
- const { componentInstance: S, designerItemElementRef: m } = i;
1315
- return !S || !S.value ? null : S.value.canMove ? m : a(i.parent);
1326
+ function y(i = c) {
1327
+ const { componentInstance: E, designerItemElementRef: h } = i;
1328
+ return !E || !E.value ? null : E.value.canMove ? h : y(i.parent);
1316
1329
  }
1317
- function e(i) {
1330
+ function l(i) {
1318
1331
  return !!t && t.canAccepts(i);
1319
1332
  }
1320
- function o() {
1321
- return (f == null ? void 0 : f.schema.label) || (f == null ? void 0 : f.schema.title) || (f == null ? void 0 : f.schema.name);
1333
+ function n() {
1334
+ return (c == null ? void 0 : c.schema.label) || (c == null ? void 0 : c.schema.title) || (c == null ? void 0 : c.schema.name);
1322
1335
  }
1323
- function c() {
1336
+ function o() {
1324
1337
  }
1325
- function g(i, S) {
1326
- S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
1338
+ function g(i, E) {
1339
+ E && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(E);
1327
1340
  }
1328
- function I(i) {
1329
- const { componentType: S } = i;
1330
- let m = ge(S, i);
1331
- t && t.onResolveNewComponentSchema && (m = t.onResolveNewComponentSchema(i, m));
1332
- const W = S.toLowerCase().replace("-", "_");
1333
- return m && !m.id && m.type === S && (m.id = `${W}_${Math.random().toString().slice(2, 6)}`), m;
1341
+ function d(i, E) {
1342
+ const { componentType: h } = i;
1343
+ let $ = ge(h, i, E);
1344
+ t && t.onResolveNewComponentSchema && ($ = t.onResolveNewComponentSchema(i, $));
1345
+ const V = h.toLowerCase().replace("-", "_");
1346
+ return $ && !$.id && $.type === h && ($.id = `${V}_${Math.random().toString().slice(2, 6)}`), $;
1334
1347
  }
1335
- function V(i, S) {
1336
- const m = String(i.getAttribute("data-controltype")), W = i.getAttribute("data-feature"), L = W ? JSON.parse(W) : {};
1337
- L.parentComponentInstance = h.value;
1338
- let r = ge(m, L);
1339
- t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i, S, r));
1340
- const j = m.toLowerCase().replace("-", "_");
1341
- return r && !r.id && r.type === m && (r.id = `${j}_${Math.random().toString().slice(2, 6)}`), r;
1348
+ function B(i, E) {
1349
+ const h = String(i.getAttribute("data-controltype")), $ = i.getAttribute("data-feature"), V = $ ? JSON.parse($) : {};
1350
+ V.parentComponentInstance = m.value;
1351
+ let r = ge(h, V);
1352
+ t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i, E, r));
1353
+ const U = h.toLowerCase().replace("-", "_");
1354
+ return r && !r.id && r.type === h && (r.id = `${U}_${Math.random().toString().slice(2, 6)}`), r;
1342
1355
  }
1343
- function X(i) {
1356
+ function O(i) {
1344
1357
  }
1345
1358
  function _(...i) {
1346
1359
  if (t && t.getPropsConfig)
1347
1360
  return t.getPropsConfig(...i);
1348
1361
  }
1349
- return h.value = {
1350
- canMove: T(),
1362
+ return m.value = {
1363
+ canMove: C(),
1351
1364
  canSelectParent: p(),
1352
1365
  canDelete: x(),
1353
- canNested: !b(),
1354
- contents: f == null ? void 0 : f.schema.contents,
1355
- elementRef: w,
1356
- parent: (y = f == null ? void 0 : f.parent) == null ? void 0 : y.componentInstance,
1357
- schema: f == null ? void 0 : f.schema,
1358
- styles: B,
1359
- designerClass: l,
1360
- canAccepts: e,
1361
- getBelongedComponentInstance: C,
1362
- getDraggableDesignItemElement: a,
1363
- getDraggingDisplayText: o,
1366
+ canNested: !k(),
1367
+ contents: c == null ? void 0 : c.schema.contents,
1368
+ elementRef: A,
1369
+ parent: (D = c == null ? void 0 : c.parent) == null ? void 0 : D.componentInstance,
1370
+ schema: c == null ? void 0 : c.schema,
1371
+ styles: I,
1372
+ designerClass: u,
1373
+ canAccepts: l,
1374
+ getBelongedComponentInstance: s,
1375
+ getDraggableDesignItemElement: y,
1376
+ getDraggingDisplayText: n,
1364
1377
  getPropConfig: _,
1365
- getDragScopeElement: c,
1378
+ getDragScopeElement: o,
1366
1379
  onAcceptMovedChildElement: g,
1367
- onAcceptNewChildElement: V,
1368
- onChildElementMovedOut: X,
1369
- addNewChildComponentSchema: I,
1370
- updateDragAndDropRules: D,
1371
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || H(!1),
1372
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || H(!1)
1373
- }, h;
1380
+ onAcceptNewChildElement: B,
1381
+ onChildElementMovedOut: O,
1382
+ addNewChildComponentSchema: d,
1383
+ updateDragAndDropRules: b,
1384
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || X(!1),
1385
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || X(!1)
1386
+ }, m;
1374
1387
  }
1375
- function Uo(w, f, t) {
1376
- var y;
1377
- function D() {
1388
+ function Wo(A, c, t) {
1389
+ var D;
1390
+ function b() {
1378
1391
  t != null && t.resolveComponentContext && t.resolveComponentContext();
1379
1392
  }
1380
- D();
1381
- const B = t && t.getStyles && t.getStyles() || "", l = H();
1382
- function h() {
1393
+ b();
1394
+ const I = t && t.getStyles && t.getStyles() || "", u = X();
1395
+ function m() {
1383
1396
  return t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
1384
1397
  }
1385
- function T() {
1398
+ function C() {
1386
1399
  return !1;
1387
1400
  }
1388
1401
  function p() {
@@ -1391,80 +1404,80 @@ function Uo(w, f, t) {
1391
1404
  function x() {
1392
1405
  return t && t.checkCanAddComponent ? t.checkCanAddComponent() : !0;
1393
1406
  }
1394
- function b() {
1407
+ function k() {
1395
1408
  return !0;
1396
1409
  }
1397
- function C(i) {
1410
+ function s(i) {
1398
1411
  if (!i || !i.value)
1399
1412
  return null;
1400
- const S = H(i == null ? void 0 : i.value.parent), m = C(S);
1401
- return m || null;
1413
+ const E = X(i == null ? void 0 : i.value.parent), h = s(E);
1414
+ return h || null;
1402
1415
  }
1403
- function a(i = f) {
1404
- const { componentInstance: S, designerItemElementRef: m } = i;
1405
- return !S || !S.value ? null : S.value.canMove || S.value.canAdd || S.value.canDelete ? m : a(i.parent);
1416
+ function y(i = c) {
1417
+ const { componentInstance: E, designerItemElementRef: h } = i;
1418
+ return !E || !E.value ? null : E.value.canMove || E.value.canAdd || E.value.canDelete ? h : y(i.parent);
1406
1419
  }
1407
- function e(i) {
1420
+ function l(i) {
1408
1421
  return !!t && t.canAccepts(i);
1409
1422
  }
1410
- function o() {
1411
- return (f == null ? void 0 : f.schema.label) || (f == null ? void 0 : f.schema.title) || (f == null ? void 0 : f.schema.name);
1423
+ function n() {
1424
+ return (c == null ? void 0 : c.schema.label) || (c == null ? void 0 : c.schema.title) || (c == null ? void 0 : c.schema.name);
1412
1425
  }
1413
- function c() {
1426
+ function o() {
1414
1427
  }
1415
- function g(i, S) {
1416
- S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
1428
+ function g(i, E) {
1429
+ E && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(E);
1417
1430
  }
1418
- function I(i) {
1419
- const { componentType: S } = i;
1420
- let m = ge(S, i);
1421
- t && t.onResolveNewComponentSchema && (m = t.onResolveNewComponentSchema(i, m));
1422
- const W = S.toLowerCase().replace("-", "_");
1423
- return m && !m.id && m.type === S && (m.id = `${W}_${Math.random().toString().slice(2, 6)}`), m;
1431
+ function d(i) {
1432
+ const { componentType: E } = i;
1433
+ let h = ge(E, i);
1434
+ t && t.onResolveNewComponentSchema && (h = t.onResolveNewComponentSchema(i, h));
1435
+ const $ = E.toLowerCase().replace("-", "_");
1436
+ return h && !h.id && h.type === E && (h.id = `${$}_${Math.random().toString().slice(2, 6)}`), h;
1424
1437
  }
1425
- function V(i, S) {
1426
- const m = String(i.getAttribute("data-controltype")), W = i.getAttribute("data-feature"), L = W ? JSON.parse(W) : {};
1427
- L.parentComponentInstance = l.value;
1428
- let r = ge(m, L);
1429
- t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i, S, r));
1430
- const j = m.toLowerCase().replace("-", "_");
1431
- return r && !r.id && r.type === m && (r.id = `${j}_${Math.random().toString().slice(2, 6)}`), r;
1438
+ function B(i, E) {
1439
+ const h = String(i.getAttribute("data-controltype")), $ = i.getAttribute("data-feature"), V = $ ? JSON.parse($) : {};
1440
+ V.parentComponentInstance = u.value;
1441
+ let r = ge(h, V);
1442
+ t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(i, E, r));
1443
+ const U = h.toLowerCase().replace("-", "_");
1444
+ return r && !r.id && r.type === h && (r.id = `${U}_${Math.random().toString().slice(2, 6)}`), r;
1432
1445
  }
1433
- function X(i) {
1446
+ function O(i) {
1434
1447
  }
1435
1448
  function _(...i) {
1436
1449
  return t && t.getPropsConfig ? t.getPropsConfig(...i) : [];
1437
1450
  }
1438
- return l.value = {
1439
- canMove: h(),
1440
- canSelectParent: T(),
1451
+ return u.value = {
1452
+ canMove: m(),
1453
+ canSelectParent: C(),
1441
1454
  canAdd: x(),
1442
1455
  canDelete: p(),
1443
- canNested: !b(),
1456
+ canNested: !k(),
1444
1457
  contents: [],
1445
- elementRef: w,
1446
- parent: (y = f.parent) == null ? void 0 : y.componentInstance,
1447
- schema: f.schema,
1448
- styles: B,
1449
- canAccepts: e,
1450
- getBelongedComponentInstance: C,
1451
- getDraggableDesignItemElement: a,
1452
- getDraggingDisplayText: o,
1458
+ elementRef: A,
1459
+ parent: (D = c.parent) == null ? void 0 : D.componentInstance,
1460
+ schema: c.schema,
1461
+ styles: I,
1462
+ canAccepts: l,
1463
+ getBelongedComponentInstance: s,
1464
+ getDraggableDesignItemElement: y,
1465
+ getDraggingDisplayText: n,
1453
1466
  getPropConfig: _,
1454
- getDragScopeElement: c,
1467
+ getDragScopeElement: o,
1455
1468
  onAcceptMovedChildElement: g,
1456
- onAcceptNewChildElement: V,
1457
- onChildElementMovedOut: X,
1458
- addNewChildComponentSchema: I,
1459
- updateDragAndDropRules: D,
1460
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || H(!1),
1461
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || H(!1)
1462
- }, l;
1469
+ onAcceptNewChildElement: B,
1470
+ onChildElementMovedOut: O,
1471
+ addNewChildComponentSchema: d,
1472
+ updateDragAndDropRules: b,
1473
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || X(!1),
1474
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || X(!1)
1475
+ }, u;
1463
1476
  }
1464
1477
  export {
1465
- jo as FDesignerCanvas,
1466
- Ne as FDesignerItem,
1467
- Tn as designerCanvasProps,
1468
- $o as useDesignerComponent,
1469
- Uo as useDesignerInnerComponent
1478
+ Ho as FDesignerCanvas,
1479
+ Be as FDesignerItem,
1480
+ Fn as designerCanvasProps,
1481
+ Xo as useDesignerComponent,
1482
+ Wo as useDesignerInnerComponent
1470
1483
  };