@farris/ui-vue 1.3.0 → 1.3.1

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