@farris/ui-vue 1.8.5-beta.3 → 1.8.5-beta.4

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 (61) hide show
  1. package/components/batch-editor/index.esm.js +6850 -6840
  2. package/components/batch-editor/index.umd.cjs +20 -20
  3. package/components/button/index.esm.js +6852 -6842
  4. package/components/button/index.umd.cjs +20 -20
  5. package/components/button-edit/index.esm.js +140 -140
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +46 -45
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/common/index.esm.js +16 -12
  10. package/components/common/index.umd.cjs +1 -1
  11. package/components/component/index.esm.js +411 -411
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/data-view/index.esm.js +6500 -6487
  14. package/components/data-view/index.umd.cjs +21 -21
  15. package/components/designer-canvas/index.esm.js +269 -269
  16. package/components/designer-canvas/index.umd.cjs +1 -1
  17. package/components/expression-editor/index.esm.js +458 -458
  18. package/components/expression-editor/index.umd.cjs +2 -2
  19. package/components/filter-condition-editor/index.esm.js +386 -386
  20. package/components/filter-condition-editor/index.umd.cjs +1 -1
  21. package/components/flow-canvas/index.esm.js +1100 -1100
  22. package/components/flow-canvas/index.umd.cjs +7 -7
  23. package/components/mapping-editor/index.esm.js +243 -243
  24. package/components/mapping-editor/index.umd.cjs +2 -2
  25. package/components/message-box/index.esm.js +82 -82
  26. package/components/message-box/index.umd.cjs +1 -1
  27. package/components/modal/index.esm.js +76 -76
  28. package/components/modal/index.umd.cjs +1 -1
  29. package/components/order/index.esm.js +139 -138
  30. package/components/order/index.umd.cjs +1 -1
  31. package/components/query-solution/index.esm.js +891 -891
  32. package/components/query-solution/index.umd.cjs +1 -1
  33. package/components/response-toolbar/index.esm.js +151 -149
  34. package/components/response-toolbar/index.umd.cjs +1 -1
  35. package/components/schema-selector/index.esm.js +947 -941
  36. package/components/schema-selector/index.umd.cjs +6 -6
  37. package/components/section/index.esm.js +121 -121
  38. package/components/section/index.umd.cjs +2 -2
  39. package/components/sort-condition-editor/index.esm.js +539 -539
  40. package/components/sort-condition-editor/index.umd.cjs +1 -1
  41. package/components/tabs/index.esm.js +448 -442
  42. package/components/tabs/index.umd.cjs +1 -1
  43. package/designer/button-edit/index.esm.js +97 -97
  44. package/designer/button-edit/index.umd.cjs +1 -1
  45. package/designer/data-grid/index.esm.js +6483 -6470
  46. package/designer/data-grid/index.umd.cjs +21 -21
  47. package/designer/farris-designer.all.esm.js +1891 -1885
  48. package/designer/farris-designer.all.umd.cjs +14 -14
  49. package/designer/radio-group/index.esm.js +183 -183
  50. package/designer/radio-group/index.umd.cjs +2 -2
  51. package/designer/response-toolbar/index.esm.js +558 -556
  52. package/designer/response-toolbar/index.umd.cjs +1 -1
  53. package/designer/tabs/index.esm.js +416 -416
  54. package/designer/tabs/index.umd.cjs +2 -2
  55. package/farris.all.esm.js +9133 -9119
  56. package/farris.all.umd.cjs +35 -35
  57. package/package.json +1 -1
  58. package/types/common/index.d.ts +1 -0
  59. package/types/common/utils/attrs.d.ts +26 -0
  60. package/types/modal/src/composition/type.d.ts +2 -0
  61. package/types/tabs/src/composition/types.d.ts +2 -0
@@ -1,23 +1,23 @@
1
- var Ot = Object.defineProperty;
2
- var jt = (e, b, t) => b in e ? Ot(e, b, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[b] = t;
3
- var Z = (e, b, t) => jt(e, typeof b != "symbol" ? b + "" : b, t);
4
- import { getCustomClass as ne, isMobilePhone as _t, useGuid as At, EVENT_PROPERTY_TAB_IDS as $t, withInstall as Lt } from "../../components/common/index.esm.js";
5
- import { resolveAppearance as Ft, createPropsResolver as lt, createResponseToolbarEventHandlerResolver as Nt, getSchemaByType as at } from "../../components/dynamic-resolver/index.esm.js";
6
- import { responseToolbarProps as ct } from "../../components/response-toolbar/index.esm.js";
7
- import { computed as fe, createVNode as F, Teleport as Wt, getCurrentInstance as qt, reactive as Pe, withDirectives as Ee, resolveDirective as Me, ref as re, defineComponent as ze, watch as Ie, onMounted as Ge, onUnmounted as ut, nextTick as Te, inject as Ce, provide as zt, createTextVNode as Gt } from "vue";
8
- import { LocaleService as Ut } from "../../components/locale/index.esm.js";
9
- import { canvasChanged as Ne, useDesignerInnerComponent as Yt, FDesignerInnerItem as Xt, useDesignerComponent as Ht, setPositionForSelectedElement as Vt } from "../../components/designer-canvas/index.esm.js";
10
- import { BaseControlProperty as dt } from "../../components/property-panel/index.esm.js";
11
- import { isPlainObject as nt, cloneDeep as xe } from "lodash-es";
12
- import { TabToolbarItemProperty as Qt } from "../../components/tabs/index.esm.js";
13
- const Zt = /* @__PURE__ */ new Map([
1
+ var _t = Object.defineProperty;
2
+ var At = (e, v, t) => v in e ? _t(e, v, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[v] = t;
3
+ var Z = (e, v, t) => At(e, typeof v != "symbol" ? v + "" : v, t);
4
+ import { getCustomClass as ne, extractDataAttrs as Ce, isMobilePhone as $t, useGuid as Lt, EVENT_PROPERTY_TAB_IDS as Ft, withInstall as Nt } from "../../components/common/index.esm.js";
5
+ import { resolveAppearance as Wt, createPropsResolver as ct, createResponseToolbarEventHandlerResolver as qt, getSchemaByType as ut } from "../../components/dynamic-resolver/index.esm.js";
6
+ import { responseToolbarProps as dt } from "../../components/response-toolbar/index.esm.js";
7
+ import { computed as fe, createVNode as F, Teleport as zt, getCurrentInstance as Gt, reactive as Me, mergeProps as xe, withDirectives as Re, resolveDirective as Be, ref as re, defineComponent as Ue, watch as Pe, onMounted as Ye, onUnmounted as ft, nextTick as Se, inject as Te, provide as Ut, createTextVNode as Yt } from "vue";
8
+ import { LocaleService as Xt } from "../../components/locale/index.esm.js";
9
+ import { canvasChanged as qe, useDesignerInnerComponent as Ht, FDesignerInnerItem as Vt, useDesignerComponent as Qt, setPositionForSelectedElement as Zt } from "../../components/designer-canvas/index.esm.js";
10
+ import { BaseControlProperty as pt } from "../../components/property-panel/index.esm.js";
11
+ import { isPlainObject as rt, cloneDeep as De } from "lodash-es";
12
+ import { TabToolbarItemProperty as Jt } from "../../components/tabs/index.esm.js";
13
+ const Kt = /* @__PURE__ */ new Map([
14
14
  ["buttons", "items"],
15
- ["appearance", Ft]
15
+ ["appearance", Wt]
16
16
  ]);
17
- function ft(e, b, t) {
18
- return b;
17
+ function ht(e, v, t) {
18
+ return v;
19
19
  }
20
- const Jt = "https://json-schema.org/draft/2020-12/schema", Kt = "https://farris-design.gitee.io/response-toolbar.schema.json", en = "response-toolbar", tn = "A Farris Toolbar Component", nn = "object", on = {
20
+ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-design.gitee.io/response-toolbar.schema.json", nn = "response-toolbar", on = "A Farris Toolbar Component", rn = "object", sn = {
21
21
  id: {
22
22
  description: "The unique identifier for a Response Toolbar",
23
23
  type: "string"
@@ -61,22 +61,22 @@ const Jt = "https://json-schema.org/draft/2020-12/schema", Kt = "https://farris-
61
61
  type: "string",
62
62
  default: "btn-secondary"
63
63
  }
64
- }, rn = [
64
+ }, ln = [
65
65
  "id",
66
66
  "type",
67
67
  "buttons"
68
- ], sn = {
68
+ ], an = {
69
69
  onClick: "点击事件"
70
- }, ln = {
71
- $schema: Jt,
72
- $id: Kt,
73
- title: en,
74
- description: tn,
75
- type: nn,
76
- properties: on,
77
- required: rn,
78
- events: sn
79
- }, an = "https://json-schema.org/draft/2020-12/schema", cn = "https://farris-design.gitee.io/response-toolbar-item.schema.json", un = "response-toolbar-item", dn = "A Farris Toolbar Item Component", fn = "object", pn = {
70
+ }, cn = {
71
+ $schema: en,
72
+ $id: tn,
73
+ title: nn,
74
+ description: on,
75
+ type: rn,
76
+ properties: sn,
77
+ required: ln,
78
+ events: an
79
+ }, un = "https://json-schema.org/draft/2020-12/schema", dn = "https://farris-design.gitee.io/response-toolbar-item.schema.json", fn = "response-toolbar-item", pn = "A Farris Toolbar Item Component", hn = "object", gn = {
80
80
  id: {
81
81
  description: "The unique identifier for a Response Toolbar",
82
82
  type: "string"
@@ -146,29 +146,29 @@ const Jt = "https://json-schema.org/draft/2020-12/schema", Kt = "https://farris-
146
146
  type: "boolean",
147
147
  default: !1
148
148
  }
149
- }, hn = [
149
+ }, bn = [
150
150
  "id",
151
151
  "type",
152
152
  "text"
153
- ], gn = {
153
+ ], vn = {
154
154
  onClick: "点击事件"
155
- }, bn = {
156
- $schema: an,
157
- $id: cn,
158
- title: un,
159
- description: dn,
160
- type: fn,
161
- properties: pn,
162
- required: hn,
163
- events: gn
164
- }, vn = Object.assign({}, ct, {
155
+ }, mn = {
156
+ $schema: un,
157
+ $id: dn,
158
+ title: fn,
159
+ description: pn,
160
+ type: hn,
161
+ properties: gn,
162
+ required: bn,
163
+ events: vn
164
+ }, yn = Object.assign({}, dt, {
165
165
  componentId: { type: String, default: "" }
166
- }), Ue = lt(
167
- ct,
168
- ln,
169
- Zt,
170
- ft
171
- ), mn = {
166
+ }), Xe = ct(
167
+ dt,
168
+ cn,
169
+ Kt,
170
+ ht
171
+ ), wn = {
172
172
  id: { type: String, default: "" },
173
173
  item: { type: Object, default: {} },
174
174
  items: { type: Object, default: {} },
@@ -186,17 +186,17 @@ const Jt = "https://json-schema.org/draft/2020-12/schema", Kt = "https://farris-
186
186
  // 是否下拉项
187
187
  isDPItem: { type: Boolean, default: !1 },
188
188
  dropdownClass: { Type: String, default: "" }
189
- }, pt = Object.assign({}, mn, {
189
+ }, gt = Object.assign({}, wn, {
190
190
  item: { type: Object, default: {} },
191
191
  items: { type: Object, default: {} },
192
192
  class: { type: String, default: "btn-secondary" },
193
193
  alignment: { Type: String, default: "right" }
194
- }), yn = lt(
195
- pt,
196
- bn,
194
+ }), Cn = ct(
195
+ gt,
196
+ mn,
197
197
  void 0,
198
- ft
199
- ), wn = Nt(), Cn = {
198
+ ht
199
+ ), xn = qt(), Tn = {
200
200
  /**
201
201
  * 组件标识
202
202
  * @default ''
@@ -235,8 +235,8 @@ const Jt = "https://json-schema.org/draft/2020-12/schema", Kt = "https://farris-
235
235
  */
236
236
  moreButtonClass: { type: String, default: "btn-secondary" }
237
237
  };
238
- class ht {
239
- constructor(b) {
238
+ class bt {
239
+ constructor(v) {
240
240
  /** 工具栏项标识 */
241
241
  Z(this, "id", "");
242
242
  /** 工具栏项自定义样式 */
@@ -268,7 +268,7 @@ class ht {
268
268
  });
269
269
  Z(this, "options");
270
270
  var p, u;
271
- this.options = b;
271
+ this.options = v;
272
272
  const t = [
273
273
  "id",
274
274
  "class",
@@ -286,37 +286,37 @@ class ht {
286
286
  "dropdownClass",
287
287
  "onClick"
288
288
  ];
289
- Object.keys(b).filter((i) => t.indexOf(i) > -1).forEach((i) => {
290
- i === "visible" ? this[i] = b[i] === void 0 ? !0 : b[i] : this[i] = b[i];
291
- }), this.shown = this.visible, (p = b.appearance) != null && p.class && (this.class = (u = b.appearance) == null ? void 0 : u.class), this.class || (this.class = "btn-secondary");
289
+ Object.keys(v).filter((i) => t.indexOf(i) > -1).forEach((i) => {
290
+ i === "visible" ? this[i] = v[i] === void 0 ? !0 : v[i] : this[i] = v[i];
291
+ }), this.shown = this.visible, (p = v.appearance) != null && p.class && (this.class = (u = v.appearance) == null ? void 0 : u.class), this.class || (this.class = "btn-secondary");
292
292
  }
293
293
  /** 是否可用 */
294
294
  get enable() {
295
295
  return Object.keys(this.options).indexOf("disabled") > -1 ? !this.options.disabled : fe(() => !0);
296
296
  }
297
297
  /** 设置宽度 */
298
- setWidth(b) {
299
- this.width = parseInt(b, 10);
298
+ setWidth(v) {
299
+ this.width = parseInt(v, 10);
300
300
  }
301
301
  /** 获取宽度 */
302
302
  getWidth() {
303
303
  return this.visible ? this.width : !1;
304
304
  }
305
305
  }
306
- class xn extends ht {
307
- constructor(b) {
308
- super(b);
306
+ class Dn extends bt {
307
+ constructor(v) {
308
+ super(v);
309
309
  }
310
310
  }
311
- function gt() {
312
- function e(b) {
311
+ function vt() {
312
+ function e(v) {
313
313
  const t = [];
314
- return b.reduce((p, u) => (u.children && u.children.length > 0 ? p.push(new ke(u)) : p.push(new xn(u)), p), t), t;
314
+ return v.reduce((p, u) => (u.children && u.children.length > 0 ? p.push(new Ee(u)) : p.push(new Dn(u)), p), t), t;
315
315
  }
316
316
  return { buildResponseToolbarItems: e };
317
317
  }
318
- const { buildResponseToolbarItems: Tn } = gt();
319
- class ke extends ht {
318
+ const { buildResponseToolbarItems: Sn } = vt();
319
+ class Ee extends bt {
320
320
  constructor(t) {
321
321
  super(t);
322
322
  Z(this, "placement", "");
@@ -335,10 +335,10 @@ class ke extends ht {
335
335
  const p = ["visible", "icon", "isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
336
336
  Object.keys(t).filter((u) => p.indexOf(u) > -1).forEach((u) => {
337
337
  u === "visible" ? this[u] = t[u] === void 0 ? !0 : t[u] : this[u] = t[u];
338
- }), this.shown = this.visible, t.children && t.children.length && (this.children = Tn(t.children));
338
+ }), this.shown = this.visible, t.children && t.children.length && (this.children = Sn(t.children));
339
339
  }
340
340
  }
341
- function Ye() {
341
+ function He() {
342
342
  function e(t) {
343
343
  const p = {
344
344
  "f-icon": !0
@@ -349,65 +349,65 @@ function Ye() {
349
349
  }
350
350
  return p;
351
351
  }
352
- function b(t) {
352
+ function v(t) {
353
353
  return !!(t.icon && t.icon.trim());
354
354
  }
355
- return { iconClass: e, shouldShowIcon: b };
355
+ return { iconClass: e, shouldShowIcon: v };
356
356
  }
357
- function Dn(e, b) {
358
- function t(v) {
357
+ function kn(e, v) {
358
+ function t(m) {
359
359
  return ne({
360
360
  "dropdown-menu": !0
361
- }, v.menuClass);
361
+ }, m.menuClass);
362
362
  }
363
- function p(v) {
363
+ function p(m) {
364
364
  const o = {
365
- disabled: !v.enable,
365
+ disabled: !m.enable,
366
366
  "dropdown-submenu": !0,
367
367
  "f-rt-dropdown": !0,
368
368
  "text-truncate": !0
369
369
  };
370
- return ne(o, v.dropdownClass);
370
+ return ne(o, m.dropdownClass);
371
371
  }
372
- function u(v) {
372
+ function u(m) {
373
373
  const o = {
374
- disabled: !v.enable,
374
+ disabled: !m.enable,
375
375
  "dropdown-item": !0,
376
376
  "f-rt-btn": !0,
377
377
  "text-truncate": !0
378
378
  };
379
- return ne(o, v.dropdownClass);
379
+ return ne(o, m.dropdownClass);
380
380
  }
381
- function i(v) {
381
+ function i(m) {
382
382
  const o = {
383
- disabled: !v.enable,
383
+ disabled: !m.enable,
384
384
  "dropdown-item": !0,
385
385
  "f-rt-btn": !0,
386
386
  "text-truncate": !0,
387
- "f-rt-toggle": !v.split,
388
- "btn-icontext": !!(v.icon && v.icon.trim()),
389
- "dropdown-toggle": !v.split,
387
+ "f-rt-toggle": !m.split,
388
+ "btn-icontext": !!(m.icon && m.icon.trim()),
389
+ "dropdown-toggle": !m.split,
390
390
  "btn-secondary": !0
391
391
  };
392
- return ne(o, v.dropdownClass);
392
+ return ne(o, m.dropdownClass);
393
393
  }
394
- function x(v) {
394
+ function x(m) {
395
395
  const o = {
396
396
  "f-rt-btn": !0,
397
397
  "text-truncate": !0,
398
- "btn-icontext": !!(v.icon && v.icon.trim()),
398
+ "btn-icontext": !!(m.icon && m.icon.trim()),
399
399
  "d-block": !0
400
400
  };
401
- return ne(o, v.dropdownClass);
401
+ return ne(o, m.dropdownClass);
402
402
  }
403
403
  let w;
404
404
  const h = /* @__PURE__ */ new Map();
405
405
  let E = "";
406
- function k(v) {
407
- E = "#" + v;
406
+ function I(m) {
407
+ E = "#" + m;
408
408
  }
409
- function f(v, o, $) {
410
- v.stopPropagation();
409
+ function f(m, o, $) {
410
+ m.stopPropagation();
411
411
  const P = $ ? $.id : "__top_item__";
412
412
  if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded)) {
413
413
  if (h.has(P) && h.get(P) !== o) {
@@ -417,108 +417,108 @@ function Dn(e, b) {
417
417
  h.set(P, o);
418
418
  }
419
419
  }
420
- function r(v, o) {
421
- document.body.click(), o.enable && (v.stopPropagation(), typeof o.onClick == "function" && o.onClick(v, o.id), e.emit("click", v, o.id));
420
+ function r(m, o) {
421
+ document.body.click(), o.enable && (m.stopPropagation(), typeof o.onClick == "function" && o.onClick(m, o.id), e.emit("click", m, o.id));
422
422
  }
423
- function d(v, o) {
424
- const $ = v.target;
423
+ function d(m, o) {
424
+ const $ = m.target;
425
425
  $.className.indexOf("dropdown-item") < 0 || ($.title = $.scrollWidth > $.clientWidth ? o : "");
426
426
  }
427
- function s(v, o, $) {
427
+ function s(m, o, $) {
428
428
  if (o.tipsEnable && o.tipsText) {
429
- const P = Pe({
429
+ const P = Me({
430
430
  content: o.tipsText,
431
431
  enable: o.tipsEnable
432
432
  });
433
- return Ee(F("li", {
433
+ return Re(F("li", xe(Ce(o.options), {
434
434
  class: u(o),
435
435
  id: o.id,
436
436
  key: o.id + "_" + $,
437
437
  onClick: (c) => r(c, o)
438
- }, [F("span", {
438
+ }), [F("span", {
439
439
  class: x(o)
440
- }, [b.shouldShowIcon(o) && F("i", {
441
- class: b.iconClass(o)
442
- }, null), o.text])]), [[Me("tooltip"), P]]);
440
+ }, [v.shouldShowIcon(o) && F("i", {
441
+ class: v.iconClass(o)
442
+ }, null), o.text])]), [[Be("tooltip"), P]]);
443
443
  }
444
- return F("li", {
444
+ return F("li", xe(Ce(o.options), {
445
445
  class: u(o),
446
446
  id: o.id,
447
447
  onClick: (P) => r(P, o)
448
- }, [F("span", {
448
+ }), [F("span", {
449
449
  class: x(o),
450
450
  onMouseenter: (P) => d(P, o.text)
451
- }, [b.shouldShowIcon(o) && F("i", {
452
- class: b.iconClass(o)
451
+ }, [v.shouldShowIcon(o) && F("i", {
452
+ class: v.iconClass(o)
453
453
  }, null), o.text])]);
454
454
  }
455
- function n(v, o, $) {
456
- o.enable && (typeof o.onClick == "function" && $.onClick(v, o.id), e.emit("click", v, o.id), $.split || f(v, o, $));
455
+ function n(m, o, $) {
456
+ o.enable && (typeof o.onClick == "function" && $.onClick(m, o.id), e.emit("click", m, o.id), $.split || f(m, o, $));
457
457
  }
458
- function D(v, o, $) {
459
- v && v.stopPropagation(), f(v, o, $);
458
+ function D(m, o, $) {
459
+ m && m.stopPropagation(), f(m, o, $);
460
460
  }
461
- function O(v, o) {
462
- v.stopPropagation();
461
+ function O(m, o) {
462
+ m.stopPropagation();
463
463
  const $ = o.id;
464
464
  if (o.children && o.children.length && o.expanded && h.has($)) {
465
465
  const P = h.get($);
466
466
  P && (P.expanded = !1, h.delete($));
467
467
  }
468
468
  }
469
- function B(v, o, $) {
469
+ function B(m, o, $) {
470
470
  if (o.tipsEnable && o.tipsText) {
471
- const P = Pe({
471
+ const P = Me({
472
472
  content: o.tipsText,
473
473
  enable: o.tipsEnable
474
474
  });
475
- return F("li", {
475
+ return F("li", xe(Ce(o.options), {
476
476
  class: p(o),
477
477
  id: o.id,
478
478
  key: o.id + "_" + $,
479
- onClick: (c) => n(c, o, v)
480
- }, [Ee(F("span", {
479
+ onClick: (c) => n(c, o, m)
480
+ }), [Re(F("span", {
481
481
  class: i(o)
482
- }, [b.shouldShowIcon(o) && F("i", {
483
- class: b.iconClass(o)
484
- }, null), o.text]), [[Me("tooltip"), P]]), o.split && F("span", {
482
+ }, [v.shouldShowIcon(o) && F("i", {
483
+ class: v.iconClass(o)
484
+ }, null), o.text]), [[Be("tooltip"), P]]), o.split && F("span", {
485
485
  class: "dropdown-toggle dropdown-toggle-split f-rt-toggle",
486
- onClick: (c) => D(c, o, v)
486
+ onClick: (c) => D(c, o, m)
487
487
  }, null), w(o, o)]);
488
488
  }
489
- return F("li", {
489
+ return F("li", xe(Ce(o.options), {
490
490
  class: p(o),
491
491
  id: o.id,
492
- onClick: (P) => n(P, o, v),
492
+ onClick: (P) => n(P, o, m),
493
493
  onMouseenter: (P) => d(P, o.text)
494
- }, [F("span", {
494
+ }), [F("span", {
495
495
  class: i(o)
496
- }, [b.shouldShowIcon(o) && F("i", {
497
- class: b.iconClass(o)
496
+ }, [v.shouldShowIcon(o) && F("i", {
497
+ class: v.iconClass(o)
498
498
  }, null), o.text]), o.split && F("span", {
499
499
  class: "dropdown-toggle dropdown-toggle-split f-rt-toggle",
500
- onClick: (P) => D(P, o, v)
500
+ onClick: (P) => D(P, o, m)
501
501
  }, null), w(o, o)]);
502
502
  }
503
- function A(v) {
504
- return v.children.filter((o) => o.visible).map((o, $) => o.children && o.children.length ? B(v, o, $) : s(v, o, $));
503
+ function A(m) {
504
+ return m.children.filter((o) => o.visible).map((o, $) => o.children && o.children.length ? B(m, o, $) : s(m, o, $));
505
505
  }
506
- function S(v, o) {
507
- if (!v)
506
+ function S(m, o) {
507
+ if (!m)
508
508
  return 1080;
509
509
  let $ = -1;
510
- const P = v.children.length;
510
+ const P = m.children.length;
511
511
  for (let c = 0; c < P; c++)
512
- if (v.children[c].id === o) {
512
+ if (m.children[c].id === o) {
513
513
  $ = c;
514
514
  break;
515
515
  }
516
516
  return 1080 + P - $;
517
517
  }
518
- function T(v, o, $) {
518
+ function T(m, o, $) {
519
519
  var N, H;
520
520
  const P = {
521
- display: v.expanded ? "block" : "none",
521
+ display: m.expanded ? "block" : "none",
522
522
  position: "fixed",
523
523
  maxWidth: "300px",
524
524
  minWidth: "120px",
@@ -529,11 +529,11 @@ function Dn(e, b) {
529
529
  }, c = document.querySelector(E);
530
530
  if (!c)
531
531
  return P;
532
- const y = qt();
532
+ const y = Gt();
533
533
  let l = (H = (N = y == null ? void 0 : y.exposed) == null ? void 0 : N.elementRef.value) == null ? void 0 : H.querySelector("#" + o);
534
534
  if (l || (l = c == null ? void 0 : c.querySelector("#" + o)), !l)
535
535
  return P;
536
- const g = window.innerWidth, I = window.innerHeight, M = l == null ? void 0 : l.getClientRects();
536
+ const g = window.innerWidth, k = window.innerHeight, M = l == null ? void 0 : l.getClientRects();
537
537
  if (l && M && M.length) {
538
538
  const {
539
539
  top: U,
@@ -543,53 +543,53 @@ function Dn(e, b) {
543
543
  height: X
544
544
  } = M[0], Y = Math.ceil(X + U);
545
545
  P.top = `${Y}px`, P.left = `${j}px`;
546
- const W = v.id + "_menu", J = (l == null ? void 0 : l.querySelector("#" + W)) || (c == null ? void 0 : c.querySelector("#" + W)) || null;
546
+ const W = m.id + "_menu", J = (l == null ? void 0 : l.querySelector("#" + W)) || (c == null ? void 0 : c.querySelector("#" + W)) || null;
547
547
  if (J) {
548
548
  J.style.visibility = "hidden", J.style.display = "block";
549
549
  const ae = J.offsetHeight;
550
- P.zIndex = v.expanded ? S(c, W) : 1080, P.display === "block" && (J.style.display = "block");
551
- const m = J.getBoundingClientRect();
550
+ P.zIndex = m.expanded ? S(c, W) : 1080, P.display === "block" && (J.style.display = "block");
551
+ const b = J.getBoundingClientRect();
552
552
  if ($) {
553
553
  P.top = `${U - 6}px`;
554
554
  const C = Math.ceil(te + j);
555
555
  P.left = `${C}px`;
556
556
  }
557
- g - j - te < m.width && (P.left = `${($ ? j : G) - m.width}px`), I - U - X < ae ? U > ae ? (P.top = `${U - ae - 6}px`, P.maxHeight = `${U - 16}px`) : (P.maxHeight = `${I - Y}px`, U > I - U - X && (P.top = "10px", P.maxHeight = `${U - 16}px`)) : P.maxHeight = `${I - Y}px`, J.style.visibility = "visible";
557
+ g - j - te < b.width && (P.left = `${($ ? j : G) - b.width}px`), k - U - X < ae ? U > ae ? (P.top = `${U - ae - 6}px`, P.maxHeight = `${U - 16}px`) : (P.maxHeight = `${k - Y}px`, U > k - U - X && (P.top = "10px", P.maxHeight = `${U - 16}px`)) : P.maxHeight = `${k - Y}px`, J.style.visibility = "visible";
558
558
  }
559
559
  }
560
560
  return P;
561
561
  }
562
- w = function(v, o) {
563
- const $ = o ? o.id : v.id;
564
- return F(Wt, {
562
+ w = function(m, o) {
563
+ const $ = o ? o.id : m.id;
564
+ return F(zt, {
565
565
  to: E,
566
- disabled: !v.expanded
566
+ disabled: !m.expanded
567
567
  }, {
568
568
  default: () => [F("ul", {
569
- class: t(v),
570
- style: T(v, $, o),
571
- id: v.id + "_menu",
572
- onWheel: (P) => O(P, v)
573
- }, [A(v)])]
569
+ class: t(m),
570
+ style: T(m, $, o),
571
+ id: m.id + "_menu",
572
+ onWheel: (P) => O(P, m)
573
+ }, [A(m)])]
574
574
  });
575
575
  };
576
576
  function q() {
577
- h.forEach((v) => {
578
- v.expanded = !1;
577
+ h.forEach((m) => {
578
+ m.expanded = !1;
579
579
  }), h.clear();
580
580
  }
581
581
  return {
582
582
  renderDropdownMenu: w,
583
583
  clearAllDropDownMenu: q,
584
- updateContainerId: k
584
+ updateContainerId: I
585
585
  };
586
586
  }
587
- function Sn(e, b, t) {
587
+ function In(e, v, t) {
588
588
  const p = re(e.alignment), {
589
589
  renderDropdownMenu: u,
590
590
  clearAllDropDownMenu: i,
591
591
  updateContainerId: x
592
- } = Dn(b, t);
592
+ } = kn(v, t);
593
593
  function w(n) {
594
594
  const D = {
595
595
  "btn-group": !0,
@@ -620,7 +620,7 @@ function Sn(e, b, t) {
620
620
  "dropdown-toggle-split": !0
621
621
  }, n.class);
622
622
  }
623
- function k(n) {
623
+ function I(n) {
624
624
  return n.split ? {
625
625
  display: "flex"
626
626
  } : {
@@ -631,7 +631,7 @@ function Sn(e, b, t) {
631
631
  function f(n, D) {
632
632
  n.stopPropagation();
633
633
  const O = D.expanded;
634
- document.body.click(), typeof D.onClick == "function" && D.onClick(n, D.id), b.emit("click", n, D.id), D.split || (D.expanded = !O);
634
+ document.body.click(), typeof D.onClick == "function" && D.onClick(n, D.id), v.emit("click", n, D.id), D.split || (D.expanded = !O);
635
635
  }
636
636
  function r(n, D) {
637
637
  n.stopPropagation();
@@ -640,20 +640,20 @@ function Sn(e, b, t) {
640
640
  }
641
641
  function d(n, D = !0) {
642
642
  if (n.tipsEnable && n.tipsText) {
643
- const O = Pe({
643
+ const O = Me({
644
644
  content: n.tipsText,
645
645
  enable: n.tipsEnable
646
646
  });
647
647
  return F("div", {
648
648
  id: n.id,
649
649
  class: w(n)
650
- }, [Ee(F("div", {
650
+ }, [Re(F("div", {
651
651
  class: h(n),
652
- style: k(n),
652
+ style: I(n),
653
653
  onClick: (B) => n.enable && f(B, n)
654
654
  }, [t.shouldShowIcon(n) && F("i", {
655
655
  class: t.iconClass(n)
656
- }, null), n.text && F("span", null, [n.text])]), [[Me("tooltip"), O]]), n.split && F("button", {
656
+ }, null), n.text && F("span", null, [n.text])]), [[Be("tooltip"), O]]), n.split && F("button", {
657
657
  class: E(n),
658
658
  style: "border-radius:0 6px 6px 0;",
659
659
  onClick: (B) => r(B, n)
@@ -664,7 +664,7 @@ function Sn(e, b, t) {
664
664
  class: w(n)
665
665
  }, [F("div", {
666
666
  class: h(n),
667
- style: k(n),
667
+ style: I(n),
668
668
  onClick: (O) => n.enable && f(O, n)
669
669
  }, [t.shouldShowIcon(n) && F("i", {
670
670
  class: t.iconClass(n)
@@ -684,42 +684,42 @@ function Sn(e, b, t) {
684
684
  };
685
685
  }
686
686
  const {
687
- buildResponseToolbarItems: ot
688
- } = gt(), In = /* @__PURE__ */ ze({
687
+ buildResponseToolbarItems: it
688
+ } = vt(), Pn = /* @__PURE__ */ Ue({
689
689
  name: "FResponseToolbar",
690
- props: Cn,
690
+ props: Tn,
691
691
  emits: ["click"],
692
- setup(e, b) {
693
- const t = re(ot(e.items)), p = re(), u = re(), i = re(), x = _t(), w = {
692
+ setup(e, v) {
693
+ const t = re(it(e.items)), p = re(), u = re(), i = re(), x = $t(), w = {
694
694
  id: "__more_buttons__",
695
- text: x ? "" : Ut.getLocaleValue("responseToolbar.more"),
695
+ text: x ? "" : Xt.getLocaleValue("responseToolbar.more"),
696
696
  icon: x ? "f-icon-more-horizontal" : ""
697
- }, h = re(new ke(w)), E = Object.assign({}, w, {
697
+ }, h = re(new Ee(w)), E = Object.assign({}, w, {
698
698
  id: w.id + "width"
699
- }), k = re(-1), f = Ye();
699
+ }), I = re(-1), f = He();
700
700
  let r = !1;
701
701
  const {
702
702
  guid: d,
703
703
  uuid: s
704
- } = At(), n = e.id ? e.id : "toolbar-" + d(), D = re(), O = "dropdown-container-" + n + "-" + s(4), {
704
+ } = Lt(), n = e.id ? e.id : "toolbar-" + d(), D = re(), O = "dropdown-container-" + n + "-" + s(4), {
705
705
  renderToolbarDropdown: B,
706
706
  clearAllDropDown: A,
707
707
  updateContainerId: S
708
- } = Sn(e, b, f);
708
+ } = In(e, v, f);
709
709
  S(O);
710
- const T = fe(() => h.value.children.length > 0), q = fe(() => e.visible ? h.value.children.length > 0 ? !0 : t.value.findIndex((m) => m.shown && m.children && m.children.length > 0) > -1 : !1);
711
- function v() {
710
+ const T = fe(() => h.value.children.length > 0), q = fe(() => e.visible ? h.value.children.length > 0 ? !0 : t.value.findIndex((b) => b.shown && b.children && b.children.length > 0) > -1 : !1);
711
+ function m() {
712
712
  e.visible && !D.value && document && (D.value = document.createElement("div"), D.value.id = O, document.body.appendChild(D.value));
713
713
  }
714
- v();
714
+ m();
715
715
  function o() {
716
716
  D.value && document.body.contains(D.value) && (document.body.removeChild(D.value), D.value = null);
717
717
  }
718
- Ie(q, (m, C) => {
719
- m ? v() : o();
718
+ Pe(q, (b, C) => {
719
+ b ? m() : o();
720
720
  });
721
721
  const $ = fe(() => {
722
- const m = {
722
+ const b = {
723
723
  "f-toolbar": !0,
724
724
  "f-response-toolbar": !0,
725
725
  "position-relative": !0,
@@ -728,7 +728,7 @@ const {
728
728
  "d-none": !e.visible,
729
729
  "is-mobile": x
730
730
  };
731
- return ne(m, e.customClass);
731
+ return ne(b, e.customClass);
732
732
  }), P = fe(() => ({
733
733
  "w-100": !0,
734
734
  "d-flex": !0,
@@ -737,74 +737,76 @@ const {
737
737
  "justify-content-start": e.alignment === "left",
738
738
  "justify-content-center": e.alignment === "center"
739
739
  }));
740
- function c(m) {
741
- m && m.target.closest("ul.dropdown-menu") && m.type === "wheel" || (t.value.filter((C) => C.children && C.children.length > 0).forEach((C) => {
740
+ function c(b) {
741
+ b && b.target.closest("ul.dropdown-menu") && b.type === "wheel" || (t.value.filter((C) => C.children && C.children.length > 0).forEach((C) => {
742
742
  C.expanded = !1;
743
743
  }), h.value.expanded = !1, A());
744
744
  }
745
- function y(m, C) {
745
+ function y(b, C) {
746
746
  var ee;
747
747
  const L = {
748
748
  btn: !0,
749
749
  "f-rt-btn": !0,
750
750
  "f-btn-ml": e.alignment === "right" || C > 0 && e.alignment === "center",
751
751
  "f-btn-mr": e.alignment === "left",
752
- "btn-icontext": !!(m.icon && m.icon.trim())
753
- }, K = ((ee = m == null ? void 0 : m.appearance) == null ? void 0 : ee.class) || m.class || "btn-secondary";
752
+ "btn-icontext": !!(b.icon && b.icon.trim())
753
+ }, K = ((ee = b == null ? void 0 : b.appearance) == null ? void 0 : ee.class) || b.class || "btn-secondary";
754
754
  return ne(L, K);
755
755
  }
756
- function l(m, C) {
757
- document.body.click(), typeof C.onClick == "function" && C.onClick(m, C.id), b.emit("click", m, C.id);
756
+ function l(b, C) {
757
+ document.body.click(), typeof C.onClick == "function" && C.onClick(b, C.id), v.emit("click", b, C.id);
758
758
  }
759
- function g(m, C) {
760
- if (m.tipsEnable && m.tipsText) {
761
- const L = Pe({
762
- content: m.tipsText,
763
- enable: m.tipsEnable
759
+ function g(b, C) {
760
+ if (b.tipsEnable && b.tipsText) {
761
+ const L = Me({
762
+ content: b.tipsText,
763
+ enable: b.tipsEnable
764
764
  });
765
- return Ee(F("button", {
766
- type: "button",
767
- class: y(m, C),
768
- id: m.id,
769
- disabled: !m.enable,
770
- onClick: (K) => l(K, m)
771
- }, [f.shouldShowIcon(m) && F("i", {
772
- class: f.iconClass(m)
773
- }, null), m.text]), [[Me("tooltip"), L]]);
765
+ return Re(F("button", xe({
766
+ type: "button"
767
+ }, Ce(b.options), {
768
+ class: y(b, C),
769
+ id: b.id,
770
+ disabled: !b.enable,
771
+ onClick: (K) => l(K, b)
772
+ }), [f.shouldShowIcon(b) && F("i", {
773
+ class: f.iconClass(b)
774
+ }, null), b.text]), [[Be("tooltip"), L]]);
774
775
  }
775
- return F("button", {
776
- type: "button",
777
- class: y(m, C),
778
- id: m.id,
779
- disabled: !m.enable,
780
- onClick: (L) => l(L, m)
781
- }, [f.shouldShowIcon(m) && F("i", {
782
- class: f.iconClass(m)
783
- }, null), m.text]);
776
+ return F("button", xe({
777
+ type: "button"
778
+ }, Ce(b.options), {
779
+ class: y(b, C),
780
+ id: b.id,
781
+ disabled: !b.enable,
782
+ onClick: (L) => l(L, b)
783
+ }), [f.shouldShowIcon(b) && F("i", {
784
+ class: f.iconClass(b)
785
+ }, null), b.text]);
784
786
  }
785
- let I = /* @__PURE__ */ new Map(), M = [];
786
- function N(m) {
787
- const C = Math.ceil(parseFloat(getComputedStyle(m).getPropertyValue("margin-left"))), L = Math.ceil(parseFloat(getComputedStyle(m).getPropertyValue("margin-right")));
788
- return (C || 0) + m.getBoundingClientRect().width + (L || 0);
787
+ let k = /* @__PURE__ */ new Map(), M = [];
788
+ function N(b) {
789
+ const C = Math.ceil(parseFloat(getComputedStyle(b).getPropertyValue("margin-left"))), L = Math.ceil(parseFloat(getComputedStyle(b).getPropertyValue("margin-right")));
790
+ return (C || 0) + b.getBoundingClientRect().width + (L || 0);
789
791
  }
790
- function H(m, C, L) {
791
- if (C < k.value) {
792
+ function H(b, C, L) {
793
+ if (C < I.value) {
792
794
  let K = L - 1;
793
795
  for (; K >= 0; K--) {
794
- const ee = m[K], oe = N(ee);
795
- if (C += oe, C >= k.value)
796
+ const ee = b[K], oe = N(ee);
797
+ if (C += oe, C >= I.value)
796
798
  break;
797
799
  }
798
800
  L = K;
799
801
  }
800
- return C -= k.value, L = L < 0 ? 0 : L, {
802
+ return C -= I.value, L = L < 0 ? 0 : L, {
801
803
  start: L,
802
804
  space: C
803
805
  };
804
806
  }
805
- function U(m) {
807
+ function U(b) {
806
808
  const C = i.value;
807
- let L = m;
809
+ let L = b;
808
810
  const ee = Array.from(C.children).filter((ce) => ce.id !== "__more_buttons__"), oe = ee.length;
809
811
  let ye = !1, se = 0;
810
812
  for (; se < oe; se++) {
@@ -821,12 +823,12 @@ const {
821
823
  const ce = H(ee, L, se);
822
824
  se = ce.start, L = ce.space;
823
825
  }
824
- const De = M.length > 0;
826
+ const ke = M.length > 0;
825
827
  for (; se < oe; se++) {
826
828
  const ce = ee[se], we = N(ce);
827
- I.set(ce.id, !0);
828
- const he = M.find((Be) => Be.id === ce.id);
829
- he ? he.width = we : M[De ? "unshift" : "push"]({
829
+ k.set(ce.id, !0);
830
+ const he = M.find((je) => je.id === ce.id);
831
+ he ? he.width = we : M[ke ? "unshift" : "push"]({
830
832
  id: ce.id,
831
833
  width: we
832
834
  });
@@ -834,110 +836,110 @@ const {
834
836
  return L;
835
837
  }
836
838
  function te() {
837
- I = /* @__PURE__ */ new Map(), M = [];
839
+ k = /* @__PURE__ */ new Map(), M = [];
838
840
  }
839
- function j(m = !1) {
841
+ function j(b = !1) {
840
842
  const C = Object.assign({}, h.value);
841
843
  C.children = [];
842
- const L = new ke(C), K = t.value.reduce((ee, oe) => {
844
+ const L = new Ee(C), K = t.value.reduce((ee, oe) => {
843
845
  const ye = e.items.find((se) => se.id === oe.id);
844
- return m ? (L.children.push(oe), oe.shown = !1, ee) : (I.has(oe.id) ? (L.children.push(oe), oe.shown = !1) : oe.shown = ye.visible !== !1, ee.push(oe), ee);
846
+ return b ? (L.children.push(oe), oe.shown = !1, ee) : (k.has(oe.id) ? (L.children.push(oe), oe.shown = !1) : oe.shown = ye.visible !== !1, ee.push(oe), ee);
845
847
  }, []);
846
848
  h.value = L, t.value = K;
847
849
  }
848
- function G(m) {
850
+ function G(b) {
849
851
  if (x) {
850
852
  te(), j(!0);
851
853
  return;
852
854
  }
853
- let C = U(m);
855
+ let C = U(b);
854
856
  if (M.length) {
855
857
  let L = 0;
856
858
  for (; L < M.length; L++) {
857
859
  const K = e.items.find((ee) => ee.id === M[L].id);
858
860
  if (K && K.visible !== !1) {
859
861
  const ee = M[L].width;
860
- if (C >= ee || L === M.length - 1 && C + k.value >= ee)
862
+ if (C >= ee || L === M.length - 1 && C + I.value >= ee)
861
863
  C -= ee;
862
864
  else
863
865
  break;
864
866
  }
865
867
  }
866
868
  for (let K = 0; K < L; K++)
867
- I.delete(M[K].id);
869
+ k.delete(M[K].id);
868
870
  M.splice(0, L - 1);
869
871
  }
870
872
  j();
871
873
  }
872
874
  function X() {
873
- if (p.value && k.value < 0) {
874
- const m = p.value.querySelector("#" + E.id);
875
- if (!m)
875
+ if (p.value && I.value < 0) {
876
+ const b = p.value.querySelector("#" + E.id);
877
+ if (!b)
876
878
  return;
877
- m.getBoundingClientRect().width === 0 ? k.value = -1 : k.value = N(m);
879
+ b.getBoundingClientRect().width === 0 ? I.value = -1 : I.value = N(b);
878
880
  }
879
881
  }
880
- function Y(m = -1) {
881
- if (m === 0 || !i.value || !u.value)
882
+ function Y(b = -1) {
883
+ if (b === 0 || !i.value || !u.value)
882
884
  return;
883
- m < 0 && (m = u.value.getBoundingClientRect().width), m = Math.ceil(m);
885
+ b < 0 && (b = u.value.getBoundingClientRect().width), b = Math.ceil(b);
884
886
  const C = Math.ceil(i.value.getBoundingClientRect().width);
885
887
  if (x) {
886
- G(m), c();
888
+ G(b), c();
887
889
  return;
888
890
  }
889
- (m >= 0 && m < C || M.length) && (X(), G(m), c());
891
+ (b >= 0 && b < C || M.length) && (X(), G(b), c());
890
892
  }
891
893
  function W() {
892
- return k.value < 0 && F("div", {
894
+ return I.value < 0 && F("div", {
893
895
  style: "position:fixed;top:-40px;visibility:hidden;"
894
- }, [B(new ke(E))]);
896
+ }, [B(new Ee(E))]);
895
897
  }
896
- const J = new ResizeObserver((m) => {
897
- if (m.length) {
898
+ const J = new ResizeObserver((b) => {
899
+ if (b.length) {
898
900
  if (x)
899
901
  return;
900
- const L = m[0].contentRect.width;
902
+ const L = b[0].contentRect.width;
901
903
  Y(L);
902
904
  }
903
905
  });
904
906
  function ae() {
905
907
  u.value && !r && (J.observe(u.value), r = !0);
906
908
  }
907
- return Ge(() => {
909
+ return Ye(() => {
908
910
  X(), Y(), ae(), document.body.addEventListener("click", c), document.body.addEventListener("wheel", c);
909
- }), ut(() => {
911
+ }), ft(() => {
910
912
  J.disconnect(), o(), document.body.removeEventListener("click", c), document.body.removeEventListener("wheel", c);
911
- }), Ie(() => e.items, () => {
912
- t.value = ot(e.items), h.value.children = [], Te(() => {
913
+ }), Pe(() => e.items, () => {
914
+ t.value = it(e.items), h.value.children = [], Se(() => {
913
915
  X(), te(), Y();
914
916
  });
915
917
  }, {
916
918
  deep: !0
917
- }), Ie(() => e.visible, (m) => {
918
- m && Te(() => {
919
+ }), Pe(() => e.visible, (b) => {
920
+ b && Se(() => {
919
921
  X(), Y(), ae();
920
922
  });
921
- }), b.expose({
923
+ }), v.expose({
922
924
  elementRef: p
923
- }), () => F("div", {
925
+ }), () => F("div", xe(Ce(v.attrs), {
924
926
  class: $.value,
925
927
  id: n,
926
928
  ref: p,
927
929
  style: {
928
- "overflow-y": k.value < 0 ? "hidden" : "initial"
930
+ "overflow-y": I.value < 0 ? "hidden" : "initial"
929
931
  }
930
- }, [e.visible && W(), e.visible && F("div", {
932
+ }), [e.visible && W(), e.visible && F("div", {
931
933
  ref: u,
932
934
  class: P.value
933
935
  }, [F("div", {
934
936
  ref: i,
935
937
  class: "d-inline-block f-response-content",
936
938
  style: "white-space: nowrap;"
937
- }, [t.value.filter((m) => m.shown).map((m, C) => m.children && m.children.length > 0 ? B(m) : g(m, C)), T.value && B(h.value)])])]);
939
+ }, [t.value.filter((b) => b.shown).map((b, C) => b.children && b.children.length > 0 ? B(b) : g(b, C)), T.value && B(h.value)])])]);
938
940
  }
939
941
  });
940
- class kn extends dt {
942
+ class En extends pt {
941
943
  constructor(t, p, u = "response-toolbar") {
942
944
  super(t, p);
943
945
  // 有三类值 response-toolbar、section-toolbar、tab-toolbar
@@ -995,7 +997,7 @@ class kn extends dt {
995
997
  };
996
998
  }
997
999
  }
998
- function Pn(e, b, t) {
1000
+ function Mn(e, v, t) {
999
1001
  const p = e.schema;
1000
1002
  function u() {
1001
1003
  var n, D, O;
@@ -1018,11 +1020,11 @@ function Pn(e, b, t) {
1018
1020
  function E() {
1019
1021
  return !1;
1020
1022
  }
1021
- function k() {
1023
+ function I() {
1022
1024
  return !0;
1023
1025
  }
1024
1026
  function f(s) {
1025
- return new kn(s, b, p.type).getPropertyConfig(p);
1027
+ return new En(s, v, p.type).getPropertyConfig(p);
1026
1028
  }
1027
1029
  function r(s) {
1028
1030
  var B;
@@ -1046,7 +1048,7 @@ function Pn(e, b, t) {
1046
1048
  default:
1047
1049
  D = "response-toolbar-item";
1048
1050
  }
1049
- const O = at(D);
1051
+ const O = ut(D);
1050
1052
  O.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, n.buttons.push(O), t.updateToolbarItems(), t.changeSelectedId("");
1051
1053
  }
1052
1054
  function d() {
@@ -1065,31 +1067,31 @@ function Pn(e, b, t) {
1065
1067
  checkCanAddComponent: E,
1066
1068
  checkCanDeleteComponent: h,
1067
1069
  checkCanMoveComponent: w,
1068
- hideNestedPaddingInDesginerView: k,
1070
+ hideNestedPaddingInDesginerView: I,
1069
1071
  onResolveNewComponentSchema: x,
1070
1072
  getPropsConfig: f,
1071
1073
  getCustomButtons: d
1072
1074
  };
1073
1075
  }
1074
1076
  var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1075
- function En(e) {
1077
+ function Rn(e) {
1076
1078
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1077
1079
  }
1078
- function Se(e) {
1080
+ function Ie(e) {
1079
1081
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1080
1082
  }
1081
- var bt = { exports: {} };
1082
- (function(e, b) {
1083
+ var mt = { exports: {} };
1084
+ (function(e, v) {
1083
1085
  (function(t) {
1084
1086
  e.exports = t();
1085
1087
  })(function() {
1086
1088
  return (/* @__PURE__ */ function() {
1087
1089
  function t(p, u, i) {
1088
- function x(E, k) {
1090
+ function x(E, I) {
1089
1091
  if (!u[E]) {
1090
1092
  if (!p[E]) {
1091
- var f = typeof Se == "function" && Se;
1092
- if (!k && f) return f(E, !0);
1093
+ var f = typeof Ie == "function" && Ie;
1094
+ if (!I && f) return f(E, !0);
1093
1095
  if (w) return w(E, !0);
1094
1096
  var r = new Error("Cannot find module '" + E + "'");
1095
1097
  throw r.code = "MODULE_NOT_FOUND", r;
@@ -1102,7 +1104,7 @@ var bt = { exports: {} };
1102
1104
  }
1103
1105
  return u[E].exports;
1104
1106
  }
1105
- for (var w = typeof Se == "function" && Se, h = 0; h < i.length; h++) x(i[h]);
1107
+ for (var w = typeof Ie == "function" && Ie, h = 0; h < i.length; h++) x(i[h]);
1106
1108
  return x;
1107
1109
  }
1108
1110
  return t;
@@ -1117,52 +1119,52 @@ var bt = { exports: {} };
1117
1119
  var d = f.className;
1118
1120
  d.length ? h(r).test(d) || (f.className += " " + r) : f.className = r;
1119
1121
  }
1120
- function k(f, r) {
1122
+ function I(f, r) {
1121
1123
  f.className = f.className.replace(h(r), " ").trim();
1122
1124
  }
1123
1125
  p.exports = {
1124
1126
  add: E,
1125
- rm: k
1127
+ rm: I
1126
1128
  };
1127
1129
  }, {}],
1128
1130
  2: [function(t, p, u) {
1129
1131
  (function(i) {
1130
- var x = t("contra/emitter"), w = t("crossvent"), h = t("./classes"), E = document, k = E.documentElement;
1132
+ var x = t("contra/emitter"), w = t("crossvent"), h = t("./classes"), E = document, I = E.documentElement;
1131
1133
  function f(c, y) {
1132
1134
  var l = arguments.length;
1133
1135
  l === 1 && Array.isArray(c) === !1 && (y = c, c = []);
1134
- var g, I, M, N, H, U, te, j, G, X = null, Y, W, J = !1, ae = 0, m, C = y || {};
1135
- C.moves === void 0 && (C.moves = B), C.accepts === void 0 && (C.accepts = B), C.invalid === void 0 && (C.invalid = yt), C.containers === void 0 && (C.containers = c || []), C.isContainer === void 0 && (C.isContainer = O), C.copy === void 0 && (C.copy = !1), C.copySortSource === void 0 && (C.copySortSource = !1), C.revertOnSpill === void 0 && (C.revertOnSpill = !1), C.removeOnSpill === void 0 && (C.removeOnSpill = !1), C.direction === void 0 && (C.direction = "vertical"), C.ignoreInputTextSelection === void 0 && (C.ignoreInputTextSelection = !0), C.mirrorContainer === void 0 && (C.mirrorContainer = E.body);
1136
+ var g, k, M, N, H, U, te, j, G, X = null, Y, W, J = !1, ae = 0, b, C = y || {};
1137
+ C.moves === void 0 && (C.moves = B), C.accepts === void 0 && (C.accepts = B), C.invalid === void 0 && (C.invalid = Ct), C.containers === void 0 && (C.containers = c || []), C.isContainer === void 0 && (C.isContainer = O), C.copy === void 0 && (C.copy = !1), C.copySortSource === void 0 && (C.copySortSource = !1), C.revertOnSpill === void 0 && (C.revertOnSpill = !1), C.removeOnSpill === void 0 && (C.removeOnSpill = !1), C.direction === void 0 && (C.direction = "vertical"), C.ignoreInputTextSelection === void 0 && (C.ignoreInputTextSelection = !0), C.mirrorContainer === void 0 && (C.mirrorContainer = E.body);
1136
1138
  var L = x({
1137
1139
  containers: C.containers,
1138
- start: mt,
1139
- end: He,
1140
- cancel: Je,
1141
- remove: Ze,
1140
+ start: wt,
1141
+ end: Qe,
1142
+ cancel: et,
1143
+ remove: Ke,
1142
1144
  destroy: se,
1143
- canMove: Be,
1145
+ canMove: je,
1144
1146
  dragging: !1
1145
1147
  });
1146
- return C.removeOnSpill === !0 && L.on("over", Ct).on("out", xt), ee(), L;
1148
+ return C.removeOnSpill === !0 && L.on("over", Tt).on("out", Dt), ee(), L;
1147
1149
  function K(a) {
1148
1150
  return L.containers.indexOf(a) !== -1 || C.isContainer(a);
1149
1151
  }
1150
1152
  function ee(a) {
1151
1153
  var R = a ? "remove" : "add";
1152
- s(k, R, "mousedown", ce), s(k, R, "mouseup", Oe);
1154
+ s(I, R, "mousedown", ce), s(I, R, "mouseup", _e);
1153
1155
  }
1154
1156
  function oe(a) {
1155
1157
  var R = a ? "remove" : "add";
1156
- s(k, R, "mousemove", we);
1158
+ s(I, R, "mousemove", we);
1157
1159
  }
1158
1160
  function ye(a) {
1159
1161
  var R = a ? "remove" : "add";
1160
- w[R](k, "selectstart", De), w[R](k, "click", De);
1162
+ w[R](I, "selectstart", ke), w[R](I, "click", ke);
1161
1163
  }
1162
1164
  function se() {
1163
- ee(!0), Oe({});
1165
+ ee(!0), _e({});
1164
1166
  }
1165
- function De(a) {
1167
+ function ke(a) {
1166
1168
  Y && a.preventDefault();
1167
1169
  }
1168
1170
  function ce(a) {
@@ -1176,7 +1178,7 @@ var bt = { exports: {} };
1176
1178
  function we(a) {
1177
1179
  if (Y) {
1178
1180
  if (n(a) === 0) {
1179
- Oe({});
1181
+ _e({});
1180
1182
  return;
1181
1183
  }
1182
1184
  if (!(a.clientX !== void 0 && Math.abs(a.clientX - N) <= (C.slideFactorX || 0) && a.clientY !== void 0 && Math.abs(a.clientY - H) <= (C.slideFactorY || 0))) {
@@ -1186,7 +1188,7 @@ var bt = { exports: {} };
1186
1188
  return;
1187
1189
  }
1188
1190
  var V = Y;
1189
- oe(!0), ye(), He(), Xe(V), h.add(j || M, "gu-transit"), Dt(), Tt(), ae = 0, Ae(a);
1191
+ oe(!0), ye(), Qe(), Ve(V), h.add(j || M, "gu-transit"), kt(), St(), ae = 0, Le(a);
1190
1192
  }
1191
1193
  }
1192
1194
  }
@@ -1206,59 +1208,59 @@ var bt = { exports: {} };
1206
1208
  }
1207
1209
  }
1208
1210
  }
1209
- function Be(a) {
1211
+ function je(a) {
1210
1212
  return !!he(a);
1211
1213
  }
1212
- function mt(a) {
1214
+ function wt(a) {
1213
1215
  var R = he(a);
1214
- R && Xe(R);
1216
+ R && Ve(R);
1215
1217
  }
1216
- function Xe(a) {
1217
- Bt(a.item, a.source) && (j = a.item.cloneNode(!0), L.emit("cloned", j, a.item, "copy")), I = a.source, M = a.item, U = te = o(a.item), L.dragging = !0, L.emit("drag", M, I);
1218
+ function Ve(a) {
1219
+ jt(a.item, a.source) && (j = a.item.cloneNode(!0), L.emit("cloned", j, a.item, "copy")), k = a.source, M = a.item, U = te = o(a.item), L.dragging = !0, L.emit("drag", M, k);
1218
1220
  }
1219
- function yt() {
1221
+ function Ct() {
1220
1222
  return !1;
1221
1223
  }
1222
- function He() {
1224
+ function Qe() {
1223
1225
  if (L.dragging) {
1224
1226
  var a = j || M;
1225
- Qe(a, T(a));
1227
+ Je(a, T(a));
1226
1228
  }
1227
1229
  }
1228
- function Ve() {
1230
+ function Ze() {
1229
1231
  Y = !1, oe(!0), ye(!0);
1230
1232
  }
1231
- function Oe(a) {
1232
- if (Ve(), !!L.dragging) {
1233
- var R = j || M, _ = P("clientX", a) || 0, z = P("clientY", a) || 0, V = D(g, _, z), Q = Ke(V, _, z);
1234
- Q && (j && C.copySortSource || !j || Q !== I) ? Qe(R, Q) : C.removeOnSpill ? Ze() : Je();
1233
+ function _e(a) {
1234
+ if (Ze(), !!L.dragging) {
1235
+ var R = j || M, _ = P("clientX", a) || 0, z = P("clientY", a) || 0, V = D(g, _, z), Q = tt(V, _, z);
1236
+ Q && (j && C.copySortSource || !j || Q !== k) ? Je(R, Q) : C.removeOnSpill ? Ke() : et();
1235
1237
  }
1236
1238
  }
1237
- function Qe(a, R) {
1239
+ function Je(a, R) {
1238
1240
  var _ = T(a);
1239
- j && C.copySortSource && R === I && _.removeChild(M), _e(R) ? L.emit("cancel", a, I) : L.emit("drop", a, R, I, te), je();
1241
+ j && C.copySortSource && R === k && _.removeChild(M), $e(R) ? L.emit("cancel", a, k) : L.emit("drop", a, R, k, te), Ae();
1240
1242
  }
1241
- function Ze() {
1243
+ function Ke() {
1242
1244
  if (L.dragging) {
1243
1245
  var a = j || M, R = T(a);
1244
- R && R.removeChild(a), L.emit(j ? "cancel" : "remove", a, R, I), je();
1246
+ R && R.removeChild(a), L.emit(j ? "cancel" : "remove", a, R, k), Ae();
1245
1247
  }
1246
1248
  }
1247
- function Je(a) {
1249
+ function et(a) {
1248
1250
  if (L.dragging) {
1249
- var R = arguments.length > 0 ? a : C.revertOnSpill, _ = j || M, z = T(_), V = _e(z);
1250
- V === !1 && R && (j ? z && z.removeChild(j) : I.insertBefore(_, U)), V || R ? L.emit("cancel", _, I, I) : L.emit("drop", _, z, I, te), je();
1251
+ var R = arguments.length > 0 ? a : C.revertOnSpill, _ = j || M, z = T(_), V = $e(z);
1252
+ V === !1 && R && (j ? z && z.removeChild(j) : k.insertBefore(_, U)), V || R ? L.emit("cancel", _, k, k) : L.emit("drop", _, z, k, te), Ae();
1251
1253
  }
1252
1254
  }
1253
- function je() {
1255
+ function Ae() {
1254
1256
  var a = j || M;
1255
- Ve(), St(), It(), a && h.rm(a, "gu-transit"), G && clearTimeout(G), L.dragging = !1, X && L.emit("out", a, X, I), L.emit("dragend", a, ae), I = M = j = U = te = G = X = null;
1257
+ Ze(), It(), Pt(), a && h.rm(a, "gu-transit"), G && clearTimeout(G), L.dragging = !1, X && L.emit("out", a, X, k), L.emit("dragend", a, ae), k = M = j = U = te = G = X = null;
1256
1258
  }
1257
- function _e(a, R) {
1259
+ function $e(a, R) {
1258
1260
  var _;
1259
- return R !== void 0 ? _ = R : g ? _ = te : _ = o(j || M), a === I && _ === U;
1261
+ return R !== void 0 ? _ = R : g ? _ = te : _ = o(j || M), a === k && _ === U;
1260
1262
  }
1261
- function Ke(a, R, _) {
1263
+ function tt(a, R, _) {
1262
1264
  for (var z = a; z && !V(); )
1263
1265
  z = T(z);
1264
1266
  return z;
@@ -1266,35 +1268,35 @@ var bt = { exports: {} };
1266
1268
  var Q = K(z);
1267
1269
  if (Q === !1)
1268
1270
  return !1;
1269
- var ge = et(z, a), ue = tt(z, ge, R, _), pe = _e(z, ue);
1270
- return pe ? !0 : C.accepts(M, z, I, ue);
1271
+ var ge = nt(z, a), ue = ot(z, ge, R, _), pe = $e(z, ue);
1272
+ return pe ? !0 : C.accepts(M, z, k, ue);
1271
1273
  }
1272
1274
  }
1273
- function Ae(a) {
1275
+ function Le(a) {
1274
1276
  if (!g)
1275
1277
  return;
1276
1278
  a.preventDefault();
1277
1279
  var R = P("clientX", a) || 0, _ = P("clientY", a) || 0;
1278
1280
  g.style.left = R - 2 + "px", g.style.top = _ - 2 + "px";
1279
- var z = j || M, V = D(g, R, _), Q = Ke(V, R, _), ge = Q !== null && Q !== X;
1280
- (ge || Q === null) && (de(), X = Q, ve()), Rt(V, _);
1281
+ var z = j || M, V = D(g, R, _), Q = tt(V, R, _), ge = Q !== null && Q !== X;
1282
+ (ge || Q === null) && (de(), X = Q, ve()), Ot(V, _);
1281
1283
  var ue = T(z);
1282
- if (Q === I && j && !C.copySortSource) {
1284
+ if (Q === k && j && !C.copySortSource) {
1283
1285
  ue && ue.removeChild(z);
1284
1286
  return;
1285
1287
  }
1286
- var pe, be = et(Q, V);
1287
- if (J = kt(be, Q), be !== null)
1288
- pe = tt(Q, be, R, _);
1288
+ var pe, be = nt(Q, V);
1289
+ if (J = Et(be, Q), be !== null)
1290
+ pe = ot(Q, be, R, _);
1289
1291
  else if (C.revertOnSpill === !0 && !j)
1290
- pe = U, Q = I;
1292
+ pe = U, Q = k;
1291
1293
  else {
1292
1294
  j && ue && ue.removeChild(z), j && W && (W.style.display = "none");
1293
1295
  return;
1294
1296
  }
1295
- W.style.display = "block", wt(pe, z, ge), pe ? Et(be, pe) : Mt(Q);
1297
+ W.style.display = "block", xt(pe, z, ge), pe ? Rt(be, pe) : Bt(Q);
1296
1298
  function ie(le) {
1297
- L.emit(le, z, X, I);
1299
+ L.emit(le, z, X, k);
1298
1300
  }
1299
1301
  function ve() {
1300
1302
  ge && ie("over");
@@ -1303,37 +1305,37 @@ var bt = { exports: {} };
1303
1305
  X && ie("out");
1304
1306
  }
1305
1307
  }
1306
- function wt(a, R, _) {
1308
+ function xt(a, R, _) {
1307
1309
  (a === R || a === o(R)) && (te = o(R)), (a === null && _ || a !== R && a !== o(R)) && (te = a);
1308
1310
  }
1309
- function Ct(a) {
1311
+ function Tt(a) {
1310
1312
  h.rm(a, "gu-hide");
1311
1313
  }
1312
- function xt(a) {
1314
+ function Dt(a) {
1313
1315
  L.dragging && h.add(a, "gu-hide");
1314
1316
  }
1315
- function Tt() {
1316
- g || (g = document.createElement("div"), g.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", g.innerHTML = C.getMirrorText && C.getMirrorText(M) || "控件", h.add(g, "gu-mirror"), C.mirrorContainer.appendChild(g), s(k, "add", "mousemove", Ae), h.add(C.mirrorContainer, "gu-unselectable"), L.emit("cloned", g, M, "mirror"));
1317
+ function St() {
1318
+ g || (g = document.createElement("div"), g.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", g.innerHTML = C.getMirrorText && C.getMirrorText(M) || "控件", h.add(g, "gu-mirror"), C.mirrorContainer.appendChild(g), s(I, "add", "mousemove", Le), h.add(C.mirrorContainer, "gu-unselectable"), L.emit("cloned", g, M, "mirror"));
1317
1319
  }
1318
- function Dt() {
1320
+ function kt() {
1319
1321
  if (W = document.createElement("div"), h.add(W, "gu-insertion"), M) {
1320
1322
  var a = M.getBoundingClientRect();
1321
1323
  W.style.left = a.left + "px", W.style.top = a.top + "px";
1322
1324
  }
1323
1325
  J = !1, C.mirrorContainer.appendChild(W);
1324
1326
  }
1325
- function St() {
1326
- g && (h.rm(C.mirrorContainer, "gu-unselectable"), s(k, "remove", "mousemove", Ae), T(g).removeChild(g), g = null);
1327
- }
1328
1327
  function It() {
1328
+ g && (h.rm(C.mirrorContainer, "gu-unselectable"), s(I, "remove", "mousemove", Le), T(g).removeChild(g), g = null);
1329
+ }
1330
+ function Pt() {
1329
1331
  W && (T(W).removeChild(W), W = null);
1330
1332
  }
1331
- function et(a, R) {
1333
+ function nt(a, R) {
1332
1334
  for (var _ = R; _ !== a && T(_) !== a; )
1333
1335
  _ = T(_);
1334
- return _ === k ? null : _;
1336
+ return _ === I ? null : _;
1335
1337
  }
1336
- function kt(a, R) {
1338
+ function Et(a, R) {
1337
1339
  if (!R)
1338
1340
  return J;
1339
1341
  var _ = a || R && R.lastElementChild;
@@ -1347,13 +1349,13 @@ var bt = { exports: {} };
1347
1349
  if (/flex$/.test(ge)) {
1348
1350
  var ue = Q.getPropertyValue("flex-direction") || "row";
1349
1351
  if (ue === "row" || ue === "row-reverse")
1350
- return !Pt(R);
1352
+ return !Mt(R);
1351
1353
  }
1352
1354
  return !1;
1353
1355
  }
1354
1356
  return !0;
1355
1357
  }
1356
- function Pt(a) {
1358
+ function Mt(a) {
1357
1359
  if (!a.children || !a.children.length)
1358
1360
  return !1;
1359
1361
  for (const R of Array.from(a.children)) {
@@ -1368,20 +1370,20 @@ var bt = { exports: {} };
1368
1370
  }
1369
1371
  return !0;
1370
1372
  }
1371
- function Et(a, R) {
1373
+ function Rt(a, R) {
1372
1374
  const _ = R.getBoundingClientRect();
1373
1375
  if (W.style.left = _.left + "px", W.style.top = _.top + "px", J) {
1374
1376
  if (W.style.height = _.height + "px", W.style.width = "4px", a) {
1375
1377
  const z = a.getBoundingClientRect();
1376
1378
  z.top !== _.top && (W.style.left = z.right + "px", W.style.top = z.top + "px", W.style.height = z.height + "px");
1377
1379
  }
1378
- } else if (W.style.height = "4px", W.style.width = _.width + "px", m) {
1379
- const z = m.getBoundingClientRect();
1380
+ } else if (W.style.height = "4px", W.style.width = _.width + "px", b) {
1381
+ const z = b.getBoundingClientRect();
1380
1382
  _.top < z.top && (W.style.display = "none");
1381
1383
  }
1382
1384
  R === M && M && (W.style.display = "none");
1383
1385
  }
1384
- function Mt(a) {
1386
+ function Bt(a) {
1385
1387
  te = null;
1386
1388
  var R = a.lastElementChild;
1387
1389
  if (R) {
@@ -1390,21 +1392,21 @@ var bt = { exports: {} };
1390
1392
  } else
1391
1393
  W.style.display = "none";
1392
1394
  }
1393
- function Rt(a, R) {
1394
- if (!C.mirrorContainer.contains(a) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (m = r(a), !m || !m.contains(a)))
1395
+ function Ot(a, R) {
1396
+ if (!C.mirrorContainer.contains(a) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (b = r(a), !b || !b.contains(a)))
1395
1397
  return;
1396
- const _ = document.querySelector(".dgComponentSelected"), z = m.getBoundingClientRect();
1397
- if (R - 30 < z.top && m.scrollTop > 0) {
1398
- let V = m.scrollTop < 10 ? m.scrollTop : 10;
1399
- m.scrollBy(0, -1 * V), _ && m.contains(_) && (ae = ae + -1 * V);
1398
+ const _ = document.querySelector(".dgComponentSelected"), z = b.getBoundingClientRect();
1399
+ if (R - 30 < z.top && b.scrollTop > 0) {
1400
+ let V = b.scrollTop < 10 ? b.scrollTop : 10;
1401
+ b.scrollBy(0, -1 * V), _ && b.contains(_) && (ae = ae + -1 * V);
1400
1402
  }
1401
- if (R + 30 > z.bottom && m.scrollTop < m.scrollHeight - m.clientHeight) {
1402
- const V = m.scrollHeight - m.clientHeight - m.scrollTop;
1403
+ if (R + 30 > z.bottom && b.scrollTop < b.scrollHeight - b.clientHeight) {
1404
+ const V = b.scrollHeight - b.clientHeight - b.scrollTop;
1403
1405
  let Q = V < 10 ? V : 10;
1404
- m.scrollBy(0, Q), _ && m.contains(_) && (ae = ae + Q);
1406
+ b.scrollBy(0, Q), _ && b.contains(_) && (ae = ae + Q);
1405
1407
  }
1406
1408
  }
1407
- function tt(a, R, _, z) {
1409
+ function ot(a, R, _, z) {
1408
1410
  var V = C.direction === "horizontal", Q = C.direction === "mixed", ge = R !== a ? pe() : ue();
1409
1411
  return ge;
1410
1412
  function ue() {
@@ -1417,8 +1419,8 @@ var bt = { exports: {} };
1417
1419
  function pe() {
1418
1420
  var ie = R.getBoundingClientRect();
1419
1421
  if (Q) {
1420
- var ve = z - ie.top, de = _ - ie.left, le = ie.bottom - z, $e = ie.right - _, Le = Math.min(de, $e, ve, le), Fe;
1421
- return J ? Fe = $e < de : Fe = le === Le || $e === Le || de === Le, be(Fe);
1422
+ var ve = z - ie.top, de = _ - ie.left, le = ie.bottom - z, Fe = ie.right - _, Ne = Math.min(de, Fe, ve, le), We;
1423
+ return J ? We = Fe < de : We = le === Ne || Fe === Ne || de === Ne, be(We);
1422
1424
  }
1423
1425
  return be(V ? _ > ie.left + A(ie) / 2 : z > ie.top + S(ie) / 2);
1424
1426
  }
@@ -1426,7 +1428,7 @@ var bt = { exports: {} };
1426
1428
  return ie ? o(R) : R;
1427
1429
  }
1428
1430
  }
1429
- function Bt(a, R) {
1431
+ function jt(a, R) {
1430
1432
  return typeof C.copy == "boolean" ? C.copy : C.copy(a, R);
1431
1433
  }
1432
1434
  }
@@ -1450,7 +1452,7 @@ var bt = { exports: {} };
1450
1452
  }), y.sort((l, g) => l.contains(g) ? 1 : g.contains(l) ? -1 : 0), y;
1451
1453
  }
1452
1454
  function s(c, y, l, g) {
1453
- var I = {
1455
+ var k = {
1454
1456
  mouseup: "touchend",
1455
1457
  mousedown: "touchstart",
1456
1458
  mousemove: "touchmove"
@@ -1463,7 +1465,7 @@ var bt = { exports: {} };
1463
1465
  mousedown: "MSPointerDown",
1464
1466
  mousemove: "MSPointerMove"
1465
1467
  };
1466
- i.navigator.pointerEnabled ? w[y](c, M[l], g) : i.navigator.msPointerEnabled ? w[y](c, N[l], g) : (w[y](c, I[l], g), w[y](c, l, g));
1468
+ i.navigator.pointerEnabled ? w[y](c, M[l], g) : i.navigator.msPointerEnabled ? w[y](c, N[l], g) : (w[y](c, k[l], g), w[y](c, l, g));
1467
1469
  }
1468
1470
  function n(c) {
1469
1471
  if (c.touches !== void 0)
@@ -1478,8 +1480,8 @@ var bt = { exports: {} };
1478
1480
  }
1479
1481
  function D(c, y, l) {
1480
1482
  c = c || {};
1481
- var g = c.className || "", I;
1482
- return c.className += " gu-hide", I = E.elementFromPoint(y, l), c.className = g, I;
1483
+ var g = c.className || "", k;
1484
+ return c.className += " gu-hide", k = E.elementFromPoint(y, l), c.className = g, k;
1483
1485
  }
1484
1486
  function O() {
1485
1487
  return !1;
@@ -1497,10 +1499,10 @@ var bt = { exports: {} };
1497
1499
  return c.parentNode === E ? null : c.parentNode;
1498
1500
  }
1499
1501
  function q(c) {
1500
- return c.tagName === "INPUT" || c.tagName === "TEXTAREA" || c.tagName === "SELECT" || v(c);
1502
+ return c.tagName === "INPUT" || c.tagName === "TEXTAREA" || c.tagName === "SELECT" || m(c);
1501
1503
  }
1502
- function v(c) {
1503
- return !c || c.contentEditable === "false" ? !1 : c.contentEditable === "true" ? !0 : v(T(c));
1504
+ function m(c) {
1505
+ return !c || c.contentEditable === "false" ? !1 : c.contentEditable === "true" ? !0 : m(T(c));
1504
1506
  }
1505
1507
  function o(c) {
1506
1508
  return c.nextElementSibling || y();
@@ -1543,7 +1545,7 @@ var bt = { exports: {} };
1543
1545
  5: [function(t, p, u) {
1544
1546
  var i = t("atoa"), x = t("./debounce");
1545
1547
  p.exports = function(h, E) {
1546
- var k = E || {}, f = {};
1548
+ var I = E || {}, f = {};
1547
1549
  return h === void 0 && (h = {}), h.on = function(r, d) {
1548
1550
  return f[r] ? f[r].push(d) : f[r] = [d], h;
1549
1551
  }, h.once = function(r, d) {
@@ -1568,10 +1570,10 @@ var bt = { exports: {} };
1568
1570
  var d = (f[r] || []).slice(0);
1569
1571
  return function() {
1570
1572
  var s = i(arguments), n = this || h;
1571
- if (r === "error" && k.throws !== !1 && !d.length)
1573
+ if (r === "error" && I.throws !== !1 && !d.length)
1572
1574
  throw s.length === 1 ? s[0] : s;
1573
1575
  return d.forEach(function(O) {
1574
- k.async ? x(O, s, n) : O.apply(n, s), O._once && h.off(r, O);
1576
+ I.async ? x(O, s, n) : O.apply(n, s), O._once && h.off(r, O);
1575
1577
  }), h;
1576
1578
  };
1577
1579
  }, h;
@@ -1579,27 +1581,27 @@ var bt = { exports: {} };
1579
1581
  }, { "./debounce": 4, atoa: 3 }],
1580
1582
  6: [function(t, p, u) {
1581
1583
  (function(i) {
1582
- var x = t("custom-event"), w = t("./eventmap"), h = i.document, E = r, k = s, f = [];
1583
- i.addEventListener || (E = d, k = n), p.exports = {
1584
+ var x = t("custom-event"), w = t("./eventmap"), h = i.document, E = r, I = s, f = [];
1585
+ i.addEventListener || (E = d, I = n), p.exports = {
1584
1586
  add: E,
1585
- remove: k,
1587
+ remove: I,
1586
1588
  fabricate: D
1587
1589
  };
1588
- function r(T, q, v, o) {
1589
- return T.addEventListener(q, v, o);
1590
+ function r(T, q, m, o) {
1591
+ return T.addEventListener(q, m, o);
1590
1592
  }
1591
- function d(T, q, v) {
1592
- return T.attachEvent("on" + q, B(T, q, v));
1593
+ function d(T, q, m) {
1594
+ return T.attachEvent("on" + q, B(T, q, m));
1593
1595
  }
1594
- function s(T, q, v, o) {
1595
- return T.removeEventListener(q, v, o);
1596
+ function s(T, q, m, o) {
1597
+ return T.removeEventListener(q, m, o);
1596
1598
  }
1597
- function n(T, q, v) {
1598
- var o = A(T, q, v);
1599
+ function n(T, q, m) {
1600
+ var o = A(T, q, m);
1599
1601
  if (o)
1600
1602
  return T.detachEvent("on" + q, o);
1601
1603
  }
1602
- function D(T, q, v) {
1604
+ function D(T, q, m) {
1603
1605
  var o = w.indexOf(q) === -1 ? P() : $();
1604
1606
  T.dispatchEvent ? T.dispatchEvent(o) : T.fireEvent("on" + q, o);
1605
1607
  function $() {
@@ -1607,39 +1609,39 @@ var bt = { exports: {} };
1607
1609
  return h.createEvent ? (c = h.createEvent("Event"), c.initEvent(q, !0, !0)) : h.createEventObject && (c = h.createEventObject()), c;
1608
1610
  }
1609
1611
  function P() {
1610
- return new x(q, { detail: v });
1612
+ return new x(q, { detail: m });
1611
1613
  }
1612
1614
  }
1613
- function O(T, q, v) {
1615
+ function O(T, q, m) {
1614
1616
  return function($) {
1615
1617
  var P = $ || i.event;
1616
1618
  P.target = P.target || P.srcElement, P.preventDefault = P.preventDefault || function() {
1617
1619
  P.returnValue = !1;
1618
1620
  }, P.stopPropagation = P.stopPropagation || function() {
1619
1621
  P.cancelBubble = !0;
1620
- }, P.which = P.which || P.keyCode, v.call(T, P);
1622
+ }, P.which = P.which || P.keyCode, m.call(T, P);
1621
1623
  };
1622
1624
  }
1623
- function B(T, q, v) {
1624
- var o = A(T, q, v) || O(T, q, v);
1625
+ function B(T, q, m) {
1626
+ var o = A(T, q, m) || O(T, q, m);
1625
1627
  return f.push({
1626
1628
  wrapper: o,
1627
1629
  element: T,
1628
1630
  type: q,
1629
- fn: v
1631
+ fn: m
1630
1632
  }), o;
1631
1633
  }
1632
- function A(T, q, v) {
1633
- var o = S(T, q, v);
1634
+ function A(T, q, m) {
1635
+ var o = S(T, q, m);
1634
1636
  if (o) {
1635
1637
  var $ = f[o].wrapper;
1636
1638
  return f.splice(o, 1), $;
1637
1639
  }
1638
1640
  }
1639
- function S(T, q, v) {
1641
+ function S(T, q, m) {
1640
1642
  var o, $;
1641
1643
  for (o = 0; o < f.length; o++)
1642
- if ($ = f[o], $.element === T && $.type === q && $.fn === v)
1644
+ if ($ = f[o], $.element === T && $.type === q && $.fn === m)
1643
1645
  return o;
1644
1646
  }
1645
1647
  }).call(this, typeof me < "u" ? me : typeof self < "u" ? self : typeof window < "u" ? window : {});
@@ -1665,14 +1667,14 @@ var bt = { exports: {} };
1665
1667
  }
1666
1668
  p.exports = w() ? x : (
1667
1669
  // IE >= 9
1668
- typeof document < "u" && typeof document.createEvent == "function" ? function(E, k) {
1670
+ typeof document < "u" && typeof document.createEvent == "function" ? function(E, I) {
1669
1671
  var f = document.createEvent("CustomEvent");
1670
- return k ? f.initCustomEvent(E, k.bubbles, k.cancelable, k.detail) : f.initCustomEvent(E, !1, !1, void 0), f;
1672
+ return I ? f.initCustomEvent(E, I.bubbles, I.cancelable, I.detail) : f.initCustomEvent(E, !1, !1, void 0), f;
1671
1673
  } : (
1672
1674
  // IE <= 8
1673
- function(E, k) {
1675
+ function(E, I) {
1674
1676
  var f = document.createEventObject();
1675
- return f.type = E, k ? (f.bubbles = !!k.bubbles, f.cancelable = !!k.cancelable, f.detail = k.detail) : (f.bubbles = !1, f.cancelable = !1, f.detail = void 0), f;
1677
+ return f.type = E, I ? (f.bubbles = !!I.bubbles, f.cancelable = !!I.cancelable, f.detail = I.detail) : (f.bubbles = !1, f.cancelable = !1, f.detail = void 0), f;
1676
1678
  }
1677
1679
  )
1678
1680
  );
@@ -1698,7 +1700,7 @@ var bt = { exports: {} };
1698
1700
  w = E;
1699
1701
  }
1700
1702
  })();
1701
- function k(S) {
1703
+ function I(S) {
1702
1704
  if (x === setTimeout)
1703
1705
  return setTimeout(S, 0);
1704
1706
  if ((x === h || !x) && setTimeout)
@@ -1734,7 +1736,7 @@ var bt = { exports: {} };
1734
1736
  }
1735
1737
  function O() {
1736
1738
  if (!d) {
1737
- var S = k(D);
1739
+ var S = I(D);
1738
1740
  d = !0;
1739
1741
  for (var T = r.length; T; ) {
1740
1742
  for (s = r, r = []; ++n < T; )
@@ -1749,7 +1751,7 @@ var bt = { exports: {} };
1749
1751
  if (arguments.length > 1)
1750
1752
  for (var q = 1; q < arguments.length; q++)
1751
1753
  T[q - 1] = arguments[q];
1752
- r.push(new B(S, T)), r.length === 1 && !d && k(O);
1754
+ r.push(new B(S, T)), r.length === 1 && !d && I(O);
1753
1755
  };
1754
1756
  function B(S, T) {
1755
1757
  this.fun = S, this.array = T;
@@ -1783,7 +1785,7 @@ var bt = { exports: {} };
1783
1785
  }, { timers: 11 }],
1784
1786
  11: [function(t, p, u) {
1785
1787
  (function(i, x) {
1786
- var w = t("process/browser.js").nextTick, h = Function.prototype.apply, E = Array.prototype.slice, k = {}, f = 0;
1788
+ var w = t("process/browser.js").nextTick, h = Function.prototype.apply, E = Array.prototype.slice, I = {}, f = 0;
1787
1789
  u.setTimeout = function() {
1788
1790
  return new r(h.call(setTimeout, window, arguments), clearTimeout);
1789
1791
  }, u.setInterval = function() {
@@ -1809,21 +1811,21 @@ var bt = { exports: {} };
1809
1811
  }, s));
1810
1812
  }, u.setImmediate = typeof i == "function" ? i : function(d) {
1811
1813
  var s = f++, n = arguments.length < 2 ? !1 : E.call(arguments, 1);
1812
- return k[s] = !0, w(function() {
1813
- k[s] && (n ? d.apply(null, n) : d.call(null), u.clearImmediate(s));
1814
+ return I[s] = !0, w(function() {
1815
+ I[s] && (n ? d.apply(null, n) : d.call(null), u.clearImmediate(s));
1814
1816
  }), s;
1815
1817
  }, u.clearImmediate = typeof x == "function" ? x : function(d) {
1816
- delete k[d];
1818
+ delete I[d];
1817
1819
  };
1818
1820
  }).call(this, t("timers").setImmediate, t("timers").clearImmediate);
1819
1821
  }, { "process/browser.js": 9, timers: 11 }]
1820
1822
  }, {}, [2])(2);
1821
1823
  });
1822
- })(bt);
1823
- var Mn = bt.exports;
1824
- const rt = /* @__PURE__ */ En(Mn);
1825
- function Rn(e) {
1826
- let b;
1824
+ })(mt);
1825
+ var Bn = mt.exports;
1826
+ const st = /* @__PURE__ */ Rn(Bn);
1827
+ function On(e) {
1828
+ let v;
1827
1829
  function t(u, i, x, w) {
1828
1830
  const h = e.schema;
1829
1831
  if (!(h != null && h.buttons))
@@ -1834,14 +1836,14 @@ function Rn(e) {
1834
1836
  E = Array.from(i.children).findIndex((s) => s.getAttribute("id") === d);
1835
1837
  } else
1836
1838
  E = Array.from(i.children).length;
1837
- const k = u.getAttribute("id"), f = Array.from(i.children).findIndex((d) => d.getAttribute("id") === k), r = h.buttons[f];
1838
- f !== E && f > -1 && E > -1 && (f < E && (E = E - 1), h.buttons.splice(f, 1), h.buttons.splice(E, 0, r), w(), Te(() => {
1839
+ const I = u.getAttribute("id"), f = Array.from(i.children).findIndex((d) => d.getAttribute("id") === I), r = h.buttons[f];
1840
+ f !== E && f > -1 && E > -1 && (f < E && (E = E - 1), h.buttons.splice(f, 1), h.buttons.splice(E, 0, r), w(), Se(() => {
1839
1841
  const d = i.querySelector(".dgComponentSelected");
1840
- d != null && d.className.includes("dgComponentSelected") && (d.classList.remove("dgComponentSelected"), d.classList.remove("dgComponentFocused"), d.click()), Ne.value++;
1842
+ d != null && d.className.includes("dgComponentSelected") && (d.classList.remove("dgComponentSelected"), d.classList.remove("dgComponentFocused"), d.click()), qe.value++;
1841
1843
  }));
1842
1844
  }
1843
1845
  function p(u, i, x) {
1844
- b && b.destroy(), !(!rt || !u || !i) && (b = rt([u], {
1846
+ v && v.destroy(), !(!st || !u || !i) && (v = st([u], {
1845
1847
  mirrorContainer: i,
1846
1848
  direction: "horizontal",
1847
1849
  getMirrorText(w) {
@@ -1849,17 +1851,17 @@ function Rn(e) {
1849
1851
  },
1850
1852
  // 判断是否可移动
1851
1853
  moves(w, h, E) {
1852
- let k = !0;
1853
- return E.classList.contains("dropdown-item") ? (k = !1, k) : (w.classList.contains("no-drag") && (k = !1), k);
1854
+ let I = !0;
1855
+ return E.classList.contains("dropdown-item") ? (I = !1, I) : (w.classList.contains("no-drag") && (I = !1), I);
1854
1856
  }
1855
- }).on("drop", (w, h, E, k) => t(w, h, k, x)));
1857
+ }).on("drop", (w, h, E, I) => t(w, h, I, x)));
1856
1858
  }
1857
1859
  return {
1858
- dragulaInstance: b,
1860
+ dragulaInstance: v,
1859
1861
  initDragula: p
1860
1862
  };
1861
1863
  }
1862
- function Bn(e, b, t) {
1864
+ function jn(e, v, t) {
1863
1865
  const {
1864
1866
  renderToolbarItemDesigner: p,
1865
1867
  actionHandlers: u
@@ -1869,7 +1871,7 @@ function Bn(e, b, t) {
1869
1871
  i = B;
1870
1872
  }
1871
1873
  function w(B, A = null) {
1872
- const S = b.value.find((T) => T.id === B.id);
1874
+ const S = v.value.find((T) => T.id === B.id);
1873
1875
  if (S.isDP)
1874
1876
  if (document.body.click(), typeof A == "boolean")
1875
1877
  S.expanded = A;
@@ -1886,7 +1888,7 @@ function Bn(e, b, t) {
1886
1888
  };
1887
1889
  if (B.class) {
1888
1890
  const T = (S = B.menuClass) == null ? void 0 : S.split(" ");
1889
- T && T.length && T.reduce((q, v) => (q[v] = !0, q), A);
1891
+ T && T.length && T.reduce((q, m) => (q[m] = !0, q), A);
1890
1892
  }
1891
1893
  return A;
1892
1894
  }
@@ -1899,7 +1901,7 @@ function Bn(e, b, t) {
1899
1901
  };
1900
1902
  return ne(A, B.dropdownClass || "");
1901
1903
  }
1902
- function k(B) {
1904
+ function I(B) {
1903
1905
  return ne({
1904
1906
  disabled: !1,
1905
1907
  "dropdown-item": !0,
@@ -1928,7 +1930,7 @@ function Bn(e, b, t) {
1928
1930
  class: E(S),
1929
1931
  id: S.id
1930
1932
  }, [F("span", {
1931
- class: k(S),
1933
+ class: I(S),
1932
1934
  onClick: (q) => d(q, S, B)
1933
1935
  }, [S.text, F("i", {
1934
1936
  class: "f-icon f-icon-arrow-chevron-right",
@@ -1946,7 +1948,7 @@ function Bn(e, b, t) {
1946
1948
  } = S.getBoundingClientRect(), {
1947
1949
  marginTop: l,
1948
1950
  marginBottom: g
1949
- } = getComputedStyle(S), I = Math.ceil(parseFloat(l)) + Math.ceil(parseFloat(g)), M = P + o, N = A == null ? void 0 : A.getBoundingClientRect();
1951
+ } = getComputedStyle(S), k = Math.ceil(parseFloat(l)) + Math.ceil(parseFloat(g)), M = P + o, N = A == null ? void 0 : A.getBoundingClientRect();
1950
1952
  function H() {
1951
1953
  let G = 0, X = "left";
1952
1954
  const Y = N ? N.right : window.innerWidth, W = N ? N.left : 0;
@@ -1957,10 +1959,10 @@ function Bn(e, b, t) {
1957
1959
  }
1958
1960
  let U = 0, te = "bottom";
1959
1961
  if (B === "tabs" || B === "section")
1960
- U = A.getBoundingClientRect().bottom - M - I - 10;
1962
+ U = A.getBoundingClientRect().bottom - M - k - 10;
1961
1963
  else {
1962
1964
  const G = N ? N.bottom : window.innerHeight;
1963
- te = G - M >= P ? "bottom" : "top", U = Math.max(P, G - M), U = U - I - 10;
1965
+ te = G - M >= P ? "bottom" : "top", U = Math.max(P, G - M), U = U - k - 10;
1964
1966
  }
1965
1967
  const j = H();
1966
1968
  return {
@@ -1970,7 +1972,7 @@ function Bn(e, b, t) {
1970
1972
  };
1971
1973
  }
1972
1974
  function D(B) {
1973
- var v, o, $, P;
1975
+ var m, o, $, P;
1974
1976
  const A = "300px", S = {
1975
1977
  display: B.expanded === !0 ? "block" : "none",
1976
1978
  position: "absolute",
@@ -1988,7 +1990,7 @@ function Bn(e, b, t) {
1988
1990
  let y;
1989
1991
  switch (u.toolbarPosition) {
1990
1992
  case "tabs":
1991
- y = (v = i.value) == null ? void 0 : v.closest(".farris-tabs");
1993
+ y = (m = i.value) == null ? void 0 : m.closest(".farris-tabs");
1992
1994
  break;
1993
1995
  case "section":
1994
1996
  y = (o = i.value) == null ? void 0 : o.closest(".f-section");
@@ -2002,7 +2004,7 @@ function Bn(e, b, t) {
2002
2004
  }
2003
2005
  const l = n(u.toolbarPosition, y, c, q), {
2004
2006
  position: g,
2005
- maxHeight: I,
2007
+ maxHeight: k,
2006
2008
  maxWidth: M
2007
2009
  } = l;
2008
2010
  c.style.visibility = "visible";
@@ -2012,8 +2014,8 @@ function Bn(e, b, t) {
2012
2014
  bottom: g.indexOf("bottom") > -1 ? "unset" : "100%",
2013
2015
  top: g.indexOf("bottom") > -1 ? "!00%" : "unset",
2014
2016
  maxWidth: M ? M + "px" : "300px",
2015
- maxHeight: I ? I + "px" : "auto",
2016
- overflowY: I ? "auto" : "unset"
2017
+ maxHeight: k ? k + "px" : "auto",
2018
+ overflowY: k ? "auto" : "unset"
2017
2019
  };
2018
2020
  Object.assign(S, N);
2019
2021
  }
@@ -2039,7 +2041,7 @@ function Bn(e, b, t) {
2039
2041
  setResponseToolbarRef: x
2040
2042
  };
2041
2043
  }
2042
- class On extends dt {
2044
+ class _n extends pt {
2043
2045
  constructor(t, p, u = "response-toolbar-item") {
2044
2046
  super(t, p);
2045
2047
  Z(this, "toolbarType", "response-toolbar-item");
@@ -2135,7 +2137,7 @@ class On extends dt {
2135
2137
  properties: x,
2136
2138
  // 这个属性,标记当属性变更得时候触发重新更新属性
2137
2139
  refreshPanelAfterChanged: !0,
2138
- tabId: $t,
2140
+ tabId: Ft,
2139
2141
  tabName: "交互",
2140
2142
  setPropertyRelates(w, h) {
2141
2143
  const E = w.propertyValue;
@@ -2144,14 +2146,14 @@ class On extends dt {
2144
2146
  };
2145
2147
  }
2146
2148
  }
2147
- function We(e, b) {
2149
+ function ze(e, v) {
2148
2150
  if (!e)
2149
2151
  return !1;
2150
- const t = b || [];
2152
+ const t = v || [];
2151
2153
  return (t == null ? void 0 : t.findIndex((u) => u.id === e)) === -1;
2152
2154
  }
2153
- function it(e, b) {
2154
- const t = b || [];
2155
+ function lt(e, v) {
2156
+ const t = v || [];
2155
2157
  let p = { parentIndex: -1, itemIndex: -1 };
2156
2158
  return t.some((u, i) => {
2157
2159
  if (u.children && u.children.length > 0) {
@@ -2160,8 +2162,8 @@ function it(e, b) {
2160
2162
  }
2161
2163
  }), p;
2162
2164
  }
2163
- function st(e, b) {
2164
- const t = b || [];
2165
+ function at(e, v) {
2166
+ const t = v || [];
2165
2167
  let p = { parentIndex: -1, itemIndex: -1 };
2166
2168
  const u = t == null ? void 0 : t.findIndex((i) => i.id === e);
2167
2169
  return u > -1 ? { parent: null, item: t[u] } : (t.some((i, x) => {
@@ -2171,14 +2173,14 @@ function st(e, b) {
2171
2173
  }
2172
2174
  }), p.parentIndex < 0 ? { parent: null, item: null } : { parent: t[p.parentIndex], item: t[p.parentIndex].children[p.itemIndex] });
2173
2175
  }
2174
- function jn(e, b) {
2175
- const t = b || [], p = t == null ? void 0 : t.findIndex((u) => u.id === e);
2176
+ function An(e, v) {
2177
+ const t = v || [], p = t == null ? void 0 : t.findIndex((u) => u.id === e);
2176
2178
  return p > -1 && t[p].children && t[p].children.length > 0 ? t[p].expanded === !0 : !1;
2177
2179
  }
2178
- function _n(e, b) {
2180
+ function $n(e, v) {
2179
2181
  let t;
2180
2182
  function p(f) {
2181
- const { properties: r, title: d, ignore: s } = f, n = s && Array.isArray(s), D = Object.keys(r).reduce((O, B) => ((!n || !s.find((A) => A === B)) && (O[B] = r[B].type === "object" && r[B].properties ? p(r[B]) : xe(r[B].default)), O), {});
2183
+ const { properties: r, title: d, ignore: s } = f, n = s && Array.isArray(s), D = Object.keys(r).reduce((O, B) => ((!n || !s.find((A) => A === B)) && (O[B] = r[B].type === "object" && r[B].properties ? p(r[B]) : De(r[B].default)), O), {});
2182
2184
  if (d && (!n || !s.find((O) => O === "id"))) {
2183
2185
  const O = d.toLowerCase().replace(/-/g, "_");
2184
2186
  D.id = `${O}_${Math.random().toString().slice(2, 6)}`;
@@ -2188,7 +2190,7 @@ function _n(e, b) {
2188
2190
  function u(f) {
2189
2191
  const { properties: r, title: d, required: s } = f;
2190
2192
  if (s && Array.isArray(s)) {
2191
- const n = s.reduce((D, O) => (D[O] = r[O].type === "object" && r[O].properties ? p(r[O]) : xe(r[O].default), D), {});
2193
+ const n = s.reduce((D, O) => (D[O] = r[O].type === "object" && r[O].properties ? p(r[O]) : De(r[O].default), D), {});
2192
2194
  if (d && s.find((D) => D === "id")) {
2193
2195
  const D = d.toLowerCase().replace(/-/g, "_");
2194
2196
  n.id = `${D}_${Math.random().toString().slice(2, 6)}`;
@@ -2203,14 +2205,14 @@ function _n(e, b) {
2203
2205
  const s = e[f];
2204
2206
  if (s) {
2205
2207
  let n = u(s);
2206
- const D = b[f];
2208
+ const D = v[f];
2207
2209
  return n = D ? D({ getSchemaByType: i }, n, r, d) : n, t != null && t.appendIdentifyForNewControl && t.appendIdentifyForNewControl(n), n;
2208
2210
  }
2209
2211
  return null;
2210
2212
  }
2211
2213
  function x(f, r) {
2212
2214
  const d = p(r);
2213
- return Object.keys(d).reduce((s, n) => (Object.prototype.hasOwnProperty.call(f, n) && (s[n] && nt(s[n]) && nt(f[n] || !f[n]) ? Object.assign(s[n], f[n] || {}) : s[n] = f[n]), s), d), d;
2215
+ return Object.keys(d).reduce((s, n) => (Object.prototype.hasOwnProperty.call(f, n) && (s[n] && rt(s[n]) && rt(f[n] || !f[n]) ? Object.assign(s[n], f[n] || {}) : s[n] = f[n]), s), d), d;
2214
2216
  }
2215
2217
  function w(f, r) {
2216
2218
  return Object.keys(f).filter((s) => f[s] != null).reduce((s, n) => {
@@ -2247,13 +2249,13 @@ function _n(e, b) {
2247
2249
  }
2248
2250
  return f;
2249
2251
  }
2250
- function k(f) {
2252
+ function I(f) {
2251
2253
  t = f;
2252
2254
  }
2253
- return { getSchemaByType: i, resolveSchemaWithDefaultValue: E, resolveSchemaToProps: h, mappingSchemaToProps: w, setDesignerContext: k };
2255
+ return { getSchemaByType: i, resolveSchemaWithDefaultValue: E, resolveSchemaToProps: h, mappingSchemaToProps: w, setDesignerContext: I };
2254
2256
  }
2255
- const An = {}, $n = {}, { getSchemaByType: Ln } = _n(An, $n);
2256
- function Fn(e, b, t) {
2257
+ const Ln = {}, Fn = {}, { getSchemaByType: Nn } = $n(Ln, Fn);
2258
+ function Wn(e, v, t) {
2257
2259
  function p(y) {
2258
2260
  return !1;
2259
2261
  }
@@ -2273,136 +2275,136 @@ function Fn(e, b, t) {
2273
2275
  setTimeout(() => {
2274
2276
  var N, H;
2275
2277
  const g = (N = e.parent) == null ? void 0 : N.designerItemElementRef.value;
2276
- let I;
2277
- l && (I = g == null ? void 0 : g.querySelector("#" + l));
2278
- const M = (H = I || g) == null ? void 0 : H.querySelector("#" + y);
2278
+ let k;
2279
+ l && (k = g == null ? void 0 : g.querySelector("#" + l));
2280
+ const M = (H = k || g) == null ? void 0 : H.querySelector("#" + y);
2279
2281
  M == null || M.click();
2280
2282
  }, 0);
2281
2283
  }
2282
2284
  function E(y, l) {
2283
2285
  l.disabled && l.disabled.expressionId && (l.disabled.expressionId = `${l.id}_disabled`), l.visible && l.visible.expressionId && (l.visible.expressionId = `${l.id}_visible`);
2284
- const g = b.formSchemaUtils.getExpressions(), I = g.find((N) => N.target === y.id);
2285
- if (!I || !I.rules || !I.rules.length)
2286
+ const g = v.formSchemaUtils.getExpressions(), k = g.find((N) => N.target === y.id);
2287
+ if (!k || !k.rules || !k.rules.length)
2286
2288
  return;
2287
2289
  const M = {
2288
2290
  target: l.id,
2289
2291
  rules: [],
2290
2292
  targetType: "Button"
2291
2293
  };
2292
- I.rules.forEach((N) => {
2293
- const H = Object.assign(xe(N), {
2294
+ k.rules.forEach((N) => {
2295
+ const H = Object.assign(De(N), {
2294
2296
  id: `${l.id}_${N.type}`
2295
2297
  });
2296
2298
  M.rules.push(H);
2297
2299
  }), g.push(M);
2298
2300
  }
2299
- function k() {
2300
- var I;
2301
+ function I() {
2302
+ var k;
2301
2303
  const y = e.schema, l = Object.assign(
2302
- xe(y),
2304
+ De(y),
2303
2305
  {
2304
2306
  id: `${e.schema.type}-cloned-${Math.random().toString(36).slice(2, 6)}`,
2305
2307
  onClick: null
2306
2308
  }
2307
2309
  );
2308
- (I = b == null ? void 0 : b.designerContext) != null && I.appendIdentifyForNewControl && b.designerContext.appendIdentifyForNewControl(l);
2310
+ (k = v == null ? void 0 : v.designerContext) != null && k.appendIdentifyForNewControl && v.designerContext.appendIdentifyForNewControl(l);
2309
2311
  let g = [];
2310
2312
  return l.children && l.children.length && (g = l.children.map((M) => {
2311
2313
  var H;
2312
- const N = xe(M);
2314
+ const N = De(M);
2313
2315
  return Object.assign(
2314
2316
  N,
2315
2317
  {
2316
2318
  id: `${e.schema.type}-cloned-${Math.random().toString(36).slice(2, 6)}`,
2317
2319
  onClick: null
2318
2320
  }
2319
- ), (H = b == null ? void 0 : b.designerContext) != null && H.appendIdentifyForNewControl && b.designerContext.appendIdentifyForNewControl(N), E(M, N), N;
2321
+ ), (H = v == null ? void 0 : v.designerContext) != null && H.appendIdentifyForNewControl && v.designerContext.appendIdentifyForNewControl(N), E(M, N), N;
2320
2322
  }), l.children = g), E(y, l), l;
2321
2323
  }
2322
2324
  function f() {
2323
- const y = e.schema.type || "response-toolbar-item", l = Ln(y), g = y.toLowerCase().replace("-", "_");
2325
+ const y = e.schema.type || "response-toolbar-item", l = Nn(y), g = y.toLowerCase().replace("-", "_");
2324
2326
  return l && !l.id && l.type === y && (l.id = `${g}_${Math.random().toString().slice(2, 6)}`, l.text = "按钮"), l;
2325
2327
  }
2326
2328
  function r(y) {
2327
- const l = w(), g = l == null ? void 0 : l.findIndex((M) => M.id === y), I = g === -1 ? null : l[g];
2328
- return { index: g, toolbarItem: I };
2329
+ const l = w(), g = l == null ? void 0 : l.findIndex((M) => M.id === y), k = g === -1 ? null : l[g];
2330
+ return { index: g, toolbarItem: k };
2329
2331
  }
2330
2332
  function d() {
2331
2333
  const y = e.schema.id, l = w();
2332
- return We(y, l);
2334
+ return ze(y, l);
2333
2335
  }
2334
2336
  function s(y) {
2335
- const l = b.formSchemaUtils.getExpressions();
2337
+ const l = v.formSchemaUtils.getExpressions();
2336
2338
  if (!l || !l.length)
2337
2339
  return;
2338
- const g = (I) => {
2339
- const M = l && l.findIndex((N) => N.target === I.id);
2340
+ const g = (k) => {
2341
+ const M = l && l.findIndex((N) => N.target === k.id);
2340
2342
  M > -1 && l.splice(M, 1);
2341
2343
  };
2342
- g(y), y.children && y.children.length && y.children.forEach((I) => {
2343
- g(I);
2344
+ g(y), y.children && y.children.length && y.children.forEach((k) => {
2345
+ g(k);
2344
2346
  });
2345
2347
  }
2346
2348
  function n(y) {
2347
2349
  t.changeSelectedId(y);
2348
2350
  }
2349
2351
  function D(y) {
2350
- b.formSchemaUtils.removeCommunicationInComponent(y), y.children && y.children.length && y.children.forEach((l) => {
2351
- b.formSchemaUtils.removeCommunicationInComponent(l);
2352
+ v.formSchemaUtils.removeCommunicationInComponent(y), y.children && y.children.length && y.children.forEach((l) => {
2353
+ v.formSchemaUtils.removeCommunicationInComponent(l);
2352
2354
  });
2353
2355
  }
2354
2356
  function O() {
2355
- var I, M, N;
2356
- if ((I = b == null ? void 0 : b.designerContext) != null && I.checkCanDeleteControl && !b.designerContext.checkCanDeleteControl(e.schema))
2357
+ var k, M, N;
2358
+ if ((k = v == null ? void 0 : v.designerContext) != null && k.checkCanDeleteControl && !v.designerContext.checkCanDeleteControl(e.schema))
2357
2359
  return;
2358
- const y = w(), { parentIndex: l, itemIndex: g } = it(e.schema.id, y);
2359
- l === -1 || g === -1 || (s(e.schema), D(e.schema), y[l].children.splice(g, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (N = e.setupContext) == null || N.emit("selectionChange"), Ne.value++);
2360
+ const y = w(), { parentIndex: l, itemIndex: g } = lt(e.schema.id, y);
2361
+ l === -1 || g === -1 || (s(e.schema), D(e.schema), y[l].children.splice(g, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (N = e.setupContext) == null || N.emit("selectionChange"), qe.value++);
2360
2362
  }
2361
2363
  function B() {
2362
- var I, M, N;
2363
- if ((I = b == null ? void 0 : b.designerContext) != null && I.checkCanDeleteControl && !b.designerContext.checkCanDeleteControl(e.schema))
2364
+ var k, M, N;
2365
+ if ((k = v == null ? void 0 : v.designerContext) != null && k.checkCanDeleteControl && !v.designerContext.checkCanDeleteControl(e.schema))
2364
2366
  return;
2365
2367
  const y = e.schema.id, l = w(), g = l == null ? void 0 : l.findIndex((H) => H.id === y);
2366
- g !== -1 && (s(l[g]), D(l[g]), l == null || l.splice(g, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (N = e.setupContext) == null || N.emit("selectionChange"), Ne.value++);
2368
+ g !== -1 && (s(l[g]), D(l[g]), l == null || l.splice(g, 1), t.updateToolbarItems(), (M = e.setupContext) == null || M.emit("removeComponent"), (N = e.setupContext) == null || N.emit("selectionChange"), qe.value++);
2367
2369
  }
2368
2370
  function A(y = "Append") {
2369
2371
  var H;
2370
- const l = w(), { parentIndex: g, itemIndex: I } = it(e.schema.id, l);
2371
- if (g === -1 || I === -1)
2372
+ const l = w(), { parentIndex: g, itemIndex: k } = lt(e.schema.id, l);
2373
+ if (g === -1 || k === -1)
2372
2374
  return;
2373
- const M = f(), N = y === "Copy" ? k() : Object.assign({}, M);
2374
- l[g].children.splice(I + 1, 0, N), t.updateToolbarItems(), n(N.id), (H = e.setupContext) == null || H.emit("addComponent");
2375
+ const M = f(), N = y === "Copy" ? I() : Object.assign({}, M);
2376
+ l[g].children.splice(k + 1, 0, N), t.updateToolbarItems(), n(N.id), (H = e.setupContext) == null || H.emit("addComponent");
2375
2377
  }
2376
2378
  function S(y, l) {
2377
2379
  const { index: g } = r(l);
2378
2380
  if (g === -1)
2379
2381
  return { index: g, schema: null };
2380
- const I = f(), M = y === "Copy" ? k() : Object.assign({}, I);
2382
+ const k = f(), M = y === "Copy" ? I() : Object.assign({}, k);
2381
2383
  return { index: g, schema: M };
2382
2384
  }
2383
2385
  function T() {
2384
- var I;
2386
+ var k;
2385
2387
  const y = e.schema.id, { index: l, schema: g } = S("Copy", y);
2386
- g && (w().splice(l + 1, 0, g), t.updateToolbarItems(), h(g.id), (I = e.setupContext) == null || I.emit("addComponent"));
2388
+ g && (w().splice(l + 1, 0, g), t.updateToolbarItems(), h(g.id), (k = e.setupContext) == null || k.emit("addComponent"));
2387
2389
  }
2388
2390
  function q() {
2389
- var I;
2391
+ var k;
2390
2392
  const y = e.schema.id, { index: l, schema: g } = S("Append", y);
2391
2393
  if (g && e.parent) {
2392
2394
  const N = w()[l].children || [];
2393
2395
  N.push(g);
2394
2396
  const H = w();
2395
- H[l].children = N, t.updateToolbarItems(), n(g.id), (I = e.setupContext) == null || I.emit("addComponent");
2397
+ H[l].children = N, t.updateToolbarItems(), n(g.id), (k = e.setupContext) == null || k.emit("addComponent");
2396
2398
  }
2397
2399
  }
2398
- function v(y) {
2400
+ function m(y) {
2399
2401
  let l;
2400
2402
  switch (e.schema.type) {
2401
2403
  case "tab-toolbar-item":
2402
- l = new Qt(y, b);
2404
+ l = new Jt(y, v);
2403
2405
  break;
2404
2406
  default:
2405
- l = new On(y, b, e.schema.type);
2407
+ l = new _n(y, v, e.schema.type);
2406
2408
  }
2407
2409
  return l.getPropertyConfig(e.schema, d());
2408
2410
  }
@@ -2424,8 +2426,8 @@ function Fn(e, b, t) {
2424
2426
  icon: "f-icon-yxs_copy",
2425
2427
  onClick: (l) => {
2426
2428
  o(l);
2427
- const { activeElement: g } = document, I = g ? g.tagName.toLowerCase() : "";
2428
- I && I === "input" || I === "textarea" ? (g == null || g.blur(), Te(() => {
2429
+ const { activeElement: g } = document, k = g ? g.tagName.toLowerCase() : "";
2430
+ k && k === "input" || k === "textarea" ? (g == null || g.blur(), Se(() => {
2429
2431
  d() ? A("Copy") : T();
2430
2432
  })) : d() ? A("Copy") : T();
2431
2433
  }
@@ -2453,9 +2455,9 @@ function Fn(e, b, t) {
2453
2455
  s(y);
2454
2456
  }
2455
2457
  function c() {
2456
- var y, l, g, I;
2457
- if (e && b) {
2458
- const { formSchemaUtils: M } = b, { schema: N } = e;
2458
+ var y, l, g, k;
2459
+ if (e && v) {
2460
+ const { formSchemaUtils: M } = v, { schema: N } = e;
2459
2461
  switch (N.type) {
2460
2462
  case "response-toolbar-item": {
2461
2463
  M.getControlBasicInfoMap().set(N.id, {
@@ -2469,7 +2471,7 @@ function Fn(e, b, t) {
2469
2471
  case "drawer-toolbar-item": {
2470
2472
  let H;
2471
2473
  const U = (y = e.parent) == null ? void 0 : y.parent;
2472
- (U == null ? void 0 : U.schema.type) === "tabs" || (U == null ? void 0 : U.schema.type) === "section" || (U == null ? void 0 : U.schema.type) === "drawer" ? H = (l = U.componentInstance) == null ? void 0 : l.value : H = (I = (g = U == null ? void 0 : U.parent) == null ? void 0 : g.componentInstance) == null ? void 0 : I.value, H != null && H.setComponentBasicInfoMap && H.setComponentBasicInfoMap();
2474
+ (U == null ? void 0 : U.schema.type) === "tabs" || (U == null ? void 0 : U.schema.type) === "section" || (U == null ? void 0 : U.schema.type) === "drawer" ? H = (l = U.componentInstance) == null ? void 0 : l.value : H = (k = (g = U == null ? void 0 : U.parent) == null ? void 0 : g.componentInstance) == null ? void 0 : k.value, H != null && H.setComponentBasicInfoMap && H.setComponentBasicInfoMap();
2473
2475
  }
2474
2476
  }
2475
2477
  }
@@ -2479,22 +2481,22 @@ function Fn(e, b, t) {
2479
2481
  checkCanMoveComponent: u,
2480
2482
  checkCanDeleteComponent: i,
2481
2483
  checkCanAddComponent: x,
2482
- getPropsConfig: v,
2484
+ getPropsConfig: m,
2483
2485
  getCustomButtons: $,
2484
2486
  onRemoveComponent: P,
2485
2487
  setComponentBasicInfoMap: c
2486
2488
  };
2487
2489
  }
2488
- const vt = /* @__PURE__ */ ze({
2490
+ const yt = /* @__PURE__ */ Ue({
2489
2491
  name: "FResponseToolbarItemDesign",
2490
- props: pt,
2492
+ props: gt,
2491
2493
  emits: ["Click", "dropdown", "clearAll"],
2492
- setup(e, b) {
2493
- const t = re(e.alignment), p = Ye(), u = re(), i = Ce("designer-host-service"), x = Ce("design-item-context"), w = Ce("toolbar-item-action"), h = Fn(x, i, w), E = Yt(u, x, h);
2494
- Ge(() => {
2494
+ setup(e, v) {
2495
+ const t = re(e.alignment), p = He(), u = re(), i = Te("designer-host-service"), x = Te("design-item-context"), w = Te("toolbar-item-action"), h = Wn(x, i, w), E = Ht(u, x, h);
2496
+ Ye(() => {
2495
2497
  u.value.componentInstance = E;
2496
- }), b.expose(E.value);
2497
- function k() {
2498
+ }), v.expose(E.value);
2499
+ function I() {
2498
2500
  const S = {
2499
2501
  "f-icon": !0
2500
2502
  }, T = e.icon ? e.icon.trim() : "";
@@ -2551,7 +2553,7 @@ const vt = /* @__PURE__ */ ze({
2551
2553
  return e.isDPItem || (S = ne(S, e.class || "")), e.isDP && (S = ne(S, e.dropdownClass || "")), S;
2552
2554
  });
2553
2555
  function D(S, T) {
2554
- T && T.stopPropagation(), b.emit(S, {
2556
+ T && T.stopPropagation(), v.emit(S, {
2555
2557
  id: e.id,
2556
2558
  isDP: e.isDP
2557
2559
  });
@@ -2612,11 +2614,11 @@ const vt = /* @__PURE__ */ ze({
2612
2614
  id: e.id,
2613
2615
  onClick: () => D("clearAll")
2614
2616
  }, [f() && F("i", {
2615
- class: k()
2617
+ class: I()
2616
2618
  }, null), e.text])]);
2617
2619
  }
2618
2620
  });
2619
- function Nn(e, b, t, p) {
2621
+ function qn(e, v, t, p) {
2620
2622
  function u(r, d, s, n) {
2621
2623
  p.changeSelectedId((d == null ? void 0 : d.id) || ""), t && t.setupContext && t.setupContext.emit("selectionChange", r, d, s, n);
2622
2624
  }
@@ -2639,7 +2641,7 @@ function Nn(e, b, t, p) {
2639
2641
  const s = r.target;
2640
2642
  s != null && s.classList.contains("dgComponentFocused") && (s == null || s.classList.add("dgComponentSelected"));
2641
2643
  }
2642
- function k(r, d = !1) {
2644
+ function I(r, d = !1) {
2643
2645
  if (!d)
2644
2646
  return;
2645
2647
  const s = r.target;
@@ -2647,7 +2649,7 @@ function Nn(e, b, t, p) {
2647
2649
  }
2648
2650
  function f(r, d, s = !1) {
2649
2651
  const n = h(r.id, r.parent), D = re(n);
2650
- return F(Xt, {
2652
+ return F(Vt, {
2651
2653
  key: n.id,
2652
2654
  class: ["p-0", s ? "d-block no-drag" : "d-inline-block"],
2653
2655
  modelValue: D.value,
@@ -2661,11 +2663,11 @@ function Nn(e, b, t, p) {
2661
2663
  onSelectionChange: u,
2662
2664
  onRemoveComponent: i,
2663
2665
  onMouseenter: (O) => E(O, s),
2664
- onMouseleave: (O) => k(O, s)
2666
+ onMouseleave: (O) => I(O, s)
2665
2667
  }, {
2666
2668
  default: () => {
2667
2669
  var O;
2668
- return [F(vt, {
2670
+ return [F(yt, {
2669
2671
  id: n.id,
2670
2672
  disabled: n.disabled,
2671
2673
  text: n.text,
@@ -2689,11 +2691,11 @@ function Nn(e, b, t, p) {
2689
2691
  actionHandlers: p
2690
2692
  };
2691
2693
  }
2692
- function qe(e, b = !1, t = "") {
2694
+ function Ge(e, v = !1, t = "") {
2693
2695
  const p = [];
2694
2696
  return e.reduce((u, i) => {
2695
2697
  if (i.children && i.children.length > 0) {
2696
- const x = qe(i.children, !0, i.id);
2698
+ const x = Ge(i.children, !0, i.id);
2697
2699
  u.push(Object.assign({}, i, {
2698
2700
  children: x,
2699
2701
  isDPItem: !1,
@@ -2703,21 +2705,21 @@ function qe(e, b = !1, t = "") {
2703
2705
  }));
2704
2706
  } else
2705
2707
  u.push(Object.assign({}, i, {
2706
- isDPItem: b,
2708
+ isDPItem: v,
2707
2709
  isDP: !1,
2708
2710
  parent: t
2709
2711
  }));
2710
2712
  return u;
2711
2713
  }, p), p;
2712
2714
  }
2713
- const Re = /* @__PURE__ */ ze({
2715
+ const Oe = /* @__PURE__ */ Ue({
2714
2716
  name: "FResponseToolbarDesign",
2715
- props: vn,
2717
+ props: yn,
2716
2718
  emits: ["Click"],
2717
- setup(e, b) {
2718
- const t = re(qe(e.items)), p = re(), u = re(), i = re(), x = re("");
2719
+ setup(e, v) {
2720
+ const t = re(Ge(e.items)), p = re(), u = re(), i = re(), x = re("");
2719
2721
  let w = 0;
2720
- const h = 15, E = Ce("designer-host-service"), k = Ce("design-item-context"), f = Ce("external-container-id"), r = {
2722
+ const h = 15, E = Te("designer-host-service"), I = Te("design-item-context"), f = Te("external-container-id"), r = {
2721
2723
  clearAllDropdown: (j) => {
2722
2724
  },
2723
2725
  toggleDropdownMenu: (j) => {
@@ -2729,33 +2731,33 @@ const Re = /* @__PURE__ */ ze({
2729
2731
  },
2730
2732
  renderDropdownMenu: (j, G) => {
2731
2733
  },
2732
- toolbarContext: k,
2734
+ toolbarContext: I,
2733
2735
  changeMenuPosition: (j, G, X) => ({}),
2734
2736
  toolbarPosition: ""
2735
- }, d = Pn(k, E, r), s = Ht(i, k, d), n = Ce("toolbar-item-handler"), {
2737
+ }, d = Mn(I, E, r), s = Qt(i, I, d), n = Te("toolbar-item-handler"), {
2736
2738
  initDragula: D,
2737
2739
  dragulaInstance: O
2738
- } = Rn(k), B = Ye(), A = Nn(e, u, k, r), S = Bn(B, t, A), {
2740
+ } = On(I), B = He(), A = qn(e, u, I, r), S = jn(B, t, A), {
2739
2741
  renderToolbarItemDesigner: T
2740
2742
  } = A, {
2741
2743
  clearAllDropDownMenu: q,
2742
- renderDropdownMenu: v,
2744
+ renderDropdownMenu: m,
2743
2745
  setResponseToolbarRef: o
2744
2746
  } = S;
2745
- zt("toolbar-item-action", r), r.renderDropdownMenu = v, o(i), n && (n.changeSelectedId = function(j) {
2747
+ Ut("toolbar-item-action", r), r.renderDropdownMenu = m, o(i), n && (n.changeSelectedId = function(j) {
2746
2748
  x.value = j;
2747
2749
  });
2748
2750
  function $() {
2749
2751
  const j = u.value.querySelector(".dgComponentSelected");
2750
- j && Vt(j);
2752
+ j && Zt(j);
2751
2753
  }
2752
2754
  function P() {
2753
2755
  if (x.value)
2754
- if (We(x.value, t.value)) {
2756
+ if (ze(x.value, t.value)) {
2755
2757
  const {
2756
2758
  parent: j,
2757
2759
  item: G
2758
- } = st(x.value, t.value);
2760
+ } = at(x.value, t.value);
2759
2761
  j && (r.toggleDropdownMenu(j, !0), setTimeout(() => {
2760
2762
  var W;
2761
2763
  const X = i.value.querySelector("#" + j.id), Y = X == null ? void 0 : X.querySelector("#" + G.id);
@@ -2792,7 +2794,7 @@ const Re = /* @__PURE__ */ ze({
2792
2794
  J.querySelector(".dropdown-toggle-split") ? J.querySelector(".f-rt-btn").style.maxWidth = X - 38 + "px" : J.style.maxWidth = X - 12 + "px";
2793
2795
  });
2794
2796
  }
2795
- const I = new ResizeObserver((j) => {
2797
+ const k = new ResizeObserver((j) => {
2796
2798
  var G;
2797
2799
  if (j.length) {
2798
2800
  const Y = j[0].contentRect.width;
@@ -2801,13 +2803,13 @@ const Re = /* @__PURE__ */ ze({
2801
2803
  return;
2802
2804
  }
2803
2805
  if (Math.abs(Y - w) > h) {
2804
- if (w = Y, We(x.value, t.value)) {
2806
+ if (w = Y, ze(x.value, t.value)) {
2805
2807
  const {
2806
2808
  parent: W,
2807
2809
  item: J
2808
- } = st(x.value, t.value);
2810
+ } = at(x.value, t.value);
2809
2811
  l(W);
2810
- } else if (jn(x.value, t.value)) {
2812
+ } else if (An(x.value, t.value)) {
2811
2813
  const W = (G = t.value) == null ? void 0 : G.find((J) => J.id === x.value);
2812
2814
  l(W);
2813
2815
  } else
@@ -2816,11 +2818,11 @@ const Re = /* @__PURE__ */ ze({
2816
2818
  }
2817
2819
  }
2818
2820
  });
2819
- Ge(() => {
2820
- I.observe(i.value), w = i.value.clientWidth, i.value.componentInstance = s, f || D(u.value, p.value, y);
2821
- }), ut(() => {
2822
- I.disconnect(), O && O.destroy && O.destroy();
2823
- }), b.expose(s.value);
2821
+ Ye(() => {
2822
+ k.observe(i.value), w = i.value.clientWidth, i.value.componentInstance = s, f || D(u.value, p.value, y);
2823
+ }), ft(() => {
2824
+ k.disconnect(), O && O.destroy && O.destroy();
2825
+ }), v.expose(s.value);
2824
2826
  const M = fe(() => {
2825
2827
  const j = {
2826
2828
  "f-toolbar": !0,
@@ -2839,8 +2841,8 @@ const Re = /* @__PURE__ */ ze({
2839
2841
  "no-drag": !0,
2840
2842
  "w-100": !0
2841
2843
  }));
2842
- Ie(() => e.items, () => {
2843
- t.value = qe(e.items), Te(() => {
2844
+ Pe(() => e.items, () => {
2845
+ t.value = Ge(e.items), Se(() => {
2844
2846
  P(), g();
2845
2847
  });
2846
2848
  }, {
@@ -2850,7 +2852,7 @@ const Re = /* @__PURE__ */ ze({
2850
2852
  j && (j.stopPropagation(), j.preventDefault());
2851
2853
  const {
2852
2854
  schema: G
2853
- } = k;
2855
+ } = I;
2854
2856
  G.buttons || (G.buttons = []);
2855
2857
  let X = "";
2856
2858
  switch (r.toolbarPosition) {
@@ -2867,7 +2869,7 @@ const Re = /* @__PURE__ */ ze({
2867
2869
  default:
2868
2870
  X = "response-toolbar-item";
2869
2871
  }
2870
- const Y = at(X);
2872
+ const Y = ut(X);
2871
2873
  Y.id = `toolbar_item_${Math.random().toString().slice(2, 6)}`, G.buttons.push(Y);
2872
2874
  }
2873
2875
  function U() {
@@ -2879,7 +2881,7 @@ const Re = /* @__PURE__ */ ze({
2879
2881
  style: "font-size: 12px;"
2880
2882
  }, null), F("span", {
2881
2883
  class: "farris-tag-add-text"
2882
- }, [Gt("添加按钮")])]);
2884
+ }, [Yt("添加按钮")])]);
2883
2885
  }
2884
2886
  function te() {
2885
2887
  return t.value.map((j, G) => T(j, G));
@@ -2888,7 +2890,7 @@ const Re = /* @__PURE__ */ ze({
2888
2890
  var j;
2889
2891
  return F("div", {
2890
2892
  ref: i,
2891
- "data-dragref": `${k.schema.id}-container`,
2893
+ "data-dragref": `${I.schema.id}-container`,
2892
2894
  class: M.value,
2893
2895
  id: e.id
2894
2896
  }, [F("div", {
@@ -2901,19 +2903,19 @@ const Re = /* @__PURE__ */ ze({
2901
2903
  }, [(j = t.value) != null && j.length ? te() : U()])])]);
2902
2904
  };
2903
2905
  }
2904
- }), Zn = Ue;
2905
- Re.register = (e, b, t, p) => {
2906
- e["response-toolbar"] = In, b["response-toolbar"] = Ue, p["response-toolbar"] = { eventHandlerResolver: wn };
2906
+ }), Kn = Xe;
2907
+ Oe.register = (e, v, t, p) => {
2908
+ e["response-toolbar"] = Pn, v["response-toolbar"] = Xe, p["response-toolbar"] = { eventHandlerResolver: xn };
2907
2909
  };
2908
- Re.registerDesigner = (e, b, t) => {
2909
- e["response-toolbar"] = Re, b["response-toolbar"] = Ue, e["response-toolbar-item"] = vt, b["response-toolbar-item"] = yn;
2910
+ Oe.registerDesigner = (e, v, t) => {
2911
+ e["response-toolbar"] = Oe, v["response-toolbar"] = Xe, e["response-toolbar-item"] = yt, v["response-toolbar-item"] = Cn;
2910
2912
  };
2911
- const Jn = Lt(Re);
2913
+ const eo = Nt(Oe);
2912
2914
  export {
2913
- Re as FResponseToolbarDesign,
2914
- vt as FResponseToolbarItemDesign,
2915
- mn as commonToolbarItemDesignProps,
2916
- Jn as default,
2917
- Zn as responseToolbarResolver,
2918
- ft as schemaResolver
2915
+ Oe as FResponseToolbarDesign,
2916
+ yt as FResponseToolbarItemDesign,
2917
+ wn as commonToolbarItemDesignProps,
2918
+ eo as default,
2919
+ Kn as responseToolbarResolver,
2920
+ ht as schemaResolver
2919
2921
  };