@farris/ui-vue 1.2.7 → 1.2.8

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 (206) hide show
  1. package/components/accordion/index.esm.js +79 -79
  2. package/components/avatar/index.esm.js +393 -440
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +496 -542
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +437 -483
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +839 -726
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4702 -4972
  17. package/components/data-view/index.esm.js +2999 -2875
  18. package/components/date-picker/index.esm.js +2626 -2672
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +934 -976
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +258 -249
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1892 -1775
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5245 -5514
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1483 -1556
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +668 -714
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1679 -1563
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6596 -6865
  47. package/components/mapping-editor/index.esm.js +5592 -5862
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +988 -1034
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1296
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1416 -1462
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +757 -830
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +452 -498
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +117 -117
  74. package/components/response-toolbar/index.esm.js +1021 -1238
  75. package/components/schema-selector/index.esm.js +3215 -3308
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +442 -488
  83. package/components/tabs/index.esm.js +1835 -2004
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +451 -482
  87. package/components/time-picker/index.esm.js +1345 -1392
  88. package/components/transfer/index.esm.js +135 -135
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5761 -6020
  91. package/components/tree-view/index.esm.js +2380 -2253
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +31630 -31224
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  102. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  103. package/types/data-view/composition/types.d.ts +1 -1
  104. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  105. package/types/designer-canvas/src/types.d.ts +1 -1
  106. package/types/dynamic-form/index.d.ts +1 -0
  107. package/types/dynamic-form/src/types.d.ts +1 -1
  108. package/types/dynamic-resolver/index.d.ts +1 -0
  109. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  110. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  111. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  112. package/types/modal/src/modal.props.d.ts +1 -4
  113. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  114. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  115. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  116. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  117. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  118. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  119. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  120. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  121. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  122. package/components/accordion/index.umd.cjs +0 -1
  123. package/components/avatar/index.umd.cjs +0 -1
  124. package/components/border-editor/index.umd.cjs +0 -1
  125. package/components/button/index.umd.cjs +0 -1
  126. package/components/button-edit/index.umd.cjs +0 -1
  127. package/components/button-group/index.umd.cjs +0 -1
  128. package/components/calculator/index.umd.cjs +0 -1
  129. package/components/calendar/index.umd.cjs +0 -1
  130. package/components/capsule/index.umd.cjs +0 -1
  131. package/components/checkbox/index.umd.cjs +0 -1
  132. package/components/color-picker/index.umd.cjs +0 -3
  133. package/components/combo-list/index.umd.cjs +0 -1
  134. package/components/combo-tree/index.umd.cjs +0 -1
  135. package/components/common/index.umd.cjs +0 -1
  136. package/components/component/index.umd.cjs +0 -1
  137. package/components/condition/index.umd.cjs +0 -1
  138. package/components/content-container/index.umd.cjs +0 -1
  139. package/components/data-grid/index.umd.cjs +0 -1
  140. package/components/data-view/index.umd.cjs +0 -1
  141. package/components/date-picker/index.umd.cjs +0 -1
  142. package/components/designer-canvas/index.umd.cjs +0 -1
  143. package/components/designer-outline/index.umd.cjs +0 -1
  144. package/components/designer-toolbox/index.umd.cjs +0 -1
  145. package/components/discussion-editor/index.umd.cjs +0 -3
  146. package/components/discussion-list/index.umd.cjs +0 -1
  147. package/components/drawer/index.umd.cjs +0 -1
  148. package/components/dropdown/index.umd.cjs +0 -2
  149. package/components/dynamic-form/index.umd.cjs +0 -1
  150. package/components/dynamic-resolver/index.umd.cjs +0 -1
  151. package/components/dynamic-view/index.umd.cjs +0 -1
  152. package/components/enum-editor/index.umd.cjs +0 -1
  153. package/components/events-editor/index.umd.cjs +0 -1
  154. package/components/expression-editor/index.umd.cjs +0 -1
  155. package/components/external-container/index.umd.cjs +0 -1
  156. package/components/field-selector/index.umd.cjs +0 -1
  157. package/components/filter-bar/index.umd.cjs +0 -1
  158. package/components/flow-canvas/index.umd.cjs +0 -1
  159. package/components/image-cropper/index.umd.cjs +0 -1
  160. package/components/input-group/index.umd.cjs +0 -1
  161. package/components/layout/index.umd.cjs +0 -1
  162. package/components/list-nav/index.umd.cjs +0 -1
  163. package/components/list-view/index.umd.cjs +0 -1
  164. package/components/loading/index.umd.cjs +0 -8
  165. package/components/locale/index.umd.cjs +0 -1
  166. package/components/lookup/index.umd.cjs +0 -1
  167. package/components/mapping-editor/index.umd.cjs +0 -1
  168. package/components/message-box/index.umd.cjs +0 -1
  169. package/components/modal/index.umd.cjs +0 -1
  170. package/components/nav/index.umd.cjs +0 -3
  171. package/components/notify/index.umd.cjs +0 -1
  172. package/components/order/index.umd.cjs +0 -1
  173. package/components/page-footer/index.umd.cjs +0 -1
  174. package/components/page-header/index.umd.cjs +0 -1
  175. package/components/pagination/index.umd.cjs +0 -1
  176. package/components/popover/index.umd.cjs +0 -1
  177. package/components/progress/index.umd.cjs +0 -3
  178. package/components/property-editor/index.umd.cjs +0 -3
  179. package/components/property-panel/index.umd.cjs +0 -1
  180. package/components/radio-button/index.umd.cjs +0 -1
  181. package/components/radio-group/index.umd.cjs +0 -1
  182. package/components/rate/index.umd.cjs +0 -1
  183. package/components/response-layout/index.umd.cjs +0 -1
  184. package/components/response-layout-editor/index.umd.cjs +0 -1
  185. package/components/response-toolbar/index.umd.cjs +0 -1
  186. package/components/schema-selector/index.umd.cjs +0 -8
  187. package/components/search-box/index.umd.cjs +0 -1
  188. package/components/section/index.umd.cjs +0 -1
  189. package/components/smoke-detector/index.umd.cjs +0 -1
  190. package/components/spacing-editor/index.umd.cjs +0 -1
  191. package/components/splitter/index.umd.cjs +0 -1
  192. package/components/step/index.umd.cjs +0 -1
  193. package/components/switch/index.umd.cjs +0 -1
  194. package/components/tabs/index.umd.cjs +0 -1
  195. package/components/tags/index.umd.cjs +0 -1
  196. package/components/text/index.umd.cjs +0 -1
  197. package/components/textarea/index.umd.cjs +0 -1
  198. package/components/time-picker/index.umd.cjs +0 -1
  199. package/components/tooltip/index.umd.cjs +0 -1
  200. package/components/transfer/index.umd.cjs +0 -1
  201. package/components/tree-grid/index.umd.cjs +0 -1
  202. package/components/tree-view/index.umd.cjs +0 -1
  203. package/components/uploader/index.umd.cjs +0 -2
  204. package/components/verify-detail/index.umd.cjs +0 -1
  205. package/components/video/index.umd.cjs +0 -1
  206. package/components/weather/index.umd.cjs +0 -16
@@ -1,109 +1,107 @@
1
1
  var Re = Object.defineProperty;
2
2
  var Oe = (n, e, t) => e in n ? Re(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var O = (n, e, t) => Oe(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as G, ref as B, computed as V, watch as Q, createVNode as b, createTextVNode as Y, getCurrentInstance as be, onMounted as q, onUnmounted as se, inject as U, provide as Le, onBeforeUnmount as Ne, withModifiers as $e } from "vue";
5
- import { cloneDeep as Ve } from "lodash-es";
6
- import _e from "@farris/ui-vue/components/response-toolbar";
7
- import { useDesignerInnerComponent as ve } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-inner-component";
8
- import { withInstall as Ue } from "@farris/ui-vue/components/common";
4
+ import { defineComponent as z, ref as x, computed as F, watch as G, createVNode as h, createTextVNode as Q, getCurrentInstance as ye, onMounted as H, onUnmounted as re, inject as V, provide as Ne, onBeforeUnmount as $e, withModifiers as _e } from "vue";
5
+ import { cloneDeep as Fe } from "lodash-es";
6
+ import Le from "../response-toolbar/index.esm.js";
7
+ import { useDesignerInnerComponent as ve } from "../designer-canvas/index.esm.js";
8
+ import { withInstall as Ve } from "../common/index.esm.js";
9
9
  const ie = {}, Ce = {};
10
10
  function ae(n) {
11
- const { properties: e, title: t } = n, s = Object.keys(e).reduce((p, u) => (p[u] = e[u].type === "object" && e[u].properties ? ae(e[u]) : Ve(e[u].default), p), {});
12
- return s.id = `${t}-${Date.now()}`, s;
11
+ const { properties: e, title: t } = n, r = Object.keys(e).reduce((u, g) => (u[g] = e[g].type === "object" && e[g].properties ? ae(e[g]) : Fe(e[g].default), u), {});
12
+ return r.id = `${t}-${Date.now()}`, r;
13
13
  }
14
- function z(n, e = {}) {
14
+ function U(n, e = {}) {
15
15
  const t = ie[n];
16
16
  if (t) {
17
- let s = ae(t);
18
- const p = Ce[n];
19
- return s = p ? p({ getSchemaByType: z }, s, e) : s, s;
17
+ let r = ae(t);
18
+ const u = Ce[n];
19
+ return r = u ? u({ getSchemaByType: U }, r, e) : r, r;
20
20
  }
21
21
  return null;
22
22
  }
23
23
  function We(n, e) {
24
24
  const t = ae(e);
25
- return Object.keys(n).reduce((s, p) => (s[p] = n[p], s), t), t;
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;
26
26
  }
27
- function ze(n, e) {
28
- return Object.keys(n).filter((s) => n[s] != null).reduce((s, p) => {
29
- if (e.has(p)) {
30
- const u = e.get(p);
31
- if (typeof u == "string")
32
- s[u] = n[p];
27
+ function Ue(n, e) {
28
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
29
+ if (e.has(u)) {
30
+ const g = e.get(u);
31
+ if (typeof g == "string")
32
+ r[g] = n[u];
33
33
  else {
34
- const h = u(p, n[p], n);
35
- Object.assign(s, h);
34
+ const v = g(u, n[u], n);
35
+ Object.assign(r, v);
36
36
  }
37
37
  } else
38
- s[p] = n[p];
39
- return s;
38
+ r[u] = n[u];
39
+ return r;
40
40
  }, {});
41
41
  }
42
- function He(n, e, t = /* @__PURE__ */ new Map()) {
43
- const s = We(n, e);
44
- return ze(s, t);
42
+ function qe(n, e, t = /* @__PURE__ */ new Map()) {
43
+ const r = We(n, e);
44
+ return Ue(r, t);
45
45
  }
46
- function qe(n = {}) {
47
- function e(g, T, l, a) {
46
+ function He(n = {}) {
47
+ function e(b, T, l, a) {
48
48
  if (typeof l == "number")
49
- return a[g].length === l;
49
+ return a[b].length === l;
50
50
  if (typeof l == "object") {
51
- const f = Object.keys(l)[0], i = l[f];
52
- if (f === "not")
53
- return Number(a[g].length) !== Number(i);
54
- if (f === "moreThan")
55
- return Number(a[g].length) >= Number(i);
56
- if (f === "lessThan")
57
- return Number(a[g].length) <= Number(i);
51
+ const d = Object.keys(l)[0], i = l[d];
52
+ if (d === "not")
53
+ return Number(a[b].length) !== Number(i);
54
+ if (d === "moreThan")
55
+ return Number(a[b].length) >= Number(i);
56
+ if (d === "lessThan")
57
+ return Number(a[b].length) <= Number(i);
58
58
  }
59
59
  return !1;
60
60
  }
61
- function t(g, T, l, a) {
62
- return a[g] && a[g].propertyValue && String(a[g].propertyValue.value) === String(l);
61
+ function t(b, T, l, a) {
62
+ return a[b] && a[b].propertyValue && String(a[b].propertyValue.value) === String(l);
63
63
  }
64
- const s = /* @__PURE__ */ new Map([
64
+ const r = /* @__PURE__ */ new Map([
65
65
  ["length", e],
66
66
  ["getProperty", t]
67
67
  ]);
68
- Object.keys(n).reduce((g, T) => (g.set(T, n[T]), g), s);
69
- function p(g, T) {
70
- const l = g;
71
- return typeof T == "number" ? [{ target: l, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: l, operator: "getProperty", param: g, value: !!T }] : typeof T == "object" ? Object.keys(T).map((a) => {
68
+ Object.keys(n).reduce((b, T) => (b.set(T, n[T]), b), r);
69
+ function u(b, T) {
70
+ const l = b;
71
+ return typeof T == "number" ? [{ target: l, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: l, operator: "getProperty", param: b, value: !!T }] : typeof T == "object" ? Object.keys(T).map((a) => {
72
72
  if (a === "length")
73
73
  return { target: l, operator: "length", param: null, value: T[a] };
74
- const f = a, i = T[a];
75
- return { target: l, operator: "getProperty", param: f, value: i };
74
+ const d = a, i = T[a];
75
+ return { target: l, operator: "getProperty", param: d, value: i };
76
76
  }) : [];
77
77
  }
78
- function u(g) {
79
- return Object.keys(g).reduce((l, a) => {
80
- const f = p(a, g[a]);
81
- return l.push(...f), l;
78
+ function g(b) {
79
+ return Object.keys(b).reduce((l, a) => {
80
+ const d = u(a, b[a]);
81
+ return l.push(...d), l;
82
82
  }, []);
83
83
  }
84
- function h(g, T) {
85
- if (s.has(g.operator)) {
86
- const l = s.get(g.operator);
87
- return l && l(g.target, g.param, g.value, T) || !1;
84
+ function v(b, T) {
85
+ if (r.has(b.operator)) {
86
+ const l = r.get(b.operator);
87
+ return l && l(b.target, b.param, b.value, T) || !1;
88
88
  }
89
89
  return !1;
90
90
  }
91
- function P(g, T) {
92
- return u(g).reduce((f, i) => f && h(i, T), !0);
91
+ function D(b, T) {
92
+ return g(b).reduce((d, i) => d && v(i, T), !0);
93
93
  }
94
- function k(g, T) {
95
- const l = Object.keys(g), a = l.includes("allOf"), f = l.includes("anyOf"), i = a || f, M = (i ? g[i ? a ? "allOf" : "anyOf" : "allOf"] : [g]).map((S) => P(S, T));
96
- return a ? !M.includes(!1) : M.includes(!0);
94
+ function E(b, T) {
95
+ const l = Object.keys(b), a = l.includes("allOf"), d = l.includes("anyOf"), i = a || d, j = (i ? b[i ? a ? "allOf" : "anyOf" : "allOf"] : [b]).map((P) => D(P, T));
96
+ return a ? !j.includes(!1) : j.includes(!0);
97
97
  }
98
- return { parseValueSchema: k };
98
+ return { parseValueSchema: E };
99
99
  }
100
- const E = {
101
- Button: { type: "Button", name: "按钮", icon: "Button" },
102
- ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
100
+ const Z = {
101
+ button: { type: "button", name: "按钮", icon: "Button" },
103
102
  "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
104
- "response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
103
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
105
104
  "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
106
- DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
107
105
  "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
108
106
  textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
109
107
  lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
@@ -114,118 +112,47 @@ const E = {
114
112
  "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
115
113
  "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
116
114
  "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
117
- /** 暂时没用 */
118
- FlexLayout: { type: "FlexLayout", name: "弹性布局" },
119
- /** 暂时没用 */
120
- FlowLayout: { type: "FlowLayout", name: "流布局" },
121
- ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
122
- ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
115
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
116
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
117
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
123
118
  "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
124
- TreeGridField: { type: "TreeGridField", name: "树表格列" },
125
- FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
126
- Form: { type: "Form", name: "卡片面板", icon: "Form" },
127
- QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
119
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
128
120
  "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
129
121
  "data-grid-column": { type: "data-grid-column", name: "表格列" },
130
- Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
131
- Module: { type: "Module", name: "模块", icon: "Module" },
122
+ module: { type: "Module", name: "模块", icon: "Module" },
132
123
  component: { type: "component", name: "组件", icon: "Component" },
133
- ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
134
- Image: { type: "Image", name: "图像", icon: "Image" },
135
- ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
136
- HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
137
- ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
138
- RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
139
124
  tabs: { type: "tabs", name: "标签页", icon: "Tab" },
140
125
  "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
141
126
  "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
142
- Tag: { type: "Tag", name: "Tag", icon: "Tag" },
143
- Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
144
- HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
145
- ListView: { type: "ListView", name: "列表", icon: "ListView" },
146
- RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
147
- TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
148
- TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
127
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
149
128
  section: { type: "section", name: "分组面板", icon: "Section" },
150
- SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
151
- SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
152
- QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
153
- FormHeader: { type: "FormHeader", name: "翻页" },
154
- Splitter: { type: "Splitter", name: "分栏面板", icon: "Splitter" },
155
- SplitterPane: { type: "SplitterPane", name: "分栏面板项", dependentParentControl: "Splitter" },
156
- WizardDetail: { type: "WizardDetail", name: "向导详情页" },
157
- WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
158
- Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
159
- MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
160
- Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
161
- avatar: { type: "avatar", name: "头像", icon: "Avatar" },
162
- ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
163
- ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
164
- NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
165
- Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
166
- LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
167
- ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
168
- FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
169
- FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
170
- ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
171
- MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
172
- MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
173
- Footer: { type: "Footer", name: "页脚" },
174
- DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
175
- DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
176
- NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
177
- Tags: { type: "Tags", name: "标记组", icon: "Tags" },
178
- Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
129
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
130
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
131
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
132
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
133
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
134
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
179
135
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
180
- ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
181
- ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
182
- PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
183
- Table: { type: "Table", name: "表格", icon: "DataGrid" },
184
- LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
185
- FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
186
- DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
187
- DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
188
- TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
189
- HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
190
- ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
191
- HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
192
- ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
193
- OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
194
- AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
195
- EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
196
- OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
197
- CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
198
- ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
199
- AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
200
- /** 查询类 start */
201
- Charts: { type: "Charts", name: "图表", icon: "Charts" },
202
- QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
203
- SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
204
- QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
205
- QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
206
- /** 查询类 end */
207
- /** 审批类 start */
208
- ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
209
- ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
210
- /** 审批类 end */
211
- }, we = {}, Ge = {};
212
- qe();
213
- function ce(n, e, t = /* @__PURE__ */ new Map(), s = (h, P, k) => P, p = {}, u = (h) => h) {
214
- return ie[e.title] = e, Ce[e.title] = s, we[e.title] = p, Ge[e.title] = u, (h = {}) => {
215
- const P = He(h, e, t), k = Object.keys(n).reduce((g, T) => (g[T] = n[T].default, g), {});
216
- return Object.assign(k, P);
136
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
137
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
138
+ }, we = {}, ze = {};
139
+ He();
140
+ function ce(n, e, t = /* @__PURE__ */ new Map(), r = (v, D, E) => D, u = {}, g = (v) => v) {
141
+ return ie[e.title] = e, Ce[e.title] = r, we[e.title] = u, ze[e.title] = g, (v = {}) => {
142
+ const D = qe(v, e, t), E = Object.keys(n).reduce((b, T) => (b[T] = n[T].default, b), {});
143
+ return Object.assign(E, D);
217
144
  };
218
145
  }
219
- function Qe(n, e) {
146
+ function Ge(n, e) {
220
147
  return { customClass: e.class, customStyle: e.style };
221
148
  }
222
- function Xe(n, e) {
149
+ function Je(n, e) {
223
150
  return { buttons: e.buttons };
224
151
  }
225
- const Ye = /* @__PURE__ */ new Map([
226
- ["appearance", Qe],
227
- ["toolbar", Xe]
228
- ]), Ze = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/page-header.schema.json", Je = "page-header", et = "A Farris Container Component", tt = "object", nt = {
152
+ const Qe = /* @__PURE__ */ new Map([
153
+ ["appearance", Ge],
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 = {
229
156
  id: {
230
157
  description: "The unique identifier for a Page Header",
231
158
  type: "string"
@@ -333,15 +260,15 @@ const Ye = /* @__PURE__ */ new Map([
333
260
  type: "boolean",
334
261
  default: !1
335
262
  }
336
- }, ot = {
337
- $schema: Ze,
338
- $id: Ke,
339
- title: Je,
340
- description: et,
341
- type: tt,
342
- properties: nt
263
+ }, nt = {
264
+ $schema: Xe,
265
+ $id: Ye,
266
+ title: Ze,
267
+ description: Ke,
268
+ type: et,
269
+ properties: tt
343
270
  };
344
- function rt(n, e, t) {
271
+ function ot(n, e, t) {
345
272
  return e.title = "标题", e;
346
273
  }
347
274
  const le = {
@@ -375,187 +302,187 @@ const le = {
375
302
  nextPaginationDisabled: { type: Boolean, default: !1 }
376
303
  }, st = Object.assign({}, le, {
377
304
  componentId: { type: String, default: "" }
378
- }), fe = ce(le, ot, Ye, rt), ne = /* @__PURE__ */ G({
305
+ }), fe = ce(le, nt, Qe, ot), ne = /* @__PURE__ */ z({
379
306
  name: "FPageHeader",
380
307
  props: le,
381
308
  emits: ["Click", "PrePaginationClick", "NextPaginationClick"],
382
309
  setup(n, e) {
383
- const t = B(n.buttons), s = (S, A) => {
384
- e.emit("Click", S, A);
310
+ const t = x(n.buttons), r = (P, A) => {
311
+ e.emit("Click", P, A);
385
312
  };
386
- function p(S, A) {
387
- S && A && A.split(" ").reduce((v, m) => (v[m] = !0, v), S);
313
+ function u(P, A) {
314
+ P && A && A.split(" ").reduce((y, f) => (y[f] = !0, y), P);
388
315
  }
389
- const u = V(() => {
390
- const S = {
316
+ const g = F(() => {
317
+ const P = {
391
318
  "f-page-header": !0
392
319
  };
393
- return p(S, n.customClass), S;
394
- }), h = V(() => {
395
- const S = {
320
+ return u(P, n.customClass), P;
321
+ }), v = F(() => {
322
+ const P = {
396
323
  "f-title-icon": !0
397
324
  };
398
- return p(S, n.iconClass), S;
399
- }), P = V(() => {
400
- const S = {
325
+ return u(P, n.iconClass), P;
326
+ }), D = F(() => {
327
+ const P = {
401
328
  "f-icon": !0
402
329
  };
403
- return p(S, n.icon), S;
404
- }), k = V(() => {
405
- const S = {
330
+ return u(P, n.icon), P;
331
+ }), E = F(() => {
332
+ const P = {
406
333
  "f-title": !0
407
334
  };
408
- return p(S, n.titleContentClass), S;
409
- }), g = V(() => {
410
- const S = {
335
+ return u(P, n.titleContentClass), P;
336
+ }), b = F(() => {
337
+ const P = {
411
338
  "f-content": !0
412
339
  };
413
- return p(S, n.contentClass), S;
414
- }), T = V(() => {
415
- const S = {
340
+ return u(P, n.contentClass), P;
341
+ }), T = F(() => {
342
+ const P = {
416
343
  "f-content": !0
417
344
  };
418
- return p(S, n.downContentClass), S;
419
- }), l = V(() => ({
345
+ return u(P, n.downContentClass), P;
346
+ }), l = F(() => ({
420
347
  "f-icon f-icon-arrow-w": !0,
421
348
  "f-state-disabled": n.prePaginationDisabled
422
- })), a = V(() => ({
349
+ })), a = F(() => ({
423
350
  "f-icon f-icon-arrow-e": !0,
424
351
  "f-state-disabled": n.nextPaginationDisabled
425
352
  }));
426
- function f(S) {
427
- n.prePaginationDisabled || e.emit("PrePaginationClick", S);
353
+ function d(P) {
354
+ n.prePaginationDisabled || e.emit("PrePaginationClick", P);
428
355
  }
429
- function i(S) {
430
- n.nextPaginationDisabled || e.emit("NextPaginationClick", S);
356
+ function i(P) {
357
+ n.nextPaginationDisabled || e.emit("NextPaginationClick", P);
431
358
  }
432
359
  function C() {
433
- return e.slots.titleContent ? b("div", {
434
- class: k.value
435
- }, [Y(" "), e.slots.titleContent()]) : b("div", {
360
+ return e.slots.titleContent ? h("div", {
361
+ class: E.value
362
+ }, [Q(" "), e.slots.titleContent()]) : h("div", {
436
363
  class: "f-title"
437
- }, [n.showIcon && n.icon ? b("span", {
438
- class: h.value
439
- }, [b("i", {
440
- class: P.value
441
- }, null)]) : "", b("h4", {
364
+ }, [n.showIcon && n.icon ? h("span", {
365
+ class: v.value
366
+ }, [h("i", {
367
+ class: D.value
368
+ }, null)]) : "", h("h4", {
442
369
  class: "f-title-text"
443
- }, [n.title]), n.subTitle ? b("h5", {
370
+ }, [n.title]), n.subTitle ? h("h5", {
444
371
  class: "f-title-subtitle"
445
- }, [n.subTitle]) : "", n.showPagination ? b("div", {
372
+ }, [n.subTitle]) : "", n.showPagination ? h("div", {
446
373
  class: "f-title-pagination"
447
- }, [b("span", {
374
+ }, [h("span", {
448
375
  class: l.value,
449
- onClick: f
450
- }, null), b("span", {
376
+ onClick: d
377
+ }, null), h("span", {
451
378
  class: a.value,
452
379
  onClick: i
453
380
  }, null)]) : ""]);
454
381
  }
455
382
  function w() {
456
- return e.slots.content ? b("div", {
457
- class: g.value
458
- }, [Y(" "), e.slots.content()]) : "";
383
+ return e.slots.content ? h("div", {
384
+ class: b.value
385
+ }, [Q(" "), e.slots.content()]) : "";
459
386
  }
460
- function M() {
387
+ function j() {
461
388
  if (n.buttons && n.buttons.length > 0)
462
- return b(_e, {
389
+ return h(Le, {
463
390
  customClass: n.buttonClass,
464
391
  items: t.value,
465
- onClick: s
392
+ onClick: r
466
393
  }, null);
467
394
  }
468
395
  function R() {
469
- return e.slots.downContent ? b("div", {
396
+ return e.slots.downContent ? h("div", {
470
397
  class: T.value
471
- }, [Y(" "), e.slots.downContent()]) : "";
398
+ }, [Q(" "), e.slots.downContent()]) : "";
472
399
  }
473
- return Q(() => n.buttons, (S) => {
474
- t.value = S;
400
+ return G(() => n.buttons, (P) => {
401
+ t.value = P;
475
402
  }, {
476
403
  deep: !0
477
- }), () => b("div", {
478
- class: u.value
479
- }, [b("nav", {
404
+ }), () => h("div", {
405
+ class: g.value
406
+ }, [h("nav", {
480
407
  class: "f-page-header-base"
481
- }, [C(), w(), M()]), R()]);
408
+ }, [C(), w(), j()]), R()]);
482
409
  }
483
410
  });
484
- function it(n, e, t) {
485
- var L;
486
- function s() {
411
+ function rt(n, e, t) {
412
+ var N;
413
+ function r() {
487
414
  t != null && t.resolveComponentContext && t.resolveComponentContext();
488
415
  }
489
- s();
490
- const p = t && t.getStyles && t.getStyles() || "", u = t && t.getDesignerClass && t.getDesignerClass() || "", h = B();
491
- function P() {
416
+ r();
417
+ const u = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", v = x();
418
+ function D() {
492
419
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
493
420
  }
494
- function k() {
421
+ function E() {
495
422
  return !1;
496
423
  }
497
- function g() {
424
+ function b() {
498
425
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
499
426
  }
500
427
  function T() {
501
428
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
502
429
  }
503
- function l(v) {
504
- if (!v || !v.value)
430
+ function l(y) {
431
+ if (!y || !y.value)
505
432
  return null;
506
- if (v.value.schema && v.value.schema.type === "component")
507
- return v.value;
508
- const m = B(v == null ? void 0 : v.value.parent), D = l(m);
509
- return D || null;
433
+ if (y.value.schema && y.value.schema.type === "component")
434
+ return y.value;
435
+ const f = x(y == null ? void 0 : y.value.parent), S = l(f);
436
+ return S || null;
510
437
  }
511
- function a(v = e) {
512
- const { componentInstance: m, designerItemElementRef: D } = v;
513
- return !m || !m.value ? null : m.value.canMove ? D : a(v.parent);
438
+ function a(y = e) {
439
+ const { componentInstance: f, designerItemElementRef: S } = y;
440
+ return !f || !f.value ? null : f.value.canMove ? S : a(y.parent);
514
441
  }
515
- function f(v) {
516
- return !!t && t.canAccepts(v);
442
+ function d(y) {
443
+ return !!t && t.canAccepts(y);
517
444
  }
518
445
  function i() {
519
446
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
520
447
  }
521
448
  function C() {
522
449
  }
523
- function w(v, m) {
524
- m && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(m);
450
+ function w(y, f) {
451
+ f && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(f);
525
452
  }
526
- function M(v) {
527
- const { componentType: m } = v;
528
- let D = z(m, v);
529
- t && t.onResolveNewComponentSchema && (D = t.onResolveNewComponentSchema(v, D));
530
- const j = m.toLowerCase().replace("-", "_");
531
- return D && !D.id && D.type === m && (D.id = `${j}_${Math.random().toString().slice(2, 6)}`), D;
453
+ function j(y) {
454
+ const { componentType: f } = y;
455
+ let S = U(f, y);
456
+ t && t.onResolveNewComponentSchema && (S = t.onResolveNewComponentSchema(y, S));
457
+ const k = f.toLowerCase().replace("-", "_");
458
+ return S && !S.id && S.type === f && (S.id = `${k}_${Math.random().toString().slice(2, 6)}`), S;
532
459
  }
533
- function R(v, m) {
534
- const D = String(v.getAttribute("data-controltype")), j = v.getAttribute("data-feature"), d = j ? JSON.parse(j) : {};
535
- d.parentComponentInstance = h.value;
536
- let r = z(D, d);
537
- t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(v, m, r));
538
- const o = D.toLowerCase().replace("-", "_");
539
- return r && !r.id && r.type === D && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
460
+ function R(y, f) {
461
+ const S = String(y.getAttribute("data-controltype")), k = y.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
462
+ p.parentComponentInstance = v.value;
463
+ let s = U(S, p);
464
+ t && t.onAcceptNewChildElement && (s = t.onAcceptNewChildElement(y, f, s));
465
+ const o = S.toLowerCase().replace("-", "_");
466
+ return s && !s.id && s.type === S && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
540
467
  }
541
- function S(v) {
468
+ function P(y) {
542
469
  }
543
- function A(...v) {
470
+ function A(...y) {
544
471
  if (t && t.getPropsConfig)
545
- return t.getPropsConfig(...v);
472
+ return t.getPropsConfig(...y);
546
473
  }
547
- return h.value = {
548
- canMove: P(),
549
- canSelectParent: k(),
550
- canDelete: g(),
474
+ return v.value = {
475
+ canMove: D(),
476
+ canSelectParent: E(),
477
+ canDelete: b(),
551
478
  canNested: !T(),
552
479
  contents: e == null ? void 0 : e.schema.contents,
553
480
  elementRef: n,
554
- parent: (L = e == null ? void 0 : e.parent) == null ? void 0 : L.componentInstance,
481
+ parent: (N = e == null ? void 0 : e.parent) == null ? void 0 : N.componentInstance,
555
482
  schema: e == null ? void 0 : e.schema,
556
- styles: p,
557
- designerClass: u,
558
- canAccepts: f,
483
+ styles: u,
484
+ designerClass: g,
485
+ canAccepts: d,
559
486
  getBelongedComponentInstance: l,
560
487
  getDraggableDesignItemElement: a,
561
488
  getDraggingDisplayText: i,
@@ -563,78 +490,14 @@ function it(n, e, t) {
563
490
  getDragScopeElement: C,
564
491
  onAcceptMovedChildElement: w,
565
492
  onAcceptNewChildElement: R,
566
- onChildElementMovedOut: S,
567
- addNewChildComponentSchema: M,
568
- updateDragAndDropRules: s,
569
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || B(!1),
570
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || B(!1)
571
- }, h;
493
+ onChildElementMovedOut: P,
494
+ addNewChildComponentSchema: j,
495
+ updateDragAndDropRules: r,
496
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || x(!1),
497
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || x(!1)
498
+ }, v;
572
499
  }
573
- class Te {
574
- static getEditorTypesByMDataType(e) {
575
- const t = this.fieldControlTypeMapping[e];
576
- return t || [{ key: "", value: "" }];
577
- }
578
- }
579
- /**
580
- * <字段类型,可配置的控件类型列表>的映射
581
- */
582
- O(Te, "fieldControlTypeMapping", {
583
- String: [
584
- { key: E["input-group"].type, value: E["input-group"].name },
585
- { key: E.lookup.type, value: E.lookup.name },
586
- { key: E.Image.type, value: E.Image.name },
587
- { key: E["date-picker"].type, value: E["date-picker"].name },
588
- { key: E["check-box"].type, value: E["check-box"].name },
589
- { key: E["radio-group"].type, value: E["radio-group"].name },
590
- { key: E["combo-list"].type, value: E["combo-list"].name },
591
- { key: E.textarea.type, value: E.textarea.name }
592
- // { key: DgControl.Tags.type, value: DgControl.Tags.name },
593
- ],
594
- Text: [
595
- { key: E.textarea.type, value: E.textarea.name },
596
- { key: E.avatar.type, value: E.avatar.name },
597
- { key: E.lookup.type, value: E.lookup.name }
598
- ],
599
- Decimal: [
600
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
601
- ],
602
- Integer: [
603
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
604
- ],
605
- Number: [
606
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
607
- ],
608
- BigNumber: [
609
- { key: E["number-spinner"].type, value: E["number-spinner"].name }
610
- ],
611
- Date: [
612
- { key: E["date-picker"].type, value: E["date-picker"].name }
613
- ],
614
- DateTime: [
615
- { key: E["date-picker"].type, value: E["date-picker"].name }
616
- ],
617
- Boolean: [
618
- { key: E.switch.type, value: E.switch.name },
619
- { key: E["check-box"].type, value: E["check-box"].name }
620
- ],
621
- Enum: [
622
- { key: E["combo-list"].type, value: E["combo-list"].name },
623
- { key: E["radio-group"].type, value: E["radio-group"].name }
624
- ],
625
- Object: [
626
- { key: E.lookup.type, value: E.lookup.name },
627
- { key: E["combo-list"].type, value: E["combo-list"].name },
628
- { key: E["radio-group"].type, value: E["radio-group"].name }
629
- ],
630
- EmployeeSelector: [
631
- { key: E.EmployeeSelector.type, value: E.EmployeeSelector.name }
632
- ],
633
- AdminOrganizationSelector: [
634
- { key: E.AdminOrganizationSelector.type, value: E.AdminOrganizationSelector.name }
635
- ]
636
- });
637
- class J {
500
+ class K {
638
501
  constructor(e, t) {
639
502
  O(this, "componentId");
640
503
  O(this, "viewModelId");
@@ -651,8 +514,8 @@ class J {
651
514
  type: "object",
652
515
  categories: {}
653
516
  });
654
- var s;
655
- 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;
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;
656
519
  }
657
520
  getTableInfo() {
658
521
  var e;
@@ -662,8 +525,8 @@ class J {
662
525
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
663
526
  if (t) {
664
527
  if (!this.designViewModelField) {
665
- const s = this.designViewModelUtils.getDgViewModel(this.viewModelId);
666
- this.designViewModelField = s.fields.find((p) => p.id === t);
528
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
529
+ this.designViewModelField = r.fields.find((u) => u.id === t);
667
530
  }
668
531
  e.updateOn = this.designViewModelField.updateOn;
669
532
  }
@@ -671,9 +534,7 @@ class J {
671
534
  changeFieldEditorType(e, t) {
672
535
  }
673
536
  getBasicPropConfig(e) {
674
- var s, p;
675
- var t = this;
676
- return this.setDesignViewModelField(e), {
537
+ return {
677
538
  description: "Basic Information",
678
539
  title: "基本信息",
679
540
  properties: {
@@ -686,69 +547,17 @@ class J {
686
547
  type: {
687
548
  description: "组件类型",
688
549
  title: "控件类型",
689
- type: "string",
690
- refreshPanelAfterChanged: !0,
691
- $converter: "/converter/change-editor.converter",
550
+ type: "select",
692
551
  editor: {
693
552
  type: "combo-list",
694
- textField: "value",
695
- valueField: "key",
696
- data: Te.getEditorTypesByMDataType(((p = (s = t.designViewModelField) == null ? void 0 : s.type) == null ? void 0 : p.name) || ""),
697
- editable: !1
553
+ textField: "name",
554
+ valueField: "value",
555
+ data: [{ value: e.type, name: Z[e.type].name }]
698
556
  }
699
- },
700
- label: {
701
- title: "标签",
702
- type: "string",
703
- $converter: "/converter/form-group-label.converter"
704
557
  }
705
- },
706
- setPropertyRelates(u, h) {
707
- if (u)
708
- switch (u && u.propertyID) {
709
- case "type": {
710
- t.changeControlType(e, u);
711
- break;
712
- }
713
- }
714
558
  }
715
559
  };
716
560
  }
717
- /**
718
- * 卡片控件:切换控件类型后事件
719
- * @param propertyData 控件DOM属性
720
- * @param newControlType 新控件类型
721
- */
722
- changeControlType(e, t) {
723
- var g, T, l, a, f;
724
- const s = t.propertyValue, p = this.formSchemaUtils.getComponentById(this.componentId);
725
- let u = this.getControlParentContainer(e.id, p);
726
- if (!u)
727
- return;
728
- const h = u.contents.findIndex((i) => i.id === e.id), P = u.contents[h];
729
- let k;
730
- this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
731
- editor: {
732
- $type: s
733
- },
734
- name: this.designViewModelField.name,
735
- require: this.designViewModelField.require,
736
- readonly: this.designViewModelField.readonly
737
- }, !1), k = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, s)), Object.assign(k, {
738
- id: P.id,
739
- appearance: P.appearance,
740
- size: P.size,
741
- label: P.label
742
- }), Object.assign(k.editor, {
743
- isTextArea: k.isTextArea && P.isTextArea,
744
- type: s || "",
745
- placeHolder: (g = P.editor) == null ? void 0 : g.placeHolder,
746
- holdPlace: (T = P.editor) == null ? void 0 : T.holdPlace,
747
- readonly: (l = P.editor) == null ? void 0 : l.readonly,
748
- require: (a = P.editor) == null ? void 0 : a.require,
749
- visible: (f = P.editor) == null ? void 0 : f.visible
750
- }), u.contents.splice(h, 1, k);
751
- }
752
561
  getAppearanceConfig(e = null) {
753
562
  return {
754
563
  title: "样式",
@@ -765,38 +574,12 @@ class J {
765
574
  type: "string",
766
575
  description: "组件的样式",
767
576
  $converter: "/converter/appearance.converter"
768
- },
769
- responseLayout: {
770
- description: "响应式列宽",
771
- title: "响应式列宽",
772
- type: "boolean",
773
- visible: !1,
774
- editor: {
775
- type: "response-layout-editor-setting"
776
- },
777
- $converter: "/converter/response-form-layout.converter"
778
577
  }
779
578
  }
780
579
  };
781
580
  }
782
- /**
783
- * 获取控件:以contents为节点进行定位
784
- * @param controlId 控件ID
785
- * @param domJson 容器
786
- */
787
- getControlParentContainer(e, t) {
788
- let s;
789
- if (!t || !t.contents || t.contents.length === 0)
790
- return null;
791
- for (const p of t.contents) {
792
- if (p.id === e)
793
- return s = t, t;
794
- if (s = this.getControlParentContainer(e, p), s)
795
- return s;
796
- }
797
- }
798
581
  }
799
- class at extends J {
582
+ class it extends K {
800
583
  constructor(e, t) {
801
584
  super(e, t);
802
585
  }
@@ -822,7 +605,7 @@ class at extends J {
822
605
  type: "combo-list",
823
606
  textField: "value",
824
607
  valueField: "key",
825
- data: [{ key: "page-header", value: E["page-header"].name }]
608
+ data: [{ key: "page-header", value: Z["page-header"].name }]
826
609
  }
827
610
  },
828
611
  icon: {
@@ -862,7 +645,7 @@ class at extends J {
862
645
  label: "click",
863
646
  name: "点击事件"
864
647
  }
865
- ], s = this, p = s.eventsEditorUtils.formProperties(e, s.viewModelId, t);
648
+ ], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t);
866
649
  this.propertyConfig.categories.eventsEditor = {
867
650
  title: "事件",
868
651
  hideTitle: !0,
@@ -870,7 +653,7 @@ class at extends J {
870
653
  "data-grid-component-viewmodel": {
871
654
  type: "events-editor",
872
655
  editor: {
873
- initialData: p
656
+ initialData: u
874
657
  }
875
658
  }
876
659
  },
@@ -878,30 +661,38 @@ class at extends J {
878
661
  refreshPanelAfterChanged: !0,
879
662
  tabId: "commands",
880
663
  tabName: "交互",
881
- setPropertyRelates(u, h) {
882
- const P = u.propertyValue;
883
- delete e[s.viewModelId], P && (P.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, P.events, P));
664
+ setPropertyRelates(g, v) {
665
+ const D = g.propertyValue;
666
+ delete e[r.viewModelId], D && (D.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, D.events, D));
884
667
  }
885
668
  };
886
669
  }
887
670
  }
888
- function ct(n, e) {
889
- function t(u) {
671
+ function at(n, e) {
672
+ function t(D) {
890
673
  return !1;
891
674
  }
892
- function s() {
675
+ function r() {
676
+ return !1;
677
+ }
678
+ function u() {
679
+ return !1;
680
+ }
681
+ function g() {
893
682
  return !0;
894
683
  }
895
- function p(u) {
896
- return new at(u, e).getPropertyConfig(n);
684
+ function v(D) {
685
+ return new it(D, e).getPropertyConfig(n);
897
686
  }
898
687
  return {
899
688
  canAccepts: t,
900
- hideNestedPaddingInDesginerView: s,
901
- getPropsConfig: p
689
+ hideNestedPaddingInDesginerView: g,
690
+ getPropsConfig: v,
691
+ checkCanDeleteComponent: r,
692
+ checkCanMoveComponent: u
902
693
  };
903
694
  }
904
- class Se {
695
+ class Te {
905
696
  constructor(e) {
906
697
  /** 工具栏项标识 */
907
698
  O(this, "id", "");
@@ -946,13 +737,13 @@ class Se {
946
737
  "tipsText",
947
738
  "onClick"
948
739
  ];
949
- Object.keys(e).filter((s) => t.indexOf(s) > -1).forEach((s) => {
950
- this[s] = e[s];
740
+ Object.keys(e).filter((r) => t.indexOf(r) > -1).forEach((r) => {
741
+ this[r] = e[r];
951
742
  });
952
743
  }
953
744
  /** 是否可用 */
954
745
  get enable() {
955
- return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable : V(() => !0);
746
+ return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable : F(() => !0);
956
747
  }
957
748
  /** 设置宽度 */
958
749
  setWidth(e) {
@@ -963,7 +754,7 @@ class Se {
963
754
  return this.visible ? this.width : !1;
964
755
  }
965
756
  }
966
- class lt extends Se {
757
+ class ct extends Te {
967
758
  constructor(e) {
968
759
  super(e);
969
760
  }
@@ -971,12 +762,12 @@ class lt extends Se {
971
762
  function Pe() {
972
763
  function n(e) {
973
764
  const t = [];
974
- return e.reduce((s, p) => (p.children && p.children.length > 0 ? s.push(new X(p)) : s.push(new lt(p)), s), t), t;
765
+ return e.reduce((r, u) => (u.children && u.children.length > 0 ? r.push(new J(u)) : r.push(new ct(u)), r), t), t;
975
766
  }
976
767
  return { buildResponseToolbarItems: n };
977
768
  }
978
- const { buildResponseToolbarItems: pt } = Pe();
979
- class X extends Se {
769
+ const { buildResponseToolbarItems: lt } = Pe();
770
+ class J extends Te {
980
771
  constructor(t) {
981
772
  super(t);
982
773
  O(this, "placement", "");
@@ -989,19 +780,19 @@ class X extends Se {
989
780
  O(this, "split", !1);
990
781
  O(this, "children", []);
991
782
  O(this, "expanded", !1);
992
- const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
993
- Object.keys(t).filter((p) => s.indexOf(p) > -1).forEach((p) => {
994
- this[p] = t[p];
995
- }), t.children && t.children.length && (this.children = pt(t.children));
783
+ const r = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
784
+ Object.keys(t).filter((u) => r.indexOf(u) > -1).forEach((u) => {
785
+ this[u] = t[u];
786
+ }), t.children && t.children.length && (this.children = lt(t.children));
996
787
  }
997
788
  }
998
789
  const De = /* @__PURE__ */ new Map([
999
790
  ["buttons", "items"]
1000
791
  ]);
1001
- function ke(n, e, t) {
792
+ function Se(n, e, t) {
1002
793
  return e;
1003
794
  }
1004
- const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/response-toolbar.schema.json", ft = "response-toolbar", mt = "A Farris Toolbar Component", gt = "object", yt = {
795
+ const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/response-toolbar.schema.json", dt = "response-toolbar", ft = "A Farris Toolbar Component", mt = "object", gt = {
1005
796
  id: {
1006
797
  description: "The unique identifier for a Response Toolbar",
1007
798
  type: "string"
@@ -1039,14 +830,14 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
1039
830
  "type",
1040
831
  "buttons"
1041
832
  ], bt = {
1042
- $schema: dt,
833
+ $schema: pt,
1043
834
  $id: ut,
1044
- title: ft,
1045
- description: mt,
1046
- type: gt,
1047
- properties: yt,
835
+ title: dt,
836
+ description: ft,
837
+ type: mt,
838
+ properties: gt,
1048
839
  required: ht
1049
- }, vt = "https://json-schema.org/draft/2020-12/schema", Ct = "https://farris-design.gitee.io/response-toolbar-item.schema.json", wt = "response-toolbar-item", Tt = "A Farris Toolbar Item Component", St = "object", Pt = {
840
+ }, yt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Ct = "response-toolbar-item", wt = "A Farris Toolbar Item Component", Tt = "object", Pt = {
1050
841
  id: {
1051
842
  description: "The unique identifier for a Response Toolbar",
1052
843
  type: "string"
@@ -1088,15 +879,15 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
1088
879
  "id",
1089
880
  "type",
1090
881
  "text"
1091
- ], re = {
1092
- $schema: vt,
1093
- $id: Ct,
1094
- title: wt,
1095
- description: Tt,
1096
- type: St,
882
+ ], se = {
883
+ $schema: yt,
884
+ $id: vt,
885
+ title: Ct,
886
+ description: wt,
887
+ type: Tt,
1097
888
  properties: Pt,
1098
889
  required: Dt
1099
- }, kt = "response-toolbar-item", Mt = "A Farris Container Component", xt = "object", Et = {
890
+ }, St = "response-toolbar-item", jt = "A Farris Container Component", Et = "object", Mt = {
1100
891
  basic: {
1101
892
  title: "基本信息",
1102
893
  description: "Basic Infomation",
@@ -1130,10 +921,10 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
1130
921
  }
1131
922
  }
1132
923
  }, me = {
1133
- title: kt,
1134
- description: Mt,
1135
- type: xt,
1136
- categories: Et
924
+ title: St,
925
+ description: jt,
926
+ type: Et,
927
+ categories: Mt
1137
928
  }, pe = {
1138
929
  /** 组件自定义样式 */
1139
930
  customClass: { type: String, default: "" },
@@ -1143,38 +934,38 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
1143
934
  default: []
1144
935
  }
1145
936
  };
1146
- ie[re.title] = re;
937
+ ie[se.title] = se;
1147
938
  we[me.title] = me;
1148
- const Bt = Object.assign({}, pe, {
939
+ const xt = Object.assign({}, pe, {
1149
940
  componentId: { type: String, default: "" }
1150
- }), de = ce(
941
+ }), ue = ce(
1151
942
  pe,
1152
943
  bt,
1153
944
  De,
1154
- ke
1155
- ), Me = {
945
+ Se
946
+ ), je = {
1156
947
  id: { type: String, default: "" },
1157
948
  items: { type: Object, default: {} },
1158
949
  text: { type: String, default: "" },
1159
950
  disabled: { type: Boolean, default: !1 },
1160
951
  icon: { type: String, default: "" },
1161
952
  componentId: { type: String, default: "" }
1162
- }, jt = ce(
1163
- Me,
1164
- re,
953
+ }, kt = ce(
954
+ je,
955
+ se,
1165
956
  De,
1166
- ke
957
+ Se
1167
958
  );
1168
- function xe() {
959
+ function Ee() {
1169
960
  function n(t) {
1170
- const s = {
961
+ const r = {
1171
962
  "f-icon": !0
1172
963
  };
1173
964
  if (t.icon) {
1174
- const p = t.icon.trim().split(" ");
1175
- p && p.length && p.reduce((u, h) => (u[h] = !0, u), s);
965
+ const u = t.icon.trim().split(" ");
966
+ u && u.length && u.reduce((g, v) => (g[v] = !0, g), r);
1176
967
  }
1177
- return s;
968
+ return r;
1178
969
  }
1179
970
  function e(t) {
1180
971
  return !!(t.icon && t.icon.trim());
@@ -1187,8 +978,8 @@ function At(n) {
1187
978
  "dropdown-menu": !0
1188
979
  };
1189
980
  if (l.class) {
1190
- const f = l.menuClass.split(" ");
1191
- f && f.length && f.reduce((i, C) => (i[C] = !0, i), a);
981
+ const d = l.menuClass.split(" ");
982
+ d && d.length && d.reduce((i, C) => (i[C] = !0, i), a);
1192
983
  }
1193
984
  return a;
1194
985
  }
@@ -1197,117 +988,117 @@ function At(n) {
1197
988
  disabled: !l.enable,
1198
989
  "dropdown-submenu": !0,
1199
990
  "f-rt-dropdown": !0
1200
- }, f = l.dropdownClass.split(" ");
1201
- return f && f.length && f.reduce((i, C) => (i[C] = !0, i), a), a;
991
+ }, d = l.dropdownClass.split(" ");
992
+ return d && d.length && d.reduce((i, C) => (i[C] = !0, i), a), a;
1202
993
  }
1203
- function s(l) {
994
+ function r(l) {
1204
995
  const a = {
1205
996
  disabled: !l.enable,
1206
997
  "dropdown-item": !0,
1207
998
  "f-rt-btn": !0
1208
- }, f = l.class.split(" ");
1209
- return f && f.length && f.reduce((i, C) => (i[C] = !0, i), a), a;
999
+ }, d = l.class.split(" ");
1000
+ return d && d.length && d.reduce((i, C) => (i[C] = !0, i), a), a;
1210
1001
  }
1211
- let p;
1212
- const u = /* @__PURE__ */ new Map();
1213
- function h(l, a, f) {
1002
+ let u;
1003
+ const g = /* @__PURE__ */ new Map();
1004
+ function v(l, a, d) {
1214
1005
  var C;
1215
1006
  ((C = l.target) == null ? void 0 : C.id) === a.id && l.stopPropagation();
1216
- const i = f ? f.id : "__top_item__";
1217
- if (a.children && a.children.length && (a.expanded = !a.expanded, a.expanded ? u.set(i, a) : u.delete(i)), u.has(i) && u.get(i) !== a) {
1218
- const w = u.get(i);
1007
+ const i = d ? d.id : "__top_item__";
1008
+ if (a.children && a.children.length && (a.expanded = !a.expanded, a.expanded ? g.set(i, a) : g.delete(i)), g.has(i) && g.get(i) !== a) {
1009
+ const w = g.get(i);
1219
1010
  w && (w.expanded = !1);
1220
1011
  }
1221
1012
  }
1222
- function P(l, a) {
1013
+ function D(l, a) {
1223
1014
  document.body.click(), a.enable && a.onClick(l, a.id);
1224
1015
  }
1225
- function k(l) {
1226
- return l.children.map((a) => a.children && a.children.length ? b("li", {
1016
+ function E(l) {
1017
+ return l.children.map((a) => a.children && a.children.length ? h("li", {
1227
1018
  class: t(a),
1228
1019
  id: a.id,
1229
- onClick: (f) => a.enable && h(f, a, l)
1230
- }, [b("span", {
1020
+ onClick: (d) => a.enable && v(d, a, l)
1021
+ }, [h("span", {
1231
1022
  id: a.id,
1232
- class: s(a),
1233
- onMouseover: (f) => a.enable && h(f, a, l)
1234
- }, [a.text, b("i", {
1023
+ class: r(a),
1024
+ onMouseover: (d) => a.enable && v(d, a, l)
1025
+ }, [a.text, h("i", {
1235
1026
  class: "f-icon f-icon-arrow-chevron-right",
1236
1027
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1237
- }, null)]), p(a, a)]) : b("li", {
1238
- class: s(a),
1028
+ }, null)]), u(a, a)]) : h("li", {
1029
+ class: r(a),
1239
1030
  id: a.id,
1240
- onClick: (f) => P(f, a),
1241
- onMouseover: (f) => a.enable && h(f, a, l)
1242
- }, [n.shouldShowIcon(a) && b("i", {
1031
+ onClick: (d) => D(d, a),
1032
+ onMouseover: (d) => a.enable && v(d, a, l)
1033
+ }, [n.shouldShowIcon(a) && h("i", {
1243
1034
  class: n.iconClass(a)
1244
1035
  }, null), a.text]));
1245
1036
  }
1246
- function g(l, a, f) {
1037
+ function b(l, a, d) {
1247
1038
  const i = {
1248
1039
  display: l.expanded ? "block" : "none",
1249
1040
  position: "fixed",
1250
1041
  maxWidth: "300px",
1251
1042
  width: "auto",
1252
1043
  minWidth: "120px"
1253
- }, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a, M = w == null ? void 0 : w.getClientRects();
1254
- if (w && M && M.length) {
1044
+ }, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a, j = w == null ? void 0 : w.getClientRects();
1045
+ if (w && j && j.length) {
1255
1046
  const {
1256
1047
  top: R,
1257
- width: S,
1048
+ width: P,
1258
1049
  left: A,
1259
- right: L,
1260
- height: v
1261
- } = M[0], m = Math.ceil(v + R);
1262
- i.top = `${m}px`, i.left = `${A}px`;
1263
- const D = l.id + "_menu", j = a ? a.querySelector("#" + D) : null;
1264
- if (j) {
1265
- i.display === "block" && (j.style.display = "block");
1266
- const d = j.getBoundingClientRect();
1267
- if (f) {
1050
+ right: N,
1051
+ height: y
1052
+ } = j[0], f = Math.ceil(y + R);
1053
+ i.top = `${f}px`, i.left = `${A}px`;
1054
+ const S = l.id + "_menu", k = a ? a.querySelector("#" + S) : null;
1055
+ if (k) {
1056
+ i.display === "block" && (k.style.display = "block");
1057
+ const p = k.getBoundingClientRect();
1058
+ if (d) {
1268
1059
  i.top = `${R - 6}px`;
1269
- const r = Math.ceil(S + A);
1270
- i.left = `${r}px`;
1060
+ const s = Math.ceil(P + A);
1061
+ i.left = `${s}px`;
1271
1062
  }
1272
- C - A - S < d.width && (i.left = `${(f ? A : L) - d.width}px`);
1063
+ C - A - P < p.width && (i.left = `${(d ? A : N) - p.width}px`);
1273
1064
  }
1274
1065
  }
1275
1066
  return i;
1276
1067
  }
1277
- p = function(l, a) {
1278
- var w, M;
1279
- const f = be(), i = a ? a.id : l.id, C = (M = (w = f == null ? void 0 : f.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : M.querySelector("#" + i);
1280
- return b("ul", {
1068
+ u = function(l, a) {
1069
+ var w, j;
1070
+ const d = ye(), i = a ? a.id : l.id, C = (j = (w = d == null ? void 0 : d.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + i);
1071
+ return h("ul", {
1281
1072
  class: e(l),
1282
- style: g(l, C, a),
1073
+ style: b(l, C, a),
1283
1074
  id: l.id + "_menu"
1284
- }, [k(l)]);
1075
+ }, [E(l)]);
1285
1076
  };
1286
1077
  function T() {
1287
- u.forEach((l) => {
1078
+ g.forEach((l) => {
1288
1079
  l.expanded = !1;
1289
- }), u.clear();
1080
+ }), g.clear();
1290
1081
  }
1291
1082
  return {
1292
- renderDropdownMenu: p,
1083
+ renderDropdownMenu: u,
1293
1084
  clearAllDropDownMenu: T
1294
1085
  };
1295
1086
  }
1296
- function It(n, e) {
1297
- const t = B(n.alignment), {
1298
- renderDropdownMenu: s,
1299
- clearAllDropDownMenu: p
1087
+ function Bt(n, e) {
1088
+ const t = x(n.alignment), {
1089
+ renderDropdownMenu: r,
1090
+ clearAllDropDownMenu: u
1300
1091
  } = At(e);
1301
- function u(T) {
1092
+ function g(T) {
1302
1093
  const l = {
1303
1094
  "btn-group": !0,
1304
1095
  "f-rt-dropdown": !0,
1305
1096
  "f-btn-ml": t.value === "right",
1306
1097
  "f-btn-mr": t.value === "left"
1307
1098
  }, a = T.dropdownClass.split(" ");
1308
- return a && a.length && a.reduce((f, i) => (f[i] = !0, f), l), l;
1099
+ return a && a.length && a.reduce((d, i) => (d[i] = !0, d), l), l;
1309
1100
  }
1310
- function h(T) {
1101
+ function v(T) {
1311
1102
  const l = {
1312
1103
  btn: !0,
1313
1104
  disabled: !T.enable,
@@ -1316,598 +1107,598 @@ function It(n, e) {
1316
1107
  };
1317
1108
  if (T.class) {
1318
1109
  const a = T.class.split(" ");
1319
- a && a.length && a.reduce((f, i) => (f[i] = !0, f), l);
1110
+ a && a.length && a.reduce((d, i) => (d[i] = !0, d), l);
1320
1111
  }
1321
1112
  return l;
1322
1113
  }
1323
- function P(T, l) {
1114
+ function D(T, l) {
1324
1115
  T.stopPropagation();
1325
1116
  const a = l.expanded;
1326
1117
  document.body.click(), l.expanded = !a;
1327
1118
  }
1328
- function k(T) {
1329
- return b("div", {
1119
+ function E(T) {
1120
+ return h("div", {
1330
1121
  id: T.id,
1331
- class: u(T)
1332
- }, [b("div", {
1333
- class: h(T),
1122
+ class: g(T)
1123
+ }, [h("div", {
1124
+ class: v(T),
1334
1125
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
1335
- onClick: (l) => T.enable && P(l, T)
1336
- }, [e.shouldShowIcon(T) && b("i", {
1126
+ onClick: (l) => T.enable && D(l, T)
1127
+ }, [e.shouldShowIcon(T) && h("i", {
1337
1128
  class: e.iconClass(T)
1338
- }, null), b("span", null, [T.text]), b("i", {
1129
+ }, null), h("span", null, [T.text]), h("i", {
1339
1130
  class: "f-icon f-icon-arrow-chevron-down",
1340
1131
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1341
- }, null)]), s(T)]);
1132
+ }, null)]), r(T)]);
1342
1133
  }
1343
- function g() {
1344
- p();
1134
+ function b() {
1135
+ u();
1345
1136
  }
1346
1137
  return {
1347
- renderToolbarDropdown: k,
1348
- clearAllDropDown: g
1138
+ renderToolbarDropdown: E,
1139
+ clearAllDropDown: b
1349
1140
  };
1350
1141
  }
1351
1142
  const {
1352
1143
  buildResponseToolbarItems: ge
1353
- } = Pe(), K = /* @__PURE__ */ G({
1144
+ } = Pe(), Y = /* @__PURE__ */ z({
1354
1145
  name: "FResponseToolbar",
1355
1146
  props: pe,
1356
1147
  emits: ["click"],
1357
1148
  setup(n, e) {
1358
- const t = B(ge(n.items)), s = B(), p = B(), u = B(), h = B(n.alignment), P = {
1149
+ const t = x(ge(n.items)), r = x(), u = x(), g = x(), v = x(n.alignment), D = {
1359
1150
  id: "__more_buttons__",
1360
1151
  text: "更多"
1361
- }, k = B(new X(P)), g = xe(), T = V(() => k.value.children.length > 0), l = V(() => {
1362
- const m = {
1152
+ }, E = x(new J(D)), b = Ee(), T = F(() => E.value.children.length > 0), l = F(() => {
1153
+ const f = {
1363
1154
  "f-toolbar": !0,
1364
1155
  "f-response-toolbar": !0,
1365
1156
  "position-relative": !0
1366
1157
  };
1367
1158
  if (n.customClass) {
1368
- const D = n.customClass.split(" ");
1369
- D && D.length && D.reduce((j, d) => (j[d] = !0, j), m);
1159
+ const S = n.customClass.split(" ");
1160
+ S && S.length && S.reduce((k, p) => (k[p] = !0, k), f);
1370
1161
  }
1371
- return m;
1372
- }), a = V(() => ({
1162
+ return f;
1163
+ }), a = F(() => ({
1373
1164
  "d-flex": !0,
1374
1165
  "flex-nowrap": !0,
1375
- "justify-content-end": h.value === "right",
1376
- "justify-content-start": h.value === "left"
1166
+ "justify-content-end": v.value === "right",
1167
+ "justify-content-start": v.value === "left"
1377
1168
  })), {
1378
- renderToolbarDropdown: f,
1169
+ renderToolbarDropdown: d,
1379
1170
  clearAllDropDown: i
1380
- } = It(n, g);
1171
+ } = Bt(n, b);
1381
1172
  function C() {
1382
- t.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
1383
- m.expanded = !1;
1384
- }), k.value.expanded = !1, i();
1173
+ t.value.filter((f) => f.children && f.children.length > 0).forEach((f) => {
1174
+ f.expanded = !1;
1175
+ }), E.value.expanded = !1, i();
1385
1176
  }
1386
- function w(m) {
1387
- const D = {
1177
+ function w(f) {
1178
+ const S = {
1388
1179
  btn: !0,
1389
1180
  "f-rt-btn": !0,
1390
- "f-btn-ml": h.value === "right",
1391
- "f-btn-mr": h.value === "left",
1392
- "btn-icontext": !!(m.icon && m.icon.trim())
1181
+ "f-btn-ml": v.value === "right",
1182
+ "f-btn-mr": v.value === "left",
1183
+ "btn-icontext": !!(f.icon && f.icon.trim())
1393
1184
  };
1394
- if (m.class) {
1395
- const j = m.class.split(" ");
1396
- j && j.length && j.reduce((d, r) => (d[r] = !0, d), D);
1185
+ if (f.class) {
1186
+ const k = f.class.split(" ");
1187
+ k && k.length && k.reduce((p, s) => (p[s] = !0, p), S);
1397
1188
  }
1398
- return D;
1189
+ return S;
1399
1190
  }
1400
- function M(m, D) {
1401
- document.body.click(), D.onClick(m, D.id), e.emit("click", m, D.id);
1191
+ function j(f, S) {
1192
+ document.body.click(), S.onClick(f, S.id), e.emit("click", f, S.id);
1402
1193
  }
1403
- function R(m) {
1404
- return b("button", {
1194
+ function R(f) {
1195
+ return h("button", {
1405
1196
  type: "button",
1406
- class: w(m),
1407
- id: m.id,
1408
- disabled: !m.enable,
1409
- onClick: (D) => M(D, m)
1410
- }, [g.shouldShowIcon(m) && b("i", {
1411
- class: g.iconClass(m)
1412
- }, null), m.text]);
1197
+ class: w(f),
1198
+ id: f.id,
1199
+ disabled: !f.enable,
1200
+ onClick: (S) => j(S, f)
1201
+ }, [b.shouldShowIcon(f) && h("i", {
1202
+ class: b.iconClass(f)
1203
+ }, null), f.text]);
1413
1204
  }
1414
- const S = /* @__PURE__ */ new Map(), A = [];
1415
- function L(m) {
1416
- const D = u.value;
1417
- let j = m;
1418
- const d = Array.from(D.children), r = d[d.length - 1].id === "__more_buttons__" ? d[d.length - 1] : null;
1419
- if (r) {
1420
- const x = r.computedStyleMap().get("margin-left"), F = r.computedStyleMap().get("margin-right"), _ = (x ? x.value : 0) + r.getBoundingClientRect().width + (F ? F.value : 0);
1421
- j -= _;
1205
+ const P = /* @__PURE__ */ new Map(), A = [];
1206
+ function N(f) {
1207
+ const S = g.value;
1208
+ let k = f;
1209
+ const p = Array.from(S.children), s = p[p.length - 1].id === "__more_buttons__" ? p[p.length - 1] : null;
1210
+ if (s) {
1211
+ const M = s.computedStyleMap().get("margin-left"), I = s.computedStyleMap().get("margin-right"), L = (M ? M.value : 0) + s.getBoundingClientRect().width + (I ? I.value : 0);
1212
+ k -= L;
1422
1213
  }
1423
- const o = d.filter((x) => x.id !== "__more_buttons__");
1424
- for (const x of o) {
1425
- const F = x.computedStyleMap().get("margin-left"), _ = x.computedStyleMap().get("margin-right"), N = (F ? F.value : 0) + x.getBoundingClientRect().width + (_ ? _.value : 0);
1426
- j < N ? (S.set(x.id, !0), A.push({
1427
- id: x.id,
1428
- width: N
1429
- })) : j -= N;
1214
+ const o = p.filter((M) => M.id !== "__more_buttons__");
1215
+ for (const M of o) {
1216
+ const I = M.computedStyleMap().get("margin-left"), L = M.computedStyleMap().get("margin-right"), $ = (I ? I.value : 0) + M.getBoundingClientRect().width + (L ? L.value : 0);
1217
+ k < $ ? (P.set(M.id, !0), A.push({
1218
+ id: M.id,
1219
+ width: $
1220
+ })) : k -= $;
1430
1221
  }
1431
1222
  if (A.length)
1432
- for (let x = A.length - 1; x >= 0; x--) {
1433
- const F = A[x].width;
1434
- if (j >= F)
1435
- j -= F, S.delete(A[x].id), A.pop();
1223
+ for (let M = A.length - 1; M >= 0; M--) {
1224
+ const I = A[M].width;
1225
+ if (k >= I)
1226
+ k -= I, P.delete(A[M].id), A.pop();
1436
1227
  else
1437
1228
  break;
1438
1229
  }
1439
- const c = Object.assign({}, k.value);
1230
+ const c = Object.assign({}, E.value);
1440
1231
  c.children = [];
1441
- const y = new X(c), I = t.value.reduce((x, F) => (S.has(F.id) && y.children.push(F), F.visible = !S.has(F.id), x.push(F), x), []);
1442
- k.value = y, t.value = I;
1232
+ const m = new J(c), B = t.value.reduce((M, I) => (P.has(I.id) && m.children.push(I), I.visible = !P.has(I.id), M.push(I), M), []);
1233
+ E.value = m, t.value = B;
1443
1234
  }
1444
- const v = new ResizeObserver((m) => {
1445
- if (m.length) {
1446
- const j = m[0].contentRect.width, r = u.value.getBoundingClientRect().width;
1447
- (j < r || A.length) && (L(j), C());
1235
+ const y = new ResizeObserver((f) => {
1236
+ if (f.length) {
1237
+ const k = f[0].contentRect.width, s = g.value.getBoundingClientRect().width;
1238
+ (k < s || A.length) && (N(k), C());
1448
1239
  }
1449
1240
  });
1450
- return q(() => {
1451
- const m = p.value;
1452
- v.observe(m), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
1453
- }), se(() => {
1454
- v.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
1455
- }), Q(() => n.items, () => {
1241
+ return H(() => {
1242
+ const f = u.value;
1243
+ y.observe(f), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
1244
+ }), re(() => {
1245
+ y.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
1246
+ }), G(() => n.items, () => {
1456
1247
  t.value = ge(n.items);
1457
1248
  }, {
1458
1249
  deep: !0
1459
1250
  }), e.expose({
1460
- elementRef: s
1461
- }), () => b("div", {
1251
+ elementRef: r
1252
+ }), () => h("div", {
1462
1253
  class: l.value,
1463
- ref: s
1464
- }, [b("div", {
1465
- ref: p,
1466
- class: a.value
1467
- }, [b("div", {
1254
+ ref: r
1255
+ }, [h("div", {
1468
1256
  ref: u,
1257
+ class: a.value
1258
+ }, [h("div", {
1259
+ ref: g,
1469
1260
  class: "d-inline-block f-response-content",
1470
1261
  style: "white-space: nowrap;"
1471
- }, [t.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : R(m)), T.value && f(k.value)])])]);
1262
+ }, [t.value.filter((f) => f.visible).map((f) => f.children && f.children.length > 0 ? d(f) : R(f)), T.value && d(E.value)])])]);
1472
1263
  }
1473
1264
  });
1474
- function Ft(n, e) {
1475
- const t = U("design-item-context"), s = U("toolbar-item-handler", () => {
1265
+ function It(n, e) {
1266
+ const t = V("design-item-context"), r = V("toolbar-item-handler", () => {
1476
1267
  });
1477
- function p() {
1478
- s && s();
1268
+ function u() {
1269
+ r && r();
1479
1270
  }
1480
- function u(r) {
1271
+ function g(s) {
1481
1272
  const o = {
1482
1273
  "dropdown-menu": !0
1483
1274
  };
1484
- if (r.class) {
1485
- const c = r.menuClass.split(" ");
1486
- c && c.length && c.reduce((y, I) => (y[I] = !0, y), o);
1275
+ if (s.class) {
1276
+ const c = s.menuClass.split(" ");
1277
+ c && c.length && c.reduce((m, B) => (m[B] = !0, m), o);
1487
1278
  }
1488
1279
  return o;
1489
1280
  }
1490
- function h(r) {
1281
+ function v(s) {
1491
1282
  const o = {
1492
- disabled: !r.enable,
1283
+ disabled: !s.enable,
1493
1284
  "dropdown-submenu": !0,
1494
1285
  "f-rt-dropdown": !0
1495
- }, c = r.dropdownClass.split(" ");
1496
- return c && c.length && c.reduce((y, I) => (y[I] = !0, y), o), o;
1286
+ }, c = s.dropdownClass.split(" ");
1287
+ return c && c.length && c.reduce((m, B) => (m[B] = !0, m), o), o;
1497
1288
  }
1498
- function P(r) {
1289
+ function D(s) {
1499
1290
  const o = {
1500
- disabled: !r.enable,
1291
+ disabled: !s.enable,
1501
1292
  "dropdown-item": !0,
1502
1293
  "f-rt-btn": !0,
1503
1294
  "position-relative": !0,
1504
1295
  "farris-component": !0
1505
- }, c = r.class.split(" ");
1506
- return c && c.length && c.reduce((y, I) => (y[I] = !0, y), o), o;
1507
- }
1508
- let k;
1509
- const g = /* @__PURE__ */ new Map();
1510
- function T(r, o, c) {
1511
- var I;
1512
- ((I = r.target) == null ? void 0 : I.id) === o.id && r.stopPropagation();
1513
- const y = c ? c.id : "__top_item__";
1514
- if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? g.set(y, o) : g.delete(y)), g.has(y) && g.get(y) !== o) {
1515
- const x = g.get(y);
1516
- x && (x.expanded = !1);
1296
+ }, c = s.class.split(" ");
1297
+ return c && c.length && c.reduce((m, B) => (m[B] = !0, m), o), o;
1298
+ }
1299
+ let E;
1300
+ const b = /* @__PURE__ */ new Map();
1301
+ function T(s, o, c) {
1302
+ var B;
1303
+ ((B = s.target) == null ? void 0 : B.id) === o.id && s.stopPropagation();
1304
+ const m = c ? c.id : "__top_item__";
1305
+ if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? b.set(m, o) : b.delete(m)), b.has(m) && b.get(m) !== o) {
1306
+ const M = b.get(m);
1307
+ M && (M.expanded = !1);
1517
1308
  }
1518
1309
  }
1519
- function l(r) {
1520
- r && (r.stopPropagation(), r.preventDefault());
1310
+ function l(s) {
1311
+ s && (s.stopPropagation(), s.preventDefault());
1521
1312
  }
1522
1313
  function a() {
1523
1314
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
1524
- const r = document.getElementsByClassName("dgComponentSelected");
1525
- Array.from(r).forEach((o) => o.classList.remove("dgComponentSelected"));
1315
+ const s = document.getElementsByClassName("dgComponentSelected");
1316
+ Array.from(s).forEach((o) => o.classList.remove("dgComponentSelected"));
1526
1317
  }
1527
- function f(r) {
1528
- r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1318
+ function d(s) {
1319
+ s.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1529
1320
  }
1530
- function i(r) {
1321
+ function i(s) {
1531
1322
  const {
1532
1323
  buttons: o = []
1533
1324
  } = t.schema;
1534
1325
  let c = [];
1535
- o.forEach((x) => {
1536
- c = c.concat(x.children || []);
1326
+ o.forEach((M) => {
1327
+ c = c.concat(M.children || []);
1537
1328
  });
1538
- const y = c.findIndex((x) => x.id === r), I = y === -1 ? null : c[y];
1329
+ const m = c.findIndex((M) => M.id === s), B = m === -1 ? null : c[m];
1539
1330
  return {
1540
- index: y,
1541
- item: I
1331
+ index: m,
1332
+ item: B
1542
1333
  };
1543
1334
  }
1544
- function C(r) {
1335
+ function C(s) {
1545
1336
  const {
1546
1337
  buttons: o = []
1547
- } = t.schema, c = o.findIndex((I) => I.id === r), y = c === -1 ? null : o[c];
1338
+ } = t.schema, c = o.findIndex((B) => B.id === s), m = c === -1 ? null : o[c];
1548
1339
  return {
1549
1340
  index: c,
1550
- item: y
1341
+ item: m
1551
1342
  };
1552
1343
  }
1553
- function w(r) {
1554
- var y;
1344
+ function w(s) {
1345
+ var m;
1555
1346
  t.schema;
1556
1347
  const {
1557
1348
  index: o,
1558
1349
  item: c
1559
- } = i(r);
1560
- (y = t == null ? void 0 : t.setupContext) == null || y.emit("selectionChange", c == null ? void 0 : c.type, c);
1350
+ } = i(s);
1351
+ (m = t == null ? void 0 : t.setupContext) == null || m.emit("selectionChange", c == null ? void 0 : c.type, c);
1561
1352
  }
1562
- const M = function(r) {
1353
+ const j = function(s) {
1563
1354
  const {
1564
1355
  componentType: o
1565
- } = r, c = z(o, r), y = o.toLowerCase().replace("-", "_");
1566
- return c && !c.id && c.type === o && (c.id = `${y}_${Math.random().toString().slice(2, 6)}`), c;
1356
+ } = s, c = U(o, s), m = o.toLowerCase().replace("-", "_");
1357
+ return c && !c.id && c.type === o && (c.id = `${m}_${Math.random().toString().slice(2, 6)}`), c;
1567
1358
  }, R = function() {
1568
- const r = {
1359
+ const s = {
1569
1360
  componentType: "response-toolbar-item",
1570
1361
  parentComponentInstance: e.value,
1571
1362
  targetPosition: -1
1572
1363
  };
1573
- return M(r);
1364
+ return j(s);
1574
1365
  };
1575
- function S(r, o) {
1576
- l(r), a(), f(r), w(o.id);
1366
+ function P(s, o) {
1367
+ l(s), a(), d(s), w(o.id);
1577
1368
  }
1578
- function A(r, o, c) {
1579
- l(r);
1580
- const y = o.id, I = c && c.id, {
1581
- buttons: x = []
1369
+ function A(s, o, c) {
1370
+ l(s);
1371
+ const m = o.id, B = c && c.id, {
1372
+ buttons: M = []
1582
1373
  } = t.schema;
1583
- if (!I)
1374
+ if (!B)
1584
1375
  return;
1585
1376
  const {
1586
- index: F
1587
- } = C(I);
1588
- if (F === -1)
1377
+ index: I
1378
+ } = C(B);
1379
+ if (I === -1)
1589
1380
  return;
1590
1381
  const {
1591
- index: _
1592
- } = i(y);
1593
- _ !== -1 && (x[F].children.splice(_, 1), p());
1594
- }
1595
- function L(r, o, c) {
1596
- l(r);
1597
- const y = c && c.id, {
1598
- buttons: I = []
1382
+ index: L
1383
+ } = i(m);
1384
+ L !== -1 && (M[I].children.splice(L, 1), u());
1385
+ }
1386
+ function N(s, o, c) {
1387
+ l(s);
1388
+ const m = c && c.id, {
1389
+ buttons: B = []
1599
1390
  } = t.schema;
1600
- if (!y)
1391
+ if (!m)
1601
1392
  return;
1602
1393
  const {
1603
- index: x
1604
- } = C(y);
1605
- if (x === -1)
1394
+ index: M
1395
+ } = C(m);
1396
+ if (M === -1)
1606
1397
  return;
1607
- const F = R(), _ = Object.assign({}, F, {
1398
+ const I = R(), L = Object.assign({}, I, {
1608
1399
  text: o.text
1609
1400
  });
1610
- I[x].children.push(_), p();
1401
+ B[M].children.push(L), u();
1611
1402
  }
1612
- function v(r, o, c) {
1613
- l(r);
1614
- const y = c && c.id, {
1615
- buttons: I = []
1403
+ function y(s, o, c) {
1404
+ l(s);
1405
+ const m = c && c.id, {
1406
+ buttons: B = []
1616
1407
  } = t.schema;
1617
- if (!y)
1408
+ if (!m)
1618
1409
  return;
1619
1410
  const {
1620
- index: x
1621
- } = C(y);
1622
- if (x === -1)
1411
+ index: M
1412
+ } = C(m);
1413
+ if (M === -1)
1623
1414
  return;
1624
- const F = R(), _ = Object.assign({}, F, {
1415
+ const I = R(), L = Object.assign({}, I, {
1625
1416
  text: "按钮"
1626
1417
  });
1627
- I[x].children.push(_), p();
1418
+ B[M].children.push(L), u();
1628
1419
  }
1629
- function m(r, o) {
1630
- return b("div", {
1420
+ function f(s, o) {
1421
+ return h("div", {
1631
1422
  class: "component-btn-group"
1632
- }, [b("div", null, [b("div", {
1423
+ }, [h("div", null, [h("div", {
1633
1424
  role: "button",
1634
1425
  class: "btn component-settings-button",
1635
1426
  title: "删除",
1636
1427
  ref: "removeButton",
1637
1428
  style: "position:static;",
1638
- onClick: (c) => A(c, r, o)
1639
- }, [b("i", {
1429
+ onClick: (c) => A(c, s, o)
1430
+ }, [h("i", {
1640
1431
  class: "f-icon f-icon-yxs_delete"
1641
- }, null)]), b("div", {
1432
+ }, null)]), h("div", {
1642
1433
  role: "button",
1643
1434
  class: "btn component-settings-button",
1644
1435
  title: "复制",
1645
1436
  ref: "copyButton",
1646
1437
  style: "position:static;",
1647
- onClick: (c) => L(c, r, o)
1648
- }, [b("i", {
1438
+ onClick: (c) => N(c, s, o)
1439
+ }, [h("i", {
1649
1440
  class: "f-icon f-icon-yxs_copy"
1650
- }, null)]), b("div", {
1441
+ }, null)]), h("div", {
1651
1442
  role: "button",
1652
1443
  class: "btn component-settings-button",
1653
1444
  title: "新增同级",
1654
1445
  ref: "appendSame",
1655
1446
  style: "width:85px!important;padding:0 5px;position:static;",
1656
- onClick: (c) => v(c, r, o)
1657
- }, [b("i", {
1447
+ onClick: (c) => y(c, s, o)
1448
+ }, [h("i", {
1658
1449
  class: "f-icon f-icon-plus-circle text-white mr-1"
1659
- }, null), b("span", {
1450
+ }, null), h("span", {
1660
1451
  style: "font-size:13px;margin:auto"
1661
- }, [Y("新增同级")])])])]);
1452
+ }, [Q("新增同级")])])])]);
1662
1453
  }
1663
- function D(r) {
1664
- return r.children.map((o) => o.children && o.children.length ? b("li", {
1665
- class: h(o),
1454
+ function S(s) {
1455
+ return s.children.map((o) => o.children && o.children.length ? h("li", {
1456
+ class: v(o),
1666
1457
  id: o.id,
1667
- onClick: (c) => o.enable && T(c, o, r)
1668
- }, [b("span", {
1458
+ onClick: (c) => o.enable && T(c, o, s)
1459
+ }, [h("span", {
1669
1460
  id: o.id,
1670
- class: P(o),
1671
- onMouseover: (c) => o.enable && T(c, o, r)
1672
- }, [o.text, b("i", {
1461
+ class: D(o),
1462
+ onMouseover: (c) => o.enable && T(c, o, s)
1463
+ }, [o.text, h("i", {
1673
1464
  class: "f-icon f-icon-arrow-chevron-right",
1674
1465
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1675
- }, null)]), k(o, o)]) : b("li", {
1676
- class: P(o),
1466
+ }, null)]), E(o, o)]) : h("li", {
1467
+ class: D(o),
1677
1468
  id: o.id,
1678
- onClick: (c) => S(c, o)
1679
- }, [m(o, r), n.shouldShowIcon(o) && b("i", {
1469
+ onClick: (c) => P(c, o)
1470
+ }, [f(o, s), n.shouldShowIcon(o) && h("i", {
1680
1471
  class: n.iconClass(o)
1681
1472
  }, null), o.text]));
1682
1473
  }
1683
- function j(r, o, c) {
1684
- const y = {
1685
- display: r.expanded ? "block" : "none",
1474
+ function k(s, o, c) {
1475
+ const m = {
1476
+ display: s.expanded ? "block" : "none",
1686
1477
  position: "fixed",
1687
1478
  maxWidth: "300px",
1688
1479
  width: "auto",
1689
1480
  minWidth: "120px"
1690
- }, I = document.getElementsByTagName("body")[0].getClientRects()[0].width, x = o, F = x == null ? void 0 : x.getClientRects();
1691
- if (x && F && F.length) {
1481
+ }, B = document.getElementsByTagName("body")[0].getClientRects()[0].width, M = o, I = M == null ? void 0 : M.getClientRects();
1482
+ if (M && I && I.length) {
1692
1483
  const {
1693
- top: _,
1694
- width: N,
1695
- left: $,
1484
+ top: L,
1485
+ width: $,
1486
+ left: _,
1696
1487
  right: W,
1697
- height: H
1698
- } = F[0], ee = Math.ceil(H + _);
1699
- y.top = `${ee}px`, y.left = `${$}px`;
1700
- const Ie = r.id + "_menu", te = o ? o.querySelector("#" + Ie) : null;
1488
+ height: q
1489
+ } = I[0], ee = Math.ceil(q + L);
1490
+ m.top = `${ee}px`, m.left = `${_}px`;
1491
+ const Be = s.id + "_menu", te = o ? o.querySelector("#" + Be) : null;
1701
1492
  if (te) {
1702
- y.display === "block" && (te.style.display = "block");
1703
- const ue = te.getBoundingClientRect();
1493
+ m.display === "block" && (te.style.display = "block");
1494
+ const de = te.getBoundingClientRect();
1704
1495
  if (c) {
1705
- y.top = `${_ - 6}px`;
1706
- const Fe = Math.ceil(N + $);
1707
- y.left = `${Fe}px`;
1496
+ m.top = `${L - 6}px`;
1497
+ const Ie = Math.ceil($ + _);
1498
+ m.left = `${Ie}px`;
1708
1499
  }
1709
- I - $ - N < ue.width && (y.left = `${(c ? $ : W) - ue.width}px`);
1500
+ B - _ - $ < de.width && (m.left = `${(c ? _ : W) - de.width}px`);
1710
1501
  }
1711
1502
  }
1712
- return y;
1713
- }
1714
- k = function(r, o) {
1715
- var x, F;
1716
- const c = be(), y = o ? o.id : r.id, I = (F = (x = c == null ? void 0 : c.exposed) == null ? void 0 : x.elementRef.value) == null ? void 0 : F.querySelector("#" + y);
1717
- return b("ul", {
1718
- class: u(r),
1719
- style: j(r, I, o),
1720
- id: r.id + "_menu"
1721
- }, [D(r)]);
1503
+ return m;
1504
+ }
1505
+ E = function(s, o) {
1506
+ var M, I;
1507
+ const c = ye(), m = o ? o.id : s.id, B = (I = (M = c == null ? void 0 : c.exposed) == null ? void 0 : M.elementRef.value) == null ? void 0 : I.querySelector("#" + m);
1508
+ return h("ul", {
1509
+ class: g(s),
1510
+ style: k(s, B, o),
1511
+ id: s.id + "_menu"
1512
+ }, [S(s)]);
1722
1513
  };
1723
- function d() {
1724
- g.forEach((r) => {
1725
- r.expanded = !1;
1726
- }), g.clear();
1514
+ function p() {
1515
+ b.forEach((s) => {
1516
+ s.expanded = !1;
1517
+ }), b.clear();
1727
1518
  }
1728
1519
  return {
1729
- renderDropdownMenu: k,
1730
- clearAllDropDownMenu: d
1520
+ renderDropdownMenu: E,
1521
+ clearAllDropDownMenu: p
1731
1522
  };
1732
1523
  }
1733
1524
  function Rt(n, e, t) {
1734
- const s = B(n.alignment), {
1735
- renderDropdownMenu: p,
1736
- clearAllDropDownMenu: u
1737
- } = Ft(e, t), h = U("design-item-context"), P = U("toolbar-item-handler", () => {
1525
+ const r = x(n.alignment), {
1526
+ renderDropdownMenu: u,
1527
+ clearAllDropDownMenu: g
1528
+ } = It(e, t), v = V("design-item-context"), D = V("toolbar-item-handler", () => {
1738
1529
  });
1739
- function k() {
1740
- P && P();
1530
+ function E() {
1531
+ D && D();
1741
1532
  }
1742
- function g(d) {
1743
- const r = {
1533
+ function b(p) {
1534
+ const s = {
1744
1535
  "btn-group": !0,
1745
1536
  "f-rt-dropdown": !0,
1746
- "f-btn-ml": s.value === "right",
1747
- "f-btn-mr": s.value === "left"
1748
- }, o = d.dropdownClass.split(" ");
1749
- return o && o.length && o.reduce((c, y) => (c[y] = !0, c), r), r;
1537
+ "f-btn-ml": r.value === "right",
1538
+ "f-btn-mr": r.value === "left"
1539
+ }, o = p.dropdownClass.split(" ");
1540
+ return o && o.length && o.reduce((c, m) => (c[m] = !0, c), s), s;
1750
1541
  }
1751
- function T(d) {
1752
- const r = {
1542
+ function T(p) {
1543
+ const s = {
1753
1544
  btn: !0,
1754
- disabled: !d.enable,
1545
+ disabled: !p.enable,
1755
1546
  "position-relative": !0,
1756
1547
  "farris-component": !0,
1757
1548
  "f-rt-btn": !0,
1758
- "btn-icontext": !!(d.icon && d.icon.trim())
1549
+ "btn-icontext": !!(p.icon && p.icon.trim())
1759
1550
  };
1760
- if (d.class) {
1761
- const o = d.class.split(" ");
1762
- o && o.length && o.reduce((c, y) => (c[y] = !0, c), r);
1551
+ if (p.class) {
1552
+ const o = p.class.split(" ");
1553
+ o && o.length && o.reduce((c, m) => (c[m] = !0, c), s);
1763
1554
  }
1764
- return r;
1555
+ return s;
1765
1556
  }
1766
- function l(d) {
1767
- d && (d.stopPropagation(), d.preventDefault());
1557
+ function l(p) {
1558
+ p && (p.stopPropagation(), p.preventDefault());
1768
1559
  }
1769
- function a(d, r) {
1770
- l(d);
1771
- const o = r.expanded;
1772
- document.body.click(), r.expanded = !o;
1560
+ function a(p, s) {
1561
+ l(p);
1562
+ const o = s.expanded;
1563
+ document.body.click(), s.expanded = !o;
1773
1564
  }
1774
- const f = function(d) {
1565
+ const d = function(p) {
1775
1566
  const {
1776
- componentType: r
1777
- } = d, o = z(r, d), c = r.toLowerCase().replace("-", "_");
1778
- return o && !o.id && o.type === r && (o.id = `${c}_${Math.random().toString().slice(2, 6)}`), o;
1567
+ componentType: s
1568
+ } = p, o = U(s, p), c = s.toLowerCase().replace("-", "_");
1569
+ return o && !o.id && o.type === s && (o.id = `${c}_${Math.random().toString().slice(2, 6)}`), o;
1779
1570
  }, i = function() {
1780
- const d = {
1571
+ const p = {
1781
1572
  componentType: "response-toolbar-item",
1782
1573
  parentComponentInstance: t.value,
1783
1574
  targetPosition: -1
1784
1575
  };
1785
- return f(d);
1576
+ return d(p);
1786
1577
  };
1787
- function C(d) {
1788
- const r = h.schema.buttons || h.schema.contents, o = r == null ? void 0 : r.findIndex((y) => y.id === d), c = o === -1 ? null : r[o];
1578
+ function C(p) {
1579
+ const s = v.schema.buttons || v.schema.contents, o = s == null ? void 0 : s.findIndex((m) => m.id === p), c = o === -1 ? null : s[o];
1789
1580
  return {
1790
1581
  index: o,
1791
1582
  toolbarItem: c
1792
1583
  };
1793
1584
  }
1794
- function w(d, r) {
1795
- var F;
1585
+ function w(p, s) {
1586
+ var I;
1796
1587
  const {
1797
1588
  index: o,
1798
1589
  toolbarItem: c
1799
- } = C(r);
1590
+ } = C(s);
1800
1591
  if (o === -1)
1801
1592
  return;
1802
- const y = c.text || "按钮", I = i(), x = Object.assign({}, I, {
1803
- text: y
1593
+ const m = c.text || "按钮", B = i(), M = Object.assign({}, B, {
1594
+ text: m
1804
1595
  });
1805
- (F = h.schema.buttons) == null || F.push(x), k();
1596
+ (I = v.schema.buttons) == null || I.push(M), E();
1806
1597
  }
1807
- function M(d, r) {
1598
+ function j(p, s) {
1808
1599
  const {
1809
1600
  index: o,
1810
1601
  toolbarItem: c
1811
- } = C(r);
1602
+ } = C(s);
1812
1603
  if (o === -1)
1813
1604
  return;
1814
- const y = c.text || "按钮", I = i(), x = Object.assign({}, I, {
1815
- text: y
1816
- }), F = h.schema.buttons[o].children || [];
1817
- F.push(x), h.schema.buttons[o].children = F, k();
1605
+ const m = c.text || "按钮", B = i(), M = Object.assign({}, B, {
1606
+ text: m
1607
+ }), I = v.schema.buttons[o].children || [];
1608
+ I.push(M), v.schema.buttons[o].children = I, E();
1818
1609
  }
1819
- function R(d, r) {
1820
- const o = h.schema.buttons || h.schema.contents, c = o == null ? void 0 : o.findIndex((y) => y.id === r);
1821
- c !== -1 && (o.splice(c, 1), k());
1610
+ function R(p, s) {
1611
+ const o = v.schema.buttons || v.schema.contents, c = o == null ? void 0 : o.findIndex((m) => m.id === s);
1612
+ c !== -1 && (o.splice(c, 1), E());
1822
1613
  }
1823
- function S(d) {
1824
- return b("div", {
1614
+ function P(p) {
1615
+ return h("div", {
1825
1616
  class: "component-btn-group"
1826
- }, [b("div", null, [b("div", {
1617
+ }, [h("div", null, [h("div", {
1827
1618
  role: "button",
1828
1619
  class: "btn component-settings-button",
1829
1620
  title: "删除",
1830
1621
  ref: "removeButton",
1831
1622
  style: "position:static;",
1832
- onClick: (r) => R(r, d)
1833
- }, [b("i", {
1623
+ onClick: (s) => R(s, p)
1624
+ }, [h("i", {
1834
1625
  class: "f-icon f-icon-yxs_delete"
1835
- }, null)]), b("div", {
1626
+ }, null)]), h("div", {
1836
1627
  role: "button",
1837
1628
  class: "btn component-settings-button",
1838
1629
  title: "复制",
1839
1630
  ref: "copyButton",
1840
1631
  style: "position:static;",
1841
- onClick: (r) => w(r, d)
1842
- }, [b("i", {
1632
+ onClick: (s) => w(s, p)
1633
+ }, [h("i", {
1843
1634
  class: "f-icon f-icon-yxs_copy"
1844
- }, null)]), b("div", {
1635
+ }, null)]), h("div", {
1845
1636
  role: "button",
1846
1637
  class: "btn component-settings-button",
1847
1638
  title: "新增子级",
1848
1639
  ref: "appendChildButton",
1849
1640
  style: "width:85px!important;padding:0 5px;position:static;",
1850
- onClick: (r) => M(r, d)
1851
- }, [b("i", {
1641
+ onClick: (s) => j(s, p)
1642
+ }, [h("i", {
1852
1643
  class: "f-icon f-icon-plus-circle text-white mr-1"
1853
- }, null), b("span", {
1644
+ }, null), h("span", {
1854
1645
  style: "font-size:13px;margin:auto"
1855
- }, [Y("新增子级")])])])]);
1646
+ }, [Q("新增子级")])])])]);
1856
1647
  }
1857
1648
  function A() {
1858
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
1859
- const d = document.getElementsByClassName("dgComponentSelected");
1860
- Array.from(d).forEach((r) => r.classList.remove("dgComponentSelected"));
1649
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((s) => s.classList.remove("dgComponentFocused"));
1650
+ const p = document.getElementsByClassName("dgComponentSelected");
1651
+ Array.from(p).forEach((s) => s.classList.remove("dgComponentSelected"));
1861
1652
  }
1862
- function L(d) {
1863
- d.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1653
+ function N(p) {
1654
+ p.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1864
1655
  }
1865
- function v(d) {
1866
- var y;
1867
- const r = h.schema.buttons || h.schema.contents, o = r == null ? void 0 : r.findIndex((I) => I.id === d);
1656
+ function y(p) {
1657
+ var m;
1658
+ const s = v.schema.buttons || v.schema.contents, o = s == null ? void 0 : s.findIndex((B) => B.id === p);
1868
1659
  if (o === -1)
1869
1660
  return;
1870
- const c = r[o];
1871
- (y = h == null ? void 0 : h.setupContext) == null || y.emit("selectionChange", "response-toolbar-item", c);
1872
- }
1873
- function m(d, r) {
1874
- l(d), A(), L(d), l(d), a(d, r), v(r.id);
1875
- }
1876
- function D(d) {
1877
- return b("div", {
1878
- id: d.id,
1879
- class: g(d)
1880
- }, [b("div", {
1881
- class: T(d),
1661
+ const c = s[o];
1662
+ (m = v == null ? void 0 : v.setupContext) == null || m.emit("selectionChange", "response-toolbar-item", c);
1663
+ }
1664
+ function f(p, s) {
1665
+ l(p), A(), N(p), l(p), a(p, s), y(s.id);
1666
+ }
1667
+ function S(p) {
1668
+ return h("div", {
1669
+ id: p.id,
1670
+ class: b(p)
1671
+ }, [h("div", {
1672
+ class: T(p),
1882
1673
  style: "display: flex;padding-right: 0.1rem;",
1883
- onClick: (r) => d.enable && m(r, d)
1884
- }, [S(d.id), e.shouldShowIcon(d) && b("i", {
1885
- class: e.iconClass(d)
1886
- }, null), b("span", null, [d.text]), b("i", {
1674
+ onClick: (s) => p.enable && f(s, p)
1675
+ }, [P(p.id), e.shouldShowIcon(p) && h("i", {
1676
+ class: e.iconClass(p)
1677
+ }, null), h("span", null, [p.text]), h("i", {
1887
1678
  class: "f-icon f-icon-arrow-chevron-down",
1888
1679
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1889
- }, null)]), p(d)]);
1680
+ }, null)]), u(p)]);
1890
1681
  }
1891
- function j() {
1892
- u();
1682
+ function k() {
1683
+ g();
1893
1684
  }
1894
1685
  return {
1895
- renderToolbarDropdown: D,
1896
- clearAllDropDown: j
1686
+ renderToolbarDropdown: S,
1687
+ clearAllDropDown: k
1897
1688
  };
1898
1689
  }
1899
1690
  function Ot() {
1900
1691
  function n(e) {
1901
- var p, u;
1692
+ var u, g;
1902
1693
  if (!e)
1903
1694
  return !1;
1904
- const t = ((p = e.targetContainer) == null ? void 0 : p.componentInstance) && e.targetContainer.componentInstance.value;
1695
+ const t = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
1905
1696
  if (!t)
1906
1697
  return !1;
1907
- const s = (u = t.schema.appearance) == null ? void 0 : u.class;
1698
+ const r = (g = t.schema.appearance) == null ? void 0 : g.class;
1908
1699
  if (e.controlCategory === "input" || e.controlType === "form-group") {
1909
- const h = t.schema.type, P = (h === "response-form" || h === "content-container") && s && s.includes("farris-form");
1910
- if (t.schema.type !== "response-layout-item" && !P)
1700
+ const v = t.schema.type, D = (v === "response-form" || v === "content-container") && r && r.includes("farris-form");
1701
+ if (t.schema.type !== "response-layout-item" && !D)
1911
1702
  return !1;
1912
1703
  }
1913
1704
  return e.controlType !== "field-set";
@@ -1916,7 +1707,7 @@ function Ot() {
1916
1707
  basalDragulaRuleForContainer: n
1917
1708
  };
1918
1709
  }
1919
- const Lt = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-design.gitee.io/dragging-rules.schema.json", $t = "Dragging Rules", Vt = "The rules of designer canvas", _t = "object", Ut = {
1710
+ const Nt = "https://json-schema.org/draft/2020-12/schema", $t = "https://farris-design.gitee.io/dragging-rules.schema.json", _t = "Dragging Rules", Ft = "The rules of designer canvas", Lt = "object", Vt = {
1920
1711
  "f-page": {
1921
1712
  description: "The root class of page designed by farris.",
1922
1713
  type: "object",
@@ -2480,106 +2271,106 @@ const Lt = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-
2480
2271
  description: "",
2481
2272
  type: "object"
2482
2273
  }
2483
- }, Wt = [], zt = {
2484
- $schema: Lt,
2485
- $id: Nt,
2486
- title: $t,
2487
- description: Vt,
2488
- type: _t,
2489
- properties: Ut,
2274
+ }, Wt = [], Ut = {
2275
+ $schema: Nt,
2276
+ $id: $t,
2277
+ title: _t,
2278
+ description: Ft,
2279
+ type: Lt,
2280
+ properties: Vt,
2490
2281
  required: Wt
2491
2282
  }, oe = /* @__PURE__ */ new Map();
2492
- function Ee() {
2493
- function n(i, C, w, M) {
2283
+ function Me() {
2284
+ function n(i, C, w, j) {
2494
2285
  var R;
2495
2286
  if (typeof w == "number")
2496
- return ((R = M[i]) == null ? void 0 : R.length) === w;
2287
+ return ((R = j[i]) == null ? void 0 : R.length) === w;
2497
2288
  if (typeof w == "object") {
2498
- const S = Object.keys(w)[0], A = w[S];
2499
- if (S === "not")
2500
- return Number(M[i].length) !== Number(A);
2501
- if (S === "moreThan")
2502
- return Number(M[i].length) >= Number(A);
2503
- if (S === "lessThan")
2504
- return Number(M[i].length) <= Number(A);
2289
+ const P = Object.keys(w)[0], A = w[P];
2290
+ if (P === "not")
2291
+ return Number(j[i].length) !== Number(A);
2292
+ if (P === "moreThan")
2293
+ return Number(j[i].length) >= Number(A);
2294
+ if (P === "lessThan")
2295
+ return Number(j[i].length) <= Number(A);
2505
2296
  }
2506
2297
  return !1;
2507
2298
  }
2508
- function e(i, C, w, M) {
2509
- return typeof w == "boolean" ? M.childrenClassList.includes(C) === !!w : !1;
2299
+ function e(i, C, w, j) {
2300
+ return typeof w == "boolean" ? j.childrenClassList.includes(C) === !!w : !1;
2510
2301
  }
2511
- function t(i, C, w, M) {
2512
- return typeof w == "boolean" ? M.parentClassList.includes(C) === !!w : !1;
2302
+ function t(i, C, w, j) {
2303
+ return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
2513
2304
  }
2514
- function s(i, C, w, M) {
2515
- return typeof w == "boolean" ? M.parentClassList.includes(C) === !!w : !1;
2305
+ function r(i, C, w, j) {
2306
+ return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
2516
2307
  }
2517
- const p = /* @__PURE__ */ new Map([
2308
+ const u = /* @__PURE__ */ new Map([
2518
2309
  ["length", n],
2519
2310
  ["hasChildren", e],
2520
- ["hasSibling", s],
2311
+ ["hasSibling", r],
2521
2312
  ["hasParent", t]
2522
2313
  ]);
2523
- function u(i, C) {
2314
+ function g(i, C) {
2524
2315
  const w = i;
2525
- return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((M) => {
2526
- if (M === "length")
2527
- return { target: w, operator: "length", param: null, value: C[M] };
2528
- const R = M, S = C[M];
2529
- return { target: w, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: R, value: S };
2316
+ return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((j) => {
2317
+ if (j === "length")
2318
+ return { target: w, operator: "length", param: null, value: C[j] };
2319
+ const R = j, P = C[j];
2320
+ return { target: w, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: R, value: P };
2530
2321
  }) : [];
2531
2322
  }
2532
- function h(i, C) {
2533
- if (p.has(i.operator)) {
2534
- const w = p.get(i.operator);
2323
+ function v(i, C) {
2324
+ if (u.has(i.operator)) {
2325
+ const w = u.get(i.operator);
2535
2326
  return w && w(i.target, i.param, i.value, C) || !1;
2536
2327
  }
2537
2328
  return !1;
2538
2329
  }
2539
- function P(i, C) {
2540
- return Object.keys(i).reduce((S, A) => {
2541
- const L = u(A, i[A]);
2542
- return S.push(...L), S;
2543
- }, []).reduce((S, A) => S && h(A, C), !0);
2330
+ function D(i, C) {
2331
+ return Object.keys(i).reduce((P, A) => {
2332
+ const N = g(A, i[A]);
2333
+ return P.push(...N), P;
2334
+ }, []).reduce((P, A) => P && v(A, C), !0);
2544
2335
  }
2545
- function k(i, C) {
2546
- const w = Object.keys(i), M = w.includes("allOf"), R = w.includes("anyOf"), S = M || R, v = (S ? i[S ? M ? "allOf" : "anyOf" : "allOf"] : [i]).map((D) => P(D, C));
2547
- return M ? !v.includes(!1) : v.includes(!0);
2336
+ function E(i, C) {
2337
+ const w = Object.keys(i), j = w.includes("allOf"), R = w.includes("anyOf"), P = j || R, y = (P ? i[P ? j ? "allOf" : "anyOf" : "allOf"] : [i]).map((S) => D(S, C));
2338
+ return j ? !y.includes(!1) : y.includes(!0);
2548
2339
  }
2549
- function g(i, C) {
2340
+ function b(i, C) {
2550
2341
  const w = i.const;
2551
- return w ? typeof w == "boolean" ? w : typeof w == "object" ? k(w, C) : !1 : !1;
2342
+ return w ? typeof w == "boolean" ? w : typeof w == "object" ? E(w, C) : !1 : !1;
2552
2343
  }
2553
2344
  function T(i) {
2554
2345
  return (C) => {
2555
2346
  const w = { canAccept: !0, fixed: !1, hidePadding: !1 };
2556
- return i && i.properties && Object.keys(i.properties).reduce((M, R) => {
2557
- const S = i.properties[R];
2558
- return M[R] = g(S, C), M;
2347
+ return i && i.properties && Object.keys(i.properties).reduce((j, R) => {
2348
+ const P = i.properties[R];
2349
+ return j[R] = b(P, C), j;
2559
2350
  }, w), w;
2560
2351
  };
2561
2352
  }
2562
2353
  function l(i, C, w) {
2563
2354
  if (C.type === "object" && C.properties) {
2564
- const { rules: M, contents: R } = C.properties;
2565
- w.set(i, T(M)), R && Object.keys(R.properties).forEach(
2566
- (S) => l(S, R.properties[S], w)
2355
+ const { rules: j, contents: R } = C.properties;
2356
+ w.set(i, T(j)), R && Object.keys(R.properties).forEach(
2357
+ (P) => l(P, R.properties[P], w)
2567
2358
  );
2568
2359
  }
2569
2360
  }
2570
2361
  function a() {
2571
- const { properties: i } = zt;
2362
+ const { properties: i } = Ut;
2572
2363
  Object.keys(i).forEach((C) => {
2573
2364
  l(C, i[C], oe);
2574
2365
  });
2575
2366
  }
2576
- function f(i, C) {
2367
+ function d(i, C) {
2577
2368
  const w = { canAccept: !0, fixed: !1, hidePadding: !0 };
2578
2369
  return oe.has(i) ? oe.get(i)(C) : w;
2579
2370
  }
2580
- return a(), { getRuleValue: f };
2371
+ return a(), { getRuleValue: d };
2581
2372
  }
2582
- class Ht extends J {
2373
+ class qt extends K {
2583
2374
  constructor(e, t) {
2584
2375
  super(e, t);
2585
2376
  }
@@ -2605,7 +2396,7 @@ class Ht extends J {
2605
2396
  type: "combo-list",
2606
2397
  textField: "value",
2607
2398
  valueField: "key",
2608
- data: [{ key: "response-toolbar", value: E["response-toolbar"].name }]
2399
+ data: [{ key: "response-toolbar", value: Z["response-toolbar"].name }]
2609
2400
  }
2610
2401
  }
2611
2402
  }
@@ -2648,85 +2439,85 @@ class Ht extends J {
2648
2439
  };
2649
2440
  }
2650
2441
  }
2651
- function qt(n, e, t, s) {
2652
- const p = Ee(), u = B(!1), h = B(!1);
2653
- let P = !0, k = !1, g;
2654
- function T(v) {
2655
- return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
2442
+ function Ht(n, e, t, r) {
2443
+ const u = Me(), g = x(!1), v = x(!1);
2444
+ let D = !0, E = !1, b;
2445
+ function T(y) {
2446
+ return b && b.componentClassList && b.componentClassList.includes("f-form-layout") && b.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
2656
2447
  }
2657
- function l(v) {
2658
- return !Ot().basalDragulaRuleForContainer(v) || !P || !T(v), !1;
2448
+ function l(y) {
2449
+ return !Ot().basalDragulaRuleForContainer(y) || !D || !T(y), !1;
2659
2450
  }
2660
2451
  function a() {
2661
- u.value = !1, h.value = !1;
2662
- const v = n, m = v.appearance && v.appearance.class || "", D = m.split(" "), j = v.buttons || [], d = j.length ? j[0] : null, r = d && d.appearance ? d.appearance.class : "", o = r ? r.split(" ") : [], c = j.length ? j.reduce(($, W) => {
2663
- const H = W && W.appearance ? W.appearance.class : "", ee = H ? H.split(" ") : [];
2664
- return $.push(...ee), $;
2665
- }, []) : [], y = t == null ? void 0 : t.schema, I = y && y.appearance && y.appearance.class || "", x = I ? I.split(" ") : [];
2666
- g = {
2667
- componentClass: m,
2668
- componentClassList: D,
2669
- childContents: j,
2670
- firstChildContent: d,
2671
- firstChildClass: r,
2452
+ g.value = !1, v.value = !1;
2453
+ const y = n, f = y.appearance && y.appearance.class || "", S = f.split(" "), k = y.buttons || [], p = k.length ? k[0] : null, s = p && p.appearance ? p.appearance.class : "", o = s ? s.split(" ") : [], c = k.length ? k.reduce((_, W) => {
2454
+ const q = W && W.appearance ? W.appearance.class : "", ee = q ? q.split(" ") : [];
2455
+ return _.push(...ee), _;
2456
+ }, []) : [], m = t == null ? void 0 : t.schema, B = m && m.appearance && m.appearance.class || "", M = B ? B.split(" ") : [];
2457
+ b = {
2458
+ componentClass: f,
2459
+ componentClassList: S,
2460
+ childContents: k,
2461
+ firstChildContent: p,
2462
+ firstChildClass: s,
2672
2463
  firstChildClassList: o,
2673
- parent: y,
2674
- parentClass: I,
2675
- parentClassList: x,
2676
- children: j,
2464
+ parent: m,
2465
+ parentClass: B,
2466
+ parentClassList: M,
2467
+ children: k,
2677
2468
  childrenClassList: c
2678
2469
  };
2679
- const { canAccept: F, fixed: _, hidePadding: N } = p.getRuleValue(D[0], g);
2680
- return P = F, k = N, !0;
2470
+ const { canAccept: I, fixed: L, hidePadding: $ } = u.getRuleValue(S[0], b);
2471
+ return D = I, E = $, !0;
2681
2472
  }
2682
- function f(v) {
2473
+ function d(y) {
2683
2474
  }
2684
2475
  function i() {
2685
2476
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2686
2477
  }
2687
- function C(v, m) {
2688
- return m.text = v.label, m;
2478
+ function C(y, f) {
2479
+ return f.text = y.label, f;
2689
2480
  }
2690
- function w(v, m, D) {
2691
- const j = n;
2692
- if ((j.appearance && j.appearance.class || "").split(" ").includes("f-form-layout")) {
2693
- const o = String(v.innerText), c = z("form-group");
2694
- return c.editor = D, c.label = o, c;
2481
+ function w(y, f, S) {
2482
+ const k = n;
2483
+ if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
2484
+ const o = String(y.innerText), c = U("form-group");
2485
+ return c.editor = S, c.label = o, c;
2695
2486
  }
2696
- return D;
2487
+ return S;
2697
2488
  }
2698
- function M() {
2489
+ function j() {
2699
2490
  return !1;
2700
2491
  }
2701
2492
  function R() {
2702
2493
  return !1;
2703
2494
  }
2704
- function S() {
2495
+ function P() {
2705
2496
  return !0;
2706
2497
  }
2707
2498
  function A() {
2708
- return k;
2499
+ return E;
2709
2500
  }
2710
- function L(v) {
2711
- return new Ht(v, e).getPropertyConfig(n);
2501
+ function N(y) {
2502
+ return new qt(y, e).getPropertyConfig(n);
2712
2503
  }
2713
2504
  return {
2714
2505
  canAccepts: l,
2715
- checkCanAddComponent: S,
2506
+ checkCanAddComponent: P,
2716
2507
  checkCanDeleteComponent: R,
2717
- checkCanMoveComponent: M,
2508
+ checkCanMoveComponent: j,
2718
2509
  getStyles: i,
2719
2510
  hideNestedPaddingInDesginerView: A,
2720
2511
  onAcceptNewChildElement: w,
2721
- onAcceptMovedChildElement: f,
2512
+ onAcceptMovedChildElement: d,
2722
2513
  onResolveNewComponentSchema: C,
2723
2514
  resolveComponentContext: a,
2724
- getPropsConfig: L,
2725
- triggerBelongedComponentToMoveWhenMoved: u,
2726
- triggerBelongedComponentToDeleteWhenDeleted: h
2515
+ getPropsConfig: N,
2516
+ triggerBelongedComponentToMoveWhenMoved: g,
2517
+ triggerBelongedComponentToDeleteWhenDeleted: v
2727
2518
  };
2728
2519
  }
2729
- const Gt = {
2520
+ const zt = {
2730
2521
  id: { type: String, default: "" },
2731
2522
  componentId: { type: String, default: "" },
2732
2523
  canAdd: { type: Boolean, default: !1 },
@@ -2739,12 +2530,12 @@ const Gt = {
2739
2530
  * 组件值
2740
2531
  */
2741
2532
  modelValue: { type: Object }
2742
- }, Z = B(0);
2743
- function Qt(n, e) {
2744
- const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), p = s.top >= t.top, u = s.top <= t.bottom;
2745
- return p && u;
2533
+ }, X = x(0);
2534
+ function Gt(n, e) {
2535
+ const t = e.getBoundingClientRect(), r = n.getBoundingClientRect(), u = r.top >= t.top, g = r.top <= t.bottom;
2536
+ return u && g;
2746
2537
  }
2747
- function Xt(n) {
2538
+ function Jt(n) {
2748
2539
  if (!n)
2749
2540
  return;
2750
2541
  let e;
@@ -2753,51 +2544,51 @@ function Xt(n) {
2753
2544
  const t = e.getBoundingClientRect();
2754
2545
  if (t.width === 0 && t.height === 0)
2755
2546
  return;
2756
- const s = e.querySelector(".component-btn-group");
2757
- if (s) {
2758
- if (!Qt(e, n)) {
2759
- s.style.display = "none";
2547
+ const r = e.querySelector(".component-btn-group");
2548
+ if (r) {
2549
+ if (!Gt(e, n)) {
2550
+ r.style.display = "none";
2760
2551
  return;
2761
2552
  }
2762
- s.style.display = "";
2763
- const u = s.getBoundingClientRect(), h = s.querySelector("div");
2764
- if (h) {
2765
- const P = h.getBoundingClientRect();
2766
- h.style.top = u.top + "px", h.style.left = u.left - P.width + "px";
2553
+ r.style.display = "";
2554
+ const g = r.getBoundingClientRect(), v = r.querySelector("div");
2555
+ if (v) {
2556
+ const D = v.getBoundingClientRect();
2557
+ v.style.top = g.top + "px", v.style.left = g.left - D.width + "px";
2767
2558
  }
2768
2559
  }
2769
2560
  }
2770
- function Yt(n, e, t) {
2771
- var L;
2772
- function s() {
2561
+ function Qt(n, e, t) {
2562
+ var N;
2563
+ function r() {
2773
2564
  }
2774
- const p = "", u = B();
2775
- function h() {
2565
+ const u = "", g = x();
2566
+ function v() {
2776
2567
  return !0;
2777
2568
  }
2778
- function P() {
2569
+ function D() {
2779
2570
  return !1;
2780
2571
  }
2781
- function k() {
2572
+ function E() {
2782
2573
  return !0;
2783
2574
  }
2784
- function g() {
2575
+ function b() {
2785
2576
  return !0;
2786
2577
  }
2787
2578
  function T() {
2788
2579
  return !0;
2789
2580
  }
2790
- function l(v) {
2791
- if (!v || !v.value)
2581
+ function l(y) {
2582
+ if (!y || !y.value)
2792
2583
  return null;
2793
- const m = B(v == null ? void 0 : v.value.parent), D = l(m);
2794
- return D || null;
2584
+ const f = x(y == null ? void 0 : y.value.parent), S = l(f);
2585
+ return S || null;
2795
2586
  }
2796
- function a(v = e) {
2797
- const { componentInstance: m, designerItemElementRef: D } = v;
2798
- return !m || !m.value ? null : m.value.canMove || m.value.canAdd || m.value.canDelete ? D : a(v.parent);
2587
+ function a(y = e) {
2588
+ const { componentInstance: f, designerItemElementRef: S } = y;
2589
+ return !f || !f.value ? null : f.value.canMove || f.value.canAdd || f.value.canDelete ? S : a(y.parent);
2799
2590
  }
2800
- function f(v) {
2591
+ function d(y) {
2801
2592
  return !!t;
2802
2593
  }
2803
2594
  function i() {
@@ -2805,38 +2596,38 @@ function Yt(n, e, t) {
2805
2596
  }
2806
2597
  function C() {
2807
2598
  }
2808
- function w(v, m) {
2599
+ function w(y, f) {
2809
2600
  }
2810
- function M(v) {
2811
- const { componentType: m } = v;
2812
- let D = z(m, v);
2813
- const j = m.toLowerCase().replace("-", "_");
2814
- return D && !D.id && D.type === m && (D.id = `${j}_${Math.random().toString().slice(2, 6)}`), D;
2601
+ function j(y) {
2602
+ const { componentType: f } = y;
2603
+ let S = U(f, y);
2604
+ const k = f.toLowerCase().replace("-", "_");
2605
+ return S && !S.id && S.type === f && (S.id = `${k}_${Math.random().toString().slice(2, 6)}`), S;
2815
2606
  }
2816
- function R(v, m) {
2817
- const D = String(v.getAttribute("data-controltype")), j = v.getAttribute("data-feature"), d = j ? JSON.parse(j) : {};
2818
- d.parentComponentInstance = u.value;
2819
- let r = z(D, d);
2820
- const o = D.toLowerCase().replace("-", "_");
2821
- return r && !r.id && r.type === D && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
2607
+ function R(y, f) {
2608
+ const S = String(y.getAttribute("data-controltype")), k = y.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
2609
+ p.parentComponentInstance = g.value;
2610
+ let s = U(S, p);
2611
+ const o = S.toLowerCase().replace("-", "_");
2612
+ return s && !s.id && s.type === S && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
2822
2613
  }
2823
- function S(v) {
2614
+ function P(y) {
2824
2615
  }
2825
- function A(...v) {
2616
+ function A(...y) {
2826
2617
  return [];
2827
2618
  }
2828
- return u.value = {
2829
- canMove: h(),
2830
- canSelectParent: P(),
2831
- canAdd: g(),
2832
- canDelete: k(),
2619
+ return g.value = {
2620
+ canMove: v(),
2621
+ canSelectParent: D(),
2622
+ canAdd: b(),
2623
+ canDelete: E(),
2833
2624
  canNested: !T(),
2834
2625
  contents: [],
2835
2626
  elementRef: n,
2836
- parent: (L = e.parent) == null ? void 0 : L.componentInstance,
2627
+ parent: (N = e.parent) == null ? void 0 : N.componentInstance,
2837
2628
  schema: e.schema,
2838
- styles: p,
2839
- canAccepts: f,
2629
+ styles: u,
2630
+ canAccepts: d,
2840
2631
  getBelongedComponentInstance: l,
2841
2632
  getDraggableDesignItemElement: a,
2842
2633
  getDraggingDisplayText: i,
@@ -2844,149 +2635,149 @@ function Yt(n, e, t) {
2844
2635
  getDragScopeElement: C,
2845
2636
  onAcceptMovedChildElement: w,
2846
2637
  onAcceptNewChildElement: R,
2847
- onChildElementMovedOut: S,
2848
- addNewChildComponentSchema: M,
2849
- updateDragAndDropRules: s,
2850
- triggerBelongedComponentToMoveWhenMoved: B(!1),
2851
- triggerBelongedComponentToDeleteWhenDeleted: B(!1)
2852
- }, u;
2638
+ onChildElementMovedOut: P,
2639
+ addNewChildComponentSchema: j,
2640
+ updateDragAndDropRules: r,
2641
+ triggerBelongedComponentToMoveWhenMoved: x(!1),
2642
+ triggerBelongedComponentToDeleteWhenDeleted: x(!1)
2643
+ }, g;
2853
2644
  }
2854
- const Be = /* @__PURE__ */ G({
2645
+ const xe = /* @__PURE__ */ z({
2855
2646
  name: "FDesignerInnerItem",
2856
- props: Gt,
2647
+ props: zt,
2857
2648
  emits: ["selectionChange", "addComponent", "removeComponent"],
2858
2649
  setup(n, e) {
2859
- const t = B(n.canMove), s = B(n.canAdd), p = B(n.canDelete), u = B(!1), h = B(n.contentKey), P = B(n.childType), k = B(n.childLabel), g = B(n.modelValue), T = B(""), l = B(), a = U("canvas-dragula"), f = B(), i = U("design-item-context"), C = {
2650
+ const t = x(n.canMove), r = x(n.canAdd), u = x(n.canDelete), g = x(!1), v = x(n.contentKey), D = x(n.childType), E = x(n.childLabel), b = x(n.modelValue), T = x(""), l = x(), a = V("canvas-dragula"), d = x(), i = V("design-item-context"), C = {
2860
2651
  designerItemElementRef: l,
2861
- componentInstance: f,
2862
- schema: g.value,
2652
+ componentInstance: d,
2653
+ schema: b.value,
2863
2654
  parent: i,
2864
2655
  setupContext: e
2865
2656
  };
2866
- Le("design-item-context", C);
2867
- const w = V(() => ({
2657
+ Ne("design-item-context", C);
2658
+ const w = F(() => ({
2868
2659
  "farris-component": !0,
2869
2660
  // 受position-relative影响,整个容器的高度不能被撑起
2870
2661
  "flex-fill": n.id == "root-component",
2871
- "position-relative": t.value || p.value,
2872
- "farris-nested": u.value,
2662
+ "position-relative": t.value || u.value,
2663
+ "farris-nested": g.value,
2873
2664
  "can-move": t.value,
2874
2665
  "d-none": l.value && l.value.classList.contains("d-none")
2875
- })), M = V(() => {
2666
+ })), j = F(() => {
2876
2667
  const o = {};
2877
- return T.value && T.value.split(";").reduce((c, y) => {
2878
- const [I, x] = y.split(":");
2879
- return I && (c[I] = x), c;
2668
+ return T.value && T.value.split(";").reduce((c, m) => {
2669
+ const [B, M] = m.split(":");
2670
+ return B && (c[B] = M), c;
2880
2671
  }, o), o;
2881
2672
  });
2882
2673
  function R(o, c) {
2883
- if (i && i.schema[h.value]) {
2884
- const y = i.schema[h.value].findIndex((I) => I.id === c.id);
2885
- if (y > -1) {
2886
- const I = i.schema[h.value].length, x = i.schema[h.value][y % I];
2887
- i.designerItemElementRef.value.querySelector(`#${x.id}-design-item`), i.schema[h.value].splice(y, 1), i.componentInstance.value.updateDragAndDropRules(), Z.value++, e.emit("removeComponent");
2674
+ if (i && i.schema[v.value]) {
2675
+ const m = i.schema[v.value].findIndex((B) => B.id === c.id);
2676
+ if (m > -1) {
2677
+ const B = i.schema[v.value].length, M = i.schema[v.value][m % B];
2678
+ i.designerItemElementRef.value.querySelector(`#${M.id}-design-item`), i.schema[v.value].splice(m, 1), i.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
2888
2679
  }
2889
2680
  }
2890
2681
  }
2891
- function S(o) {
2892
- if (f.value.addNewChildComponentSchema) {
2682
+ function P(o) {
2683
+ if (d.value.addNewChildComponentSchema) {
2893
2684
  const c = {
2894
- componentType: P.value,
2895
- label: k.value,
2896
- parentComponentInstance: f.value,
2685
+ componentType: D.value,
2686
+ label: E.value,
2687
+ parentComponentInstance: d.value,
2897
2688
  targetPosition: -1
2898
- }, y = f.value.addNewChildComponentSchema(c);
2899
- g.value[h.value].push(y), e.emit("addComponent");
2689
+ }, m = d.value.addNewChildComponentSchema(c);
2690
+ b.value[v.value].push(m), e.emit("addComponent");
2900
2691
  }
2901
2692
  }
2902
2693
  function A() {
2903
- return s.value && b("div", {
2694
+ return r.value && h("div", {
2904
2695
  role: "button",
2905
2696
  class: "btn component-settings-button",
2906
2697
  title: "新增",
2907
2698
  ref: "removeComponent",
2908
2699
  onClick: (o) => {
2909
- S();
2700
+ P();
2910
2701
  }
2911
- }, [b("i", {
2702
+ }, [h("i", {
2912
2703
  class: "f-icon f-icon-plus-circle"
2913
2704
  }, null)]);
2914
2705
  }
2915
- function L(o) {
2916
- return p.value && b("div", {
2706
+ function N(o) {
2707
+ return u.value && h("div", {
2917
2708
  role: "button",
2918
2709
  class: "btn component-settings-button",
2919
2710
  title: "删除",
2920
2711
  ref: "removeComponent",
2921
- onClick: $e((c) => R(c, o), ["stop"])
2922
- }, [b("i", {
2712
+ onClick: _e((c) => R(c, o), ["stop"])
2713
+ }, [h("i", {
2923
2714
  class: "f-icon f-icon-yxs_delete"
2924
2715
  }, null)]);
2925
2716
  }
2926
- function v() {
2927
- return t.value && b("div", {
2717
+ function y() {
2718
+ return t.value && h("div", {
2928
2719
  role: "button",
2929
2720
  class: "btn component-settings-button",
2930
2721
  title: "移动",
2931
2722
  ref: "moveComponent"
2932
- }, [b("i", {
2723
+ }, [h("i", {
2933
2724
  "data-dragging-icon": "true",
2934
2725
  class: "cmp_move f-icon f-icon-yxs_move"
2935
2726
  }, null)]);
2936
2727
  }
2937
- function m(o) {
2938
- return b("div", {
2728
+ function f(o) {
2729
+ return h("div", {
2939
2730
  class: "component-btn-group",
2940
2731
  "data-noattach": "true"
2941
- }, [b("div", null, [A(), v(), L(o)])]);
2732
+ }, [h("div", null, [A(), y(), N(o)])]);
2942
2733
  }
2943
- Q(() => n.modelValue, (o) => {
2944
- g.value = o, C.schema = o;
2734
+ G(() => n.modelValue, (o) => {
2735
+ b.value = o, C.schema = o;
2945
2736
  });
2946
- function D(o) {
2737
+ function S(o) {
2947
2738
  const c = o.target;
2948
- Xt(c);
2739
+ Jt(c);
2949
2740
  }
2950
- function j() {
2741
+ function k() {
2951
2742
  var o, c;
2952
- (c = (o = g.value) == null ? void 0 : o.contents) != null && c.length && l.value && l.value.addEventListener("scroll", D);
2743
+ (c = (o = b.value) == null ? void 0 : o.contents) != null && c.length && l.value && l.value.addEventListener("scroll", S);
2953
2744
  }
2954
- function d() {
2955
- const o = l.value, c = B(o.children[1]);
2956
- return Yt(c, C).value;
2745
+ function p() {
2746
+ const o = l.value, c = x(o.children[1]);
2747
+ return Qt(c, C).value;
2957
2748
  }
2958
- q(() => {
2749
+ H(() => {
2959
2750
  if (l.value) {
2960
- const o = l.value.querySelector(`[data-dragref='${g.value.id}-container']`);
2961
- f.value = o && o.componentInstance ? o.componentInstance.value : d(), a && o && a.attachComponents(o, g.value), u.value = f.value.canNested !== void 0 ? f.value.canNested : u.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, p.value = f.value.canDelete !== void 0 ? f.value.canDelete : p.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, T.value = f.value.styles || "", l.value && (l.value.componentInstance = f, l.value.designItemContext = C);
2751
+ const o = l.value.querySelector(`[data-dragref='${b.value.id}-container']`);
2752
+ d.value = o && o.componentInstance ? o.componentInstance.value : p(), a && o && a.attachComponents(o, b.value), g.value = d.value.canNested !== void 0 ? d.value.canNested : g.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);
2962
2753
  }
2963
- j(), Z.value++;
2964
- }), Ne(() => {
2965
- l.value && l.value.removeEventListener("scroll", D);
2754
+ k(), X.value++;
2755
+ }), $e(() => {
2756
+ l.value && l.value.removeEventListener("scroll", S);
2966
2757
  });
2967
- function r(o) {
2968
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((y) => y.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2758
+ function s(o) {
2759
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((m) => m.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2969
2760
  const c = l.value;
2970
2761
  if (c) {
2971
- const y = document.getElementsByClassName("dgComponentSelected");
2972
- if (!(y && y.length === 1 && y[0] === l.value)) {
2973
- Array.from(y).forEach((F) => F.classList.remove("dgComponentSelected")), c.classList.add("dgComponentFocused"), e.emit("selectionChange", g.value.type, g.value, n.componentId, f.value);
2974
- const x = f.value.getDraggableDesignItemElement(C);
2975
- x && x.value && x.value.classList.add("dgComponentSelected");
2762
+ const m = document.getElementsByClassName("dgComponentSelected");
2763
+ if (!(m && m.length === 1 && m[0] === l.value)) {
2764
+ Array.from(m).forEach((I) => I.classList.remove("dgComponentSelected")), c.classList.add("dgComponentFocused"), e.emit("selectionChange", b.value.type, b.value, n.componentId, d.value);
2765
+ const M = d.value.getDraggableDesignItemElement(C);
2766
+ M && M.value && M.value.classList.add("dgComponentSelected");
2976
2767
  }
2977
2768
  }
2978
- Z.value++;
2769
+ X.value++;
2979
2770
  }
2980
- return () => b("div", {
2771
+ return () => h("div", {
2981
2772
  id: `${n.id}-design-item`,
2982
2773
  ref: l,
2983
2774
  class: w.value,
2984
- style: M.value,
2985
- onClick: r
2986
- }, [m(g.value), e.slots.default && e.slots.default()]);
2775
+ style: j.value,
2776
+ onClick: s
2777
+ }, [f(b.value), e.slots.default && e.slots.default()]);
2987
2778
  }
2988
2779
  });
2989
- class Zt extends J {
2780
+ class Xt extends K {
2990
2781
  constructor(e, t) {
2991
2782
  super(e, t);
2992
2783
  }
@@ -3037,7 +2828,7 @@ class Zt extends J {
3037
2828
  title: "style样式"
3038
2829
  }
3039
2830
  },
3040
- setPropertyRelates(t, s) {
2831
+ setPropertyRelates(t, r) {
3041
2832
  }
3042
2833
  };
3043
2834
  }
@@ -3048,29 +2839,29 @@ class Zt extends J {
3048
2839
  name: "点击事件"
3049
2840
  }
3050
2841
  ];
3051
- var s = this;
3052
- const p = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
3053
- u[s.viewModelId] = {
2842
+ var r = this;
2843
+ const u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), g = {};
2844
+ g[r.viewModelId] = {
3054
2845
  type: "events-editor",
3055
2846
  editor: {
3056
- initialData: p
2847
+ initialData: u
3057
2848
  }
3058
2849
  }, this.propertyConfig.categories.eventsEditor = {
3059
2850
  title: "事件",
3060
2851
  hideTitle: !0,
3061
- properties: u,
2852
+ properties: g,
3062
2853
  // 这个属性,标记当属性变更得时候触发重新更新属性
3063
2854
  refreshPanelAfterChanged: !0,
3064
2855
  tabId: "commands",
3065
2856
  tabName: "交互",
3066
- setPropertyRelates(h, P) {
3067
- const k = h.propertyValue;
3068
- delete e[s.viewModelId], k && (k.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, k.events, k));
2857
+ setPropertyRelates(v, D) {
2858
+ const E = v.propertyValue;
2859
+ delete e[r.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, E.events, E));
3069
2860
  }
3070
2861
  };
3071
2862
  }
3072
2863
  }
3073
- class Kt extends J {
2864
+ class Yt extends K {
3074
2865
  constructor(e, t) {
3075
2866
  super(e, t);
3076
2867
  }
@@ -3096,7 +2887,7 @@ class Kt extends J {
3096
2887
  type: "combo-list",
3097
2888
  textField: "value",
3098
2889
  valueField: "key",
3099
- data: [{ key: "response-toolbar-item", value: E["response-toolbar-item"].name }]
2890
+ data: [{ key: "response-toolbar-item", value: Z["response-toolbar-item"].name }]
3100
2891
  }
3101
2892
  },
3102
2893
  text: {
@@ -3121,47 +2912,47 @@ class Kt extends J {
3121
2912
  label: "click",
3122
2913
  name: "点击事件"
3123
2914
  }
3124
- ], s = this, p = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
3125
- u[s.viewModelId] = {
2915
+ ], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), g = {};
2916
+ g[r.viewModelId] = {
3126
2917
  type: "events-editor",
3127
2918
  editor: {
3128
- initialData: p
2919
+ initialData: u
3129
2920
  }
3130
2921
  }, this.propertyConfig.categories.eventsEditor = {
3131
2922
  title: "事件",
3132
2923
  hideTitle: !0,
3133
- properties: u,
2924
+ properties: g,
3134
2925
  // 这个属性,标记当属性变更得时候触发重新更新属性
3135
2926
  refreshPanelAfterChanged: !0,
3136
2927
  tabId: "commands",
3137
2928
  tabName: "交互",
3138
- setPropertyRelates(h, P) {
3139
- const k = h.propertyValue;
3140
- delete e[s.viewModelId], k && (k.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, k.events, k));
2929
+ setPropertyRelates(v, D) {
2930
+ const E = v.propertyValue;
2931
+ delete e[r.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, E.events, E));
3141
2932
  }
3142
2933
  };
3143
2934
  }
3144
2935
  }
3145
- function Jt(n, e) {
3146
- Ee();
3147
- const t = B(!1), s = B(!1);
3148
- let p = !1, u = !1;
3149
- function h(w) {
2936
+ function Zt(n, e) {
2937
+ Me();
2938
+ const t = x(!1), r = x(!1);
2939
+ let u = !1, g = !1;
2940
+ function v(w) {
3150
2941
  return !1;
3151
2942
  }
3152
- function P(w) {
2943
+ function D(w) {
3153
2944
  }
3154
- function k() {
2945
+ function E() {
3155
2946
  return "";
3156
2947
  }
3157
- function g(w, M) {
3158
- return M.text = w.label, M;
2948
+ function b(w, j) {
2949
+ return j.text = w.label, j;
3159
2950
  }
3160
- function T(w, M, R) {
3161
- const S = n.schema;
3162
- if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
3163
- const v = String(w.innerText), m = z("form-group");
3164
- return m.editor = R, m.label = v, m;
2951
+ function T(w, j, R) {
2952
+ const P = n.schema;
2953
+ if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
2954
+ const y = String(w.innerText), f = U("form-group");
2955
+ return f.editor = R, f.label = y, f;
3165
2956
  }
3166
2957
  return R;
3167
2958
  }
@@ -3169,71 +2960,71 @@ function Jt(n, e) {
3169
2960
  return !1;
3170
2961
  }
3171
2962
  function a() {
3172
- return !u;
2963
+ return !g;
3173
2964
  }
3174
- function f() {
2965
+ function d() {
3175
2966
  return !1;
3176
2967
  }
3177
2968
  function i() {
3178
- return p;
2969
+ return u;
3179
2970
  }
3180
2971
  function C(w) {
3181
- let M;
2972
+ let j;
3182
2973
  switch (n.schema.type) {
3183
2974
  case "tab-toolbar-item":
3184
- M = new Zt(w, e);
2975
+ j = new Xt(w, e);
3185
2976
  break;
3186
2977
  default:
3187
- M = new Kt(w, e);
2978
+ j = new Yt(w, e);
3188
2979
  }
3189
- return M.getPropertyConfig(n.schema);
2980
+ return j.getPropertyConfig(n.schema);
3190
2981
  }
3191
2982
  return {
3192
- canAccepts: h,
3193
- checkCanAddComponent: f,
2983
+ canAccepts: v,
2984
+ checkCanAddComponent: d,
3194
2985
  checkCanDeleteComponent: a,
3195
2986
  checkCanMoveComponent: l,
3196
- getStyles: k,
2987
+ getStyles: E,
3197
2988
  hideNestedPaddingInDesginerView: i,
3198
2989
  onAcceptNewChildElement: T,
3199
- onAcceptMovedChildElement: P,
3200
- onResolveNewComponentSchema: g,
2990
+ onAcceptMovedChildElement: D,
2991
+ onResolveNewComponentSchema: b,
3201
2992
  getPropsConfig: C,
3202
2993
  triggerBelongedComponentToMoveWhenMoved: t,
3203
- triggerBelongedComponentToDeleteWhenDeleted: s
2994
+ triggerBelongedComponentToDeleteWhenDeleted: r
3204
2995
  };
3205
2996
  }
3206
- const je = /* @__PURE__ */ G({
2997
+ const ke = /* @__PURE__ */ z({
3207
2998
  name: "FResponseToolbarItemDesign",
3208
- props: Me,
2999
+ props: je,
3209
3000
  emits: ["Click"],
3210
3001
  setup(n, e) {
3211
- B(), B();
3212
- const t = B(n.alignment), s = {
3002
+ x(), x();
3003
+ const t = x(n.alignment), r = {
3213
3004
  id: "__more_buttons__",
3214
3005
  text: "More"
3215
- }, p = B(new X(s));
3216
- V(() => p.value.children.length > 0);
3217
- const u = B(), h = U("designer-host-service"), P = U("design-item-context"), k = Jt(P, h), g = ve(u, P, k);
3218
- U("toolbar-item-handler", () => {
3219
- }), q(() => {
3220
- u.value.componentInstance = g;
3221
- }), e.expose(g.value);
3006
+ }, u = x(new J(r));
3007
+ F(() => u.value.children.length > 0);
3008
+ const g = x(), v = V("designer-host-service"), D = V("design-item-context"), E = Zt(D, v), b = ve(g, D, E);
3009
+ V("toolbar-item-handler", () => {
3010
+ }), H(() => {
3011
+ g.value.componentInstance = b;
3012
+ }), e.expose(b.value);
3222
3013
  function T() {
3223
- const f = {
3014
+ const d = {
3224
3015
  "f-icon": !0
3225
3016
  };
3226
3017
  if (n.icon) {
3227
3018
  const i = n.icon.trim().split(" ");
3228
- i && i.length && i.reduce((C, w) => (C[w] = !0, C), f);
3019
+ i && i.length && i.reduce((C, w) => (C[w] = !0, C), d);
3229
3020
  }
3230
- return f;
3021
+ return d;
3231
3022
  }
3232
3023
  function l() {
3233
3024
  return !!(n.icon && n.icon.trim());
3234
3025
  }
3235
3026
  function a() {
3236
- const f = {
3027
+ const d = {
3237
3028
  btn: !0,
3238
3029
  "f-rt-btn": !0,
3239
3030
  "f-btn-ml": t.value === "right",
@@ -3242,159 +3033,159 @@ const je = /* @__PURE__ */ G({
3242
3033
  };
3243
3034
  if (n.class) {
3244
3035
  const i = n.class.split(" ");
3245
- i && i.length && i.reduce((C, w) => (C[w] = !0, C), f);
3036
+ i && i.length && i.reduce((C, w) => (C[w] = !0, C), d);
3246
3037
  }
3247
- return f;
3038
+ return d;
3248
3039
  }
3249
- return q(() => {
3250
- }), se(() => {
3251
- }), () => b("div", {
3252
- ref: u,
3253
- "data-dragref": `${P.schema.id}-container`,
3040
+ return H(() => {
3041
+ }), re(() => {
3042
+ }), () => h("div", {
3043
+ ref: g,
3044
+ "data-dragref": `${D.schema.id}-container`,
3254
3045
  class: "farris-component position-relative",
3255
3046
  style: "display:inline-block!important;"
3256
- }, [b("button", {
3047
+ }, [h("button", {
3257
3048
  type: "button",
3258
3049
  class: a(),
3259
3050
  id: n.id
3260
- }, [l() && b("i", {
3051
+ }, [l() && h("i", {
3261
3052
  class: T()
3262
3053
  }, null), n.text])]);
3263
3054
  }
3264
- }), Ae = /* @__PURE__ */ G({
3055
+ }), Ae = /* @__PURE__ */ z({
3265
3056
  name: "FResponseToolbarDesign",
3266
- props: Bt,
3057
+ props: xt,
3267
3058
  emits: ["Click"],
3268
3059
  setup(n, e) {
3269
- const t = B(n.items);
3270
- let s = new Array(t.value.length).fill(B());
3271
- const p = B(), u = B(), h = B(n.alignment), P = {
3060
+ const t = x(n.items);
3061
+ let r = new Array(t.value.length).fill(x());
3062
+ const u = x(), g = x(), v = x(n.alignment), D = {
3272
3063
  id: "__more_buttons__",
3273
3064
  text: "More"
3274
- }, k = B(new X(P)), g = xe();
3275
- V(() => k.value.children.length > 0);
3276
- const T = B(), l = U("designer-host-service"), a = U("design-item-context"), f = qt(a.schema, l, a), i = ve(T, a, f);
3277
- U("toolbar-item-handler", () => {
3278
- }), q(() => {
3065
+ }, E = x(new J(D)), b = Ee();
3066
+ F(() => E.value.children.length > 0);
3067
+ const T = x(), l = V("designer-host-service"), a = V("design-item-context"), d = Ht(a.schema, l, a), i = ve(T, a, d);
3068
+ V("toolbar-item-handler", () => {
3069
+ }), H(() => {
3279
3070
  T.value.componentInstance = i;
3280
3071
  }), e.expose(i.value);
3281
- const C = V(() => ({
3072
+ const C = F(() => ({
3282
3073
  "f-toolbar": !0,
3283
3074
  "f-response-toolbar": !0,
3284
3075
  "position-relative": !0
3285
- })), w = V(() => ({
3076
+ })), w = F(() => ({
3286
3077
  "d-flex": !0,
3287
3078
  "flex-nowrap": !0,
3288
- "justify-content-end": h.value === "right",
3289
- "justify-content-start": h.value === "left"
3079
+ "justify-content-end": v.value === "right",
3080
+ "justify-content-start": v.value === "left"
3290
3081
  })), {
3291
- renderToolbarDropdown: M,
3082
+ renderToolbarDropdown: j,
3292
3083
  clearAllDropDown: R
3293
- } = Rt(n, g, i);
3294
- function S() {
3295
- t.value.filter((d) => d.children && d.children.length > 0).forEach((d) => {
3296
- d.expanded = !1;
3297
- }), k.value.expanded = !1, R();
3084
+ } = Rt(n, b, i);
3085
+ function P() {
3086
+ t.value.filter((p) => p.children && p.children.length > 0).forEach((p) => {
3087
+ p.expanded = !1;
3088
+ }), E.value.expanded = !1, R();
3298
3089
  }
3299
- const A = /* @__PURE__ */ new Map(), L = [];
3300
- function v(d) {
3301
- const r = u.value;
3302
- let o = d;
3303
- const c = Array.from(r.children), y = c[c.length - 1].id === "__more_buttons__" ? c[c.length - 1] : null;
3304
- if (y) {
3305
- const N = y.computedStyleMap().get("margin-left"), $ = y.computedStyleMap().get("margin-right"), W = (N ? N.value : 0) + y.getBoundingClientRect().width + ($ ? $.value : 0);
3090
+ const A = /* @__PURE__ */ new Map(), N = [];
3091
+ function y(p) {
3092
+ const s = g.value;
3093
+ let o = p;
3094
+ const c = Array.from(s.children), m = c[c.length - 1].id === "__more_buttons__" ? c[c.length - 1] : null;
3095
+ if (m) {
3096
+ const $ = m.computedStyleMap().get("margin-left"), _ = m.computedStyleMap().get("margin-right"), W = ($ ? $.value : 0) + m.getBoundingClientRect().width + (_ ? _.value : 0);
3306
3097
  o -= W;
3307
3098
  }
3308
- const I = c.filter((N) => N.id !== "__more_buttons__");
3309
- for (const N of I) {
3310
- const $ = N.computedStyleMap().get("margin-left"), W = N.computedStyleMap().get("margin-right"), H = ($ ? $.value : 0) + N.getBoundingClientRect().width + (W ? W.value : 0);
3311
- o < H ? (A.set(N.id, !0), L.push({
3312
- id: N.id,
3313
- width: H
3314
- })) : o -= H;
3099
+ const B = c.filter(($) => $.id !== "__more_buttons__");
3100
+ for (const $ of B) {
3101
+ const _ = $.computedStyleMap().get("margin-left"), W = $.computedStyleMap().get("margin-right"), q = (_ ? _.value : 0) + $.getBoundingClientRect().width + (W ? W.value : 0);
3102
+ o < q ? (A.set($.id, !0), N.push({
3103
+ id: $.id,
3104
+ width: q
3105
+ })) : o -= q;
3315
3106
  }
3316
- if (L.length)
3317
- for (let N = L.length - 1; N >= 0; N--) {
3318
- const $ = L[N].width;
3319
- if (o >= $)
3320
- o -= $, A.delete(L[N].id), L.pop();
3107
+ if (N.length)
3108
+ for (let $ = N.length - 1; $ >= 0; $--) {
3109
+ const _ = N[$].width;
3110
+ if (o >= _)
3111
+ o -= _, A.delete(N[$].id), N.pop();
3321
3112
  else
3322
3113
  break;
3323
3114
  }
3324
- const x = Object.assign({}, k.value);
3325
- x.children = [];
3326
- const F = new X(x), _ = t.value.reduce((N, $) => (A.has($.id) && F.children.push($), $.visible = !A.has($.id), N.push($), N), []);
3327
- k.value = F, t.value = _;
3115
+ const M = Object.assign({}, E.value);
3116
+ M.children = [];
3117
+ const I = new J(M), L = t.value.reduce(($, _) => (A.has(_.id) && I.children.push(_), _.visible = !A.has(_.id), $.push(_), $), []);
3118
+ E.value = I, t.value = L;
3328
3119
  }
3329
- const m = new ResizeObserver((d) => {
3330
- if (d.length) {
3331
- const o = d[0].contentRect.width, y = u.value.getBoundingClientRect().width;
3332
- (o < y || L.length) && v(o);
3120
+ const f = new ResizeObserver((p) => {
3121
+ if (p.length) {
3122
+ const o = p[0].contentRect.width, m = g.value.getBoundingClientRect().width;
3123
+ (o < m || N.length) && y(o);
3333
3124
  }
3334
3125
  });
3335
- q(() => {
3336
- const d = p.value;
3337
- m.observe(d), document.body.addEventListener("click", S);
3338
- }), se(() => {
3339
- m.disconnect(), document.body.removeEventListener("click", S);
3340
- }), Q(() => n.items, () => {
3126
+ H(() => {
3127
+ const p = u.value;
3128
+ f.observe(p), document.body.addEventListener("click", P);
3129
+ }), re(() => {
3130
+ f.disconnect(), document.body.removeEventListener("click", P);
3131
+ }), G(() => n.items, () => {
3341
3132
  t.value = n.items;
3342
3133
  }, {
3343
3134
  deep: !0
3344
- }), Q(t, (d) => {
3345
- s = new Array(t.value.length).fill(B());
3135
+ }), G(t, (p) => {
3136
+ r = new Array(t.value.length).fill(x());
3346
3137
  });
3347
- function D(d, r, o, c) {
3348
- a && a.setupContext && a.setupContext.emit("selectionChange", d, r, o, c);
3138
+ function S(p, s, o, c) {
3139
+ a && a.setupContext && a.setupContext.emit("selectionChange", p, s, o, c);
3349
3140
  }
3350
- function j() {
3351
- const d = u.value.querySelector(".dgComponentFocused.dgComponentSelected");
3352
- d == null || d.classList.remove("dgComponentSelected"), d == null || d.classList.remove("dgComponentFocused");
3141
+ function k() {
3142
+ const p = g.value.querySelector(".dgComponentFocused.dgComponentSelected");
3143
+ p == null || p.classList.remove("dgComponentSelected"), p == null || p.classList.remove("dgComponentFocused");
3353
3144
  }
3354
- return () => b("div", {
3145
+ return () => h("div", {
3355
3146
  ref: T,
3356
3147
  "data-dragref": `${a.schema.id}-container`,
3357
3148
  class: C.value
3358
- }, [b("div", {
3359
- ref: p,
3360
- class: w.value
3361
- }, [b("div", {
3149
+ }, [h("div", {
3362
3150
  ref: u,
3151
+ class: w.value
3152
+ }, [h("div", {
3153
+ ref: g,
3363
3154
  class: "d-inline-block f-response-content",
3364
3155
  style: "white-space: nowrap;"
3365
- }, [t.value.map((d, r) => b(Be, {
3366
- ref: s[r],
3156
+ }, [t.value.map((p, s) => h(xe, {
3157
+ ref: r[s],
3367
3158
  class: "p-0 display-inline-block",
3368
- modelValue: d,
3369
- "onUpdate:modelValue": (o) => d = o,
3159
+ modelValue: p,
3160
+ "onUpdate:modelValue": (o) => p = o,
3370
3161
  canMove: !0,
3371
3162
  childType: "response-toolbar-item",
3372
3163
  childLabel: "按钮",
3373
3164
  contentKey: "buttons",
3374
3165
  componentId: n.componentId,
3375
- id: d.id,
3166
+ id: p.id,
3376
3167
  style: "padding:0 !important;display:inline-block",
3377
- onSelectionChange: D,
3378
- onRemoveComponent: j
3168
+ onSelectionChange: S,
3169
+ onRemoveComponent: k
3379
3170
  }, {
3380
- default: () => [b(je, {
3381
- id: d.id,
3382
- disable: d.disable,
3383
- text: d.text,
3384
- icon: d.icon,
3171
+ default: () => [h(ke, {
3172
+ id: p.id,
3173
+ disable: p.disable,
3174
+ text: p.text,
3175
+ icon: p.icon,
3385
3176
  componentId: n.componentId
3386
3177
  }, null)]
3387
3178
  }))])])]);
3388
3179
  }
3389
- }), ye = de;
3390
- K.register = (n, e, t) => {
3391
- n["response-toolbar"] = K, e["response-toolbar"] = de;
3180
+ }), he = ue;
3181
+ Y.register = (n, e, t) => {
3182
+ n["response-toolbar"] = Y, e["response-toolbar"] = ue;
3392
3183
  };
3393
- K.registerDesigner = (n, e, t) => {
3394
- n["response-toolbar"] = Ae, e["response-toolbar"] = de, n["response-toolbar-item"] = je, e["response-toolbar-item"] = jt;
3184
+ Y.registerDesigner = (n, e, t) => {
3185
+ n["response-toolbar"] = Ae, e["response-toolbar"] = ue, n["response-toolbar-item"] = ke, e["response-toolbar-item"] = kt;
3395
3186
  };
3396
- Ue(K);
3397
- const en = {
3187
+ Ve(Y);
3188
+ const Kt = {
3398
3189
  id: { type: String, default: "" },
3399
3190
  componentId: { type: String, default: "" },
3400
3191
  type: { type: String, default: "" },
@@ -3409,101 +3200,102 @@ const en = {
3409
3200
  */
3410
3201
  modelValue: { type: Object },
3411
3202
  ignore: { type: Boolean, default: !1 }
3412
- }, he = /* @__PURE__ */ G({
3203
+ }, be = /* @__PURE__ */ z({
3413
3204
  name: "FDesignerTemplateItem",
3414
- props: en,
3205
+ props: Kt,
3415
3206
  emits: ["selectionChange"],
3416
3207
  setup(n, e) {
3417
- const t = B(), s = V(() => ({
3208
+ const t = x(), r = F(() => ({
3418
3209
  "farris-component": !0
3419
3210
  }));
3420
- function p(u) {
3421
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((P) => P.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
3422
- const h = t.value;
3423
- if (h) {
3424
- const P = document.getElementsByClassName("dgComponentSelected");
3425
- P && P.length === 1 && P[0] === t.value || (Array.from(P).forEach((g) => g.classList.remove("dgComponentSelected")), h.classList.add("dgComponentFocused"));
3211
+ function u(g) {
3212
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((D) => D.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
3213
+ const v = t.value;
3214
+ if (v) {
3215
+ const D = document.getElementsByClassName("dgComponentSelected");
3216
+ D && D.length === 1 && D[0] === t.value || (Array.from(D).forEach((b) => b.classList.remove("dgComponentSelected")), v.classList.add("dgComponentFocused"));
3426
3217
  }
3427
- Z.value++;
3218
+ X.value++;
3428
3219
  }
3429
- return () => b("div", {
3220
+ return () => h("div", {
3430
3221
  id: `${n.id}-design-item`,
3431
3222
  ref: t,
3432
- class: s.value,
3433
- onClick: p
3223
+ class: r.value,
3224
+ onClick: u
3434
3225
  }, [e.slots.default && e.slots.default()]);
3435
3226
  }
3436
- }), tn = /* @__PURE__ */ G({
3227
+ }), en = /* @__PURE__ */ z({
3437
3228
  name: "FPageHeaderDesign",
3438
3229
  props: st,
3439
3230
  emits: ["Click"],
3440
3231
  setup(n, e) {
3441
- const t = B(), s = U("designer-host-service"), p = U("design-item-context"), u = ct(p.schema, s), h = it(t, p, u), P = B(p.schema.toolbar || {
3232
+ const t = x(), r = V("designer-host-service"), u = V("design-item-context"), g = at(u.schema, r), v = rt(t, u, g), D = x(u.schema.toolbar || {
3442
3233
  type: "response-toolbar",
3443
3234
  buttons: []
3444
- }), k = B(ye(P.value));
3445
- q(() => {
3446
- t.value.componentInstance = h;
3447
- }), Q(() => p.schema.toolbar, () => {
3448
- P.value = p.schema.toolbar || {
3235
+ }), E = x(he(D.value));
3236
+ H(() => {
3237
+ t.value.componentInstance = v;
3238
+ }), G(() => u.schema.toolbar, () => {
3239
+ D.value = u.schema.toolbar || {
3449
3240
  type: "response-toolbar",
3450
3241
  buttons: []
3451
- }, k.value = ye(P.value);
3242
+ }, E.value = he(D.value);
3452
3243
  }, {
3453
3244
  deep: !0
3454
3245
  });
3455
- const g = V(() => [...k.value.items]);
3456
- function T(l, a, f, i) {
3457
- p && p.setupContext && p.setupContext.emit("selectionChange", l, a, f, i);
3246
+ const b = F(() => [...E.value.items]);
3247
+ function T(l, a, d, i) {
3248
+ u && u.setupContext && u.setupContext.emit("selectionChange", l, a, d, i);
3458
3249
  }
3459
- return e.expose(h.value), () => b("div", {
3250
+ return e.expose(v.value), () => h("div", {
3460
3251
  ref: t
3461
- }, [b("nav", {
3252
+ }, [h("nav", {
3462
3253
  class: "f-page-header-base"
3463
- }, [b("div", {
3254
+ }, [h("div", {
3464
3255
  class: "f-title"
3465
- }, [b(he, null, {
3466
- default: () => [b("span", {
3256
+ }, [h(be, null, {
3257
+ default: () => [h("span", {
3467
3258
  class: "f-title-icon f-text-orna-manage"
3468
- }, [b("i", {
3259
+ }, [h("i", {
3469
3260
  class: n.icon
3470
3261
  }, null)])]
3471
- }), b(he, null, {
3472
- default: () => [b("h4", {
3262
+ }), h(be, null, {
3263
+ default: () => [h("h4", {
3473
3264
  class: "f-title-text"
3474
3265
  }, [n.title])]
3475
- })]), b(Be, {
3476
- class: "col-5",
3477
- modelValue: P.value,
3478
- "onUpdate:modelValue": (l) => P.value = l,
3266
+ })]), h(xe, {
3267
+ class: "col-6 text-right",
3268
+ modelValue: D.value,
3269
+ "onUpdate:modelValue": (l) => D.value = l,
3479
3270
  canAdd: !0,
3480
3271
  childType: "response-toolbar-item",
3481
3272
  childLabel: "按钮",
3482
3273
  contentKey: "buttons",
3483
- id: P.value.id,
3274
+ id: D.value.id,
3484
3275
  componentId: n.componentId,
3485
3276
  onSelectionChange: T
3486
3277
  }, {
3487
- default: () => [b(Ae, {
3488
- items: g.value,
3278
+ default: () => [h(Ae, {
3279
+ customClass: "w-100",
3280
+ items: b.value,
3489
3281
  componentId: n.componentId
3490
3282
  }, null)]
3491
3283
  })])]);
3492
3284
  }
3493
- }), ln = {
3285
+ }), cn = {
3494
3286
  install(n) {
3495
3287
  n.component(ne.name, ne);
3496
3288
  },
3497
- register(n, e, t, s) {
3289
+ register(n, e, t, r) {
3498
3290
  n["page-header"] = ne, e["page-header"] = fe;
3499
3291
  },
3500
3292
  registerDesigner(n, e, t) {
3501
- n["page-header"] = tn, e["page-header"] = fe;
3293
+ n["page-header"] = en, e["page-header"] = fe;
3502
3294
  }
3503
3295
  };
3504
3296
  export {
3505
3297
  ne as PageHeader,
3506
- ln as default,
3298
+ cn as default,
3507
3299
  st as pageHeaderDesignerProps,
3508
3300
  le as pageHeaderProps,
3509
3301
  fe as propsResolver