@farris/ui-vue 1.2.9 → 1.3.0

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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,98 +1,98 @@
1
- var Oe = Object.defineProperty;
2
- var $e = (n, e, t) => e in n ? Oe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var O = (n, e, t) => $e(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as z, ref as M, computed as F, watch as G, createVNode as b, createTextVNode as Q, getCurrentInstance as ve, onMounted as H, onUnmounted as ie, inject as V, provide as Ne, onBeforeUnmount as _e, withModifiers as Fe } from "vue";
5
- import { cloneDeep as Le } from "lodash-es";
6
- import Ve from "../response-toolbar/index.esm.js";
7
- import { getCustomClass as Y, withInstall as We } from "../common/index.esm.js";
8
- import { useDesignerInnerComponent as Ce } from "../designer-canvas/index.esm.js";
9
- const ae = {}, we = {};
1
+ var Ne = Object.defineProperty;
2
+ var _e = (n, e, t) => e in n ? Ne(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var O = (n, e, t) => _e(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as z, ref as M, computed as F, watch as G, createVNode as b, createTextVNode as Q, getCurrentInstance as Ce, onMounted as H, onUnmounted as ie, inject as V, provide as Fe, onBeforeUnmount as Le, withModifiers as Ve } from "vue";
5
+ import { isPlainObject as ge, cloneDeep as we } from "lodash-es";
6
+ import We from "../response-toolbar/index.esm.js";
7
+ import { getCustomClass as Y, withInstall as Ue } from "../common/index.esm.js";
8
+ import { useDesignerInnerComponent as Pe } from "../designer-canvas/index.esm.js";
9
+ const ae = {}, Te = {};
10
10
  function ce(n) {
11
- const { properties: e, title: t, ignore: r } = n, u = r && Array.isArray(r), h = Object.keys(e).reduce((g, D) => ((!u || !r.find((S) => S == D)) && (g[D] = e[D].type === "object" && e[D].properties ? ce(e[D]) : Le(e[D].default)), g), {});
12
- return (!u || !r.find((g) => g == "id")) && (h.id = `${t}-${Date.now()}`), h;
11
+ const { properties: e, title: t, ignore: s } = n, c = s && Array.isArray(s), g = Object.keys(e).reduce((d, P) => ((!c || !s.find((S) => S == P)) && (d[P] = e[P].type === "object" && e[P].properties ? ce(e[P]) : we(e[P].default)), d), {});
12
+ return (!c || !s.find((d) => d == "id")) && (g.id = `${t}-${Date.now()}`), g;
13
13
  }
14
14
  function U(n, e = {}, t) {
15
- const r = ae[n];
16
- if (r) {
17
- let u = ce(r);
18
- const h = we[n];
19
- return u = h ? h({ getSchemaByType: U }, u, e, t) : u, u;
15
+ const s = ae[n];
16
+ if (s) {
17
+ let c = ce(s);
18
+ const g = Te[n];
19
+ return c = g ? g({ getSchemaByType: U }, c, e, t) : c, c;
20
20
  }
21
21
  return null;
22
22
  }
23
- function Ue(n, e) {
23
+ function qe(n, e) {
24
24
  const t = ce(e);
25
- return Object.keys(n).reduce((r, u) => (r[u] && typeof r[u] == "object" ? Object.assign(r[u], n[u]) : r[u] = n[u], r), t), t;
25
+ return Object.keys(n).reduce((s, c) => (s[c] && ge(s[c]) && ge(n[c]) ? Object.assign(s[c], n[c]) : s[c] = n[c], s), t), t;
26
26
  }
27
- function qe(n, e) {
28
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
29
- if (e.has(u)) {
30
- const h = e.get(u);
31
- if (typeof h == "string")
32
- r[h] = n[u];
27
+ function He(n, e) {
28
+ return Object.keys(n).filter((s) => n[s] != null).reduce((s, c) => {
29
+ if (e.has(c)) {
30
+ const g = e.get(c);
31
+ if (typeof g == "string")
32
+ s[g] = n[c];
33
33
  else {
34
- const g = h(u, n[u], n);
35
- Object.assign(r, g);
34
+ const d = g(c, n[c], n);
35
+ Object.assign(s, d);
36
36
  }
37
37
  } else
38
- r[u] = n[u];
39
- return r;
38
+ s[c] = n[c];
39
+ return s;
40
40
  }, {});
41
41
  }
42
- function He(n, e, t = /* @__PURE__ */ new Map()) {
43
- const r = Ue(n, e);
44
- return qe(r, t);
42
+ function ze(n, e, t = /* @__PURE__ */ new Map()) {
43
+ const s = qe(n, e);
44
+ return He(s, t);
45
45
  }
46
- function ze(n = {}) {
47
- function e(y, T, l, i) {
48
- if (typeof l == "number")
49
- return i[y].length === l;
50
- if (typeof l == "object") {
51
- const d = Object.keys(l)[0], c = l[d];
52
- if (d === "not")
53
- return Number(i[y].length) !== Number(c);
54
- if (d === "moreThan")
55
- return Number(i[y].length) >= Number(c);
56
- if (d === "lessThan")
57
- return Number(i[y].length) <= Number(c);
46
+ function Ge(n = {}) {
47
+ function e(y, T, p, i) {
48
+ if (typeof p == "number")
49
+ return i[y].length === p;
50
+ if (typeof p == "object") {
51
+ const f = Object.keys(p)[0], l = p[f];
52
+ if (f === "not")
53
+ return Number(i[y].length) !== Number(l);
54
+ if (f === "moreThan")
55
+ return Number(i[y].length) >= Number(l);
56
+ if (f === "lessThan")
57
+ return Number(i[y].length) <= Number(l);
58
58
  }
59
59
  return !1;
60
60
  }
61
- function t(y, T, l, i) {
62
- return i[y] && i[y].propertyValue && String(i[y].propertyValue.value) === String(l);
61
+ function t(y, T, p, i) {
62
+ return i[y] && i[y].propertyValue && String(i[y].propertyValue.value) === String(p);
63
63
  }
64
- const r = /* @__PURE__ */ new Map([
64
+ const s = /* @__PURE__ */ new Map([
65
65
  ["length", e],
66
66
  ["getProperty", t]
67
67
  ]);
68
- Object.keys(n).reduce((y, T) => (y.set(T, n[T]), y), r);
69
- function u(y, T) {
70
- const l = y;
71
- return typeof T == "number" ? [{ target: l, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: l, operator: "getProperty", param: y, value: !!T }] : typeof T == "object" ? Object.keys(T).map((i) => {
68
+ Object.keys(n).reduce((y, T) => (y.set(T, n[T]), y), s);
69
+ function c(y, T) {
70
+ const p = y;
71
+ return typeof T == "number" ? [{ target: p, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: p, operator: "getProperty", param: y, value: !!T }] : typeof T == "object" ? Object.keys(T).map((i) => {
72
72
  if (i === "length")
73
- return { target: l, operator: "length", param: null, value: T[i] };
74
- const d = i, c = T[i];
75
- return { target: l, operator: "getProperty", param: d, value: c };
73
+ return { target: p, operator: "length", param: null, value: T[i] };
74
+ const f = i, l = T[i];
75
+ return { target: p, operator: "getProperty", param: f, value: l };
76
76
  }) : [];
77
77
  }
78
- function h(y) {
79
- return Object.keys(y).reduce((l, i) => {
80
- const d = u(i, y[i]);
81
- return l.push(...d), l;
78
+ function g(y) {
79
+ return Object.keys(y).reduce((p, i) => {
80
+ const f = c(i, y[i]);
81
+ return p.push(...f), p;
82
82
  }, []);
83
83
  }
84
- function g(y, T) {
85
- if (r.has(y.operator)) {
86
- const l = r.get(y.operator);
87
- return l && l(y.target, y.param, y.value, T) || !1;
84
+ function d(y, T) {
85
+ if (s.has(y.operator)) {
86
+ const p = s.get(y.operator);
87
+ return p && p(y.target, y.param, y.value, T) || !1;
88
88
  }
89
89
  return !1;
90
90
  }
91
- function D(y, T) {
92
- return h(y).reduce((d, c) => d && g(c, T), !0);
91
+ function P(y, T) {
92
+ return g(y).reduce((f, l) => f && d(l, T), !0);
93
93
  }
94
94
  function S(y, T) {
95
- const l = Object.keys(y), i = l.includes("allOf"), d = l.includes("anyOf"), c = i || d, j = (c ? y[c ? i ? "allOf" : "anyOf" : "allOf"] : [y]).map((P) => D(P, T));
95
+ const p = Object.keys(y), i = p.includes("allOf"), f = p.includes("anyOf"), l = i || f, j = (l ? y[l ? i ? "allOf" : "anyOf" : "allOf"] : [y]).map((D) => P(D, T));
96
96
  return i ? !j.includes(!1) : j.includes(!0);
97
97
  }
98
98
  return { parseValueSchema: S };
@@ -134,25 +134,39 @@ const K = {
134
134
  uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
135
135
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
136
136
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
138
- }, Te = {}, Ge = {};
139
- ze();
140
- function le(n, e, t = /* @__PURE__ */ new Map(), r = (g, D, S) => D, u = {}, h = (g) => g) {
141
- return ae[e.title] = e, we[e.title] = r, Te[e.title] = u, Ge[e.title] = h, (g = {}) => {
142
- const D = He(g, e, t), S = Object.keys(n).reduce((y, T) => (y[T] = n[T].default, y), {});
143
- return Object.assign(S, D);
137
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
138
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
139
+ }, De = {}, Je = {};
140
+ Ge();
141
+ function le(n, e, t = /* @__PURE__ */ new Map(), s = (d, P, S) => P, c = {}, g = (d) => d) {
142
+ return ae[e.title] = e, Te[e.title] = s, De[e.title] = c, Je[e.title] = g, (d = {}) => {
143
+ const P = ze(d, e, t), S = Object.keys(n).reduce((y, T) => (y[T] = n[T].default, y), {});
144
+ return Object.assign(S, P);
144
145
  };
145
146
  }
146
- function Pe(n, e) {
147
+ function Se(n, e) {
147
148
  return { customClass: e.class, customStyle: e.style };
148
149
  }
149
- function Je(n, e) {
150
+ function Qe(n, e) {
150
151
  return { buttons: e.buttons };
151
152
  }
152
- const Qe = /* @__PURE__ */ new Map([
153
- ["appearance", Pe],
154
- ["toolbar", Je]
155
- ]), Xe = "https://json-schema.org/draft/2020-12/schema", Ye = "https://farris-design.gitee.io/page-header.schema.json", Ze = "page-header", Ke = "A Farris Container Component", et = "object", tt = {
153
+ function Xe() {
154
+ function n(e, t) {
155
+ var P;
156
+ const s = (P = e.toolbar) == null ? void 0 : P.buttons;
157
+ if (!s || s.length < 1)
158
+ return null;
159
+ const [c, g] = t.payloads, d = s.find((S) => S.id === g);
160
+ return d ? d.onClick || d.click : null;
161
+ }
162
+ return {
163
+ resolve: n
164
+ };
165
+ }
166
+ const Ye = /* @__PURE__ */ new Map([
167
+ ["appearance", Se],
168
+ ["toolbar", Qe]
169
+ ]), Ze = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/page-header.schema.json", et = "page-header", tt = "A Farris Container Component", nt = "object", ot = {
156
170
  id: {
157
171
  description: "The unique identifier for a Page Header",
158
172
  type: "string"
@@ -260,15 +274,15 @@ const Qe = /* @__PURE__ */ new Map([
260
274
  type: "boolean",
261
275
  default: !1
262
276
  }
263
- }, nt = {
264
- $schema: Xe,
265
- $id: Ye,
266
- title: Ze,
267
- description: Ke,
268
- type: et,
269
- properties: tt
277
+ }, rt = {
278
+ $schema: Ze,
279
+ $id: Ke,
280
+ title: et,
281
+ description: tt,
282
+ type: nt,
283
+ properties: ot
270
284
  };
271
- function ot(n, e, t) {
285
+ function st(n, e, t) {
272
286
  return e.title = "标题", e;
273
287
  }
274
288
  const pe = {
@@ -300,61 +314,61 @@ const pe = {
300
314
  prePaginationDisabled: { type: Boolean, default: !0 },
301
315
  /** 向后翻页是否禁用 */
302
316
  nextPaginationDisabled: { type: Boolean, default: !1 }
303
- }, st = Object.assign({}, pe, {
317
+ }, it = Object.assign({}, pe, {
304
318
  componentId: { type: String, default: "" }
305
- }), ge = le(pe, nt, Qe, ot), oe = /* @__PURE__ */ z({
319
+ }), me = le(pe, rt, Ye, st), at = Xe(), oe = /* @__PURE__ */ z({
306
320
  name: "FPageHeader",
307
321
  props: pe,
308
322
  emits: ["Click", "PrePaginationClick", "NextPaginationClick"],
309
323
  setup(n, e) {
310
- const t = M(n.buttons), r = (P, A) => {
311
- e.emit("Click", P, A);
324
+ const t = M(n.buttons), s = (D, A) => {
325
+ e.emit("Click", D, A);
312
326
  };
313
- function u(P, A) {
314
- P && A && A.split(" ").reduce((v, f) => (v[f] = !0, v), P);
327
+ function c(D, A) {
328
+ D && A && A.split(" ").reduce((v, m) => (v[m] = !0, v), D);
315
329
  }
316
- const h = F(() => {
317
- const P = {
330
+ const g = F(() => {
331
+ const D = {
318
332
  "f-page-header": !0
319
333
  };
320
- return u(P, n.customClass), P;
321
- }), g = F(() => {
322
- const P = {
334
+ return c(D, n.customClass), D;
335
+ }), d = F(() => {
336
+ const D = {
323
337
  "f-title-icon": !0
324
338
  };
325
- return u(P, n.iconClass), P;
326
- }), D = F(() => {
327
- const P = {
339
+ return c(D, n.iconClass), D;
340
+ }), P = F(() => {
341
+ const D = {
328
342
  "f-icon": !0
329
343
  };
330
- return u(P, n.icon), P;
344
+ return c(D, n.icon), D;
331
345
  }), S = F(() => {
332
- const P = {
346
+ const D = {
333
347
  "f-title": !0
334
348
  };
335
- return u(P, n.titleContentClass), P;
349
+ return c(D, n.titleContentClass), D;
336
350
  }), y = F(() => {
337
- const P = {
351
+ const D = {
338
352
  "f-content": !0
339
353
  };
340
- return u(P, n.contentClass), P;
354
+ return c(D, n.contentClass), D;
341
355
  }), T = F(() => {
342
- const P = {
356
+ const D = {
343
357
  "f-content": !0
344
358
  };
345
- return u(P, n.downContentClass), P;
346
- }), l = F(() => ({
359
+ return c(D, n.downContentClass), D;
360
+ }), p = F(() => ({
347
361
  "f-icon f-icon-arrow-w": !0,
348
362
  "f-state-disabled": n.prePaginationDisabled
349
363
  })), i = F(() => ({
350
364
  "f-icon f-icon-arrow-e": !0,
351
365
  "f-state-disabled": n.nextPaginationDisabled
352
366
  }));
353
- function d(P) {
354
- n.prePaginationDisabled || e.emit("PrePaginationClick", P);
367
+ function f(D) {
368
+ n.prePaginationDisabled || e.emit("PrePaginationClick", D);
355
369
  }
356
- function c(P) {
357
- n.nextPaginationDisabled || e.emit("NextPaginationClick", P);
370
+ function l(D) {
371
+ n.nextPaginationDisabled || e.emit("NextPaginationClick", D);
358
372
  }
359
373
  function C() {
360
374
  return e.slots.titleContent ? b("div", {
@@ -362,9 +376,9 @@ const pe = {
362
376
  }, [Q(" "), e.slots.titleContent()]) : b("div", {
363
377
  class: "f-title"
364
378
  }, [n.showIcon && n.icon ? b("span", {
365
- class: g.value
379
+ class: d.value
366
380
  }, [b("i", {
367
- class: D.value
381
+ class: P.value
368
382
  }, null)]) : "", b("h4", {
369
383
  class: "f-title-text"
370
384
  }, [n.title]), n.subTitle ? b("h5", {
@@ -372,11 +386,11 @@ const pe = {
372
386
  }, [n.subTitle]) : "", n.showPagination ? b("div", {
373
387
  class: "f-title-pagination"
374
388
  }, [b("span", {
375
- class: l.value,
376
- onClick: d
389
+ class: p.value,
390
+ onClick: f
377
391
  }, null), b("span", {
378
392
  class: i.value,
379
- onClick: c
393
+ onClick: l
380
394
  }, null)]) : ""]);
381
395
  }
382
396
  function w() {
@@ -386,10 +400,10 @@ const pe = {
386
400
  }
387
401
  function j() {
388
402
  if (n.buttons && n.buttons.length > 0)
389
- return b(Ve, {
403
+ return b(We, {
390
404
  customClass: n.buttonClass,
391
405
  items: t.value,
392
- onClick: r
406
+ onClick: s
393
407
  }, null);
394
408
  }
395
409
  function I() {
@@ -397,25 +411,25 @@ const pe = {
397
411
  class: T.value
398
412
  }, [Q(" "), e.slots.downContent()]) : "";
399
413
  }
400
- return G(() => n.buttons, (P) => {
401
- t.value = P;
414
+ return G(() => n.buttons, (D) => {
415
+ t.value = D;
402
416
  }, {
403
417
  deep: !0
404
418
  }), () => b("div", {
405
- class: h.value
419
+ class: g.value
406
420
  }, [b("nav", {
407
421
  class: "f-page-header-base"
408
422
  }, [C(), w(), j()]), I()]);
409
423
  }
410
424
  });
411
- function rt(n, e, t) {
425
+ function ct(n, e, t) {
412
426
  var $;
413
- function r() {
427
+ function s() {
414
428
  t != null && t.resolveComponentContext && t.resolveComponentContext();
415
429
  }
416
- r();
417
- const u = t && t.getStyles && t.getStyles() || "", h = t && t.getDesignerClass && t.getDesignerClass() || "", g = M();
418
- function D() {
430
+ s();
431
+ const c = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", d = M();
432
+ function P() {
419
433
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
420
434
  }
421
435
  function S() {
@@ -427,52 +441,52 @@ function rt(n, e, t) {
427
441
  function T() {
428
442
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
429
443
  }
430
- function l(v) {
444
+ function p(v) {
431
445
  if (!v || !v.value)
432
446
  return null;
433
447
  if (v.value.schema && v.value.schema.type === "component")
434
448
  return v.value;
435
- const f = M(v == null ? void 0 : v.value.parent), x = l(f);
449
+ const m = M(v == null ? void 0 : v.value.parent), x = p(m);
436
450
  return x || null;
437
451
  }
438
452
  function i(v = e) {
439
- const { componentInstance: f, designerItemElementRef: x } = v;
440
- return !f || !f.value ? null : f.value.canMove ? x : i(v.parent);
453
+ const { componentInstance: m, designerItemElementRef: x } = v;
454
+ return !m || !m.value ? null : m.value.canMove ? x : i(v.parent);
441
455
  }
442
- function d(v) {
456
+ function f(v) {
443
457
  return !!t && t.canAccepts(v);
444
458
  }
445
- function c() {
459
+ function l() {
446
460
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
447
461
  }
448
462
  function C() {
449
463
  }
450
- function w(v, f) {
451
- f && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(f);
464
+ function w(v, m) {
465
+ m && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(m);
452
466
  }
453
- function j(v, f) {
467
+ function j(v, m) {
454
468
  const { componentType: x } = v;
455
- let k = U(x, v, f);
469
+ let k = U(x, v, m);
456
470
  t && t.onResolveNewComponentSchema && (k = t.onResolveNewComponentSchema(v, k));
457
- const p = x.toLowerCase().replace("-", "_");
458
- return k && !k.id && k.type === x && (k.id = `${p}_${Math.random().toString().slice(2, 6)}`), k;
459
- }
460
- function I(v, f) {
461
- const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
462
- p.parentComponentInstance = g.value;
463
- let s = U(x, p);
464
- t && t.onAcceptNewChildElement && (s = t.onAcceptNewChildElement(v, f, s));
471
+ const u = x.toLowerCase().replace("-", "_");
472
+ return k && !k.id && k.type === x && (k.id = `${u}_${Math.random().toString().slice(2, 6)}`), k;
473
+ }
474
+ function I(v, m) {
475
+ const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), u = k ? JSON.parse(k) : {};
476
+ u.parentComponentInstance = d.value;
477
+ let r = U(x, u);
478
+ t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(v, m, r));
465
479
  const o = x.toLowerCase().replace("-", "_");
466
- return s && !s.id && s.type === x && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
480
+ return r && !r.id && r.type === x && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
467
481
  }
468
- function P(v) {
482
+ function D(v) {
469
483
  }
470
484
  function A(...v) {
471
485
  if (t && t.getPropsConfig)
472
486
  return t.getPropsConfig(...v);
473
487
  }
474
- return g.value = {
475
- canMove: D(),
488
+ return d.value = {
489
+ canMove: P(),
476
490
  canSelectParent: S(),
477
491
  canDelete: y(),
478
492
  canNested: !T(),
@@ -480,22 +494,22 @@ function rt(n, e, t) {
480
494
  elementRef: n,
481
495
  parent: ($ = e == null ? void 0 : e.parent) == null ? void 0 : $.componentInstance,
482
496
  schema: e == null ? void 0 : e.schema,
483
- styles: u,
484
- designerClass: h,
485
- canAccepts: d,
486
- getBelongedComponentInstance: l,
497
+ styles: c,
498
+ designerClass: g,
499
+ canAccepts: f,
500
+ getBelongedComponentInstance: p,
487
501
  getDraggableDesignItemElement: i,
488
- getDraggingDisplayText: c,
502
+ getDraggingDisplayText: l,
489
503
  getPropConfig: A,
490
504
  getDragScopeElement: C,
491
505
  onAcceptMovedChildElement: w,
492
506
  onAcceptNewChildElement: I,
493
- onChildElementMovedOut: P,
507
+ onChildElementMovedOut: D,
494
508
  addNewChildComponentSchema: j,
495
- updateDragAndDropRules: r,
509
+ updateDragAndDropRules: s,
496
510
  triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
497
511
  triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
498
- }, g;
512
+ }, d;
499
513
  }
500
514
  class ee {
501
515
  constructor(e, t) {
@@ -514,8 +528,8 @@ class ee {
514
528
  type: "object",
515
529
  categories: {}
516
530
  });
517
- var r;
518
- this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
531
+ var s;
532
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((s = this.formSchemaUtils) == null ? void 0 : s.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
519
533
  }
520
534
  getTableInfo() {
521
535
  var e;
@@ -525,8 +539,8 @@ class ee {
525
539
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
526
540
  if (t) {
527
541
  if (!this.designViewModelField) {
528
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
529
- this.designViewModelField = r.fields.find((u) => u.id === t);
542
+ const s = this.designViewModelUtils.getDgViewModel(this.viewModelId);
543
+ this.designViewModelField = s.fields.find((c) => c.id === t);
530
544
  }
531
545
  e.updateOn = this.designViewModelField.updateOn;
532
546
  }
@@ -578,8 +592,21 @@ class ee {
578
592
  }
579
593
  };
580
594
  }
595
+ /**
596
+ *
597
+ * @param propertyId
598
+ * @param componentInstance
599
+ * @returns
600
+ */
601
+ updateElementByParentContainer(e, t) {
602
+ const s = t && t.parent && t.parent.schema;
603
+ if (!s)
604
+ return;
605
+ const c = s.contents.findIndex((d) => d.id === e), g = we(s.contents[c]);
606
+ s.contents.splice(c, 1), s.contents.splice(c, 0, g);
607
+ }
581
608
  }
582
- class it extends ee {
609
+ class lt extends ee {
583
610
  constructor(e, t) {
584
611
  super(e, t);
585
612
  }
@@ -619,7 +646,7 @@ class it extends ee {
619
646
  description: "标题"
620
647
  }
621
648
  },
622
- setPropertyRelates(t, r) {
649
+ setPropertyRelates(t, s) {
623
650
  if (t)
624
651
  switch (t && t.propertyID) {
625
652
  case "title": {
@@ -654,7 +681,7 @@ class it extends ee {
654
681
  label: "click",
655
682
  name: "点击事件"
656
683
  }
657
- ], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t);
684
+ ], s = this, c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t);
658
685
  this.propertyConfig.categories.eventsEditor = {
659
686
  title: "事件",
660
687
  hideTitle: !0,
@@ -662,7 +689,7 @@ class it extends ee {
662
689
  "data-grid-component-viewmodel": {
663
690
  type: "events-editor",
664
691
  editor: {
665
- initialData: u
692
+ initialData: c
666
693
  }
667
694
  }
668
695
  },
@@ -670,38 +697,38 @@ class it extends ee {
670
697
  refreshPanelAfterChanged: !0,
671
698
  tabId: "commands",
672
699
  tabName: "交互",
673
- setPropertyRelates(h, g) {
674
- const D = h.propertyValue;
675
- delete e[r.viewModelId], D && (D.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, D.events, D));
700
+ setPropertyRelates(g, d) {
701
+ const P = g.propertyValue;
702
+ delete e[s.viewModelId], P && (P.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, P.events, P));
676
703
  }
677
704
  };
678
705
  }
679
706
  }
680
- function at(n, e) {
681
- function t(D) {
707
+ function pt(n, e) {
708
+ function t(P) {
682
709
  return !1;
683
710
  }
684
- function r() {
711
+ function s() {
685
712
  return !1;
686
713
  }
687
- function u() {
714
+ function c() {
688
715
  return !1;
689
716
  }
690
- function h() {
717
+ function g() {
691
718
  return !0;
692
719
  }
693
- function g(D) {
694
- return new it(D, e).getPropertyConfig(n);
720
+ function d(P) {
721
+ return new lt(P, e).getPropertyConfig(n);
695
722
  }
696
723
  return {
697
724
  canAccepts: t,
698
- hideNestedPaddingInDesginerView: h,
699
- getPropsConfig: g,
700
- checkCanDeleteComponent: r,
701
- checkCanMoveComponent: u
725
+ hideNestedPaddingInDesginerView: g,
726
+ getPropsConfig: d,
727
+ checkCanDeleteComponent: s,
728
+ checkCanMoveComponent: c
702
729
  };
703
730
  }
704
- class De {
731
+ class je {
705
732
  constructor(e) {
706
733
  /** 工具栏项标识 */
707
734
  O(this, "id", "");
@@ -746,8 +773,8 @@ class De {
746
773
  "tipsText",
747
774
  "onClick"
748
775
  ];
749
- Object.keys(e).filter((r) => t.indexOf(r) > -1).forEach((r) => {
750
- this[r] = e[r];
776
+ Object.keys(e).filter((s) => t.indexOf(s) > -1).forEach((s) => {
777
+ this[s] = e[s];
751
778
  });
752
779
  }
753
780
  /** 是否可用 */
@@ -763,20 +790,20 @@ class De {
763
790
  return this.visible ? this.width : !1;
764
791
  }
765
792
  }
766
- class ct extends De {
793
+ class ut extends je {
767
794
  constructor(e) {
768
795
  super(e);
769
796
  }
770
797
  }
771
- function Se() {
798
+ function xe() {
772
799
  function n(e) {
773
800
  const t = [];
774
- return e.reduce((r, u) => (u.children && u.children.length > 0 ? r.push(new J(u)) : r.push(new ct(u)), r), t), t;
801
+ return e.reduce((s, c) => (c.children && c.children.length > 0 ? s.push(new J(c)) : s.push(new ut(c)), s), t), t;
775
802
  }
776
803
  return { buildResponseToolbarItems: n };
777
804
  }
778
- const { buildResponseToolbarItems: lt } = Se();
779
- class J extends De {
805
+ const { buildResponseToolbarItems: dt } = xe();
806
+ class J extends je {
780
807
  constructor(t) {
781
808
  super(t);
782
809
  O(this, "placement", "");
@@ -789,25 +816,25 @@ class J extends De {
789
816
  O(this, "split", !1);
790
817
  O(this, "children", []);
791
818
  O(this, "expanded", !1);
792
- const r = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
793
- Object.keys(t).filter((u) => r.indexOf(u) > -1).forEach((u) => {
794
- this[u] = t[u];
795
- }), t.children && t.children.length && (this.children = lt(t.children));
819
+ const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
820
+ Object.keys(t).filter((c) => s.indexOf(c) > -1).forEach((c) => {
821
+ this[c] = t[c];
822
+ }), t.children && t.children.length && (this.children = dt(t.children));
796
823
  }
797
824
  }
798
- const pt = /* @__PURE__ */ new Map([
825
+ const ft = /* @__PURE__ */ new Map([
799
826
  ["buttons", "items"],
800
- ["appearance", Pe]
801
- ]), ut = /* @__PURE__ */ new Map([
802
- ["appearance", dt]
827
+ ["appearance", Se]
828
+ ]), gt = /* @__PURE__ */ new Map([
829
+ ["appearance", mt]
803
830
  ]);
804
- function dt(n, e) {
831
+ function mt(n, e) {
805
832
  return { class: e.class, style: e.style };
806
833
  }
807
- function je(n, e, t) {
834
+ function Ee(n, e, t) {
808
835
  return e;
809
836
  }
810
- const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-design.gitee.io/response-toolbar.schema.json", mt = "response-toolbar", ht = "A Farris Toolbar Component", bt = "object", yt = {
837
+ const ht = "https://json-schema.org/draft/2020-12/schema", bt = "https://farris-design.gitee.io/response-toolbar.schema.json", yt = "response-toolbar", vt = "A Farris Toolbar Component", Ct = "object", wt = {
811
838
  id: {
812
839
  description: "The unique identifier for a Response Toolbar",
813
840
  type: "string"
@@ -840,19 +867,19 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
840
867
  type: "array",
841
868
  default: []
842
869
  }
843
- }, vt = [
870
+ }, Pt = [
844
871
  "id",
845
872
  "type",
846
873
  "buttons"
847
- ], Ct = {
848
- $schema: ft,
849
- $id: gt,
850
- title: mt,
851
- description: ht,
852
- type: bt,
853
- properties: yt,
854
- required: vt
855
- }, wt = "https://json-schema.org/draft/2020-12/schema", Tt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Pt = "response-toolbar-item", Dt = "A Farris Toolbar Item Component", St = "object", jt = {
874
+ ], Tt = {
875
+ $schema: ht,
876
+ $id: bt,
877
+ title: yt,
878
+ description: vt,
879
+ type: Ct,
880
+ properties: wt,
881
+ required: Pt
882
+ }, Dt = "https://json-schema.org/draft/2020-12/schema", St = "https://farris-design.gitee.io/response-toolbar-item.schema.json", jt = "response-toolbar-item", xt = "A Farris Toolbar Item Component", Et = "object", Mt = {
856
883
  id: {
857
884
  description: "The unique identifier for a Response Toolbar",
858
885
  type: "string"
@@ -877,38 +904,38 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
877
904
  default: {}
878
905
  },
879
906
  alignment: {
880
- description: "The alignment of Response Toolbar Button.",
907
+ description: "对齐",
881
908
  type: "string",
882
909
  default: "right"
883
910
  },
884
911
  text: {
885
- description: "The items of Response Toolbar.",
912
+ description: "文本",
886
913
  type: "string",
887
914
  default: "新增"
888
915
  },
889
916
  icon: {
890
- description: "The icon of response toolbar item.",
917
+ description: "图标",
891
918
  type: "string",
892
919
  default: ""
893
920
  },
894
- click: {
895
- description: "The event of response toolbar item.",
921
+ onClick: {
922
+ description: "点击事件",
896
923
  type: "string",
897
924
  default: ""
898
925
  }
899
- }, xt = [
926
+ }, kt = [
900
927
  "id",
901
928
  "type",
902
929
  "text"
903
- ], re = {
904
- $schema: wt,
905
- $id: Tt,
906
- title: Pt,
907
- description: Dt,
908
- type: St,
909
- properties: jt,
910
- required: xt
911
- }, Et = "response-toolbar-item", Mt = "A Farris Container Component", kt = "object", At = {
930
+ ], se = {
931
+ $schema: Dt,
932
+ $id: St,
933
+ title: jt,
934
+ description: xt,
935
+ type: Et,
936
+ properties: Mt,
937
+ required: kt
938
+ }, At = "response-toolbar-item", Bt = "A Farris Container Component", Rt = "object", It = {
912
939
  basic: {
913
940
  title: "基本信息",
914
941
  description: "Basic Infomation",
@@ -941,11 +968,11 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
941
968
  }
942
969
  }
943
970
  }
944
- }, me = {
945
- title: Et,
946
- description: Mt,
947
- type: kt,
948
- categories: At
971
+ }, he = {
972
+ title: At,
973
+ description: Bt,
974
+ type: Rt,
975
+ categories: It
949
976
  }, ue = {
950
977
  /** 组件自定义样式 */
951
978
  customClass: { type: String, default: "" },
@@ -955,16 +982,16 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
955
982
  default: []
956
983
  }
957
984
  };
958
- ae[re.title] = re;
959
- Te[me.title] = me;
960
- const Bt = Object.assign({}, ue, {
985
+ ae[se.title] = se;
986
+ De[he.title] = he;
987
+ const Ot = Object.assign({}, ue, {
961
988
  componentId: { type: String, default: "" }
962
989
  }), de = le(
963
990
  ue,
964
- Ct,
965
- pt,
966
- je
967
- ), xe = {
991
+ Tt,
992
+ ft,
993
+ Ee
994
+ ), Me = {
968
995
  id: { type: String, default: "" },
969
996
  items: { type: Object, default: {} },
970
997
  class: { type: String, default: "" },
@@ -973,93 +1000,93 @@ const Bt = Object.assign({}, ue, {
973
1000
  icon: { type: String, default: "" },
974
1001
  componentId: { type: String, default: "" },
975
1002
  alignment: { Type: String, default: "right" }
976
- }, Rt = le(
977
- xe,
978
- re,
979
- ut,
980
- je
1003
+ }, $t = le(
1004
+ Me,
1005
+ se,
1006
+ gt,
1007
+ Ee
981
1008
  );
982
- function Ee() {
1009
+ function ke() {
983
1010
  function n(t) {
984
- const r = {
1011
+ const s = {
985
1012
  "f-icon": !0
986
1013
  };
987
1014
  if (t.icon) {
988
- const u = t.icon.trim().split(" ");
989
- u && u.length && u.reduce((h, g) => (h[g] = !0, h), r);
1015
+ const c = t.icon.trim().split(" ");
1016
+ c && c.length && c.reduce((g, d) => (g[d] = !0, g), s);
990
1017
  }
991
- return r;
1018
+ return s;
992
1019
  }
993
1020
  function e(t) {
994
1021
  return !!(t.icon && t.icon.trim());
995
1022
  }
996
1023
  return { iconClass: n, shouldShowIcon: e };
997
1024
  }
998
- function It(n) {
999
- function e(l) {
1025
+ function Nt(n) {
1026
+ function e(p) {
1000
1027
  const i = {
1001
1028
  "dropdown-menu": !0
1002
1029
  };
1003
- if (l.class) {
1004
- const d = l.menuClass.split(" ");
1005
- d && d.length && d.reduce((c, C) => (c[C] = !0, c), i);
1030
+ if (p.class) {
1031
+ const f = p.menuClass.split(" ");
1032
+ f && f.length && f.reduce((l, C) => (l[C] = !0, l), i);
1006
1033
  }
1007
1034
  return i;
1008
1035
  }
1009
- function t(l) {
1036
+ function t(p) {
1010
1037
  const i = {
1011
- disabled: !l.enable,
1038
+ disabled: !p.enable,
1012
1039
  "dropdown-submenu": !0,
1013
1040
  "f-rt-dropdown": !0
1014
- }, d = l.dropdownClass.split(" ");
1015
- return d && d.length && d.reduce((c, C) => (c[C] = !0, c), i), i;
1041
+ }, f = p.dropdownClass.split(" ");
1042
+ return f && f.length && f.reduce((l, C) => (l[C] = !0, l), i), i;
1016
1043
  }
1017
- function r(l) {
1044
+ function s(p) {
1018
1045
  const i = {
1019
- disabled: !l.enable,
1046
+ disabled: !p.enable,
1020
1047
  "dropdown-item": !0,
1021
1048
  "f-rt-btn": !0
1022
- }, d = l.class.split(" ");
1023
- return d && d.length && d.reduce((c, C) => (c[C] = !0, c), i), i;
1049
+ }, f = p.class.split(" ");
1050
+ return f && f.length && f.reduce((l, C) => (l[C] = !0, l), i), i;
1024
1051
  }
1025
- let u;
1026
- const h = /* @__PURE__ */ new Map();
1027
- function g(l, i, d) {
1052
+ let c;
1053
+ const g = /* @__PURE__ */ new Map();
1054
+ function d(p, i, f) {
1028
1055
  var C;
1029
- ((C = l.target) == null ? void 0 : C.id) === i.id && l.stopPropagation();
1030
- const c = d ? d.id : "__top_item__";
1031
- if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ? h.set(c, i) : h.delete(c)), h.has(c) && h.get(c) !== i) {
1032
- const w = h.get(c);
1056
+ ((C = p.target) == null ? void 0 : C.id) === i.id && p.stopPropagation();
1057
+ const l = f ? f.id : "__top_item__";
1058
+ if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ? g.set(l, i) : g.delete(l)), g.has(l) && g.get(l) !== i) {
1059
+ const w = g.get(l);
1033
1060
  w && (w.expanded = !1);
1034
1061
  }
1035
1062
  }
1036
- function D(l, i) {
1037
- document.body.click(), i.enable && i.onClick(l, i.id);
1063
+ function P(p, i) {
1064
+ document.body.click(), i.enable && i.onClick(p, i.id);
1038
1065
  }
1039
- function S(l) {
1040
- return l.children.map((i) => i.children && i.children.length ? b("li", {
1066
+ function S(p) {
1067
+ return p.children.map((i) => i.children && i.children.length ? b("li", {
1041
1068
  class: t(i),
1042
1069
  id: i.id,
1043
- onClick: (d) => i.enable && g(d, i, l)
1070
+ onClick: (f) => i.enable && d(f, i, p)
1044
1071
  }, [b("span", {
1045
1072
  id: i.id,
1046
- class: r(i),
1047
- onMouseover: (d) => i.enable && g(d, i, l)
1073
+ class: s(i),
1074
+ onMouseover: (f) => i.enable && d(f, i, p)
1048
1075
  }, [i.text, b("i", {
1049
1076
  class: "f-icon f-icon-arrow-chevron-right",
1050
1077
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1051
- }, null)]), u(i, i)]) : b("li", {
1052
- class: r(i),
1078
+ }, null)]), c(i, i)]) : b("li", {
1079
+ class: s(i),
1053
1080
  id: i.id,
1054
- onClick: (d) => D(d, i),
1055
- onMouseover: (d) => i.enable && g(d, i, l)
1081
+ onClick: (f) => P(f, i),
1082
+ onMouseover: (f) => i.enable && d(f, i, p)
1056
1083
  }, [n.shouldShowIcon(i) && b("i", {
1057
1084
  class: n.iconClass(i)
1058
1085
  }, null), i.text]));
1059
1086
  }
1060
- function y(l, i, d) {
1061
- const c = {
1062
- display: l.expanded ? "block" : "none",
1087
+ function y(p, i, f) {
1088
+ const l = {
1089
+ display: p.expanded ? "block" : "none",
1063
1090
  position: "fixed",
1064
1091
  maxWidth: "300px",
1065
1092
  width: "auto",
@@ -1068,61 +1095,61 @@ function It(n) {
1068
1095
  if (w && j && j.length) {
1069
1096
  const {
1070
1097
  top: I,
1071
- width: P,
1098
+ width: D,
1072
1099
  left: A,
1073
1100
  right: $,
1074
1101
  height: v
1075
- } = j[0], f = Math.ceil(v + I);
1076
- c.top = `${f}px`, c.left = `${A}px`;
1077
- const x = l.id + "_menu", k = i ? i.querySelector("#" + x) : null;
1102
+ } = j[0], m = Math.ceil(v + I);
1103
+ l.top = `${m}px`, l.left = `${A}px`;
1104
+ const x = p.id + "_menu", k = i ? i.querySelector("#" + x) : null;
1078
1105
  if (k) {
1079
- c.display === "block" && (k.style.display = "block");
1080
- const p = k.getBoundingClientRect();
1081
- if (d) {
1082
- c.top = `${I - 6}px`;
1083
- const s = Math.ceil(P + A);
1084
- c.left = `${s}px`;
1106
+ l.display === "block" && (k.style.display = "block");
1107
+ const u = k.getBoundingClientRect();
1108
+ if (f) {
1109
+ l.top = `${I - 6}px`;
1110
+ const r = Math.ceil(D + A);
1111
+ l.left = `${r}px`;
1085
1112
  }
1086
- C - A - P < p.width && (c.left = `${(d ? A : $) - p.width}px`);
1113
+ C - A - D < u.width && (l.left = `${(f ? A : $) - u.width}px`);
1087
1114
  }
1088
1115
  }
1089
- return c;
1116
+ return l;
1090
1117
  }
1091
- u = function(l, i) {
1118
+ c = function(p, i) {
1092
1119
  var w, j;
1093
- const d = ve(), c = i ? i.id : l.id, C = (j = (w = d == null ? void 0 : d.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + c);
1120
+ const f = Ce(), l = i ? i.id : p.id, C = (j = (w = f == null ? void 0 : f.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + l);
1094
1121
  return b("ul", {
1095
- class: e(l),
1096
- style: y(l, C, i),
1097
- id: l.id + "_menu"
1098
- }, [S(l)]);
1122
+ class: e(p),
1123
+ style: y(p, C, i),
1124
+ id: p.id + "_menu"
1125
+ }, [S(p)]);
1099
1126
  };
1100
1127
  function T() {
1101
- h.forEach((l) => {
1102
- l.expanded = !1;
1103
- }), h.clear();
1128
+ g.forEach((p) => {
1129
+ p.expanded = !1;
1130
+ }), g.clear();
1104
1131
  }
1105
1132
  return {
1106
- renderDropdownMenu: u,
1133
+ renderDropdownMenu: c,
1107
1134
  clearAllDropDownMenu: T
1108
1135
  };
1109
1136
  }
1110
- function Ot(n, e) {
1137
+ function _t(n, e) {
1111
1138
  const t = M(n.alignment), {
1112
- renderDropdownMenu: r,
1113
- clearAllDropDownMenu: u
1114
- } = It(e);
1115
- function h(T) {
1116
- const l = {
1139
+ renderDropdownMenu: s,
1140
+ clearAllDropDownMenu: c
1141
+ } = Nt(e);
1142
+ function g(T) {
1143
+ const p = {
1117
1144
  "btn-group": !0,
1118
1145
  "f-rt-dropdown": !0,
1119
1146
  "f-btn-ml": t.value === "right",
1120
1147
  "f-btn-mr": t.value === "left"
1121
1148
  }, i = T.dropdownClass.split(" ");
1122
- return i && i.length && i.reduce((d, c) => (d[c] = !0, d), l), l;
1149
+ return i && i.length && i.reduce((f, l) => (f[l] = !0, f), p), p;
1123
1150
  }
1124
- function g(T) {
1125
- const l = {
1151
+ function d(T) {
1152
+ const p = {
1126
1153
  btn: !0,
1127
1154
  disabled: !T.enable,
1128
1155
  "f-rt-btn": !0,
@@ -1130,32 +1157,32 @@ function Ot(n, e) {
1130
1157
  };
1131
1158
  if (T.class) {
1132
1159
  const i = T.class.split(" ");
1133
- i && i.length && i.reduce((d, c) => (d[c] = !0, d), l);
1160
+ i && i.length && i.reduce((f, l) => (f[l] = !0, f), p);
1134
1161
  }
1135
- return l;
1162
+ return p;
1136
1163
  }
1137
- function D(T, l) {
1164
+ function P(T, p) {
1138
1165
  T.stopPropagation();
1139
- const i = l.expanded;
1140
- document.body.click(), l.expanded = !i;
1166
+ const i = p.expanded;
1167
+ document.body.click(), p.expanded = !i;
1141
1168
  }
1142
1169
  function S(T) {
1143
1170
  return b("div", {
1144
1171
  id: T.id,
1145
- class: h(T)
1172
+ class: g(T)
1146
1173
  }, [b("div", {
1147
- class: g(T),
1174
+ class: d(T),
1148
1175
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
1149
- onClick: (l) => T.enable && D(l, T)
1176
+ onClick: (p) => T.enable && P(p, T)
1150
1177
  }, [e.shouldShowIcon(T) && b("i", {
1151
1178
  class: e.iconClass(T)
1152
1179
  }, null), b("span", null, [T.text]), b("i", {
1153
1180
  class: "f-icon f-icon-arrow-chevron-down",
1154
1181
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1155
- }, null)]), r(T)]);
1182
+ }, null)]), s(T)]);
1156
1183
  }
1157
1184
  function y() {
1158
- u();
1185
+ c();
1159
1186
  }
1160
1187
  return {
1161
1188
  renderToolbarDropdown: S,
@@ -1163,74 +1190,75 @@ function Ot(n, e) {
1163
1190
  };
1164
1191
  }
1165
1192
  const {
1166
- buildResponseToolbarItems: he
1167
- } = Se(), Z = /* @__PURE__ */ z({
1193
+ buildResponseToolbarItems: be
1194
+ } = xe(), Z = /* @__PURE__ */ z({
1168
1195
  name: "FResponseToolbar",
1169
1196
  props: ue,
1170
1197
  emits: ["click"],
1171
1198
  setup(n, e) {
1172
- const t = M(he(n.items)), r = M(), u = M(), h = M(), g = M(n.alignment), D = {
1199
+ const t = M(be(n.items)), s = M(), c = M(), g = M(), d = M(n.alignment), P = {
1173
1200
  id: "__more_buttons__",
1174
1201
  text: "更多"
1175
- }, S = M(new J(D)), y = Ee(), T = F(() => S.value.children.length > 0), l = F(() => Y({
1202
+ }, S = M(new J(P)), y = ke(), T = F(() => S.value.children.length > 0), p = F(() => Y({
1176
1203
  "f-toolbar": !0,
1177
1204
  "f-response-toolbar": !0,
1178
1205
  "position-relative": !0
1179
1206
  }, n.customClass)), i = F(() => ({
1207
+ "w-100": !0,
1180
1208
  "d-flex": !0,
1181
1209
  "flex-nowrap": !0,
1182
- "justify-content-end": g.value === "right",
1183
- "justify-content-start": g.value === "left"
1210
+ "justify-content-end": d.value === "right",
1211
+ "justify-content-start": d.value === "left"
1184
1212
  })), {
1185
- renderToolbarDropdown: d,
1186
- clearAllDropDown: c
1187
- } = Ot(n, y);
1213
+ renderToolbarDropdown: f,
1214
+ clearAllDropDown: l
1215
+ } = _t(n, y);
1188
1216
  function C() {
1189
- t.value.filter((f) => f.children && f.children.length > 0).forEach((f) => {
1190
- f.expanded = !1;
1191
- }), S.value.expanded = !1, c();
1217
+ t.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
1218
+ m.expanded = !1;
1219
+ }), S.value.expanded = !1, l();
1192
1220
  }
1193
- function w(f) {
1221
+ function w(m) {
1194
1222
  const x = {
1195
1223
  btn: !0,
1196
1224
  "f-rt-btn": !0,
1197
- "f-btn-ml": g.value === "right",
1198
- "f-btn-mr": g.value === "left",
1199
- "btn-icontext": !!(f.icon && f.icon.trim())
1225
+ "f-btn-ml": d.value === "right",
1226
+ "f-btn-mr": d.value === "left",
1227
+ "btn-icontext": !!(m.icon && m.icon.trim())
1200
1228
  };
1201
- if (f.class) {
1202
- const k = f.class.split(" ");
1203
- k && k.length && k.reduce((p, s) => (p[s] = !0, p), x);
1229
+ if (m.class) {
1230
+ const k = m.class.split(" ");
1231
+ k && k.length && k.reduce((u, r) => (u[r] = !0, u), x);
1204
1232
  }
1205
1233
  return x;
1206
1234
  }
1207
- function j(f, x) {
1208
- document.body.click(), x.onClick(f, x.id), e.emit("click", f, x.id);
1235
+ function j(m, x) {
1236
+ document.body.click(), typeof x.onClick == "function" && x.onClick(m, x.id), e.emit("click", m, x.id);
1209
1237
  }
1210
- function I(f) {
1238
+ function I(m) {
1211
1239
  return b("button", {
1212
1240
  type: "button",
1213
- class: w(f),
1214
- id: f.id,
1215
- disabled: !f.enable,
1216
- onClick: (x) => j(x, f)
1217
- }, [y.shouldShowIcon(f) && b("i", {
1218
- class: y.iconClass(f)
1219
- }, null), f.text]);
1241
+ class: w(m),
1242
+ id: m.id,
1243
+ disabled: !m.enable,
1244
+ onClick: (x) => j(x, m)
1245
+ }, [y.shouldShowIcon(m) && b("i", {
1246
+ class: y.iconClass(m)
1247
+ }, null), m.text]);
1220
1248
  }
1221
- const P = /* @__PURE__ */ new Map(), A = [];
1222
- function $(f) {
1223
- const x = h.value;
1224
- let k = f;
1225
- const p = Array.from(x.children), s = p[p.length - 1].id === "__more_buttons__" ? p[p.length - 1] : null;
1226
- if (s) {
1227
- const E = s.computedStyleMap().get("margin-left"), R = s.computedStyleMap().get("margin-right"), L = (E ? E.value : 0) + s.getBoundingClientRect().width + (R ? R.value : 0);
1249
+ const D = /* @__PURE__ */ new Map(), A = [];
1250
+ function $(m) {
1251
+ const x = g.value;
1252
+ let k = m;
1253
+ const u = Array.from(x.children), r = u[u.length - 1].id === "__more_buttons__" ? u[u.length - 1] : null;
1254
+ if (r) {
1255
+ const E = r.computedStyleMap().get("margin-left"), R = r.computedStyleMap().get("margin-right"), L = (E ? E.value : 0) + r.getBoundingClientRect().width + (R ? R.value : 0);
1228
1256
  k -= L;
1229
1257
  }
1230
- const o = p.filter((E) => E.id !== "__more_buttons__");
1258
+ const o = u.filter((E) => E.id !== "__more_buttons__");
1231
1259
  for (const E of o) {
1232
1260
  const R = E.computedStyleMap().get("margin-left"), L = E.computedStyleMap().get("margin-right"), N = (R ? R.value : 0) + E.getBoundingClientRect().width + (L ? L.value : 0);
1233
- k < N ? (P.set(E.id, !0), A.push({
1261
+ k < N ? (D.set(E.id, !0), A.push({
1234
1262
  id: E.id,
1235
1263
  width: N
1236
1264
  })) : k -= N;
@@ -1239,102 +1267,102 @@ const {
1239
1267
  for (let E = A.length - 1; E >= 0; E--) {
1240
1268
  const R = A[E].width;
1241
1269
  if (k >= R)
1242
- k -= R, P.delete(A[E].id), A.pop();
1270
+ k -= R, D.delete(A[E].id), A.pop();
1243
1271
  else
1244
1272
  break;
1245
1273
  }
1246
1274
  const a = Object.assign({}, S.value);
1247
1275
  a.children = [];
1248
- const m = new J(a), B = t.value.reduce((E, R) => (P.has(R.id) && m.children.push(R), R.visible = !P.has(R.id), E.push(R), E), []);
1249
- S.value = m, t.value = B;
1276
+ const h = new J(a), B = t.value.reduce((E, R) => (D.has(R.id) && h.children.push(R), R.visible = !D.has(R.id), E.push(R), E), []);
1277
+ S.value = h, t.value = B;
1250
1278
  }
1251
- const v = new ResizeObserver((f) => {
1252
- if (f.length) {
1253
- const k = f[0].contentRect.width, s = h.value.getBoundingClientRect().width;
1254
- (k < s || A.length) && ($(k), C());
1279
+ const v = new ResizeObserver((m) => {
1280
+ if (m.length) {
1281
+ const k = m[0].contentRect.width, r = g.value.getBoundingClientRect().width;
1282
+ (k < r || A.length) && ($(k), C());
1255
1283
  }
1256
1284
  });
1257
1285
  return H(() => {
1258
- const f = u.value;
1259
- v.observe(f), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
1286
+ const m = c.value;
1287
+ v.observe(m), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
1260
1288
  }), ie(() => {
1261
1289
  v.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
1262
1290
  }), G(() => n.items, () => {
1263
- t.value = he(n.items);
1291
+ t.value = be(n.items);
1264
1292
  }, {
1265
1293
  deep: !0
1266
1294
  }), e.expose({
1267
- elementRef: r
1295
+ elementRef: s
1268
1296
  }), () => b("div", {
1269
- class: l.value,
1270
- ref: r
1297
+ class: p.value,
1298
+ ref: s
1271
1299
  }, [b("div", {
1272
- ref: u,
1300
+ ref: c,
1273
1301
  class: i.value
1274
1302
  }, [b("div", {
1275
- ref: h,
1303
+ ref: g,
1276
1304
  class: "d-inline-block f-response-content",
1277
1305
  style: "white-space: nowrap;"
1278
- }, [t.value.filter((f) => f.visible).map((f) => f.children && f.children.length > 0 ? d(f) : I(f)), T.value && d(S.value)])])]);
1306
+ }, [t.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : I(m)), T.value && f(S.value)])])]);
1279
1307
  }
1280
1308
  });
1281
- function $t(n, e) {
1282
- const t = V("design-item-context"), r = V("toolbar-item-handler", () => {
1309
+ function Ft(n, e) {
1310
+ const t = V("design-item-context"), s = V("toolbar-item-handler", () => {
1283
1311
  });
1284
- function u() {
1285
- r && r();
1312
+ function c() {
1313
+ s && s();
1286
1314
  }
1287
- function h(s) {
1315
+ function g(r) {
1288
1316
  const o = {
1289
1317
  "dropdown-menu": !0
1290
1318
  };
1291
- if (s.class) {
1292
- const a = s.menuClass.split(" ");
1293
- a && a.length && a.reduce((m, B) => (m[B] = !0, m), o);
1319
+ if (r.class) {
1320
+ const a = r.menuClass.split(" ");
1321
+ a && a.length && a.reduce((h, B) => (h[B] = !0, h), o);
1294
1322
  }
1295
1323
  return o;
1296
1324
  }
1297
- function g(s) {
1325
+ function d(r) {
1298
1326
  const o = {
1299
- disabled: !s.enable,
1327
+ disabled: !r.enable,
1300
1328
  "dropdown-submenu": !0,
1301
1329
  "f-rt-dropdown": !0
1302
- }, a = s.dropdownClass.split(" ");
1303
- return a && a.length && a.reduce((m, B) => (m[B] = !0, m), o), o;
1330
+ }, a = r.dropdownClass.split(" ");
1331
+ return a && a.length && a.reduce((h, B) => (h[B] = !0, h), o), o;
1304
1332
  }
1305
- function D(s) {
1333
+ function P(r) {
1306
1334
  const o = {
1307
- disabled: !s.enable,
1335
+ disabled: !r.enable,
1308
1336
  "dropdown-item": !0,
1309
1337
  "f-rt-btn": !0,
1310
1338
  "position-relative": !0,
1311
1339
  "farris-component": !0
1312
- }, a = s.class.split(" ");
1313
- return a && a.length && a.reduce((m, B) => (m[B] = !0, m), o), o;
1340
+ }, a = r.class.split(" ");
1341
+ return a && a.length && a.reduce((h, B) => (h[B] = !0, h), o), o;
1314
1342
  }
1315
1343
  let S;
1316
1344
  const y = /* @__PURE__ */ new Map();
1317
- function T(s, o, a) {
1345
+ function T(r, o, a) {
1318
1346
  var B;
1319
- ((B = s.target) == null ? void 0 : B.id) === o.id && s.stopPropagation();
1320
- const m = a ? a.id : "__top_item__";
1321
- if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? y.set(m, o) : y.delete(m)), y.has(m) && y.get(m) !== o) {
1322
- const E = y.get(m);
1347
+ ((B = r.target) == null ? void 0 : B.id) === o.id && r.stopPropagation();
1348
+ const h = a ? a.id : "__top_item__";
1349
+ if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? y.set(h, o) : y.delete(h)), y.has(h) && y.get(h) !== o) {
1350
+ const E = y.get(h);
1323
1351
  E && (E.expanded = !1);
1324
1352
  }
1325
1353
  }
1326
- function l(s) {
1327
- s && (s.stopPropagation(), s.preventDefault());
1354
+ function p(r) {
1355
+ r && (r.stopPropagation(), r.preventDefault());
1328
1356
  }
1329
1357
  function i() {
1330
1358
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
1331
- const s = document.getElementsByClassName("dgComponentSelected");
1332
- Array.from(s).forEach((o) => o.classList.remove("dgComponentSelected"));
1359
+ const r = document.getElementsByClassName("dgComponentSelected");
1360
+ Array.from(r).forEach((o) => o.classList.remove("dgComponentSelected"));
1333
1361
  }
1334
- function d(s) {
1335
- s.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1362
+ function f(r) {
1363
+ r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1336
1364
  }
1337
- function c(s) {
1365
+ function l(r) {
1338
1366
  const {
1339
1367
  buttons: o = []
1340
1368
  } = t.schema;
@@ -1342,49 +1370,49 @@ function $t(n, e) {
1342
1370
  o.forEach((E) => {
1343
1371
  a = a.concat(E.children || []);
1344
1372
  });
1345
- const m = a.findIndex((E) => E.id === s), B = m === -1 ? null : a[m];
1373
+ const h = a.findIndex((E) => E.id === r), B = h === -1 ? null : a[h];
1346
1374
  return {
1347
- index: m,
1375
+ index: h,
1348
1376
  item: B
1349
1377
  };
1350
1378
  }
1351
- function C(s) {
1379
+ function C(r) {
1352
1380
  const {
1353
1381
  buttons: o = []
1354
- } = t.schema, a = o.findIndex((B) => B.id === s), m = a === -1 ? null : o[a];
1382
+ } = t.schema, a = o.findIndex((B) => B.id === r), h = a === -1 ? null : o[a];
1355
1383
  return {
1356
1384
  index: a,
1357
- item: m
1385
+ item: h
1358
1386
  };
1359
1387
  }
1360
- function w(s) {
1361
- var m;
1388
+ function w(r) {
1389
+ var h;
1362
1390
  t.schema;
1363
1391
  const {
1364
1392
  index: o,
1365
1393
  item: a
1366
- } = c(s);
1367
- (m = t == null ? void 0 : t.setupContext) == null || m.emit("selectionChange", a == null ? void 0 : a.type, a);
1394
+ } = l(r);
1395
+ (h = t == null ? void 0 : t.setupContext) == null || h.emit("selectionChange", a == null ? void 0 : a.type, a);
1368
1396
  }
1369
- const j = function(s) {
1397
+ const j = function(r) {
1370
1398
  const {
1371
1399
  componentType: o
1372
- } = s, a = U(o, s), m = o.toLowerCase().replace("-", "_");
1373
- return a && !a.id && a.type === o && (a.id = `${m}_${Math.random().toString().slice(2, 6)}`), a;
1400
+ } = r, a = U(o, r), h = o.toLowerCase().replace("-", "_");
1401
+ return a && !a.id && a.type === o && (a.id = `${h}_${Math.random().toString().slice(2, 6)}`), a;
1374
1402
  }, I = function() {
1375
- const s = {
1403
+ const r = {
1376
1404
  componentType: "response-toolbar-item",
1377
1405
  parentComponentInstance: e.value,
1378
1406
  targetPosition: -1
1379
1407
  };
1380
- return j(s);
1408
+ return j(r);
1381
1409
  };
1382
- function P(s, o) {
1383
- l(s), i(), d(s), w(o.id);
1410
+ function D(r, o) {
1411
+ p(r), i(), f(r), w(o.id);
1384
1412
  }
1385
- function A(s, o, a) {
1386
- l(s);
1387
- const m = o.id, B = a && a.id, {
1413
+ function A(r, o, a) {
1414
+ p(r);
1415
+ const h = o.id, B = a && a.id, {
1388
1416
  buttons: E = []
1389
1417
  } = t.schema;
1390
1418
  if (!B)
@@ -1396,44 +1424,44 @@ function $t(n, e) {
1396
1424
  return;
1397
1425
  const {
1398
1426
  index: L
1399
- } = c(m);
1400
- L !== -1 && (E[R].children.splice(L, 1), u());
1427
+ } = l(h);
1428
+ L !== -1 && (E[R].children.splice(L, 1), c());
1401
1429
  }
1402
- function $(s, o, a) {
1403
- l(s);
1404
- const m = a && a.id, {
1430
+ function $(r, o, a) {
1431
+ p(r);
1432
+ const h = a && a.id, {
1405
1433
  buttons: B = []
1406
1434
  } = t.schema;
1407
- if (!m)
1435
+ if (!h)
1408
1436
  return;
1409
1437
  const {
1410
1438
  index: E
1411
- } = C(m);
1439
+ } = C(h);
1412
1440
  if (E === -1)
1413
1441
  return;
1414
1442
  const R = I(), L = Object.assign({}, R, {
1415
1443
  text: o.text
1416
1444
  });
1417
- B[E].children.push(L), u();
1445
+ B[E].children.push(L), c();
1418
1446
  }
1419
- function v(s, o, a) {
1420
- l(s);
1421
- const m = a && a.id, {
1447
+ function v(r, o, a) {
1448
+ p(r);
1449
+ const h = a && a.id, {
1422
1450
  buttons: B = []
1423
1451
  } = t.schema;
1424
- if (!m)
1452
+ if (!h)
1425
1453
  return;
1426
1454
  const {
1427
1455
  index: E
1428
- } = C(m);
1456
+ } = C(h);
1429
1457
  if (E === -1)
1430
1458
  return;
1431
1459
  const R = I(), L = Object.assign({}, R, {
1432
1460
  text: "按钮"
1433
1461
  });
1434
- B[E].children.push(L), u();
1462
+ B[E].children.push(L), c();
1435
1463
  }
1436
- function f(s, o) {
1464
+ function m(r, o) {
1437
1465
  return b("div", {
1438
1466
  class: "component-btn-group"
1439
1467
  }, [b("div", null, [b("div", {
@@ -1442,7 +1470,7 @@ function $t(n, e) {
1442
1470
  title: "删除",
1443
1471
  ref: "removeButton",
1444
1472
  style: "position:static;",
1445
- onClick: (a) => A(a, s, o)
1473
+ onClick: (a) => A(a, r, o)
1446
1474
  }, [b("i", {
1447
1475
  class: "f-icon f-icon-yxs_delete"
1448
1476
  }, null)]), b("div", {
@@ -1451,7 +1479,7 @@ function $t(n, e) {
1451
1479
  title: "复制",
1452
1480
  ref: "copyButton",
1453
1481
  style: "position:static;",
1454
- onClick: (a) => $(a, s, o)
1482
+ onClick: (a) => $(a, r, o)
1455
1483
  }, [b("i", {
1456
1484
  class: "f-icon f-icon-yxs_copy"
1457
1485
  }, null)]), b("div", {
@@ -1460,36 +1488,36 @@ function $t(n, e) {
1460
1488
  title: "新增同级",
1461
1489
  ref: "appendSame",
1462
1490
  style: "width:85px!important;padding:0 5px;position:static;",
1463
- onClick: (a) => v(a, s, o)
1491
+ onClick: (a) => v(a, r, o)
1464
1492
  }, [b("i", {
1465
1493
  class: "f-icon f-icon-plus-circle text-white mr-1"
1466
1494
  }, null), b("span", {
1467
1495
  style: "font-size:13px;margin:auto"
1468
1496
  }, [Q("新增同级")])])])]);
1469
1497
  }
1470
- function x(s) {
1471
- return s.children.map((o) => o.children && o.children.length ? b("li", {
1472
- class: g(o),
1498
+ function x(r) {
1499
+ return r.children.map((o) => o.children && o.children.length ? b("li", {
1500
+ class: d(o),
1473
1501
  id: o.id,
1474
- onClick: (a) => o.enable && T(a, o, s)
1502
+ onClick: (a) => o.enable && T(a, o, r)
1475
1503
  }, [b("span", {
1476
1504
  id: o.id,
1477
- class: D(o),
1478
- onMouseover: (a) => o.enable && T(a, o, s)
1505
+ class: P(o),
1506
+ onMouseover: (a) => o.enable && T(a, o, r)
1479
1507
  }, [o.text, b("i", {
1480
1508
  class: "f-icon f-icon-arrow-chevron-right",
1481
1509
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1482
1510
  }, null)]), S(o, o)]) : b("li", {
1483
- class: D(o),
1511
+ class: P(o),
1484
1512
  id: o.id,
1485
- onClick: (a) => P(a, o)
1486
- }, [f(o, s), n.shouldShowIcon(o) && b("i", {
1513
+ onClick: (a) => D(a, o)
1514
+ }, [m(o, r), n.shouldShowIcon(o) && b("i", {
1487
1515
  class: n.iconClass(o)
1488
1516
  }, null), o.text]));
1489
1517
  }
1490
- function k(s, o, a) {
1491
- const m = {
1492
- display: s.expanded ? "block" : "none",
1518
+ function k(r, o, a) {
1519
+ const h = {
1520
+ display: r.expanded ? "block" : "none",
1493
1521
  position: "fixed",
1494
1522
  maxWidth: "300px",
1495
1523
  width: "auto",
@@ -1503,131 +1531,131 @@ function $t(n, e) {
1503
1531
  right: W,
1504
1532
  height: q
1505
1533
  } = R[0], te = Math.ceil(q + L);
1506
- m.top = `${te}px`, m.left = `${_}px`;
1507
- const Re = s.id + "_menu", ne = o ? o.querySelector("#" + Re) : null;
1534
+ h.top = `${te}px`, h.left = `${_}px`;
1535
+ const Oe = r.id + "_menu", ne = o ? o.querySelector("#" + Oe) : null;
1508
1536
  if (ne) {
1509
- m.display === "block" && (ne.style.display = "block");
1537
+ h.display === "block" && (ne.style.display = "block");
1510
1538
  const fe = ne.getBoundingClientRect();
1511
1539
  if (a) {
1512
- m.top = `${L - 6}px`;
1513
- const Ie = Math.ceil(N + _);
1514
- m.left = `${Ie}px`;
1540
+ h.top = `${L - 6}px`;
1541
+ const $e = Math.ceil(N + _);
1542
+ h.left = `${$e}px`;
1515
1543
  }
1516
- B - _ - N < fe.width && (m.left = `${(a ? _ : W) - fe.width}px`);
1544
+ B - _ - N < fe.width && (h.left = `${(a ? _ : W) - fe.width}px`);
1517
1545
  }
1518
1546
  }
1519
- return m;
1547
+ return h;
1520
1548
  }
1521
- S = function(s, o) {
1549
+ S = function(r, o) {
1522
1550
  var E, R;
1523
- const a = ve(), m = o ? o.id : s.id, B = (R = (E = a == null ? void 0 : a.exposed) == null ? void 0 : E.elementRef.value) == null ? void 0 : R.querySelector("#" + m);
1551
+ const a = Ce(), h = o ? o.id : r.id, B = (R = (E = a == null ? void 0 : a.exposed) == null ? void 0 : E.elementRef.value) == null ? void 0 : R.querySelector("#" + h);
1524
1552
  return b("ul", {
1525
- class: h(s),
1526
- style: k(s, B, o),
1527
- id: s.id + "_menu"
1528
- }, [x(s)]);
1553
+ class: g(r),
1554
+ style: k(r, B, o),
1555
+ id: r.id + "_menu"
1556
+ }, [x(r)]);
1529
1557
  };
1530
- function p() {
1531
- y.forEach((s) => {
1532
- s.expanded = !1;
1558
+ function u() {
1559
+ y.forEach((r) => {
1560
+ r.expanded = !1;
1533
1561
  }), y.clear();
1534
1562
  }
1535
1563
  return {
1536
1564
  renderDropdownMenu: S,
1537
- clearAllDropDownMenu: p
1565
+ clearAllDropDownMenu: u
1538
1566
  };
1539
1567
  }
1540
- function Nt(n, e, t) {
1541
- const r = M(n.alignment), {
1542
- renderDropdownMenu: u,
1543
- clearAllDropDownMenu: h
1544
- } = $t(e, t), g = V("design-item-context"), D = V("toolbar-item-handler", () => {
1568
+ function Lt(n, e, t) {
1569
+ const s = M(n.alignment), {
1570
+ renderDropdownMenu: c,
1571
+ clearAllDropDownMenu: g
1572
+ } = Ft(e, t), d = V("design-item-context"), P = V("toolbar-item-handler", () => {
1545
1573
  });
1546
1574
  function S() {
1547
- D && D();
1575
+ P && P();
1548
1576
  }
1549
- function y(p) {
1550
- const s = {
1577
+ function y(u) {
1578
+ const r = {
1551
1579
  "btn-group": !0,
1552
1580
  "f-rt-dropdown": !0,
1553
- "f-btn-ml": r.value === "right",
1554
- "f-btn-mr": r.value === "left"
1555
- }, o = p.dropdownClass.split(" ");
1556
- return o && o.length && o.reduce((a, m) => (a[m] = !0, a), s), s;
1581
+ "f-btn-ml": s.value === "right",
1582
+ "f-btn-mr": s.value === "left"
1583
+ }, o = u.dropdownClass.split(" ");
1584
+ return o && o.length && o.reduce((a, h) => (a[h] = !0, a), r), r;
1557
1585
  }
1558
- function T(p) {
1559
- const s = {
1586
+ function T(u) {
1587
+ const r = {
1560
1588
  btn: !0,
1561
- disabled: !p.enable,
1589
+ disabled: !u.enable,
1562
1590
  "position-relative": !0,
1563
1591
  "farris-component": !0,
1564
1592
  "f-rt-btn": !0,
1565
- "btn-icontext": !!(p.icon && p.icon.trim())
1593
+ "btn-icontext": !!(u.icon && u.icon.trim())
1566
1594
  };
1567
- if (p.class) {
1568
- const o = p.class.split(" ");
1569
- o && o.length && o.reduce((a, m) => (a[m] = !0, a), s);
1595
+ if (u.class) {
1596
+ const o = u.class.split(" ");
1597
+ o && o.length && o.reduce((a, h) => (a[h] = !0, a), r);
1570
1598
  }
1571
- return s;
1599
+ return r;
1572
1600
  }
1573
- function l(p) {
1574
- p && (p.stopPropagation(), p.preventDefault());
1601
+ function p(u) {
1602
+ u && (u.stopPropagation(), u.preventDefault());
1575
1603
  }
1576
- function i(p, s) {
1577
- l(p);
1578
- const o = s.expanded;
1579
- document.body.click(), s.expanded = !o;
1604
+ function i(u, r) {
1605
+ p(u);
1606
+ const o = r.expanded;
1607
+ document.body.click(), r.expanded = !o;
1580
1608
  }
1581
- const d = function(p) {
1609
+ const f = function(u) {
1582
1610
  const {
1583
- componentType: s
1584
- } = p, o = U(s, p), a = s.toLowerCase().replace("-", "_");
1585
- return o && !o.id && o.type === s && (o.id = `${a}_${Math.random().toString().slice(2, 6)}`), o;
1586
- }, c = function() {
1587
- const p = {
1611
+ componentType: r
1612
+ } = u, o = U(r, u), a = r.toLowerCase().replace("-", "_");
1613
+ return o && !o.id && o.type === r && (o.id = `${a}_${Math.random().toString().slice(2, 6)}`), o;
1614
+ }, l = function() {
1615
+ const u = {
1588
1616
  componentType: "response-toolbar-item",
1589
1617
  parentComponentInstance: t.value,
1590
1618
  targetPosition: -1
1591
1619
  };
1592
- return d(p);
1620
+ return f(u);
1593
1621
  };
1594
- function C(p) {
1595
- const s = g.schema.buttons || g.schema.contents, o = s == null ? void 0 : s.findIndex((m) => m.id === p), a = o === -1 ? null : s[o];
1622
+ function C(u) {
1623
+ const r = d.schema.buttons || d.schema.contents, o = r == null ? void 0 : r.findIndex((h) => h.id === u), a = o === -1 ? null : r[o];
1596
1624
  return {
1597
1625
  index: o,
1598
1626
  toolbarItem: a
1599
1627
  };
1600
1628
  }
1601
- function w(p, s) {
1629
+ function w(u, r) {
1602
1630
  var R;
1603
1631
  const {
1604
1632
  index: o,
1605
1633
  toolbarItem: a
1606
- } = C(s);
1634
+ } = C(r);
1607
1635
  if (o === -1)
1608
1636
  return;
1609
- const m = a.text || "按钮", B = c(), E = Object.assign({}, B, {
1610
- text: m
1637
+ const h = a.text || "按钮", B = l(), E = Object.assign({}, B, {
1638
+ text: h
1611
1639
  });
1612
- (R = g.schema.buttons) == null || R.push(E), S();
1640
+ (R = d.schema.buttons) == null || R.push(E), S();
1613
1641
  }
1614
- function j(p, s) {
1642
+ function j(u, r) {
1615
1643
  const {
1616
1644
  index: o,
1617
1645
  toolbarItem: a
1618
- } = C(s);
1646
+ } = C(r);
1619
1647
  if (o === -1)
1620
1648
  return;
1621
- const m = a.text || "按钮", B = c(), E = Object.assign({}, B, {
1622
- text: m
1623
- }), R = g.schema.buttons[o].children || [];
1624
- R.push(E), g.schema.buttons[o].children = R, S();
1649
+ const h = a.text || "按钮", B = l(), E = Object.assign({}, B, {
1650
+ text: h
1651
+ }), R = d.schema.buttons[o].children || [];
1652
+ R.push(E), d.schema.buttons[o].children = R, S();
1625
1653
  }
1626
- function I(p, s) {
1627
- const o = g.schema.buttons || g.schema.contents, a = o == null ? void 0 : o.findIndex((m) => m.id === s);
1654
+ function I(u, r) {
1655
+ const o = d.schema.buttons || d.schema.contents, a = o == null ? void 0 : o.findIndex((h) => h.id === r);
1628
1656
  a !== -1 && (o.splice(a, 1), S());
1629
1657
  }
1630
- function P(p) {
1658
+ function D(u) {
1631
1659
  return b("div", {
1632
1660
  class: "component-btn-group"
1633
1661
  }, [b("div", null, [b("div", {
@@ -1636,7 +1664,7 @@ function Nt(n, e, t) {
1636
1664
  title: "删除",
1637
1665
  ref: "removeButton",
1638
1666
  style: "position:static;",
1639
- onClick: (s) => I(s, p)
1667
+ onClick: (r) => I(r, u)
1640
1668
  }, [b("i", {
1641
1669
  class: "f-icon f-icon-yxs_delete"
1642
1670
  }, null)]), b("div", {
@@ -1645,7 +1673,7 @@ function Nt(n, e, t) {
1645
1673
  title: "复制",
1646
1674
  ref: "copyButton",
1647
1675
  style: "position:static;",
1648
- onClick: (s) => w(s, p)
1676
+ onClick: (r) => w(r, u)
1649
1677
  }, [b("i", {
1650
1678
  class: "f-icon f-icon-yxs_copy"
1651
1679
  }, null)]), b("div", {
@@ -1654,7 +1682,7 @@ function Nt(n, e, t) {
1654
1682
  title: "新增子级",
1655
1683
  ref: "appendChildButton",
1656
1684
  style: "width:85px!important;padding:0 5px;position:static;",
1657
- onClick: (s) => j(s, p)
1685
+ onClick: (r) => j(r, u)
1658
1686
  }, [b("i", {
1659
1687
  class: "f-icon f-icon-plus-circle text-white mr-1"
1660
1688
  }, null), b("span", {
@@ -1662,59 +1690,59 @@ function Nt(n, e, t) {
1662
1690
  }, [Q("新增子级")])])])]);
1663
1691
  }
1664
1692
  function A() {
1665
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((s) => s.classList.remove("dgComponentFocused"));
1666
- const p = document.getElementsByClassName("dgComponentSelected");
1667
- Array.from(p).forEach((s) => s.classList.remove("dgComponentSelected"));
1693
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
1694
+ const u = document.getElementsByClassName("dgComponentSelected");
1695
+ Array.from(u).forEach((r) => r.classList.remove("dgComponentSelected"));
1668
1696
  }
1669
- function $(p) {
1670
- p.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1697
+ function $(u) {
1698
+ u.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1671
1699
  }
1672
- function v(p) {
1673
- var m;
1674
- const s = g.schema.buttons || g.schema.contents, o = s == null ? void 0 : s.findIndex((B) => B.id === p);
1700
+ function v(u) {
1701
+ var h;
1702
+ const r = d.schema.buttons || d.schema.contents, o = r == null ? void 0 : r.findIndex((B) => B.id === u);
1675
1703
  if (o === -1)
1676
1704
  return;
1677
- const a = s[o];
1678
- (m = g == null ? void 0 : g.setupContext) == null || m.emit("selectionChange", "response-toolbar-item", a);
1705
+ const a = r[o];
1706
+ (h = d == null ? void 0 : d.setupContext) == null || h.emit("selectionChange", "response-toolbar-item", a);
1679
1707
  }
1680
- function f(p, s) {
1681
- l(p), A(), $(p), l(p), i(p, s), v(s.id);
1708
+ function m(u, r) {
1709
+ p(u), A(), $(u), p(u), i(u, r), v(r.id);
1682
1710
  }
1683
- function x(p) {
1711
+ function x(u) {
1684
1712
  return b("div", {
1685
- id: p.id,
1686
- class: y(p)
1713
+ id: u.id,
1714
+ class: y(u)
1687
1715
  }, [b("div", {
1688
- class: T(p),
1716
+ class: T(u),
1689
1717
  style: "display: flex;padding-right: 0.1rem;",
1690
- onClick: (s) => p.enable && f(s, p)
1691
- }, [P(p.id), e.shouldShowIcon(p) && b("i", {
1692
- class: e.iconClass(p)
1693
- }, null), b("span", null, [p.text]), b("i", {
1718
+ onClick: (r) => u.enable && m(r, u)
1719
+ }, [D(u.id), e.shouldShowIcon(u) && b("i", {
1720
+ class: e.iconClass(u)
1721
+ }, null), b("span", null, [u.text]), b("i", {
1694
1722
  class: "f-icon f-icon-arrow-chevron-down",
1695
1723
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1696
- }, null)]), u(p)]);
1724
+ }, null)]), c(u)]);
1697
1725
  }
1698
1726
  function k() {
1699
- h();
1727
+ g();
1700
1728
  }
1701
1729
  return {
1702
1730
  renderToolbarDropdown: x,
1703
1731
  clearAllDropDown: k
1704
1732
  };
1705
1733
  }
1706
- function _t() {
1734
+ function Vt() {
1707
1735
  function n(e) {
1708
- var u, h;
1736
+ var c, g;
1709
1737
  if (!e)
1710
1738
  return !1;
1711
- const t = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
1739
+ const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
1712
1740
  if (!t)
1713
1741
  return !1;
1714
- const r = (h = t.schema.appearance) == null ? void 0 : h.class;
1742
+ const s = (g = t.schema.appearance) == null ? void 0 : g.class;
1715
1743
  if (e.controlCategory === "input" || e.controlType === "form-group") {
1716
- const g = t.schema.type, D = (g === "response-form" || g === "content-container") && r && r.includes("farris-form");
1717
- if (t.schema.type !== "response-layout-item" && !D)
1744
+ const d = t.schema.type, P = (d === "response-form" || d === "content-container") && s && s.includes("farris-form");
1745
+ if (t.schema.type !== "response-layout-item" && !P)
1718
1746
  return !1;
1719
1747
  }
1720
1748
  return e.controlType !== "field-set";
@@ -1723,7 +1751,7 @@ function _t() {
1723
1751
  basalDragulaRuleForContainer: n
1724
1752
  };
1725
1753
  }
1726
- const Ft = "https://json-schema.org/draft/2020-12/schema", Lt = "https://farris-design.gitee.io/dragging-rules.schema.json", Vt = "Dragging Rules", Wt = "The rules of designer canvas", Ut = "object", qt = {
1754
+ const Wt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/dragging-rules.schema.json", qt = "Dragging Rules", Ht = "The rules of designer canvas", zt = "object", Gt = {
1727
1755
  "f-page": {
1728
1756
  description: "The root class of page designed by farris.",
1729
1757
  type: "object",
@@ -2361,105 +2389,105 @@ const Ft = "https://json-schema.org/draft/2020-12/schema", Lt = "https://farris-
2361
2389
  description: "",
2362
2390
  type: "object"
2363
2391
  }
2364
- }, Ht = {
2365
- $schema: Ft,
2366
- $id: Lt,
2367
- title: Vt,
2368
- description: Wt,
2369
- type: Ut,
2370
- properties: qt
2371
- }, se = /* @__PURE__ */ new Map();
2372
- function Me() {
2373
- function n(c, C, w, j) {
2392
+ }, Jt = {
2393
+ $schema: Wt,
2394
+ $id: Ut,
2395
+ title: qt,
2396
+ description: Ht,
2397
+ type: zt,
2398
+ properties: Gt
2399
+ }, re = /* @__PURE__ */ new Map();
2400
+ function Ae() {
2401
+ function n(l, C, w, j) {
2374
2402
  var I;
2375
2403
  if (typeof w == "number")
2376
- return ((I = j[c]) == null ? void 0 : I.length) === w;
2404
+ return ((I = j[l]) == null ? void 0 : I.length) === w;
2377
2405
  if (typeof w == "object") {
2378
- const P = Object.keys(w)[0], A = w[P];
2379
- if (P === "not")
2380
- return Number(j[c].length) !== Number(A);
2381
- if (P === "moreThan")
2382
- return Number(j[c].length) >= Number(A);
2383
- if (P === "lessThan")
2384
- return Number(j[c].length) <= Number(A);
2406
+ const D = Object.keys(w)[0], A = w[D];
2407
+ if (D === "not")
2408
+ return Number(j[l].length) !== Number(A);
2409
+ if (D === "moreThan")
2410
+ return Number(j[l].length) >= Number(A);
2411
+ if (D === "lessThan")
2412
+ return Number(j[l].length) <= Number(A);
2385
2413
  }
2386
2414
  return !1;
2387
2415
  }
2388
- function e(c, C, w, j) {
2416
+ function e(l, C, w, j) {
2389
2417
  return typeof w == "boolean" ? j.childrenClassList.includes(C) === !!w : !1;
2390
2418
  }
2391
- function t(c, C, w, j) {
2419
+ function t(l, C, w, j) {
2392
2420
  return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
2393
2421
  }
2394
- function r(c, C, w, j) {
2422
+ function s(l, C, w, j) {
2395
2423
  return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
2396
2424
  }
2397
- const u = /* @__PURE__ */ new Map([
2425
+ const c = /* @__PURE__ */ new Map([
2398
2426
  ["length", n],
2399
2427
  ["hasChildren", e],
2400
- ["hasSibling", r],
2428
+ ["hasSibling", s],
2401
2429
  ["hasParent", t]
2402
2430
  ]);
2403
- function h(c, C) {
2404
- const w = c;
2431
+ function g(l, C) {
2432
+ const w = l;
2405
2433
  return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((j) => {
2406
2434
  if (j === "length")
2407
2435
  return { target: w, operator: "length", param: null, value: C[j] };
2408
- const I = j, P = C[j];
2409
- return { target: w, operator: c === "children" ? "hasChildren" : c === "parent" ? "hasParent" : "hasSibling", param: I, value: P };
2436
+ const I = j, D = C[j];
2437
+ return { target: w, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: I, value: D };
2410
2438
  }) : [];
2411
2439
  }
2412
- function g(c, C) {
2413
- if (u.has(c.operator)) {
2414
- const w = u.get(c.operator);
2415
- return w && w(c.target, c.param, c.value, C) || !1;
2440
+ function d(l, C) {
2441
+ if (c.has(l.operator)) {
2442
+ const w = c.get(l.operator);
2443
+ return w && w(l.target, l.param, l.value, C) || !1;
2416
2444
  }
2417
2445
  return !1;
2418
2446
  }
2419
- function D(c, C) {
2420
- return Object.keys(c).reduce((P, A) => {
2421
- const $ = h(A, c[A]);
2422
- return P.push(...$), P;
2423
- }, []).reduce((P, A) => P && g(A, C), !0);
2447
+ function P(l, C) {
2448
+ return Object.keys(l).reduce((D, A) => {
2449
+ const $ = g(A, l[A]);
2450
+ return D.push(...$), D;
2451
+ }, []).reduce((D, A) => D && d(A, C), !0);
2424
2452
  }
2425
- function S(c, C) {
2426
- const w = Object.keys(c), j = w.includes("allOf"), I = w.includes("anyOf"), P = j || I, v = (P ? c[P ? j ? "allOf" : "anyOf" : "allOf"] : [c]).map((x) => D(x, C));
2453
+ function S(l, C) {
2454
+ const w = Object.keys(l), j = w.includes("allOf"), I = w.includes("anyOf"), D = j || I, v = (D ? l[D ? j ? "allOf" : "anyOf" : "allOf"] : [l]).map((x) => P(x, C));
2427
2455
  return j ? !v.includes(!1) : v.includes(!0);
2428
2456
  }
2429
- function y(c, C) {
2430
- const w = c.const;
2457
+ function y(l, C) {
2458
+ const w = l.const;
2431
2459
  return w ? typeof w == "boolean" ? w : typeof w == "object" ? S(w, C) : !1 : !1;
2432
2460
  }
2433
- function T(c) {
2461
+ function T(l) {
2434
2462
  return (C) => {
2435
2463
  const w = { canAccept: !0, fixed: !1, hidePadding: !1 };
2436
- return c && c.properties && Object.keys(c.properties).reduce((j, I) => {
2437
- const P = c.properties[I];
2438
- return j[I] = y(P, C), j;
2464
+ return l && l.properties && Object.keys(l.properties).reduce((j, I) => {
2465
+ const D = l.properties[I];
2466
+ return j[I] = y(D, C), j;
2439
2467
  }, w), w;
2440
2468
  };
2441
2469
  }
2442
- function l(c, C, w) {
2470
+ function p(l, C, w) {
2443
2471
  if (C.type === "object" && C.properties) {
2444
2472
  const { rules: j, contents: I } = C.properties;
2445
- w.set(c, T(j)), I && Object.keys(I.properties).forEach(
2446
- (P) => l(P, I.properties[P], w)
2473
+ w.set(l, T(j)), I && Object.keys(I.properties).forEach(
2474
+ (D) => p(D, I.properties[D], w)
2447
2475
  );
2448
2476
  }
2449
2477
  }
2450
2478
  function i() {
2451
- const { properties: c } = Ht;
2452
- Object.keys(c).forEach((C) => {
2453
- l(C, c[C], se);
2479
+ const { properties: l } = Jt;
2480
+ Object.keys(l).forEach((C) => {
2481
+ p(C, l[C], re);
2454
2482
  });
2455
2483
  }
2456
- function d(c, C) {
2484
+ function f(l, C) {
2457
2485
  const w = { canAccept: !0, fixed: !1, hidePadding: !0 };
2458
- return se.has(c) ? se.get(c)(C) : w;
2486
+ return re.has(l) ? re.get(l)(C) : w;
2459
2487
  }
2460
- return i(), { getRuleValue: d };
2488
+ return i(), { getRuleValue: f };
2461
2489
  }
2462
- class zt extends ee {
2490
+ class Qt extends ee {
2463
2491
  constructor(e, t) {
2464
2492
  super(e, t);
2465
2493
  }
@@ -2528,46 +2556,46 @@ class zt extends ee {
2528
2556
  };
2529
2557
  }
2530
2558
  }
2531
- function Gt(n, e, t, r) {
2532
- const u = Me(), h = M(!1), g = M(!1);
2533
- let D = !0, S = !1, y;
2559
+ function Xt(n, e, t, s) {
2560
+ const c = Ae(), g = M(!1), d = M(!1);
2561
+ let P = !0, S = !1, y;
2534
2562
  function T(v) {
2535
2563
  return y && y.componentClassList && y.componentClassList.includes("f-form-layout") && y.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
2536
2564
  }
2537
- function l(v) {
2538
- return !_t().basalDragulaRuleForContainer(v) || !D || !T(v), !1;
2565
+ function p(v) {
2566
+ return !Vt().basalDragulaRuleForContainer(v) || !P || !T(v), !1;
2539
2567
  }
2540
2568
  function i() {
2541
- h.value = !1, g.value = !1;
2542
- const v = n, f = v.appearance && v.appearance.class || "", x = f.split(" "), k = v.buttons || [], p = k.length ? k[0] : null, s = p && p.appearance ? p.appearance.class : "", o = s ? s.split(" ") : [], a = k.length ? k.reduce((_, W) => {
2569
+ g.value = !1, d.value = !1;
2570
+ const v = n, m = v.appearance && v.appearance.class || "", x = m.split(" "), k = v.buttons || [], u = k.length ? k[0] : null, r = u && u.appearance ? u.appearance.class : "", o = r ? r.split(" ") : [], a = k.length ? k.reduce((_, W) => {
2543
2571
  const q = W && W.appearance ? W.appearance.class : "", te = q ? q.split(" ") : [];
2544
2572
  return _.push(...te), _;
2545
- }, []) : [], m = t == null ? void 0 : t.schema, B = m && m.appearance && m.appearance.class || "", E = B ? B.split(" ") : [];
2573
+ }, []) : [], h = t == null ? void 0 : t.schema, B = h && h.appearance && h.appearance.class || "", E = B ? B.split(" ") : [];
2546
2574
  y = {
2547
- componentClass: f,
2575
+ componentClass: m,
2548
2576
  componentClassList: x,
2549
2577
  childContents: k,
2550
- firstChildContent: p,
2551
- firstChildClass: s,
2578
+ firstChildContent: u,
2579
+ firstChildClass: r,
2552
2580
  firstChildClassList: o,
2553
- parent: m,
2581
+ parent: h,
2554
2582
  parentClass: B,
2555
2583
  parentClassList: E,
2556
2584
  children: k,
2557
2585
  childrenClassList: a
2558
2586
  };
2559
- const { canAccept: R, fixed: L, hidePadding: N } = u.getRuleValue(x[0], y);
2560
- return D = R, S = N, !0;
2587
+ const { canAccept: R, fixed: L, hidePadding: N } = c.getRuleValue(x[0], y);
2588
+ return P = R, S = N, !0;
2561
2589
  }
2562
- function d(v) {
2590
+ function f(v) {
2563
2591
  }
2564
- function c() {
2592
+ function l() {
2565
2593
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2566
2594
  }
2567
- function C(v, f) {
2568
- return f.text = v.label, f;
2595
+ function C(v, m) {
2596
+ return m.text = v.label, m;
2569
2597
  }
2570
- function w(v, f, x) {
2598
+ function w(v, m, x) {
2571
2599
  const k = n;
2572
2600
  if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
2573
2601
  const o = String(v.innerText), a = U("form-group");
@@ -2581,32 +2609,32 @@ function Gt(n, e, t, r) {
2581
2609
  function I() {
2582
2610
  return !1;
2583
2611
  }
2584
- function P() {
2612
+ function D() {
2585
2613
  return !0;
2586
2614
  }
2587
2615
  function A() {
2588
2616
  return S;
2589
2617
  }
2590
2618
  function $(v) {
2591
- return new zt(v, e).getPropertyConfig(n);
2619
+ return new Qt(v, e).getPropertyConfig(n);
2592
2620
  }
2593
2621
  return {
2594
- canAccepts: l,
2595
- checkCanAddComponent: P,
2622
+ canAccepts: p,
2623
+ checkCanAddComponent: D,
2596
2624
  checkCanDeleteComponent: I,
2597
2625
  checkCanMoveComponent: j,
2598
- getStyles: c,
2626
+ getStyles: l,
2599
2627
  hideNestedPaddingInDesginerView: A,
2600
2628
  onAcceptNewChildElement: w,
2601
- onAcceptMovedChildElement: d,
2629
+ onAcceptMovedChildElement: f,
2602
2630
  onResolveNewComponentSchema: C,
2603
2631
  resolveComponentContext: i,
2604
2632
  getPropsConfig: $,
2605
- triggerBelongedComponentToMoveWhenMoved: h,
2606
- triggerBelongedComponentToDeleteWhenDeleted: g
2633
+ triggerBelongedComponentToMoveWhenMoved: g,
2634
+ triggerBelongedComponentToDeleteWhenDeleted: d
2607
2635
  };
2608
2636
  }
2609
- const Jt = {
2637
+ const Yt = {
2610
2638
  id: { type: String, default: "" },
2611
2639
  componentId: { type: String, default: "" },
2612
2640
  canAdd: { type: Boolean, default: !1 },
@@ -2620,11 +2648,11 @@ const Jt = {
2620
2648
  */
2621
2649
  modelValue: { type: Object }
2622
2650
  }, X = M(0);
2623
- function Qt(n, e) {
2624
- const t = e.getBoundingClientRect(), r = n.getBoundingClientRect(), u = r.top >= t.top, h = r.top <= t.bottom;
2625
- return u && h;
2651
+ function Zt(n, e) {
2652
+ const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), c = s.top >= t.top, g = s.top <= t.bottom;
2653
+ return c && g;
2626
2654
  }
2627
- function Xt(n) {
2655
+ function Kt(n) {
2628
2656
  if (!n)
2629
2657
  return;
2630
2658
  let e;
@@ -2633,29 +2661,29 @@ function Xt(n) {
2633
2661
  const t = e.getBoundingClientRect();
2634
2662
  if (t.width === 0 && t.height === 0)
2635
2663
  return;
2636
- const r = e.querySelector(".component-btn-group");
2637
- if (r) {
2638
- if (!Qt(e, n)) {
2639
- r.style.display = "none";
2664
+ const s = e.querySelector(".component-btn-group");
2665
+ if (s) {
2666
+ if (!Zt(e, n)) {
2667
+ s.style.display = "none";
2640
2668
  return;
2641
2669
  }
2642
- r.style.display = "";
2643
- const h = r.getBoundingClientRect(), g = r.querySelector("div");
2644
- if (g) {
2645
- const D = g.getBoundingClientRect();
2646
- g.style.top = h.top + "px", g.style.left = h.left - D.width + "px";
2670
+ s.style.display = "";
2671
+ const g = s.getBoundingClientRect(), d = s.querySelector("div");
2672
+ if (d) {
2673
+ const P = d.getBoundingClientRect();
2674
+ d.style.top = g.top + "px", d.style.left = g.left - P.width + "px";
2647
2675
  }
2648
2676
  }
2649
2677
  }
2650
- function Yt(n, e, t) {
2678
+ function en(n, e, t) {
2651
2679
  var $;
2652
- function r() {
2680
+ function s() {
2653
2681
  }
2654
- const u = "", h = M();
2655
- function g() {
2682
+ const c = "", g = M();
2683
+ function d() {
2656
2684
  return !0;
2657
2685
  }
2658
- function D() {
2686
+ function P() {
2659
2687
  return !1;
2660
2688
  }
2661
2689
  function S() {
@@ -2667,47 +2695,47 @@ function Yt(n, e, t) {
2667
2695
  function T() {
2668
2696
  return !0;
2669
2697
  }
2670
- function l(v) {
2698
+ function p(v) {
2671
2699
  if (!v || !v.value)
2672
2700
  return null;
2673
- const f = M(v == null ? void 0 : v.value.parent), x = l(f);
2701
+ const m = M(v == null ? void 0 : v.value.parent), x = p(m);
2674
2702
  return x || null;
2675
2703
  }
2676
2704
  function i(v = e) {
2677
- const { componentInstance: f, designerItemElementRef: x } = v;
2678
- return !f || !f.value ? null : f.value.canMove || f.value.canAdd || f.value.canDelete ? x : i(v.parent);
2705
+ const { componentInstance: m, designerItemElementRef: x } = v;
2706
+ return !m || !m.value ? null : m.value.canMove || m.value.canAdd || m.value.canDelete ? x : i(v.parent);
2679
2707
  }
2680
- function d(v) {
2708
+ function f(v) {
2681
2709
  return !!t;
2682
2710
  }
2683
- function c() {
2711
+ function l() {
2684
2712
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
2685
2713
  }
2686
2714
  function C() {
2687
2715
  }
2688
- function w(v, f) {
2716
+ function w(v, m) {
2689
2717
  }
2690
2718
  function j(v) {
2691
- const { componentType: f } = v;
2692
- let x = U(f, v);
2693
- const k = f.toLowerCase().replace("-", "_");
2694
- return x && !x.id && x.type === f && (x.id = `${k}_${Math.random().toString().slice(2, 6)}`), x;
2695
- }
2696
- function I(v, f) {
2697
- const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
2698
- p.parentComponentInstance = h.value;
2699
- let s = U(x, p);
2719
+ const { componentType: m } = v;
2720
+ let x = U(m, v);
2721
+ const k = m.toLowerCase().replace("-", "_");
2722
+ return x && !x.id && x.type === m && (x.id = `${k}_${Math.random().toString().slice(2, 6)}`), x;
2723
+ }
2724
+ function I(v, m) {
2725
+ const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), u = k ? JSON.parse(k) : {};
2726
+ u.parentComponentInstance = g.value;
2727
+ let r = U(x, u);
2700
2728
  const o = x.toLowerCase().replace("-", "_");
2701
- return s && !s.id && s.type === x && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
2729
+ return r && !r.id && r.type === x && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
2702
2730
  }
2703
- function P(v) {
2731
+ function D(v) {
2704
2732
  }
2705
2733
  function A(...v) {
2706
2734
  return [];
2707
2735
  }
2708
- return h.value = {
2709
- canMove: g(),
2710
- canSelectParent: D(),
2736
+ return g.value = {
2737
+ canMove: d(),
2738
+ canSelectParent: P(),
2711
2739
  canAdd: y(),
2712
2740
  canDelete: S(),
2713
2741
  canNested: !T(),
@@ -2715,90 +2743,90 @@ function Yt(n, e, t) {
2715
2743
  elementRef: n,
2716
2744
  parent: ($ = e.parent) == null ? void 0 : $.componentInstance,
2717
2745
  schema: e.schema,
2718
- styles: u,
2719
- canAccepts: d,
2720
- getBelongedComponentInstance: l,
2746
+ styles: c,
2747
+ canAccepts: f,
2748
+ getBelongedComponentInstance: p,
2721
2749
  getDraggableDesignItemElement: i,
2722
- getDraggingDisplayText: c,
2750
+ getDraggingDisplayText: l,
2723
2751
  getPropConfig: A,
2724
2752
  getDragScopeElement: C,
2725
2753
  onAcceptMovedChildElement: w,
2726
2754
  onAcceptNewChildElement: I,
2727
- onChildElementMovedOut: P,
2755
+ onChildElementMovedOut: D,
2728
2756
  addNewChildComponentSchema: j,
2729
- updateDragAndDropRules: r,
2757
+ updateDragAndDropRules: s,
2730
2758
  triggerBelongedComponentToMoveWhenMoved: M(!1),
2731
2759
  triggerBelongedComponentToDeleteWhenDeleted: M(!1)
2732
- }, h;
2760
+ }, g;
2733
2761
  }
2734
- const ke = /* @__PURE__ */ z({
2762
+ const Be = /* @__PURE__ */ z({
2735
2763
  name: "FDesignerInnerItem",
2736
- props: Jt,
2764
+ props: Yt,
2737
2765
  emits: ["selectionChange", "addComponent", "removeComponent"],
2738
2766
  setup(n, e) {
2739
- const t = M(n.canMove), r = M(n.canAdd), u = M(n.canDelete), h = M(!1), g = M(n.contentKey), D = M(n.childType), S = M(n.childLabel), y = M(n.modelValue), T = M(""), l = M(), i = V("canvas-dragula"), d = M(), c = V("design-item-context"), C = {
2740
- designerItemElementRef: l,
2741
- componentInstance: d,
2767
+ const t = M(n.canMove), s = M(n.canAdd), c = M(n.canDelete), g = M(!1), d = M(n.contentKey), P = M(n.childType), S = M(n.childLabel), y = M(n.modelValue), T = M(""), p = M(), i = V("canvas-dragula"), f = M(), l = V("design-item-context"), C = {
2768
+ designerItemElementRef: p,
2769
+ componentInstance: f,
2742
2770
  schema: y.value,
2743
- parent: c,
2771
+ parent: l,
2744
2772
  setupContext: e
2745
2773
  };
2746
- Ne("design-item-context", C);
2774
+ Fe("design-item-context", C);
2747
2775
  const w = F(() => ({
2748
2776
  "farris-component": !0,
2749
2777
  // 受position-relative影响,整个容器的高度不能被撑起
2750
2778
  "flex-fill": n.id == "root-component",
2751
- "position-relative": t.value || u.value,
2752
- "farris-nested": h.value,
2779
+ "position-relative": t.value || c.value,
2780
+ "farris-nested": g.value,
2753
2781
  "can-move": t.value,
2754
- "d-none": l.value && l.value.classList.contains("d-none")
2782
+ "d-none": p.value && p.value.classList.contains("d-none")
2755
2783
  })), j = F(() => {
2756
2784
  const o = {};
2757
- return T.value && T.value.split(";").reduce((a, m) => {
2758
- const [B, E] = m.split(":");
2785
+ return T.value && T.value.split(";").reduce((a, h) => {
2786
+ const [B, E] = h.split(":");
2759
2787
  return B && (a[B] = E), a;
2760
2788
  }, o), o;
2761
2789
  });
2762
2790
  function I(o, a) {
2763
- if (c && c.schema[g.value]) {
2764
- const m = c.schema[g.value].findIndex((B) => B.id === a.id);
2765
- if (m > -1) {
2766
- const B = c.schema[g.value].length, E = c.schema[g.value][m % B];
2767
- c.designerItemElementRef.value.querySelector(`#${E.id}-design-item`), c.schema[g.value].splice(m, 1), c.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
2791
+ if (l && l.schema[d.value]) {
2792
+ const h = l.schema[d.value].findIndex((B) => B.id === a.id);
2793
+ if (h > -1) {
2794
+ const B = l.schema[d.value].length, E = l.schema[d.value][h % B];
2795
+ l.designerItemElementRef.value.querySelector(`#${E.id}-design-item`), l.schema[d.value].splice(h, 1), l.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
2768
2796
  }
2769
2797
  }
2770
2798
  }
2771
- function P(o) {
2772
- if (d.value.addNewChildComponentSchema) {
2799
+ function D(o) {
2800
+ if (f.value.addNewChildComponentSchema) {
2773
2801
  const a = {
2774
- componentType: D.value,
2802
+ componentType: P.value,
2775
2803
  label: S.value,
2776
- parentComponentInstance: d.value,
2804
+ parentComponentInstance: f.value,
2777
2805
  targetPosition: -1
2778
- }, m = d.value.addNewChildComponentSchema(a);
2779
- y.value[g.value].push(m), e.emit("addComponent");
2806
+ }, h = f.value.addNewChildComponentSchema(a);
2807
+ y.value[d.value].push(h), e.emit("addComponent");
2780
2808
  }
2781
2809
  }
2782
2810
  function A() {
2783
- return r.value && b("div", {
2811
+ return s.value && b("div", {
2784
2812
  role: "button",
2785
2813
  class: "btn component-settings-button",
2786
2814
  title: "新增",
2787
2815
  ref: "removeComponent",
2788
2816
  onClick: (o) => {
2789
- P();
2817
+ D();
2790
2818
  }
2791
2819
  }, [b("i", {
2792
2820
  class: "f-icon f-icon-plus-circle"
2793
2821
  }, null)]);
2794
2822
  }
2795
2823
  function $(o) {
2796
- return u.value && b("div", {
2824
+ return c.value && b("div", {
2797
2825
  role: "button",
2798
2826
  class: "btn component-settings-button",
2799
2827
  title: "删除",
2800
2828
  ref: "removeComponent",
2801
- onClick: Fe((a) => I(a, o), ["stop"])
2829
+ onClick: Ve((a) => I(a, o), ["stop"])
2802
2830
  }, [b("i", {
2803
2831
  class: "f-icon f-icon-yxs_delete"
2804
2832
  }, null)]);
@@ -2814,7 +2842,7 @@ const ke = /* @__PURE__ */ z({
2814
2842
  class: "cmp_move f-icon f-icon-yxs_move"
2815
2843
  }, null)]);
2816
2844
  }
2817
- function f(o) {
2845
+ function m(o) {
2818
2846
  return b("div", {
2819
2847
  class: "component-btn-group",
2820
2848
  "data-noattach": "true"
@@ -2825,33 +2853,33 @@ const ke = /* @__PURE__ */ z({
2825
2853
  });
2826
2854
  function x(o) {
2827
2855
  const a = o.target;
2828
- Xt(a);
2856
+ Kt(a);
2829
2857
  }
2830
2858
  function k() {
2831
2859
  var o, a;
2832
- (a = (o = y.value) == null ? void 0 : o.contents) != null && a.length && l.value && l.value.addEventListener("scroll", x);
2860
+ (a = (o = y.value) == null ? void 0 : o.contents) != null && a.length && p.value && p.value.addEventListener("scroll", x);
2833
2861
  }
2834
- function p() {
2835
- const o = l.value, a = M(o.children[1]);
2836
- return Yt(a, C).value;
2862
+ function u() {
2863
+ const o = p.value, a = M(o.children[1]);
2864
+ return en(a, C).value;
2837
2865
  }
2838
2866
  H(() => {
2839
- if (l.value) {
2840
- const o = l.value.querySelector(`[data-dragref='${y.value.id}-container']`);
2841
- d.value = o && o.componentInstance ? o.componentInstance.value : p(), i && o && i.attachComponents(o, y.value), h.value = d.value.canNested !== void 0 ? d.value.canNested : h.value, r.value = d.value.canAdd !== void 0 ? d.value.canAdd : r.value, u.value = d.value.canDelete !== void 0 ? d.value.canDelete : u.value, t.value = d.value.canMove !== void 0 ? d.value.canMove : t.value, T.value = d.value.styles || "", l.value && (l.value.componentInstance = d, l.value.designItemContext = C);
2867
+ if (p.value) {
2868
+ const o = p.value.querySelector(`[data-dragref='${y.value.id}-container']`);
2869
+ f.value = o && o.componentInstance ? o.componentInstance.value : u(), i && o && i.attachComponents(o, y.value), g.value = f.value.canNested !== void 0 ? f.value.canNested : g.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, c.value = f.value.canDelete !== void 0 ? f.value.canDelete : c.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, T.value = f.value.styles || "", p.value && (p.value.componentInstance = f, p.value.designItemContext = C);
2842
2870
  }
2843
2871
  k(), X.value++;
2844
- }), _e(() => {
2845
- l.value && l.value.removeEventListener("scroll", x);
2872
+ }), Le(() => {
2873
+ p.value && p.value.removeEventListener("scroll", x);
2846
2874
  });
2847
- function s(o) {
2848
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((m) => m.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2849
- const a = l.value;
2875
+ function r(o) {
2876
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((h) => h.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2877
+ const a = p.value;
2850
2878
  if (a) {
2851
- const m = document.getElementsByClassName("dgComponentSelected");
2852
- if (!(m && m.length === 1 && m[0] === l.value)) {
2853
- Array.from(m).forEach((R) => R.classList.remove("dgComponentSelected")), a.classList.add("dgComponentFocused"), e.emit("selectionChange", y.value.type, y.value, n.componentId, d.value);
2854
- const E = d.value.getDraggableDesignItemElement(C);
2879
+ const h = document.getElementsByClassName("dgComponentSelected");
2880
+ if (!(h && h.length === 1 && h[0] === p.value)) {
2881
+ Array.from(h).forEach((R) => R.classList.remove("dgComponentSelected")), a.classList.add("dgComponentFocused"), e.emit("selectionChange", y.value.type, y.value, n.componentId, f.value);
2882
+ const E = f.value.getDraggableDesignItemElement(C);
2855
2883
  E && E.value && E.value.classList.add("dgComponentSelected");
2856
2884
  }
2857
2885
  }
@@ -2859,14 +2887,14 @@ const ke = /* @__PURE__ */ z({
2859
2887
  }
2860
2888
  return () => b("div", {
2861
2889
  id: `${n.id}-design-item`,
2862
- ref: l,
2890
+ ref: p,
2863
2891
  class: w.value,
2864
2892
  style: j.value,
2865
- onClick: s
2866
- }, [f(y.value), e.slots.default && e.slots.default()]);
2893
+ onClick: r
2894
+ }, [m(y.value), e.slots.default && e.slots.default()]);
2867
2895
  }
2868
2896
  });
2869
- class Zt extends ee {
2897
+ class tn extends ee {
2870
2898
  constructor(e, t) {
2871
2899
  super(e, t);
2872
2900
  }
@@ -2917,40 +2945,40 @@ class Zt extends ee {
2917
2945
  title: "style样式"
2918
2946
  }
2919
2947
  },
2920
- setPropertyRelates(t, r) {
2948
+ setPropertyRelates(t, s) {
2921
2949
  }
2922
2950
  };
2923
2951
  }
2924
2952
  getEventPropConfig(e) {
2925
2953
  const t = [
2926
2954
  {
2927
- label: "click",
2955
+ label: "onClick",
2928
2956
  name: "点击事件"
2929
2957
  }
2930
2958
  ];
2931
- var r = this;
2932
- const u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), h = {};
2933
- h[r.viewModelId] = {
2959
+ var s = this;
2960
+ const c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), g = {};
2961
+ g[s.viewModelId] = {
2934
2962
  type: "events-editor",
2935
2963
  editor: {
2936
- initialData: u
2964
+ initialData: c
2937
2965
  }
2938
2966
  }, this.propertyConfig.categories.eventsEditor = {
2939
2967
  title: "事件",
2940
2968
  hideTitle: !0,
2941
- properties: h,
2969
+ properties: g,
2942
2970
  // 这个属性,标记当属性变更得时候触发重新更新属性
2943
2971
  refreshPanelAfterChanged: !0,
2944
2972
  tabId: "commands",
2945
2973
  tabName: "交互",
2946
- setPropertyRelates(g, D) {
2947
- const S = g.propertyValue;
2948
- delete e[r.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, S.events, S));
2974
+ setPropertyRelates(d, P) {
2975
+ const S = d.propertyValue;
2976
+ delete e[s.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, S.events, S));
2949
2977
  }
2950
2978
  };
2951
2979
  }
2952
2980
  }
2953
- class Kt extends ee {
2981
+ class nn extends ee {
2954
2982
  constructor(e, t) {
2955
2983
  super(e, t);
2956
2984
  }
@@ -3014,38 +3042,38 @@ class Kt extends ee {
3014
3042
  getEventPropConfig(e) {
3015
3043
  const t = [
3016
3044
  {
3017
- label: "click",
3045
+ label: "onClick",
3018
3046
  name: "点击事件"
3019
3047
  }
3020
- ], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), h = {};
3021
- h[r.viewModelId] = {
3048
+ ], s = this, c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), g = {};
3049
+ g[s.viewModelId] = {
3022
3050
  type: "events-editor",
3023
3051
  editor: {
3024
- initialData: u
3052
+ initialData: c
3025
3053
  }
3026
3054
  }, this.propertyConfig.categories.eventsEditor = {
3027
3055
  title: "事件",
3028
3056
  hideTitle: !0,
3029
- properties: h,
3057
+ properties: g,
3030
3058
  // 这个属性,标记当属性变更得时候触发重新更新属性
3031
3059
  refreshPanelAfterChanged: !0,
3032
3060
  tabId: "commands",
3033
3061
  tabName: "交互",
3034
- setPropertyRelates(g, D) {
3035
- const S = g.propertyValue;
3036
- delete e[r.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, S.events, S));
3062
+ setPropertyRelates(d, P) {
3063
+ const S = d.propertyValue;
3064
+ delete e[s.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, S.events, S));
3037
3065
  }
3038
3066
  };
3039
3067
  }
3040
3068
  }
3041
- function en(n, e) {
3042
- Me();
3043
- const t = M(!1), r = M(!1);
3044
- let u = !1, h = !1;
3045
- function g(w) {
3069
+ function on(n, e) {
3070
+ Ae();
3071
+ const t = M(!1), s = M(!1);
3072
+ let c = !1, g = !1;
3073
+ function d(w) {
3046
3074
  return !1;
3047
3075
  }
3048
- function D(w) {
3076
+ function P(w) {
3049
3077
  }
3050
3078
  function S() {
3051
3079
  return "";
@@ -3054,118 +3082,118 @@ function en(n, e) {
3054
3082
  return j.text = w.label, j;
3055
3083
  }
3056
3084
  function T(w, j, I) {
3057
- const P = n.schema;
3058
- if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
3059
- const v = String(w.innerText), f = U("form-group");
3060
- return f.editor = I, f.label = v, f;
3085
+ const D = n.schema;
3086
+ if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
3087
+ const v = String(w.innerText), m = U("form-group");
3088
+ return m.editor = I, m.label = v, m;
3061
3089
  }
3062
3090
  return I;
3063
3091
  }
3064
- function l() {
3092
+ function p() {
3065
3093
  return !1;
3066
3094
  }
3067
3095
  function i() {
3068
- return !h;
3096
+ return !g;
3069
3097
  }
3070
- function d() {
3098
+ function f() {
3071
3099
  return !1;
3072
3100
  }
3073
- function c() {
3074
- return u;
3101
+ function l() {
3102
+ return c;
3075
3103
  }
3076
3104
  function C(w) {
3077
3105
  let j;
3078
3106
  switch (n.schema.type) {
3079
3107
  case "tab-toolbar-item":
3080
- j = new Zt(w, e);
3108
+ j = new tn(w, e);
3081
3109
  break;
3082
3110
  default:
3083
- j = new Kt(w, e);
3111
+ j = new nn(w, e);
3084
3112
  }
3085
3113
  return j.getPropertyConfig(n.schema);
3086
3114
  }
3087
3115
  return {
3088
- canAccepts: g,
3089
- checkCanAddComponent: d,
3116
+ canAccepts: d,
3117
+ checkCanAddComponent: f,
3090
3118
  checkCanDeleteComponent: i,
3091
- checkCanMoveComponent: l,
3119
+ checkCanMoveComponent: p,
3092
3120
  getStyles: S,
3093
- hideNestedPaddingInDesginerView: c,
3121
+ hideNestedPaddingInDesginerView: l,
3094
3122
  onAcceptNewChildElement: T,
3095
- onAcceptMovedChildElement: D,
3123
+ onAcceptMovedChildElement: P,
3096
3124
  onResolveNewComponentSchema: y,
3097
3125
  getPropsConfig: C,
3098
3126
  triggerBelongedComponentToMoveWhenMoved: t,
3099
- triggerBelongedComponentToDeleteWhenDeleted: r
3127
+ triggerBelongedComponentToDeleteWhenDeleted: s
3100
3128
  };
3101
3129
  }
3102
- const Ae = /* @__PURE__ */ z({
3130
+ const Re = /* @__PURE__ */ z({
3103
3131
  name: "FResponseToolbarItemDesign",
3104
- props: xe,
3132
+ props: Me,
3105
3133
  emits: ["Click"],
3106
3134
  setup(n, e) {
3107
3135
  M(), M();
3108
- const t = M(n.alignment), r = {
3136
+ const t = M(n.alignment), s = {
3109
3137
  id: "__more_buttons__",
3110
3138
  text: "More"
3111
- }, u = M(new J(r));
3112
- F(() => u.value.children.length > 0);
3113
- const h = M(), g = V("designer-host-service"), D = V("design-item-context"), S = en(D, g), y = Ce(h, D, S);
3139
+ }, c = M(new J(s));
3140
+ F(() => c.value.children.length > 0);
3141
+ const g = M(), d = V("designer-host-service"), P = V("design-item-context"), S = on(P, d), y = Pe(g, P, S);
3114
3142
  V("toolbar-item-handler", () => {
3115
3143
  }), H(() => {
3116
- h.value.componentInstance = y;
3144
+ g.value.componentInstance = y;
3117
3145
  }), e.expose(y.value);
3118
3146
  function T() {
3119
- const d = {
3147
+ const f = {
3120
3148
  "f-icon": !0
3121
- }, c = n.icon ? n.icon.trim() : "";
3122
- return Y(d, c);
3149
+ }, l = n.icon ? n.icon.trim() : "";
3150
+ return Y(f, l);
3123
3151
  }
3124
- function l() {
3152
+ function p() {
3125
3153
  return !!(n.icon && n.icon.trim());
3126
3154
  }
3127
3155
  function i() {
3128
- const d = {
3156
+ const f = {
3129
3157
  btn: !0,
3130
3158
  "f-rt-btn": !0,
3131
3159
  "f-btn-ml": t.value === "right",
3132
3160
  "f-btn-mr": t.value === "left",
3133
3161
  "btn-icontext": !!(n.icon && n.icon.trim())
3134
3162
  };
3135
- return Y(d, n.class);
3163
+ return Y(f, n.class);
3136
3164
  }
3137
3165
  return H(() => {
3138
3166
  }), ie(() => {
3139
3167
  }), () => b("div", {
3140
- ref: h,
3141
- "data-dragref": `${D.schema.id}-container`,
3168
+ ref: g,
3169
+ "data-dragref": `${P.schema.id}-container`,
3142
3170
  class: "farris-component position-relative",
3143
3171
  style: "display:inline-block!important;"
3144
3172
  }, [b("button", {
3145
3173
  type: "button",
3146
3174
  class: i(),
3147
3175
  id: n.id
3148
- }, [l() && b("i", {
3176
+ }, [p() && b("i", {
3149
3177
  class: T()
3150
3178
  }, null), n.text])]);
3151
3179
  }
3152
- }), Be = /* @__PURE__ */ z({
3180
+ }), Ie = /* @__PURE__ */ z({
3153
3181
  name: "FResponseToolbarDesign",
3154
- props: Bt,
3182
+ props: Ot,
3155
3183
  emits: ["Click"],
3156
3184
  setup(n, e) {
3157
3185
  const t = M(n.items);
3158
- let r = new Array(t.value.length).fill(M());
3159
- const u = M(), h = M(), g = M(n.alignment), D = {
3186
+ let s = new Array(t.value.length).fill(M());
3187
+ const c = M(), g = M(), d = M(n.alignment), P = {
3160
3188
  id: "__more_buttons__",
3161
3189
  text: "More"
3162
- }, S = M(new J(D)), y = Ee();
3190
+ }, S = M(new J(P)), y = ke();
3163
3191
  F(() => S.value.children.length > 0);
3164
- const T = M(), l = V("designer-host-service"), i = V("design-item-context"), d = Gt(i.schema, l, i), c = Ce(T, i, d);
3192
+ const T = M(), p = V("designer-host-service"), i = V("design-item-context"), f = Xt(i.schema, p, i), l = Pe(T, i, f);
3165
3193
  V("toolbar-item-handler", () => {
3166
3194
  }), H(() => {
3167
- T.value.componentInstance = c;
3168
- }), e.expose(c.value);
3195
+ T.value.componentInstance = l;
3196
+ }), e.expose(l.value);
3169
3197
  const C = F(() => Y({
3170
3198
  "f-toolbar": !0,
3171
3199
  "f-response-toolbar": !0,
@@ -3173,24 +3201,24 @@ const Ae = /* @__PURE__ */ z({
3173
3201
  }, n.customClass)), w = F(() => ({
3174
3202
  "d-flex": !0,
3175
3203
  "flex-nowrap": !0,
3176
- "justify-content-end": g.value === "right",
3177
- "justify-content-start": g.value === "left"
3204
+ "justify-content-end": d.value === "right",
3205
+ "justify-content-start": d.value === "left"
3178
3206
  })), {
3179
3207
  renderToolbarDropdown: j,
3180
3208
  clearAllDropDown: I
3181
- } = Nt(n, y, c);
3182
- function P() {
3183
- t.value.filter((p) => p.children && p.children.length > 0).forEach((p) => {
3184
- p.expanded = !1;
3209
+ } = Lt(n, y, l);
3210
+ function D() {
3211
+ t.value.filter((u) => u.children && u.children.length > 0).forEach((u) => {
3212
+ u.expanded = !1;
3185
3213
  }), S.value.expanded = !1, I();
3186
3214
  }
3187
3215
  const A = /* @__PURE__ */ new Map(), $ = [];
3188
- function v(p) {
3189
- const s = h.value;
3190
- let o = p;
3191
- const a = Array.from(s.children), m = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
3192
- if (m) {
3193
- const N = m.computedStyleMap().get("margin-left"), _ = m.computedStyleMap().get("margin-right"), W = (N ? N.value : 0) + m.getBoundingClientRect().width + (_ ? _.value : 0);
3216
+ function v(u) {
3217
+ const r = g.value;
3218
+ let o = u;
3219
+ const a = Array.from(r.children), h = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
3220
+ if (h) {
3221
+ const N = h.computedStyleMap().get("margin-left"), _ = h.computedStyleMap().get("margin-right"), W = (N ? N.value : 0) + h.getBoundingClientRect().width + (_ ? _.value : 0);
3194
3222
  o -= W;
3195
3223
  }
3196
3224
  const B = a.filter((N) => N.id !== "__more_buttons__");
@@ -3214,80 +3242,80 @@ const Ae = /* @__PURE__ */ z({
3214
3242
  const R = new J(E), L = t.value.reduce((N, _) => (A.has(_.id) && R.children.push(_), _.visible = !A.has(_.id), N.push(_), N), []);
3215
3243
  S.value = R, t.value = L;
3216
3244
  }
3217
- const f = new ResizeObserver((p) => {
3218
- if (p.length) {
3219
- const o = p[0].contentRect.width, m = h.value.getBoundingClientRect().width;
3220
- (o < m || $.length) && v(o);
3245
+ const m = new ResizeObserver((u) => {
3246
+ if (u.length) {
3247
+ const o = u[0].contentRect.width, h = g.value.getBoundingClientRect().width;
3248
+ (o < h || $.length) && v(o);
3221
3249
  }
3222
3250
  });
3223
3251
  H(() => {
3224
- const p = u.value;
3225
- f.observe(p), document.body.addEventListener("click", P);
3252
+ const u = c.value;
3253
+ m.observe(u), document.body.addEventListener("click", D);
3226
3254
  }), ie(() => {
3227
- f.disconnect(), document.body.removeEventListener("click", P);
3255
+ m.disconnect(), document.body.removeEventListener("click", D);
3228
3256
  }), G(() => n.items, () => {
3229
3257
  t.value = n.items;
3230
3258
  }, {
3231
3259
  deep: !0
3232
- }), G(t, (p) => {
3233
- r = new Array(t.value.length).fill(M());
3260
+ }), G(t, (u) => {
3261
+ s = new Array(t.value.length).fill(M());
3234
3262
  });
3235
- function x(p, s, o, a) {
3236
- i && i.setupContext && i.setupContext.emit("selectionChange", p, s, o, a);
3263
+ function x(u, r, o, a) {
3264
+ i && i.setupContext && i.setupContext.emit("selectionChange", u, r, o, a);
3237
3265
  }
3238
3266
  function k() {
3239
- const p = h.value.querySelector(".dgComponentFocused.dgComponentSelected");
3240
- p == null || p.classList.remove("dgComponentSelected"), p == null || p.classList.remove("dgComponentFocused");
3267
+ const u = g.value.querySelector(".dgComponentFocused.dgComponentSelected");
3268
+ u == null || u.classList.remove("dgComponentSelected"), u == null || u.classList.remove("dgComponentFocused");
3241
3269
  }
3242
3270
  return () => b("div", {
3243
3271
  ref: T,
3244
3272
  "data-dragref": `${i.schema.id}-container`,
3245
3273
  class: C.value
3246
3274
  }, [b("div", {
3247
- ref: u,
3275
+ ref: c,
3248
3276
  class: w.value
3249
3277
  }, [b("div", {
3250
- ref: h,
3278
+ ref: g,
3251
3279
  class: "d-inline-block f-response-content",
3252
3280
  style: "white-space: nowrap;"
3253
- }, [t.value.map((p, s) => b(ke, {
3254
- ref: r[s],
3281
+ }, [t.value.map((u, r) => b(Be, {
3282
+ ref: s[r],
3255
3283
  class: "p-0 display-inline-block",
3256
- modelValue: p,
3257
- "onUpdate:modelValue": (o) => p = o,
3284
+ modelValue: u,
3285
+ "onUpdate:modelValue": (o) => u = o,
3258
3286
  canMove: !0,
3259
3287
  childType: "response-toolbar-item",
3260
3288
  childLabel: "按钮",
3261
3289
  contentKey: "buttons",
3262
3290
  componentId: n.componentId,
3263
- id: p.id,
3291
+ id: u.id,
3264
3292
  style: "padding:0 !important;display:inline-block",
3265
3293
  onSelectionChange: x,
3266
3294
  onRemoveComponent: k
3267
3295
  }, {
3268
3296
  default: () => {
3269
3297
  var o;
3270
- return [b(Ae, {
3271
- id: p.id,
3272
- disable: p.disable,
3273
- text: p.text,
3274
- icon: p.icon,
3275
- class: ((o = p.appearance) == null ? void 0 : o.class) || "btn-secondary",
3298
+ return [b(Re, {
3299
+ id: u.id,
3300
+ disable: u.disable,
3301
+ text: u.text,
3302
+ icon: u.icon,
3303
+ class: ((o = u.appearance) == null ? void 0 : o.class) || "btn-secondary",
3276
3304
  alignment: n.alignment || "right",
3277
3305
  componentId: n.componentId
3278
3306
  }, null)];
3279
3307
  }
3280
3308
  }))])])]);
3281
3309
  }
3282
- }), be = de;
3310
+ }), ye = de;
3283
3311
  Z.register = (n, e, t) => {
3284
3312
  n["response-toolbar"] = Z, e["response-toolbar"] = de;
3285
3313
  };
3286
3314
  Z.registerDesigner = (n, e, t) => {
3287
- n["response-toolbar"] = Be, e["response-toolbar"] = de, n["response-toolbar-item"] = Ae, e["response-toolbar-item"] = Rt;
3315
+ n["response-toolbar"] = Ie, e["response-toolbar"] = de, n["response-toolbar-item"] = Re, e["response-toolbar-item"] = $t;
3288
3316
  };
3289
- We(Z);
3290
- const tn = {
3317
+ Ue(Z);
3318
+ const rn = {
3291
3319
  id: { type: String, default: "" },
3292
3320
  componentId: { type: String, default: "" },
3293
3321
  type: { type: String, default: "" },
@@ -3302,103 +3330,104 @@ const tn = {
3302
3330
  */
3303
3331
  modelValue: { type: Object },
3304
3332
  ignore: { type: Boolean, default: !1 }
3305
- }, ye = /* @__PURE__ */ z({
3333
+ }, ve = /* @__PURE__ */ z({
3306
3334
  name: "FDesignerTemplateItem",
3307
- props: tn,
3335
+ props: rn,
3308
3336
  emits: ["selectionChange"],
3309
3337
  setup(n, e) {
3310
- const t = M(), r = F(() => ({
3338
+ const t = M(), s = F(() => ({
3311
3339
  "farris-component": !0
3312
3340
  }));
3313
- function u(h) {
3314
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((D) => D.classList.remove("dgComponentFocused")), h && (h.preventDefault(), h.stopPropagation());
3315
- const g = t.value;
3316
- if (g) {
3317
- const D = document.getElementsByClassName("dgComponentSelected");
3318
- D && D.length === 1 && D[0] === t.value || (Array.from(D).forEach((y) => y.classList.remove("dgComponentSelected")), g.classList.add("dgComponentFocused"));
3341
+ function c(g) {
3342
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((P) => P.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
3343
+ const d = t.value;
3344
+ if (d) {
3345
+ const P = document.getElementsByClassName("dgComponentSelected");
3346
+ P && P.length === 1 && P[0] === t.value || (Array.from(P).forEach((y) => y.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
3319
3347
  }
3320
3348
  X.value++;
3321
3349
  }
3322
3350
  return () => b("div", {
3323
3351
  id: `${n.id}-design-item`,
3324
3352
  ref: t,
3325
- class: r.value,
3326
- onClick: u
3353
+ class: s.value,
3354
+ onClick: c
3327
3355
  }, [e.slots.default && e.slots.default()]);
3328
3356
  }
3329
- }), nn = /* @__PURE__ */ z({
3357
+ }), sn = /* @__PURE__ */ z({
3330
3358
  name: "FPageHeaderDesign",
3331
- props: st,
3359
+ props: it,
3332
3360
  emits: ["Click"],
3333
3361
  setup(n, e) {
3334
- const t = M(), r = V("designer-host-service"), u = V("design-item-context"), h = at(u.schema, r), g = rt(t, u, h), D = M(u.schema.toolbar || {
3362
+ const t = M(), s = V("designer-host-service"), c = V("design-item-context"), g = pt(c.schema, s), d = ct(t, c, g), P = M(c.schema.toolbar || {
3335
3363
  type: "response-toolbar",
3336
3364
  buttons: []
3337
- }), S = M(be(D.value));
3365
+ }), S = M(ye(P.value));
3338
3366
  H(() => {
3339
- t.value.componentInstance = g;
3340
- }), G(() => u.schema.toolbar, () => {
3341
- D.value = u.schema.toolbar || {
3367
+ t.value.componentInstance = d;
3368
+ }), G(() => c.schema.toolbar, () => {
3369
+ P.value = c.schema.toolbar || {
3342
3370
  type: "response-toolbar",
3343
3371
  buttons: []
3344
- }, S.value = be(D.value);
3372
+ }, S.value = ye(P.value);
3345
3373
  }, {
3346
3374
  deep: !0
3347
3375
  });
3348
3376
  const y = F(() => [...S.value.items]);
3349
- function T(l, i, d, c) {
3350
- u && u.setupContext && u.setupContext.emit("selectionChange", l, i, d, c);
3377
+ function T(p, i, f, l) {
3378
+ c && c.setupContext && c.setupContext.emit("selectionChange", p, i, f, l);
3351
3379
  }
3352
- return e.expose(g.value), () => b("div", {
3380
+ return e.expose(d.value), () => b("div", {
3353
3381
  ref: t
3354
3382
  }, [b("nav", {
3355
3383
  class: "f-page-header-base"
3356
3384
  }, [b("div", {
3357
3385
  class: "f-title"
3358
- }, [b(ye, null, {
3386
+ }, [b(ve, null, {
3359
3387
  default: () => [b("span", {
3360
3388
  class: "f-title-icon f-text-orna-manage"
3361
3389
  }, [b("i", {
3362
3390
  class: n.icon
3363
3391
  }, null)])]
3364
- }), b(ye, null, {
3392
+ }), b(ve, null, {
3365
3393
  default: () => [b("h4", {
3366
3394
  class: "f-title-text"
3367
3395
  }, [n.title])]
3368
- })]), b(ke, {
3396
+ })]), b(Be, {
3369
3397
  class: "col-6 text-right",
3370
- modelValue: D.value,
3371
- "onUpdate:modelValue": (l) => D.value = l,
3398
+ modelValue: P.value,
3399
+ "onUpdate:modelValue": (p) => P.value = p,
3372
3400
  canAdd: !0,
3373
3401
  childType: "response-toolbar-item",
3374
3402
  childLabel: "按钮",
3375
3403
  contentKey: "buttons",
3376
- id: D.value.id,
3404
+ id: P.value.id,
3377
3405
  componentId: n.componentId,
3378
3406
  onSelectionChange: T
3379
3407
  }, {
3380
- default: () => [b(Be, {
3408
+ default: () => [b(Ie, {
3381
3409
  customClass: "w-100",
3382
3410
  items: y.value,
3383
3411
  componentId: n.componentId
3384
3412
  }, null)]
3385
3413
  })])]);
3386
3414
  }
3387
- }), pn = {
3415
+ }), fn = {
3388
3416
  install(n) {
3389
3417
  n.component(oe.name, oe);
3390
3418
  },
3391
- register(n, e, t, r) {
3392
- n["page-header"] = oe, e["page-header"] = ge;
3419
+ register(n, e, t, s) {
3420
+ n["page-header"] = oe, e["page-header"] = me, s["page-header"] = { eventHandlerResolver: at };
3393
3421
  },
3394
3422
  registerDesigner(n, e, t) {
3395
- n["page-header"] = nn, e["page-header"] = ge;
3423
+ n["page-header"] = sn, e["page-header"] = me;
3396
3424
  }
3397
3425
  };
3398
3426
  export {
3399
3427
  oe as PageHeader,
3400
- pn as default,
3401
- st as pageHeaderDesignerProps,
3428
+ fn as default,
3429
+ at as eventHandlerResolver,
3430
+ it as pageHeaderDesignerProps,
3402
3431
  pe as pageHeaderProps,
3403
- ge as propsResolver
3432
+ me as propsResolver
3404
3433
  };