@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,51 +1,65 @@
1
1
  var Ie = Object.defineProperty;
2
2
  var Ae = (o, e, t) => e in o ? Ie(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var R = (o, e, t) => Ae(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as W, ref as M, computed as F, watch as z, createVNode as m, createTextVNode as X, getCurrentInstance as he, onMounted as G, onUnmounted as be, inject as V, provide as Oe, onBeforeUnmount as je, withModifiers as _e } from "vue";
5
- import { isPlainObject as ue, cloneDeep as ye } from "lodash-es";
4
+ import { defineComponent as U, ref as M, computed as F, watch as z, createVNode as g, createTextVNode as X, getCurrentInstance as be, onMounted as G, onUnmounted as ye, inject as V, provide as Oe, onBeforeUnmount as je, withModifiers as _e } from "vue";
5
+ import { isPlainObject as pe, cloneDeep as re } from "lodash-es";
6
6
  import $e from "../response-toolbar/index.esm.js";
7
7
  import { getCustomClass as Z, withInstall as Fe } from "../common/index.esm.js";
8
8
  import { useDesignerInnerComponent as ve } from "../designer-canvas/index.esm.js";
9
9
  const Ce = {}, we = {};
10
- function re(o) {
11
- const { properties: e, title: t, ignore: s } = o, i = s && Array.isArray(s), u = Object.keys(e).reduce((d, g) => ((!i || !s.find((w) => w === g)) && (d[g] = e[g].type === "object" && e[g].properties ? re(e[g]) : ye(e[g].default)), d), {});
12
- if (t && (!i || !s.find((d) => d === "id"))) {
10
+ function ie(o) {
11
+ const { properties: e, title: t, ignore: s } = o, r = s && Array.isArray(s), u = Object.keys(e).reduce((d, m) => ((!r || !s.find((w) => w === m)) && (d[m] = e[m].type === "object" && e[m].properties ? ie(e[m]) : re(e[m].default)), d), {});
12
+ if (t && (!r || !s.find((d) => d === "id"))) {
13
13
  const d = t.toLowerCase().replace(/-/g, "_");
14
14
  u.id = `${d}_${Math.random().toString().slice(2, 6)}`;
15
15
  }
16
16
  return u;
17
17
  }
18
+ function Ne(o) {
19
+ const { properties: e, title: t, required: s } = o;
20
+ if (s && Array.isArray(s)) {
21
+ const r = s.reduce((u, d) => (u[d] = e[d].type === "object" && e[d].properties ? ie(e[d]) : re(e[d].default), u), {});
22
+ if (t && s.find((u) => u === "id")) {
23
+ const u = t.toLowerCase().replace(/-/g, "_");
24
+ r.id = `${u}_${Math.random().toString().slice(2, 6)}`;
25
+ }
26
+ return r;
27
+ }
28
+ return {
29
+ type: t
30
+ };
31
+ }
18
32
  function Y(o, e = {}, t) {
19
33
  const s = Ce[o];
20
34
  if (s) {
21
- let i = re(s);
35
+ let r = Ne(s);
22
36
  const u = we[o];
23
- return i = u ? u({ getSchemaByType: Y }, i, e, t) : i, i;
37
+ return r = u ? u({ getSchemaByType: Y }, r, e, t) : r, r;
24
38
  }
25
39
  return null;
26
40
  }
27
- function Ne(o, e) {
28
- const t = re(e);
29
- return Object.keys(t).reduce((s, i) => (s[i] && ue(s[i]) && ue(o[i] || !o[i]) ? Object.assign(s[i], o[i] || {}) : s[i] = o[i], s), t), t;
30
- }
31
41
  function Le(o, e) {
32
- return Object.keys(o).filter((s) => o[s] != null).reduce((s, i) => {
33
- if (e.has(i)) {
34
- const u = e.get(i);
42
+ const t = ie(e);
43
+ return Object.keys(t).reduce((s, r) => (Object.prototype.hasOwnProperty.call(o, r) && (s[r] && pe(s[r]) && pe(o[r] || !o[r]) ? Object.assign(s[r], o[r] || {}) : s[r] = o[r]), s), t), t;
44
+ }
45
+ function Ve(o, e) {
46
+ return Object.keys(o).filter((s) => o[s] != null).reduce((s, r) => {
47
+ if (e.has(r)) {
48
+ const u = e.get(r);
35
49
  if (typeof u == "string")
36
- s[u] = o[i];
50
+ s[u] = o[r];
37
51
  else {
38
- const d = u(i, o[i], o);
52
+ const d = u(r, o[r], o);
39
53
  Object.assign(s, d);
40
54
  }
41
55
  } else
42
- s[i] = o[i];
56
+ s[r] = o[r];
43
57
  return s;
44
58
  }, {});
45
59
  }
46
- function Ve(o, e, t = /* @__PURE__ */ new Map()) {
47
- const s = Ne(o, e);
48
- return Le(s, t);
60
+ function qe(o, e, t = /* @__PURE__ */ new Map()) {
61
+ const s = Le(o, e);
62
+ return Ve(s, t);
49
63
  }
50
64
  function Ue(o = {}) {
51
65
  function e(h, b, c, l) {
@@ -70,7 +84,7 @@ function Ue(o = {}) {
70
84
  ["getProperty", t]
71
85
  ]);
72
86
  Object.keys(o).reduce((h, b) => (h.set(b, o[b]), h), s);
73
- function i(h, b) {
87
+ function r(h, b) {
74
88
  const c = h;
75
89
  return typeof b == "number" ? [{ target: c, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: c, operator: "getProperty", param: h, value: !!b }] : typeof b == "object" ? Object.keys(b).map((l) => {
76
90
  if (l === "length")
@@ -81,7 +95,7 @@ function Ue(o = {}) {
81
95
  }
82
96
  function u(h) {
83
97
  return Object.keys(h).reduce((c, l) => {
84
- const f = i(l, h[l]);
98
+ const f = r(l, h[l]);
85
99
  return c.push(...f), c;
86
100
  }, []);
87
101
  }
@@ -92,11 +106,11 @@ function Ue(o = {}) {
92
106
  }
93
107
  return !1;
94
108
  }
95
- function g(h, b) {
109
+ function m(h, b) {
96
110
  return u(h).reduce((f, v) => f && d(v, b), !0);
97
111
  }
98
112
  function w(h, b) {
99
- const c = Object.keys(h), l = c.includes("allOf"), f = c.includes("anyOf"), v = l || f, j = (v ? h[v ? l ? "allOf" : "anyOf" : "allOf"] : [h]).map((D) => g(D, b));
113
+ const c = Object.keys(h), l = c.includes("allOf"), f = c.includes("anyOf"), v = l || f, j = (v ? h[v ? l ? "allOf" : "anyOf" : "allOf"] : [h]).map((T) => m(T, b));
100
114
  return l ? !j.includes(!1) : j.includes(!0);
101
115
  }
102
116
  return { parseValueSchema: w };
@@ -141,45 +155,45 @@ const ee = {
141
155
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
142
156
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
143
157
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
144
- }, We = {}, qe = {};
158
+ }, We = {}, He = {};
145
159
  Ue();
146
- function ie(o, e, t = /* @__PURE__ */ new Map(), s = (d, g, w, h) => g, i = {}, u = (d) => d) {
147
- return Ce[e.title] = e, we[e.title] = s, We[e.title] = i, qe[e.title] = u, (d = {}) => {
148
- const g = Ve(d, e, t), w = Object.keys(o).reduce((h, b) => (h[b] = o[b].default, h), {});
149
- return Object.assign(w, g);
160
+ function ae(o, e, t = /* @__PURE__ */ new Map(), s = (d, m, w, h) => m, r = {}, u = (d) => d) {
161
+ return Ce[e.title] = e, we[e.title] = s, We[e.title] = r, He[e.title] = u, (d = {}) => {
162
+ const m = qe(d, e, t), w = Object.keys(o).reduce((h, b) => (h[b] = o[b].default, h), {});
163
+ return Object.assign(w, m);
150
164
  };
151
165
  }
152
166
  function Pe(o, e) {
153
167
  return { customClass: e.class, customStyle: e.style };
154
168
  }
155
- function He(o, e) {
156
- var s, i;
169
+ function ze(o, e) {
170
+ var s, r;
157
171
  const t = [];
158
172
  return e == null || e.buttons.map((u) => {
159
173
  const d = {};
160
- Object.keys(u).map((g) => {
174
+ Object.keys(u).map((m) => {
161
175
  var w;
162
- g === "appearance" ? d.class = ((w = u[g]) == null ? void 0 : w.class) || "" : d[g] = u[g];
176
+ m === "appearance" ? d.class = ((w = u[m]) == null ? void 0 : w.class) || "" : d[m] = u[m];
163
177
  }), t.push(d);
164
- }), (s = e.appearance) != null && s.class ? { buttons: t, buttonClass: (i = e.appearance) == null ? void 0 : i.class } : { buttons: t };
178
+ }), (s = e.appearance) != null && s.class ? { buttons: t, buttonClass: (r = e.appearance) == null ? void 0 : r.class } : { buttons: t };
165
179
  }
166
- function ze() {
180
+ function Ge() {
167
181
  function o(e, t) {
168
- var g;
169
- const s = (g = e.toolbar) == null ? void 0 : g.buttons;
182
+ var m;
183
+ const s = (m = e.toolbar) == null ? void 0 : m.buttons;
170
184
  if (!s || s.length < 1)
171
185
  return null;
172
- const [i, u] = t.payloads, d = s.find((w) => w.id === u);
186
+ const [r, u] = t.payloads, d = s.find((w) => w.id === u);
173
187
  return d ? d.onClick || d.click : null;
174
188
  }
175
189
  return {
176
190
  resolve: o
177
191
  };
178
192
  }
179
- const Ge = /* @__PURE__ */ new Map([
193
+ const Qe = /* @__PURE__ */ new Map([
180
194
  ["appearance", Pe],
181
- ["toolbar", He]
182
- ]), Qe = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-design.gitee.io/page-header.schema.json", Xe = "page-header", Ye = "A Farris Container Component", Ze = "object", Ke = {
195
+ ["toolbar", ze]
196
+ ]), Je = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-design.gitee.io/page-header.schema.json", Ye = "page-header", Ze = "A Farris Container Component", Ke = "object", et = {
183
197
  id: {
184
198
  description: "The unique identifier for a Page Header",
185
199
  type: "string"
@@ -297,18 +311,22 @@ const Ge = /* @__PURE__ */ new Map([
297
311
  type: "boolean",
298
312
  default: !1
299
313
  }
300
- }, et = {
301
- $schema: Qe,
302
- $id: Je,
303
- title: Xe,
304
- description: Ye,
305
- type: Ze,
306
- properties: Ke
314
+ }, tt = [
315
+ "id",
316
+ "type"
317
+ ], nt = {
318
+ $schema: Je,
319
+ $id: Xe,
320
+ title: Ye,
321
+ description: Ze,
322
+ type: Ke,
323
+ properties: et,
324
+ required: tt
307
325
  };
308
- function tt(o, e, t) {
326
+ function ot(o, e, t) {
309
327
  return e.title = "标题", e;
310
328
  }
311
- const ae = {
329
+ const ce = {
312
330
  /** 组件自定义样式 */
313
331
  customClass: { type: String, default: "" },
314
332
  /** 是否显示图标 */
@@ -337,49 +355,49 @@ const ae = {
337
355
  prePaginationDisabled: { type: Boolean, default: !0 },
338
356
  /** 向后翻页是否禁用 */
339
357
  nextPaginationDisabled: { type: Boolean, default: !1 }
340
- }, nt = Object.assign({}, ae, {
358
+ }, st = Object.assign({}, ce, {
341
359
  componentId: { type: String, default: "" }
342
- }), pe = ie(ae, et, Ge, tt), ot = ze(), oe = /* @__PURE__ */ W({
360
+ }), fe = ae(ce, nt, Qe, ot), rt = Ge(), oe = /* @__PURE__ */ U({
343
361
  name: "FPageHeader",
344
- props: ae,
362
+ props: ce,
345
363
  emits: ["click", "prePaginationClick", "nextPaginationClick"],
346
364
  setup(o, e) {
347
- const t = M(o.buttons), s = (D, I) => {
348
- e.emit("click", D, I);
365
+ const t = M(o.buttons), s = (T, I) => {
366
+ e.emit("click", T, I);
349
367
  };
350
- function i(D, I) {
351
- D && I && I.split(" ").reduce((k, y) => (k[y] = !0, k), D);
368
+ function r(T, I) {
369
+ T && I && I.split(" ").reduce((k, y) => (k[y] = !0, k), T);
352
370
  }
353
371
  const u = F(() => {
354
- const D = {
372
+ const T = {
355
373
  "f-page-header": !0
356
374
  };
357
- return i(D, o.customClass), D;
375
+ return r(T, o.customClass), T;
358
376
  }), d = F(() => {
359
- const D = {
377
+ const T = {
360
378
  "f-title-icon": !0
361
379
  };
362
- return i(D, o.iconClass), D;
363
- }), g = F(() => {
364
- const D = {
380
+ return r(T, o.iconClass), T;
381
+ }), m = F(() => {
382
+ const T = {
365
383
  "f-icon": !0
366
384
  };
367
- return i(D, o.icon), D;
385
+ return r(T, o.icon), T;
368
386
  }), w = F(() => {
369
- const D = {
387
+ const T = {
370
388
  "f-title": !0
371
389
  };
372
- return i(D, o.titleContentClass), D;
390
+ return r(T, o.titleContentClass), T;
373
391
  }), h = F(() => {
374
- const D = {
392
+ const T = {
375
393
  "f-content": !0
376
394
  };
377
- return i(D, o.contentClass), D;
395
+ return r(T, o.contentClass), T;
378
396
  }), b = F(() => {
379
- const D = {
397
+ const T = {
380
398
  "f-content": !0
381
399
  };
382
- return i(D, o.downContentClass), D;
400
+ return r(T, o.downContentClass), T;
383
401
  }), c = F(() => ({
384
402
  "f-icon f-icon-arrow-w": !0,
385
403
  "f-state-disabled": o.prePaginationDisabled
@@ -387,71 +405,71 @@ const ae = {
387
405
  "f-icon f-icon-arrow-e": !0,
388
406
  "f-state-disabled": o.nextPaginationDisabled
389
407
  }));
390
- function f(D) {
391
- o.prePaginationDisabled || e.emit("prePaginationClick", D);
408
+ function f(T) {
409
+ o.prePaginationDisabled || e.emit("prePaginationClick", T);
392
410
  }
393
- function v(D) {
394
- o.nextPaginationDisabled || e.emit("nextPaginationClick", D);
411
+ function v(T) {
412
+ o.nextPaginationDisabled || e.emit("nextPaginationClick", T);
395
413
  }
396
414
  function E() {
397
- return e.slots.titleContent ? m("div", {
415
+ return e.slots.titleContent ? g("div", {
398
416
  class: w.value
399
- }, [X(" "), e.slots.titleContent()]) : m("div", {
417
+ }, [X(" "), e.slots.titleContent()]) : g("div", {
400
418
  class: "f-title"
401
- }, [o.showIcon && o.icon ? m("span", {
419
+ }, [o.showIcon && o.icon ? g("span", {
402
420
  class: d.value
403
- }, [m("i", {
404
- class: g.value
405
- }, null)]) : "", m("h4", {
421
+ }, [g("i", {
422
+ class: m.value
423
+ }, null)]) : "", g("h4", {
406
424
  class: "f-title-text"
407
- }, [o.title]), o.subTitle ? m("h5", {
425
+ }, [o.title]), o.subTitle ? g("h5", {
408
426
  class: "f-title-subtitle"
409
- }, [o.subTitle]) : "", o.showPagination ? m("div", {
427
+ }, [o.subTitle]) : "", o.showPagination ? g("div", {
410
428
  class: "f-title-pagination"
411
- }, [m("span", {
429
+ }, [g("span", {
412
430
  class: c.value,
413
431
  onClick: f
414
- }, null), m("span", {
432
+ }, null), g("span", {
415
433
  class: l.value,
416
434
  onClick: v
417
435
  }, null)]) : ""]);
418
436
  }
419
437
  function O() {
420
- return e.slots.content ? m("div", {
438
+ return e.slots.content ? g("div", {
421
439
  class: h.value
422
440
  }, [X(" "), e.slots.content()]) : "";
423
441
  }
424
442
  function j() {
425
443
  if (o.buttons && o.buttons.length > 0)
426
- return m($e, {
444
+ return g($e, {
427
445
  customClass: o.buttonClass,
428
446
  items: t.value,
429
447
  onClick: s
430
448
  }, null);
431
449
  }
432
450
  function _() {
433
- return e.slots.downContent ? m("div", {
451
+ return e.slots.downContent ? g("div", {
434
452
  class: b.value
435
453
  }, [X(" "), e.slots.downContent()]) : "";
436
454
  }
437
- return z(() => o.buttons, (D) => {
438
- t.value = D;
455
+ return z(() => o.buttons, (T) => {
456
+ t.value = T;
439
457
  }, {
440
458
  deep: !0
441
- }), () => m("div", {
459
+ }), () => g("div", {
442
460
  class: u.value
443
- }, [m("nav", {
461
+ }, [g("nav", {
444
462
  class: "f-page-header-base"
445
463
  }, [E(), O(), j()]), _()]);
446
464
  }
447
465
  });
448
- function st(o, e, t) {
466
+ function it(o, e, t) {
449
467
  var I;
450
- const s = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", u = M();
468
+ const s = t && t.getStyles && t.getStyles() || "", r = t && t.getDesignerClass && t.getDesignerClass() || "", u = M();
451
469
  function d() {
452
470
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
453
471
  }
454
- function g() {
472
+ function m() {
455
473
  return !1;
456
474
  }
457
475
  function w() {
@@ -496,7 +514,7 @@ function st(o, e, t) {
496
514
  if (t && t.getPropsConfig)
497
515
  return t.getPropsConfig(...S);
498
516
  }
499
- function D() {
517
+ function T() {
500
518
  t && t.onRemoveComponent && t.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((S) => {
501
519
  var x;
502
520
  let k = S.id;
@@ -507,7 +525,7 @@ function st(o, e, t) {
507
525
  }
508
526
  return u.value = {
509
527
  canMove: d(),
510
- canSelectParent: g(),
528
+ canSelectParent: m(),
511
529
  canDelete: w(),
512
530
  canNested: !h(),
513
531
  contents: e == null ? void 0 : e.schema.contents,
@@ -515,7 +533,7 @@ function st(o, e, t) {
515
533
  parent: (I = e == null ? void 0 : e.parent) == null ? void 0 : I.componentInstance,
516
534
  schema: e == null ? void 0 : e.schema,
517
535
  styles: s,
518
- designerClass: i,
536
+ designerClass: r,
519
537
  canAccepts: l,
520
538
  getBelongedComponentInstance: b,
521
539
  getDraggableDesignItemElement: c,
@@ -527,7 +545,7 @@ function st(o, e, t) {
527
545
  addNewChildComponentSchema: O,
528
546
  triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
529
547
  triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1),
530
- onRemoveComponent: D
548
+ onRemoveComponent: T
531
549
  }, u;
532
550
  }
533
551
  class te {
@@ -559,8 +577,8 @@ class te {
559
577
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
560
578
  if (t) {
561
579
  if (!this.designViewModelField) {
562
- const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
563
- this.designViewModelField = i.fields.find((u) => u.id === t);
580
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
581
+ this.designViewModelField = r.fields.find((u) => u.id === t);
564
582
  }
565
583
  e.updateOn = (s = this.designViewModelField) == null ? void 0 : s.updateOn;
566
584
  }
@@ -622,11 +640,11 @@ class te {
622
640
  const s = t && t.parent && t.parent.schema;
623
641
  if (!s)
624
642
  return;
625
- const i = s.contents.findIndex((d) => d.id === e), u = ye(s.contents[i]);
626
- s.contents.splice(i, 1), s.contents.splice(i, 0, u);
643
+ const r = s.contents.findIndex((d) => d.id === e), u = re(s.contents[r]);
644
+ s.contents.splice(r, 1), s.contents.splice(r, 0, u);
627
645
  }
628
646
  }
629
- class rt extends te {
647
+ class at extends te {
630
648
  constructor(e, t) {
631
649
  super(e, t);
632
650
  }
@@ -696,7 +714,7 @@ class rt extends te {
696
714
  label: "click",
697
715
  name: "点击事件"
698
716
  }
699
- ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t);
717
+ ], s = this, r = s.eventsEditorUtils.formProperties(e, s.viewModelId, t);
700
718
  this.propertyConfig.categories.eventsEditor = {
701
719
  title: "事件",
702
720
  hideTitle: !0,
@@ -704,7 +722,7 @@ class rt extends te {
704
722
  "data-grid-component-viewmodel": {
705
723
  type: "events-editor",
706
724
  editor: {
707
- initialData: i
725
+ initialData: r
708
726
  }
709
727
  }
710
728
  },
@@ -713,34 +731,34 @@ class rt extends te {
713
731
  tabId: "commands",
714
732
  tabName: "交互",
715
733
  setPropertyRelates(u, d) {
716
- const g = u.propertyValue;
717
- delete e[s.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, g.events, g));
734
+ const m = u.propertyValue;
735
+ delete e[s.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, m.events, m));
718
736
  }
719
737
  };
720
738
  }
721
739
  }
722
- function it(o, e) {
723
- function t(g) {
740
+ function ct(o, e) {
741
+ function t(m) {
724
742
  return !1;
725
743
  }
726
744
  function s() {
727
745
  return !1;
728
746
  }
729
- function i() {
747
+ function r() {
730
748
  return !1;
731
749
  }
732
750
  function u() {
733
751
  return !0;
734
752
  }
735
- function d(g) {
736
- return new rt(g, e).getPropertyConfig(o);
753
+ function d(m) {
754
+ return new at(m, e).getPropertyConfig(o);
737
755
  }
738
756
  return {
739
757
  canAccepts: t,
740
758
  hideNestedPaddingInDesginerView: u,
741
759
  getPropsConfig: d,
742
760
  checkCanDeleteComponent: s,
743
- checkCanMoveComponent: i
761
+ checkCanMoveComponent: r
744
762
  };
745
763
  }
746
764
  class Se {
@@ -805,19 +823,19 @@ class Se {
805
823
  return this.visible ? this.width : !1;
806
824
  }
807
825
  }
808
- class at extends Se {
826
+ class lt extends Se {
809
827
  constructor(e) {
810
828
  super(e);
811
829
  }
812
830
  }
813
- function Te() {
831
+ function De() {
814
832
  function o(e) {
815
833
  const t = [];
816
- return e.reduce((s, i) => (i.children && i.children.length > 0 ? s.push(new Q(i)) : s.push(new at(i)), s), t), t;
834
+ return e.reduce((s, r) => (r.children && r.children.length > 0 ? s.push(new Q(r)) : s.push(new lt(r)), s), t), t;
817
835
  }
818
836
  return { buildResponseToolbarItems: o };
819
837
  }
820
- const { buildResponseToolbarItems: ct } = Te();
838
+ const { buildResponseToolbarItems: dt } = De();
821
839
  class Q extends Se {
822
840
  constructor(t) {
823
841
  super(t);
@@ -832,25 +850,25 @@ class Q extends Se {
832
850
  R(this, "children", []);
833
851
  R(this, "expanded", !1);
834
852
  const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
835
- Object.keys(t).filter((i) => s.indexOf(i) > -1).forEach((i) => {
836
- this[i] = t[i];
837
- }), t.children && t.children.length && (this.children = ct(t.children));
853
+ Object.keys(t).filter((r) => s.indexOf(r) > -1).forEach((r) => {
854
+ this[r] = t[r];
855
+ }), t.children && t.children.length && (this.children = dt(t.children));
838
856
  }
839
857
  }
840
- const lt = /* @__PURE__ */ new Map([
858
+ const ut = /* @__PURE__ */ new Map([
841
859
  ["buttons", "items"],
842
860
  ["appearance", Pe]
843
861
  ]);
844
- function dt(o, e) {
862
+ function pt(o, e) {
845
863
  return { class: e.class, style: e.style };
846
864
  }
847
- const ut = /* @__PURE__ */ new Map([
848
- ["appearance", dt]
865
+ const ft = /* @__PURE__ */ new Map([
866
+ ["appearance", pt]
849
867
  ]);
850
- function De(o, e, t) {
868
+ function Te(o, e, t) {
851
869
  return e;
852
870
  }
853
- const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-design.gitee.io/response-toolbar.schema.json", mt = "response-toolbar", gt = "A Farris Toolbar Component", ht = "object", bt = {
871
+ const gt = "https://json-schema.org/draft/2020-12/schema", mt = "https://farris-design.gitee.io/response-toolbar.schema.json", ht = "response-toolbar", bt = "A Farris Toolbar Component", yt = "object", vt = {
854
872
  id: {
855
873
  description: "The unique identifier for a Response Toolbar",
856
874
  type: "string"
@@ -880,19 +898,19 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
880
898
  type: "array",
881
899
  default: []
882
900
  }
883
- }, yt = [
901
+ }, Ct = [
884
902
  "id",
885
903
  "type",
886
904
  "buttons"
887
- ], vt = {
888
- $schema: pt,
889
- $id: ft,
890
- title: mt,
891
- description: gt,
892
- type: ht,
893
- properties: bt,
894
- required: yt
895
- }, Ct = "https://json-schema.org/draft/2020-12/schema", wt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Pt = "response-toolbar-item", St = "A Farris Toolbar Item Component", Tt = "object", Dt = {
905
+ ], wt = {
906
+ $schema: gt,
907
+ $id: mt,
908
+ title: ht,
909
+ description: bt,
910
+ type: yt,
911
+ properties: vt,
912
+ required: Ct
913
+ }, Pt = "https://json-schema.org/draft/2020-12/schema", St = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Dt = "response-toolbar-item", Tt = "A Farris Toolbar Item Component", Mt = "object", kt = {
896
914
  id: {
897
915
  description: "The unique identifier for a Response Toolbar",
898
916
  type: "string"
@@ -937,19 +955,19 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
937
955
  type: "string",
938
956
  default: ""
939
957
  }
940
- }, Mt = [
958
+ }, Et = [
941
959
  "id",
942
960
  "type",
943
961
  "text"
944
- ], kt = {
945
- $schema: Ct,
946
- $id: wt,
947
- title: Pt,
948
- description: St,
949
- type: Tt,
950
- properties: Dt,
951
- required: Mt
952
- }, ce = {
962
+ ], xt = {
963
+ $schema: Pt,
964
+ $id: St,
965
+ title: Dt,
966
+ description: Tt,
967
+ type: Mt,
968
+ properties: kt,
969
+ required: Et
970
+ }, le = {
953
971
  /** 组件自定义样式 */
954
972
  customClass: { type: String, default: "" },
955
973
  alignment: { Type: String, default: "right" },
@@ -957,13 +975,13 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
957
975
  Type: Array,
958
976
  default: []
959
977
  }
960
- }, Et = Object.assign({}, ce, {
978
+ }, Bt = Object.assign({}, le, {
961
979
  componentId: { type: String, default: "" }
962
- }), le = ie(
963
- ce,
964
- vt,
965
- lt,
966
- De
980
+ }), de = ae(
981
+ le,
982
+ wt,
983
+ ut,
984
+ Te
967
985
  ), Me = {
968
986
  id: { type: String, default: "" },
969
987
  items: { type: Object, default: {} },
@@ -973,11 +991,11 @@ const pt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-
973
991
  icon: { type: String, default: "" },
974
992
  componentId: { type: String, default: "" },
975
993
  alignment: { Type: String, default: "right" }
976
- }, xt = ie(
994
+ }, Rt = ae(
977
995
  Me,
978
- kt,
979
- ut,
980
- De
996
+ xt,
997
+ ft,
998
+ Te
981
999
  );
982
1000
  function ke() {
983
1001
  function o(t) {
@@ -985,8 +1003,8 @@ function ke() {
985
1003
  "f-icon": !0
986
1004
  };
987
1005
  if (t.icon) {
988
- const i = t.icon.trim().split(" ");
989
- i && i.length && i.reduce((u, d) => (u[d] = !0, u), s);
1006
+ const r = t.icon.trim().split(" ");
1007
+ r && r.length && r.reduce((u, d) => (u[d] = !0, u), s);
990
1008
  }
991
1009
  return s;
992
1010
  }
@@ -995,7 +1013,7 @@ function ke() {
995
1013
  }
996
1014
  return { iconClass: o, shouldShowIcon: e };
997
1015
  }
998
- function Bt(o) {
1016
+ function It(o) {
999
1017
  function e(c) {
1000
1018
  const l = {
1001
1019
  "dropdown-menu": !0
@@ -1022,7 +1040,7 @@ function Bt(o) {
1022
1040
  }, f = c.class.split(" ");
1023
1041
  return f && f.length && f.reduce((v, E) => (v[E] = !0, v), l), l;
1024
1042
  }
1025
- let i;
1043
+ let r;
1026
1044
  const u = /* @__PURE__ */ new Map();
1027
1045
  function d(c, l, f) {
1028
1046
  var E;
@@ -1033,27 +1051,27 @@ function Bt(o) {
1033
1051
  O && (O.expanded = !1);
1034
1052
  }
1035
1053
  }
1036
- function g(c, l) {
1054
+ function m(c, l) {
1037
1055
  document.body.click(), l.enable && l.onClick(c, l.id);
1038
1056
  }
1039
1057
  function w(c) {
1040
- return c.children.map((l) => l.children && l.children.length ? m("li", {
1058
+ return c.children.map((l) => l.children && l.children.length ? g("li", {
1041
1059
  class: t(l),
1042
1060
  id: l.id,
1043
1061
  onClick: (f) => l.enable && d(f, l, c)
1044
- }, [m("span", {
1062
+ }, [g("span", {
1045
1063
  id: l.id,
1046
1064
  class: s(l),
1047
1065
  onMouseover: (f) => l.enable && d(f, l, c)
1048
- }, [l.text, m("i", {
1066
+ }, [l.text, g("i", {
1049
1067
  class: "f-icon f-icon-arrow-chevron-right",
1050
1068
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1051
- }, null)]), i(l, l)]) : m("li", {
1069
+ }, null)]), r(l, l)]) : g("li", {
1052
1070
  class: s(l),
1053
1071
  id: l.id,
1054
- onClick: (f) => g(f, l),
1072
+ onClick: (f) => m(f, l),
1055
1073
  onMouseover: (f) => l.enable && d(f, l, c)
1056
- }, [o.shouldShowIcon(l) && m("i", {
1074
+ }, [o.shouldShowIcon(l) && g("i", {
1057
1075
  class: o.iconClass(l)
1058
1076
  }, null), l.text]));
1059
1077
  }
@@ -1068,7 +1086,7 @@ function Bt(o) {
1068
1086
  if (O && j && j.length) {
1069
1087
  const {
1070
1088
  top: _,
1071
- width: D,
1089
+ width: T,
1072
1090
  left: I,
1073
1091
  right: S,
1074
1092
  height: k
@@ -1080,18 +1098,18 @@ function Bt(o) {
1080
1098
  const C = A.getBoundingClientRect();
1081
1099
  if (f) {
1082
1100
  v.top = `${_ - 6}px`;
1083
- const r = Math.ceil(D + I);
1084
- v.left = `${r}px`;
1101
+ const i = Math.ceil(T + I);
1102
+ v.left = `${i}px`;
1085
1103
  }
1086
- E - I - D < C.width && (v.left = `${(f ? I : S) - C.width}px`);
1104
+ E - I - T < C.width && (v.left = `${(f ? I : S) - C.width}px`);
1087
1105
  }
1088
1106
  }
1089
1107
  return v;
1090
1108
  }
1091
- i = function(c, l) {
1109
+ r = function(c, l) {
1092
1110
  var O, j;
1093
- const f = he(), v = l ? l.id : c.id, E = (j = (O = f == null ? void 0 : f.exposed) == null ? void 0 : O.elementRef.value) == null ? void 0 : j.querySelector("#" + v);
1094
- return m("ul", {
1111
+ const f = be(), v = l ? l.id : c.id, E = (j = (O = f == null ? void 0 : f.exposed) == null ? void 0 : O.elementRef.value) == null ? void 0 : j.querySelector("#" + v);
1112
+ return g("ul", {
1095
1113
  class: e(c),
1096
1114
  style: h(c, E, l),
1097
1115
  id: c.id + "_menu"
@@ -1103,15 +1121,15 @@ function Bt(o) {
1103
1121
  }), u.clear();
1104
1122
  }
1105
1123
  return {
1106
- renderDropdownMenu: i,
1124
+ renderDropdownMenu: r,
1107
1125
  clearAllDropDownMenu: b
1108
1126
  };
1109
1127
  }
1110
- function Rt(o, e) {
1128
+ function At(o, e) {
1111
1129
  const t = M(o.alignment), {
1112
1130
  renderDropdownMenu: s,
1113
- clearAllDropDownMenu: i
1114
- } = Bt(e);
1131
+ clearAllDropDownMenu: r
1132
+ } = It(e);
1115
1133
  function u(b) {
1116
1134
  const c = {
1117
1135
  "btn-group": !0,
@@ -1134,28 +1152,28 @@ function Rt(o, e) {
1134
1152
  }
1135
1153
  return c;
1136
1154
  }
1137
- function g(b, c) {
1155
+ function m(b, c) {
1138
1156
  b.stopPropagation();
1139
1157
  const l = c.expanded;
1140
1158
  document.body.click(), c.expanded = !l;
1141
1159
  }
1142
1160
  function w(b) {
1143
- return m("div", {
1161
+ return g("div", {
1144
1162
  id: b.id,
1145
1163
  class: u(b)
1146
- }, [m("div", {
1164
+ }, [g("div", {
1147
1165
  class: d(b),
1148
1166
  style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
1149
- onClick: (c) => b.enable && g(c, b)
1150
- }, [e.shouldShowIcon(b) && m("i", {
1167
+ onClick: (c) => b.enable && m(c, b)
1168
+ }, [e.shouldShowIcon(b) && g("i", {
1151
1169
  class: e.iconClass(b)
1152
- }, null), m("span", null, [b.text]), m("i", {
1170
+ }, null), g("span", null, [b.text]), g("i", {
1153
1171
  class: "f-icon f-icon-arrow-chevron-down",
1154
1172
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1155
1173
  }, null)]), s(b)]);
1156
1174
  }
1157
1175
  function h() {
1158
- i();
1176
+ r();
1159
1177
  }
1160
1178
  return {
1161
1179
  renderToolbarDropdown: w,
@@ -1163,16 +1181,16 @@ function Rt(o, e) {
1163
1181
  };
1164
1182
  }
1165
1183
  const {
1166
- buildResponseToolbarItems: fe
1167
- } = Te(), K = /* @__PURE__ */ W({
1184
+ buildResponseToolbarItems: ge
1185
+ } = De(), K = /* @__PURE__ */ U({
1168
1186
  name: "FResponseToolbar",
1169
- props: ce,
1187
+ props: le,
1170
1188
  emits: ["click"],
1171
1189
  setup(o, e) {
1172
- const t = M(fe(o.items)), s = M(), i = M(), u = M(), d = M(o.alignment), g = {
1190
+ const t = M(ge(o.items)), s = M(), r = M(), u = M(), d = M(o.alignment), m = {
1173
1191
  id: "__more_buttons__",
1174
1192
  text: "更多"
1175
- }, w = M(new Q(g)), h = ke(), b = F(() => w.value.children.length > 0), c = F(() => Z({
1193
+ }, w = M(new Q(m)), h = ke(), b = F(() => w.value.children.length > 0), c = F(() => Z({
1176
1194
  "f-toolbar": !0,
1177
1195
  "f-response-toolbar": !0,
1178
1196
  "position-relative": !0
@@ -1185,7 +1203,7 @@ const {
1185
1203
  })), {
1186
1204
  renderToolbarDropdown: f,
1187
1205
  clearAllDropDown: v
1188
- } = Rt(o, h);
1206
+ } = At(o, h);
1189
1207
  function E() {
1190
1208
  t.value.filter((y) => y.children && y.children.length > 0).forEach((y) => {
1191
1209
  y.expanded = !1;
@@ -1201,7 +1219,7 @@ const {
1201
1219
  };
1202
1220
  if (y.class) {
1203
1221
  const A = y.class.split(" ");
1204
- A && A.length && A.reduce((C, r) => (C[r] = !0, C), x);
1222
+ A && A.length && A.reduce((C, i) => (C[i] = !0, C), x);
1205
1223
  }
1206
1224
  return x;
1207
1225
  }
@@ -1209,133 +1227,133 @@ const {
1209
1227
  document.body.click(), typeof x.onClick == "function" && x.onClick(y, x.id), e.emit("click", y, x.id);
1210
1228
  }
1211
1229
  function _(y) {
1212
- return m("button", {
1230
+ return g("button", {
1213
1231
  type: "button",
1214
1232
  class: O(y),
1215
1233
  id: y.id,
1216
1234
  disabled: !y.enable,
1217
1235
  onClick: (x) => j(x, y)
1218
- }, [h.shouldShowIcon(y) && m("i", {
1236
+ }, [h.shouldShowIcon(y) && g("i", {
1219
1237
  class: h.iconClass(y)
1220
1238
  }, null), y.text]);
1221
1239
  }
1222
- const D = /* @__PURE__ */ new Map(), I = [];
1240
+ const T = /* @__PURE__ */ new Map(), I = [];
1223
1241
  function S(y) {
1224
1242
  const x = u.value;
1225
1243
  let A = y;
1226
- const C = Array.from(x.children), r = C[C.length - 1].id === "__more_buttons__" ? C[C.length - 1] : null;
1227
- if (r) {
1228
- const P = r.computedStyleMap().get("margin-left"), B = r.computedStyleMap().get("margin-right"), N = (P ? P.value : 0) + r.getBoundingClientRect().width + (B ? B.value : 0);
1244
+ const C = Array.from(x.children), i = C[C.length - 1].id === "__more_buttons__" ? C[C.length - 1] : null;
1245
+ if (i) {
1246
+ const P = i.computedStyleMap().get("margin-left"), B = i.computedStyleMap().get("margin-right"), N = (P ? P.value : 0) + i.getBoundingClientRect().width + (B ? B.value : 0);
1229
1247
  A -= N;
1230
1248
  }
1231
1249
  const n = C.filter((P) => P.id !== "__more_buttons__");
1232
1250
  for (const P of n) {
1233
- const B = P.computedStyleMap().get("margin-left"), N = P.computedStyleMap().get("margin-right"), U = (B ? B.value : 0) + P.getBoundingClientRect().width + (N ? N.value : 0);
1234
- A < U ? (D.set(P.id, !0), I.push({
1251
+ const B = P.computedStyleMap().get("margin-left"), N = P.computedStyleMap().get("margin-right"), q = (B ? B.value : 0) + P.getBoundingClientRect().width + (N ? N.value : 0);
1252
+ A < q ? (T.set(P.id, !0), I.push({
1235
1253
  id: P.id,
1236
- width: U
1237
- })) : A -= U;
1254
+ width: q
1255
+ })) : A -= q;
1238
1256
  }
1239
1257
  if (I.length)
1240
1258
  for (let P = I.length - 1; P >= 0; P--) {
1241
1259
  const B = I[P].width;
1242
1260
  if (A >= B)
1243
- A -= B, D.delete(I[P].id), I.pop();
1261
+ A -= B, T.delete(I[P].id), I.pop();
1244
1262
  else
1245
1263
  break;
1246
1264
  }
1247
1265
  const a = Object.assign({}, w.value);
1248
1266
  a.children = [];
1249
- const p = new Q(a), T = t.value.reduce((P, B) => (D.has(B.id) && p.children.push(B), B.visible = !D.has(B.id), P.push(B), P), []);
1250
- w.value = p, t.value = T;
1267
+ const p = new Q(a), D = t.value.reduce((P, B) => (T.has(B.id) && p.children.push(B), B.visible = !T.has(B.id), P.push(B), P), []);
1268
+ w.value = p, t.value = D;
1251
1269
  }
1252
1270
  const k = new ResizeObserver((y) => {
1253
1271
  if (y.length) {
1254
- const A = y[0].contentRect.width, r = u.value.getBoundingClientRect().width;
1255
- (A < r || I.length) && (S(A), E());
1272
+ const A = y[0].contentRect.width, i = u.value.getBoundingClientRect().width;
1273
+ (A < i || I.length) && (S(A), E());
1256
1274
  }
1257
1275
  });
1258
1276
  return G(() => {
1259
- const y = i.value;
1277
+ const y = r.value;
1260
1278
  k.observe(y), document.body.addEventListener("click", E), document.body.addEventListener("wheel", E);
1261
- }), be(() => {
1279
+ }), ye(() => {
1262
1280
  k.disconnect(), document.body.removeEventListener("click", E), document.body.removeEventListener("wheel", E);
1263
1281
  }), z(() => o.items, () => {
1264
- t.value = fe(o.items);
1282
+ t.value = ge(o.items);
1265
1283
  }, {
1266
1284
  deep: !0
1267
1285
  }), e.expose({
1268
1286
  elementRef: s
1269
- }), () => m("div", {
1287
+ }), () => g("div", {
1270
1288
  class: c.value,
1271
1289
  ref: s
1272
- }, [m("div", {
1273
- ref: i,
1290
+ }, [g("div", {
1291
+ ref: r,
1274
1292
  class: l.value
1275
- }, [m("div", {
1293
+ }, [g("div", {
1276
1294
  ref: u,
1277
1295
  class: "d-inline-block f-response-content",
1278
1296
  style: "white-space: nowrap;"
1279
1297
  }, [t.value.filter((y) => y.visible).map((y) => y.children && y.children.length > 0 ? f(y) : _(y)), b.value && f(w.value)])])]);
1280
1298
  }
1281
1299
  });
1282
- function It(o, e) {
1300
+ function Ot(o, e) {
1283
1301
  const t = V("design-item-context"), s = V("toolbar-item-handler", () => {
1284
1302
  });
1285
- function i() {
1303
+ function r() {
1286
1304
  s && s();
1287
1305
  }
1288
- function u(r) {
1306
+ function u(i) {
1289
1307
  const n = {
1290
1308
  "dropdown-menu": !0
1291
1309
  };
1292
- if (r.class) {
1293
- const a = r.menuClass.split(" ");
1294
- a && a.length && a.reduce((p, T) => (p[T] = !0, p), n);
1310
+ if (i.class) {
1311
+ const a = i.menuClass.split(" ");
1312
+ a && a.length && a.reduce((p, D) => (p[D] = !0, p), n);
1295
1313
  }
1296
1314
  return n;
1297
1315
  }
1298
- function d(r) {
1316
+ function d(i) {
1299
1317
  const n = {
1300
- disabled: !r.enable,
1318
+ disabled: !i.enable,
1301
1319
  "dropdown-submenu": !0,
1302
1320
  "f-rt-dropdown": !0
1303
- }, a = r.dropdownClass.split(" ");
1304
- return a && a.length && a.reduce((p, T) => (p[T] = !0, p), n), n;
1321
+ }, a = i.dropdownClass.split(" ");
1322
+ return a && a.length && a.reduce((p, D) => (p[D] = !0, p), n), n;
1305
1323
  }
1306
- function g(r) {
1324
+ function m(i) {
1307
1325
  const n = {
1308
- disabled: !r.enable,
1326
+ disabled: !i.enable,
1309
1327
  "dropdown-item": !0,
1310
1328
  "f-rt-btn": !0,
1311
1329
  "position-relative": !0,
1312
1330
  "farris-component": !0
1313
- }, a = r.class.split(" ");
1314
- return a && a.length && a.reduce((p, T) => (p[T] = !0, p), n), n;
1331
+ }, a = i.class.split(" ");
1332
+ return a && a.length && a.reduce((p, D) => (p[D] = !0, p), n), n;
1315
1333
  }
1316
1334
  let w;
1317
1335
  const h = /* @__PURE__ */ new Map();
1318
- function b(r, n, a) {
1319
- var T;
1320
- ((T = r.target) == null ? void 0 : T.id) === n.id && r.stopPropagation();
1336
+ function b(i, n, a) {
1337
+ var D;
1338
+ ((D = i.target) == null ? void 0 : D.id) === n.id && i.stopPropagation();
1321
1339
  const p = a ? a.id : "__top_item__";
1322
1340
  if (n.children && n.children.length && (n.expanded = !n.expanded, n.expanded ? h.set(p, n) : h.delete(p)), h.has(p) && h.get(p) !== n) {
1323
1341
  const P = h.get(p);
1324
1342
  P && (P.expanded = !1);
1325
1343
  }
1326
1344
  }
1327
- function c(r) {
1328
- r && (r.stopPropagation(), r.preventDefault());
1345
+ function c(i) {
1346
+ i && (i.stopPropagation(), i.preventDefault());
1329
1347
  }
1330
1348
  function l() {
1331
1349
  Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((n) => n.classList.remove("dgComponentFocused"));
1332
- const r = document.getElementsByClassName("dgComponentSelected");
1333
- Array.from(r).forEach((n) => n.classList.remove("dgComponentSelected"));
1350
+ const i = document.getElementsByClassName("dgComponentSelected");
1351
+ Array.from(i).forEach((n) => n.classList.remove("dgComponentSelected"));
1334
1352
  }
1335
- function f(r) {
1336
- r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1353
+ function f(i) {
1354
+ i.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1337
1355
  }
1338
- function v(r) {
1356
+ function v(i) {
1339
1357
  const {
1340
1358
  buttons: n = []
1341
1359
  } = t.schema;
@@ -1343,67 +1361,67 @@ function It(o, e) {
1343
1361
  n.forEach((P) => {
1344
1362
  a = a.concat(P.children || []);
1345
1363
  });
1346
- const p = a.findIndex((P) => P.id === r), T = p === -1 ? null : a[p];
1364
+ const p = a.findIndex((P) => P.id === i), D = p === -1 ? null : a[p];
1347
1365
  return {
1348
1366
  index: p,
1349
- item: T
1367
+ item: D
1350
1368
  };
1351
1369
  }
1352
- function E(r) {
1370
+ function E(i) {
1353
1371
  const {
1354
1372
  buttons: n = []
1355
- } = t.schema, a = n.findIndex((T) => T.id === r), p = a === -1 ? null : n[a];
1373
+ } = t.schema, a = n.findIndex((D) => D.id === i), p = a === -1 ? null : n[a];
1356
1374
  return {
1357
1375
  index: a,
1358
1376
  item: p
1359
1377
  };
1360
1378
  }
1361
- function O(r) {
1379
+ function O(i) {
1362
1380
  var p;
1363
1381
  t.schema;
1364
1382
  const {
1365
1383
  index: n,
1366
1384
  item: a
1367
- } = v(r);
1385
+ } = v(i);
1368
1386
  (p = t == null ? void 0 : t.setupContext) == null || p.emit("selectionChange", a == null ? void 0 : a.type, a);
1369
1387
  }
1370
- const j = function(r) {
1388
+ const j = function(i) {
1371
1389
  const {
1372
1390
  componentType: n
1373
- } = r, a = Y(n, r), p = n.toLowerCase().replace("-", "_");
1391
+ } = i, a = Y(n, i), p = n.toLowerCase().replace("-", "_");
1374
1392
  return a && !a.id && a.type === n && (a.id = `${p}_${Math.random().toString().slice(2, 6)}`), a;
1375
1393
  }, _ = function() {
1376
- const r = {
1394
+ const i = {
1377
1395
  componentType: "response-toolbar-item",
1378
1396
  parentComponentInstance: e.value,
1379
1397
  targetPosition: -1
1380
1398
  };
1381
- return j(r);
1399
+ return j(i);
1382
1400
  };
1383
- function D(r, n) {
1384
- c(r), l(), f(r), O(n.id);
1401
+ function T(i, n) {
1402
+ c(i), l(), f(i), O(n.id);
1385
1403
  }
1386
- function I(r, n, a) {
1387
- c(r);
1388
- const p = n.id, T = a && a.id, {
1404
+ function I(i, n, a) {
1405
+ c(i);
1406
+ const p = n.id, D = a && a.id, {
1389
1407
  buttons: P = []
1390
1408
  } = t.schema;
1391
- if (!T)
1409
+ if (!D)
1392
1410
  return;
1393
1411
  const {
1394
1412
  index: B
1395
- } = E(T);
1413
+ } = E(D);
1396
1414
  if (B === -1)
1397
1415
  return;
1398
1416
  const {
1399
1417
  index: N
1400
1418
  } = v(p);
1401
- N !== -1 && (P[B].children.splice(N, 1), i());
1419
+ N !== -1 && (P[B].children.splice(N, 1), r());
1402
1420
  }
1403
- function S(r, n, a) {
1404
- c(r);
1421
+ function S(i, n, a) {
1422
+ c(i);
1405
1423
  const p = a && a.id, {
1406
- buttons: T = []
1424
+ buttons: D = []
1407
1425
  } = t.schema;
1408
1426
  if (!p)
1409
1427
  return;
@@ -1415,12 +1433,12 @@ function It(o, e) {
1415
1433
  const B = _(), N = Object.assign({}, B, {
1416
1434
  text: n.text
1417
1435
  });
1418
- T[P].children.push(N), i();
1436
+ D[P].children.push(N), r();
1419
1437
  }
1420
- function k(r, n, a) {
1421
- c(r);
1438
+ function k(i, n, a) {
1439
+ c(i);
1422
1440
  const p = a && a.id, {
1423
- buttons: T = []
1441
+ buttons: D = []
1424
1442
  } = t.schema;
1425
1443
  if (!p)
1426
1444
  return;
@@ -1432,105 +1450,105 @@ function It(o, e) {
1432
1450
  const B = _(), N = Object.assign({}, B, {
1433
1451
  text: "按钮"
1434
1452
  });
1435
- T[P].children.push(N), i();
1453
+ D[P].children.push(N), r();
1436
1454
  }
1437
- function y(r, n) {
1438
- return m("div", {
1455
+ function y(i, n) {
1456
+ return g("div", {
1439
1457
  class: "component-btn-group"
1440
- }, [m("div", null, [m("div", {
1458
+ }, [g("div", null, [g("div", {
1441
1459
  role: "button",
1442
1460
  class: "btn component-settings-button",
1443
1461
  title: "删除",
1444
1462
  ref: "removeButton",
1445
1463
  style: "position:static;",
1446
- onClick: (a) => I(a, r, n)
1447
- }, [m("i", {
1464
+ onClick: (a) => I(a, i, n)
1465
+ }, [g("i", {
1448
1466
  class: "f-icon f-icon-yxs_delete"
1449
- }, null)]), m("div", {
1467
+ }, null)]), g("div", {
1450
1468
  role: "button",
1451
1469
  class: "btn component-settings-button",
1452
1470
  title: "复制",
1453
1471
  ref: "copyButton",
1454
1472
  style: "position:static;",
1455
- onClick: (a) => S(a, r, n)
1456
- }, [m("i", {
1473
+ onClick: (a) => S(a, i, n)
1474
+ }, [g("i", {
1457
1475
  class: "f-icon f-icon-yxs_copy"
1458
- }, null)]), m("div", {
1476
+ }, null)]), g("div", {
1459
1477
  role: "button",
1460
1478
  class: "btn component-settings-button",
1461
1479
  title: "新增同级",
1462
1480
  ref: "appendSame",
1463
1481
  style: "width:85px!important;padding:0 5px;position:static;",
1464
- onClick: (a) => k(a, r, n)
1465
- }, [m("i", {
1482
+ onClick: (a) => k(a, i, n)
1483
+ }, [g("i", {
1466
1484
  class: "f-icon f-icon-plus-circle text-white mr-1"
1467
- }, null), m("span", {
1485
+ }, null), g("span", {
1468
1486
  style: "font-size:13px;margin:auto"
1469
1487
  }, [X("新增同级")])])])]);
1470
1488
  }
1471
- function x(r) {
1472
- return r.children.map((n) => n.children && n.children.length ? m("li", {
1489
+ function x(i) {
1490
+ return i.children.map((n) => n.children && n.children.length ? g("li", {
1473
1491
  class: d(n),
1474
1492
  id: n.id,
1475
- onClick: (a) => n.enable && b(a, n, r)
1476
- }, [m("span", {
1493
+ onClick: (a) => n.enable && b(a, n, i)
1494
+ }, [g("span", {
1477
1495
  id: n.id,
1478
- class: g(n),
1479
- onMouseover: (a) => n.enable && b(a, n, r)
1480
- }, [n.text, m("i", {
1496
+ class: m(n),
1497
+ onMouseover: (a) => n.enable && b(a, n, i)
1498
+ }, [n.text, g("i", {
1481
1499
  class: "f-icon f-icon-arrow-chevron-right",
1482
1500
  style: "display: inline-block;float: right;line-height: 1.25rem;"
1483
- }, null)]), w(n, n)]) : m("li", {
1484
- class: g(n),
1501
+ }, null)]), w(n, n)]) : g("li", {
1502
+ class: m(n),
1485
1503
  id: n.id,
1486
- onClick: (a) => D(a, n)
1487
- }, [y(n, r), o.shouldShowIcon(n) && m("i", {
1504
+ onClick: (a) => T(a, n)
1505
+ }, [y(n, i), o.shouldShowIcon(n) && g("i", {
1488
1506
  class: o.iconClass(n)
1489
1507
  }, null), n.text]));
1490
1508
  }
1491
- function A(r, n, a) {
1509
+ function A(i, n, a) {
1492
1510
  const p = {
1493
- display: r.expanded ? "block" : "none",
1511
+ display: i.expanded ? "block" : "none",
1494
1512
  position: "fixed",
1495
1513
  maxWidth: "300px",
1496
1514
  width: "auto",
1497
1515
  minWidth: "120px"
1498
- }, T = document.getElementsByTagName("body")[0].getClientRects()[0].width, P = n, B = P == null ? void 0 : P.getClientRects();
1516
+ }, D = document.getElementsByTagName("body")[0].getClientRects()[0].width, P = n, B = P == null ? void 0 : P.getClientRects();
1499
1517
  if (P && B && B.length) {
1500
1518
  const {
1501
1519
  top: N,
1502
- width: U,
1503
- left: q,
1520
+ width: q,
1521
+ left: W,
1504
1522
  right: $,
1505
1523
  height: L
1506
1524
  } = B[0], H = Math.ceil(L + N);
1507
- p.top = `${H}px`, p.left = `${q}px`;
1508
- const J = r.id + "_menu", ne = n ? n.querySelector("#" + J) : null;
1525
+ p.top = `${H}px`, p.left = `${W}px`;
1526
+ const J = i.id + "_menu", ne = n ? n.querySelector("#" + J) : null;
1509
1527
  if (ne) {
1510
1528
  p.display === "block" && (ne.style.display = "block");
1511
- const de = ne.getBoundingClientRect();
1529
+ const ue = ne.getBoundingClientRect();
1512
1530
  if (a) {
1513
1531
  p.top = `${N - 6}px`;
1514
- const Re = Math.ceil(U + q);
1532
+ const Re = Math.ceil(q + W);
1515
1533
  p.left = `${Re}px`;
1516
1534
  }
1517
- T - q - U < de.width && (p.left = `${(a ? q : $) - de.width}px`);
1535
+ D - W - q < ue.width && (p.left = `${(a ? W : $) - ue.width}px`);
1518
1536
  }
1519
1537
  }
1520
1538
  return p;
1521
1539
  }
1522
- w = function(r, n) {
1540
+ w = function(i, n) {
1523
1541
  var P, B;
1524
- const a = he(), p = n ? n.id : r.id, T = (B = (P = a == null ? void 0 : a.exposed) == null ? void 0 : P.elementRef.value) == null ? void 0 : B.querySelector("#" + p);
1525
- return m("ul", {
1526
- class: u(r),
1527
- style: A(r, T, n),
1528
- id: r.id + "_menu"
1529
- }, [x(r)]);
1542
+ const a = be(), p = n ? n.id : i.id, D = (B = (P = a == null ? void 0 : a.exposed) == null ? void 0 : P.elementRef.value) == null ? void 0 : B.querySelector("#" + p);
1543
+ return g("ul", {
1544
+ class: u(i),
1545
+ style: A(i, D, n),
1546
+ id: i.id + "_menu"
1547
+ }, [x(i)]);
1530
1548
  };
1531
1549
  function C() {
1532
- h.forEach((r) => {
1533
- r.expanded = !1;
1550
+ h.forEach((i) => {
1551
+ i.expanded = !1;
1534
1552
  }), h.clear();
1535
1553
  }
1536
1554
  return {
@@ -1538,26 +1556,26 @@ function It(o, e) {
1538
1556
  clearAllDropDownMenu: C
1539
1557
  };
1540
1558
  }
1541
- function At(o, e, t) {
1559
+ function jt(o, e, t) {
1542
1560
  const s = M(o.alignment), {
1543
- renderDropdownMenu: i,
1561
+ renderDropdownMenu: r,
1544
1562
  clearAllDropDownMenu: u
1545
- } = It(e, t), d = V("design-item-context"), g = V("toolbar-item-handler", () => {
1563
+ } = Ot(e, t), d = V("design-item-context"), m = V("toolbar-item-handler", () => {
1546
1564
  });
1547
1565
  function w() {
1548
- g && g();
1566
+ m && m();
1549
1567
  }
1550
1568
  function h(C) {
1551
- const r = {
1569
+ const i = {
1552
1570
  "btn-group": !0,
1553
1571
  "f-rt-dropdown": !0,
1554
1572
  "f-btn-ml": s.value === "right",
1555
1573
  "f-btn-mr": s.value === "left"
1556
1574
  }, n = C.dropdownClass.split(" ");
1557
- return n && n.length && n.reduce((a, p) => (a[p] = !0, a), r), r;
1575
+ return n && n.length && n.reduce((a, p) => (a[p] = !0, a), i), i;
1558
1576
  }
1559
1577
  function b(C) {
1560
- const r = {
1578
+ const i = {
1561
1579
  btn: !0,
1562
1580
  disabled: !C.enable,
1563
1581
  "position-relative": !0,
@@ -1567,23 +1585,23 @@ function At(o, e, t) {
1567
1585
  };
1568
1586
  if (C.class) {
1569
1587
  const n = C.class.split(" ");
1570
- n && n.length && n.reduce((a, p) => (a[p] = !0, a), r);
1588
+ n && n.length && n.reduce((a, p) => (a[p] = !0, a), i);
1571
1589
  }
1572
- return r;
1590
+ return i;
1573
1591
  }
1574
1592
  function c(C) {
1575
1593
  C && (C.stopPropagation(), C.preventDefault());
1576
1594
  }
1577
- function l(C, r) {
1595
+ function l(C, i) {
1578
1596
  c(C);
1579
- const n = r.expanded;
1580
- document.body.click(), r.expanded = !n;
1597
+ const n = i.expanded;
1598
+ document.body.click(), i.expanded = !n;
1581
1599
  }
1582
1600
  const f = function(C) {
1583
1601
  const {
1584
- componentType: r
1585
- } = C, n = Y(r, C), a = r.toLowerCase().replace("-", "_");
1586
- return n && !n.id && n.type === r && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
1602
+ componentType: i
1603
+ } = C, n = Y(i, C), a = i.toLowerCase().replace("-", "_");
1604
+ return n && !n.id && n.type === i && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
1587
1605
  }, v = function() {
1588
1606
  const C = {
1589
1607
  componentType: "response-toolbar-item",
@@ -1593,108 +1611,108 @@ function At(o, e, t) {
1593
1611
  return f(C);
1594
1612
  };
1595
1613
  function E(C) {
1596
- const r = d.schema.buttons || d.schema.contents, n = r == null ? void 0 : r.findIndex((p) => p.id === C), a = n === -1 ? null : r[n];
1614
+ const i = d.schema.buttons || d.schema.contents, n = i == null ? void 0 : i.findIndex((p) => p.id === C), a = n === -1 ? null : i[n];
1597
1615
  return {
1598
1616
  index: n,
1599
1617
  toolbarItem: a
1600
1618
  };
1601
1619
  }
1602
- function O(C, r) {
1620
+ function O(C, i) {
1603
1621
  var B;
1604
1622
  const {
1605
1623
  index: n,
1606
1624
  toolbarItem: a
1607
- } = E(r);
1625
+ } = E(i);
1608
1626
  if (n === -1)
1609
1627
  return;
1610
- const p = a.text || "按钮", T = v(), P = Object.assign({}, T, {
1628
+ const p = a.text || "按钮", D = v(), P = Object.assign({}, D, {
1611
1629
  text: p
1612
1630
  });
1613
1631
  (B = d.schema.buttons) == null || B.push(P), w();
1614
1632
  }
1615
- function j(C, r) {
1633
+ function j(C, i) {
1616
1634
  const {
1617
1635
  index: n,
1618
1636
  toolbarItem: a
1619
- } = E(r);
1637
+ } = E(i);
1620
1638
  if (n === -1)
1621
1639
  return;
1622
- const p = a.text || "按钮", T = v(), P = Object.assign({}, T, {
1640
+ const p = a.text || "按钮", D = v(), P = Object.assign({}, D, {
1623
1641
  text: p
1624
1642
  }), B = d.schema.buttons[n].children || [];
1625
1643
  B.push(P), d.schema.buttons[n].children = B, w();
1626
1644
  }
1627
- function _(C, r) {
1628
- const n = d.schema.buttons || d.schema.contents, a = n == null ? void 0 : n.findIndex((p) => p.id === r);
1645
+ function _(C, i) {
1646
+ const n = d.schema.buttons || d.schema.contents, a = n == null ? void 0 : n.findIndex((p) => p.id === i);
1629
1647
  a !== -1 && (n.splice(a, 1), w());
1630
1648
  }
1631
- function D(C) {
1632
- return m("div", {
1649
+ function T(C) {
1650
+ return g("div", {
1633
1651
  class: "component-btn-group"
1634
- }, [m("div", null, [m("div", {
1652
+ }, [g("div", null, [g("div", {
1635
1653
  role: "button",
1636
1654
  class: "btn component-settings-button",
1637
1655
  title: "删除",
1638
1656
  ref: "removeButton",
1639
1657
  style: "position:static;",
1640
- onClick: (r) => _(r, C)
1641
- }, [m("i", {
1658
+ onClick: (i) => _(i, C)
1659
+ }, [g("i", {
1642
1660
  class: "f-icon f-icon-yxs_delete"
1643
- }, null)]), m("div", {
1661
+ }, null)]), g("div", {
1644
1662
  role: "button",
1645
1663
  class: "btn component-settings-button",
1646
1664
  title: "复制",
1647
1665
  ref: "copyButton",
1648
1666
  style: "position:static;",
1649
- onClick: (r) => O(r, C)
1650
- }, [m("i", {
1667
+ onClick: (i) => O(i, C)
1668
+ }, [g("i", {
1651
1669
  class: "f-icon f-icon-yxs_copy"
1652
- }, null)]), m("div", {
1670
+ }, null)]), g("div", {
1653
1671
  role: "button",
1654
1672
  class: "btn component-settings-button",
1655
1673
  title: "新增子级",
1656
1674
  ref: "appendChildButton",
1657
1675
  style: "width:85px!important;padding:0 5px;position:static;",
1658
- onClick: (r) => j(r, C)
1659
- }, [m("i", {
1676
+ onClick: (i) => j(i, C)
1677
+ }, [g("i", {
1660
1678
  class: "f-icon f-icon-plus-circle text-white mr-1"
1661
- }, null), m("span", {
1679
+ }, null), g("span", {
1662
1680
  style: "font-size:13px;margin:auto"
1663
1681
  }, [X("新增子级")])])])]);
1664
1682
  }
1665
1683
  function I() {
1666
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
1684
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((i) => i.classList.remove("dgComponentFocused"));
1667
1685
  const C = document.getElementsByClassName("dgComponentSelected");
1668
- Array.from(C).forEach((r) => r.classList.remove("dgComponentSelected"));
1686
+ Array.from(C).forEach((i) => i.classList.remove("dgComponentSelected"));
1669
1687
  }
1670
1688
  function S(C) {
1671
1689
  C.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
1672
1690
  }
1673
1691
  function k(C) {
1674
1692
  var p;
1675
- const r = d.schema.buttons || d.schema.contents, n = r == null ? void 0 : r.findIndex((T) => T.id === C);
1693
+ const i = d.schema.buttons || d.schema.contents, n = i == null ? void 0 : i.findIndex((D) => D.id === C);
1676
1694
  if (n === -1)
1677
1695
  return;
1678
- const a = r[n];
1696
+ const a = i[n];
1679
1697
  (p = d == null ? void 0 : d.setupContext) == null || p.emit("selectionChange", "response-toolbar-item", a);
1680
1698
  }
1681
- function y(C, r) {
1682
- c(C), I(), S(C), c(C), l(C, r), k(r.id);
1699
+ function y(C, i) {
1700
+ c(C), I(), S(C), c(C), l(C, i), k(i.id);
1683
1701
  }
1684
1702
  function x(C) {
1685
- return m("div", {
1703
+ return g("div", {
1686
1704
  id: C.id,
1687
1705
  class: h(C)
1688
- }, [m("div", {
1706
+ }, [g("div", {
1689
1707
  class: b(C),
1690
1708
  style: "display: flex;padding-right: 0.1rem;",
1691
- onClick: (r) => C.enable && y(r, C)
1692
- }, [D(C.id), e.shouldShowIcon(C) && m("i", {
1709
+ onClick: (i) => C.enable && y(i, C)
1710
+ }, [T(C.id), e.shouldShowIcon(C) && g("i", {
1693
1711
  class: e.iconClass(C)
1694
- }, null), m("span", null, [C.text]), m("i", {
1712
+ }, null), g("span", null, [C.text]), g("i", {
1695
1713
  class: "f-icon f-icon-arrow-chevron-down",
1696
1714
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
1697
- }, null)]), i(C)]);
1715
+ }, null)]), r(C)]);
1698
1716
  }
1699
1717
  function A() {
1700
1718
  u();
@@ -1704,7 +1722,7 @@ function At(o, e, t) {
1704
1722
  clearAllDropDown: A
1705
1723
  };
1706
1724
  }
1707
- class Ot extends te {
1725
+ class _t extends te {
1708
1726
  constructor(e, t) {
1709
1727
  super(e, t);
1710
1728
  }
@@ -1787,12 +1805,12 @@ class Ot extends te {
1787
1805
  };
1788
1806
  }
1789
1807
  }
1790
- function jt(o, e) {
1808
+ function $t(o, e) {
1791
1809
  const t = o.schema;
1792
1810
  function s(b) {
1793
1811
  return !1;
1794
1812
  }
1795
- function i(b, c) {
1813
+ function r(b, c) {
1796
1814
  return c.text = b.label, c;
1797
1815
  }
1798
1816
  function u() {
@@ -1801,26 +1819,26 @@ function jt(o, e) {
1801
1819
  function d() {
1802
1820
  return !1;
1803
1821
  }
1804
- function g() {
1822
+ function m() {
1805
1823
  return !0;
1806
1824
  }
1807
1825
  function w() {
1808
1826
  return !0;
1809
1827
  }
1810
1828
  function h(b) {
1811
- return new Ot(b, e).getPropertyConfig(t);
1829
+ return new _t(b, e).getPropertyConfig(t);
1812
1830
  }
1813
1831
  return {
1814
1832
  canAccepts: s,
1815
- checkCanAddComponent: g,
1833
+ checkCanAddComponent: m,
1816
1834
  checkCanDeleteComponent: d,
1817
1835
  checkCanMoveComponent: u,
1818
1836
  hideNestedPaddingInDesginerView: w,
1819
- onResolveNewComponentSchema: i,
1837
+ onResolveNewComponentSchema: r,
1820
1838
  getPropsConfig: h
1821
1839
  };
1822
1840
  }
1823
- const _t = {
1841
+ const Ft = {
1824
1842
  id: { type: String, default: "" },
1825
1843
  componentId: { type: String, default: "" },
1826
1844
  canAdd: { type: Boolean, default: !1 },
@@ -1834,11 +1852,11 @@ const _t = {
1834
1852
  */
1835
1853
  modelValue: { type: Object }
1836
1854
  }, se = M(0);
1837
- function $t(o, e) {
1838
- const t = e.getBoundingClientRect(), s = o.getBoundingClientRect(), i = s.top >= t.top, u = s.top <= t.bottom;
1839
- return i && u;
1855
+ function Nt(o, e) {
1856
+ const t = e.getBoundingClientRect(), s = o.getBoundingClientRect(), r = s.top >= t.top, u = s.top <= t.bottom;
1857
+ return r && u;
1840
1858
  }
1841
- function Ft(o) {
1859
+ function Lt(o) {
1842
1860
  if (!o)
1843
1861
  return;
1844
1862
  let e;
@@ -1849,28 +1867,28 @@ function Ft(o) {
1849
1867
  return;
1850
1868
  const s = e.querySelector(".component-btn-group");
1851
1869
  if (s) {
1852
- if (!$t(e, o)) {
1870
+ if (!Nt(e, o)) {
1853
1871
  s.style.display = "none";
1854
1872
  return;
1855
1873
  }
1856
1874
  s.style.display = "";
1857
1875
  const u = s.getBoundingClientRect(), d = s.querySelector("div");
1858
1876
  if (d) {
1859
- const g = d.getBoundingClientRect();
1860
- d.style.top = u.top + "px", d.style.left = u.left - g.width + "px";
1877
+ const m = d.getBoundingClientRect();
1878
+ d.style.top = u.top + "px", d.style.left = u.left - m.width + "px";
1861
1879
  }
1862
1880
  }
1863
1881
  }
1864
- function Nt(o, e, t) {
1882
+ function Vt(o, e, t) {
1865
1883
  var I;
1866
- const s = "", i = M();
1884
+ const s = "", r = M();
1867
1885
  function u() {
1868
1886
  return !0;
1869
1887
  }
1870
1888
  function d() {
1871
1889
  return !1;
1872
1890
  }
1873
- function g() {
1891
+ function m() {
1874
1892
  return !0;
1875
1893
  }
1876
1894
  function w() {
@@ -1910,13 +1928,13 @@ function Nt(o, e, t) {
1910
1928
  function _(...S) {
1911
1929
  return [];
1912
1930
  }
1913
- function D() {
1931
+ function T() {
1914
1932
  }
1915
- return i.value = {
1933
+ return r.value = {
1916
1934
  canMove: u(),
1917
1935
  canSelectParent: d(),
1918
1936
  canAdd: w(),
1919
- canDelete: g(),
1937
+ canDelete: m(),
1920
1938
  canNested: !h(),
1921
1939
  contents: [],
1922
1940
  elementRef: o,
@@ -1932,17 +1950,17 @@ function Nt(o, e, t) {
1932
1950
  onAcceptMovedChildElement: E,
1933
1951
  onChildElementMovedOut: j,
1934
1952
  addNewChildComponentSchema: O,
1935
- onRemoveComponent: D,
1953
+ onRemoveComponent: T,
1936
1954
  triggerBelongedComponentToMoveWhenMoved: M(!1),
1937
1955
  triggerBelongedComponentToDeleteWhenDeleted: M(!1)
1938
- }, i;
1956
+ }, r;
1939
1957
  }
1940
- const Ee = /* @__PURE__ */ W({
1958
+ const Ee = /* @__PURE__ */ U({
1941
1959
  name: "FDesignerInnerItem",
1942
- props: _t,
1960
+ props: Ft,
1943
1961
  emits: ["selectionChange", "addComponent", "removeComponent"],
1944
1962
  setup(o, e) {
1945
- const t = M(o.canMove), s = M(o.canAdd), i = M(o.canDelete), u = M(!1), d = M(o.contentKey), g = M(o.childType), w = M(o.childLabel), h = M(o.modelValue), b = M(""), c = M(), l = V("canvas-dragula"), f = M(), v = V("design-item-context"), E = {
1963
+ const t = M(o.canMove), s = M(o.canAdd), r = M(o.canDelete), u = M(!1), d = M(o.contentKey), m = M(o.childType), w = M(o.childLabel), h = M(o.modelValue), b = M(""), c = M(), l = V("canvas-dragula"), f = M(), v = V("design-item-context"), E = {
1946
1964
  designerItemElementRef: c,
1947
1965
  componentInstance: f,
1948
1966
  schema: h.value,
@@ -1954,30 +1972,30 @@ const Ee = /* @__PURE__ */ W({
1954
1972
  "farris-component": !0,
1955
1973
  // 受position-relative影响,整个容器的高度不能被撑起
1956
1974
  "flex-fill": o.id === "root-component",
1957
- "position-relative": t.value || i.value,
1975
+ "position-relative": t.value || r.value,
1958
1976
  "farris-nested": u.value,
1959
1977
  "can-move": t.value,
1960
1978
  "d-none": c.value && c.value.classList.contains("d-none")
1961
1979
  })), j = F(() => {
1962
1980
  const n = {};
1963
1981
  return b.value && b.value.split(";").reduce((a, p) => {
1964
- const [T, P] = p.split(":");
1965
- return T && (a[T] = P), a;
1982
+ const [D, P] = p.split(":");
1983
+ return D && (a[D] = P), a;
1966
1984
  }, n), n;
1967
1985
  });
1968
1986
  function _(n, a) {
1969
1987
  if (v && v.schema[d.value]) {
1970
- const p = v.schema[d.value].findIndex((T) => T.id === a.id);
1988
+ const p = v.schema[d.value].findIndex((D) => D.id === a.id);
1971
1989
  if (p > -1) {
1972
- const T = v.schema[d.value].length, P = v.schema[d.value][p % T];
1990
+ const D = v.schema[d.value].length, P = v.schema[d.value][p % D];
1973
1991
  v.designerItemElementRef.value.querySelector(`#${P.id}-design-item`), v.schema[d.value].splice(p, 1), se.value++, e.emit("removeComponent");
1974
1992
  }
1975
1993
  }
1976
1994
  }
1977
- function D(n) {
1995
+ function T(n) {
1978
1996
  if (f.value.addNewChildComponentSchema) {
1979
1997
  const a = {
1980
- componentType: g.value,
1998
+ componentType: m.value,
1981
1999
  label: w.value,
1982
2000
  parentComponentInstance: f.value,
1983
2001
  targetPosition: -1
@@ -1986,52 +2004,52 @@ const Ee = /* @__PURE__ */ W({
1986
2004
  }
1987
2005
  }
1988
2006
  function I() {
1989
- return s.value && m("div", {
2007
+ return s.value && g("div", {
1990
2008
  role: "button",
1991
2009
  class: "btn component-settings-button",
1992
2010
  title: "新增",
1993
2011
  ref: "removeComponent",
1994
2012
  onClick: (n) => {
1995
- D();
2013
+ T();
1996
2014
  }
1997
- }, [m("i", {
2015
+ }, [g("i", {
1998
2016
  class: "f-icon f-icon-plus-circle"
1999
2017
  }, null)]);
2000
2018
  }
2001
2019
  function S(n) {
2002
- return i.value && m("div", {
2020
+ return r.value && g("div", {
2003
2021
  role: "button",
2004
2022
  class: "btn component-settings-button",
2005
2023
  title: "删除",
2006
2024
  ref: "removeComponent",
2007
2025
  onClick: _e((a) => _(a, n), ["stop"])
2008
- }, [m("i", {
2026
+ }, [g("i", {
2009
2027
  class: "f-icon f-icon-yxs_delete"
2010
2028
  }, null)]);
2011
2029
  }
2012
2030
  function k() {
2013
- return t.value && m("div", {
2031
+ return t.value && g("div", {
2014
2032
  role: "button",
2015
2033
  class: "btn component-settings-button",
2016
2034
  title: "移动",
2017
2035
  ref: "moveComponent"
2018
- }, [m("i", {
2036
+ }, [g("i", {
2019
2037
  "data-dragging-icon": "true",
2020
2038
  class: "cmp_move f-icon f-icon-yxs_move"
2021
2039
  }, null)]);
2022
2040
  }
2023
2041
  function y(n) {
2024
- return m("div", {
2042
+ return g("div", {
2025
2043
  class: "component-btn-group",
2026
2044
  "data-noattach": "true"
2027
- }, [m("div", null, [I(), k(), S(n)])]);
2045
+ }, [g("div", null, [I(), k(), S(n)])]);
2028
2046
  }
2029
2047
  z(() => o.modelValue, (n) => {
2030
2048
  h.value = n, E.schema = n;
2031
2049
  });
2032
2050
  function x(n) {
2033
2051
  const a = n.target;
2034
- Ft(a);
2052
+ Lt(a);
2035
2053
  }
2036
2054
  function A() {
2037
2055
  var n, a;
@@ -2039,39 +2057,39 @@ const Ee = /* @__PURE__ */ W({
2039
2057
  }
2040
2058
  function C() {
2041
2059
  const n = c.value, a = M(n.children[1]);
2042
- return Nt(a, E).value;
2060
+ return Vt(a, E).value;
2043
2061
  }
2044
2062
  G(() => {
2045
2063
  if (c.value) {
2046
2064
  const n = c.value.querySelector(`[data-dragref='${h.value.id}-container']`);
2047
- f.value = n && n.componentInstance ? n.componentInstance.value : C(), l && n && l.attachComponents(n, h.value), u.value = f.value.canNested !== void 0 ? f.value.canNested : u.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, i.value = f.value.canDelete !== void 0 ? f.value.canDelete : i.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, b.value = f.value.styles || "", c.value && (c.value.componentInstance = f, c.value.designItemContext = E);
2065
+ f.value = n && n.componentInstance ? n.componentInstance.value : C(), l && n && l.attachComponents(n, h.value), u.value = f.value.canNested !== void 0 ? f.value.canNested : u.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, r.value = f.value.canDelete !== void 0 ? f.value.canDelete : r.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, b.value = f.value.styles || "", c.value && (c.value.componentInstance = f, c.value.designItemContext = E);
2048
2066
  }
2049
2067
  A(), se.value++;
2050
2068
  }), je(() => {
2051
2069
  c.value && c.value.removeEventListener("scroll", x);
2052
2070
  });
2053
- function r(n) {
2054
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((T) => T.classList.remove("dgComponentFocused")), n && (n.preventDefault(), n.stopPropagation());
2071
+ function i(n) {
2072
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((D) => D.classList.remove("dgComponentFocused")), n && (n.preventDefault(), n.stopPropagation());
2055
2073
  let a = E.designerItemElementRef;
2056
2074
  const p = c.value;
2057
2075
  if (p) {
2058
- const T = document.getElementsByClassName("dgComponentSelected");
2059
- T && T.length === 1 && T[0] === c.value || (Array.from(T).forEach((B) => B.classList.remove("dgComponentSelected")), p.classList.add("dgComponentFocused"), e.emit("selectionChange", h.value.type, h.value, o.componentId, f.value), a = f.value.getDraggableDesignItemElement(E), a && a.value && a.value.classList.add("dgComponentSelected"));
2076
+ const D = document.getElementsByClassName("dgComponentSelected");
2077
+ D && D.length === 1 && D[0] === c.value || (Array.from(D).forEach((B) => B.classList.remove("dgComponentSelected")), p.classList.add("dgComponentFocused"), e.emit("selectionChange", h.value.type, h.value, o.componentId, f.value), a = f.value.getDraggableDesignItemElement(E), a && a.value && a.value.classList.add("dgComponentSelected"));
2060
2078
  }
2061
2079
  x({
2062
2080
  target: a == null ? void 0 : a.value
2063
2081
  });
2064
2082
  }
2065
- return () => m("div", {
2083
+ return () => g("div", {
2066
2084
  id: `${o.id}-design-item`,
2067
2085
  ref: c,
2068
2086
  class: O.value,
2069
2087
  style: j.value,
2070
- onClick: r
2088
+ onClick: i
2071
2089
  }, [y(h.value), e.slots.default && e.slots.default()]);
2072
2090
  }
2073
2091
  });
2074
- class Lt extends te {
2092
+ class qt extends te {
2075
2093
  constructor(e, t) {
2076
2094
  super(e, t);
2077
2095
  }
@@ -2132,11 +2150,11 @@ class Lt extends te {
2132
2150
  label: "onClick",
2133
2151
  name: "点击事件"
2134
2152
  }
2135
- ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
2153
+ ], s = this, r = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
2136
2154
  u[s.viewModelId] = {
2137
2155
  type: "events-editor",
2138
2156
  editor: {
2139
- initialData: i
2157
+ initialData: r
2140
2158
  }
2141
2159
  }, this.propertyConfig.categories.eventsEditor = {
2142
2160
  title: "事件",
@@ -2146,14 +2164,14 @@ class Lt extends te {
2146
2164
  refreshPanelAfterChanged: !0,
2147
2165
  tabId: "commands",
2148
2166
  tabName: "交互",
2149
- setPropertyRelates(d, g) {
2167
+ setPropertyRelates(d, m) {
2150
2168
  const w = d.propertyValue;
2151
2169
  delete e[s.viewModelId], w && (w.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, w.events, w));
2152
2170
  }
2153
2171
  };
2154
2172
  }
2155
2173
  }
2156
- class Vt extends te {
2174
+ class Ut extends te {
2157
2175
  constructor(e, t) {
2158
2176
  super(e, t);
2159
2177
  }
@@ -2230,11 +2248,11 @@ class Vt extends te {
2230
2248
  label: "onClick",
2231
2249
  name: "点击事件"
2232
2250
  }
2233
- ], s = this, i = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
2251
+ ], s = this, r = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), u = {};
2234
2252
  u[s.viewModelId] = {
2235
2253
  type: "events-editor",
2236
2254
  editor: {
2237
- initialData: i
2255
+ initialData: r
2238
2256
  }
2239
2257
  }, this.propertyConfig.categories.eventsEditor = {
2240
2258
  title: "事件",
@@ -2244,46 +2262,46 @@ class Vt extends te {
2244
2262
  refreshPanelAfterChanged: !0,
2245
2263
  tabId: "commands",
2246
2264
  tabName: "交互",
2247
- setPropertyRelates(d, g) {
2265
+ setPropertyRelates(d, m) {
2248
2266
  const w = d.propertyValue;
2249
2267
  delete e[s.viewModelId], w && (w.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, w.events, w));
2250
2268
  }
2251
2269
  };
2252
2270
  }
2253
2271
  }
2254
- function Ut(o, e) {
2255
- function t(g) {
2272
+ function Wt(o, e) {
2273
+ function t(m) {
2256
2274
  return !1;
2257
2275
  }
2258
2276
  function s() {
2259
2277
  return !1;
2260
2278
  }
2261
- function i() {
2279
+ function r() {
2262
2280
  return !0;
2263
2281
  }
2264
2282
  function u() {
2265
2283
  return !1;
2266
2284
  }
2267
- function d(g) {
2285
+ function d(m) {
2268
2286
  let w;
2269
2287
  switch (o.schema.type) {
2270
2288
  case "tab-toolbar-item":
2271
- w = new Lt(g, e);
2289
+ w = new qt(m, e);
2272
2290
  break;
2273
2291
  default:
2274
- w = new Vt(g, e);
2292
+ w = new Ut(m, e);
2275
2293
  }
2276
2294
  return w.getPropertyConfig(o.schema);
2277
2295
  }
2278
2296
  return {
2279
2297
  canAccepts: t,
2280
2298
  checkCanMoveComponent: s,
2281
- checkCanDeleteComponent: i,
2299
+ checkCanDeleteComponent: r,
2282
2300
  checkCanAddComponent: u,
2283
2301
  getPropsConfig: d
2284
2302
  };
2285
2303
  }
2286
- const xe = /* @__PURE__ */ W({
2304
+ const xe = /* @__PURE__ */ U({
2287
2305
  name: "FResponseToolbarItemDesign",
2288
2306
  props: Me,
2289
2307
  emits: ["Click"],
@@ -2292,9 +2310,9 @@ const xe = /* @__PURE__ */ W({
2292
2310
  const t = M(o.alignment), s = {
2293
2311
  id: "__more_buttons__",
2294
2312
  text: "More"
2295
- }, i = M(new Q(s));
2296
- F(() => i.value.children.length > 0);
2297
- const u = M(), d = V("designer-host-service"), g = V("design-item-context"), w = Ut(g, d), h = ve(u, g, w);
2313
+ }, r = M(new Q(s));
2314
+ F(() => r.value.children.length > 0);
2315
+ const u = M(), d = V("designer-host-service"), m = V("design-item-context"), w = Wt(m, d), h = ve(u, m, w);
2298
2316
  V("toolbar-item-handler", () => {
2299
2317
  }), G(() => {
2300
2318
  u.value.componentInstance = h;
@@ -2319,32 +2337,32 @@ const xe = /* @__PURE__ */ W({
2319
2337
  };
2320
2338
  return Z(f, o.class);
2321
2339
  }
2322
- return () => m("div", {
2340
+ return () => g("div", {
2323
2341
  ref: u,
2324
- "data-dragref": `${g.schema.id}-container`,
2342
+ "data-dragref": `${m.schema.id}-container`,
2325
2343
  class: "farris-component position-relative",
2326
2344
  style: "display:inline-block!important;"
2327
- }, [m("button", {
2345
+ }, [g("button", {
2328
2346
  type: "button",
2329
2347
  class: l(),
2330
2348
  id: o.id
2331
- }, [c() && m("i", {
2349
+ }, [c() && g("i", {
2332
2350
  class: b()
2333
2351
  }, null), o.text])]);
2334
2352
  }
2335
- }), Be = /* @__PURE__ */ W({
2353
+ }), Be = /* @__PURE__ */ U({
2336
2354
  name: "FResponseToolbarDesign",
2337
- props: Et,
2355
+ props: Bt,
2338
2356
  emits: ["Click"],
2339
2357
  setup(o, e) {
2340
2358
  const t = M(o.items);
2341
2359
  let s = new Array(t.value.length).fill(M());
2342
- const i = M(), u = M(), d = M(o.alignment), g = {
2360
+ const r = M(), u = M(), d = M(o.alignment), m = {
2343
2361
  id: "__more_buttons__",
2344
2362
  text: "More"
2345
- }, w = M(new Q(g)), h = ke();
2363
+ }, w = M(new Q(m)), h = ke();
2346
2364
  F(() => w.value.children.length > 0);
2347
- const b = M(), c = V("designer-host-service"), l = V("design-item-context"), f = jt(l, c), v = ve(b, l, f), E = V("toolbar-item-handler", () => {
2365
+ const b = M(), c = V("designer-host-service"), l = V("design-item-context"), f = $t(l, c), v = ve(b, l, f), E = V("toolbar-item-handler", () => {
2348
2366
  });
2349
2367
  G(() => {
2350
2368
  b.value.componentInstance = v;
@@ -2362,9 +2380,9 @@ const xe = /* @__PURE__ */ W({
2362
2380
  "justify-content-end": d.value === "right",
2363
2381
  "justify-content-start": d.value === "left"
2364
2382
  })), {
2365
- renderToolbarDropdown: D,
2383
+ renderToolbarDropdown: T,
2366
2384
  clearAllDropDown: I
2367
- } = At(o, h, v);
2385
+ } = jt(o, h, v);
2368
2386
  function S() {
2369
2387
  t.value.filter((n) => n.children && n.children.length > 0).forEach((n) => {
2370
2388
  n.expanded = !1;
@@ -2374,12 +2392,12 @@ const xe = /* @__PURE__ */ W({
2374
2392
  function x(n) {
2375
2393
  const a = u.value;
2376
2394
  let p = n;
2377
- const T = Array.from(a.children), P = T[T.length - 1].id === "__more_buttons__" ? T[T.length - 1] : null;
2395
+ const D = Array.from(a.children), P = D[D.length - 1].id === "__more_buttons__" ? D[D.length - 1] : null;
2378
2396
  if (P) {
2379
2397
  const $ = P.computedStyleMap().get("margin-left"), L = P.computedStyleMap().get("margin-right"), H = ($ ? $.value : 0) + P.getBoundingClientRect().width + (L ? L.value : 0);
2380
2398
  p -= H;
2381
2399
  }
2382
- const B = T.filter(($) => $.id !== "__more_buttons__");
2400
+ const B = D.filter(($) => $.id !== "__more_buttons__");
2383
2401
  for (const $ of B) {
2384
2402
  const L = $.computedStyleMap().get("margin-left"), H = $.computedStyleMap().get("margin-right"), J = (L ? L.value : 0) + $.getBoundingClientRect().width + (H ? H.value : 0);
2385
2403
  p < J ? (k.set($.id, !0), y.push({
@@ -2397,8 +2415,8 @@ const xe = /* @__PURE__ */ W({
2397
2415
  }
2398
2416
  const N = Object.assign({}, w.value);
2399
2417
  N.children = [];
2400
- const U = new Q(N), q = t.value.reduce(($, L) => (k.has(L.id) && U.children.push(L), L.visible = !k.has(L.id), $.push(L), $), []);
2401
- w.value = U, t.value = q;
2418
+ const q = new Q(N), W = t.value.reduce(($, L) => (k.has(L.id) && q.children.push(L), L.visible = !k.has(L.id), $.push(L), $), []);
2419
+ w.value = q, t.value = W;
2402
2420
  }
2403
2421
  const A = new ResizeObserver((n) => {
2404
2422
  if (n.length) {
@@ -2407,9 +2425,9 @@ const xe = /* @__PURE__ */ W({
2407
2425
  }
2408
2426
  });
2409
2427
  G(() => {
2410
- const n = i.value;
2428
+ const n = r.value;
2411
2429
  A.observe(n), document.body.addEventListener("click", S);
2412
- }), be(() => {
2430
+ }), ye(() => {
2413
2431
  A.disconnect(), document.body.removeEventListener("click", S);
2414
2432
  }), z(() => o.items, () => {
2415
2433
  t.value = o.items;
@@ -2418,25 +2436,25 @@ const xe = /* @__PURE__ */ W({
2418
2436
  }), z(t, (n) => {
2419
2437
  s = new Array(t.value.length).fill(M());
2420
2438
  });
2421
- function C(n, a, p, T) {
2422
- l && l.setupContext && l.setupContext.emit("selectionChange", n, a, p, T);
2439
+ function C(n, a, p, D) {
2440
+ l && l.setupContext && l.setupContext.emit("selectionChange", n, a, p, D);
2423
2441
  }
2424
- function r() {
2442
+ function i() {
2425
2443
  const n = u.value.querySelector(".dgComponentFocused.dgComponentSelected");
2426
2444
  n == null || n.classList.remove("dgComponentSelected"), n == null || n.classList.remove("dgComponentFocused"), O();
2427
2445
  }
2428
- return () => m("div", {
2446
+ return () => g("div", {
2429
2447
  ref: b,
2430
2448
  "data-dragref": `${l.schema.id}-container`,
2431
2449
  class: j.value
2432
- }, [m("div", {
2433
- ref: i,
2450
+ }, [g("div", {
2451
+ ref: r,
2434
2452
  class: _.value
2435
- }, [m("div", {
2453
+ }, [g("div", {
2436
2454
  ref: u,
2437
2455
  class: "d-inline-block f-response-content",
2438
2456
  style: "white-space: nowrap;"
2439
- }, [t.value.map((n, a) => m(Ee, {
2457
+ }, [t.value.map((n, a) => g(Ee, {
2440
2458
  ref: s[a],
2441
2459
  class: "p-0 display-inline-block",
2442
2460
  modelValue: n,
@@ -2449,11 +2467,11 @@ const xe = /* @__PURE__ */ W({
2449
2467
  id: n.id,
2450
2468
  style: "padding:0 !important;display:inline-block",
2451
2469
  onSelectionChange: C,
2452
- onRemoveComponent: r
2470
+ onRemoveComponent: i
2453
2471
  }, {
2454
2472
  default: () => {
2455
2473
  var p;
2456
- return [m(xe, {
2474
+ return [g(xe, {
2457
2475
  id: n.id,
2458
2476
  disabled: n.disabled,
2459
2477
  text: n.text,
@@ -2465,15 +2483,15 @@ const xe = /* @__PURE__ */ W({
2465
2483
  }
2466
2484
  }))])])]);
2467
2485
  }
2468
- }), me = le;
2486
+ }), me = de;
2469
2487
  K.register = (o, e, t) => {
2470
- o["response-toolbar"] = K, e["response-toolbar"] = le;
2488
+ o["response-toolbar"] = K, e["response-toolbar"] = de;
2471
2489
  };
2472
2490
  K.registerDesigner = (o, e, t) => {
2473
- o["response-toolbar"] = Be, e["response-toolbar"] = le, o["response-toolbar-item"] = xe, e["response-toolbar-item"] = xt;
2491
+ o["response-toolbar"] = Be, e["response-toolbar"] = de, o["response-toolbar-item"] = xe, e["response-toolbar-item"] = Rt;
2474
2492
  };
2475
2493
  Fe(K);
2476
- const Wt = {
2494
+ const Ht = {
2477
2495
  id: { type: String, default: "" },
2478
2496
  componentId: { type: String, default: "" },
2479
2497
  type: { type: String, default: "" },
@@ -2488,104 +2506,104 @@ const Wt = {
2488
2506
  */
2489
2507
  modelValue: { type: Object },
2490
2508
  ignore: { type: Boolean, default: !1 }
2491
- }, ge = /* @__PURE__ */ W({
2509
+ }, he = /* @__PURE__ */ U({
2492
2510
  name: "FDesignerTemplateItem",
2493
- props: Wt,
2511
+ props: Ht,
2494
2512
  emits: ["selectionChange"],
2495
2513
  setup(o, e) {
2496
2514
  const t = M(), s = F(() => ({
2497
2515
  "farris-component": !0
2498
2516
  }));
2499
- function i(u) {
2500
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((g) => g.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
2517
+ function r(u) {
2518
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((m) => m.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
2501
2519
  const d = t.value;
2502
2520
  if (d) {
2503
- const g = document.getElementsByClassName("dgComponentSelected");
2504
- g && g.length === 1 && g[0] === t.value || (Array.from(g).forEach((h) => h.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
2521
+ const m = document.getElementsByClassName("dgComponentSelected");
2522
+ m && m.length === 1 && m[0] === t.value || (Array.from(m).forEach((h) => h.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
2505
2523
  }
2506
2524
  se.value++;
2507
2525
  }
2508
- return () => m("div", {
2526
+ return () => g("div", {
2509
2527
  id: `${o.id}-design-item`,
2510
2528
  ref: t,
2511
2529
  class: s.value,
2512
- onClick: i
2530
+ onClick: r
2513
2531
  }, [e.slots.default && e.slots.default()]);
2514
2532
  }
2515
- }), qt = /* @__PURE__ */ W({
2533
+ }), zt = /* @__PURE__ */ U({
2516
2534
  name: "FPageHeaderDesign",
2517
- props: nt,
2535
+ props: st,
2518
2536
  emits: ["click"],
2519
2537
  setup(o, e) {
2520
- const t = M(), s = V("designer-host-service"), i = V("design-item-context"), u = it(i.schema, s), d = st(t, i, u), g = M(i.schema.toolbar || {
2538
+ const t = M(), s = V("designer-host-service"), r = V("design-item-context"), u = ct(r.schema, s), d = it(t, r, u), m = M(r.schema.toolbar || {
2521
2539
  type: "response-toolbar",
2522
2540
  buttons: []
2523
- }), w = M(me(g.value));
2541
+ }), w = M(me(m.value));
2524
2542
  G(() => {
2525
2543
  t.value.componentInstance = d;
2526
- }), z(() => i.schema.toolbar, () => {
2527
- g.value = i.schema.toolbar || {
2544
+ }), z(() => r.schema.toolbar, () => {
2545
+ m.value = r.schema.toolbar || {
2528
2546
  type: "response-toolbar",
2529
2547
  buttons: []
2530
- }, w.value = me(g.value);
2548
+ }, w.value = me(m.value);
2531
2549
  }, {
2532
2550
  deep: !0
2533
2551
  });
2534
2552
  const h = F(() => [...w.value.items]);
2535
2553
  function b(c, l, f, v) {
2536
- i && i.setupContext && i.setupContext.emit("selectionChange", c, l, f, v);
2554
+ r && r.setupContext && r.setupContext.emit("selectionChange", c, l, f, v);
2537
2555
  }
2538
- return e.expose(d.value), () => m("div", {
2556
+ return e.expose(d.value), () => g("div", {
2539
2557
  ref: t
2540
- }, [m("nav", {
2558
+ }, [g("nav", {
2541
2559
  class: "f-page-header-base"
2542
- }, [m("div", {
2560
+ }, [g("div", {
2543
2561
  class: "f-title"
2544
- }, [m(ge, null, {
2545
- default: () => [m("span", {
2562
+ }, [g(he, null, {
2563
+ default: () => [g("span", {
2546
2564
  class: "f-title-icon f-text-orna-manage"
2547
- }, [m("i", {
2565
+ }, [g("i", {
2548
2566
  class: o.icon
2549
2567
  }, null)])]
2550
- }), m(ge, null, {
2551
- default: () => [m("h4", {
2568
+ }), g(he, null, {
2569
+ default: () => [g("h4", {
2552
2570
  class: "f-title-text"
2553
2571
  }, [o.title])]
2554
- })]), m(Ee, {
2572
+ })]), g(Ee, {
2555
2573
  class: "col-6 text-right",
2556
- modelValue: g.value,
2557
- "onUpdate:modelValue": (c) => g.value = c,
2574
+ modelValue: m.value,
2575
+ "onUpdate:modelValue": (c) => m.value = c,
2558
2576
  canAdd: !0,
2559
2577
  childType: "response-toolbar-item",
2560
2578
  childLabel: "按钮",
2561
2579
  contentKey: "buttons",
2562
- id: g.value.id,
2580
+ id: m.value.id,
2563
2581
  componentId: o.componentId,
2564
2582
  onSelectionChange: b
2565
2583
  }, {
2566
- default: () => [m(Be, {
2584
+ default: () => [g(Be, {
2567
2585
  customClass: "w-100",
2568
2586
  items: h.value,
2569
2587
  componentId: o.componentId
2570
2588
  }, null)]
2571
2589
  })])]);
2572
2590
  }
2573
- }), Yt = {
2591
+ }), Kt = {
2574
2592
  install(o) {
2575
2593
  o.component(oe.name, oe);
2576
2594
  },
2577
2595
  register(o, e, t, s) {
2578
- o["page-header"] = oe, e["page-header"] = pe, s["page-header"] = { eventHandlerResolver: ot };
2596
+ o["page-header"] = oe, e["page-header"] = fe, s["page-header"] = { eventHandlerResolver: rt };
2579
2597
  },
2580
2598
  registerDesigner(o, e, t) {
2581
- o["page-header"] = qt, e["page-header"] = pe;
2599
+ o["page-header"] = zt, e["page-header"] = fe;
2582
2600
  }
2583
2601
  };
2584
2602
  export {
2585
2603
  oe as PageHeader,
2586
- Yt as default,
2587
- ot as eventHandlerResolver,
2588
- nt as pageHeaderDesignerProps,
2589
- ae as pageHeaderProps,
2590
- pe as propsResolver
2604
+ Kt as default,
2605
+ rt as eventHandlerResolver,
2606
+ st as pageHeaderDesignerProps,
2607
+ ce as pageHeaderProps,
2608
+ fe as propsResolver
2591
2609
  };