@farris/ui-vue 1.3.4 → 1.3.6

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 (145) hide show
  1. package/components/accordion/index.esm.js +16 -16
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +65 -65
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +13 -13
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +504 -490
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +247 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +356 -344
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +159 -145
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +127 -128
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +15 -15
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/component/index.esm.js +101 -87
  20. package/components/component/index.umd.cjs +1 -1
  21. package/components/condition/index.esm.js +9 -7
  22. package/components/condition/index.umd.cjs +1 -1
  23. package/components/content-container/index.esm.js +181 -167
  24. package/components/content-container/index.umd.cjs +1 -1
  25. package/components/data-grid/index.esm.js +746 -730
  26. package/components/data-grid/index.umd.cjs +1 -1
  27. package/components/data-view/index.esm.js +9 -7
  28. package/components/data-view/index.umd.cjs +1 -1
  29. package/components/date-picker/index.esm.js +789 -777
  30. package/components/date-picker/index.umd.cjs +1 -1
  31. package/components/designer-canvas/index.esm.js +3096 -3069
  32. package/components/designer-canvas/index.umd.cjs +1 -1
  33. package/components/dropdown/index.esm.js +257 -243
  34. package/components/dropdown/index.umd.cjs +2 -2
  35. package/components/dynamic-form/index.esm.js +322 -306
  36. package/components/dynamic-form/index.umd.cjs +1 -1
  37. package/components/dynamic-resolver/index.esm.js +177 -163
  38. package/components/dynamic-resolver/index.umd.cjs +1 -1
  39. package/components/event-parameter/index.esm.js +78 -82
  40. package/components/event-parameter/index.umd.cjs +1 -1
  41. package/components/events-editor/index.esm.js +501 -487
  42. package/components/events-editor/index.umd.cjs +1 -1
  43. package/components/expression-editor/index.esm.js +37 -37
  44. package/components/expression-editor/index.umd.cjs +1 -1
  45. package/components/external-container/index.esm.js +487 -472
  46. package/components/external-container/index.umd.cjs +1 -1
  47. package/components/field-selector/index.esm.js +440 -433
  48. package/components/field-selector/index.umd.cjs +1 -1
  49. package/components/filter-bar/index.esm.js +594 -587
  50. package/components/filter-bar/index.umd.cjs +1 -1
  51. package/components/flow-canvas/index.esm.js +2766 -2739
  52. package/components/flow-canvas/index.umd.cjs +1 -1
  53. package/components/image-cropper/index.esm.js +402 -388
  54. package/components/image-cropper/index.umd.cjs +1 -1
  55. package/components/input-group/index.esm.js +201 -202
  56. package/components/input-group/index.umd.cjs +1 -1
  57. package/components/layout/index.esm.js +264 -245
  58. package/components/layout/index.umd.cjs +1 -1
  59. package/components/list-nav/index.esm.js +157 -143
  60. package/components/list-nav/index.umd.cjs +1 -1
  61. package/components/list-view/index.esm.js +314 -298
  62. package/components/list-view/index.umd.cjs +1 -1
  63. package/components/lookup/index.esm.js +862 -843
  64. package/components/lookup/index.umd.cjs +1 -1
  65. package/components/mapping-editor/index.esm.js +1031 -1015
  66. package/components/mapping-editor/index.umd.cjs +1 -1
  67. package/components/nav/index.esm.js +169 -155
  68. package/components/nav/index.umd.cjs +2 -2
  69. package/components/number-range/index.esm.js +150 -137
  70. package/components/number-range/index.umd.cjs +1 -1
  71. package/components/number-spinner/index.esm.js +207 -194
  72. package/components/number-spinner/index.umd.cjs +1 -1
  73. package/components/order/index.esm.js +427 -414
  74. package/components/order/index.umd.cjs +1 -1
  75. package/components/page-footer/index.esm.js +22 -22
  76. package/components/page-footer/index.umd.cjs +1 -1
  77. package/components/page-header/index.esm.js +510 -492
  78. package/components/page-header/index.umd.cjs +1 -1
  79. package/components/pagination/index.esm.js +192 -178
  80. package/components/pagination/index.umd.cjs +1 -1
  81. package/components/progress/index.esm.js +234 -220
  82. package/components/progress/index.umd.cjs +3 -3
  83. package/components/property-editor/index.esm.js +288 -277
  84. package/components/property-editor/index.umd.cjs +2 -2
  85. package/components/property-panel/index.esm.js +62 -61
  86. package/components/property-panel/index.umd.cjs +1 -1
  87. package/components/query-solution/index.esm.js +776 -770
  88. package/components/query-solution/index.umd.cjs +6 -6
  89. package/components/radio-button/index.esm.js +64 -64
  90. package/components/radio-button/index.umd.cjs +1 -1
  91. package/components/radio-group/index.esm.js +296 -283
  92. package/components/radio-group/index.umd.cjs +1 -1
  93. package/components/rate/index.esm.js +222 -208
  94. package/components/rate/index.umd.cjs +1 -1
  95. package/components/response-layout/index.esm.js +187 -173
  96. package/components/response-layout/index.umd.cjs +1 -1
  97. package/components/response-layout-editor/index.esm.js +554 -542
  98. package/components/response-layout-editor/index.umd.cjs +1 -1
  99. package/components/response-toolbar/index.esm.js +483 -469
  100. package/components/response-toolbar/index.umd.cjs +1 -1
  101. package/components/schema-selector/index.esm.js +634 -619
  102. package/components/schema-selector/index.umd.cjs +2 -2
  103. package/components/search-box/index.esm.js +228 -214
  104. package/components/search-box/index.umd.cjs +1 -1
  105. package/components/section/index.esm.js +419 -406
  106. package/components/section/index.umd.cjs +1 -1
  107. package/components/smoke-detector/index.esm.js +162 -148
  108. package/components/smoke-detector/index.umd.cjs +1 -1
  109. package/components/splitter/index.esm.js +308 -284
  110. package/components/splitter/index.umd.cjs +1 -1
  111. package/components/step/index.esm.js +279 -265
  112. package/components/step/index.umd.cjs +1 -1
  113. package/components/switch/index.esm.js +183 -170
  114. package/components/switch/index.umd.cjs +1 -1
  115. package/components/tabs/index.esm.js +307 -294
  116. package/components/tabs/index.umd.cjs +1 -1
  117. package/components/tags/index.esm.js +320 -306
  118. package/components/tags/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +245 -231
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +260 -247
  122. package/components/textarea/index.umd.cjs +1 -1
  123. package/components/time-picker/index.esm.js +409 -396
  124. package/components/time-picker/index.umd.cjs +1 -1
  125. package/components/transfer/index.esm.js +424 -410
  126. package/components/transfer/index.umd.cjs +1 -1
  127. package/components/tree-grid/index.esm.js +383 -376
  128. package/components/tree-grid/index.umd.cjs +1 -1
  129. package/components/tree-view/index.esm.js +595 -575
  130. package/components/tree-view/index.umd.cjs +1 -1
  131. package/components/uploader/index.esm.js +325 -311
  132. package/components/uploader/index.umd.cjs +2 -2
  133. package/components/verify-detail/index.esm.js +304 -290
  134. package/components/verify-detail/index.umd.cjs +1 -1
  135. package/components/video/index.esm.js +99 -85
  136. package/components/video/index.umd.cjs +1 -1
  137. package/components/weather/index.esm.js +947 -933
  138. package/components/weather/index.umd.cjs +4 -4
  139. package/farris.all.esm.js +5492 -5470
  140. package/farris.all.umd.cjs +13 -13
  141. package/index.css +1 -1
  142. package/package.json +1 -1
  143. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  144. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
  145. package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
@@ -1,54 +1,68 @@
1
- var De = Object.defineProperty;
2
- var Pe = (n, e, t) => e in n ? De(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var E = (n, e, t) => Pe(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { ref as w, computed as A, createVNode as m, defineComponent as Z, watch as X, onMounted as W, inject as N, getCurrentInstance as Ae, createTextVNode as le, provide as ke, onBeforeUnmount as Ee, withModifiers as xe, onUnmounted as Be, Fragment as Ie } from "vue";
5
- import { isPlainObject as ae, cloneDeep as ue } from "lodash-es";
1
+ var Pe = Object.defineProperty;
2
+ var De = (n, e, t) => e in n ? Pe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var E = (n, e, t) => De(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { ref as T, computed as A, createVNode as m, defineComponent as Z, watch as X, onMounted as W, inject as N, getCurrentInstance as Ae, createTextVNode as ue, provide as ke, onBeforeUnmount as Ee, withModifiers as xe, onUnmounted as Be, Fragment as Ie } from "vue";
5
+ import { isPlainObject as ce, cloneDeep as oe } from "lodash-es";
6
6
  import Re from "../response-toolbar/index.esm.js";
7
7
  import "bignumber.js";
8
8
  import { useDesignerInnerComponent as de } from "../designer-canvas/index.esm.js";
9
9
  import { getCustomClass as ne, withInstall as $e } from "../common/index.esm.js";
10
10
  const pe = {}, fe = {};
11
- function oe(n) {
12
- const { properties: e, title: t, ignore: s } = n, r = s && Array.isArray(s), a = Object.keys(e).reduce((i, g) => ((!r || !s.find((f) => f === g)) && (i[g] = e[g].type === "object" && e[g].properties ? oe(e[g]) : ue(e[g].default)), i), {});
13
- if (t && (!r || !s.find((i) => i === "id"))) {
14
- const i = t.toLowerCase().replace(/-/g, "_");
15
- a.id = `${i}_${Math.random().toString().slice(2, 6)}`;
11
+ function se(n) {
12
+ const { properties: e, title: t, ignore: s } = n, i = s && Array.isArray(s), a = Object.keys(e).reduce((r, g) => ((!i || !s.find((f) => f === g)) && (r[g] = e[g].type === "object" && e[g].properties ? se(e[g]) : oe(e[g].default)), r), {});
13
+ if (t && (!i || !s.find((r) => r === "id"))) {
14
+ const r = t.toLowerCase().replace(/-/g, "_");
15
+ a.id = `${r}_${Math.random().toString().slice(2, 6)}`;
16
16
  }
17
17
  return a;
18
18
  }
19
+ function je(n) {
20
+ const { properties: e, title: t, required: s } = n;
21
+ if (s && Array.isArray(s)) {
22
+ const i = s.reduce((a, r) => (a[r] = e[r].type === "object" && e[r].properties ? se(e[r]) : oe(e[r].default), a), {});
23
+ if (t && s.find((a) => a === "id")) {
24
+ const a = t.toLowerCase().replace(/-/g, "_");
25
+ i.id = `${a}_${Math.random().toString().slice(2, 6)}`;
26
+ }
27
+ return i;
28
+ }
29
+ return {
30
+ type: t
31
+ };
32
+ }
19
33
  function J(n, e = {}, t) {
20
34
  const s = pe[n];
21
35
  if (s) {
22
- let r = oe(s);
36
+ let i = je(s);
23
37
  const a = fe[n];
24
- return r = a ? a({ getSchemaByType: J }, r, e, t) : r, r;
38
+ return i = a ? a({ getSchemaByType: J }, i, e, t) : i, i;
25
39
  }
26
40
  return null;
27
41
  }
28
- function je(n, e) {
29
- const t = oe(e);
30
- return Object.keys(t).reduce((s, r) => (s[r] && ae(s[r]) && ae(n[r] || !n[r]) ? Object.assign(s[r], n[r] || {}) : s[r] = n[r], s), t), t;
31
- }
32
42
  function Le(n, e) {
33
- return Object.keys(n).filter((s) => n[s] != null).reduce((s, r) => {
34
- if (e.has(r)) {
35
- const a = e.get(r);
43
+ const t = se(e);
44
+ return Object.keys(t).reduce((s, i) => (Object.prototype.hasOwnProperty.call(n, i) && (s[i] && ce(s[i]) && ce(n[i] || !n[i]) ? Object.assign(s[i], n[i] || {}) : s[i] = n[i]), s), t), t;
45
+ }
46
+ function Fe(n, e) {
47
+ return Object.keys(n).filter((s) => n[s] != null).reduce((s, i) => {
48
+ if (e.has(i)) {
49
+ const a = e.get(i);
36
50
  if (typeof a == "string")
37
- s[a] = n[r];
51
+ s[a] = n[i];
38
52
  else {
39
- const i = a(r, n[r], n);
40
- Object.assign(s, i);
53
+ const r = a(i, n[i], n);
54
+ Object.assign(s, r);
41
55
  }
42
56
  } else
43
- s[r] = n[r];
57
+ s[i] = n[i];
44
58
  return s;
45
59
  }, {});
46
60
  }
47
- function Fe(n, e, t = /* @__PURE__ */ new Map()) {
48
- const s = je(n, e);
49
- return Le(s, t);
61
+ function Oe(n, e, t = /* @__PURE__ */ new Map()) {
62
+ const s = Le(n, e);
63
+ return Fe(s, t);
50
64
  }
51
- function Oe(n = {}) {
65
+ function Ne(n = {}) {
52
66
  function e(u, h, p, b) {
53
67
  if (typeof p == "number")
54
68
  return b[u].length === p;
@@ -71,7 +85,7 @@ function Oe(n = {}) {
71
85
  ["getProperty", t]
72
86
  ]);
73
87
  Object.keys(n).reduce((u, h) => (u.set(h, n[h]), u), s);
74
- function r(u, h) {
88
+ function i(u, h) {
75
89
  const p = u;
76
90
  return typeof h == "number" ? [{ target: p, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: p, operator: "getProperty", param: u, value: !!h }] : typeof h == "object" ? Object.keys(h).map((b) => {
77
91
  if (b === "length")
@@ -82,11 +96,11 @@ function Oe(n = {}) {
82
96
  }
83
97
  function a(u) {
84
98
  return Object.keys(u).reduce((p, b) => {
85
- const y = r(b, u[b]);
99
+ const y = i(b, u[b]);
86
100
  return p.push(...y), p;
87
101
  }, []);
88
102
  }
89
- function i(u, h) {
103
+ function r(u, h) {
90
104
  if (s.has(u.operator)) {
91
105
  const p = s.get(u.operator);
92
106
  return p && p(u.target, u.param, u.value, h) || !1;
@@ -94,7 +108,7 @@ function Oe(n = {}) {
94
108
  return !1;
95
109
  }
96
110
  function g(u, h) {
97
- return a(u).reduce((y, M) => y && i(M, h), !0);
111
+ return a(u).reduce((y, M) => y && r(M, h), !0);
98
112
  }
99
113
  function f(u, h) {
100
114
  const p = Object.keys(u), b = p.includes("allOf"), y = p.includes("anyOf"), M = b || y, R = (M ? u[M ? b ? "allOf" : "anyOf" : "allOf"] : [u]).map((x) => g(x, h));
@@ -142,40 +156,39 @@ const q = {
142
156
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
143
157
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
144
158
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
145
- }, Ne = {}, Ve = {};
146
- Oe();
147
- function ee(n, e, t = /* @__PURE__ */ new Map(), s = (i, g, f, u) => g, r = {}, a = (i) => i) {
148
- return pe[e.title] = e, fe[e.title] = s, Ne[e.title] = r, Ve[e.title] = a, (i = {}) => {
149
- const g = Fe(i, e, t), f = Object.keys(n).reduce((u, h) => (u[h] = n[h].default, u), {});
159
+ }, _e = {}, Ve = {};
160
+ Ne();
161
+ function ee(n, e, t = /* @__PURE__ */ new Map(), s = (r, g, f, u) => g, i = {}, a = (r) => r) {
162
+ return pe[e.title] = e, fe[e.title] = s, _e[e.title] = i, Ve[e.title] = a, (r = {}) => {
163
+ const g = Oe(r, e, t), f = Object.keys(n).reduce((u, h) => (u[h] = n[h].default, u), {});
150
164
  return Object.assign(f, g);
151
165
  };
152
166
  }
153
167
  function me(n, e) {
154
168
  return { customClass: e.class, customStyle: e.style };
155
169
  }
156
- function _e(n, e, t) {
170
+ function qe(n, e, t) {
157
171
  return e ? { enableAccordion: t.accordionMode } : { enableAccordion: "" };
158
172
  }
159
- function qe(n, e) {
173
+ function ze(n, e) {
160
174
  return {
161
175
  buttons: e.buttons,
162
176
  buttonPosition: e.position
163
177
  };
164
178
  }
165
- const ze = /* @__PURE__ */ new Map([
179
+ const Ue = /* @__PURE__ */ new Map([
166
180
  ["appearance", me],
167
181
  ["expanded", "expandStatus"],
168
- ["enableAccordion", _e],
169
- ["toolbar", qe]
182
+ ["enableAccordion", qe],
183
+ ["toolbar", ze]
170
184
  ]);
171
- function Ue(n, e, t) {
172
- const s = Math.random().toString().slice(2, 6), r = t.parentComponentInstance;
185
+ function He(n, e, t) {
186
+ const s = Math.random().toString().slice(2, 6), i = t.parentComponentInstance;
173
187
  Object.assign(e, {
174
188
  id: `section-${s}`,
175
189
  appearance: {
176
190
  class: "f-section-in-mainsubcard"
177
191
  },
178
- enableAccordion: !1,
179
192
  mainTitle: t.mainTitle || e.mainTitle || "标题"
180
193
  });
181
194
  const a = n.getSchemaByType("content-container");
@@ -186,20 +199,20 @@ function Ue(n, e, t) {
186
199
  },
187
200
  contents: [e]
188
201
  });
189
- const i = r.schema;
190
- switch (i && i.type) {
202
+ const r = i.schema;
203
+ switch (r && r.type) {
191
204
  case q["splitter-pane"].type: {
192
205
  e.appearance.class = "f-section-in-main";
193
206
  break;
194
207
  }
195
208
  }
196
- const g = r.elementRef, f = window.getComputedStyle(g);
209
+ const g = i.elementRef, f = window.getComputedStyle(g);
197
210
  return f && f.display === "flex" && (a.appearance.class += " d-block"), a;
198
211
  }
199
- function He(n, e, t) {
200
- return t.parentComponentInstance ? Ue(n, e, t) : e;
212
+ function We(n, e, t) {
213
+ return t.parentComponentInstance ? He(n, e, t) : e;
201
214
  }
202
- const We = "https://json-schema.org/draft/2020-12/schema", Ge = "https://farris-design.gitee.io/section.schema.json", Qe = "section", Ze = "A Farris Container Component", Je = "object", Xe = {
215
+ const Ge = "https://json-schema.org/draft/2020-12/schema", Qe = "https://farris-design.gitee.io/section.schema.json", Ze = "section", Je = "A Farris Container Component", Xe = "object", Ye = {
203
216
  id: {
204
217
  description: "The unique identifier for a Section",
205
218
  type: "string"
@@ -324,19 +337,19 @@ const We = "https://json-schema.org/draft/2020-12/schema", Ge = "https://farris-
324
337
  },
325
338
  default: null
326
339
  }
327
- }, Ye = [
340
+ }, Ke = [
328
341
  "id",
329
342
  "type",
330
343
  "contents"
331
- ], Ke = {
332
- $schema: We,
333
- $id: Ge,
334
- title: Qe,
335
- description: Ze,
336
- type: Je,
337
- properties: Xe,
338
- required: Ye
339
- }, se = {
344
+ ], et = {
345
+ $schema: Ge,
346
+ $id: Qe,
347
+ title: Ze,
348
+ description: Je,
349
+ type: Xe,
350
+ properties: Ye,
351
+ required: Ke
352
+ }, re = {
340
353
  /** 设置内容区域样式 */
341
354
  contentClass: { type: String, default: "" },
342
355
  /** 自定义样式 */
@@ -381,10 +394,10 @@ const We = "https://json-schema.org/draft/2020-12/schema", Ge = "https://farris-
381
394
  // toolbarPosition: { type: String, default: '' },
382
395
  // toolbarButtons: { type: Array<object>, default: [] },
383
396
  // toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
384
- }, he = ee(se, Ke, ze, He);
397
+ }, he = ee(re, et, Ue, We);
385
398
  function ge(n, e, t) {
386
399
  let s;
387
- function r(f = 1) {
400
+ function i(f = 1) {
388
401
  const u = [
389
402
  "body>.f-datagrid-settings-simple-host",
390
403
  "body>div",
@@ -405,36 +418,36 @@ function ge(n, e, t) {
405
418
  function a() {
406
419
  s = n.value.nextElementSibling;
407
420
  const f = document && document.querySelector("body");
408
- f && (f.appendChild(n.value), n.value.style.zIndex = r());
421
+ f && (f.appendChild(n.value), n.value.style.zIndex = i());
409
422
  }
410
- function i() {
423
+ function r() {
411
424
  s ? e.value.insertBefore(
412
425
  n.value,
413
426
  s
414
427
  ) : e.value.appendChild(n.value), n.value.style.zIndex = null;
415
428
  }
416
429
  function g() {
417
- !n || !e.value || (t.value = !t.value, t.value ? a() : i());
430
+ !n || !e.value || (t.value = !t.value, t.value ? a() : r());
418
431
  }
419
432
  return { onClickMaxMinIcon: g };
420
433
  }
421
434
  function ye(n, e) {
422
- const t = w(n.buttons), s = A(() => n.buttonPosition === "inHead" ? "right" : "left"), r = A(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), a = A(() => n.buttons && n.buttons.length > 0 && n.buttonPosition === "inHead");
423
- function i(g) {
435
+ const t = T(n.buttons), s = A(() => n.buttonPosition === "inHead" ? "right" : "left"), i = A(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), a = A(() => n.buttons && n.buttons.length > 0 && n.buttonPosition === "inHead");
436
+ function r(g) {
424
437
  e.emit("Click", g);
425
438
  }
426
439
  return () => a.value && m(Re, {
427
- customClass: r.value,
440
+ customClass: i.value,
428
441
  items: t.value,
429
- onClick: i,
442
+ onClick: r,
430
443
  alignment: s.value
431
444
  }, null);
432
445
  }
433
- function et(n, e, t, s, r, a) {
434
- w(n.subTitle);
435
- const i = A(() => n.buttonPosition), g = ye(n, e), {
446
+ function tt(n, e, t, s, i, a) {
447
+ T(n.subTitle);
448
+ const r = A(() => n.buttonPosition), g = ye(n, e), {
436
449
  onClickMaxMinIcon: f
437
- } = ge(s, r, a), u = A(() => !!n.subTitle), h = A(() => n.enableMaximize), p = A(() => n.enableAccordion !== ""), b = A(() => {
450
+ } = ge(s, i, a), u = A(() => !!n.subTitle), h = A(() => n.enableMaximize), p = A(() => n.enableAccordion !== ""), b = A(() => {
438
451
  const x = {
439
452
  "f-section-header": !0
440
453
  };
@@ -482,7 +495,7 @@ function et(n, e, t, s, r, a) {
482
495
  const B = {
483
496
  "f-content": !0
484
497
  };
485
- return n.headerContentClass && n.headerContentClass.split(" ").reduce((S, D) => (S[D] = !0, S), B), B;
498
+ return n.headerContentClass && n.headerContentClass.split(" ").reduce((S, P) => (S[P] = !0, S), B), B;
486
499
  });
487
500
  return e.slots.headerContent ? m("div", {
488
501
  class: x.value
@@ -491,47 +504,47 @@ function et(n, e, t, s, r, a) {
491
504
  function L() {
492
505
  return m("div", {
493
506
  class: b.value
494
- }, [e.slots.headerTitle ? e.slots.headerTitle() : I(), R(), i.value === "inHead" && g(), (h.value || p.value) && M()]);
507
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : I(), R(), r.value === "inHead" && g(), (h.value || p.value) && M()]);
495
508
  }
496
509
  return () => n.showHeader && (e.slots.header ? k() : L());
497
510
  }
498
- const tt = ["moz", "ms", "webkit"];
499
- function nt() {
511
+ const nt = ["moz", "ms", "webkit"];
512
+ function ot() {
500
513
  let n = 0;
501
514
  return (e) => {
502
- const t = (/* @__PURE__ */ new Date()).getTime(), s = Math.max(0, 16 - (t - n)), r = setTimeout(() => {
515
+ const t = (/* @__PURE__ */ new Date()).getTime(), s = Math.max(0, 16 - (t - n)), i = setTimeout(() => {
503
516
  e(t + s);
504
517
  }, s);
505
- return n = t + s, r;
518
+ return n = t + s, i;
506
519
  };
507
520
  }
508
- function ot() {
521
+ function st() {
509
522
  if (typeof window > "u")
510
523
  return () => 0;
511
524
  if (window.requestAnimationFrame)
512
525
  return window.requestAnimationFrame.bind(window);
513
- const n = tt.filter((e) => `${e}RequestAnimationFrame` in window)[0];
514
- return n ? window[`${n}RequestAnimationFrame`] : nt();
526
+ const n = nt.filter((e) => `${e}RequestAnimationFrame` in window)[0];
527
+ return n ? window[`${n}RequestAnimationFrame`] : ot();
515
528
  }
516
- ot();
529
+ st();
517
530
  function H(n, e) {
518
- return ((e == null ? void 0 : e.split(" ")) || []).reduce((s, r) => (r && (s[r] = !0), s), n), n;
531
+ return ((e == null ? void 0 : e.split(" ")) || []).reduce((s, i) => (i && (s[i] = !0), s), n), n;
519
532
  }
520
533
  const Y = /* @__PURE__ */ Z({
521
534
  name: "FSection",
522
- props: se,
535
+ props: re,
523
536
  emits: [],
524
537
  setup(n, e) {
525
- const t = w(), s = w(), r = w(n.customClass), a = A(() => n.enableAccordion), i = w(n.expandStatus), g = A(() => n.buttonPosition), f = w(!1), u = et(n, e, i, t, s, f), h = ye(n, e), p = A(() => {
538
+ const t = T(), s = T(), i = T(n.customClass), a = A(() => n.enableAccordion), r = T(n.expandStatus), g = A(() => n.buttonPosition), f = T(!1), u = tt(n, e, r, t, s, f), h = ye(n, e), p = A(() => {
526
539
  const I = {
527
540
  "f-section": !0,
528
541
  "f-section-accordion": a.value === "default",
529
- "f-state-collapse": (a.value === "default" || a.value === "custom") && !i.value,
542
+ "f-state-collapse": (a.value === "default" || a.value === "custom") && !r.value,
530
543
  "f-section-custom-accordion": a.value === "custom",
531
544
  "f-section-fill": n.fill,
532
545
  "f-section-maximize": f.value
533
546
  };
534
- return H(I, r.value);
547
+ return H(I, i.value);
535
548
  }), b = A(() => H({
536
549
  "f-section-content": !0
537
550
  }, n.contentClass)), y = A(() => H({
@@ -548,7 +561,7 @@ const Y = /* @__PURE__ */ Z({
548
561
  }, [g.value === "inContent" && h(), e.slots.default && e.slots.default()]);
549
562
  }
550
563
  return X(() => n.expandStatus, (I, R) => {
551
- I !== R && (i.value = I);
564
+ I !== R && (r.value = I);
552
565
  }), W(() => {
553
566
  t.value && t.value && (s.value = t.value.parentElement);
554
567
  }), () => m("div", {
@@ -558,22 +571,22 @@ const Y = /* @__PURE__ */ Z({
558
571
  }, [u(), M(), k()]);
559
572
  }
560
573
  });
561
- function st() {
574
+ function rt() {
562
575
  function n(e, t) {
563
- var i;
576
+ var r;
564
577
  if (!e)
565
578
  return !1;
566
- const s = ((i = e.targetContainer) == null ? void 0 : i.componentInstance) && e.targetContainer.componentInstance.value;
579
+ const s = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
567
580
  if (!s)
568
581
  return !1;
569
- const r = s.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(s.belongedComponentId);
570
- return !((e.componentCategory === "input" || e.componentType === "form-group") && ![q["response-layout-item"].type, q["response-form"].type].includes(r) || (e.componentType === q.tabs.type || e.componentType === q.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![q["content-container"].type, q["splitter-pane"].type, q["response-layout-item"].type].includes(r)));
582
+ const i = s.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(s.belongedComponentId);
583
+ return !((e.componentCategory === "input" || e.componentType === "form-group") && ![q["response-layout-item"].type, q["response-form"].type].includes(i) || (e.componentType === q.tabs.type || e.componentType === q.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![q["content-container"].type, q["splitter-pane"].type, q["response-layout-item"].type].includes(i)));
571
584
  }
572
585
  return {
573
586
  basalDragulaRuleForContainer: n
574
587
  };
575
588
  }
576
- const rt = {
589
+ const it = {
577
590
  title: "section",
578
591
  description: "A Farris Container Component",
579
592
  type: "object",
@@ -676,17 +689,17 @@ const rt = {
676
689
  }
677
690
  }
678
691
  };
679
- class it {
692
+ class at {
680
693
  getTemplateRule(e, t) {
681
- const s = t == null ? void 0 : t.formSchemaUtils, r = s == null ? void 0 : s.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
682
- if (!r)
694
+ const s = t == null ? void 0 : t.formSchemaUtils, i = s == null ? void 0 : s.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
695
+ if (!i)
683
696
  return a;
684
- const i = this.getComponentContext(e), { componentClassList: g } = i;
697
+ const r = this.getComponentContext(e), { componentClassList: g } = r;
685
698
  return g.forEach((f) => {
686
- if (!f || !r[f])
699
+ if (!f || !i[f])
687
700
  return;
688
- const { canMove: u, canDelete: h, canAccept: p } = r[f];
689
- a.canMove = a.canMove && this.resolveRuleValue(u, i), a.canDelete = a.canDelete && this.resolveRuleValue(h, i), a.canAccept = a.canAccept && this.resolveRuleValue(p, i);
701
+ const { canMove: u, canDelete: h, canAccept: p } = i[f];
702
+ a.canMove = a.canMove && this.resolveRuleValue(u, r), a.canDelete = a.canDelete && this.resolveRuleValue(h, r), a.canAccept = a.canAccept && this.resolveRuleValue(p, r);
690
703
  }), a;
691
704
  }
692
705
  resolveRuleValue(e, t) {
@@ -694,69 +707,69 @@ class it {
694
707
  }
695
708
  parseRuleValueSchema(e, t) {
696
709
  const s = e.invalidContext || [];
697
- let r = !0;
710
+ let i = !0;
698
711
  for (const a of s) {
699
712
  if (a.firstLevelChild) {
700
713
  if (a.firstLevelChild.class) {
701
- const { firstLevelChildClassList: i } = t;
702
- if (i && !i.includes(a.firstLevelChild.class)) {
703
- r = !1;
714
+ const { firstLevelChildClassList: r } = t;
715
+ if (r && !r.includes(a.firstLevelChild.class)) {
716
+ i = !1;
704
717
  continue;
705
718
  }
706
719
  }
707
720
  if (a.firstLevelChild.type) {
708
- const { firstLevelChildSchema: i } = t;
709
- if (!i || i.type !== a.firstLevelChild.type) {
710
- r = !1;
721
+ const { firstLevelChildSchema: r } = t;
722
+ if (!r || r.type !== a.firstLevelChild.type) {
723
+ i = !1;
711
724
  continue;
712
725
  }
713
726
  }
714
727
  }
715
728
  if (a.secondLevelChild) {
716
729
  if (a.secondLevelChild.class) {
717
- const { secondLevelChildClassList: i } = t;
718
- if (i && !i.includes(a.secondLevelChild.class)) {
719
- r = !1;
730
+ const { secondLevelChildClassList: r } = t;
731
+ if (r && !r.includes(a.secondLevelChild.class)) {
732
+ i = !1;
720
733
  continue;
721
734
  }
722
735
  }
723
736
  if (a.secondLevelChild.type) {
724
- const { secondLevelChildSchema: i } = t;
725
- if (!i || i.type !== a.secondLevelChild.type) {
726
- r = !1;
737
+ const { secondLevelChildSchema: r } = t;
738
+ if (!r || r.type !== a.secondLevelChild.type) {
739
+ i = !1;
727
740
  continue;
728
741
  }
729
742
  }
730
743
  }
731
744
  if (a.parent) {
732
745
  if (a.parent.class) {
733
- const { parentClassList: i } = t;
734
- if (i && !i.includes(a.parent.class)) {
735
- r = !1;
746
+ const { parentClassList: r } = t;
747
+ if (r && !r.includes(a.parent.class)) {
748
+ i = !1;
736
749
  continue;
737
750
  }
738
751
  }
739
752
  if (a.parent.type) {
740
- const { parentSchema: i } = t;
741
- if (i && i.type !== a.parent.type) {
742
- r = !1;
753
+ const { parentSchema: r } = t;
754
+ if (r && r.type !== a.parent.type) {
755
+ i = !1;
743
756
  continue;
744
757
  }
745
758
  }
746
759
  }
747
- r = !0;
760
+ i = !0;
748
761
  break;
749
762
  }
750
- return !r;
763
+ return !i;
751
764
  }
752
765
  getComponentContext(e) {
753
766
  var k, I, R, L;
754
- const t = e.schema, s = t.appearance && t.appearance.class || "", r = s.split(" ") || [], a = t.contents || [], i = a.length ? a[0] : null, g = i && i.appearance ? i.appearance.class : "", f = g ? g.split(" ") : [], u = (k = i == null ? void 0 : i.contents) != null && k.length ? i == null ? void 0 : i.contents[0] : null, h = u && u.appearance ? u.appearance.class : "", p = h ? h.split(" ") : [], b = t.type === "component" ? (R = (I = e.parent) == null ? void 0 : I.parent) == null ? void 0 : R.schema : (L = e.parent) == null ? void 0 : L.schema, y = b && b.appearance && b.appearance.class || "", M = y ? y.split(" ") : [];
767
+ const t = e.schema, s = t.appearance && t.appearance.class || "", i = s.split(" ") || [], a = t.contents || [], r = a.length ? a[0] : null, g = r && r.appearance ? r.appearance.class : "", f = g ? g.split(" ") : [], u = (k = r == null ? void 0 : r.contents) != null && k.length ? r == null ? void 0 : r.contents[0] : null, h = u && u.appearance ? u.appearance.class : "", p = h ? h.split(" ") : [], b = t.type === "component" ? (R = (I = e.parent) == null ? void 0 : I.parent) == null ? void 0 : R.schema : (L = e.parent) == null ? void 0 : L.schema, y = b && b.appearance && b.appearance.class || "", M = y ? y.split(" ") : [];
755
768
  return {
756
769
  componentClass: s,
757
- componentClassList: r,
770
+ componentClassList: i,
758
771
  childContents: a,
759
- firstLevelChildSchema: i,
772
+ firstLevelChildSchema: r,
760
773
  firstLevelChildClass: g,
761
774
  firstLevelChildClassList: f,
762
775
  secondLevelChildSchema: u,
@@ -768,13 +781,13 @@ class it {
768
781
  };
769
782
  }
770
783
  }
771
- function at(n, e) {
772
- const t = new it();
784
+ function ct(n, e) {
785
+ const t = new at();
773
786
  function s(f) {
774
- return rt;
787
+ return it;
775
788
  }
776
- function r(f) {
777
- if (!st().basalDragulaRuleForContainer(f, e))
789
+ function i(f) {
790
+ if (!rt().basalDragulaRuleForContainer(f, e))
778
791
  return !1;
779
792
  const { canAccept: h } = t.getTemplateRule(n, e);
780
793
  return h;
@@ -783,7 +796,7 @@ function at(n, e) {
783
796
  const { canDelete: f } = t.getTemplateRule(n, e);
784
797
  return f;
785
798
  }
786
- function i() {
799
+ function r() {
787
800
  const { canMove: f } = t.getTemplateRule(n, e);
788
801
  return f;
789
802
  }
@@ -792,17 +805,17 @@ function at(n, e) {
792
805
  return !f && !u;
793
806
  }
794
807
  return {
795
- canAccepts: r,
808
+ canAccepts: i,
796
809
  checkCanDeleteComponent: a,
797
- checkCanMoveComponent: i,
810
+ checkCanMoveComponent: r,
798
811
  hideNestedPaddingInDesginerView: g,
799
812
  getPropsConfig: s
800
813
  };
801
814
  }
802
- function ct(n, e, t) {
815
+ function lt(n, e, t) {
803
816
  var B;
804
- const s = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", a = w();
805
- function i() {
817
+ const s = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", a = T();
818
+ function r() {
806
819
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
807
820
  }
808
821
  function g() {
@@ -819,12 +832,12 @@ function ct(n, e, t) {
819
832
  return null;
820
833
  if (v.value.schema && v.value.schema.type === "component")
821
834
  return v.value;
822
- const S = w(v == null ? void 0 : v.value.parent), D = h(S);
823
- return D || null;
835
+ const S = T(v == null ? void 0 : v.value.parent), P = h(S);
836
+ return P || null;
824
837
  }
825
838
  function p(v = e) {
826
- const { componentInstance: S, designerItemElementRef: D } = v;
827
- return !S || !S.value ? null : S.value.canMove ? D : p(v.parent);
839
+ const { componentInstance: S, designerItemElementRef: P } = v;
840
+ return !S || !S.value ? null : S.value.canMove ? P : p(v.parent);
828
841
  }
829
842
  function b(v) {
830
843
  return !!t && t.canAccepts(v);
@@ -838,11 +851,11 @@ function ct(n, e, t) {
838
851
  S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
839
852
  }
840
853
  function I(v, S) {
841
- const { componentType: D } = v;
842
- let $ = J(D, v, S);
854
+ const { componentType: P } = v;
855
+ let $ = J(P, v, S);
843
856
  t && t.onResolveNewComponentSchema && ($ = t.onResolveNewComponentSchema(v, $));
844
- const V = D.toLowerCase().replace(/-/g, "_");
845
- return $ && !$.id && $.type === D && ($.id = `${V}_${Math.random().toString().slice(2, 6)}`), $;
857
+ const _ = P.toLowerCase().replace(/-/g, "_");
858
+ return $ && !$.id && $.type === P && ($.id = `${_}_${Math.random().toString().slice(2, 6)}`), $;
846
859
  }
847
860
  function R(v) {
848
861
  }
@@ -855,12 +868,12 @@ function ct(n, e, t) {
855
868
  var $;
856
869
  let S = v.id;
857
870
  v.type === "component-ref" && (S = v.component);
858
- const D = n.value.querySelector(`#${S}-design-item`);
859
- ($ = D == null ? void 0 : D.componentInstance) != null && $.value.onRemoveComponent && D.componentInstance.value.onRemoveComponent();
871
+ const P = n.value.querySelector(`#${S}-design-item`);
872
+ ($ = P == null ? void 0 : P.componentInstance) != null && $.value.onRemoveComponent && P.componentInstance.value.onRemoveComponent();
860
873
  });
861
874
  }
862
875
  return a.value = {
863
- canMove: i(),
876
+ canMove: r(),
864
877
  canSelectParent: g(),
865
878
  canDelete: f(),
866
879
  canNested: !u(),
@@ -869,7 +882,7 @@ function ct(n, e, t) {
869
882
  parent: (B = e == null ? void 0 : e.parent) == null ? void 0 : B.componentInstance,
870
883
  schema: e == null ? void 0 : e.schema,
871
884
  styles: s,
872
- designerClass: r,
885
+ designerClass: i,
873
886
  canAccepts: b,
874
887
  getBelongedComponentInstance: h,
875
888
  getDraggableDesignItemElement: p,
@@ -879,25 +892,25 @@ function ct(n, e, t) {
879
892
  onAcceptMovedChildElement: k,
880
893
  onChildElementMovedOut: R,
881
894
  addNewChildComponentSchema: I,
882
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || w(!1),
883
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || w(!1),
895
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || T(!1),
896
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || T(!1),
884
897
  onRemoveComponent: x
885
898
  }, a;
886
899
  }
887
- const lt = /* @__PURE__ */ new Map([
900
+ const ut = /* @__PURE__ */ new Map([
888
901
  ["buttons", "items"],
889
902
  ["appearance", me]
890
903
  ]);
891
- function ut(n, e) {
904
+ function dt(n, e) {
892
905
  return { class: e.class, style: e.style };
893
906
  }
894
- const dt = /* @__PURE__ */ new Map([
895
- ["appearance", ut]
907
+ const pt = /* @__PURE__ */ new Map([
908
+ ["appearance", dt]
896
909
  ]);
897
910
  function be(n, e, t) {
898
911
  return e;
899
912
  }
900
- const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-design.gitee.io/response-toolbar.schema.json", mt = "response-toolbar", ht = "A Farris Toolbar Component", gt = "object", yt = {
913
+ const ft = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-design.gitee.io/response-toolbar.schema.json", ht = "response-toolbar", gt = "A Farris Toolbar Component", yt = "object", bt = {
901
914
  id: {
902
915
  description: "The unique identifier for a Response Toolbar",
903
916
  type: "string"
@@ -927,19 +940,19 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
927
940
  type: "array",
928
941
  default: []
929
942
  }
930
- }, bt = [
943
+ }, vt = [
931
944
  "id",
932
945
  "type",
933
946
  "buttons"
934
- ], vt = {
935
- $schema: pt,
936
- $id: ft,
937
- title: mt,
938
- description: ht,
939
- type: gt,
940
- properties: yt,
941
- required: bt
942
- }, Ct = "https://json-schema.org/draft/2020-12/schema", Tt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", wt = "response-toolbar-item", St = "A Farris Toolbar Item Component", Mt = "object", Dt = {
947
+ ], Ct = {
948
+ $schema: ft,
949
+ $id: mt,
950
+ title: ht,
951
+ description: gt,
952
+ type: yt,
953
+ properties: bt,
954
+ required: vt
955
+ }, wt = "https://json-schema.org/draft/2020-12/schema", Tt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", St = "response-toolbar-item", Mt = "A Farris Toolbar Item Component", Pt = "object", Dt = {
943
956
  id: {
944
957
  description: "The unique identifier for a Response Toolbar",
945
958
  type: "string"
@@ -984,18 +997,18 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
984
997
  type: "string",
985
998
  default: ""
986
999
  }
987
- }, Pt = [
1000
+ }, At = [
988
1001
  "id",
989
1002
  "type",
990
1003
  "text"
991
- ], At = {
992
- $schema: Ct,
1004
+ ], kt = {
1005
+ $schema: wt,
993
1006
  $id: Tt,
994
- title: wt,
995
- description: St,
996
- type: Mt,
1007
+ title: St,
1008
+ description: Mt,
1009
+ type: Pt,
997
1010
  properties: Dt,
998
- required: Pt
1011
+ required: At
999
1012
  }, ve = {
1000
1013
  /** 组件自定义样式 */
1001
1014
  customClass: { type: String, default: "" },
@@ -1004,13 +1017,13 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
1004
1017
  Type: Array,
1005
1018
  default: []
1006
1019
  }
1007
- }, kt = Object.assign({}, ve, {
1020
+ }, Et = Object.assign({}, ve, {
1008
1021
  componentId: { type: String, default: "" }
1009
1022
  });
1010
1023
  ee(
1011
1024
  ve,
1012
- vt,
1013
- lt,
1025
+ Ct,
1026
+ ut,
1014
1027
  be
1015
1028
  );
1016
1029
  const Ce = {
@@ -1025,11 +1038,11 @@ const Ce = {
1025
1038
  };
1026
1039
  ee(
1027
1040
  Ce,
1028
- At,
1029
- dt,
1041
+ kt,
1042
+ pt,
1030
1043
  be
1031
1044
  );
1032
- class Te {
1045
+ class we {
1033
1046
  constructor(e) {
1034
1047
  /** 工具栏项标识 */
1035
1048
  E(this, "id", "");
@@ -1091,20 +1104,20 @@ class Te {
1091
1104
  return this.visible ? this.width : !1;
1092
1105
  }
1093
1106
  }
1094
- class Et extends Te {
1107
+ class xt extends we {
1095
1108
  constructor(e) {
1096
1109
  super(e);
1097
1110
  }
1098
1111
  }
1099
- function xt() {
1112
+ function Bt() {
1100
1113
  function n(e) {
1101
1114
  const t = [];
1102
- return e.reduce((s, r) => (r.children && r.children.length > 0 ? s.push(new K(r)) : s.push(new Et(r)), s), t), t;
1115
+ return e.reduce((s, i) => (i.children && i.children.length > 0 ? s.push(new K(i)) : s.push(new xt(i)), s), t), t;
1103
1116
  }
1104
1117
  return { buildResponseToolbarItems: n };
1105
1118
  }
1106
- const { buildResponseToolbarItems: Bt } = xt();
1107
- class K extends Te {
1119
+ const { buildResponseToolbarItems: It } = Bt();
1120
+ class K extends we {
1108
1121
  constructor(t) {
1109
1122
  super(t);
1110
1123
  E(this, "placement", "");
@@ -1118,19 +1131,19 @@ class K extends Te {
1118
1131
  E(this, "children", []);
1119
1132
  E(this, "expanded", !1);
1120
1133
  const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
1121
- Object.keys(t).filter((r) => s.indexOf(r) > -1).forEach((r) => {
1122
- this[r] = t[r];
1123
- }), t.children && t.children.length && (this.children = Bt(t.children));
1134
+ Object.keys(t).filter((i) => s.indexOf(i) > -1).forEach((i) => {
1135
+ this[i] = t[i];
1136
+ }), t.children && t.children.length && (this.children = It(t.children));
1124
1137
  }
1125
1138
  }
1126
- function It() {
1139
+ function Rt() {
1127
1140
  function n(t) {
1128
1141
  const s = {
1129
1142
  "f-icon": !0
1130
1143
  };
1131
1144
  if (t.icon) {
1132
- const r = t.icon.trim().split(" ");
1133
- r && r.length && r.reduce((a, i) => (a[i] = !0, a), s);
1145
+ const i = t.icon.trim().split(" ");
1146
+ i && i.length && i.reduce((a, r) => (a[r] = !0, a), s);
1134
1147
  }
1135
1148
  return s;
1136
1149
  }
@@ -1139,10 +1152,10 @@ function It() {
1139
1152
  }
1140
1153
  return { iconClass: n, shouldShowIcon: e };
1141
1154
  }
1142
- function Rt(n, e) {
1155
+ function $t(n, e) {
1143
1156
  const t = N("design-item-context"), s = N("toolbar-item-handler", () => {
1144
1157
  });
1145
- function r() {
1158
+ function i() {
1146
1159
  s && s();
1147
1160
  }
1148
1161
  function a(l) {
@@ -1151,17 +1164,17 @@ function Rt(n, e) {
1151
1164
  };
1152
1165
  if (l.class) {
1153
1166
  const c = l.menuClass.split(" ");
1154
- c && c.length && c.reduce((d, T) => (d[T] = !0, d), o);
1167
+ c && c.length && c.reduce((d, w) => (d[w] = !0, d), o);
1155
1168
  }
1156
1169
  return o;
1157
1170
  }
1158
- function i(l) {
1171
+ function r(l) {
1159
1172
  const o = {
1160
1173
  disabled: !l.enable,
1161
1174
  "dropdown-submenu": !0,
1162
1175
  "f-rt-dropdown": !0
1163
1176
  }, c = l.dropdownClass.split(" ");
1164
- return c && c.length && c.reduce((d, T) => (d[T] = !0, d), o), o;
1177
+ return c && c.length && c.reduce((d, w) => (d[w] = !0, d), o), o;
1165
1178
  }
1166
1179
  function g(l) {
1167
1180
  const o = {
@@ -1171,17 +1184,17 @@ function Rt(n, e) {
1171
1184
  "position-relative": !0,
1172
1185
  "farris-component": !0
1173
1186
  }, c = l.class.split(" ");
1174
- return c && c.length && c.reduce((d, T) => (d[T] = !0, d), o), o;
1187
+ return c && c.length && c.reduce((d, w) => (d[w] = !0, d), o), o;
1175
1188
  }
1176
1189
  let f;
1177
1190
  const u = /* @__PURE__ */ new Map();
1178
1191
  function h(l, o, c) {
1179
- var T;
1180
- ((T = l.target) == null ? void 0 : T.id) === o.id && l.stopPropagation();
1192
+ var w;
1193
+ ((w = l.target) == null ? void 0 : w.id) === o.id && l.stopPropagation();
1181
1194
  const d = c ? c.id : "__top_item__";
1182
1195
  if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? u.set(d, o) : u.delete(d)), u.has(d) && u.get(d) !== o) {
1183
- const P = u.get(d);
1184
- P && (P.expanded = !1);
1196
+ const D = u.get(d);
1197
+ D && (D.expanded = !1);
1185
1198
  }
1186
1199
  }
1187
1200
  function p(l) {
@@ -1200,19 +1213,19 @@ function Rt(n, e) {
1200
1213
  buttons: o = []
1201
1214
  } = t.schema;
1202
1215
  let c = [];
1203
- o.forEach((P) => {
1204
- c = c.concat(P.children || []);
1216
+ o.forEach((D) => {
1217
+ c = c.concat(D.children || []);
1205
1218
  });
1206
- const d = c.findIndex((P) => P.id === l), T = d === -1 ? null : c[d];
1219
+ const d = c.findIndex((D) => D.id === l), w = d === -1 ? null : c[d];
1207
1220
  return {
1208
1221
  index: d,
1209
- item: T
1222
+ item: w
1210
1223
  };
1211
1224
  }
1212
1225
  function k(l) {
1213
1226
  const {
1214
1227
  buttons: o = []
1215
- } = t.schema, c = o.findIndex((T) => T.id === l), d = c === -1 ? null : o[c];
1228
+ } = t.schema, c = o.findIndex((w) => w.id === l), d = c === -1 ? null : o[c];
1216
1229
  return {
1217
1230
  index: c,
1218
1231
  item: d
@@ -1245,56 +1258,56 @@ function Rt(n, e) {
1245
1258
  }
1246
1259
  function B(l, o, c) {
1247
1260
  p(l);
1248
- const d = o.id, T = c && c.id, {
1249
- buttons: P = []
1261
+ const d = o.id, w = c && c.id, {
1262
+ buttons: D = []
1250
1263
  } = t.schema;
1251
- if (!T)
1264
+ if (!w)
1252
1265
  return;
1253
1266
  const {
1254
1267
  index: j
1255
- } = k(T);
1268
+ } = k(w);
1256
1269
  if (j === -1)
1257
1270
  return;
1258
1271
  const {
1259
- index: _
1272
+ index: V
1260
1273
  } = M(d);
1261
- _ !== -1 && (P[j].children.splice(_, 1), r());
1274
+ V !== -1 && (D[j].children.splice(V, 1), i());
1262
1275
  }
1263
1276
  function v(l, o, c) {
1264
1277
  p(l);
1265
1278
  const d = c && c.id, {
1266
- buttons: T = []
1279
+ buttons: w = []
1267
1280
  } = t.schema;
1268
1281
  if (!d)
1269
1282
  return;
1270
1283
  const {
1271
- index: P
1284
+ index: D
1272
1285
  } = k(d);
1273
- if (P === -1)
1286
+ if (D === -1)
1274
1287
  return;
1275
- const j = L(), _ = Object.assign({}, j, {
1288
+ const j = L(), V = Object.assign({}, j, {
1276
1289
  text: o.text
1277
1290
  });
1278
- T[P].children.push(_), r();
1291
+ w[D].children.push(V), i();
1279
1292
  }
1280
1293
  function S(l, o, c) {
1281
1294
  p(l);
1282
1295
  const d = c && c.id, {
1283
- buttons: T = []
1296
+ buttons: w = []
1284
1297
  } = t.schema;
1285
1298
  if (!d)
1286
1299
  return;
1287
1300
  const {
1288
- index: P
1301
+ index: D
1289
1302
  } = k(d);
1290
- if (P === -1)
1303
+ if (D === -1)
1291
1304
  return;
1292
- const j = L(), _ = Object.assign({}, j, {
1305
+ const j = L(), V = Object.assign({}, j, {
1293
1306
  text: "按钮"
1294
1307
  });
1295
- T[P].children.push(_), r();
1308
+ w[D].children.push(V), i();
1296
1309
  }
1297
- function D(l, o) {
1310
+ function P(l, o) {
1298
1311
  return m("div", {
1299
1312
  class: "component-btn-group"
1300
1313
  }, [m("div", null, [m("div", {
@@ -1326,11 +1339,11 @@ function Rt(n, e) {
1326
1339
  class: "f-icon f-icon-plus-circle text-white mr-1"
1327
1340
  }, null), m("span", {
1328
1341
  style: "font-size:13px;margin:auto"
1329
- }, [le("新增同级")])])])]);
1342
+ }, [ue("新增同级")])])])]);
1330
1343
  }
1331
1344
  function $(l) {
1332
1345
  return l.children.map((o) => o.children && o.children.length ? m("li", {
1333
- class: i(o),
1346
+ class: r(o),
1334
1347
  id: o.id,
1335
1348
  onClick: (c) => o.enable && h(c, o, l)
1336
1349
  }, [m("span", {
@@ -1344,47 +1357,47 @@ function Rt(n, e) {
1344
1357
  class: g(o),
1345
1358
  id: o.id,
1346
1359
  onClick: (c) => x(c, o)
1347
- }, [D(o, l), n.shouldShowIcon(o) && m("i", {
1360
+ }, [P(o, l), n.shouldShowIcon(o) && m("i", {
1348
1361
  class: n.iconClass(o)
1349
1362
  }, null), o.text]));
1350
1363
  }
1351
- function V(l, o, c) {
1364
+ function _(l, o, c) {
1352
1365
  const d = {
1353
1366
  display: l.expanded ? "block" : "none",
1354
1367
  position: "fixed",
1355
1368
  maxWidth: "300px",
1356
1369
  width: "auto",
1357
1370
  minWidth: "120px"
1358
- }, T = document.getElementsByTagName("body")[0].getClientRects()[0].width, P = o, j = P == null ? void 0 : P.getClientRects();
1359
- if (P && j && j.length) {
1371
+ }, w = document.getElementsByTagName("body")[0].getClientRects()[0].width, D = o, j = D == null ? void 0 : D.getClientRects();
1372
+ if (D && j && j.length) {
1360
1373
  const {
1361
- top: _,
1374
+ top: V,
1362
1375
  width: G,
1363
1376
  left: z,
1364
1377
  right: F,
1365
1378
  height: O
1366
- } = j[0], U = Math.ceil(O + _);
1379
+ } = j[0], U = Math.ceil(O + V);
1367
1380
  d.top = `${U}px`, d.left = `${z}px`;
1368
1381
  const Q = l.id + "_menu", te = o ? o.querySelector("#" + Q) : null;
1369
1382
  if (te) {
1370
1383
  d.display === "block" && (te.style.display = "block");
1371
- const ie = te.getBoundingClientRect();
1384
+ const ae = te.getBoundingClientRect();
1372
1385
  if (c) {
1373
- d.top = `${_ - 6}px`;
1386
+ d.top = `${V - 6}px`;
1374
1387
  const Me = Math.ceil(G + z);
1375
1388
  d.left = `${Me}px`;
1376
1389
  }
1377
- T - z - G < ie.width && (d.left = `${(c ? z : F) - ie.width}px`);
1390
+ w - z - G < ae.width && (d.left = `${(c ? z : F) - ae.width}px`);
1378
1391
  }
1379
1392
  }
1380
1393
  return d;
1381
1394
  }
1382
1395
  f = function(l, o) {
1383
- var P, j;
1384
- const c = Ae(), d = o ? o.id : l.id, T = (j = (P = c == null ? void 0 : c.exposed) == null ? void 0 : P.elementRef.value) == null ? void 0 : j.querySelector("#" + d);
1396
+ var D, j;
1397
+ const c = Ae(), d = o ? o.id : l.id, w = (j = (D = c == null ? void 0 : c.exposed) == null ? void 0 : D.elementRef.value) == null ? void 0 : j.querySelector("#" + d);
1385
1398
  return m("ul", {
1386
1399
  class: a(l),
1387
- style: V(l, T, o),
1400
+ style: _(l, w, o),
1388
1401
  id: l.id + "_menu"
1389
1402
  }, [$(l)]);
1390
1403
  };
@@ -1398,11 +1411,11 @@ function Rt(n, e) {
1398
1411
  clearAllDropDownMenu: C
1399
1412
  };
1400
1413
  }
1401
- function $t(n, e, t) {
1402
- const s = w(n.alignment), {
1403
- renderDropdownMenu: r,
1414
+ function jt(n, e, t) {
1415
+ const s = T(n.alignment), {
1416
+ renderDropdownMenu: i,
1404
1417
  clearAllDropDownMenu: a
1405
- } = Rt(e, t), i = N("design-item-context"), g = N("toolbar-item-handler", () => {
1418
+ } = $t(e, t), r = N("design-item-context"), g = N("toolbar-item-handler", () => {
1406
1419
  });
1407
1420
  function f() {
1408
1421
  g && g();
@@ -1453,7 +1466,7 @@ function $t(n, e, t) {
1453
1466
  return y(C);
1454
1467
  };
1455
1468
  function k(C) {
1456
- const l = i.schema.buttons || i.schema.contents, o = l == null ? void 0 : l.findIndex((d) => d.id === C), c = o === -1 ? null : l[o];
1469
+ const l = r.schema.buttons || r.schema.contents, o = l == null ? void 0 : l.findIndex((d) => d.id === C), c = o === -1 ? null : l[o];
1457
1470
  return {
1458
1471
  index: o,
1459
1472
  toolbarItem: c
@@ -1467,10 +1480,10 @@ function $t(n, e, t) {
1467
1480
  } = k(l);
1468
1481
  if (o === -1)
1469
1482
  return;
1470
- const d = c.text || "按钮", T = M(), P = Object.assign({}, T, {
1483
+ const d = c.text || "按钮", w = M(), D = Object.assign({}, w, {
1471
1484
  text: d
1472
1485
  });
1473
- (j = i.schema.buttons) == null || j.push(P), f();
1486
+ (j = r.schema.buttons) == null || j.push(D), f();
1474
1487
  }
1475
1488
  function R(C, l) {
1476
1489
  const {
@@ -1479,13 +1492,13 @@ function $t(n, e, t) {
1479
1492
  } = k(l);
1480
1493
  if (o === -1)
1481
1494
  return;
1482
- const d = c.text || "按钮", T = M(), P = Object.assign({}, T, {
1495
+ const d = c.text || "按钮", w = M(), D = Object.assign({}, w, {
1483
1496
  text: d
1484
- }), j = i.schema.buttons[o].children || [];
1485
- j.push(P), i.schema.buttons[o].children = j, f();
1497
+ }), j = r.schema.buttons[o].children || [];
1498
+ j.push(D), r.schema.buttons[o].children = j, f();
1486
1499
  }
1487
1500
  function L(C, l) {
1488
- const o = i.schema.buttons || i.schema.contents, c = o == null ? void 0 : o.findIndex((d) => d.id === l);
1501
+ const o = r.schema.buttons || r.schema.contents, c = o == null ? void 0 : o.findIndex((d) => d.id === l);
1489
1502
  c !== -1 && (o.splice(c, 1), f());
1490
1503
  }
1491
1504
  function x(C) {
@@ -1520,7 +1533,7 @@ function $t(n, e, t) {
1520
1533
  class: "f-icon f-icon-plus-circle text-white mr-1"
1521
1534
  }, null), m("span", {
1522
1535
  style: "font-size:13px;margin:auto"
1523
- }, [le("新增子级")])])])]);
1536
+ }, [ue("新增子级")])])])]);
1524
1537
  }
1525
1538
  function B() {
1526
1539
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((l) => l.classList.remove("dgComponentFocused"));
@@ -1532,13 +1545,13 @@ function $t(n, e, t) {
1532
1545
  }
1533
1546
  function S(C) {
1534
1547
  var d;
1535
- const l = i.schema.buttons || i.schema.contents, o = l == null ? void 0 : l.findIndex((T) => T.id === C);
1548
+ const l = r.schema.buttons || r.schema.contents, o = l == null ? void 0 : l.findIndex((w) => w.id === C);
1536
1549
  if (o === -1)
1537
1550
  return;
1538
1551
  const c = l[o];
1539
- (d = i == null ? void 0 : i.setupContext) == null || d.emit("selectionChange", "response-toolbar-item", c);
1552
+ (d = r == null ? void 0 : r.setupContext) == null || d.emit("selectionChange", "response-toolbar-item", c);
1540
1553
  }
1541
- function D(C, l) {
1554
+ function P(C, l) {
1542
1555
  p(C), B(), v(C), p(C), b(C, l), S(l.id);
1543
1556
  }
1544
1557
  function $(C) {
@@ -1548,23 +1561,23 @@ function $t(n, e, t) {
1548
1561
  }, [m("div", {
1549
1562
  class: h(C),
1550
1563
  style: "display: flex;padding-right: 0.1rem;",
1551
- onClick: (l) => C.enable && D(l, C)
1564
+ onClick: (l) => C.enable && P(l, C)
1552
1565
  }, [x(C.id), e.shouldShowIcon(C) && m("i", {
1553
1566
  class: e.iconClass(C)
1554
1567
  }, null), m("span", null, [C.text]), m("i", {
1555
1568
  class: "f-icon f-icon-arrow-chevron-down",
1556
1569
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1557
- }, null)]), r(C)]);
1570
+ }, null)]), i(C)]);
1558
1571
  }
1559
- function V() {
1572
+ function _() {
1560
1573
  a();
1561
1574
  }
1562
1575
  return {
1563
1576
  renderToolbarDropdown: $,
1564
- clearAllDropDown: V
1577
+ clearAllDropDown: _
1565
1578
  };
1566
1579
  }
1567
- class re {
1580
+ class ie {
1568
1581
  constructor(e, t) {
1569
1582
  E(this, "componentId");
1570
1583
  E(this, "viewModelId");
@@ -1593,8 +1606,8 @@ class re {
1593
1606
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
1594
1607
  if (t) {
1595
1608
  if (!this.designViewModelField) {
1596
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1597
- this.designViewModelField = r.fields.find((a) => a.id === t);
1609
+ const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1610
+ this.designViewModelField = i.fields.find((a) => a.id === t);
1598
1611
  }
1599
1612
  e.updateOn = (s = this.designViewModelField) == null ? void 0 : s.updateOn;
1600
1613
  }
@@ -1656,11 +1669,11 @@ class re {
1656
1669
  const s = t && t.parent && t.parent.schema;
1657
1670
  if (!s)
1658
1671
  return;
1659
- const r = s.contents.findIndex((i) => i.id === e), a = ue(s.contents[r]);
1660
- s.contents.splice(r, 1), s.contents.splice(r, 0, a);
1672
+ const i = s.contents.findIndex((r) => r.id === e), a = oe(s.contents[i]);
1673
+ s.contents.splice(i, 1), s.contents.splice(i, 0, a);
1661
1674
  }
1662
1675
  }
1663
- class jt extends re {
1676
+ class Lt extends ie {
1664
1677
  constructor(e, t) {
1665
1678
  super(e, t);
1666
1679
  }
@@ -1743,18 +1756,18 @@ class jt extends re {
1743
1756
  };
1744
1757
  }
1745
1758
  }
1746
- function Lt(n, e) {
1759
+ function Ft(n, e) {
1747
1760
  const t = n.schema;
1748
1761
  function s(h) {
1749
1762
  return !1;
1750
1763
  }
1751
- function r(h, p) {
1764
+ function i(h, p) {
1752
1765
  return p.text = h.label, p;
1753
1766
  }
1754
1767
  function a() {
1755
1768
  return !1;
1756
1769
  }
1757
- function i() {
1770
+ function r() {
1758
1771
  return !1;
1759
1772
  }
1760
1773
  function g() {
@@ -1764,19 +1777,19 @@ function Lt(n, e) {
1764
1777
  return !0;
1765
1778
  }
1766
1779
  function u(h) {
1767
- return new jt(h, e).getPropertyConfig(t);
1780
+ return new Lt(h, e).getPropertyConfig(t);
1768
1781
  }
1769
1782
  return {
1770
1783
  canAccepts: s,
1771
1784
  checkCanAddComponent: g,
1772
- checkCanDeleteComponent: i,
1785
+ checkCanDeleteComponent: r,
1773
1786
  checkCanMoveComponent: a,
1774
1787
  hideNestedPaddingInDesginerView: f,
1775
- onResolveNewComponentSchema: r,
1788
+ onResolveNewComponentSchema: i,
1776
1789
  getPropsConfig: u
1777
1790
  };
1778
1791
  }
1779
- const Ft = {
1792
+ const Ot = {
1780
1793
  id: { type: String, default: "" },
1781
1794
  componentId: { type: String, default: "" },
1782
1795
  canAdd: { type: Boolean, default: !1 },
@@ -1789,12 +1802,12 @@ const Ft = {
1789
1802
  * 组件值
1790
1803
  */
1791
1804
  modelValue: { type: Object }
1792
- }, ce = w(0);
1793
- function Ot(n, e) {
1794
- const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), r = s.top >= t.top, a = s.top <= t.bottom;
1795
- return r && a;
1805
+ }, le = T(0);
1806
+ function Nt(n, e) {
1807
+ const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), i = s.top >= t.top, a = s.top <= t.bottom;
1808
+ return i && a;
1796
1809
  }
1797
- function Nt(n) {
1810
+ function _t(n) {
1798
1811
  if (!n)
1799
1812
  return;
1800
1813
  let e;
@@ -1805,25 +1818,25 @@ function Nt(n) {
1805
1818
  return;
1806
1819
  const s = e.querySelector(".component-btn-group");
1807
1820
  if (s) {
1808
- if (!Ot(e, n)) {
1821
+ if (!Nt(e, n)) {
1809
1822
  s.style.display = "none";
1810
1823
  return;
1811
1824
  }
1812
1825
  s.style.display = "";
1813
- const a = s.getBoundingClientRect(), i = s.querySelector("div");
1814
- if (i) {
1815
- const g = i.getBoundingClientRect();
1816
- i.style.top = a.top + "px", i.style.left = a.left - g.width + "px";
1826
+ const a = s.getBoundingClientRect(), r = s.querySelector("div");
1827
+ if (r) {
1828
+ const g = r.getBoundingClientRect();
1829
+ r.style.top = a.top + "px", r.style.left = a.left - g.width + "px";
1817
1830
  }
1818
1831
  }
1819
1832
  }
1820
1833
  function Vt(n, e, t) {
1821
1834
  var B;
1822
- const s = "", r = w();
1835
+ const s = "", i = T();
1823
1836
  function a() {
1824
1837
  return !0;
1825
1838
  }
1826
- function i() {
1839
+ function r() {
1827
1840
  return !1;
1828
1841
  }
1829
1842
  function g() {
@@ -1838,12 +1851,12 @@ function Vt(n, e, t) {
1838
1851
  function h(v) {
1839
1852
  if (!v || !v.value)
1840
1853
  return null;
1841
- const S = w(v == null ? void 0 : v.value.parent), D = h(S);
1842
- return D || null;
1854
+ const S = T(v == null ? void 0 : v.value.parent), P = h(S);
1855
+ return P || null;
1843
1856
  }
1844
1857
  function p(v = e) {
1845
- const { componentInstance: S, designerItemElementRef: D } = v;
1846
- return !S || !S.value ? null : S.value.canMove || S.value.canAdd || S.value.canDelete ? D : p(v.parent);
1858
+ const { componentInstance: S, designerItemElementRef: P } = v;
1859
+ return !S || !S.value ? null : S.value.canMove || S.value.canAdd || S.value.canDelete ? P : p(v.parent);
1847
1860
  }
1848
1861
  function b(v) {
1849
1862
  return !!t;
@@ -1856,10 +1869,10 @@ function Vt(n, e, t) {
1856
1869
  function k(v, S) {
1857
1870
  }
1858
1871
  function I(v) {
1859
- const { componentType: S } = v, D = N("designer-host-service");
1860
- let $ = J(S, v, D);
1861
- const V = S.toLowerCase().replace(/-/g, "_");
1862
- return $ && !$.id && $.type === S && ($.id = `${V}_${Math.random().toString().slice(2, 6)}`), $;
1872
+ const { componentType: S } = v, P = N("designer-host-service");
1873
+ let $ = J(S, v, P);
1874
+ const _ = S.toLowerCase().replace(/-/g, "_");
1875
+ return $ && !$.id && $.type === S && ($.id = `${_}_${Math.random().toString().slice(2, 6)}`), $;
1863
1876
  }
1864
1877
  function R(v) {
1865
1878
  }
@@ -1868,9 +1881,9 @@ function Vt(n, e, t) {
1868
1881
  }
1869
1882
  function x() {
1870
1883
  }
1871
- return r.value = {
1884
+ return i.value = {
1872
1885
  canMove: a(),
1873
- canSelectParent: i(),
1886
+ canSelectParent: r(),
1874
1887
  canAdd: f(),
1875
1888
  canDelete: g(),
1876
1889
  canNested: !u(),
@@ -1889,16 +1902,16 @@ function Vt(n, e, t) {
1889
1902
  onChildElementMovedOut: R,
1890
1903
  addNewChildComponentSchema: I,
1891
1904
  onRemoveComponent: x,
1892
- triggerBelongedComponentToMoveWhenMoved: w(!1),
1893
- triggerBelongedComponentToDeleteWhenDeleted: w(!1)
1894
- }, r;
1905
+ triggerBelongedComponentToMoveWhenMoved: T(!1),
1906
+ triggerBelongedComponentToDeleteWhenDeleted: T(!1)
1907
+ }, i;
1895
1908
  }
1896
- const we = /* @__PURE__ */ Z({
1909
+ const Te = /* @__PURE__ */ Z({
1897
1910
  name: "FDesignerInnerItem",
1898
- props: Ft,
1911
+ props: Ot,
1899
1912
  emits: ["selectionChange", "addComponent", "removeComponent"],
1900
1913
  setup(n, e) {
1901
- const t = w(n.canMove), s = w(n.canAdd), r = w(n.canDelete), a = w(!1), i = w(n.contentKey), g = w(n.childType), f = w(n.childLabel), u = w(n.modelValue), h = w(""), p = w(), b = N("canvas-dragula"), y = w(), M = N("design-item-context"), k = {
1914
+ const t = T(n.canMove), s = T(n.canAdd), i = T(n.canDelete), a = T(!1), r = T(n.contentKey), g = T(n.childType), f = T(n.childLabel), u = T(n.modelValue), h = T(""), p = T(), b = N("canvas-dragula"), y = T(), M = N("design-item-context"), k = {
1902
1915
  designerItemElementRef: p,
1903
1916
  componentInstance: y,
1904
1917
  schema: u.value,
@@ -1910,23 +1923,23 @@ const we = /* @__PURE__ */ Z({
1910
1923
  "farris-component": !0,
1911
1924
  // 受position-relative影响,整个容器的高度不能被撑起
1912
1925
  "flex-fill": n.id === "root-component",
1913
- "position-relative": t.value || r.value,
1926
+ "position-relative": t.value || i.value,
1914
1927
  "farris-nested": a.value,
1915
1928
  "can-move": t.value,
1916
1929
  "d-none": p.value && p.value.classList.contains("d-none")
1917
1930
  })), R = A(() => {
1918
1931
  const o = {};
1919
1932
  return h.value && h.value.split(";").reduce((c, d) => {
1920
- const [T, P] = d.split(":");
1921
- return T && (c[T] = P), c;
1933
+ const [w, D] = d.split(":");
1934
+ return w && (c[w] = D), c;
1922
1935
  }, o), o;
1923
1936
  });
1924
1937
  function L(o, c) {
1925
- if (M && M.schema[i.value]) {
1926
- const d = M.schema[i.value].findIndex((T) => T.id === c.id);
1938
+ if (M && M.schema[r.value]) {
1939
+ const d = M.schema[r.value].findIndex((w) => w.id === c.id);
1927
1940
  if (d > -1) {
1928
- const T = M.schema[i.value].length, P = M.schema[i.value][d % T];
1929
- M.designerItemElementRef.value.querySelector(`#${P.id}-design-item`), M.schema[i.value].splice(d, 1), ce.value++, e.emit("removeComponent");
1941
+ const w = M.schema[r.value].length, D = M.schema[r.value][d % w];
1942
+ M.designerItemElementRef.value.querySelector(`#${D.id}-design-item`), M.schema[r.value].splice(d, 1), le.value++, e.emit("removeComponent");
1930
1943
  }
1931
1944
  }
1932
1945
  }
@@ -1938,7 +1951,7 @@ const we = /* @__PURE__ */ Z({
1938
1951
  parentComponentInstance: y.value,
1939
1952
  targetPosition: -1
1940
1953
  }, d = y.value.addNewChildComponentSchema(c);
1941
- u.value[i.value].push(d), e.emit("addComponent");
1954
+ u.value[r.value].push(d), e.emit("addComponent");
1942
1955
  }
1943
1956
  }
1944
1957
  function B() {
@@ -1955,7 +1968,7 @@ const we = /* @__PURE__ */ Z({
1955
1968
  }, null)]);
1956
1969
  }
1957
1970
  function v(o) {
1958
- return r.value && m("div", {
1971
+ return i.value && m("div", {
1959
1972
  role: "button",
1960
1973
  class: "btn component-settings-button",
1961
1974
  title: "删除",
@@ -1976,7 +1989,7 @@ const we = /* @__PURE__ */ Z({
1976
1989
  class: "cmp_move f-icon f-icon-yxs_move"
1977
1990
  }, null)]);
1978
1991
  }
1979
- function D(o) {
1992
+ function P(o) {
1980
1993
  return m("div", {
1981
1994
  class: "component-btn-group",
1982
1995
  "data-noattach": "true"
@@ -1987,32 +2000,32 @@ const we = /* @__PURE__ */ Z({
1987
2000
  });
1988
2001
  function $(o) {
1989
2002
  const c = o.target;
1990
- Nt(c);
2003
+ _t(c);
1991
2004
  }
1992
- function V() {
2005
+ function _() {
1993
2006
  var o, c;
1994
2007
  (c = (o = u.value) == null ? void 0 : o.contents) != null && c.length && p.value && p.value.addEventListener("scroll", $);
1995
2008
  }
1996
2009
  function C() {
1997
- const o = p.value, c = w(o.children[1]);
2010
+ const o = p.value, c = T(o.children[1]);
1998
2011
  return Vt(c, k).value;
1999
2012
  }
2000
2013
  W(() => {
2001
2014
  if (p.value) {
2002
2015
  const o = p.value.querySelector(`[data-dragref='${u.value.id}-container']`);
2003
- y.value = o && o.componentInstance ? o.componentInstance.value : C(), b && o && b.attachComponents(o, u.value), a.value = y.value.canNested !== void 0 ? y.value.canNested : a.value, s.value = y.value.canAdd !== void 0 ? y.value.canAdd : s.value, r.value = y.value.canDelete !== void 0 ? y.value.canDelete : r.value, t.value = y.value.canMove !== void 0 ? y.value.canMove : t.value, h.value = y.value.styles || "", p.value && (p.value.componentInstance = y, p.value.designItemContext = k);
2016
+ y.value = o && o.componentInstance ? o.componentInstance.value : C(), b && o && b.attachComponents(o, u.value), a.value = y.value.canNested !== void 0 ? y.value.canNested : a.value, s.value = y.value.canAdd !== void 0 ? y.value.canAdd : s.value, i.value = y.value.canDelete !== void 0 ? y.value.canDelete : i.value, t.value = y.value.canMove !== void 0 ? y.value.canMove : t.value, h.value = y.value.styles || "", p.value && (p.value.componentInstance = y, p.value.designItemContext = k);
2004
2017
  }
2005
- V(), ce.value++;
2018
+ _(), le.value++;
2006
2019
  }), Ee(() => {
2007
2020
  p.value && p.value.removeEventListener("scroll", $);
2008
2021
  });
2009
2022
  function l(o) {
2010
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((T) => T.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2023
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((w) => w.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
2011
2024
  let c = k.designerItemElementRef;
2012
2025
  const d = p.value;
2013
2026
  if (d) {
2014
- const T = document.getElementsByClassName("dgComponentSelected");
2015
- T && T.length === 1 && T[0] === p.value || (Array.from(T).forEach((j) => j.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"), e.emit("selectionChange", u.value.type, u.value, n.componentId, y.value), c = y.value.getDraggableDesignItemElement(k), c && c.value && c.value.classList.add("dgComponentSelected"));
2027
+ const w = document.getElementsByClassName("dgComponentSelected");
2028
+ w && w.length === 1 && w[0] === p.value || (Array.from(w).forEach((j) => j.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"), e.emit("selectionChange", u.value.type, u.value, n.componentId, y.value), c = y.value.getDraggableDesignItemElement(k), c && c.value && c.value.classList.add("dgComponentSelected"));
2016
2029
  }
2017
2030
  $({
2018
2031
  target: c == null ? void 0 : c.value
@@ -2024,10 +2037,10 @@ const we = /* @__PURE__ */ Z({
2024
2037
  class: I.value,
2025
2038
  style: R.value,
2026
2039
  onClick: l
2027
- }, [D(u.value), e.slots.default && e.slots.default()]);
2040
+ }, [P(u.value), e.slots.default && e.slots.default()]);
2028
2041
  }
2029
2042
  });
2030
- class _t extends re {
2043
+ class qt extends ie {
2031
2044
  constructor(e, t) {
2032
2045
  super(e, t);
2033
2046
  }
@@ -2088,11 +2101,11 @@ class _t extends re {
2088
2101
  label: "onClick",
2089
2102
  name: "点击事件"
2090
2103
  }
2091
- ], s = this, r = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), a = {};
2104
+ ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), a = {};
2092
2105
  a[s.viewModelId] = {
2093
2106
  type: "events-editor",
2094
2107
  editor: {
2095
- initialData: r
2108
+ initialData: i
2096
2109
  }
2097
2110
  }, this.propertyConfig.categories.eventsEditor = {
2098
2111
  title: "事件",
@@ -2102,14 +2115,14 @@ class _t extends re {
2102
2115
  refreshPanelAfterChanged: !0,
2103
2116
  tabId: "commands",
2104
2117
  tabName: "交互",
2105
- setPropertyRelates(i, g) {
2106
- const f = i.propertyValue;
2118
+ setPropertyRelates(r, g) {
2119
+ const f = r.propertyValue;
2107
2120
  delete e[s.viewModelId], f && (f.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, f.events, f));
2108
2121
  }
2109
2122
  };
2110
2123
  }
2111
2124
  }
2112
- class qt extends re {
2125
+ class zt extends ie {
2113
2126
  constructor(e, t) {
2114
2127
  super(e, t);
2115
2128
  }
@@ -2186,11 +2199,11 @@ class qt extends re {
2186
2199
  label: "onClick",
2187
2200
  name: "点击事件"
2188
2201
  }
2189
- ], s = this, r = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), a = {};
2202
+ ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), a = {};
2190
2203
  a[s.viewModelId] = {
2191
2204
  type: "events-editor",
2192
2205
  editor: {
2193
- initialData: r
2206
+ initialData: i
2194
2207
  }
2195
2208
  }, this.propertyConfig.categories.eventsEditor = {
2196
2209
  title: "事件",
@@ -2200,57 +2213,57 @@ class qt extends re {
2200
2213
  refreshPanelAfterChanged: !0,
2201
2214
  tabId: "commands",
2202
2215
  tabName: "交互",
2203
- setPropertyRelates(i, g) {
2204
- const f = i.propertyValue;
2216
+ setPropertyRelates(r, g) {
2217
+ const f = r.propertyValue;
2205
2218
  delete e[s.viewModelId], f && (f.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, f.events, f));
2206
2219
  }
2207
2220
  };
2208
2221
  }
2209
2222
  }
2210
- function zt(n, e) {
2223
+ function Ut(n, e) {
2211
2224
  function t(g) {
2212
2225
  return !1;
2213
2226
  }
2214
2227
  function s() {
2215
2228
  return !1;
2216
2229
  }
2217
- function r() {
2230
+ function i() {
2218
2231
  return !0;
2219
2232
  }
2220
2233
  function a() {
2221
2234
  return !1;
2222
2235
  }
2223
- function i(g) {
2236
+ function r(g) {
2224
2237
  let f;
2225
2238
  switch (n.schema.type) {
2226
2239
  case "tab-toolbar-item":
2227
- f = new _t(g, e);
2240
+ f = new qt(g, e);
2228
2241
  break;
2229
2242
  default:
2230
- f = new qt(g, e);
2243
+ f = new zt(g, e);
2231
2244
  }
2232
2245
  return f.getPropertyConfig(n.schema);
2233
2246
  }
2234
2247
  return {
2235
2248
  canAccepts: t,
2236
2249
  checkCanMoveComponent: s,
2237
- checkCanDeleteComponent: r,
2250
+ checkCanDeleteComponent: i,
2238
2251
  checkCanAddComponent: a,
2239
- getPropsConfig: i
2252
+ getPropsConfig: r
2240
2253
  };
2241
2254
  }
2242
- const Ut = /* @__PURE__ */ Z({
2255
+ const Ht = /* @__PURE__ */ Z({
2243
2256
  name: "FResponseToolbarItemDesign",
2244
2257
  props: Ce,
2245
2258
  emits: ["Click"],
2246
2259
  setup(n, e) {
2247
- w(), w();
2248
- const t = w(n.alignment), s = {
2260
+ T(), T();
2261
+ const t = T(n.alignment), s = {
2249
2262
  id: "__more_buttons__",
2250
2263
  text: "More"
2251
- }, r = w(new K(s));
2252
- A(() => r.value.children.length > 0);
2253
- const a = w(), i = N("designer-host-service"), g = N("design-item-context"), f = zt(g, i), u = de(a, g, f);
2264
+ }, i = T(new K(s));
2265
+ A(() => i.value.children.length > 0);
2266
+ const a = T(), r = N("designer-host-service"), g = N("design-item-context"), f = Ut(g, r), u = de(a, g, f);
2254
2267
  N("toolbar-item-handler", () => {
2255
2268
  }), W(() => {
2256
2269
  a.value.componentInstance = u;
@@ -2288,19 +2301,19 @@ const Ut = /* @__PURE__ */ Z({
2288
2301
  class: h()
2289
2302
  }, null), n.text])]);
2290
2303
  }
2291
- }), Ht = /* @__PURE__ */ Z({
2304
+ }), Wt = /* @__PURE__ */ Z({
2292
2305
  name: "FResponseToolbarDesign",
2293
- props: kt,
2306
+ props: Et,
2294
2307
  emits: ["Click"],
2295
2308
  setup(n, e) {
2296
- const t = w(n.items);
2297
- let s = new Array(t.value.length).fill(w());
2298
- const r = w(), a = w(), i = w(n.alignment), g = {
2309
+ const t = T(n.items);
2310
+ let s = new Array(t.value.length).fill(T());
2311
+ const i = T(), a = T(), r = T(n.alignment), g = {
2299
2312
  id: "__more_buttons__",
2300
2313
  text: "More"
2301
- }, f = w(new K(g)), u = It();
2314
+ }, f = T(new K(g)), u = Rt();
2302
2315
  A(() => f.value.children.length > 0);
2303
- const h = w(), p = N("designer-host-service"), b = N("design-item-context"), y = Lt(b, p), M = de(h, b, y), k = N("toolbar-item-handler", () => {
2316
+ const h = T(), p = N("designer-host-service"), b = N("design-item-context"), y = Ft(b, p), M = de(h, b, y), k = N("toolbar-item-handler", () => {
2304
2317
  });
2305
2318
  W(() => {
2306
2319
  h.value.componentInstance = M;
@@ -2315,67 +2328,67 @@ const Ut = /* @__PURE__ */ Z({
2315
2328
  }, n.customClass)), L = A(() => ({
2316
2329
  "d-flex": !0,
2317
2330
  "flex-nowrap": !0,
2318
- "justify-content-end": i.value === "right",
2319
- "justify-content-start": i.value === "left"
2331
+ "justify-content-end": r.value === "right",
2332
+ "justify-content-start": r.value === "left"
2320
2333
  })), {
2321
2334
  renderToolbarDropdown: x,
2322
2335
  clearAllDropDown: B
2323
- } = $t(n, u, M);
2336
+ } = jt(n, u, M);
2324
2337
  function v() {
2325
2338
  t.value.filter((o) => o.children && o.children.length > 0).forEach((o) => {
2326
2339
  o.expanded = !1;
2327
2340
  }), f.value.expanded = !1, B();
2328
2341
  }
2329
- const S = /* @__PURE__ */ new Map(), D = [];
2342
+ const S = /* @__PURE__ */ new Map(), P = [];
2330
2343
  function $(o) {
2331
2344
  const c = a.value;
2332
2345
  let d = o;
2333
- const T = Array.from(c.children), P = T[T.length - 1].id === "__more_buttons__" ? T[T.length - 1] : null;
2334
- if (P) {
2335
- const F = P.computedStyleMap().get("margin-left"), O = P.computedStyleMap().get("margin-right"), U = (F ? F.value : 0) + P.getBoundingClientRect().width + (O ? O.value : 0);
2346
+ const w = Array.from(c.children), D = w[w.length - 1].id === "__more_buttons__" ? w[w.length - 1] : null;
2347
+ if (D) {
2348
+ const F = D.computedStyleMap().get("margin-left"), O = D.computedStyleMap().get("margin-right"), U = (F ? F.value : 0) + D.getBoundingClientRect().width + (O ? O.value : 0);
2336
2349
  d -= U;
2337
2350
  }
2338
- const j = T.filter((F) => F.id !== "__more_buttons__");
2351
+ const j = w.filter((F) => F.id !== "__more_buttons__");
2339
2352
  for (const F of j) {
2340
2353
  const O = F.computedStyleMap().get("margin-left"), U = F.computedStyleMap().get("margin-right"), Q = (O ? O.value : 0) + F.getBoundingClientRect().width + (U ? U.value : 0);
2341
- d < Q ? (S.set(F.id, !0), D.push({
2354
+ d < Q ? (S.set(F.id, !0), P.push({
2342
2355
  id: F.id,
2343
2356
  width: Q
2344
2357
  })) : d -= Q;
2345
2358
  }
2346
- if (D.length)
2347
- for (let F = D.length - 1; F >= 0; F--) {
2348
- const O = D[F].width;
2359
+ if (P.length)
2360
+ for (let F = P.length - 1; F >= 0; F--) {
2361
+ const O = P[F].width;
2349
2362
  if (d >= O)
2350
- d -= O, S.delete(D[F].id), D.pop();
2363
+ d -= O, S.delete(P[F].id), P.pop();
2351
2364
  else
2352
2365
  break;
2353
2366
  }
2354
- const _ = Object.assign({}, f.value);
2355
- _.children = [];
2356
- const G = new K(_), z = t.value.reduce((F, O) => (S.has(O.id) && G.children.push(O), O.visible = !S.has(O.id), F.push(O), F), []);
2367
+ const V = Object.assign({}, f.value);
2368
+ V.children = [];
2369
+ const G = new K(V), z = t.value.reduce((F, O) => (S.has(O.id) && G.children.push(O), O.visible = !S.has(O.id), F.push(O), F), []);
2357
2370
  f.value = G, t.value = z;
2358
2371
  }
2359
- const V = new ResizeObserver((o) => {
2372
+ const _ = new ResizeObserver((o) => {
2360
2373
  if (o.length) {
2361
- const d = o[0].contentRect.width, P = a.value.getBoundingClientRect().width;
2362
- (d < P || D.length) && $(d);
2374
+ const d = o[0].contentRect.width, D = a.value.getBoundingClientRect().width;
2375
+ (d < D || P.length) && $(d);
2363
2376
  }
2364
2377
  });
2365
2378
  W(() => {
2366
- const o = r.value;
2367
- V.observe(o), document.body.addEventListener("click", v);
2379
+ const o = i.value;
2380
+ _.observe(o), document.body.addEventListener("click", v);
2368
2381
  }), Be(() => {
2369
- V.disconnect(), document.body.removeEventListener("click", v);
2382
+ _.disconnect(), document.body.removeEventListener("click", v);
2370
2383
  }), X(() => n.items, () => {
2371
2384
  t.value = n.items;
2372
2385
  }, {
2373
2386
  deep: !0
2374
2387
  }), X(t, (o) => {
2375
- s = new Array(t.value.length).fill(w());
2388
+ s = new Array(t.value.length).fill(T());
2376
2389
  });
2377
- function C(o, c, d, T) {
2378
- b && b.setupContext && b.setupContext.emit("selectionChange", o, c, d, T);
2390
+ function C(o, c, d, w) {
2391
+ b && b.setupContext && b.setupContext.emit("selectionChange", o, c, d, w);
2379
2392
  }
2380
2393
  function l() {
2381
2394
  const o = a.value.querySelector(".dgComponentFocused.dgComponentSelected");
@@ -2386,13 +2399,13 @@ const Ut = /* @__PURE__ */ Z({
2386
2399
  "data-dragref": `${b.schema.id}-container`,
2387
2400
  class: R.value
2388
2401
  }, [m("div", {
2389
- ref: r,
2402
+ ref: i,
2390
2403
  class: L.value
2391
2404
  }, [m("div", {
2392
2405
  ref: a,
2393
2406
  class: "d-inline-block f-response-content",
2394
2407
  style: "white-space: nowrap;"
2395
- }, [t.value.map((o, c) => m(we, {
2408
+ }, [t.value.map((o, c) => m(Te, {
2396
2409
  ref: s[c],
2397
2410
  class: "p-0 display-inline-block",
2398
2411
  modelValue: o,
@@ -2409,7 +2422,7 @@ const Ut = /* @__PURE__ */ Z({
2409
2422
  }, {
2410
2423
  default: () => {
2411
2424
  var d;
2412
- return [m(Ut, {
2425
+ return [m(Ht, {
2413
2426
  id: o.id,
2414
2427
  disabled: o.disabled,
2415
2428
  text: o.text,
@@ -2423,39 +2436,39 @@ const Ut = /* @__PURE__ */ Z({
2423
2436
  }
2424
2437
  });
2425
2438
  function Se(n, e) {
2426
- const t = A(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), s = w(n.buttons), r = w(e.schema.toolbar), a = e.schema.id, i = `${a}-toolbar`, g = A(() => n.buttonPosition === "inHead" ? "right" : "left");
2439
+ const t = A(() => "f-section-toolbar" + (n.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), s = T(n.buttons), i = T(e.schema.toolbar), a = e.schema.id, r = `${a}-toolbar`, g = A(() => n.buttonPosition === "inHead" ? "right" : "left");
2427
2440
  function f(u, h, p, b) {
2428
2441
  var y;
2429
2442
  (y = e.setupContext) == null || y.emit("selectionChange", u, h, p, b);
2430
2443
  }
2431
- return m(Ie, null, [r.value ? m("div", {
2444
+ return m(Ie, null, [i.value ? m("div", {
2432
2445
  class: t.value
2433
2446
  }, [m("div", {
2434
2447
  class: "w-100",
2435
2448
  style: "flex:1"
2436
- }, [m(we, {
2437
- modelValue: r.value,
2438
- "onUpdate:modelValue": (u) => r.value = u,
2449
+ }, [m(Te, {
2450
+ modelValue: i.value,
2451
+ "onUpdate:modelValue": (u) => i.value = u,
2439
2452
  class: "w-100 position-relative",
2440
2453
  canAdd: !0,
2441
2454
  childType: "section-toolbar-item",
2442
2455
  childLabel: "按钮",
2443
2456
  contentKey: "buttons",
2444
- id: i,
2457
+ id: r,
2445
2458
  onSelectionChange: f,
2446
2459
  componentId: a
2447
2460
  }, {
2448
- default: () => [m(Ht, {
2461
+ default: () => [m(Wt, {
2449
2462
  customClass: "d-block",
2450
2463
  items: s.value,
2451
2464
  alignment: g.value
2452
2465
  }, null)]
2453
2466
  })])]) : ""]);
2454
2467
  }
2455
- function Wt(n, e, t, s, r, a, i) {
2468
+ function Gt(n, e, t, s, i, a, r) {
2456
2469
  const g = A(() => n.buttonPosition), {
2457
2470
  onClickMaxMinIcon: f
2458
- } = ge(s, r, a), u = A(() => !!n.subTitle), h = A(() => n.enableMaximize), p = A(() => n.enableAccordion !== ""), b = A(() => {
2471
+ } = ge(s, i, a), u = A(() => !!n.subTitle), h = A(() => n.enableMaximize), p = A(() => n.enableAccordion !== ""), b = A(() => {
2459
2472
  const x = {
2460
2473
  "f-section-header": !0
2461
2474
  };
@@ -2503,7 +2516,7 @@ function Wt(n, e, t, s, r, a, i) {
2503
2516
  const B = {
2504
2517
  "f-content": !0
2505
2518
  };
2506
- return n.headerContentClass && n.headerContentClass.split(" ").reduce((S, D) => (S[D] = !0, S), B), B;
2519
+ return n.headerContentClass && n.headerContentClass.split(" ").reduce((S, P) => (S[P] = !0, S), B), B;
2507
2520
  });
2508
2521
  return e.slots.headerContent ? m("div", {
2509
2522
  class: x.value
@@ -2512,20 +2525,20 @@ function Wt(n, e, t, s, r, a, i) {
2512
2525
  function L() {
2513
2526
  return m("div", {
2514
2527
  class: b.value
2515
- }, [e.slots.headerTitle ? e.slots.headerTitle() : I(), R(), g.value === "inHead" && Se(n, i), (h.value || p.value) && M()]);
2528
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : I(), R(), g.value === "inHead" && Se(n, r), (h.value || p.value) && M()]);
2516
2529
  }
2517
2530
  return () => n.showHeader && (e.slots.header ? k() : L());
2518
2531
  }
2519
- const Gt = /* @__PURE__ */ Z({
2532
+ const Qt = /* @__PURE__ */ Z({
2520
2533
  name: "FSectionDesign",
2521
- props: se,
2534
+ props: re,
2522
2535
  emits: [],
2523
2536
  setup(n, e) {
2524
- const t = w(), s = w(), r = w(), a = N("designer-host-service"), i = N("design-item-context"), g = at(i, a), f = ct(t, i, g);
2537
+ const t = T(), s = T(), i = T(), a = N("designer-host-service"), r = N("design-item-context"), g = ct(r, a), f = lt(t, r, g);
2525
2538
  f.value.styles = "display: inherit;", W(() => {
2526
2539
  t.value.componentInstance = f;
2527
2540
  }), e.expose(f.value);
2528
- const u = w(n.customClass), h = A(() => n.enableAccordion), p = w(n.expandStatus), b = A(() => n.buttonPosition), y = w(!1), M = Wt(n, e, p, s, r, y, i), k = A(() => {
2541
+ const u = T(n.customClass), h = A(() => n.enableAccordion), p = T(n.expandStatus), b = A(() => n.buttonPosition), y = T(!1), M = Gt(n, e, p, s, i, y, r), k = A(() => {
2529
2542
  const B = {
2530
2543
  "f-section": !0,
2531
2544
  "f-section-accordion": h.value === "default",
@@ -2552,8 +2565,8 @@ const Gt = /* @__PURE__ */ Z({
2552
2565
  return m("div", {
2553
2566
  class: I.value,
2554
2567
  ref: t,
2555
- "data-dragref": `${i.schema.id}-container`
2556
- }, [b.value === "inContent" && Se(n, i), e.slots.default && e.slots.default()]);
2568
+ "data-dragref": `${r.schema.id}-container`
2569
+ }, [b.value === "inContent" && Se(n, r), e.slots.default && e.slots.default()]);
2557
2570
  }
2558
2571
  return () => m("div", {
2559
2572
  class: k.value,
@@ -2561,7 +2574,7 @@ const Gt = /* @__PURE__ */ Z({
2561
2574
  style: n.customStyle
2562
2575
  }, [M(), L(), x()]);
2563
2576
  }
2564
- }), Qt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Jt = "section-toolbar-item", Xt = "A Farris Toolbar Item Component", Yt = "object", Kt = {
2577
+ }), Zt = "https://json-schema.org/draft/2020-12/schema", Jt = "https://farris-design.gitee.io/section-toolbar-item.schema.json", Xt = "section-toolbar-item", Yt = "A Farris Toolbar Item Component", Kt = "object", en = {
2565
2578
  id: {
2566
2579
  description: "The unique identifier for a Response Toolbar",
2567
2580
  type: "string"
@@ -2599,32 +2612,32 @@ const Gt = /* @__PURE__ */ Z({
2599
2612
  type: "string",
2600
2613
  default: ""
2601
2614
  }
2602
- }, en = [
2615
+ }, tn = [
2603
2616
  "id",
2604
2617
  "type",
2605
2618
  "text"
2606
- ], tn = {
2607
- $schema: Qt,
2608
- $id: Zt,
2609
- title: Jt,
2610
- description: Xt,
2611
- type: Yt,
2612
- properties: Kt,
2613
- required: en
2614
- }, nn = {
2619
+ ], nn = {
2620
+ $schema: Zt,
2621
+ $id: Jt,
2622
+ title: Xt,
2623
+ description: Yt,
2624
+ type: Kt,
2625
+ properties: en,
2626
+ required: tn
2627
+ }, on = {
2615
2628
  text: { type: String, default: "" },
2616
2629
  icon: { type: String, default: "" }
2617
- }, on = ee(nn, tn);
2630
+ }, sn = ee(on, nn);
2618
2631
  Y.register = (n, e, t, s) => {
2619
2632
  n.section = Y, e.section = he;
2620
2633
  };
2621
2634
  Y.registerDesigner = (n, e, t) => {
2622
- n.section = Gt, e.section = he, e["section-toolbar-item"] = on;
2635
+ n.section = Qt, e.section = he, e["section-toolbar-item"] = sn;
2623
2636
  };
2624
- const pn = $e(Y);
2637
+ const fn = $e(Y);
2625
2638
  export {
2626
2639
  Y as Section,
2627
- pn as default,
2640
+ fn as default,
2628
2641
  he as propsResolver,
2629
- se as sectionProps
2642
+ re as sectionProps
2630
2643
  };