@farris/ui-vue 1.2.8 → 1.2.9

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