@farris/ui-vue 1.3.3 → 1.3.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 (66) hide show
  1. package/components/binding-selector/index.esm.js +15 -15
  2. package/components/binding-selector/index.umd.cjs +1 -1
  3. package/components/condition/index.esm.js +107 -106
  4. package/components/condition/index.umd.cjs +1 -1
  5. package/components/data-grid/index.esm.js +1078 -1077
  6. package/components/data-grid/index.umd.cjs +1 -1
  7. package/components/data-view/index.esm.js +1272 -1272
  8. package/components/data-view/index.umd.cjs +1 -1
  9. package/components/designer-canvas/index.esm.js +4355 -3954
  10. package/components/designer-canvas/index.umd.cjs +1 -1
  11. package/components/dynamic-form/index.esm.js +601 -593
  12. package/components/dynamic-form/index.umd.cjs +1 -1
  13. package/components/event-parameter/index.esm.js +161 -117
  14. package/components/event-parameter/index.umd.cjs +1 -1
  15. package/components/events-editor/index.css +1 -1
  16. package/components/events-editor/index.esm.js +594 -575
  17. package/components/events-editor/index.umd.cjs +1 -1
  18. package/components/external-container/index.esm.js +771 -771
  19. package/components/external-container/index.umd.cjs +1 -1
  20. package/components/field-selector/index.esm.js +1268 -1268
  21. package/components/field-selector/index.umd.cjs +1 -1
  22. package/components/filter-bar/index.css +1 -1
  23. package/components/filter-bar/index.esm.js +3768 -3700
  24. package/components/filter-bar/index.umd.cjs +1 -1
  25. package/components/flow-canvas/index.esm.js +4274 -3873
  26. package/components/flow-canvas/index.umd.cjs +1 -1
  27. package/components/list-view/index.esm.js +935 -935
  28. package/components/list-view/index.umd.cjs +1 -1
  29. package/components/lookup/index.esm.js +1672 -1671
  30. package/components/lookup/index.umd.cjs +1 -1
  31. package/components/mapping-editor/index.esm.js +1107 -1106
  32. package/components/mapping-editor/index.umd.cjs +1 -1
  33. package/components/property-panel/index.css +1 -1
  34. package/components/query-solution/index.css +1 -1
  35. package/components/query-solution/index.esm.js +5721 -5490
  36. package/components/query-solution/index.umd.cjs +6 -6
  37. package/components/schema-selector/index.esm.js +974 -972
  38. package/components/schema-selector/index.umd.cjs +2 -2
  39. package/components/section/index.esm.js +2107 -417
  40. package/components/section/index.umd.cjs +1 -1
  41. package/components/tabs/index.esm.js +577 -575
  42. package/components/tabs/index.umd.cjs +1 -1
  43. package/components/textarea/index.esm.js +84 -79
  44. package/components/textarea/index.umd.cjs +1 -1
  45. package/components/tree-grid/index.esm.js +1554 -1554
  46. package/components/tree-grid/index.umd.cjs +1 -1
  47. package/components/tree-view/index.esm.js +1269 -1269
  48. package/components/tree-view/index.umd.cjs +1 -1
  49. package/farris.all.esm.js +17526 -17071
  50. package/farris.all.umd.cjs +13 -13
  51. package/index.css +1 -1
  52. package/package.json +1 -1
  53. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +1 -2
  54. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +14 -3
  55. package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
  56. package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
  57. package/types/event-parameter/src/event-parameter.props.d.ts +4 -4
  58. package/types/events-editor/src/composition/types.d.ts +1 -1
  59. package/types/query-solution/src/composition/types.d.ts +55 -0
  60. package/types/query-solution/src/composition/use-condition.d.ts +19 -0
  61. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +3 -2
  62. package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
  63. package/types/section/index.d.ts +15 -0
  64. package/types/section/src/designer/section-header.design.component.d.ts +4 -0
  65. package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
  66. package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
@@ -1,7 +1,7 @@
1
1
  var yt = Object.defineProperty;
2
2
  var Ct = (t, e, n) => e in t ? yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var N = (t, e, n) => Ct(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { ref as p, watch as Z, nextTick as ae, computed as B, createVNode as c, onMounted as te, withDirectives as wt, vModelText as Tt, createTextVNode as Be, Fragment as Me, defineComponent as se, shallowRef as ve, provide as xe, inject as J, onUnmounted as be, isVNode as ze, Teleport as xt, Transition as St, createApp as Bt, render as Ie, h as Mt, cloneVNode as kt, mergeProps as Ne, reactive as ue, getCurrentInstance as Pt, onBeforeUnmount as It, withModifiers as Et } from "vue";
4
+ import { ref as p, watch as Z, nextTick as ae, computed as B, createVNode as u, onMounted as te, withDirectives as wt, vModelText as Tt, createTextVNode as Be, Fragment as Me, defineComponent as se, shallowRef as ve, provide as xe, inject as J, onUnmounted as be, isVNode as ze, Teleport as xt, Transition as St, createApp as Bt, render as Ie, h as Mt, cloneVNode as kt, mergeProps as Ne, reactive as ue, getCurrentInstance as Pt, onBeforeUnmount as It, withModifiers as Et } from "vue";
5
5
  import { cloneDeep as Ve, isPlainObject as He } from "lodash-es";
6
6
  import Dt from "../capsule/index.esm.js";
7
7
  import We from "../response-toolbar/index.esm.js";
@@ -12,19 +12,19 @@ import { getCustomClass as De } from "../common/index.esm.js";
12
12
  import "bignumber.js";
13
13
  const _e = {}, Ue = {};
14
14
  function Oe(t) {
15
- const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), l = Object.keys(e).reduce((s, r) => ((!a || !o.find((u) => u === r)) && (s[r] = e[r].type === "object" && e[r].properties ? Oe(e[r]) : Ve(e[r].default)), s), {});
16
- if (n && (!a || !o.find((s) => s === "id"))) {
17
- const s = n.toLowerCase().replace(/-/g, "_");
18
- l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
15
+ const { properties: e, title: n, ignore: o } = t, a = o && Array.isArray(o), s = Object.keys(e).reduce((l, r) => ((!a || !o.find((c) => c === r)) && (l[r] = e[r].type === "object" && e[r].properties ? Oe(e[r]) : Ve(e[r].default)), l), {});
16
+ if (n && (!a || !o.find((l) => l === "id"))) {
17
+ const l = n.toLowerCase().replace(/-/g, "_");
18
+ s.id = `${l}_${Math.random().toString().slice(2, 6)}`;
19
19
  }
20
- return l;
20
+ return s;
21
21
  }
22
22
  function pe(t, e = {}, n) {
23
23
  const o = _e[t];
24
24
  if (o) {
25
25
  let a = Oe(o);
26
- const l = Ue[t];
27
- return a = l ? l({ getSchemaByType: pe }, a, e, n) : a, a;
26
+ const s = Ue[t];
27
+ return a = s ? s({ getSchemaByType: pe }, a, e, n) : a, a;
28
28
  }
29
29
  return null;
30
30
  }
@@ -35,12 +35,12 @@ function Ot(t, e) {
35
35
  function At(t, e) {
36
36
  return Object.keys(t).filter((o) => t[o] != null).reduce((o, a) => {
37
37
  if (e.has(a)) {
38
- const l = e.get(a);
39
- if (typeof l == "string")
40
- o[l] = t[a];
38
+ const s = e.get(a);
39
+ if (typeof s == "string")
40
+ o[s] = t[a];
41
41
  else {
42
- const s = l(a, t[a], t);
43
- Object.assign(o, s);
42
+ const l = s(a, t[a], t);
43
+ Object.assign(o, l);
44
44
  }
45
45
  } else
46
46
  o[a] = t[a];
@@ -83,13 +83,13 @@ function Lt(t = {}) {
83
83
  return { target: m, operator: "getProperty", param: C, value: x };
84
84
  }) : [];
85
85
  }
86
- function l(d) {
86
+ function s(d) {
87
87
  return Object.keys(d).reduce((m, w) => {
88
88
  const C = a(w, d[w]);
89
89
  return m.push(...C), m;
90
90
  }, []);
91
91
  }
92
- function s(d, f) {
92
+ function l(d, f) {
93
93
  if (o.has(d.operator)) {
94
94
  const m = o.get(d.operator);
95
95
  return m && m(d.target, d.param, d.value, f) || !1;
@@ -97,13 +97,13 @@ function Lt(t = {}) {
97
97
  return !1;
98
98
  }
99
99
  function r(d, f) {
100
- return l(d).reduce((C, x) => C && s(x, f), !0);
100
+ return s(d).reduce((C, x) => C && l(x, f), !0);
101
101
  }
102
- function u(d, f) {
102
+ function c(d, f) {
103
103
  const m = Object.keys(d), w = m.includes("allOf"), C = m.includes("anyOf"), x = w || C, b = (x ? d[x ? w ? "allOf" : "anyOf" : "allOf"] : [d]).map((O) => r(O, f));
104
104
  return w ? !b.includes(!1) : b.includes(!0);
105
105
  }
106
- return { parseValueSchema: u };
106
+ return { parseValueSchema: c };
107
107
  }
108
108
  const ee = {
109
109
  button: { type: "button", name: "按钮", icon: "Button" },
@@ -147,10 +147,10 @@ const ee = {
147
147
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
148
148
  }, Ft = {}, Ht = {};
149
149
  Lt();
150
- function he(t, e, n = /* @__PURE__ */ new Map(), o = (s, r, u, d) => r, a = {}, l = (s) => s) {
151
- return _e[e.title] = e, Ue[e.title] = o, Ft[e.title] = a, Ht[e.title] = l, (s = {}) => {
152
- const r = $t(s, e, n), u = Object.keys(t).reduce((d, f) => (d[f] = t[f].default, d), {});
153
- return Object.assign(u, r);
150
+ function he(t, e, n = /* @__PURE__ */ new Map(), o = (l, r, c, d) => r, a = {}, s = (l) => l) {
151
+ return _e[e.title] = e, Ue[e.title] = o, Ft[e.title] = a, Ht[e.title] = s, (l = {}) => {
152
+ const r = $t(l, e, n), c = Object.keys(t).reduce((d, f) => (d[f] = t[f].default, d), {});
153
+ return Object.assign(c, r);
154
154
  };
155
155
  }
156
156
  function ke(t, e) {
@@ -161,13 +161,13 @@ function zt() {
161
161
  const o = e.contents;
162
162
  if (!o || o.length < 1)
163
163
  return null;
164
- const a = o.reduce((u, d) => {
164
+ const a = o.reduce((c, d) => {
165
165
  const f = d.toolbar && d.toolbar.buttons || [];
166
- return u.push(...f), u;
166
+ return c.push(...f), c;
167
167
  }, []);
168
168
  if (!a || a.length < 1)
169
169
  return;
170
- const [l, s] = n.payloads, r = a.find((u) => u.id === s);
170
+ const [s, l] = n.payloads, r = a.find((c) => c.id === l);
171
171
  return r ? r.onClick || r.click : null;
172
172
  }
173
173
  return {
@@ -180,8 +180,8 @@ const Ae = /* @__PURE__ */ new Map([
180
180
  function Nt(t, e) {
181
181
  const n = Math.random().toString().slice(2, 6), o = e.parentComponentInstance, a = t.getSchemaByType("tab-page");
182
182
  a.id = `tab-page-${n}`;
183
- const l = t.getSchemaByType("tabs");
184
- Object.assign(l, {
183
+ const s = t.getSchemaByType("tabs");
184
+ Object.assign(s, {
185
185
  id: `tabs-${n}`,
186
186
  appearance: {
187
187
  class: "f-component-tabs f-tabs-has-grid"
@@ -189,15 +189,15 @@ function Nt(t, e) {
189
189
  contents: [a],
190
190
  activeId: a.id
191
191
  });
192
- const s = t.getSchemaByType("section");
193
- Object.assign(s, {
192
+ const l = t.getSchemaByType("section");
193
+ Object.assign(l, {
194
194
  id: `section-${n}`,
195
195
  appearance: {
196
196
  class: "f-section-tabs f-section-in-mainsubcard"
197
197
  },
198
198
  fill: !1,
199
199
  showHeader: !1,
200
- contents: [l]
200
+ contents: [s]
201
201
  });
202
202
  const r = t.getSchemaByType("content-container");
203
203
  Object.assign(r, {
@@ -205,16 +205,17 @@ function Nt(t, e) {
205
205
  appearance: {
206
206
  class: "f-struct-wrapper"
207
207
  },
208
- contents: [s]
208
+ contents: [l]
209
209
  });
210
- const u = o.schema;
211
- switch (u && u.type) {
210
+ const c = o.schema;
211
+ switch (c && c.type) {
212
212
  case ee["splitter-pane"].type: {
213
- s.appearance.class = "f-section-tabs f-section-in-main", l.appearance.class = "f-component-tabs";
213
+ l.appearance.class = "f-section-tabs f-section-in-main", s.appearance.class = "f-component-tabs";
214
214
  break;
215
215
  }
216
216
  }
217
- return r;
217
+ const d = o.elementRef, f = window.getComputedStyle(d);
218
+ return f && f.display === "flex" && (r.appearance.class += " d-block"), r;
218
219
  }
219
220
  function Ge(t, e, n) {
220
221
  if (n.parentComponentInstance)
@@ -309,7 +310,7 @@ const Wt = "https://json-schema.org/draft/2020-12/schema", qt = "https://farris-
309
310
  componentId: { type: String, default: "" }
310
311
  }), Qt = he(Ye, Xe, Ae, Ge), Zt = zt();
311
312
  function Kt(t, e, n) {
312
- const o = p([]), a = p(t.activeId || ""), l = p(!0), s = p([]);
313
+ const o = p([]), a = p(t.activeId || ""), s = p(!0), l = p([]);
313
314
  Z(() => t.activeId, (h, S) => {
314
315
  h !== S && (a.value = h);
315
316
  });
@@ -317,7 +318,7 @@ function Kt(t, e, n) {
317
318
  const S = h.value.findIndex((b) => b.props.show !== !1 && !a.value && !b.props.disabled);
318
319
  !a.value && S !== -1 && (a.value = h.value[S].props.id);
319
320
  }
320
- function u(h) {
321
+ function c(h) {
321
322
  var b;
322
323
  if (t.autoTitleWidth)
323
324
  return;
@@ -334,7 +335,7 @@ function Kt(t, e, n) {
334
335
  function f(h, S, b = !1) {
335
336
  const T = o.value.findIndex((O) => O.props.id === S);
336
337
  o.value = o.value.filter((O) => O.props.id !== S), a.value === S && (a.value = "", r(o)), d(h), ae(() => {
337
- u(n), b && (l.value = !0), e.emit("tabRemove", {
338
+ c(n), b && (s.value = !0), e.emit("tabRemove", {
338
339
  removeIndex: T,
339
340
  removeId: S,
340
341
  activeId: a.value
@@ -345,7 +346,7 @@ function Kt(t, e, n) {
345
346
  const S = a.value;
346
347
  a.value = h;
347
348
  const b = o.value.find((T) => T.props.id === h);
348
- s.value = [], b && b.props.toolbar && b.props.toolbar.buttons && b.props.toolbar.buttons.length && (s.value = [...b.props.toolbar.buttons]), e.emit("update:activeId", h), e.emit("tabChange", {
349
+ l.value = [], b && b.props.toolbar && b.props.toolbar.buttons && b.props.toolbar.buttons.length && (l.value = [...b.props.toolbar.buttons]), e.emit("update:activeId", h), e.emit("tabChange", {
349
350
  prevId: S,
350
351
  nextId: a.value
351
352
  });
@@ -360,46 +361,46 @@ function Kt(t, e, n) {
360
361
  o.value.findIndex((b) => b.props.id === h.props.id) !== -1 && (o.value.forEach((b) => {
361
362
  b.props.id === h.props.id && (b = h);
362
363
  }), ae(() => {
363
- u(n);
364
+ c(n);
364
365
  }));
365
366
  }
366
367
  return {
367
368
  activeId: a,
368
369
  addTab: C,
369
- changeTitleStyle: u,
370
+ changeTitleStyle: c,
370
371
  removeTab: f,
371
372
  selectTab: w,
372
373
  selectTabByTabId: m,
373
374
  tabPages: o,
374
375
  updateTab: x,
375
- toolbarItems: s
376
+ toolbarItems: l
376
377
  };
377
378
  }
378
379
  function en(t, e, n, o, a) {
379
380
  const {
380
- activeId: l,
381
- removeTab: s,
381
+ activeId: s,
382
+ removeTab: l,
382
383
  selectTab: r
383
- } = a, u = B(() => ({
384
+ } = a, c = B(() => ({
384
385
  "st-tab-text": !0,
385
386
  "text-truncate": !0,
386
387
  "farris-title-auto": t.autoTitleWidth
387
388
  })), d = B(() => ({
388
389
  "nav-item": !0,
389
390
  "d-none": e.show !== void 0 ? !e.show : !1,
390
- "f-state-active": e.id === l.value,
391
+ "f-state-active": e.id === s.value,
391
392
  "f-state-disable": e.disabled
392
393
  })), f = B(() => ({
393
394
  width: `${e.tabWidth}px`
394
395
  })), m = B(() => ({
395
396
  "nav-link": !0,
396
397
  "tabs-text-truncate": !0,
397
- active: e.id === l.value,
398
+ active: e.id === s.value,
398
399
  disabled: e.disabled
399
400
  }));
400
401
  function w(T) {
401
- return c("span", {
402
- class: u.value,
402
+ return u("span", {
403
+ class: c.value,
403
404
  title: T.title
404
405
  }, [T.title]);
405
406
  }
@@ -408,37 +409,37 @@ function en(t, e, n, o, a) {
408
409
  }
409
410
  const x = C(n), h = p(e.removeable);
410
411
  function S() {
411
- return c("span", {
412
+ return u("span", {
412
413
  class: "st-drop-close",
413
- onClick: (T) => s(T, e.id),
414
+ onClick: (T) => l(T, e.id),
414
415
  style: {
415
416
  opacity: 0.6
416
417
  }
417
- }, [c("i", {
418
+ }, [u("i", {
418
419
  class: "f-icon f-icon-close"
419
420
  }, null)]);
420
421
  }
421
422
  function b(T) {
422
423
  r(e.id), t.tabType === "one-page" && o.scrollToByPaggId(e.id);
423
424
  }
424
- return c("li", {
425
+ return u("li", {
425
426
  class: d.value,
426
427
  style: f.value
427
- }, [c("a", {
428
+ }, [u("a", {
428
429
  class: m.value,
429
430
  onClick: b
430
431
  }, [x(e), h.value && S()])]);
431
432
  }
432
433
  function tn(t, e, n, o, a) {
433
434
  const {
434
- shouldShowNavigationButtons: l
435
+ shouldShowNavigationButtons: s
435
436
  } = n, {
436
- tabPages: s
437
+ tabPages: l
437
438
  } = a, r = B(() => ({
438
439
  spacer: !0,
439
440
  "f-utils-fill": !0,
440
- "spacer-sides-dropdown": l.value
441
- })), u = B(() => ({
441
+ "spacer-sides-dropdown": s.value
442
+ })), c = B(() => ({
442
443
  width: "100%",
443
444
  "justify-content": t.justifyContent
444
445
  })), d = B(() => ({
@@ -450,22 +451,22 @@ function tn(t, e, n, o, a) {
450
451
  "flex-row": t.position === "top" || t.position === "bottom",
451
452
  "flex-column": t.position === "left" || t.position === "right"
452
453
  }));
453
- return () => c("div", {
454
+ return () => u("div", {
454
455
  class: r.value,
455
- style: u.value
456
- }, [c("ul", {
456
+ style: c.value
457
+ }, [u("ul", {
457
458
  class: d.value,
458
459
  ref: e
459
- }, [s.value.map((f) => en(t, f.props, f, o, a))])]);
460
+ }, [l.value.map((f) => en(t, f.props, f, o, a))])]);
460
461
  }
461
462
  function Je(t, e, n, o, a) {
462
- const l = p(), {
463
- shouldShowNavigationButtons: s
463
+ const s = p(), {
464
+ shouldShowNavigationButtons: l
464
465
  } = n, {
465
466
  activeId: r,
466
- tabPages: u,
467
+ tabPages: c,
467
468
  selectTab: d
468
- } = a, f = p(r.value), m = B(() => u.value.map((h) => ({
469
+ } = a, f = p(r.value), m = B(() => c.value.map((h) => ({
469
470
  name: h.props.title,
470
471
  value: h.props.id,
471
472
  show: h.props.show,
@@ -473,14 +474,14 @@ function Je(t, e, n, o, a) {
473
474
  }))), w = B(() => ({
474
475
  spacer: !0,
475
476
  "f-utils-fill": !0,
476
- "spacer-sides-dropdown": s.value
477
+ "spacer-sides-dropdown": l.value
477
478
  })), C = B(() => ({
478
479
  width: "100%",
479
480
  display: "flex",
480
481
  "justify-content": t.justifyContent
481
482
  }));
482
483
  te(() => {
483
- l.value && (e.value = l.value.$el);
484
+ s.value && (e.value = s.value.$el);
484
485
  });
485
486
  function x(h) {
486
487
  d(h);
@@ -489,35 +490,35 @@ function Je(t, e, n, o, a) {
489
490
  h !== f.value && (f.value = h);
490
491
  }, {
491
492
  immediate: !0
492
- }), () => c("div", {
493
+ }), () => u("div", {
493
494
  class: w.value,
494
495
  style: C.value
495
- }, [c(Dt, {
496
+ }, [u(Dt, {
496
497
  items: m.value,
497
498
  modelValue: f.value,
498
499
  "onUpdate:modelValue": (h) => f.value = h,
499
500
  onChange: x,
500
- ref: l
501
+ ref: s
501
502
  }, null)]);
502
503
  }
503
504
  function nn(t, e, n, o) {
504
505
  const {
505
506
  activeId: a,
506
- removeTab: l,
507
- tabPages: s
507
+ removeTab: s,
508
+ tabPages: l
508
509
  } = o, {
509
510
  selectAndScrollToTab: r
510
511
  } = n, {
511
- hideDropDown: u,
512
+ hideDropDown: c,
512
513
  searchTabText: d
513
514
  } = e, f = p("auto"), m = B(() => {
514
515
  var T, O;
515
516
  let b = [];
516
- return t.searchBoxVisible ? b = (T = s.value) == null ? void 0 : T.filter((z) => z.props.title.includes(d.value)) : b = (O = s.value) == null ? void 0 : O.slice(), b;
517
+ return t.searchBoxVisible ? b = (T = l.value) == null ? void 0 : T.filter((z) => z.props.title.includes(d.value)) : b = (O = l.value) == null ? void 0 : O.slice(), b;
517
518
  }), w = B(() => ({
518
519
  "dropdown-menu": !0,
519
520
  "tabs-pt28": t.searchBoxVisible,
520
- show: !u.value
521
+ show: !c.value
521
522
  }));
522
523
  function C(b) {
523
524
  return {
@@ -536,33 +537,33 @@ function nn(t, e, n, o) {
536
537
  width: f.value
537
538
  });
538
539
  function S() {
539
- return c("div", {
540
+ return u("div", {
540
541
  class: w.value
541
- }, [t.searchBoxVisible && c("div", {
542
+ }, [t.searchBoxVisible && u("div", {
542
543
  onClick: (b) => x(b),
543
544
  class: "pb-1 tabs-li-absolute"
544
- }, [wt(c("input", {
545
+ }, [wt(u("input", {
545
546
  title: "search-box",
546
547
  type: "text",
547
548
  class: "form-control k-textbox",
548
549
  "onUpdate:modelValue": (b) => d.value = b
549
- }, null), [[Tt, d.value]]), c("span", {
550
+ }, null), [[Tt, d.value]]), u("span", {
550
551
  class: "f-icon f-icon-page-title-query tabs-icon-search"
551
- }, null)]), m.value.length ? c("ul", {
552
+ }, null)]), m.value.length ? u("ul", {
552
553
  class: "tab-dropdown-menu--items",
553
554
  style: h()
554
- }, [m.value.map((b) => c("li", {
555
+ }, [m.value.map((b) => u("li", {
555
556
  class: C(b),
556
557
  onClick: (T) => r(T, b.props)
557
- }, [b.props.removeable && c("span", {
558
+ }, [b.props.removeable && u("span", {
558
559
  class: "float-right st-drop-close",
559
- onClick: (T) => l(T, b.props.id, !0)
560
- }, [c("i", {
560
+ onClick: (T) => s(T, b.props.id, !0)
561
+ }, [u("i", {
561
562
  class: "f-icon f-icon-close"
562
- }, null)]), c("a", {
563
+ }, null)]), u("a", {
563
564
  class: "dropdown-title",
564
565
  title: b.props.title
565
- }, [b.props.title])]))]) : c("div", {
566
+ }, [b.props.title])]))]) : u("div", {
566
567
  class: "dropdown-no-data"
567
568
  }, [Be("没有相关数据")])]);
568
569
  }
@@ -574,24 +575,24 @@ function Qe(t, e, n, o) {
574
575
  const {
575
576
  hideDropDown: a
576
577
  } = e, {
577
- renderDropdownMenu: l
578
- } = nn(t, e, n, o), s = p(t.showDropdown);
578
+ renderDropdownMenu: s
579
+ } = nn(t, e, n, o), l = p(t.showDropdown);
579
580
  function r() {
580
- return s.value && c(Me, null, [c("button", {
581
+ return l.value && u(Me, null, [u("button", {
581
582
  title: "toggle-button",
582
583
  class: "btn dropdown-toggle-split dropdown-toggle",
583
584
  onClick: () => {
584
585
  a.value = !1;
585
586
  }
586
- }, null), l()]);
587
+ }, null), s()]);
587
588
  }
588
589
  return {
589
590
  renderMorePagesButtton: r
590
591
  };
591
592
  }
592
593
  function Ze(t, e, n, o) {
593
- const a = p(!1), { selectTabByTabId: l, tabPages: s } = o, r = 4;
594
- function u() {
594
+ const a = p(!1), { selectTabByTabId: s, tabPages: l } = o, r = 4;
595
+ function c() {
595
596
  var b;
596
597
  const h = e.value, S = (b = e.value) == null ? void 0 : b.parentElement;
597
598
  a.value = S && h && S.offsetWidth < h.scrollWidth - r;
@@ -638,8 +639,8 @@ function Ze(t, e, n, o) {
638
639
  function x(h, S) {
639
640
  if (S.disabled)
640
641
  return;
641
- l(S.id);
642
- const b = s.value.findIndex((T) => T.props.id === S.id);
642
+ s(S.id);
643
+ const b = l.value.findIndex((T) => T.props.id === S.id);
643
644
  ae(() => {
644
645
  C(b);
645
646
  });
@@ -651,50 +652,50 @@ function Ze(t, e, n, o) {
651
652
  scrollTab: w,
652
653
  selectAndScrollToTab: x,
653
654
  shouldShowNavigationButtons: a,
654
- updateNavigationLayout: u
655
+ updateNavigationLayout: c
655
656
  };
656
657
  }
657
658
  function Ke(t, e) {
658
- const { tabPages: n } = e, o = p(""), a = p(!0), l = B(() => t.searchBoxVisible), s = B(() => l.value ? n.value.filter((u) => u.props.title.includes(o.value)) : n.value.slice());
659
+ const { tabPages: n } = e, o = p(""), a = p(!0), s = B(() => t.searchBoxVisible), l = B(() => s.value ? n.value.filter((c) => c.props.title.includes(o.value)) : n.value.slice());
659
660
  return {
660
661
  searchTabText: o,
661
662
  hideDropDown: a,
662
- shouldShowSearchBox: l,
663
- tabsInDropdownMenu: s
663
+ shouldShowSearchBox: s,
664
+ tabsInDropdownMenu: l
664
665
  };
665
666
  }
666
667
  function et(t, e, n) {
667
668
  const o = ".farris-tab-page", { tabPages: a } = n;
668
- function l(r) {
669
- const u = e.value;
670
- if (u) {
669
+ function s(r) {
670
+ const c = e.value;
671
+ if (c) {
671
672
  const d = e.value.querySelectorAll(o);
672
673
  if (d.length > 0) {
673
674
  const f = d[r], { offsetTop: m } = f, w = m - 32 > 0 ? m - 32 : 0;
674
- u.scrollTop = w;
675
+ c.scrollTop = w;
675
676
  }
676
677
  }
677
678
  }
678
- function s(r) {
679
- const u = a.value.findIndex((d) => d.props.id === r);
680
- u > -1 && l(u);
679
+ function l(r) {
680
+ const c = a.value.findIndex((d) => d.props.id === r);
681
+ c > -1 && s(c);
681
682
  }
682
- return { scrollTo: l, scrollToByPaggId: s };
683
+ return { scrollTo: s, scrollToByPaggId: l };
683
684
  }
684
685
  const me = /* @__PURE__ */ se({
685
686
  name: "FTabs",
686
687
  props: $e,
687
688
  emits: ["tabChange", "tabRemove", "update:activeId", "Click"],
688
689
  setup(t, e) {
689
- const n = p(t.tabType), o = ve(), a = p(t.customClass), l = ve(), s = ve(), r = Kt(t, e, l), {
690
- activeId: u,
690
+ const n = p(t.tabType), o = ve(), a = p(t.customClass), s = ve(), l = ve(), r = Kt(t, e, s), {
691
+ activeId: c,
691
692
  changeTitleStyle: d,
692
693
  tabPages: f,
693
694
  addTab: m,
694
695
  updateTab: w,
695
696
  selectTabByTabId: C,
696
697
  toolbarItems: x
697
- } = r, h = et(t, s, r), S = Ze(t, l, h, r), {
698
+ } = r, h = et(t, l, r), S = Ze(t, s, h, r), {
698
699
  previousButtonClass: b,
699
700
  nextButtonClass: T,
700
701
  nextButtonGroupClass: O,
@@ -702,17 +703,17 @@ const me = /* @__PURE__ */ se({
702
703
  updateNavigationLayout: j
703
704
  } = S, $ = Ke(t, r), {
704
705
  hideDropDown: k
705
- } = $, L = tn(t, l, S, h, r), W = L, D = Je(t, l, S, h, r), g = /* @__PURE__ */ new Map([["default", L], ["one-page", W], ["pills", D]]);
706
+ } = $, L = tn(t, s, S, h, r), W = L, D = Je(t, s, S, h, r), g = /* @__PURE__ */ new Map([["default", L], ["one-page", W], ["pills", D]]);
706
707
  B(() => {
707
- const q = f.value.find((X) => X.props.id === u.value);
708
+ const q = f.value.find((X) => X.props.id === c.value);
708
709
  return q == null ? void 0 : q.slots;
709
710
  });
710
711
  const i = B(() => {
711
- const q = f.value.find((ne) => ne.props.id === u.value);
712
+ const q = f.value.find((ne) => ne.props.id === c.value);
712
713
  return (q == null ? void 0 : q.props.toolbarPosition) === "inHead";
713
714
  }), y = B(() => t.fill || t.tabType === "fill");
714
715
  xe("tabs", {
715
- activeId: u,
716
+ activeId: c,
716
717
  addTab: m,
717
718
  updateTab: w,
718
719
  tabPages: f,
@@ -740,9 +741,9 @@ const me = /* @__PURE__ */ se({
740
741
  return a.value && a.value.split(" ").reduce((X, ne) => (X[ne] = !0, X), q), q;
741
742
  });
742
743
  te(() => {
743
- f.value.length && (u.value = t.activeId || f.value[0].props.id, C(u.value)), ae(() => {
744
+ f.value.length && (c.value = t.activeId || f.value[0].props.id, C(c.value)), ae(() => {
744
745
  j();
745
- }), d(l), window.addEventListener("click", (q) => {
746
+ }), d(s), window.addEventListener("click", (q) => {
746
747
  var X;
747
748
  k.value || (X = o.value) != null && X.contains(q.target) || (k.value = !0);
748
749
  }), window.addEventListener("resize", () => {
@@ -750,7 +751,7 @@ const me = /* @__PURE__ */ se({
750
751
  });
751
752
  });
752
753
  function v() {
753
- return c("button", {
754
+ return u("button", {
754
755
  title: "left-arrow-button",
755
756
  type: "button",
756
757
  class: b.value,
@@ -760,7 +761,7 @@ const me = /* @__PURE__ */ se({
760
761
  }, null);
761
762
  }
762
763
  function M() {
763
- return c("button", {
764
+ return u("button", {
764
765
  title: "right-arrow-button",
765
766
  type: "button",
766
767
  class: T.value,
@@ -772,10 +773,10 @@ const me = /* @__PURE__ */ se({
772
773
  const {
773
774
  renderMorePagesButtton: I
774
775
  } = Qe(t, $, S, r), R = (q, X) => {
775
- e.emit("Click", q, X, u.value);
776
+ e.emit("Click", q, X, c.value);
776
777
  };
777
778
  function V() {
778
- return x.value.length ? c(We, {
779
+ return x.value.length ? u(We, {
779
780
  class: "f-utils-fill",
780
781
  items: x.value,
781
782
  onClick: R
@@ -784,16 +785,16 @@ const me = /* @__PURE__ */ se({
784
785
  const G = g.get(t.tabType) || g.get("default");
785
786
  function K() {
786
787
  var q, X, ne, ce;
787
- return c("div", {
788
+ return u("div", {
788
789
  class: F.value
789
- }, [c("div", {
790
+ }, [u("div", {
790
791
  class: "farris-tabs-header-pre"
791
- }, [(X = (q = e.slots).headerPrefix) == null ? void 0 : X.call(q)]), c("div", {
792
+ }, [(X = (q = e.slots).headerPrefix) == null ? void 0 : X.call(q)]), u("div", {
792
793
  class: "farris-tabs-title scroll-tabs",
793
794
  style: H.value
794
- }, [v(), G && G(), c("div", {
795
+ }, [v(), G && G(), u("div", {
795
796
  class: O.value
796
- }, [M(), I()])]), V(), c("div", {
797
+ }, [M(), I()])]), V(), u("div", {
797
798
  class: "farris-tabs-header-post"
798
799
  }, [(ce = (ne = e.slots).headerSuffix) == null ? void 0 : ce.call(ne)])]);
799
800
  }
@@ -803,12 +804,12 @@ const me = /* @__PURE__ */ se({
803
804
  }));
804
805
  function re() {
805
806
  var q, X;
806
- return c("div", {
807
+ return u("div", {
807
808
  class: le.value,
808
- ref: s
809
+ ref: l
809
810
  }, [(X = (q = e.slots).default) == null ? void 0 : X.call(q)]);
810
811
  }
811
- return () => c("div", {
812
+ return () => u("div", {
812
813
  class: E.value,
813
814
  ref: o
814
815
  }, [K(), re()]);
@@ -897,14 +898,14 @@ const Re = /* @__PURE__ */ se({
897
898
  const n = J("tabs"), o = p(t.show), a = {
898
899
  slots: e.slots,
899
900
  props: t
900
- }, l = p((n == null ? void 0 : n.tabType.value) || "default");
901
+ }, s = p((n == null ? void 0 : n.tabType.value) || "default");
901
902
  te(() => {
902
903
  const C = n == null ? void 0 : n.tabPages.value.findIndex((x) => x.props.id === t.id);
903
904
  !C || C === -1 ? n == null || n.addTab(a) : C > -1 && (o.value = !1, console.warn(`已经存在id为${t.id}的页签啦`));
904
905
  }), be(() => {
905
906
  });
906
- const s = B(() => (t == null ? void 0 : t.id) === (n == null ? void 0 : n.activeId.value)), r = B(() => ({
907
- display: s.value ? "" : "none"
907
+ const l = B(() => (t == null ? void 0 : t.id) === (n == null ? void 0 : n.activeId.value)), r = B(() => ({
908
+ display: l.value ? "" : "none"
908
909
  }));
909
910
  Z(() => t, (C) => {
910
911
  n == null || n.updateTab({
@@ -915,10 +916,10 @@ const Re = /* @__PURE__ */ se({
915
916
  immediate: !0,
916
917
  deep: !0
917
918
  });
918
- function u() {
919
+ function c() {
919
920
  var x, h;
920
921
  const C = (h = (x = e.slots).default) == null ? void 0 : h.call(x);
921
- return c(jt, {
922
+ return u(jt, {
922
923
  "main-title": t.title,
923
924
  class: "farris-tab-page"
924
925
  }, vn(C) ? C : {
@@ -929,18 +930,18 @@ const Re = /* @__PURE__ */ se({
929
930
  var x;
930
931
  return {
931
932
  "farris-tab-page": !0,
932
- "f-utils-fill-flex-column": s.value && n && ((x = n.shouldFillParentContaner) == null ? void 0 : x.value)
933
+ "f-utils-fill-flex-column": l.value && n && ((x = n.shouldFillParentContaner) == null ? void 0 : x.value)
933
934
  };
934
935
  });
935
936
  function f() {
936
937
  var x, h;
937
938
  const C = (h = (x = e.slots).default) == null ? void 0 : h.call(x);
938
- return c("div", {
939
+ return u("div", {
939
940
  class: d.value,
940
941
  style: r.value
941
942
  }, [C]);
942
943
  }
943
- const w = (/* @__PURE__ */ new Map([["default", f], ["one-page", u]])).get(l.value) || f;
944
+ const w = (/* @__PURE__ */ new Map([["default", f], ["one-page", c]])).get(s.value) || f;
944
945
  return () => o.value ? w() : null;
945
946
  }
946
947
  }), mn = {
@@ -993,7 +994,7 @@ function yn() {
993
994
  return { onCopy: t };
994
995
  }
995
996
  function Cn(t, e, n, o) {
996
- const a = p(14), l = p(140), s = p(""), r = p(o.value.length), u = B(() => o.value), d = B(() => ({
997
+ const a = p(14), s = p(140), l = p(""), r = p(o.value.length), c = B(() => o.value), d = B(() => ({
997
998
  "font-size": `${a.value}px`,
998
999
  height: "100%"
999
1000
  }));
@@ -1003,26 +1004,26 @@ function Cn(t, e, n, o) {
1003
1004
  r.value = w.length;
1004
1005
  }
1005
1006
  }
1006
- return () => c(Me, null, [c("textarea", {
1007
+ return () => u(Me, null, [u("textarea", {
1007
1008
  title: "promptMessage",
1008
1009
  name: "promptMessage",
1009
1010
  class: "form-control",
1010
1011
  style: d.value,
1011
1012
  rows: "4",
1012
- maxlength: l.value,
1013
+ maxlength: s.value,
1013
1014
  onInput: (m) => f(m)
1014
- }, [u.value]), c("span", {
1015
+ }, [c.value]), u("span", {
1015
1016
  class: "textarea-wordcount",
1016
- title: s.value,
1017
+ title: l.value,
1017
1018
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
1018
- }, [r.value + " / " + l.value])]);
1019
+ }, [r.value + " / " + s.value])]);
1019
1020
  }
1020
1021
  function wn(t, e, n, o) {
1021
- const a = Cn(t, e, n, o), l = /* @__PURE__ */ new Map([["text-area", a]]);
1022
- function s(r) {
1023
- return l.get(r) || null;
1022
+ const a = Cn(t, e, n, o), s = /* @__PURE__ */ new Map([["text-area", a]]);
1023
+ function l(r) {
1024
+ return s.get(r) || null;
1024
1025
  }
1025
- return { getEditorRender: s };
1026
+ return { getEditorRender: l };
1026
1027
  }
1027
1028
  function Tn() {
1028
1029
  const t = p(!1), e = p("复制成功");
@@ -1055,7 +1056,7 @@ function xn(t, e) {
1055
1056
  return () => n && n();
1056
1057
  }
1057
1058
  function Sn(t) {
1058
- const e = p(3), n = p(480), o = B(() => !!t.value && !!t.value.date), a = B(() => `发生时间 : ${t.value && t.value.date || ""}`), l = B(() => !!t.value && !!t.value.detail), s = B(() => {
1059
+ const e = p(3), n = p(480), o = B(() => !!t.value && !!t.value.date), a = B(() => `发生时间 : ${t.value && t.value.date || ""}`), s = B(() => !!t.value && !!t.value.detail), l = B(() => {
1059
1060
  const S = `${n.value}px`;
1060
1061
  return {
1061
1062
  overflow: "hidden",
@@ -1065,7 +1066,7 @@ function Sn(t) {
1065
1066
  "-webkit-line-clamp": e.value,
1066
1067
  "max-height": S
1067
1068
  };
1068
- }), r = B(() => t.value && t.value.detail || ""), u = B(() => !0), d = p(!1), f = p("展开"), m = p("收起"), w = B(() => {
1069
+ }), r = B(() => t.value && t.value.detail || ""), c = B(() => !0), d = p(!1), f = p("展开"), m = p("收起"), w = B(() => {
1069
1070
  const S = {
1070
1071
  display: "block",
1071
1072
  color: "#2A87FF"
@@ -1081,50 +1082,50 @@ function Sn(t) {
1081
1082
  function h(S) {
1082
1083
  return C();
1083
1084
  }
1084
- return () => c("div", {
1085
+ return () => u("div", {
1085
1086
  class: "toast-msg-detail"
1086
- }, [o.value && c("div", null, [a.value]), l.value && c("div", {
1087
+ }, [o.value && u("div", null, [a.value]), s.value && u("div", {
1087
1088
  id: "exception_error_msg",
1088
1089
  ref: "exceptionMessageRef",
1089
- style: s.value
1090
- }, [Be("详细信息 : "), c("span", {
1090
+ style: l.value
1091
+ }, [Be("详细信息 : "), u("span", {
1091
1092
  innerHTML: r.value
1092
- }, null)]), u.value && c("span", {
1093
+ }, null)]), c.value && u("span", {
1093
1094
  style: w.value
1094
- }, [d.value && c("span", {
1095
+ }, [d.value && u("span", {
1095
1096
  onClick: x,
1096
1097
  style: "cursor: pointer;"
1097
- }, [m.value]), !d.value && c("span", {
1098
+ }, [m.value]), !d.value && u("span", {
1098
1099
  onClick: h,
1099
1100
  style: "cursor: pointer;"
1100
1101
  }, [f.value])])]);
1101
1102
  }
1102
1103
  function Bn(t) {
1103
- return () => c("p", {
1104
+ return () => u("p", {
1104
1105
  class: "toast-msg-detail",
1105
1106
  innerHTML: t.value
1106
1107
  }, null);
1107
1108
  }
1108
1109
  function Mn(t, e, n, o) {
1109
- const a = p(t.exceptionInfo), l = B(() => {
1110
+ const a = p(t.exceptionInfo), s = B(() => {
1110
1111
  const w = {
1111
1112
  "f-icon": !0
1112
1113
  }, C = `f-icon-${e.value}`;
1113
1114
  return w[C] = !0, w;
1114
- }), s = B(() => n.value || a.value && a.value.message), r = B(() => o.value), u = B(() => !!o.value), d = B(() => !!a.value);
1115
+ }), l = B(() => n.value || a.value && a.value.message), r = B(() => o.value), c = B(() => !!o.value), d = B(() => !!a.value);
1115
1116
  function f() {
1116
- return d.value ? Sn(a) : u.value ? Bn(r) : () => null;
1117
+ return d.value ? Sn(a) : c.value ? Bn(r) : () => null;
1117
1118
  }
1118
1119
  const m = f();
1119
- return () => c(Me, null, [c("div", {
1120
+ return () => u(Me, null, [u("div", {
1120
1121
  class: "float-left modal-tips-iconwrap"
1121
- }, [c("span", {
1122
- class: l.value
1123
- }, null)]), c("div", {
1122
+ }, [u("span", {
1123
+ class: s.value
1124
+ }, null)]), u("div", {
1124
1125
  class: "modal-tips-content"
1125
- }, [c("p", {
1126
+ }, [u("p", {
1126
1127
  class: "toast-msg-title",
1127
- innerHTML: s.value
1128
+ innerHTML: l.value
1128
1129
  }, null), m()])]);
1129
1130
  }
1130
1131
  function kn(t, e, n) {
@@ -1132,50 +1133,50 @@ function kn(t, e, n) {
1132
1133
  onCopy: o
1133
1134
  } = e, {
1134
1135
  toShowFeedback: a
1135
- } = n, l = p("复制成功"), s = p("复制详细信息"), r = p(t.exceptionInfo || {
1136
+ } = n, s = p("复制成功"), l = p("复制详细信息"), r = p(t.exceptionInfo || {
1136
1137
  date: "",
1137
1138
  message: "",
1138
1139
  detail: ""
1139
- }), u = B(() => r.value && r.value.detail || "");
1140
+ }), c = B(() => r.value && r.value.detail || "");
1140
1141
  function d(f) {
1141
- o(u.value).catch((m) => {
1142
- l.value = "复制失败";
1142
+ o(c.value).catch((m) => {
1143
+ s.value = "复制失败";
1143
1144
  }).finally(() => {
1144
1145
  a.value = !0, setTimeout(() => {
1145
1146
  a.value = !1;
1146
1147
  }, 700);
1147
1148
  });
1148
1149
  }
1149
- return () => c("span", {
1150
+ return () => u("span", {
1150
1151
  style: "width: 100%;color: #2A87FF;padding-left: 37px;"
1151
- }, [c("span", {
1152
+ }, [u("span", {
1152
1153
  onClick: d,
1153
1154
  style: "cursor: pointer;"
1154
- }, [s.value])]);
1155
+ }, [l.value])]);
1155
1156
  }
1156
1157
  function Pn(t, e, n, o) {
1157
- const a = p(t.type), l = p([]), s = p(t.exceptionInfo), r = p(t.okButtonText), u = p(t.cancelButtonText), d = p(!0), f = p(!0), m = B(() => !!(l.value && l.value.length)), w = B(() => s.value && s.value.date && s.value.message && s.value.detail), C = B(() => !(l.value && l.value.length) && (r.value || u.value)), x = B(() => f.value && r.value), h = B(() => d.value && u.value), S = kn(t, n, o);
1158
+ const a = p(t.type), s = p([]), l = p(t.exceptionInfo), r = p(t.okButtonText), c = p(t.cancelButtonText), d = p(!0), f = p(!0), m = B(() => !!(s.value && s.value.length)), w = B(() => l.value && l.value.date && l.value.message && l.value.detail), C = B(() => !(s.value && s.value.length) && (r.value || c.value)), x = B(() => f.value && r.value), h = B(() => d.value && c.value), S = kn(t, n, o);
1158
1159
  function b(O) {
1159
1160
  a.value === "question" && e.emit("reject"), e.emit("close");
1160
1161
  }
1161
1162
  function T(O) {
1162
1163
  a.value === "question" && e.emit("accept"), e.emit("close");
1163
1164
  }
1164
- return () => c("div", {
1165
+ return () => u("div", {
1165
1166
  class: "modal-footer"
1166
- }, [w.value && S(), C.value && h.value && c("button", {
1167
+ }, [w.value && S(), C.value && h.value && u("button", {
1167
1168
  type: "button",
1168
1169
  class: "btn btn-secondary btn-lg",
1169
1170
  onClick: b
1170
- }, [u.value]), C.value && x.value && c("button", {
1171
+ }, [c.value]), C.value && x.value && u("button", {
1171
1172
  type: "button",
1172
1173
  class: "btn btn-primary btn-lg",
1173
1174
  onClick: T
1174
- }, [r.value]), m.value && l.value.length && l.value.map((O) => c("button", {
1175
+ }, [r.value]), m.value && s.value.length && s.value.map((O) => u("button", {
1175
1176
  type: "button",
1176
1177
  onClick: O.handle,
1177
1178
  class: O.class
1178
- }, [O.iconClass && c("span", {
1179
+ }, [O.iconClass && u("span", {
1179
1180
  class: O.iconClass
1180
1181
  }, null), O.text]))]);
1181
1182
  }
@@ -1184,39 +1185,39 @@ const Te = /* @__PURE__ */ se({
1184
1185
  props: mn,
1185
1186
  emits: ["accept", "reject", "close"],
1186
1187
  setup(t, e) {
1187
- const n = p(t.type), o = p(t.title), a = p(t.detail), l = B(() => {
1188
+ const n = p(t.type), o = p(t.title), a = p(t.detail), s = B(() => {
1188
1189
  const S = {
1189
1190
  "modal-tips": !0,
1190
1191
  "d-flex": !0,
1191
1192
  "flex-row": !0
1192
1193
  }, b = `messager-type-${n.value}`;
1193
1194
  return S[b] = !0, S;
1194
- }), s = B(() => {
1195
+ }), l = B(() => {
1195
1196
  const S = {};
1196
1197
  return n.value === "prompt" ? S.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (S.padding = "0.5rem 1.5rem 1rem 1.5rem"), S;
1197
- }), r = yn(), u = wn(t, n, o, a), d = Tn(), {
1198
+ }), r = yn(), c = wn(t, n, o, a), d = Tn(), {
1198
1199
  feedbackStyle: f,
1199
1200
  feedbackMessage: m
1200
1201
  } = d;
1201
1202
  function w() {
1202
- return c("div", {
1203
+ return u("div", {
1203
1204
  style: f.value
1204
1205
  }, [m.value]);
1205
1206
  }
1206
1207
  function C() {
1207
1208
  switch (n.value) {
1208
1209
  case "prompt":
1209
- return xn(t, u);
1210
+ return xn(t, c);
1210
1211
  default:
1211
1212
  return Mn(t, n, o, a);
1212
1213
  }
1213
1214
  }
1214
1215
  const x = C(), h = Pn(t, e, r, d);
1215
- return () => c("div", {
1216
+ return () => u("div", {
1216
1217
  class: "farris-messager"
1217
- }, [c("section", {
1218
- class: l.value,
1219
- style: s.value
1218
+ }, [u("section", {
1219
+ class: s.value,
1220
+ style: l.value
1220
1221
  }, [x()]), h(), w()]);
1221
1222
  }
1222
1223
  }), In = {
@@ -1287,8 +1288,8 @@ class Y {
1287
1288
  static getTransformInfo(e) {
1288
1289
  const o = window.getComputedStyle(e).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
1289
1290
  if (o.length >= 6) {
1290
- const a = parseInt(o[4], 10), l = parseInt(o[5], 10);
1291
- return { x: a, y: l };
1291
+ const a = parseInt(o[4], 10), s = parseInt(o[5], 10);
1292
+ return { x: a, y: s };
1292
1293
  }
1293
1294
  return { x: 0, y: 0 };
1294
1295
  }
@@ -1312,8 +1313,8 @@ class Y {
1312
1313
  if (window) {
1313
1314
  const o = window.getComputedStyle(e);
1314
1315
  if (o) {
1315
- const a = parseInt(o.getPropertyValue("left"), 10), l = parseInt(o.getPropertyValue("top"), 10);
1316
- n.x = isNaN(a) ? 0 : a, n.y = isNaN(l) ? 0 : l;
1316
+ const a = parseInt(o.getPropertyValue("left"), 10), s = parseInt(o.getPropertyValue("top"), 10);
1317
+ n.x = isNaN(a) ? 0 : a, n.y = isNaN(s) ? 0 : s;
1317
1318
  }
1318
1319
  return n;
1319
1320
  }
@@ -1364,19 +1365,19 @@ class de {
1364
1365
  }
1365
1366
  }
1366
1367
  function En(t, e) {
1367
- const n = p(), o = p(), a = p(), l = p(), s = p(), r = p(), u = p(), d = p(), f = p(), m = p(), w = p(), C = p(), x = p(t.draggable), h = p(!1);
1368
+ const n = p(), o = p(), a = p(), s = p(), l = p(), r = p(), c = p(), d = p(), f = p(), m = p(), w = p(), C = p(), x = p(t.draggable), h = p(!1);
1368
1369
  function S() {
1369
1370
  const E = o.value || document.body, v = window.getComputedStyle(E);
1370
1371
  if (!v || !n.value)
1371
1372
  return;
1372
1373
  const M = Y.getTransformInfo(n.value), I = {};
1373
- u.value && (I.deltaL = n.value.offsetLeft - u.value.x, I.deltaT = n.value.offsetTop - u.value.y);
1374
+ c.value && (I.deltaL = n.value.offsetLeft - c.value.x, I.deltaT = n.value.offsetTop - c.value.y);
1374
1375
  const R = v.getPropertyValue("position");
1375
1376
  I.width = E.clientWidth, I.height = E.clientHeight, I.pr = parseInt(v.getPropertyValue("padding-right"), 10), I.pb = parseInt(v.getPropertyValue("padding-bottom"), 10), I.position = v.getPropertyValue("position"), R === "static" && (E.style.position = "relative"), I.translateX = M.x, I.translateY = M.y, m.value = I;
1376
1377
  }
1377
1378
  function b(E) {
1378
1379
  if (n.value) {
1379
- l.value = de.getCurrent(n.value), s.value = Y.getCurrent(n.value), r.value = l.value ? de.copy(l.value) : null, u.value = s.value ? Y.copy(s.value) : null, S();
1380
+ s.value = de.getCurrent(n.value), l.value = Y.getCurrent(n.value), r.value = s.value ? de.copy(s.value) : null, c.value = l.value ? Y.copy(l.value) : null, S();
1380
1381
  const v = E.target.getAttribute("type") || "";
1381
1382
  d.value = {
1382
1383
  n: !!v.match(/n/),
@@ -1390,28 +1391,28 @@ function En(t, e) {
1390
1391
  var E, v, M, I;
1391
1392
  if (n.value) {
1392
1393
  const R = n.value;
1393
- d.value && ((d.value.n || d.value.s) && ((E = r.value) != null && E.height) && (R.style.height = r.value.height + "px"), (d.value.w || d.value.e) && ((v = r.value) != null && v.width) && (R.style.width = r.value.width + "px"), u.value && ((M = u.value) != null && M.x && (R.style.left = u.value.x + "px"), (I = u.value) != null && I.y && (R.style.top = u.value.y + "px")));
1394
+ d.value && ((d.value.n || d.value.s) && ((E = r.value) != null && E.height) && (R.style.height = r.value.height + "px"), (d.value.w || d.value.e) && ((v = r.value) != null && v.width) && (R.style.width = r.value.width + "px"), c.value && ((M = c.value) != null && M.x && (R.style.left = c.value.x + "px"), (I = c.value) != null && I.y && (R.style.top = c.value.y + "px")));
1394
1395
  }
1395
1396
  }
1396
1397
  function O() {
1397
1398
  const E = t.minHeight ? t.minHeight : 1, v = t.minWidth ? t.minWidth : 1;
1398
- r.value && u.value && d.value && l.value && (r.value.height < E && (r.value.height = E, d.value.n && s.value && (u.value.y = s.value.y + (l.value.height - E))), r.value.width < v && (r.value.width = v, d.value.w && s.value && (u.value.x = s.value.x + (l.value.width - v))), t.maxHeight && r.value.height > t.maxHeight && (r.value.height = t.maxHeight, s.value && d.value.n && (u.value.y = s.value.y + (l.value.height - t.maxHeight))), t.maxWidth && r.value.width > t.maxWidth && (r.value.width = t.maxWidth, d.value.w && s.value && (u.value.x = s.value.x + (l.value.width - t.maxWidth))));
1399
+ r.value && c.value && d.value && s.value && (r.value.height < E && (r.value.height = E, d.value.n && l.value && (c.value.y = l.value.y + (s.value.height - E))), r.value.width < v && (r.value.width = v, d.value.w && l.value && (c.value.x = l.value.x + (s.value.width - v))), t.maxHeight && r.value.height > t.maxHeight && (r.value.height = t.maxHeight, l.value && d.value.n && (c.value.y = l.value.y + (s.value.height - t.maxHeight))), t.maxWidth && r.value.width > t.maxWidth && (r.value.width = t.maxWidth, d.value.w && l.value && (c.value.x = l.value.x + (s.value.width - t.maxWidth))));
1399
1400
  }
1400
1401
  function z() {
1401
1402
  if (o.value) {
1402
1403
  const E = m.value;
1403
- if (u.value && r.value && d.value && l.value) {
1404
- const v = E.width - E.pr - E.deltaL - E.translateX - u.value.x, M = E.height - E.pb - E.deltaT - E.translateY - u.value.y;
1405
- d.value.n && u.value.y + E.translateY < 0 && s.value && (u.value.y = -E.translateY, r.value.height = l.value.height + s.value.y + E.translateY), d.value.w && u.value.x + E.translateX < 0 && s.value && (u.value.x = -E.translateX, r.value.width = l.value.width + s.value.x + E.translateX), r.value.width > v && (r.value.width = v), r.value.height > M && (r.value.height = M);
1404
+ if (c.value && r.value && d.value && s.value) {
1405
+ const v = E.width - E.pr - E.deltaL - E.translateX - c.value.x, M = E.height - E.pb - E.deltaT - E.translateY - c.value.y;
1406
+ d.value.n && c.value.y + E.translateY < 0 && l.value && (c.value.y = -E.translateY, r.value.height = s.value.height + l.value.y + E.translateY), d.value.w && c.value.x + E.translateX < 0 && l.value && (c.value.x = -E.translateX, r.value.width = s.value.width + l.value.x + E.translateX), r.value.width > v && (r.value.width = v), r.value.height > M && (r.value.height = M);
1406
1407
  }
1407
1408
  }
1408
1409
  }
1409
1410
  function j(E) {
1410
- if (!a.value || !l.value || !s.value || !d.value)
1411
+ if (!a.value || !s.value || !l.value || !d.value)
1411
1412
  return;
1412
1413
  E.subtract(a.value);
1413
1414
  const v = E.x, M = E.y;
1414
- d.value.n ? (u.value.y = s.value.y + M, r.value.height = l.value.height - M) : d.value.s && (r.value.height = l.value.height + M), d.value.e ? r.value.width = l.value.width + v : d.value.w && (r.value.width = l.value.width - v, u.value.x = s.value.x + v), z(), O(), T();
1415
+ d.value.n ? (c.value.y = l.value.y + M, r.value.height = s.value.height - M) : d.value.s && (r.value.height = s.value.height + M), d.value.e ? r.value.width = s.value.width + v : d.value.w && (r.value.width = s.value.width - v, c.value.x = l.value.x + v), z(), O(), T();
1415
1416
  }
1416
1417
  function $(E) {
1417
1418
  if (!f.value)
@@ -1445,7 +1446,7 @@ function En(t, e) {
1445
1446
  const v = k();
1446
1447
  w.value = v;
1447
1448
  }
1448
- a.value = void 0, l.value = null, s.value = null, r.value = null, u.value = null, d.value = null, f.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", L);
1449
+ a.value = void 0, s.value = null, l.value = null, r.value = null, c.value = null, d.value = null, f.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", L);
1449
1450
  }
1450
1451
  function W() {
1451
1452
  document.addEventListener("mousemove", $), document.addEventListener("mouseup", L);
@@ -1454,35 +1455,35 @@ function En(t, e) {
1454
1455
  E instanceof MouseEvent && E.button === 2 || x.value && (E.stopPropagation(), E.preventDefault(), a.value = Y.fromEvent(E), f.value = E.target, b(E), W());
1455
1456
  }
1456
1457
  function g(E) {
1457
- return n.value = E, c(Me, null, [c("div", {
1458
+ return n.value = E, u(Me, null, [u("div", {
1458
1459
  class: "fv-resizable-handle fv-resizable-n",
1459
1460
  type: "n",
1460
1461
  onMousedown: (v) => D(v)
1461
- }, null), c("div", {
1462
+ }, null), u("div", {
1462
1463
  class: "fv-resizable-handle fv-resizable-e",
1463
1464
  type: "e",
1464
1465
  onMousedown: (v) => D(v)
1465
- }, null), c("div", {
1466
+ }, null), u("div", {
1466
1467
  class: "fv-resizable-handle fv-resizable-s",
1467
1468
  type: "s",
1468
1469
  onMousedown: (v) => D(v)
1469
- }, null), c("div", {
1470
+ }, null), u("div", {
1470
1471
  class: "fv-resizable-handle fv-resizable-w",
1471
1472
  type: "w",
1472
1473
  onMousedown: (v) => D(v)
1473
- }, null), c("div", {
1474
+ }, null), u("div", {
1474
1475
  class: "fv-resizable-handle fv-resizable-ne",
1475
1476
  type: "ne",
1476
1477
  onMousedown: (v) => D(v)
1477
- }, null), c("div", {
1478
+ }, null), u("div", {
1478
1479
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
1479
1480
  type: "se",
1480
1481
  onMousedown: (v) => D(v)
1481
- }, null), c("div", {
1482
+ }, null), u("div", {
1482
1483
  class: "fv-resizable-handle fv-resizable-sw",
1483
1484
  type: "sw",
1484
1485
  onMousedown: (v) => D(v)
1485
- }, null), c("div", {
1486
+ }, null), u("div", {
1486
1487
  class: "fv-resizable-handle fv-resizable-nw",
1487
1488
  type: "nw",
1488
1489
  onMousedown: (v) => D(v)
@@ -1508,7 +1509,7 @@ function En(t, e) {
1508
1509
  x: (window.innerWidth - M.width) / 2,
1509
1510
  y: (window.innerHeight - M.height) / 2
1510
1511
  };
1511
- (E = r.value) == null || E.set(M), (v = u.value) == null || v.set(I);
1512
+ (E = r.value) == null || E.set(M), (v = c.value) == null || v.set(I);
1512
1513
  const R = n.value;
1513
1514
  R.style.height = M.height + "px", R.style.width = M.width + "px", R.style.left = `${I.x}px`, R.style.top = `${I.y}px`, R.style.transform = "", w.value = {
1514
1515
  size: M,
@@ -1549,9 +1550,9 @@ function En(t, e) {
1549
1550
  };
1550
1551
  }
1551
1552
  function Dn(t, e, n) {
1552
- const o = p(), a = p(t.draggable), l = p(t.lockAxis), s = p(), r = p(), u = p(!1), d = p(new Y(0, 0)), f = p(new Y(0, 0)), m = p(new Y(0, 0)), w = p(new Y(0, 0));
1553
+ const o = p(), a = p(t.draggable), s = p(t.lockAxis), l = p(), r = p(), c = p(!1), d = p(new Y(0, 0)), f = p(new Y(0, 0)), m = p(new Y(0, 0)), w = p(new Y(0, 0));
1553
1554
  Z(() => n.value, (k) => {
1554
- s.value.style.cursor = k ? "move" : "default";
1555
+ l.value.style.cursor = k ? "move" : "default";
1555
1556
  });
1556
1557
  function C(k, L) {
1557
1558
  if (L.tagName === "BUTTON")
@@ -1566,7 +1567,7 @@ function Dn(t, e, n) {
1566
1567
  function x() {
1567
1568
  var D, g;
1568
1569
  let k = m.value.x + f.value.x, L = m.value.y + f.value.y;
1569
- l.value === "x" ? (k = ((D = d.value) == null ? void 0 : D.x) || 0, m.value.x = 0) : l.value === "y" && (L = ((g = d.value) == null ? void 0 : g.y) || 0, m.value.y = 0);
1570
+ s.value === "x" ? (k = ((D = d.value) == null ? void 0 : D.x) || 0, m.value.x = 0) : s.value === "y" && (L = ((g = d.value) == null ? void 0 : g.y) || 0, m.value.y = 0);
1570
1571
  const W = `translate3d(${Math.round(k)}px, ${Math.round(L)}px, 0px)`;
1571
1572
  o.value && (o.value.style.transform = W), w.value.x = k, w.value.y = L;
1572
1573
  }
@@ -1585,14 +1586,14 @@ function Dn(t, e, n) {
1585
1586
  k && (d.value && k.subtract(d.value), m.value.set(k), x(), h());
1586
1587
  }
1587
1588
  function b(k) {
1588
- u.value && a.value && (k.stopPropagation(), k.preventDefault(), S(Y.fromEvent(k, s.value)));
1589
+ c.value && a.value && (k.stopPropagation(), k.preventDefault(), S(Y.fromEvent(k, l.value)));
1589
1590
  }
1590
1591
  function T() {
1591
1592
  var k;
1592
- u.value && (u.value = !1, f.value.add(m.value), m.value.reset(), (k = o.value) == null || k.classList.remove("ng-dragging"), document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", T));
1593
+ c.value && (c.value = !1, f.value.add(m.value), m.value.reset(), (k = o.value) == null || k.classList.remove("ng-dragging"), document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", T));
1593
1594
  }
1594
1595
  function O() {
1595
- !u.value && s.value && (u.value = !0, s.value.classList.add("ng-dragging"), document.addEventListener("mousemove", b), document.addEventListener("mouseup", T));
1596
+ !c.value && l.value && (c.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", b), document.addEventListener("mouseup", T));
1596
1597
  }
1597
1598
  function z() {
1598
1599
  if (o.value) {
@@ -1606,21 +1607,21 @@ function Dn(t, e, n) {
1606
1607
  if (!n.value || k instanceof MouseEvent && k.button === 2)
1607
1608
  return;
1608
1609
  const L = k.target || k.srcElement;
1609
- s.value !== void 0 && L && !C(L, s.value) || a.value !== !1 && (document.body.click(), k.stopPropagation(), k.preventDefault(), d.value = Y.fromEvent(k, o.value), z(), O());
1610
+ l.value !== void 0 && L && !C(L, l.value) || a.value !== !1 && (document.body.click(), k.stopPropagation(), k.preventDefault(), d.value = Y.fromEvent(k, o.value), z(), O());
1610
1611
  }
1611
1612
  function $(k, L, W) {
1612
1613
  if (a.value && L) {
1613
1614
  if (k)
1614
- s.value = k;
1615
+ l.value = k;
1615
1616
  else if (t.dragHandle) {
1616
1617
  if (t.dragHandle instanceof HTMLElement)
1617
- s.value = t.dragHandle;
1618
+ l.value = t.dragHandle;
1618
1619
  else if (typeof t.dragHandle == "string") {
1619
1620
  const D = L.querySelector(t.dragHandle);
1620
- D && (s.value = D);
1621
+ D && (l.value = D);
1621
1622
  }
1622
1623
  }
1623
- o.value = L, r.value = W, s.value.classList.add("ng-draggable"), s.value.addEventListener("mousedown", j);
1624
+ o.value = L, r.value = W, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", j);
1624
1625
  }
1625
1626
  }
1626
1627
  return {
@@ -1661,7 +1662,7 @@ const ot = /* @__PURE__ */ se({
1661
1662
  props: In,
1662
1663
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
1663
1664
  setup(t, e) {
1664
- const n = p(t.width || 300), o = p(t.height || 200), a = p(t.modelValue), l = p(""), s = p(t.class), r = p(t.fitContent), u = p(t.showHeader), d = p(""), f = p(t.showCloseButton), m = p(t.showMaxButton), w = p(!1), C = p(""), x = p(""), h = p(""), S = p(t.showButtons), b = p(t.title), T = p(t.reiszeable), O = p(t.containment || null), z = p();
1665
+ const n = p(t.width || 300), o = p(t.height || 200), a = p(t.modelValue), s = p(""), l = p(t.class), r = p(t.fitContent), c = p(t.showHeader), d = p(""), f = p(t.showCloseButton), m = p(t.showMaxButton), w = p(!1), C = p(""), x = p(""), h = p(""), S = p(t.showButtons), b = p(t.title), T = p(t.reiszeable), O = p(t.containment || null), z = p();
1665
1666
  function j(A, U) {
1666
1667
  a.value = !1, e.emit("update:modelValue", !1), U != null && e.emit(U ? "accept" : "cancel"), e.emit("closed", A);
1667
1668
  }
@@ -1695,7 +1696,7 @@ const ot = /* @__PURE__ */ se({
1695
1696
  }), Z(() => t.modelValue, (A, U) => {
1696
1697
  A !== U && (a.value = A);
1697
1698
  }), Z(() => t.showHeader, (A, U) => {
1698
- A !== U && (u.value = A);
1699
+ A !== U && (c.value = A);
1699
1700
  }), Z(() => t.showButtons, (A, U) => {
1700
1701
  A !== U && (S.value = A);
1701
1702
  }), Z(() => E.value, (A, U) => {
@@ -1720,7 +1721,7 @@ const ot = /* @__PURE__ */ se({
1720
1721
  var ge;
1721
1722
  const A = {
1722
1723
  "modal-dialog": !0
1723
- }, U = (ge = s.value) == null ? void 0 : ge.split(" ");
1724
+ }, U = (ge = l.value) == null ? void 0 : ge.split(" ");
1724
1725
  return U == null || U.reduce((we, bt) => (we[bt] = !0, we), A), A;
1725
1726
  }), le = B(() => ({
1726
1727
  position: "absolute",
@@ -1730,10 +1731,10 @@ const ot = /* @__PURE__ */ se({
1730
1731
  height: r.value ? "auto" : `${o.value}px`
1731
1732
  })), re = B(() => ({
1732
1733
  "modal-content": !0,
1733
- "modal-content-has-header": u.value
1734
+ "modal-content-has-header": c.value
1734
1735
  })), q = B(() => {
1735
1736
  const A = {
1736
- display: u.value ? "" : "none"
1737
+ display: c.value ? "" : "none"
1737
1738
  };
1738
1739
  return A["pointer-events"] = v.value ? "auto" : "none", A;
1739
1740
  }), X = B(() => ({
@@ -1778,83 +1779,83 @@ const ot = /* @__PURE__ */ se({
1778
1779
  maxDialog: Ce
1779
1780
  });
1780
1781
  function vt() {
1781
- return c("ul", null, [w.value && c("li", {
1782
+ return u("ul", null, [w.value && u("li", {
1782
1783
  class: "f-btn-icon f-bare"
1783
- }, [c("span", {
1784
+ }, [u("span", {
1784
1785
  class: "f-icon modal_minimize"
1785
- }, null)]), m.value && c("li", {
1786
+ }, null)]), m.value && u("li", {
1786
1787
  onClick: Ce,
1787
1788
  class: "f-btn-icon f-bare",
1788
1789
  style: "pointer-events: auto;"
1789
- }, [c("span", {
1790
+ }, [u("span", {
1790
1791
  class: X.value
1791
- }, null)]), f.value && c("li", {
1792
+ }, null)]), f.value && u("li", {
1792
1793
  class: "f-btn-icon f-bare",
1793
1794
  onClick: (A) => j(A, !1),
1794
1795
  style: "pointer-events: auto;"
1795
- }, [c("span", {
1796
+ }, [u("span", {
1796
1797
  class: "f-icon modal_close"
1797
1798
  }, null)])]);
1798
1799
  }
1799
1800
  function mt() {
1800
- return c("div", {
1801
+ return u("div", {
1801
1802
  class: "modal-footer",
1802
1803
  style: Pe.value
1803
- }, [k.value && k.value.map((A) => c("button", {
1804
+ }, [k.value && k.value.map((A) => u("button", {
1804
1805
  name: A.name,
1805
1806
  type: "button",
1806
1807
  class: A.class + (A.iconClass ? " btn-icontext" : ""),
1807
1808
  onClick: (U) => {
1808
1809
  _(A, U);
1809
1810
  }
1810
- }, [!!A.iconClass && c("i", {
1811
+ }, [!!A.iconClass && u("i", {
1811
1812
  class: A.iconClass
1812
1813
  }, null), A.text]))]);
1813
1814
  }
1814
1815
  function ht() {
1815
- return c("div", {
1816
+ return u("div", {
1816
1817
  ref: D,
1817
1818
  class: "modal-header",
1818
1819
  style: q.value
1819
- }, [c("div", {
1820
+ }, [u("div", {
1820
1821
  class: "modal-title"
1821
- }, [L.value && c("span", {
1822
+ }, [L.value && u("span", {
1822
1823
  class: d.value,
1823
1824
  style: "margin-right: 8px"
1824
- }, null), c("span", {
1825
+ }, null), u("span", {
1825
1826
  class: "modal-title-label"
1826
- }, [b.value])]), c("div", {
1827
+ }, [b.value])]), u("div", {
1827
1828
  class: "actions"
1828
1829
  }, [vt()])]);
1829
1830
  }
1830
1831
  function gt(A) {
1831
1832
  A.stopPropagation();
1832
1833
  }
1833
- return () => c(xt, {
1834
+ return () => u(xt, {
1834
1835
  to: "body"
1835
1836
  }, {
1836
- default: () => [V.value && c(St, {
1837
+ default: () => [V.value && u(St, {
1837
1838
  name: "fade",
1838
1839
  appear: !0
1839
1840
  }, {
1840
1841
  default: () => {
1841
1842
  var A, U;
1842
- return [c("div", {
1843
+ return [u("div", {
1843
1844
  class: G.value,
1844
1845
  style: "display: block",
1845
1846
  ref: z,
1846
1847
  onClick: gt
1847
- }, [c("div", {
1848
- id: l.value,
1848
+ }, [u("div", {
1849
+ id: s.value,
1849
1850
  class: K.value,
1850
1851
  style: le.value,
1851
1852
  ref: g
1852
- }, [c("div", {
1853
+ }, [u("div", {
1853
1854
  class: re.value
1854
- }, [u.value && ht(), c("div", {
1855
+ }, [c.value && ht(), u("div", {
1855
1856
  class: ne.value
1856
- }, [(U = (A = e.slots).default) == null ? void 0 : U.call(A), C.value === "iframe" && c("iframe", {
1857
- title: l.value,
1857
+ }, [(U = (A = e.slots).default) == null ? void 0 : U.call(A), C.value === "iframe" && u("iframe", {
1858
+ title: s.value,
1858
1859
  class: "f-utils-fill",
1859
1860
  width: "100%",
1860
1861
  frameborder: "0",
@@ -1879,7 +1880,7 @@ function On(t) {
1879
1880
  be(() => {
1880
1881
  document.body.removeChild(e);
1881
1882
  });
1882
- const l = p(), s = p(t.class || ""), r = p(!!t.showButtons), u = p(!!t.showHeader), d = p(t.showCloseButton == null ? !0 : t.showCloseButton), f = p(!0), m = p(t.title || ""), w = t.acceptCallback || (() => {
1883
+ const s = p(), l = p(t.class || ""), r = p(!!t.showButtons), c = p(!!t.showHeader), d = p(t.showCloseButton == null ? !0 : t.showCloseButton), f = p(!0), m = p(t.title || ""), w = t.acceptCallback || (() => {
1883
1884
  }), C = t.rejectCallback || (() => {
1884
1885
  }), x = t.closedCallback || ((T) => {
1885
1886
  }), h = t.resizeHandle || ((T) => {
@@ -1888,17 +1889,17 @@ function On(t) {
1888
1889
  };
1889
1890
  return te(() => {
1890
1891
  }), a.expose({
1891
- modalRef: l
1892
- }), () => c(ot, {
1893
- ref: l,
1894
- class: s.value,
1892
+ modalRef: s
1893
+ }), () => u(ot, {
1894
+ ref: s,
1895
+ class: l.value,
1895
1896
  modelValue: f.value,
1896
1897
  "onUpdate:modelValue": (T) => f.value = T,
1897
1898
  title: m.value,
1898
1899
  width: t.width,
1899
1900
  height: t.height,
1900
1901
  buttons: t.buttons,
1901
- "show-header": u.value,
1902
+ "show-header": c.value,
1902
1903
  "show-buttons": r.value,
1903
1904
  "show-close-button": d.value,
1904
1905
  "show-max-button": !1,
@@ -1942,10 +1943,10 @@ class An {
1942
1943
  title: "",
1943
1944
  showButtons: !0,
1944
1945
  showHeader: !0
1945
- }, e)), a = p(!0), l = o.value.acceptCallback || (() => {
1946
- }), s = o.value.rejectCallback || (() => {
1946
+ }, e)), a = p(!0), s = o.value.acceptCallback || (() => {
1947
+ }), l = o.value.rejectCallback || (() => {
1947
1948
  }), r = o.value.closedCallback || ((b, T) => {
1948
- }), u = o.value.resizeHandle || ((b) => {
1949
+ }), c = o.value.resizeHandle || ((b) => {
1949
1950
  });
1950
1951
  let d;
1951
1952
  const f = at(o.value), m = (b) => {
@@ -1964,15 +1965,15 @@ class An {
1964
1965
  }, C = (b) => {
1965
1966
  var T;
1966
1967
  this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((T = this.activeModalInstance.value) == null || T.close(b == null ? void 0 : b.event));
1967
- }, x = () => c(ot, Ne({
1968
+ }, x = () => u(ot, Ne({
1968
1969
  ref: this.modalRef,
1969
1970
  modelValue: a.value,
1970
1971
  "onUpdate:modelValue": (b) => a.value = b
1971
1972
  }, o.value, {
1972
- onAccept: l,
1973
- onCancel: s,
1973
+ onAccept: s,
1974
+ onCancel: l,
1974
1975
  onClosed: w,
1975
- onResize: u,
1976
+ onResize: c,
1976
1977
  onEsc: C
1977
1978
  }), {
1978
1979
  default: () => [f && f(this.app)]
@@ -2001,23 +2002,23 @@ class ie {
2001
2002
  static show(e) {
2002
2003
  const n = ue({
2003
2004
  ...e
2004
- }), o = !1, a = n.type === "error" || n.type === "prompt", l = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", s = n.acceptCallback || (() => {
2005
+ }), o = !1, a = n.type === "error" || n.type === "prompt", s = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", l = n.acceptCallback || (() => {
2005
2006
  }), r = n.rejectCallback || (() => {
2006
2007
  });
2007
- let u = null, d = new An(u);
2008
+ let c = null, d = new An(c);
2008
2009
  const f = () => {
2009
- u && (u == null || u.destroy(), d = null);
2010
+ c && (c == null || c.destroy(), d = null);
2010
2011
  };
2011
- u = d == null ? void 0 : d.open({
2012
+ c = d == null ? void 0 : d.open({
2012
2013
  class: "modal-message modal-message-type-info",
2013
- title: l,
2014
+ title: s,
2014
2015
  showButtons: o,
2015
2016
  showHeader: a,
2016
2017
  width: n.width || 400,
2017
2018
  fitContent: !0,
2018
2019
  showMaxButton: !1,
2019
- render: () => c(Te, Ne(n, {
2020
- onAccept: s,
2020
+ render: () => u(Te, Ne(n, {
2021
+ onAccept: l,
2021
2022
  onReject: r,
2022
2023
  onClose: f
2023
2024
  }), null)
@@ -2078,7 +2079,7 @@ class ie {
2078
2079
  ie.show(o);
2079
2080
  }
2080
2081
  static question(e, n, o, a) {
2081
- const l = ue({
2082
+ const s = ue({
2082
2083
  type: "question",
2083
2084
  title: e,
2084
2085
  detail: n,
@@ -2087,17 +2088,17 @@ class ie {
2087
2088
  acceptCallback: o,
2088
2089
  rejectCallback: a
2089
2090
  });
2090
- ie.show(l);
2091
+ ie.show(s);
2091
2092
  }
2092
2093
  }
2093
2094
  Te.install = (t) => {
2094
2095
  t.component(Te.name, Te), t.provide("FMessageBoxService", ie);
2095
2096
  };
2096
- function $n(t, e, n, o, a, l) {
2097
+ function $n(t, e, n, o, a, s) {
2097
2098
  const {
2098
- activeId: s,
2099
+ activeId: l,
2099
2100
  removeTab: r,
2100
- selectTab: u,
2101
+ selectTab: c,
2101
2102
  removeDesignTab: d,
2102
2103
  selectDesignTab: f,
2103
2104
  addTabPageToolbar: m
@@ -2109,7 +2110,7 @@ function $n(t, e, n, o, a, l) {
2109
2110
  "farris-component": !0,
2110
2111
  "nav-item": !0,
2111
2112
  "d-none": e.show !== void 0 ? !e.show : !1,
2112
- "f-state-active": e.id === s.value,
2113
+ "f-state-active": e.id === l.value,
2113
2114
  "f-state-disable": e.disabled
2114
2115
  };
2115
2116
  return i[`${e.id}-design-item`] = !0, i;
@@ -2118,11 +2119,11 @@ function $n(t, e, n, o, a, l) {
2118
2119
  })), h = B(() => ({
2119
2120
  "nav-link": !0,
2120
2121
  "tabs-text-truncate": !0,
2121
- active: e.id === s.value,
2122
+ active: e.id === l.value,
2122
2123
  disabled: e.disabled
2123
2124
  }));
2124
2125
  function S(i) {
2125
- return c("span", {
2126
+ return u("span", {
2126
2127
  class: w.value,
2127
2128
  title: i.title
2128
2129
  }, [i.title]);
@@ -2132,18 +2133,18 @@ function $n(t, e, n, o, a, l) {
2132
2133
  }
2133
2134
  const T = b(n), O = p(e.removeable);
2134
2135
  function z() {
2135
- return c("span", {
2136
+ return u("span", {
2136
2137
  class: "st-drop-close",
2137
2138
  onClick: (i) => r(i, e.id)
2138
- }, [c("i", {
2139
+ }, [u("i", {
2139
2140
  class: "f-icon f-icon-close"
2140
2141
  }, null)]);
2141
2142
  }
2142
2143
  function j(i) {
2143
- u(e.id), t.tabType === "one-page" && o.scrollToByPaggId(e.id);
2144
+ c(e.id), t.tabType === "one-page" && o.scrollToByPaggId(e.id);
2144
2145
  }
2145
2146
  function $(i) {
2146
- f(i, e.id, l.value);
2147
+ f(i, e.id, s.value);
2147
2148
  }
2148
2149
  function k(i) {
2149
2150
  ie.question(`确定删除标签页【${n.props.title}】?`, "", () => d(i, e.id), () => {
@@ -2153,48 +2154,48 @@ function $n(t, e, n, o, a, l) {
2153
2154
  m(i, e.id);
2154
2155
  }
2155
2156
  function W() {
2156
- return c("div", {
2157
+ return u("div", {
2157
2158
  role: "button",
2158
2159
  class: "btn component-settings-button",
2159
2160
  title: "删除",
2160
2161
  ref: "removeComponent",
2161
2162
  onClick: (i) => k(i)
2162
- }, [c("i", {
2163
+ }, [u("i", {
2163
2164
  class: "f-icon f-icon-yxs_delete"
2164
2165
  }, null)]);
2165
2166
  }
2166
2167
  function D() {
2167
- return c("div", {
2168
+ return u("div", {
2168
2169
  role: "button",
2169
2170
  class: "btn component-settings-button",
2170
2171
  title: "新增按钮",
2171
2172
  ref: "addComponent",
2172
2173
  onClick: (i) => L(i)
2173
- }, [c("i", {
2174
+ }, [u("i", {
2174
2175
  class: "f-icon f-icon-plus-circle"
2175
2176
  }, null)]);
2176
2177
  }
2177
2178
  function g() {
2178
- return c("div", {
2179
+ return u("div", {
2179
2180
  class: "component-btn-group",
2180
2181
  "data-noattach": "true"
2181
- }, [c("div", null, [W(), !e.toolbar || !e.toolbar.buttons || !e.toolbar.buttons.length ? D() : ""])]);
2182
+ }, [u("div", null, [W(), !e.toolbar || !e.toolbar.buttons || !e.toolbar.buttons.length ? D() : ""])]);
2182
2183
  }
2183
- return c("li", {
2184
+ return u("li", {
2184
2185
  onClick: (i) => $(i),
2185
2186
  class: C.value,
2186
2187
  style: x.value,
2187
2188
  id: `${e.id}-design-item`
2188
- }, [g(), c("a", {
2189
+ }, [g(), u("a", {
2189
2190
  class: h.value,
2190
2191
  onClick: j
2191
2192
  }, [T(e), O.value && z()])]);
2192
2193
  }
2193
- function Ln(t, e, n, o, a, l, s) {
2194
+ function Ln(t, e, n, o, a, s, l) {
2194
2195
  const {
2195
2196
  shouldShowNavigationButtons: r
2196
2197
  } = n, {
2197
- tabPages: u
2198
+ tabPages: c
2198
2199
  } = a, d = B(() => ({
2199
2200
  spacer: !0,
2200
2201
  "f-utils-fill": !0,
@@ -2215,40 +2216,40 @@ function Ln(t, e, n, o, a, l, s) {
2215
2216
  })), C = function(x) {
2216
2217
  var b;
2217
2218
  const h = pe("tab-page");
2218
- h.id = `tab_page_${Math.random().toString().slice(2, 6)}`, (b = l.value.schema.contents) == null || b.push(h);
2219
+ h.id = `tab_page_${Math.random().toString().slice(2, 6)}`, (b = s.value.schema.contents) == null || b.push(h);
2219
2220
  const {
2220
2221
  selectTabByTabId: S
2221
2222
  } = a;
2222
2223
  S(h.id);
2223
2224
  };
2224
- return () => c("div", {
2225
+ return () => u("div", {
2225
2226
  class: d.value,
2226
2227
  style: f.value
2227
- }, [c("ul", {
2228
+ }, [u("ul", {
2228
2229
  class: m.value,
2229
2230
  style: w.value,
2230
2231
  ref: e
2231
- }, [u.value.map((x) => $n(t, x.props, x, o, a, l)), c("li", {
2232
+ }, [c.value.map((x) => $n(t, x.props, x, o, a, s)), u("li", {
2232
2233
  class: "nav-item"
2233
- }, [c("a", {
2234
+ }, [u("a", {
2234
2235
  class: "nav-link tabs-text-truncate",
2235
2236
  title: "添加页签",
2236
2237
  onClick: (x) => C()
2237
- }, [c("i", {
2238
+ }, [u("i", {
2238
2239
  class: "f-icon f-icon-plus",
2239
2240
  style: "font-size: 20px;margin: 0 auto;line-height: 24px;"
2240
2241
  }, null)])])])]);
2241
2242
  }
2242
2243
  function st(t, e, n) {
2243
2244
  var z;
2244
- const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", l = p();
2245
- function s() {
2245
+ const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", s = p();
2246
+ function l() {
2246
2247
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2247
2248
  }
2248
2249
  function r() {
2249
2250
  return !1;
2250
2251
  }
2251
- function u() {
2252
+ function c() {
2252
2253
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
2253
2254
  }
2254
2255
  function d() {
@@ -2299,10 +2300,10 @@ function st(t, e, n) {
2299
2300
  (L = k == null ? void 0 : k.componentInstance) != null && L.value.onRemoveComponent && k.componentInstance.value.onRemoveComponent();
2300
2301
  });
2301
2302
  }
2302
- return l.value = {
2303
- canMove: s(),
2303
+ return s.value = {
2304
+ canMove: l(),
2304
2305
  canSelectParent: r(),
2305
- canDelete: u(),
2306
+ canDelete: c(),
2306
2307
  canNested: !d(),
2307
2308
  contents: e == null ? void 0 : e.schema.contents,
2308
2309
  elementRef: t,
@@ -2322,20 +2323,20 @@ function st(t, e, n) {
2322
2323
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || p(!1),
2323
2324
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || p(!1),
2324
2325
  onRemoveComponent: O
2325
- }, l;
2326
+ }, s;
2326
2327
  }
2327
2328
  class lt {
2328
2329
  getTemplateRule(e, n) {
2329
- const o = n == null ? void 0 : n.formSchemaUtils, a = o == null ? void 0 : o.getFormTemplateRule(), l = { canAccept: !0, canDelete: !0, canMove: !0 };
2330
+ const o = n == null ? void 0 : n.formSchemaUtils, a = o == null ? void 0 : o.getFormTemplateRule(), s = { canAccept: !0, canDelete: !0, canMove: !0 };
2330
2331
  if (!a)
2331
- return l;
2332
- const s = this.getComponentContext(e), { componentClassList: r } = s;
2333
- return r.forEach((u) => {
2334
- if (!u || !a[u])
2332
+ return s;
2333
+ const l = this.getComponentContext(e), { componentClassList: r } = l;
2334
+ return r.forEach((c) => {
2335
+ if (!c || !a[c])
2335
2336
  return;
2336
- const { canMove: d, canDelete: f, canAccept: m } = a[u];
2337
- l.canMove = l.canMove && this.resolveRuleValue(d, s), l.canDelete = l.canDelete && this.resolveRuleValue(f, s), l.canAccept = l.canAccept && this.resolveRuleValue(m, s);
2338
- }), l;
2337
+ const { canMove: d, canDelete: f, canAccept: m } = a[c];
2338
+ s.canMove = s.canMove && this.resolveRuleValue(d, l), s.canDelete = s.canDelete && this.resolveRuleValue(f, l), s.canAccept = s.canAccept && this.resolveRuleValue(m, l);
2339
+ }), s;
2339
2340
  }
2340
2341
  resolveRuleValue(e, n) {
2341
2342
  return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, n);
@@ -2343,50 +2344,50 @@ class lt {
2343
2344
  parseRuleValueSchema(e, n) {
2344
2345
  const o = e.invalidContext || [];
2345
2346
  let a = !0;
2346
- for (const l of o) {
2347
- if (l.firstLevelChild) {
2348
- if (l.firstLevelChild.class) {
2349
- const { firstLevelChildClassList: s } = n;
2350
- if (s && !s.includes(l.firstLevelChild.class)) {
2347
+ for (const s of o) {
2348
+ if (s.firstLevelChild) {
2349
+ if (s.firstLevelChild.class) {
2350
+ const { firstLevelChildClassList: l } = n;
2351
+ if (l && !l.includes(s.firstLevelChild.class)) {
2351
2352
  a = !1;
2352
2353
  continue;
2353
2354
  }
2354
2355
  }
2355
- if (l.firstLevelChild.type) {
2356
- const { firstLevelChildSchema: s } = n;
2357
- if (!s || s.type !== l.firstLevelChild.type) {
2356
+ if (s.firstLevelChild.type) {
2357
+ const { firstLevelChildSchema: l } = n;
2358
+ if (!l || l.type !== s.firstLevelChild.type) {
2358
2359
  a = !1;
2359
2360
  continue;
2360
2361
  }
2361
2362
  }
2362
2363
  }
2363
- if (l.secondLevelChild) {
2364
- if (l.secondLevelChild.class) {
2365
- const { secondLevelChildClassList: s } = n;
2366
- if (s && !s.includes(l.secondLevelChild.class)) {
2364
+ if (s.secondLevelChild) {
2365
+ if (s.secondLevelChild.class) {
2366
+ const { secondLevelChildClassList: l } = n;
2367
+ if (l && !l.includes(s.secondLevelChild.class)) {
2367
2368
  a = !1;
2368
2369
  continue;
2369
2370
  }
2370
2371
  }
2371
- if (l.secondLevelChild.type) {
2372
- const { secondLevelChildSchema: s } = n;
2373
- if (!s || s.type !== l.secondLevelChild.type) {
2372
+ if (s.secondLevelChild.type) {
2373
+ const { secondLevelChildSchema: l } = n;
2374
+ if (!l || l.type !== s.secondLevelChild.type) {
2374
2375
  a = !1;
2375
2376
  continue;
2376
2377
  }
2377
2378
  }
2378
2379
  }
2379
- if (l.parent) {
2380
- if (l.parent.class) {
2381
- const { parentClassList: s } = n;
2382
- if (s && !s.includes(l.parent.class)) {
2380
+ if (s.parent) {
2381
+ if (s.parent.class) {
2382
+ const { parentClassList: l } = n;
2383
+ if (l && !l.includes(s.parent.class)) {
2383
2384
  a = !1;
2384
2385
  continue;
2385
2386
  }
2386
2387
  }
2387
- if (l.parent.type) {
2388
- const { parentSchema: s } = n;
2389
- if (s && s.type !== l.parent.type) {
2388
+ if (s.parent.type) {
2389
+ const { parentSchema: l } = n;
2390
+ if (l && l.type !== s.parent.type) {
2390
2391
  a = !1;
2391
2392
  continue;
2392
2393
  }
@@ -2399,14 +2400,14 @@ class lt {
2399
2400
  }
2400
2401
  getComponentContext(e) {
2401
2402
  var h, S, b, T;
2402
- const n = e.schema, o = n.appearance && n.appearance.class || "", a = o.split(" ") || [], l = n.contents || [], s = l.length ? l[0] : null, r = s && s.appearance ? s.appearance.class : "", u = r ? r.split(" ") : [], d = (h = s == null ? void 0 : s.contents) != null && h.length ? s == null ? void 0 : s.contents[0] : null, f = d && d.appearance ? d.appearance.class : "", m = f ? f.split(" ") : [], w = n.type === "component" ? (b = (S = e.parent) == null ? void 0 : S.parent) == null ? void 0 : b.schema : (T = e.parent) == null ? void 0 : T.schema, C = w && w.appearance && w.appearance.class || "", x = C ? C.split(" ") : [];
2403
+ const n = e.schema, o = n.appearance && n.appearance.class || "", a = o.split(" ") || [], s = n.contents || [], l = s.length ? s[0] : null, r = l && l.appearance ? l.appearance.class : "", c = r ? r.split(" ") : [], d = (h = l == null ? void 0 : l.contents) != null && h.length ? l == null ? void 0 : l.contents[0] : null, f = d && d.appearance ? d.appearance.class : "", m = f ? f.split(" ") : [], w = n.type === "component" ? (b = (S = e.parent) == null ? void 0 : S.parent) == null ? void 0 : b.schema : (T = e.parent) == null ? void 0 : T.schema, C = w && w.appearance && w.appearance.class || "", x = C ? C.split(" ") : [];
2403
2404
  return {
2404
2405
  componentClass: o,
2405
2406
  componentClassList: a,
2406
- childContents: l,
2407
- firstLevelChildSchema: s,
2407
+ childContents: s,
2408
+ firstLevelChildSchema: l,
2408
2409
  firstLevelChildClass: r,
2409
- firstLevelChildClassList: u,
2410
+ firstLevelChildClassList: c,
2410
2411
  secondLevelChildSchema: d,
2411
2412
  secondLevelChildClass: f,
2412
2413
  secondLevelChildClassList: m,
@@ -2446,7 +2447,7 @@ class ye {
2446
2447
  if (n) {
2447
2448
  if (!this.designViewModelField) {
2448
2449
  const a = this.designViewModelUtils.getDgViewModel(this.viewModelId);
2449
- this.designViewModelField = a.fields.find((l) => l.id === n);
2450
+ this.designViewModelField = a.fields.find((s) => s.id === n);
2450
2451
  }
2451
2452
  e.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
2452
2453
  }
@@ -2508,8 +2509,8 @@ class ye {
2508
2509
  const o = n && n.parent && n.parent.schema;
2509
2510
  if (!o)
2510
2511
  return;
2511
- const a = o.contents.findIndex((s) => s.id === e), l = Ve(o.contents[a]);
2512
- o.contents.splice(a, 1), o.contents.splice(a, 0, l);
2512
+ const a = o.contents.findIndex((l) => l.id === e), s = Ve(o.contents[a]);
2513
+ o.contents.splice(a, 1), o.contents.splice(a, 0, s);
2513
2514
  }
2514
2515
  }
2515
2516
  class Fn extends ye {
@@ -2612,18 +2613,18 @@ class Hn extends ye {
2612
2613
  }
2613
2614
  }
2614
2615
  function zn(t, e) {
2615
- const n = t.schema, o = new lt(), { canMove: a, canAccept: l, canDelete: s } = o.getTemplateRule(t, e);
2616
+ const n = t.schema, o = new lt(), { canMove: a, canAccept: s, canDelete: l } = o.getTemplateRule(t, e);
2616
2617
  function r(w) {
2617
- return l;
2618
- }
2619
- function u() {
2620
2618
  return s;
2621
2619
  }
2620
+ function c() {
2621
+ return l;
2622
+ }
2622
2623
  function d() {
2623
2624
  return a;
2624
2625
  }
2625
2626
  function f() {
2626
- return !a && !s;
2627
+ return !a && !l;
2627
2628
  }
2628
2629
  function m(w) {
2629
2630
  var h;
@@ -2631,7 +2632,7 @@ function zn(t, e) {
2631
2632
  }
2632
2633
  return {
2633
2634
  canAccepts: r,
2634
- checkCanDeleteComponent: u,
2635
+ checkCanDeleteComponent: c,
2635
2636
  checkCanMoveComponent: d,
2636
2637
  getPropsConfig: m,
2637
2638
  hideNestedPaddingInDesginerView: f
@@ -2639,8 +2640,8 @@ function zn(t, e) {
2639
2640
  }
2640
2641
  const je = p(0);
2641
2642
  function Nn(t, e) {
2642
- const n = e.getBoundingClientRect(), o = t.getBoundingClientRect(), a = o.top >= n.top, l = o.top <= n.bottom;
2643
- return a && l;
2643
+ const n = e.getBoundingClientRect(), o = t.getBoundingClientRect(), a = o.top >= n.top, s = o.top <= n.bottom;
2644
+ return a && s;
2644
2645
  }
2645
2646
  function Vn(t) {
2646
2647
  if (!t)
@@ -2658,18 +2659,18 @@ function Vn(t) {
2658
2659
  return;
2659
2660
  }
2660
2661
  o.style.display = "";
2661
- const l = o.getBoundingClientRect(), s = o.querySelector("div");
2662
- if (s) {
2663
- const r = s.getBoundingClientRect();
2664
- s.style.top = l.top + "px", s.style.left = l.left - r.width + "px";
2662
+ const s = o.getBoundingClientRect(), l = o.querySelector("div");
2663
+ if (l) {
2664
+ const r = l.getBoundingClientRect();
2665
+ l.style.top = s.top + "px", l.style.left = s.left - r.width + "px";
2665
2666
  }
2666
2667
  }
2667
2668
  }
2668
2669
  function Wn(t, e, n, o) {
2669
- const a = p([]), l = p(t.activeId || ""), s = p(!0), r = p(), u = p([]);
2670
+ const a = p([]), s = p(t.activeId || ""), l = p(!0), r = p(), c = p([]);
2670
2671
  function d(v) {
2671
- const M = v.value.findIndex((I) => I.props.show !== !1 && !l.value && !I.props.disabled);
2672
- !l.value && M !== -1 && (l.value = v.value[M].props.id);
2672
+ const M = v.value.findIndex((I) => I.props.show !== !1 && !s.value && !I.props.disabled);
2673
+ !s.value && M !== -1 && (s.value = v.value[M].props.id);
2673
2674
  }
2674
2675
  function f(v, M) {
2675
2676
  v.classList.contains(M) || v.classList.add(M);
@@ -2692,32 +2693,32 @@ function Wn(t, e, n, o) {
2692
2693
  v.preventDefault(), v.stopPropagation();
2693
2694
  };
2694
2695
  function h(v) {
2695
- a.value = a.value.filter((M) => M.props.id !== v), l.value === v && (l.value = "", d(a));
2696
+ a.value = a.value.filter((M) => M.props.id !== v), s.value === v && (s.value = "", d(a));
2696
2697
  }
2697
2698
  function S(v, M, I = !1) {
2698
2699
  const R = a.value.findIndex((V) => V.props.id === M);
2699
2700
  h(M), x(v), ae(() => {
2700
- C(n), I && (s.value = !0), e.emit("tabRemove", {
2701
+ C(n), I && (l.value = !0), e.emit("tabRemove", {
2701
2702
  removeIndex: R,
2702
2703
  removeId: M,
2703
- activeId: l.value
2704
+ activeId: s.value
2704
2705
  });
2705
2706
  });
2706
2707
  }
2707
2708
  function b() {
2708
- const v = a.value.find((R) => R.props.id === l.value);
2709
- if (u.value = [], v && v.props.toolbar) {
2709
+ const v = a.value.find((R) => R.props.id === s.value);
2710
+ if (c.value = [], v && v.props.toolbar) {
2710
2711
  const R = Object.prototype.hasOwnProperty.call(v.props.toolbar, "contents") ? "contents" : "buttons";
2711
- v.props.toolbar[R] && v.props.toolbar[R].length && (u.value = [...v.props.toolbar[R]]);
2712
+ v.props.toolbar[R] && v.props.toolbar[R].length && (c.value = [...v.props.toolbar[R]]);
2712
2713
  }
2713
- const M = o.schema.contents, I = M == null ? void 0 : M.find((R) => R.id === l.value);
2714
+ const M = o.schema.contents, I = M == null ? void 0 : M.find((R) => R.id === s.value);
2714
2715
  r.value = I == null ? void 0 : I.toolbar;
2715
2716
  }
2716
2717
  function T(v) {
2717
- const M = l.value;
2718
- l.value = v, b(), e.emit("tabChange", {
2718
+ const M = s.value;
2719
+ s.value = v, b(), e.emit("tabChange", {
2719
2720
  prevId: M,
2720
- nextId: l.value
2721
+ nextId: s.value
2721
2722
  });
2722
2723
  }
2723
2724
  function O(v) {
@@ -2804,12 +2805,12 @@ function Wn(t, e, n, o) {
2804
2805
  return;
2805
2806
  (!R.toolbar || !R.toolbar.buttons) && (R.toolbar = { buttons: [] });
2806
2807
  const V = pe("tab-toolbar-item");
2807
- V.id = `tab_toolbar_item_${Math.random().toString().slice(2, 6)}`, V.appearance = { class: "btn btn-secondary f-btn-ml" }, R.toolbar.buttons.push(V), u.value = [...R.toolbar.buttons], r.value = R.toolbar, ae(() => {
2808
+ V.id = `tab_toolbar_item_${Math.random().toString().slice(2, 6)}`, V.appearance = { class: "btn btn-secondary f-btn-ml" }, R.toolbar.buttons.push(V), c.value = [...R.toolbar.buttons], r.value = R.toolbar, ae(() => {
2808
2809
  H();
2809
2810
  });
2810
2811
  }
2811
2812
  return {
2812
- activeId: l,
2813
+ activeId: s,
2813
2814
  addTab: z,
2814
2815
  changeTitleStyle: C,
2815
2816
  removeTab: S,
@@ -2817,7 +2818,7 @@ function Wn(t, e, n, o) {
2817
2818
  selectTabByTabId: T,
2818
2819
  tabPages: a,
2819
2820
  updateTab: j,
2820
- toolbarItems: u,
2821
+ toolbarItems: c,
2821
2822
  removeDesignTab: L,
2822
2823
  selectDesignTab: F,
2823
2824
  toolbarSchema: r,
@@ -3073,7 +3074,7 @@ function vo() {
3073
3074
  };
3074
3075
  if (n.icon) {
3075
3076
  const a = n.icon.trim().split(" ");
3076
- a && a.length && a.reduce((l, s) => (l[s] = !0, l), o);
3077
+ a && a.length && a.reduce((s, l) => (s[l] = !0, s), o);
3077
3078
  }
3078
3079
  return o;
3079
3080
  }
@@ -3088,7 +3089,7 @@ function mo(t, e) {
3088
3089
  function a() {
3089
3090
  o && o();
3090
3091
  }
3091
- function l(g) {
3092
+ function s(g) {
3092
3093
  const i = {
3093
3094
  "dropdown-menu": !0
3094
3095
  };
@@ -3098,7 +3099,7 @@ function mo(t, e) {
3098
3099
  }
3099
3100
  return i;
3100
3101
  }
3101
- function s(g) {
3102
+ function l(g) {
3102
3103
  const i = {
3103
3104
  disabled: !g.enable,
3104
3105
  "dropdown-submenu": !0,
@@ -3116,7 +3117,7 @@ function mo(t, e) {
3116
3117
  }, y = g.class.split(" ");
3117
3118
  return y && y.length && y.reduce((P, F) => (P[F] = !0, P), i), i;
3118
3119
  }
3119
- let u;
3120
+ let c;
3120
3121
  const d = /* @__PURE__ */ new Map();
3121
3122
  function f(g, i, y) {
3122
3123
  var F;
@@ -3238,56 +3239,56 @@ function mo(t, e) {
3238
3239
  F[H].children.push(v), a();
3239
3240
  }
3240
3241
  function k(g, i) {
3241
- return c("div", {
3242
+ return u("div", {
3242
3243
  class: "component-btn-group"
3243
- }, [c("div", null, [c("div", {
3244
+ }, [u("div", null, [u("div", {
3244
3245
  role: "button",
3245
3246
  class: "btn component-settings-button",
3246
3247
  title: "删除",
3247
3248
  ref: "removeButton",
3248
3249
  style: "position:static;",
3249
3250
  onClick: (y) => z(y, g, i)
3250
- }, [c("i", {
3251
+ }, [u("i", {
3251
3252
  class: "f-icon f-icon-yxs_delete"
3252
- }, null)]), c("div", {
3253
+ }, null)]), u("div", {
3253
3254
  role: "button",
3254
3255
  class: "btn component-settings-button",
3255
3256
  title: "复制",
3256
3257
  ref: "copyButton",
3257
3258
  style: "position:static;",
3258
3259
  onClick: (y) => j(y, g, i)
3259
- }, [c("i", {
3260
+ }, [u("i", {
3260
3261
  class: "f-icon f-icon-yxs_copy"
3261
- }, null)]), c("div", {
3262
+ }, null)]), u("div", {
3262
3263
  role: "button",
3263
3264
  class: "btn component-settings-button",
3264
3265
  title: "新增同级",
3265
3266
  ref: "appendSame",
3266
3267
  style: "width:85px!important;padding:0 5px;position:static;",
3267
3268
  onClick: (y) => $(y, g, i)
3268
- }, [c("i", {
3269
+ }, [u("i", {
3269
3270
  class: "f-icon f-icon-plus-circle text-white mr-1"
3270
- }, null), c("span", {
3271
+ }, null), u("span", {
3271
3272
  style: "font-size:13px;margin:auto"
3272
3273
  }, [Be("新增同级")])])])]);
3273
3274
  }
3274
3275
  function L(g) {
3275
- return g.children.map((i) => i.children && i.children.length ? c("li", {
3276
- class: s(i),
3276
+ return g.children.map((i) => i.children && i.children.length ? u("li", {
3277
+ class: l(i),
3277
3278
  id: i.id,
3278
3279
  onClick: (y) => i.enable && f(y, i, g)
3279
- }, [c("span", {
3280
+ }, [u("span", {
3280
3281
  id: i.id,
3281
3282
  class: r(i),
3282
3283
  onMouseover: (y) => i.enable && f(y, i, g)
3283
- }, [i.text, c("i", {
3284
+ }, [i.text, u("i", {
3284
3285
  class: "f-icon f-icon-arrow-chevron-right",
3285
3286
  style: "display: inline-block;float: right;line-height: 1.25rem;"
3286
- }, null)]), u(i, i)]) : c("li", {
3287
+ }, null)]), c(i, i)]) : u("li", {
3287
3288
  class: r(i),
3288
3289
  id: i.id,
3289
3290
  onClick: (y) => O(y, i)
3290
- }, [k(i, g), t.shouldShowIcon(i) && c("i", {
3291
+ }, [k(i, g), t.shouldShowIcon(i) && u("i", {
3291
3292
  class: t.iconClass(i)
3292
3293
  }, null), i.text]));
3293
3294
  }
@@ -3322,11 +3323,11 @@ function mo(t, e) {
3322
3323
  }
3323
3324
  return P;
3324
3325
  }
3325
- u = function(g, i) {
3326
+ c = function(g, i) {
3326
3327
  var H, E;
3327
3328
  const y = Pt(), P = i ? i.id : g.id, F = (E = (H = y == null ? void 0 : y.exposed) == null ? void 0 : H.elementRef.value) == null ? void 0 : E.querySelector("#" + P);
3328
- return c("ul", {
3329
- class: l(g),
3329
+ return u("ul", {
3330
+ class: s(g),
3330
3331
  style: W(g, F, i),
3331
3332
  id: g.id + "_menu"
3332
3333
  }, [L(g)]);
@@ -3337,17 +3338,17 @@ function mo(t, e) {
3337
3338
  }), d.clear();
3338
3339
  }
3339
3340
  return {
3340
- renderDropdownMenu: u,
3341
+ renderDropdownMenu: c,
3341
3342
  clearAllDropDownMenu: D
3342
3343
  };
3343
3344
  }
3344
3345
  function ho(t, e, n) {
3345
3346
  const o = p(t.alignment), {
3346
3347
  renderDropdownMenu: a,
3347
- clearAllDropDownMenu: l
3348
- } = mo(e, n), s = J("design-item-context"), r = J("toolbar-item-handler", () => {
3348
+ clearAllDropDownMenu: s
3349
+ } = mo(e, n), l = J("design-item-context"), r = J("toolbar-item-handler", () => {
3349
3350
  });
3350
- function u() {
3351
+ function c() {
3351
3352
  r && r();
3352
3353
  }
3353
3354
  function d(D) {
@@ -3396,7 +3397,7 @@ function ho(t, e, n) {
3396
3397
  return C(D);
3397
3398
  };
3398
3399
  function h(D) {
3399
- const g = s.schema.buttons || s.schema.contents, i = g == null ? void 0 : g.findIndex((P) => P.id === D), y = i === -1 ? null : g[i];
3400
+ const g = l.schema.buttons || l.schema.contents, i = g == null ? void 0 : g.findIndex((P) => P.id === D), y = i === -1 ? null : g[i];
3400
3401
  return {
3401
3402
  index: i,
3402
3403
  toolbarItem: y
@@ -3413,7 +3414,7 @@ function ho(t, e, n) {
3413
3414
  const P = y.text || "按钮", F = x(), H = Object.assign({}, F, {
3414
3415
  text: P
3415
3416
  });
3416
- (E = s.schema.buttons) == null || E.push(H), u();
3417
+ (E = l.schema.buttons) == null || E.push(H), c();
3417
3418
  }
3418
3419
  function b(D, g) {
3419
3420
  const {
@@ -3424,44 +3425,44 @@ function ho(t, e, n) {
3424
3425
  return;
3425
3426
  const P = y.text || "按钮", F = x(), H = Object.assign({}, F, {
3426
3427
  text: P
3427
- }), E = s.schema.buttons[i].children || [];
3428
- E.push(H), s.schema.buttons[i].children = E, u();
3428
+ }), E = l.schema.buttons[i].children || [];
3429
+ E.push(H), l.schema.buttons[i].children = E, c();
3429
3430
  }
3430
3431
  function T(D, g) {
3431
- const i = s.schema.buttons || s.schema.contents, y = i == null ? void 0 : i.findIndex((P) => P.id === g);
3432
- y !== -1 && (i.splice(y, 1), u());
3432
+ const i = l.schema.buttons || l.schema.contents, y = i == null ? void 0 : i.findIndex((P) => P.id === g);
3433
+ y !== -1 && (i.splice(y, 1), c());
3433
3434
  }
3434
3435
  function O(D) {
3435
- return c("div", {
3436
+ return u("div", {
3436
3437
  class: "component-btn-group"
3437
- }, [c("div", null, [c("div", {
3438
+ }, [u("div", null, [u("div", {
3438
3439
  role: "button",
3439
3440
  class: "btn component-settings-button",
3440
3441
  title: "删除",
3441
3442
  ref: "removeButton",
3442
3443
  style: "position:static;",
3443
3444
  onClick: (g) => T(g, D)
3444
- }, [c("i", {
3445
+ }, [u("i", {
3445
3446
  class: "f-icon f-icon-yxs_delete"
3446
- }, null)]), c("div", {
3447
+ }, null)]), u("div", {
3447
3448
  role: "button",
3448
3449
  class: "btn component-settings-button",
3449
3450
  title: "复制",
3450
3451
  ref: "copyButton",
3451
3452
  style: "position:static;",
3452
3453
  onClick: (g) => S(g, D)
3453
- }, [c("i", {
3454
+ }, [u("i", {
3454
3455
  class: "f-icon f-icon-yxs_copy"
3455
- }, null)]), c("div", {
3456
+ }, null)]), u("div", {
3456
3457
  role: "button",
3457
3458
  class: "btn component-settings-button",
3458
3459
  title: "新增子级",
3459
3460
  ref: "appendChildButton",
3460
3461
  style: "width:85px!important;padding:0 5px;position:static;",
3461
3462
  onClick: (g) => b(g, D)
3462
- }, [c("i", {
3463
+ }, [u("i", {
3463
3464
  class: "f-icon f-icon-plus-circle text-white mr-1"
3464
- }, null), c("span", {
3465
+ }, null), u("span", {
3465
3466
  style: "font-size:13px;margin:auto"
3466
3467
  }, [Be("新增子级")])])])]);
3467
3468
  }
@@ -3475,32 +3476,32 @@ function ho(t, e, n) {
3475
3476
  }
3476
3477
  function $(D) {
3477
3478
  var P;
3478
- const g = s.schema.buttons || s.schema.contents, i = g == null ? void 0 : g.findIndex((F) => F.id === D);
3479
+ const g = l.schema.buttons || l.schema.contents, i = g == null ? void 0 : g.findIndex((F) => F.id === D);
3479
3480
  if (i === -1)
3480
3481
  return;
3481
3482
  const y = g[i];
3482
- (P = s == null ? void 0 : s.setupContext) == null || P.emit("selectionChange", "response-toolbar-item", y);
3483
+ (P = l == null ? void 0 : l.setupContext) == null || P.emit("selectionChange", "response-toolbar-item", y);
3483
3484
  }
3484
3485
  function k(D, g) {
3485
3486
  m(D), z(), j(D), m(D), w(D, g), $(g.id);
3486
3487
  }
3487
3488
  function L(D) {
3488
- return c("div", {
3489
+ return u("div", {
3489
3490
  id: D.id,
3490
3491
  class: d(D)
3491
- }, [c("div", {
3492
+ }, [u("div", {
3492
3493
  class: f(D),
3493
3494
  style: "display: flex;padding-right: 0.1rem;",
3494
3495
  onClick: (g) => D.enable && k(g, D)
3495
- }, [O(D.id), e.shouldShowIcon(D) && c("i", {
3496
+ }, [O(D.id), e.shouldShowIcon(D) && u("i", {
3496
3497
  class: e.iconClass(D)
3497
- }, null), c("span", null, [D.text]), c("i", {
3498
+ }, null), u("span", null, [D.text]), u("i", {
3498
3499
  class: "f-icon f-icon-arrow-chevron-down",
3499
3500
  style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
3500
3501
  }, null)]), a(D)]);
3501
3502
  }
3502
3503
  function W() {
3503
- l();
3504
+ s();
3504
3505
  }
3505
3506
  return {
3506
3507
  renderToolbarDropdown: L,
@@ -3598,16 +3599,16 @@ function bo(t, e) {
3598
3599
  function a(f, m) {
3599
3600
  return m.text = f.label, m;
3600
3601
  }
3601
- function l() {
3602
+ function s() {
3602
3603
  return !1;
3603
3604
  }
3604
- function s() {
3605
+ function l() {
3605
3606
  return !1;
3606
3607
  }
3607
3608
  function r() {
3608
3609
  return !0;
3609
3610
  }
3610
- function u() {
3611
+ function c() {
3611
3612
  return !0;
3612
3613
  }
3613
3614
  function d(f) {
@@ -3616,9 +3617,9 @@ function bo(t, e) {
3616
3617
  return {
3617
3618
  canAccepts: o,
3618
3619
  checkCanAddComponent: r,
3619
- checkCanDeleteComponent: s,
3620
- checkCanMoveComponent: l,
3621
- hideNestedPaddingInDesginerView: u,
3620
+ checkCanDeleteComponent: l,
3621
+ checkCanMoveComponent: s,
3622
+ hideNestedPaddingInDesginerView: c,
3622
3623
  onResolveNewComponentSchema: a,
3623
3624
  getPropsConfig: d
3624
3625
  };
@@ -3640,16 +3641,16 @@ const yo = {
3640
3641
  function Co(t, e, n) {
3641
3642
  var z;
3642
3643
  const o = "", a = p();
3643
- function l() {
3644
+ function s() {
3644
3645
  return !0;
3645
3646
  }
3646
- function s() {
3647
+ function l() {
3647
3648
  return !1;
3648
3649
  }
3649
3650
  function r() {
3650
3651
  return !0;
3651
3652
  }
3652
- function u() {
3653
+ function c() {
3653
3654
  return !0;
3654
3655
  }
3655
3656
  function d() {
@@ -3689,9 +3690,9 @@ function Co(t, e, n) {
3689
3690
  function O() {
3690
3691
  }
3691
3692
  return a.value = {
3692
- canMove: l(),
3693
- canSelectParent: s(),
3694
- canAdd: u(),
3693
+ canMove: s(),
3694
+ canSelectParent: l(),
3695
+ canAdd: c(),
3695
3696
  canDelete: r(),
3696
3697
  canNested: !d(),
3697
3698
  contents: [],
@@ -3718,7 +3719,7 @@ const dt = /* @__PURE__ */ se({
3718
3719
  props: yo,
3719
3720
  emits: ["selectionChange", "addComponent", "removeComponent"],
3720
3721
  setup(t, e) {
3721
- const n = p(t.canMove), o = p(t.canAdd), a = p(t.canDelete), l = p(!1), s = p(t.contentKey), r = p(t.childType), u = p(t.childLabel), d = p(t.modelValue), f = p(""), m = p(), w = J("canvas-dragula"), C = p(), x = J("design-item-context"), h = {
3722
+ const n = p(t.canMove), o = p(t.canAdd), a = p(t.canDelete), s = p(!1), l = p(t.contentKey), r = p(t.childType), c = p(t.childLabel), d = p(t.modelValue), f = p(""), m = p(), w = J("canvas-dragula"), C = p(), x = J("design-item-context"), h = {
3722
3723
  designerItemElementRef: m,
3723
3724
  componentInstance: C,
3724
3725
  schema: d.value,
@@ -3731,7 +3732,7 @@ const dt = /* @__PURE__ */ se({
3731
3732
  // 受position-relative影响,整个容器的高度不能被撑起
3732
3733
  "flex-fill": t.id === "root-component",
3733
3734
  "position-relative": n.value || a.value,
3734
- "farris-nested": l.value,
3735
+ "farris-nested": s.value,
3735
3736
  "can-move": n.value,
3736
3737
  "d-none": m.value && m.value.classList.contains("d-none")
3737
3738
  })), b = B(() => {
@@ -3742,11 +3743,11 @@ const dt = /* @__PURE__ */ se({
3742
3743
  }, i), i;
3743
3744
  });
3744
3745
  function T(i, y) {
3745
- if (x && x.schema[s.value]) {
3746
- const P = x.schema[s.value].findIndex((F) => F.id === y.id);
3746
+ if (x && x.schema[l.value]) {
3747
+ const P = x.schema[l.value].findIndex((F) => F.id === y.id);
3747
3748
  if (P > -1) {
3748
- const F = x.schema[s.value].length, H = x.schema[s.value][P % F];
3749
- x.designerItemElementRef.value.querySelector(`#${H.id}-design-item`), x.schema[s.value].splice(P, 1), je.value++, e.emit("removeComponent");
3749
+ const F = x.schema[l.value].length, H = x.schema[l.value][P % F];
3750
+ x.designerItemElementRef.value.querySelector(`#${H.id}-design-item`), x.schema[l.value].splice(P, 1), je.value++, e.emit("removeComponent");
3750
3751
  }
3751
3752
  }
3752
3753
  }
@@ -3754,15 +3755,15 @@ const dt = /* @__PURE__ */ se({
3754
3755
  if (C.value.addNewChildComponentSchema) {
3755
3756
  const y = {
3756
3757
  componentType: r.value,
3757
- label: u.value,
3758
+ label: c.value,
3758
3759
  parentComponentInstance: C.value,
3759
3760
  targetPosition: -1
3760
3761
  }, P = C.value.addNewChildComponentSchema(y);
3761
- d.value[s.value].push(P), e.emit("addComponent");
3762
+ d.value[l.value].push(P), e.emit("addComponent");
3762
3763
  }
3763
3764
  }
3764
3765
  function z() {
3765
- return o.value && c("div", {
3766
+ return o.value && u("div", {
3766
3767
  role: "button",
3767
3768
  class: "btn component-settings-button",
3768
3769
  title: "新增",
@@ -3770,37 +3771,37 @@ const dt = /* @__PURE__ */ se({
3770
3771
  onClick: (i) => {
3771
3772
  O();
3772
3773
  }
3773
- }, [c("i", {
3774
+ }, [u("i", {
3774
3775
  class: "f-icon f-icon-plus-circle"
3775
3776
  }, null)]);
3776
3777
  }
3777
3778
  function j(i) {
3778
- return a.value && c("div", {
3779
+ return a.value && u("div", {
3779
3780
  role: "button",
3780
3781
  class: "btn component-settings-button",
3781
3782
  title: "删除",
3782
3783
  ref: "removeComponent",
3783
3784
  onClick: Et((y) => T(y, i), ["stop"])
3784
- }, [c("i", {
3785
+ }, [u("i", {
3785
3786
  class: "f-icon f-icon-yxs_delete"
3786
3787
  }, null)]);
3787
3788
  }
3788
3789
  function $() {
3789
- return n.value && c("div", {
3790
+ return n.value && u("div", {
3790
3791
  role: "button",
3791
3792
  class: "btn component-settings-button",
3792
3793
  title: "移动",
3793
3794
  ref: "moveComponent"
3794
- }, [c("i", {
3795
+ }, [u("i", {
3795
3796
  "data-dragging-icon": "true",
3796
3797
  class: "cmp_move f-icon f-icon-yxs_move"
3797
3798
  }, null)]);
3798
3799
  }
3799
3800
  function k(i) {
3800
- return c("div", {
3801
+ return u("div", {
3801
3802
  class: "component-btn-group",
3802
3803
  "data-noattach": "true"
3803
- }, [c("div", null, [z(), $(), j(i)])]);
3804
+ }, [u("div", null, [z(), $(), j(i)])]);
3804
3805
  }
3805
3806
  Z(() => t.modelValue, (i) => {
3806
3807
  d.value = i, h.schema = i;
@@ -3820,7 +3821,7 @@ const dt = /* @__PURE__ */ se({
3820
3821
  te(() => {
3821
3822
  if (m.value) {
3822
3823
  const i = m.value.querySelector(`[data-dragref='${d.value.id}-container']`);
3823
- C.value = i && i.componentInstance ? i.componentInstance.value : D(), w && i && w.attachComponents(i, d.value), l.value = C.value.canNested !== void 0 ? C.value.canNested : l.value, o.value = C.value.canAdd !== void 0 ? C.value.canAdd : o.value, a.value = C.value.canDelete !== void 0 ? C.value.canDelete : a.value, n.value = C.value.canMove !== void 0 ? C.value.canMove : n.value, f.value = C.value.styles || "", m.value && (m.value.componentInstance = C, m.value.designItemContext = h);
3824
+ C.value = i && i.componentInstance ? i.componentInstance.value : D(), w && i && w.attachComponents(i, d.value), s.value = C.value.canNested !== void 0 ? C.value.canNested : s.value, o.value = C.value.canAdd !== void 0 ? C.value.canAdd : o.value, a.value = C.value.canDelete !== void 0 ? C.value.canDelete : a.value, n.value = C.value.canMove !== void 0 ? C.value.canMove : n.value, f.value = C.value.styles || "", m.value && (m.value.componentInstance = C, m.value.designItemContext = h);
3824
3825
  }
3825
3826
  W(), je.value++;
3826
3827
  }), It(() => {
@@ -3838,7 +3839,7 @@ const dt = /* @__PURE__ */ se({
3838
3839
  target: y == null ? void 0 : y.value
3839
3840
  });
3840
3841
  }
3841
- return () => c("div", {
3842
+ return () => u("div", {
3842
3843
  id: `${t.id}-design-item`,
3843
3844
  ref: m,
3844
3845
  class: S.value,
@@ -3908,8 +3909,8 @@ class wo extends ye {
3908
3909
  label: "onClick",
3909
3910
  name: "点击事件"
3910
3911
  }
3911
- ], o = this, a = o.eventsEditorUtils.formProperties(e, o.viewModelId, n), l = {};
3912
- l[o.viewModelId] = {
3912
+ ], o = this, a = o.eventsEditorUtils.formProperties(e, o.viewModelId, n), s = {};
3913
+ s[o.viewModelId] = {
3913
3914
  type: "events-editor",
3914
3915
  editor: {
3915
3916
  initialData: a
@@ -3917,14 +3918,14 @@ class wo extends ye {
3917
3918
  }, this.propertyConfig.categories.eventsEditor = {
3918
3919
  title: "事件",
3919
3920
  hideTitle: !0,
3920
- properties: l,
3921
+ properties: s,
3921
3922
  // 这个属性,标记当属性变更得时候触发重新更新属性
3922
3923
  refreshPanelAfterChanged: !0,
3923
3924
  tabId: "commands",
3924
3925
  tabName: "交互",
3925
- setPropertyRelates(s, r) {
3926
- const u = s.propertyValue;
3927
- delete e[o.viewModelId], u && (u.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(e, o.viewModelId, u.events, u));
3926
+ setPropertyRelates(l, r) {
3927
+ const c = l.propertyValue;
3928
+ delete e[o.viewModelId], c && (c.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(e, o.viewModelId, c.events, c));
3928
3929
  }
3929
3930
  };
3930
3931
  }
@@ -4006,8 +4007,8 @@ class To extends ye {
4006
4007
  label: "onClick",
4007
4008
  name: "点击事件"
4008
4009
  }
4009
- ], o = this, a = o.eventsEditorUtils.formProperties(e, o.viewModelId, n), l = {};
4010
- l[o.viewModelId] = {
4010
+ ], o = this, a = o.eventsEditorUtils.formProperties(e, o.viewModelId, n), s = {};
4011
+ s[o.viewModelId] = {
4011
4012
  type: "events-editor",
4012
4013
  editor: {
4013
4014
  initialData: a
@@ -4015,14 +4016,14 @@ class To extends ye {
4015
4016
  }, this.propertyConfig.categories.eventsEditor = {
4016
4017
  title: "事件",
4017
4018
  hideTitle: !0,
4018
- properties: l,
4019
+ properties: s,
4019
4020
  // 这个属性,标记当属性变更得时候触发重新更新属性
4020
4021
  refreshPanelAfterChanged: !0,
4021
4022
  tabId: "commands",
4022
4023
  tabName: "交互",
4023
- setPropertyRelates(s, r) {
4024
- const u = s.propertyValue;
4025
- delete e[o.viewModelId], u && (u.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(e, o.viewModelId, u.events, u));
4024
+ setPropertyRelates(l, r) {
4025
+ const c = l.propertyValue;
4026
+ delete e[o.viewModelId], c && (c.setPropertyRelates = this.setPropertyRelates, o.eventsEditorUtils.saveRelatedParameters(e, o.viewModelId, c.events, c));
4026
4027
  }
4027
4028
  };
4028
4029
  }
@@ -4037,26 +4038,26 @@ function xo(t, e) {
4037
4038
  function a() {
4038
4039
  return !0;
4039
4040
  }
4040
- function l() {
4041
+ function s() {
4041
4042
  return !1;
4042
4043
  }
4043
- function s(r) {
4044
- let u;
4044
+ function l(r) {
4045
+ let c;
4045
4046
  switch (t.schema.type) {
4046
4047
  case "tab-toolbar-item":
4047
- u = new wo(r, e);
4048
+ c = new wo(r, e);
4048
4049
  break;
4049
4050
  default:
4050
- u = new To(r, e);
4051
+ c = new To(r, e);
4051
4052
  }
4052
- return u.getPropertyConfig(t.schema);
4053
+ return c.getPropertyConfig(t.schema);
4053
4054
  }
4054
4055
  return {
4055
4056
  canAccepts: n,
4056
4057
  checkCanMoveComponent: o,
4057
4058
  checkCanDeleteComponent: a,
4058
- checkCanAddComponent: l,
4059
- getPropsConfig: s
4059
+ checkCanAddComponent: s,
4060
+ getPropsConfig: l
4060
4061
  };
4061
4062
  }
4062
4063
  const So = /* @__PURE__ */ se({
@@ -4070,10 +4071,10 @@ const So = /* @__PURE__ */ se({
4070
4071
  text: "More"
4071
4072
  }, a = p(new Se(o));
4072
4073
  B(() => a.value.children.length > 0);
4073
- const l = p(), s = J("designer-host-service"), r = J("design-item-context"), u = xo(r, s), d = qe(l, r, u);
4074
+ const s = p(), l = J("designer-host-service"), r = J("design-item-context"), c = xo(r, l), d = qe(s, r, c);
4074
4075
  J("toolbar-item-handler", () => {
4075
4076
  }), te(() => {
4076
- l.value.componentInstance = d;
4077
+ s.value.componentInstance = d;
4077
4078
  }), e.expose(d.value);
4078
4079
  function f() {
4079
4080
  const C = {
@@ -4095,16 +4096,16 @@ const So = /* @__PURE__ */ se({
4095
4096
  };
4096
4097
  return De(C, t.class);
4097
4098
  }
4098
- return () => c("div", {
4099
- ref: l,
4099
+ return () => u("div", {
4100
+ ref: s,
4100
4101
  "data-dragref": `${r.schema.id}-container`,
4101
4102
  class: "farris-component position-relative",
4102
4103
  style: "display:inline-block!important;"
4103
- }, [c("button", {
4104
+ }, [u("button", {
4104
4105
  type: "button",
4105
4106
  class: w(),
4106
4107
  id: t.id
4107
- }, [m() && c("i", {
4108
+ }, [m() && u("i", {
4108
4109
  class: f()
4109
4110
  }, null), t.text])]);
4110
4111
  }
@@ -4115,11 +4116,11 @@ const So = /* @__PURE__ */ se({
4115
4116
  setup(t, e) {
4116
4117
  const n = p(t.items);
4117
4118
  let o = new Array(n.value.length).fill(p());
4118
- const a = p(), l = p(), s = p(t.alignment), r = {
4119
+ const a = p(), s = p(), l = p(t.alignment), r = {
4119
4120
  id: "__more_buttons__",
4120
4121
  text: "More"
4121
- }, u = p(new Se(r)), d = vo();
4122
- B(() => u.value.children.length > 0);
4122
+ }, c = p(new Se(r)), d = vo();
4123
+ B(() => c.value.children.length > 0);
4123
4124
  const f = p(), m = J("designer-host-service"), w = J("design-item-context"), C = bo(w, m), x = qe(f, w, C), h = J("toolbar-item-handler", () => {
4124
4125
  });
4125
4126
  te(() => {
@@ -4135,8 +4136,8 @@ const So = /* @__PURE__ */ se({
4135
4136
  }, t.customClass)), T = B(() => ({
4136
4137
  "d-flex": !0,
4137
4138
  "flex-nowrap": !0,
4138
- "justify-content-end": s.value === "right",
4139
- "justify-content-start": s.value === "left"
4139
+ "justify-content-end": l.value === "right",
4140
+ "justify-content-start": l.value === "left"
4140
4141
  })), {
4141
4142
  renderToolbarDropdown: O,
4142
4143
  clearAllDropDown: z
@@ -4144,11 +4145,11 @@ const So = /* @__PURE__ */ se({
4144
4145
  function j() {
4145
4146
  n.value.filter((i) => i.children && i.children.length > 0).forEach((i) => {
4146
4147
  i.expanded = !1;
4147
- }), u.value.expanded = !1, z();
4148
+ }), c.value.expanded = !1, z();
4148
4149
  }
4149
4150
  const $ = /* @__PURE__ */ new Map(), k = [];
4150
4151
  function L(i) {
4151
- const y = l.value;
4152
+ const y = s.value;
4152
4153
  let P = i;
4153
4154
  const F = Array.from(y.children), H = F[F.length - 1].id === "__more_buttons__" ? F[F.length - 1] : null;
4154
4155
  if (H) {
@@ -4171,14 +4172,14 @@ const So = /* @__PURE__ */ se({
4171
4172
  else
4172
4173
  break;
4173
4174
  }
4174
- const v = Object.assign({}, u.value);
4175
+ const v = Object.assign({}, c.value);
4175
4176
  v.children = [];
4176
4177
  const M = new Se(v), I = n.value.reduce((R, V) => ($.has(V.id) && M.children.push(V), V.visible = !$.has(V.id), R.push(V), R), []);
4177
- u.value = M, n.value = I;
4178
+ c.value = M, n.value = I;
4178
4179
  }
4179
4180
  const W = new ResizeObserver((i) => {
4180
4181
  if (i.length) {
4181
- const P = i[0].contentRect.width, H = l.value.getBoundingClientRect().width;
4182
+ const P = i[0].contentRect.width, H = s.value.getBoundingClientRect().width;
4182
4183
  (P < H || k.length) && L(P);
4183
4184
  }
4184
4185
  });
@@ -4198,21 +4199,21 @@ const So = /* @__PURE__ */ se({
4198
4199
  w && w.setupContext && w.setupContext.emit("selectionChange", i, y, P, F);
4199
4200
  }
4200
4201
  function g() {
4201
- const i = l.value.querySelector(".dgComponentFocused.dgComponentSelected");
4202
+ const i = s.value.querySelector(".dgComponentFocused.dgComponentSelected");
4202
4203
  i == null || i.classList.remove("dgComponentSelected"), i == null || i.classList.remove("dgComponentFocused"), S();
4203
4204
  }
4204
- return () => c("div", {
4205
+ return () => u("div", {
4205
4206
  ref: f,
4206
4207
  "data-dragref": `${w.schema.id}-container`,
4207
4208
  class: b.value
4208
- }, [c("div", {
4209
+ }, [u("div", {
4209
4210
  ref: a,
4210
4211
  class: T.value
4211
- }, [c("div", {
4212
- ref: l,
4212
+ }, [u("div", {
4213
+ ref: s,
4213
4214
  class: "d-inline-block f-response-content",
4214
4215
  style: "white-space: nowrap;"
4215
- }, [n.value.map((i, y) => c(dt, {
4216
+ }, [n.value.map((i, y) => u(dt, {
4216
4217
  ref: o[y],
4217
4218
  class: "p-0 display-inline-block",
4218
4219
  modelValue: i,
@@ -4229,7 +4230,7 @@ const So = /* @__PURE__ */ se({
4229
4230
  }, {
4230
4231
  default: () => {
4231
4232
  var P;
4232
- return [c(So, {
4233
+ return [u(So, {
4233
4234
  id: i.id,
4234
4235
  disabled: i.disabled,
4235
4236
  text: i.text,
@@ -4244,37 +4245,37 @@ const So = /* @__PURE__ */ se({
4244
4245
  });
4245
4246
  function Mo(t, e, n, o, a) {
4246
4247
  const {
4247
- toolbarItems: l,
4248
- toolbarSchema: s,
4248
+ toolbarItems: s,
4249
+ toolbarSchema: l,
4249
4250
  changeToolbarItems: r
4250
4251
  } = t;
4251
- function u(f, m, w, C) {
4252
+ function c(f, m, w, C) {
4252
4253
  var x;
4253
4254
  (x = o.setupContext) == null || x.emit("selectionChange", f, m, w, C);
4254
4255
  }
4255
4256
  function d() {
4256
4257
  r();
4257
4258
  }
4258
- return c("div", {
4259
+ return u("div", {
4259
4260
  class: "farris-tabs-toolbar"
4260
- }, [c("div", {
4261
+ }, [u("div", {
4261
4262
  class: "farris-tabs-inline-flex w-100",
4262
4263
  style: "flex:1"
4263
- }, [c(dt, {
4264
- modelValue: s.value,
4265
- "onUpdate:modelValue": (f) => s.value = f,
4264
+ }, [u(dt, {
4265
+ modelValue: l.value,
4266
+ "onUpdate:modelValue": (f) => l.value = f,
4266
4267
  class: "w-100 position-relative",
4267
4268
  canAdd: !0,
4268
4269
  childType: "tab-toolbar-item",
4269
4270
  childLabel: "按钮",
4270
4271
  contentKey: "buttons",
4271
- id: s.value.id,
4272
- onSelectionChange: u,
4272
+ id: l.value.id,
4273
+ onSelectionChange: c,
4273
4274
  componentId: a,
4274
4275
  onAddComponent: d
4275
4276
  }, {
4276
- default: () => [c(Bo, {
4277
- items: l.value,
4277
+ default: () => [u(Bo, {
4278
+ items: s.value,
4278
4279
  componentId: a
4279
4280
  }, null)]
4280
4281
  })])]);
@@ -4284,7 +4285,7 @@ const ko = /* @__PURE__ */ se({
4284
4285
  props: Ye,
4285
4286
  emits: ["tabChange", "tabRemove"],
4286
4287
  setup(t, e) {
4287
- const n = p(), o = J("designer-host-service"), a = J("design-item-context"), l = zn(a, o), s = st(n, a, l), r = p(t.tabType), u = ve(), d = ve(), f = Wn(t, e, u, a), {
4288
+ const n = p(), o = J("designer-host-service"), a = J("design-item-context"), s = zn(a, o), l = st(n, a, s), r = p(t.tabType), c = ve(), d = ve(), f = Wn(t, e, c, a), {
4288
4289
  activeId: m,
4289
4290
  changeTitleStyle: w,
4290
4291
  tabPages: C,
@@ -4295,7 +4296,7 @@ const ko = /* @__PURE__ */ se({
4295
4296
  listenTabNavElementScroll: T,
4296
4297
  toolbarSchema: O,
4297
4298
  setHorizontalScrollbarPosition: z
4298
- } = f, j = et(t, d, f), $ = Ze(t, u, j, f), {
4299
+ } = f, j = et(t, d, f), $ = Ze(t, c, j, f), {
4299
4300
  previousButtonClass: k,
4300
4301
  nextButtonClass: L,
4301
4302
  nextButtonGroupClass: W,
@@ -4303,7 +4304,7 @@ const ko = /* @__PURE__ */ se({
4303
4304
  updateNavigationLayout: g
4304
4305
  } = $, i = Ke(t, f), {
4305
4306
  hideDropDown: y
4306
- } = i, P = Ln(t, u, $, j, f, s), F = P, H = Je(t, u, $, j, f), E = /* @__PURE__ */ new Map([["default", P], ["one-page", F], ["pills", H]]);
4307
+ } = i, P = Ln(t, c, $, j, f, l), F = P, H = Je(t, c, $, j, f), E = /* @__PURE__ */ new Map([["default", P], ["one-page", F], ["pills", H]]);
4307
4308
  B(() => {
4308
4309
  const _ = C.value.find((Q) => Q.props.id === m.value);
4309
4310
  return _ == null ? void 0 : _.slots;
@@ -4320,7 +4321,7 @@ const ko = /* @__PURE__ */ se({
4320
4321
  tabType: r
4321
4322
  });
4322
4323
  function M() {
4323
- const _ = s.value.schema.contents || [];
4324
+ const _ = l.value.schema.contents || [];
4324
4325
  return _.length < 1 ? null : _.find((oe) => oe.id === m.value);
4325
4326
  }
4326
4327
  function I() {
@@ -4350,15 +4351,15 @@ const ko = /* @__PURE__ */ se({
4350
4351
  te(() => {
4351
4352
  C.value.length && (m.value = t.activeId || C.value[0].props.id, S(m.value)), ae(() => {
4352
4353
  g();
4353
- }), w(u), window.addEventListener("click", (_) => {
4354
+ }), w(c), window.addEventListener("click", (_) => {
4354
4355
  var Q;
4355
4356
  y.value || (Q = n.value) != null && Q.contains(_.target) || (y.value = !0);
4356
4357
  }), window.addEventListener("resize", () => {
4357
4358
  g();
4358
- }), T(), n.value.componentInstance = s;
4359
+ }), T(), n.value.componentInstance = l;
4359
4360
  });
4360
4361
  function re() {
4361
- return c("button", {
4362
+ return u("button", {
4362
4363
  title: "left-arrow-button",
4363
4364
  type: "button",
4364
4365
  class: k.value,
@@ -4368,7 +4369,7 @@ const ko = /* @__PURE__ */ se({
4368
4369
  }, null);
4369
4370
  }
4370
4371
  function q() {
4371
- return c("button", {
4372
+ return u("button", {
4372
4373
  title: "right-arrow-button",
4373
4374
  type: "button",
4374
4375
  class: L.value,
@@ -4381,32 +4382,32 @@ const ko = /* @__PURE__ */ se({
4381
4382
  renderMorePagesButtton: X
4382
4383
  } = Qe(t, i, $, f);
4383
4384
  function ne() {
4384
- return !!b.value.length && Mo(f, s, l, a, t.componentId);
4385
+ return !!b.value.length && Mo(f, l, s, a, t.componentId);
4385
4386
  }
4386
4387
  const ce = E.get(t.tabType) || E.get("default");
4387
4388
  function Pe() {
4388
4389
  var _, Q, oe, fe;
4389
- return c("div", {
4390
+ return u("div", {
4390
4391
  class: G.value
4391
- }, [c("div", {
4392
+ }, [u("div", {
4392
4393
  class: "farris-tabs-header-pre"
4393
- }, [(Q = (_ = e.slots).headerPrefix) == null ? void 0 : Q.call(_)]), c("div", {
4394
+ }, [(Q = (_ = e.slots).headerPrefix) == null ? void 0 : Q.call(_)]), u("div", {
4394
4395
  class: "farris-tabs-title scroll-tabs",
4395
4396
  style: K.value
4396
- }, [re(), ce && ce(), c("div", {
4397
+ }, [re(), ce && ce(), u("div", {
4397
4398
  class: W.value
4398
- }, [q(), X()])]), ne(), c("div", {
4399
+ }, [q(), X()])]), ne(), u("div", {
4399
4400
  class: "farris-tabs-header-post"
4400
4401
  }, [(fe = (oe = e.slots).headerSuffix) == null ? void 0 : fe.call(oe)])]);
4401
4402
  }
4402
4403
  function Ce() {
4403
4404
  var _, Q;
4404
- return c("div", {
4405
+ return u("div", {
4405
4406
  class: "farris-tabs-content",
4406
4407
  ref: d
4407
4408
  }, [(Q = (_ = e.slots).default) == null ? void 0 : Q.call(_)]);
4408
4409
  }
4409
- return e.expose(s.value), s.value.updateToolbarItems = I, () => c("div", {
4410
+ return e.expose(l.value), l.value.updateToolbarItems = I, () => u("div", {
4410
4411
  class: le.value,
4411
4412
  ref: n
4412
4413
  }, [Pe(), Ce()]);
@@ -4437,22 +4438,23 @@ function Do(t, e, n) {
4437
4438
  enableAccordion: !1,
4438
4439
  mainTitle: n.mainTitle || e.mainTitle || "标题"
4439
4440
  });
4440
- const l = t.getSchemaByType("content-container");
4441
- Object.assign(l, {
4441
+ const s = t.getSchemaByType("content-container");
4442
+ Object.assign(s, {
4442
4443
  id: `container-${o}`,
4443
4444
  appearance: {
4444
4445
  class: "f-struct-wrapper"
4445
4446
  },
4446
4447
  contents: [e]
4447
4448
  });
4448
- const s = a.schema;
4449
- switch (s && s.type) {
4449
+ const l = a.schema;
4450
+ switch (l && l.type) {
4450
4451
  case ee["splitter-pane"].type: {
4451
4452
  e.appearance.class = "f-section-in-main";
4452
4453
  break;
4453
4454
  }
4454
4455
  }
4455
- return l;
4456
+ const r = a.elementRef, c = window.getComputedStyle(r);
4457
+ return c && c.display === "flex" && (s.appearance.class += " d-block"), s;
4456
4458
  }
4457
4459
  function Ro(t, e, n) {
4458
4460
  return n.parentComponentInstance ? Do(t, e, n) : e;
@@ -4569,7 +4571,7 @@ const jo = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-
4569
4571
  properties: {
4570
4572
  type: {
4571
4573
  type: "string",
4572
- default: "SectionToolbar"
4574
+ default: "section-toolbar"
4573
4575
  },
4574
4576
  position: {
4575
4577
  type: "string",
@@ -4643,7 +4645,7 @@ const jo = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-
4643
4645
  he(pt, zo, Eo, Ro);
4644
4646
  function No(t, e, n) {
4645
4647
  let o;
4646
- function a(u = 1) {
4648
+ function a(c = 1) {
4647
4649
  const d = [
4648
4650
  "body>.f-datagrid-settings-simple-host",
4649
4651
  "body>div",
@@ -4659,41 +4661,41 @@ function No(t, e, n) {
4659
4661
  return C === "none" ? 0 : parseInt(x, 10);
4660
4662
  }).filter((w) => w);
4661
4663
  let m = Math.max(...f);
4662
- return m < 1040 && (m = 1040), m + u;
4664
+ return m < 1040 && (m = 1040), m + c;
4663
4665
  }
4664
- function l() {
4666
+ function s() {
4665
4667
  o = t.value.nextElementSibling;
4666
- const u = document && document.querySelector("body");
4667
- u && (u.appendChild(t.value), t.value.style.zIndex = a());
4668
+ const c = document && document.querySelector("body");
4669
+ c && (c.appendChild(t.value), t.value.style.zIndex = a());
4668
4670
  }
4669
- function s() {
4671
+ function l() {
4670
4672
  o ? e.value.insertBefore(
4671
4673
  t.value,
4672
4674
  o
4673
4675
  ) : e.value.appendChild(t.value), t.value.style.zIndex = null;
4674
4676
  }
4675
4677
  function r() {
4676
- !t || !e.value || (n.value = !n.value, n.value ? l() : s());
4678
+ !t || !e.value || (n.value = !n.value, n.value ? s() : l());
4677
4679
  }
4678
4680
  return { onClickMaxMinIcon: r };
4679
4681
  }
4680
4682
  function ft(t, e) {
4681
- const n = p(t.buttons), o = B(() => t.buttonPosition === "inHead" ? "right" : "left"), a = B(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), l = B(() => t.buttons && t.buttons.length > 0 && t.buttonPosition === "inHead");
4682
- function s(r) {
4683
+ const n = p(t.buttons), o = B(() => t.buttonPosition === "inHead" ? "right" : "left"), a = B(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), s = B(() => t.buttons && t.buttons.length > 0 && t.buttonPosition === "inHead");
4684
+ function l(r) {
4683
4685
  e.emit("Click", r);
4684
4686
  }
4685
- return () => l.value && c(We, {
4687
+ return () => s.value && u(We, {
4686
4688
  customClass: a.value,
4687
4689
  items: n.value,
4688
- onClick: s,
4690
+ onClick: l,
4689
4691
  alignment: o.value
4690
4692
  }, null);
4691
4693
  }
4692
- function Vo(t, e, n, o, a, l) {
4694
+ function Vo(t, e, n, o, a, s) {
4693
4695
  p(t.subTitle);
4694
- const s = B(() => t.buttonPosition), r = ft(t, e), {
4695
- onClickMaxMinIcon: u
4696
- } = No(o, a, l), d = B(() => !!t.subTitle), f = B(() => t.enableMaximize), m = B(() => t.enableAccordion !== ""), w = B(() => {
4696
+ const l = B(() => t.buttonPosition), r = ft(t, e), {
4697
+ onClickMaxMinIcon: c
4698
+ } = No(o, a, s), d = B(() => !!t.subTitle), f = B(() => t.enableMaximize), m = B(() => t.enableAccordion !== ""), w = B(() => {
4697
4699
  const O = {
4698
4700
  "f-section-header": !0
4699
4701
  };
@@ -4710,31 +4712,31 @@ function Vo(t, e, n, o, a, l) {
4710
4712
  "f-state-expand": n.value
4711
4713
  })), z = B(() => ({
4712
4714
  "f-icon": !0,
4713
- "f-icon-maximize": !l.value,
4714
- "f-icon-minimize": l.value
4715
+ "f-icon-maximize": !s.value,
4716
+ "f-icon-minimize": s.value
4715
4717
  }));
4716
- return c("div", {
4718
+ return u("div", {
4717
4719
  class: "f-max-accordion"
4718
- }, [f.value ? c("span", {
4720
+ }, [f.value ? u("span", {
4719
4721
  class: z.value,
4720
- onClick: u
4721
- }, null) : "", m.value ? c("button", {
4722
+ onClick: c
4723
+ }, null) : "", m.value ? u("button", {
4722
4724
  class: O.value,
4723
4725
  onClick: C
4724
- }, [c("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
4726
+ }, [u("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
4725
4727
  }
4726
4728
  function h() {
4727
- return e.slots.header ? c("div", {
4729
+ return e.slots.header ? u("div", {
4728
4730
  class: w.value
4729
4731
  }, [e.slots.header()]) : "";
4730
4732
  }
4731
4733
  function S() {
4732
- return c("div", {
4734
+ return u("div", {
4733
4735
  class: "f-title",
4734
4736
  onClick: C
4735
- }, [c("h4", {
4737
+ }, [u("h4", {
4736
4738
  class: "f-title-text"
4737
- }, [t.mainTitle]), d.value && c("span", null, [t.subTitle])]);
4739
+ }, [t.mainTitle]), d.value && u("span", null, [t.subTitle])]);
4738
4740
  }
4739
4741
  function b() {
4740
4742
  const O = B(() => {
@@ -4743,14 +4745,14 @@ function Vo(t, e, n, o, a, l) {
4743
4745
  };
4744
4746
  return t.headerContentClass && t.headerContentClass.split(" ").reduce(($, k) => ($[k] = !0, $), z), z;
4745
4747
  });
4746
- return e.slots.headerContent ? c("div", {
4748
+ return e.slots.headerContent ? u("div", {
4747
4749
  class: O.value
4748
4750
  }, [e.slots.headerContent()]) : "";
4749
4751
  }
4750
4752
  function T() {
4751
- return c("div", {
4753
+ return u("div", {
4752
4754
  class: w.value
4753
- }, [e.slots.headerTitle ? e.slots.headerTitle() : S(), b(), s.value === "inHead" && r(), (f.value || m.value) && x()]);
4755
+ }, [e.slots.headerTitle ? e.slots.headerTitle() : S(), b(), l.value === "inHead" && r(), (f.value || m.value) && x()]);
4754
4756
  }
4755
4757
  return () => t.showHeader && (e.slots.header ? h() : T());
4756
4758
  }
@@ -4781,14 +4783,14 @@ const Uo = /* @__PURE__ */ se({
4781
4783
  props: pt,
4782
4784
  emits: [],
4783
4785
  setup(t, e) {
4784
- const n = p(), o = p(), a = p(t.customClass), l = B(() => t.enableAccordion), s = p(t.expandStatus), r = B(() => t.buttonPosition), u = p(!1), d = Vo(t, e, s, n, o, u), f = ft(t, e), m = B(() => {
4786
+ const n = p(), o = p(), a = p(t.customClass), s = B(() => t.enableAccordion), l = p(t.expandStatus), r = B(() => t.buttonPosition), c = p(!1), d = Vo(t, e, l, n, o, c), f = ft(t, e), m = B(() => {
4785
4787
  const S = {
4786
4788
  "f-section": !0,
4787
- "f-section-accordion": l.value === "default",
4788
- "f-state-collapse": (l.value === "default" || l.value === "custom") && !s.value,
4789
- "f-section-custom-accordion": l.value === "custom",
4789
+ "f-section-accordion": s.value === "default",
4790
+ "f-state-collapse": (s.value === "default" || s.value === "custom") && !l.value,
4791
+ "f-section-custom-accordion": s.value === "custom",
4790
4792
  "f-section-fill": t.fill,
4791
- "f-section-maximize": u.value
4793
+ "f-section-maximize": c.value
4792
4794
  };
4793
4795
  return Ee(S, a.value);
4794
4796
  }), w = B(() => Ee({
@@ -4797,20 +4799,20 @@ const Uo = /* @__PURE__ */ se({
4797
4799
  "f-section-extend": !0
4798
4800
  }, C.value));
4799
4801
  function x() {
4800
- return e.slots.extend && c("div", {
4802
+ return e.slots.extend && u("div", {
4801
4803
  class: C.value
4802
4804
  }, [e.slots.extend()]);
4803
4805
  }
4804
4806
  function h() {
4805
- return c("div", {
4807
+ return u("div", {
4806
4808
  class: w.value
4807
4809
  }, [r.value === "inContent" && f(), e.slots.default && e.slots.default()]);
4808
4810
  }
4809
4811
  return Z(() => t.expandStatus, (S, b) => {
4810
- S !== b && (s.value = S);
4812
+ S !== b && (l.value = S);
4811
4813
  }), te(() => {
4812
4814
  n.value && n.value && (o.value = n.value.parentElement);
4813
- }), () => c("div", {
4815
+ }), () => u("div", {
4814
4816
  class: m.value,
4815
4817
  ref: n,
4816
4818
  style: t.customStyle
@@ -4819,14 +4821,14 @@ const Uo = /* @__PURE__ */ se({
4819
4821
  });
4820
4822
  function Go() {
4821
4823
  function t(e, n) {
4822
- var s;
4824
+ var l;
4823
4825
  if (!e)
4824
4826
  return !1;
4825
- const o = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
4827
+ const o = ((l = e.targetContainer) == null ? void 0 : l.componentInstance) && e.targetContainer.componentInstance.value;
4826
4828
  if (!o)
4827
4829
  return !1;
4828
- const a = o.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(o.belongedComponentId);
4829
- return !((e.componentCategory === "input" || e.componentType === "form-group") && ![ee["response-layout-item"].type, ee["response-form"].type].includes(a) || (e.componentType === ee.tabs.type || e.componentType === ee.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![ee["content-container"].type, ee["splitter-pane"].type, ee["response-layout-item"].type].includes(a)));
4830
+ const a = o.schema.type, s = n == null ? void 0 : n.formSchemaUtils.getComponentById(o.belongedComponentId);
4831
+ return !((e.componentCategory === "input" || e.componentType === "form-group") && ![ee["response-layout-item"].type, ee["response-form"].type].includes(a) || (e.componentType === ee.tabs.type || e.componentType === ee.section.type) && ((s == null ? void 0 : s.componentType) !== "frame" || ![ee["content-container"].type, ee["splitter-pane"].type, ee["response-layout-item"].type].includes(a)));
4830
4832
  }
4831
4833
  return {
4832
4834
  basalDragulaRuleForContainer: t
@@ -4834,8 +4836,8 @@ function Go() {
4834
4836
  }
4835
4837
  function Xo(t, e) {
4836
4838
  const n = new lt(), { canAccept: o } = n.getTemplateRule(t, e);
4837
- function a(l) {
4838
- if (!Go().basalDragulaRuleForContainer(l, e))
4839
+ function a(s) {
4840
+ if (!Go().basalDragulaRuleForContainer(s, e))
4839
4841
  return !1;
4840
4842
  const { schema: r } = t;
4841
4843
  return r.contents && r.contents.length > 0 ? !1 : o;
@@ -4850,16 +4852,16 @@ const Jo = /* @__PURE__ */ se({
4850
4852
  props: Le,
4851
4853
  emits: [],
4852
4854
  setup(t, e) {
4853
- const n = p(), o = J("design-item-context"), a = J("designer-host-service"), l = Xo(o, a), s = st(n, o, l);
4854
- s.value.canNested = !1, s.value.canDelete = !1, s.value.canMove = !1, e.expose(s.value);
4855
- const r = J("tabs"), u = p(!0), d = {
4855
+ const n = p(), o = J("design-item-context"), a = J("designer-host-service"), s = Xo(o, a), l = st(n, o, s);
4856
+ l.value.canNested = !1, l.value.canDelete = !1, l.value.canMove = !1, e.expose(l.value);
4857
+ const r = J("tabs"), c = p(!0), d = {
4856
4858
  slots: e.slots,
4857
4859
  props: t
4858
4860
  }, f = p((r == null ? void 0 : r.tabType.value) || "default");
4859
4861
  te(() => {
4860
- n.value.componentInstance = s;
4862
+ n.value.componentInstance = l;
4861
4863
  const T = r.tabPages.value.findIndex((O) => O.props.id === t.id);
4862
- !T || T === -1 ? r == null || r.addTab(d) : T > -1 && (u.value = !1, console.warn(`已经存在id为${t.id}的页签啦`));
4864
+ !T || T === -1 ? r == null || r.addTab(d) : T > -1 && (c.value = !1, console.warn(`已经存在id为${t.id}的页签啦`));
4863
4865
  }), be(() => {
4864
4866
  });
4865
4867
  const m = B(() => (t == null ? void 0 : t.id) === (r == null ? void 0 : r.activeId.value)), w = B(() => ({
@@ -4877,7 +4879,7 @@ const Jo = /* @__PURE__ */ se({
4877
4879
  function C() {
4878
4880
  var O, z;
4879
4881
  const T = (z = (O = e.slots).default) == null ? void 0 : z.call(O);
4880
- return c(Uo, {
4882
+ return u(Uo, {
4881
4883
  "main-title": t.title,
4882
4884
  class: "farris-tab-page"
4883
4885
  }, Yo(T) ? T : {
@@ -4891,7 +4893,7 @@ const Jo = /* @__PURE__ */ se({
4891
4893
  function h() {
4892
4894
  var O, z;
4893
4895
  const T = (z = (O = e.slots).default) == null ? void 0 : z.call(O);
4894
- return c("div", {
4896
+ return u("div", {
4895
4897
  ref: n,
4896
4898
  class: x.value,
4897
4899
  "data-dragref": `${o.schema.id}-container`,
@@ -4899,7 +4901,7 @@ const Jo = /* @__PURE__ */ se({
4899
4901
  }, [T]);
4900
4902
  }
4901
4903
  const b = (/* @__PURE__ */ new Map([["default", h], ["one-page", C]])).get(f.value) || h;
4902
- return () => u.value ? b() : null;
4904
+ return () => c.value ? b() : null;
4903
4905
  }
4904
4906
  }), Qo = "https://json-schema.org/draft/2020-12/schema", Zo = "https://farris-design.gitee.io/tab-toolbar-item.schema.json", Ko = "tab-toolbar-item", ea = "A Farris Toolbar Item Component", ta = "object", na = {
4905
4907
  id: {