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