@farris/ui-vue 1.3.3 → 1.3.5

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 (73) 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 +108 -107
  4. package/components/condition/index.umd.cjs +1 -1
  5. package/components/data-grid/index.esm.js +4532 -4268
  6. package/components/data-grid/index.umd.cjs +1 -1
  7. package/components/data-view/index.esm.js +2709 -2690
  8. package/components/data-view/index.umd.cjs +1 -1
  9. package/components/designer-canvas/index.esm.js +4795 -4375
  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.css +1 -0
  14. package/components/event-parameter/index.esm.js +2685 -165
  15. package/components/event-parameter/index.umd.cjs +1 -1
  16. package/components/events-editor/index.css +1 -1
  17. package/components/events-editor/index.esm.js +594 -575
  18. package/components/events-editor/index.umd.cjs +1 -1
  19. package/components/external-container/index.esm.js +772 -772
  20. package/components/external-container/index.umd.cjs +1 -1
  21. package/components/field-selector/index.esm.js +2921 -2902
  22. package/components/field-selector/index.umd.cjs +1 -1
  23. package/components/filter-bar/index.css +1 -1
  24. package/components/filter-bar/index.esm.js +4137 -4050
  25. package/components/filter-bar/index.umd.cjs +1 -1
  26. package/components/flow-canvas/index.esm.js +4569 -4149
  27. package/components/flow-canvas/index.umd.cjs +1 -1
  28. package/components/list-view/index.esm.js +936 -936
  29. package/components/list-view/index.umd.cjs +1 -1
  30. package/components/lookup/index.esm.js +5226 -4962
  31. package/components/lookup/index.umd.cjs +1 -1
  32. package/components/mapping-editor/index.esm.js +4648 -4384
  33. package/components/mapping-editor/index.umd.cjs +1 -1
  34. package/components/property-panel/index.css +1 -1
  35. package/components/query-solution/index.css +1 -1
  36. package/components/query-solution/index.esm.js +6128 -5879
  37. package/components/query-solution/index.umd.cjs +6 -6
  38. package/components/radio-group/index.esm.js +6 -6
  39. package/components/radio-group/index.umd.cjs +1 -1
  40. package/components/schema-selector/index.esm.js +975 -973
  41. package/components/schema-selector/index.umd.cjs +2 -2
  42. package/components/section/index.esm.js +2107 -417
  43. package/components/section/index.umd.cjs +1 -1
  44. package/components/tabs/index.esm.js +577 -575
  45. package/components/tabs/index.umd.cjs +1 -1
  46. package/components/textarea/index.esm.js +84 -79
  47. package/components/textarea/index.umd.cjs +1 -1
  48. package/components/tree-grid/index.esm.js +3307 -3288
  49. package/components/tree-grid/index.umd.cjs +1 -1
  50. package/components/tree-view/index.esm.js +1537 -1533
  51. package/components/tree-view/index.umd.cjs +1 -1
  52. package/farris.all.esm.js +24890 -24173
  53. package/farris.all.umd.cjs +13 -13
  54. package/index.css +1 -1
  55. package/package.json +1 -1
  56. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  57. package/types/data-grid/src/components/data/data-grid-area.component.d.ts +8 -0
  58. package/types/data-grid/src/components/data/data-grid-area.props.d.ts +3 -0
  59. package/types/data-view/composition/types.d.ts +1 -0
  60. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +1 -2
  61. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +14 -3
  62. package/types/entity-binding-selector/composition/use-field-tree.d.ts +28 -0
  63. package/types/event-parameter/src/composition/use-general-editor.d.ts +26 -0
  64. package/types/event-parameter/src/event-parameter.props.d.ts +4 -4
  65. package/types/events-editor/src/composition/types.d.ts +1 -1
  66. package/types/query-solution/src/composition/types.d.ts +55 -0
  67. package/types/query-solution/src/composition/use-condition.d.ts +19 -0
  68. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +3 -2
  69. package/types/query-solution/src/designer/query-solution-config/converter/query-solution-config-property.converter.d.ts +4 -0
  70. package/types/section/index.d.ts +15 -0
  71. package/types/section/src/designer/section-header.design.component.d.ts +4 -0
  72. package/types/section/src/designer/section-toolbar-item.props.d.ts +19 -0
  73. package/types/section/src/designer/section-toolbar.design.component.d.ts +3 -0
@@ -1,7 +1,7 @@
1
1
  var kt = Object.defineProperty;
2
- var Et = (t, e, n) => e in t ? kt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var N = (t, e, n) => Et(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as H, ref as p, computed as L, createVNode as f, nextTick as ue, inject as ee, onMounted as J, withDirectives as Ae, resolveDirective as $e, watch as W, createTextVNode as X, reactive as Z, Fragment as ae, mergeProps as te, onUnmounted as Ue, Teleport as It, Transition as St, shallowRef as Lt, createApp as Dt, render as ge, h as Pt, cloneVNode as Vt } from "vue";
2
+ var It = (t, e, n) => e in t ? kt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var N = (t, e, n) => It(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { defineComponent as X, ref as p, computed as S, createVNode as f, nextTick as ce, inject as ee, onMounted as J, withDirectives as Ae, resolveDirective as $e, watch as W, createTextVNode as Y, reactive as Z, Fragment as ae, mergeProps as te, onUnmounted as Ue, Teleport as Et, Transition as St, shallowRef as Lt, createApp as Dt, render as ge, h as Pt, cloneVNode as Vt } from "vue";
5
5
  import { isPlainObject as De, cloneDeep as Te } from "lodash-es";
6
6
  import { DgControl as Me, useDesignerComponent as Rt } from "../designer-canvas/index.esm.js";
7
7
  import { useTextBox as Nt, useClear as je, useTextBoxDesign as Ot } from "../common/index.esm.js";
@@ -40,13 +40,13 @@ import Cn from "../page-header/index.esm.js";
40
40
  import bn from "../page-footer/index.esm.js";
41
41
  import wn from "../pagination/index.esm.js";
42
42
  import Mn from "../progress/index.esm.js";
43
- import xn from "../query-solution/index.esm.js";
44
- import Fn from "../radio-group/index.esm.js";
43
+ import Fn from "../query-solution/index.esm.js";
44
+ import xn from "../radio-group/index.esm.js";
45
45
  import Tn from "../rate/index.esm.js";
46
46
  import Bn from "../response-toolbar/index.esm.js";
47
47
  import kn from "../response-layout/index.esm.js";
48
- import En from "../response-layout-editor/index.esm.js";
49
- import In from "../search-box/index.esm.js";
48
+ import In from "../response-layout-editor/index.esm.js";
49
+ import En from "../search-box/index.esm.js";
50
50
  import Sn from "../section/index.esm.js";
51
51
  import Ln from "../smoke-detector/index.esm.js";
52
52
  import Dn from "../splitter/index.esm.js";
@@ -114,13 +114,13 @@ function Kn(t = {}) {
114
114
  if (typeof r == "number")
115
115
  return m[i].length === r;
116
116
  if (typeof r == "object") {
117
- const v = Object.keys(r)[0], h = r[v];
118
- if (v === "not")
119
- return Number(m[i].length) !== Number(h);
120
- if (v === "moreThan")
121
- return Number(m[i].length) >= Number(h);
122
- if (v === "lessThan")
123
- return Number(m[i].length) <= Number(h);
117
+ const h = Object.keys(r)[0], v = r[h];
118
+ if (h === "not")
119
+ return Number(m[i].length) !== Number(v);
120
+ if (h === "moreThan")
121
+ return Number(m[i].length) >= Number(v);
122
+ if (h === "lessThan")
123
+ return Number(m[i].length) <= Number(v);
124
124
  }
125
125
  return !1;
126
126
  }
@@ -137,14 +137,14 @@ function Kn(t = {}) {
137
137
  return typeof d == "number" ? [{ target: r, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: r, operator: "getProperty", param: i, value: !!d }] : typeof d == "object" ? Object.keys(d).map((m) => {
138
138
  if (m === "length")
139
139
  return { target: r, operator: "length", param: null, value: d[m] };
140
- const v = m, h = d[m];
141
- return { target: r, operator: "getProperty", param: v, value: h };
140
+ const h = m, v = d[m];
141
+ return { target: r, operator: "getProperty", param: h, value: v };
142
142
  }) : [];
143
143
  }
144
144
  function s(i) {
145
145
  return Object.keys(i).reduce((r, m) => {
146
- const v = a(m, i[m]);
147
- return r.push(...v), r;
146
+ const h = a(m, i[m]);
147
+ return r.push(...h), r;
148
148
  }, []);
149
149
  }
150
150
  function l(i, d) {
@@ -155,10 +155,10 @@ function Kn(t = {}) {
155
155
  return !1;
156
156
  }
157
157
  function c(i, d) {
158
- return s(i).reduce((v, h) => v && l(h, d), !0);
158
+ return s(i).reduce((h, v) => h && l(v, d), !0);
159
159
  }
160
160
  function u(i, d) {
161
- const r = Object.keys(i), m = r.includes("allOf"), v = r.includes("anyOf"), h = m || v, M = (h ? i[h ? m ? "allOf" : "anyOf" : "allOf"] : [i]).map((F) => c(F, d));
161
+ const r = Object.keys(i), m = r.includes("allOf"), h = r.includes("anyOf"), v = m || h, M = (v ? i[v ? m ? "allOf" : "anyOf" : "allOf"] : [i]).map((R) => c(R, d));
162
162
  return m ? !M.includes(!1) : M.includes(!0);
163
163
  }
164
164
  return { parseValueSchema: u };
@@ -205,7 +205,7 @@ const V = {
205
205
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
206
206
  }, Ge = {}, eo = {};
207
207
  Kn();
208
- function de(t, e, n = /* @__PURE__ */ new Map(), o = (l, c, u, i) => c, a = {}, s = (l) => l) {
208
+ function pe(t, e, n = /* @__PURE__ */ new Map(), o = (l, c, u, i) => c, a = {}, s = (l) => l) {
209
209
  return ze[e.title] = e, qe[e.title] = o, Ge[e.title] = a, eo[e.title] = s, (l = {}) => {
210
210
  const c = _n(l, e, n), u = Object.keys(t).reduce((i, d) => (i[d] = t[d].default, i), {});
211
211
  return Object.assign(u, c);
@@ -222,10 +222,10 @@ function to() {
222
222
  resolve: t
223
223
  };
224
224
  }
225
- const Ee = /* @__PURE__ */ new Map([
225
+ const Ie = /* @__PURE__ */ new Map([
226
226
  ["appearance", We]
227
227
  ]), no = /* @__PURE__ */ new Map([]);
228
- var xe = /* @__PURE__ */ ((t) => (t.String = "String", t.DateTime = "DateTime", t.Date = "Date", t.Enum = "Enum", t.Boolean = "Boolean", t.Number = "Number", t.Text = "Text", t.BigNumber = "BigNumber", t))(xe || {});
228
+ var Fe = /* @__PURE__ */ ((t) => (t.String = "String", t.DateTime = "DateTime", t.Date = "Date", t.Enum = "Enum", t.Boolean = "Boolean", t.Number = "Number", t.Text = "Text", t.BigNumber = "BigNumber", t))(Fe || {});
229
229
  const oo = "root-viewmodel";
230
230
  class ao {
231
231
  constructor(e, n) {
@@ -336,7 +336,7 @@ class ao {
336
336
  return o == null || o.forEach((a) => {
337
337
  let s = "blur";
338
338
  const l = a.type.name;
339
- (l === xe.Enum || l === xe.Boolean) && (s = "change"), n.push({
339
+ (l === Fe.Enum || l === Fe.Boolean) && (s = "change"), n.push({
340
340
  type: "Form",
341
341
  id: a.id,
342
342
  fieldName: a.bindingField,
@@ -349,18 +349,19 @@ class ao {
349
349
  }
350
350
  }
351
351
  function lo(t, e, n, o) {
352
- var s, l, c, u;
352
+ var s, l, c, u, i;
353
353
  const a = n.parentComponentInstance;
354
354
  if (a && o) {
355
- const i = (s = a.schema) == null ? void 0 : s.type, r = {
355
+ const d = (s = a.schema) == null ? void 0 : s.type, m = {
356
356
  componentId: `form-${Math.random().toString(36).slice(2, 6)}`,
357
357
  componentName: ((c = (l = n.bindingSourceContext) == null ? void 0 : l.bindingEntity) == null ? void 0 : c.name) || "标题",
358
358
  componentType: "form",
359
- formColumns: i === "splitter-pane" ? 1 : 4,
359
+ formColumns: d === "splitter-pane" ? 1 : 4,
360
360
  parentContainerId: a.schema.id,
361
- bindTo: ((u = n.bindingSourceContext) == null ? void 0 : u.bindTo) || "/"
361
+ bindTo: ((u = n.bindingSourceContext) == null ? void 0 : u.bindTo) || "/",
362
+ selectedFields: (i = n.bindingSourceContext) == null ? void 0 : i.bindingEntityFields
362
363
  };
363
- return new ao(t, o).createComponent(r);
364
+ return new ao(t, o).createComponent(m);
364
365
  } else
365
366
  return e;
366
367
  }
@@ -409,12 +410,12 @@ const ro = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-
409
410
  }, He = {
410
411
  customClass: { type: String, default: "" },
411
412
  customStyle: { type: String, defaut: "" }
412
- }, Pe = de(He, vo, Ee, lo), Ce = /* @__PURE__ */ H({
413
+ }, Pe = pe(He, vo, Ie, lo), Ce = /* @__PURE__ */ X({
413
414
  name: "FResponseForm",
414
415
  props: He,
415
416
  emits: [],
416
417
  setup(t, e) {
417
- const n = p(), o = L(() => {
418
+ const n = p(), o = S(() => {
418
419
  const a = t.customClass.split(" "), s = {
419
420
  "drag-container": !0
420
421
  };
@@ -497,14 +498,14 @@ const ro = "https://json-schema.org/draft/2020-12/schema", io = "https://farris-
497
498
  required: { type: Boolean, default: !1 },
498
499
  showLabel: { type: Boolean, default: !0 },
499
500
  type: { type: String, default: "input-group" }
500
- }, Ve = de(
501
+ }, Ve = pe(
501
502
  le,
502
503
  Xe,
503
- Ee,
504
+ Ie,
504
505
  void 0
505
- ), xo = to();
506
+ ), Fo = to();
506
507
  function Ye(t, e, n) {
507
- var b;
508
+ var w;
508
509
  const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", s = p();
509
510
  function l() {
510
511
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
@@ -518,49 +519,49 @@ function Ye(t, e, n) {
518
519
  function i() {
519
520
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
520
521
  }
521
- function d(w) {
522
- if (!w || !w.value)
522
+ function d(g) {
523
+ if (!g || !g.value)
523
524
  return null;
524
- if (w.value.schema && w.value.schema.type === "component")
525
- return w.value;
526
- const R = p(w == null ? void 0 : w.value.parent), C = d(R);
527
- return C || null;
525
+ if (g.value.schema && g.value.schema.type === "component")
526
+ return g.value;
527
+ const L = p(g == null ? void 0 : g.value.parent), y = d(L);
528
+ return y || null;
528
529
  }
529
- function r(w = e) {
530
- const { componentInstance: R, designerItemElementRef: C } = w;
531
- return !R || !R.value ? null : R.value.canMove ? C : r(w.parent);
530
+ function r(g = e) {
531
+ const { componentInstance: L, designerItemElementRef: y } = g;
532
+ return !L || !L.value ? null : L.value.canMove ? y : r(g.parent);
532
533
  }
533
- function m(w) {
534
- return !!n && n.canAccepts(w);
534
+ function m(g) {
535
+ return !!n && n.canAccepts(g);
535
536
  }
536
- function v() {
537
+ function h() {
537
538
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
538
539
  }
539
- function h() {
540
+ function v() {
540
541
  }
541
- function g(w, R) {
542
- R && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(R);
542
+ function b(g, L) {
543
+ L && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(L);
543
544
  }
544
- function x(w, R) {
545
- const { componentType: C } = w;
546
- let P = ke(C, w, R);
547
- n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(w, P));
548
- const O = C.toLowerCase().replace(/-/g, "_");
549
- return P && !P.id && P.type === C && (P.id = `${O}_${Math.random().toString().slice(2, 6)}`), P;
545
+ function F(g, L) {
546
+ const { componentType: y } = g;
547
+ let P = ke(y, g, L);
548
+ n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(g, P));
549
+ const O = y.toLowerCase().replace(/-/g, "_");
550
+ return P && !P.id && P.type === y && (P.id = `${O}_${Math.random().toString().slice(2, 6)}`), P;
550
551
  }
551
- function M(w) {
552
+ function M(g) {
552
553
  }
553
- function y(...w) {
554
+ function C(...g) {
554
555
  if (n && n.getPropsConfig)
555
- return n.getPropsConfig(...w);
556
+ return n.getPropsConfig(...g);
556
557
  }
557
- function F() {
558
- n && n.onRemoveComponent && n.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((w) => {
558
+ function R() {
559
+ n && n.onRemoveComponent && n.onRemoveComponent(), e != null && e.schema.contents && e.schema.contents.map((g) => {
559
560
  var P;
560
- let R = w.id;
561
- w.type === "component-ref" && (R = w.component);
562
- const C = t.value.querySelector(`#${R}-design-item`);
563
- (P = C == null ? void 0 : C.componentInstance) != null && P.value.onRemoveComponent && C.componentInstance.value.onRemoveComponent();
561
+ let L = g.id;
562
+ g.type === "component-ref" && (L = g.component);
563
+ const y = t.value.querySelector(`#${L}-design-item`);
564
+ (P = y == null ? void 0 : y.componentInstance) != null && P.value.onRemoveComponent && y.componentInstance.value.onRemoveComponent();
564
565
  });
565
566
  }
566
567
  return s.value = {
@@ -570,25 +571,25 @@ function Ye(t, e, n) {
570
571
  canNested: !i(),
571
572
  contents: e == null ? void 0 : e.schema.contents,
572
573
  elementRef: t,
573
- parent: (b = e == null ? void 0 : e.parent) == null ? void 0 : b.componentInstance,
574
+ parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
574
575
  schema: e == null ? void 0 : e.schema,
575
576
  styles: o,
576
577
  designerClass: a,
577
578
  canAccepts: m,
578
579
  getBelongedComponentInstance: d,
579
580
  getDraggableDesignItemElement: r,
580
- getDraggingDisplayText: v,
581
- getPropConfig: y,
582
- getDragScopeElement: h,
583
- onAcceptMovedChildElement: g,
581
+ getDraggingDisplayText: h,
582
+ getPropConfig: C,
583
+ getDragScopeElement: v,
584
+ onAcceptMovedChildElement: b,
584
585
  onChildElementMovedOut: M,
585
- addNewChildComponentSchema: x,
586
+ addNewChildComponentSchema: F,
586
587
  triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || p(!1),
587
588
  triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || p(!1),
588
- onRemoveComponent: F
589
+ onRemoveComponent: R
589
590
  }, s;
590
591
  }
591
- function Fo() {
592
+ function xo() {
592
593
  function t(e, n) {
593
594
  var l;
594
595
  if (!e)
@@ -677,8 +678,8 @@ class To {
677
678
  return !a;
678
679
  }
679
680
  getComponentContext(e) {
680
- var g, x, M, y;
681
- const n = e.schema, o = n.appearance && n.appearance.class || "", a = o.split(" ") || [], s = n.contents || [], l = s.length ? s[0] : null, c = l && l.appearance ? l.appearance.class : "", u = c ? c.split(" ") : [], i = (g = l == null ? void 0 : l.contents) != null && g.length ? l == null ? void 0 : l.contents[0] : null, d = i && i.appearance ? i.appearance.class : "", r = d ? d.split(" ") : [], m = n.type === "component" ? (M = (x = e.parent) == null ? void 0 : x.parent) == null ? void 0 : M.schema : (y = e.parent) == null ? void 0 : y.schema, v = m && m.appearance && m.appearance.class || "", h = v ? v.split(" ") : [];
681
+ var b, F, M, C;
682
+ const n = e.schema, o = n.appearance && n.appearance.class || "", a = o.split(" ") || [], s = n.contents || [], l = s.length ? s[0] : null, c = l && l.appearance ? l.appearance.class : "", u = c ? c.split(" ") : [], i = (b = l == null ? void 0 : l.contents) != null && b.length ? l == null ? void 0 : l.contents[0] : null, d = i && i.appearance ? i.appearance.class : "", r = d ? d.split(" ") : [], m = n.type === "component" ? (M = (F = e.parent) == null ? void 0 : F.parent) == null ? void 0 : M.schema : (C = e.parent) == null ? void 0 : C.schema, h = m && m.appearance && m.appearance.class || "", v = h ? h.split(" ") : [];
682
683
  return {
683
684
  componentClass: o,
684
685
  componentClassList: a,
@@ -690,8 +691,8 @@ class To {
690
691
  secondLevelChildClass: d,
691
692
  secondLevelChildClassList: r,
692
693
  parentSchema: m,
693
- parentClass: v,
694
- parentClassList: h
694
+ parentClass: h,
695
+ parentClassList: v
695
696
  };
696
697
  }
697
698
  }
@@ -826,69 +827,69 @@ function Qe(t) {
826
827
  const o = /* @__PURE__ */ new Map();
827
828
  let a = [];
828
829
  function s(d, r) {
829
- const v = d.split(" ").filter((y) => y.startsWith("col-"));
830
- if (v.length === 0) {
830
+ const h = d.split(" ").filter((C) => C.startsWith("col-"));
831
+ if (h.length === 0) {
831
832
  r.isSupportedClass = !1;
832
833
  return;
833
834
  }
834
- let h = v.find((y) => /^col-([1-9]|10|11|12)$/.test(y)), g = v.find((y) => /^col-md-([1-9]|10|11|12)$/.test(y)), x = v.find((y) => /^col-xl-([1-9]|10|11|12)$/.test(y)), M = v.find((y) => /^col-el-([1-9]|10|11|12)$/.test(y));
835
- h = h || "col-12", r.columnInSM = parseInt(h.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), g = g || "col-md-" + r.columnInSM, r.columnInMD = parseInt(g.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), x = x || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(x.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), M = M || "col-el-" + r.columnInLG, r.columnInEL = parseInt(M.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
836
- }
837
- function l(d, r, m, v = !1) {
838
- let h = !1;
839
- d.contents.forEach((g) => {
840
- if (g.type === "fieldset") {
841
- m += 1, l(g, r, m, !0), h = !0;
835
+ let v = h.find((C) => /^col-([1-9]|10|11|12)$/.test(C)), b = h.find((C) => /^col-md-([1-9]|10|11|12)$/.test(C)), F = h.find((C) => /^col-xl-([1-9]|10|11|12)$/.test(C)), M = h.find((C) => /^col-el-([1-9]|10|11|12)$/.test(C));
836
+ v = v || "col-12", r.columnInSM = parseInt(v.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), b = b || "col-md-" + r.columnInSM, r.columnInMD = parseInt(b.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), F = F || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(F.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), M = M || "col-el-" + r.columnInLG, r.columnInEL = parseInt(M.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
837
+ }
838
+ function l(d, r, m, h = !1) {
839
+ let v = !1;
840
+ d.contents.forEach((b) => {
841
+ if (b.type === "fieldset") {
842
+ m += 1, l(b, r, m, !0), v = !0;
842
843
  return;
843
844
  }
844
- h && (m += 1, h = !1);
845
- const x = g.appearance && g.appearance.class, M = new Bo();
846
- x ? s(x, M) : M.isSupportedClass = !1, M.label = g.label || g.id, M.id = g.id, M.group = m, v && (M.fieldSetId = d.id), n === g.id && (e = m), o.set(g.id, g), r.push(M);
845
+ v && (m += 1, v = !1);
846
+ const F = b.appearance && b.appearance.class, M = new Bo();
847
+ F ? s(F, M) : M.isSupportedClass = !1, M.label = b.label || b.id, M.id = b.id, M.group = m, h && (M.fieldSetId = d.id), n === b.id && (e = m), o.set(b.id, b), r.push(M);
847
848
  });
848
849
  }
849
850
  function c(d) {
850
851
  const r = t.getComponentById(d);
851
852
  if (!r || !r.componentType || !r.componentType.startsWith("form"))
852
853
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
853
- const m = t.selectNode(r, (v) => v.type === Me["response-form"].type);
854
+ const m = t.selectNode(r, (h) => h.type === Me["response-form"].type);
854
855
  return !m || !m.contents || m.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: m };
855
856
  }
856
857
  function u(d, r) {
857
858
  r = r || d.id;
858
- const { result: m, message: v, formNode: h } = c(r);
859
+ const { result: m, message: h, formNode: v } = c(r);
859
860
  if (!m)
860
- return { result: m, message: v };
861
+ return { result: m, message: h };
861
862
  n = d.id, a = [], o.clear();
862
- const g = h.contents[0].type === Me.fieldset.type ? 0 : 1;
863
- l(h, a, g);
864
- const x = a.find((y) => !y.isSupportedClass);
863
+ const b = v.contents[0].type === Me.fieldset.type ? 0 : 1;
864
+ l(v, a, b);
865
+ const F = a.find((C) => !C.isSupportedClass);
865
866
  return {
866
867
  defaultState: {
867
868
  defaultGroupNumber: e || 1,
868
- model: x ? "customize" : "standard"
869
+ model: F ? "customize" : "standard"
869
870
  },
870
871
  importData: a
871
872
  };
872
873
  }
873
874
  function i(d, r) {
874
875
  r = r;
875
- const { result: m, formNode: v } = c(r);
876
+ const { result: m, formNode: h } = c(r);
876
877
  if (!m)
877
878
  return "";
878
- const h = [];
879
- return d.forEach((g) => {
880
- var y;
881
- const x = o.get(g.id), M = x.appearance && x.appearance.class;
879
+ const v = [];
880
+ return d.forEach((b) => {
881
+ var C;
882
+ const F = o.get(b.id), M = F.appearance && F.appearance.class;
882
883
  if (M) {
883
- const b = M.split(" ").filter((U) => !U.startsWith("col-")), w = "col-" + g.columnInSM, R = "col-md-" + g.columnInMD, C = "col-xl-" + g.columnInLG, P = "col-el-" + g.columnInEL, O = [w, R, C, P].concat(b);
884
- x.appearance.class = O.join(" ");
884
+ const w = M.split(" ").filter((U) => !U.startsWith("col-")), g = "col-" + b.columnInSM, L = "col-md-" + b.columnInMD, y = "col-xl-" + b.columnInLG, P = "col-el-" + b.columnInEL, O = [g, L, y, P].concat(w);
885
+ F.appearance.class = O.join(" ");
885
886
  }
886
- if (g.fieldSetId) {
887
- const F = v.contents.find((w) => w.id === g.fieldSetId), b = h.find((w) => w.id === g.fieldSetId);
888
- b ? (y = b.contents) == null || y.push(x) : (h.push(F), F.contents = [x]);
887
+ if (b.fieldSetId) {
888
+ const R = h.contents.find((g) => g.id === b.fieldSetId), w = v.find((g) => g.id === b.fieldSetId);
889
+ w ? (C = w.contents) == null || C.push(F) : (v.push(R), R.contents = [F]);
889
890
  } else
890
- h.push(x);
891
- }), v.contents = h, v.id;
891
+ v.push(F);
892
+ }), h.contents = v, h.id;
892
893
  }
893
894
  return {
894
895
  checkCanFindFormNode: c,
@@ -911,27 +912,27 @@ function ko(t, e) {
911
912
  function a(c) {
912
913
  const u = n(c.id), i = Qe(t), d = [];
913
914
  i.getResonseFormLayoutConfig(u, d, 1);
914
- const r = d.map((b) => b.columnInSM), m = d.map((b) => b.columnInMD), v = d.map((b) => b.columnInLG), h = d.map((b) => b.columnInEL);
915
- function g(b) {
916
- const w = new Set(b);
917
- return Array.from(w).length === 1;
915
+ const r = d.map((w) => w.columnInSM), m = d.map((w) => w.columnInMD), h = d.map((w) => w.columnInLG), v = d.map((w) => w.columnInEL);
916
+ function b(w) {
917
+ const g = new Set(w);
918
+ return Array.from(g).length === 1;
918
919
  }
919
- const x = g(r) ? r[0] : 0, M = g(m) ? m[0] : 0, y = g(v) ? v[0] : 0, F = g(h) ? h[0] : 0;
920
+ const F = b(r) ? r[0] : 0, M = b(m) ? m[0] : 0, C = b(h) ? h[0] : 0, R = b(v) ? v[0] : 0;
920
921
  return {
921
- uniqueColClassInSM: x,
922
+ uniqueColClassInSM: F,
922
923
  uniqueColClassInMD: M,
923
- uniqueColClassInLG: y,
924
- uniqueColClassInEL: F
924
+ uniqueColClassInLG: C,
925
+ uniqueColClassInEL: R
925
926
  };
926
927
  }
927
928
  function s(c, u) {
928
- let i, d, r, m, v = [];
929
+ let i, d, r, m, h = [];
929
930
  if (c) {
930
- const F = c.split(" "), b = F.filter((w) => w.startsWith("col-"));
931
- i = b.find((w) => /^col-([1-9]|10|11|12)$/.test(w)), d = b.find((w) => /^col-md-([1-9]|10|11|12)$/.test(w)), r = b.find((w) => /^col-xl-([1-9]|10|11|12)$/.test(w)), m = b.find((w) => /^col-el-([1-9]|10|11|12)$/.test(w)), v = F.filter((w) => !w.startsWith("col-"));
931
+ const R = c.split(" "), w = R.filter((g) => g.startsWith("col-"));
932
+ i = w.find((g) => /^col-([1-9]|10|11|12)$/.test(g)), d = w.find((g) => /^col-md-([1-9]|10|11|12)$/.test(g)), r = w.find((g) => /^col-xl-([1-9]|10|11|12)$/.test(g)), m = w.find((g) => /^col-el-([1-9]|10|11|12)$/.test(g)), h = R.filter((g) => !g.startsWith("col-"));
932
933
  }
933
- const h = u.uniqueColClassInSM ? "col-" + u.uniqueColClassInSM : i, g = u.uniqueColClassInMD ? "col-md-" + u.uniqueColClassInMD : d, x = u.uniqueColClassInLG ? "col-xl-" + u.uniqueColClassInLG : r, M = u.uniqueColClassInEL ? "col-el-" + u.uniqueColClassInEL : m;
934
- return [h, g, x, M].concat(v).join(" ");
934
+ const v = u.uniqueColClassInSM ? "col-" + u.uniqueColClassInSM : i, b = u.uniqueColClassInMD ? "col-md-" + u.uniqueColClassInMD : d, F = u.uniqueColClassInLG ? "col-xl-" + u.uniqueColClassInLG : r, M = u.uniqueColClassInEL ? "col-el-" + u.uniqueColClassInEL : m;
935
+ return [v, b, F, M].concat(h).join(" ");
935
936
  }
936
937
  function l(c, u, i) {
937
938
  c = n(i, c), c.contents.forEach((d) => {
@@ -946,7 +947,7 @@ function ko(t, e) {
946
947
  }
947
948
  return { checkIsInFormComponent: o, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: l };
948
949
  }
949
- class Eo extends Je {
950
+ class Io extends Je {
950
951
  constructor(e, n) {
951
952
  super(e, n);
952
953
  }
@@ -974,89 +975,96 @@ class Eo extends Je {
974
975
  }, this.propertyConfig.categories.appearance = c, this.propertyConfig;
975
976
  }
976
977
  }
977
- function Io(t, e) {
978
+ function Eo(t, e) {
978
979
  const n = t.schema, o = new To(), { canMove: a, canAccept: s, canDelete: l } = o.getTemplateRule(t, e);
979
- function c(F) {
980
- const b = o.getComponentContext(t);
981
- return b && b.componentClassList && b.componentClassList.includes("f-form-layout") && b.componentClassList.includes("farris-form") ? F.sourceType === "control" && F.componentCategory === "input" || F.sourceType === "move" && F.componentType === "form-group" : !0;
980
+ function c(w) {
981
+ const { sourceElement: g } = w, { componentInstance: L } = g, y = e == null ? void 0 : e.formSchemaUtils;
982
+ if (!y)
983
+ return !0;
984
+ const P = y.getComponentById(L.value.belongedComponentId), O = y.getViewModelById(P.viewModel), U = y.getComponentById(t.componentInstance.value.belongedComponentId), z = y.getViewModelById(U.viewModel);
985
+ return O != null && O.id && (z != null && z.id) && O.id !== z.id ? O.bindTo === z.bindTo : !0;
982
986
  }
983
- function u(F) {
984
- return !(!Fo().basalDragulaRuleForContainer(F, e) || !s || !c(F));
987
+ function u(w) {
988
+ const g = o.getComponentContext(t);
989
+ return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? w.sourceType === "control" && w.componentCategory === "input" ? !0 : w.sourceType === "move" && w.componentType === "form-group" ? c(w) : !1 : !0;
985
990
  }
986
- function i(F) {
987
- ue();
991
+ function i(w) {
992
+ return !(!xo().basalDragulaRuleForContainer(w, e) || !s || !u(w));
988
993
  }
989
- function d() {
994
+ function d(w) {
995
+ ce();
996
+ }
997
+ function r() {
990
998
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
991
999
  }
992
- function r(F) {
993
- let b = "";
994
- switch (F) {
1000
+ function m(w) {
1001
+ let g = "";
1002
+ switch (w) {
995
1003
  case 1: {
996
- b = "col-12";
1004
+ g = "col-12";
997
1005
  break;
998
1006
  }
999
1007
  case 2: {
1000
- b = "col-12 col-md-6 col-xl-6 col-el-6";
1008
+ g = "col-12 col-md-6 col-xl-6 col-el-6";
1001
1009
  break;
1002
1010
  }
1003
1011
  case 3: {
1004
- b = "col-12 col-md-6 col-xl-4 col-el-4";
1012
+ g = "col-12 col-md-6 col-xl-4 col-el-4";
1005
1013
  break;
1006
1014
  }
1007
1015
  case 4: {
1008
- b = "col-12 col-md-6 col-xl-3 col-el-2";
1016
+ g = "col-12 col-md-6 col-xl-3 col-el-2";
1009
1017
  break;
1010
1018
  }
1011
1019
  }
1012
- return b;
1013
- }
1014
- function m(F) {
1015
- const b = t.componentInstance.value.getBelongedComponentInstance(t.componentInstance);
1016
- if (b && b.schema && b.schema.componentType) {
1017
- const { formColumns: w } = b.schema;
1018
- let R = r(w);
1019
- R = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(R, "", t.schema), F.appearance || (F.appearance = {}), F.appearance.class = R;
1020
+ return g;
1021
+ }
1022
+ function h(w) {
1023
+ const g = t.componentInstance.value.getBelongedComponentInstance(t.componentInstance);
1024
+ if (g && g.schema && g.schema.componentType) {
1025
+ const { formColumns: L } = g.schema;
1026
+ let y = m(L);
1027
+ y = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(y, "", t.schema), w.appearance || (w.appearance = {}), w.appearance.class = y;
1020
1028
  }
1021
1029
  }
1022
- function v(F, b) {
1023
- const { bindingSourceContext: w, parentComponentInstance: R } = F;
1024
- if (w != null && w.entityFieldNode && R) {
1025
- const C = e == null ? void 0 : e.designViewModelUtils, O = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(R.belongedComponentId), U = C.getDgViewModel(O);
1026
- U.removeField([w.entityFieldNode.id]), U.addField(w.designViewModelField), b && U.changeField(w.entityFieldNode.id, { editor: { $type: b } });
1030
+ function v(w, g) {
1031
+ const { bindingSourceContext: L, parentComponentInstance: y } = w;
1032
+ if (L != null && L.entityFieldNode && y) {
1033
+ const P = e == null ? void 0 : e.designViewModelUtils, U = (e == null ? void 0 : e.formSchemaUtils).getViewModelIdByComponentId(y.belongedComponentId), z = P.getDgViewModel(U);
1034
+ z.removeField([L.entityFieldNode.id]), z.addField(L.designViewModelField), g && z.changeField(L.entityFieldNode.id, { editor: { $type: g } });
1027
1035
  }
1028
1036
  }
1029
- function h(F, b) {
1030
- var P, O;
1031
- const w = n;
1032
- if ((w.appearance && w.appearance.class || "").split(" ").includes("f-form-layout")) {
1033
- const { label: U } = F;
1034
- let z;
1035
- return (P = F.bindingSourceContext) != null && P.entityFieldNode ? z = (e == null ? void 0 : e.controlCreatorUtils).setFormFieldProperty((O = F.bindingSourceContext) == null ? void 0 : O.entityFieldNode, b.type) : (z = ke("form-group"), z.editor = b, z.label = U), m(z), v(F, b.type), z;
1037
+ function b(w, g) {
1038
+ var O, U;
1039
+ const L = n;
1040
+ if ((L.appearance && L.appearance.class || "").split(" ").includes("f-form-layout")) {
1041
+ const { label: z } = w;
1042
+ let H;
1043
+ return (O = w.bindingSourceContext) != null && O.entityFieldNode ? H = (e == null ? void 0 : e.controlCreatorUtils).setFormFieldProperty((U = w.bindingSourceContext) == null ? void 0 : U.entityFieldNode, g.type) : (H = ke("form-group"), H.editor = g, H.label = z), h(H), v(w, g.type), H;
1036
1044
  }
1037
- return b;
1045
+ return g;
1038
1046
  }
1039
- function g() {
1047
+ function F() {
1040
1048
  return a;
1041
1049
  }
1042
- function x() {
1050
+ function M() {
1043
1051
  return l;
1044
1052
  }
1045
- function M() {
1053
+ function C() {
1046
1054
  return !1;
1047
1055
  }
1048
- function y(F) {
1049
- return new Eo(F, e).getPropertyConfig(n, t.componentInstance.value);
1056
+ function R(w) {
1057
+ return new Io(w, e).getPropertyConfig(n, t.componentInstance.value);
1050
1058
  }
1051
1059
  return {
1052
- canAccepts: u,
1053
- checkCanDeleteComponent: x,
1054
- checkCanMoveComponent: g,
1055
- getStyles: d,
1056
- getPropsConfig: y,
1057
- hideNestedPaddingInDesginerView: M,
1058
- onAcceptMovedChildElement: i,
1059
- onResolveNewComponentSchema: h
1060
+ canAccepts: i,
1061
+ checkCanDeleteComponent: M,
1062
+ checkCanMoveComponent: F,
1063
+ getStyles: r,
1064
+ getPropsConfig: R,
1065
+ hideNestedPaddingInDesginerView: C,
1066
+ onAcceptMovedChildElement: d,
1067
+ onResolveNewComponentSchema: b
1060
1068
  };
1061
1069
  }
1062
1070
  function Ze(t) {
@@ -1069,7 +1077,7 @@ function _e(t, e) {
1069
1077
  const n = Ze(t);
1070
1078
  n && n.classList.remove(e);
1071
1079
  }
1072
- function Fe(t, e) {
1080
+ function xe(t, e) {
1073
1081
  if (e === void 0)
1074
1082
  return;
1075
1083
  const n = Ze(t);
@@ -1098,7 +1106,7 @@ function et(t, e, n = 0) {
1098
1106
  _e(e, "f-area-response--" + t.className[c]);
1099
1107
  else
1100
1108
  for (let c = t.className.length; c < o.length; c++)
1101
- Fe(e, "f-area-response--" + o[c]);
1109
+ xe(e, "f-area-response--" + o[c]);
1102
1110
  t.className = [...o];
1103
1111
  }
1104
1112
  }
@@ -1112,11 +1120,11 @@ function So(t, e) {
1112
1120
  }
1113
1121
  function Re(t, e) {
1114
1122
  if (t.enable)
1115
- Fe(e, "f-area-response"), et(t, e);
1123
+ xe(e, "f-area-response"), et(t, e);
1116
1124
  else {
1117
1125
  _e(e, "f-area-response");
1118
1126
  for (let n = t.className.length; n > 0; n--)
1119
- Fe(e, "f-area-response--" + t.className[n]);
1127
+ xe(e, "f-area-response--" + t.className[n]);
1120
1128
  t.className = [];
1121
1129
  }
1122
1130
  So(t, e);
@@ -1146,7 +1154,7 @@ const Lo = {
1146
1154
  beforeUnmount(t, e, n) {
1147
1155
  Ke(n.sharedObject);
1148
1156
  }
1149
- }, Do = /* @__PURE__ */ H({
1157
+ }, Do = /* @__PURE__ */ X({
1150
1158
  name: "FResponseFormDesign",
1151
1159
  directives: {
1152
1160
  "area-response": Lo
@@ -1154,11 +1162,11 @@ const Lo = {
1154
1162
  props: le,
1155
1163
  emits: [],
1156
1164
  setup(t, e) {
1157
- const n = p(), o = ee("design-item-context"), a = ee("designer-host-service"), s = Io(o, a), l = Ye(n, o, s);
1165
+ const n = p(), o = ee("design-item-context"), a = ee("designer-host-service"), s = Eo(o, a), l = Ye(n, o, s);
1158
1166
  J(() => {
1159
1167
  n.value.componentInstance = l;
1160
1168
  }), e.expose(l.value);
1161
- const c = L(() => {
1169
+ const c = S(() => {
1162
1170
  const u = t.customClass.split(" "), i = {
1163
1171
  "drag-container": !0
1164
1172
  };
@@ -1177,7 +1185,7 @@ const Lo = {
1177
1185
  required: { type: Boolean, default: !1 },
1178
1186
  text: { type: String, default: "" },
1179
1187
  title: { type: String }
1180
- }, tt = /* @__PURE__ */ H({
1188
+ }, tt = /* @__PURE__ */ X({
1181
1189
  name: "FDynamicFormLabel",
1182
1190
  props: Po,
1183
1191
  emits: [],
@@ -1192,7 +1200,7 @@ const Lo = {
1192
1200
  title: n.value
1193
1201
  }, [o.value && f("span", {
1194
1202
  class: "farris-label-info text-danger"
1195
- }, [X("*")]), f("span", {
1203
+ }, [Y("*")]), f("span", {
1196
1204
  class: "farris-label-text"
1197
1205
  }, [a.value])]);
1198
1206
  }
@@ -1416,7 +1424,7 @@ const No = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-
1416
1424
  properties: jo,
1417
1425
  required: zo,
1418
1426
  ignore: qo
1419
- }, Ie = {
1427
+ }, Ee = {
1420
1428
  id: { Type: String, default: "" },
1421
1429
  /** 是否自动完成 */
1422
1430
  autocomplete: { Type: String, default: "off" },
@@ -1484,18 +1492,18 @@ const No = "https://json-schema.org/draft/2020-12/schema", Oo = "https://farris-
1484
1492
  */
1485
1493
  updateOn: { type: String, default: "blur" }
1486
1494
  };
1487
- de(Ie, Go, Vo, Ro);
1495
+ pe(Ee, Go, Vo, Ro);
1488
1496
  function nt(t, e) {
1489
- const n = p(t.groupText), o = L(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), a = L(() => t.enableClear || !!t.groupText);
1490
- return { appendedButtonClass: L(() => ({
1497
+ const n = p(t.groupText), o = S(() => t.showButtonWhenDisabled && (t.readonly || t.disabled)), a = S(() => t.enableClear || !!t.groupText);
1498
+ return { appendedButtonClass: S(() => ({
1491
1499
  "input-group-append": !0,
1492
1500
  "append-force-show": o.value
1493
1501
  })), appendedContent: n, shouldShowAppendedButton: a };
1494
1502
  }
1495
1503
  function ot(t, e, n, o) {
1496
- const { appendedContent: a } = o, s = p(t.enableViewPassword), l = L(() => t.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', i = p(!1);
1497
- W(() => [t.readonly, t.disabled], ([m, v]) => {
1498
- l.value && (n.value = m || v ? "password" : n.value, a.value = m || v ? u : a.value);
1504
+ const { appendedContent: a } = o, s = p(t.enableViewPassword), l = S(() => t.type === "password"), c = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', i = p(!1);
1505
+ W(() => [t.readonly, t.disabled], ([m, h]) => {
1506
+ l.value && (n.value = m || h ? "password" : n.value, a.value = m || h ? u : a.value);
1499
1507
  });
1500
1508
  function d() {
1501
1509
  return i.value = !i.value, n.value = i.value ? "text" : "password", a.value = i.value ? c : u, !1;
@@ -1512,23 +1520,23 @@ function Wo(t, e, n) {
1512
1520
  onInput: l,
1513
1521
  onKeyDown: c,
1514
1522
  textBoxValue: u
1515
- } = n, i = L(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), d = L(() => ({
1523
+ } = n, i = S(() => t.disabled || t.readonly || !t.editable ? "" : t.placeholder), d = S(() => ({
1516
1524
  "form-control": !0,
1517
1525
  "f-utils-fill": !0
1518
- })), r = L(() => ({
1526
+ })), r = S(() => ({
1519
1527
  "text-align": t.textAlign
1520
1528
  }));
1521
- function m(g) {
1522
- g.stopPropagation();
1529
+ function m(b) {
1530
+ b.stopPropagation();
1523
1531
  }
1524
- function v() {
1532
+ function h() {
1525
1533
  t.selectOnCreated, t.focusOnCreated;
1526
1534
  }
1527
- async function h(g) {
1528
- s(g), await ue, v();
1535
+ async function v(b) {
1536
+ s(b), await ce, h();
1529
1537
  }
1530
1538
  return J(async () => {
1531
- await ue, v();
1539
+ await ce, h();
1532
1540
  }), () => f("input", {
1533
1541
  ref: o,
1534
1542
  class: d.value,
@@ -1540,7 +1548,7 @@ function Wo(t, e, n) {
1540
1548
  placeholder: i.value,
1541
1549
  onBlur: a,
1542
1550
  onChange: m,
1543
- onFocus: h,
1551
+ onFocus: v,
1544
1552
  onInput: l,
1545
1553
  onKeydown: c
1546
1554
  }, null);
@@ -1551,18 +1559,18 @@ function Ho(t, e, n) {
1551
1559
  canUpward: a,
1552
1560
  onClickDownButton: s,
1553
1561
  onClickUpButton: l
1554
- } = n, c = L(() => ({
1562
+ } = n, c = S(() => ({
1555
1563
  "input-group-append": !0,
1556
1564
  "btn-group": !0,
1557
1565
  "btn-group-number": !0
1558
- })), u = L(() => ({
1566
+ })), u = S(() => ({
1559
1567
  btn: !0,
1560
1568
  "btn-secondary": !0,
1561
1569
  "btn-number-flag": !0
1562
- })), i = L(() => ({
1570
+ })), i = S(() => ({
1563
1571
  cursor: a() ? "pointer" : "not-allowed",
1564
1572
  "margin-left": 0
1565
- })), d = L(() => ({
1573
+ })), d = S(() => ({
1566
1574
  cursor: o() ? "pointer" : "not-allowed",
1567
1575
  "margin-left": 0
1568
1576
  }));
@@ -1595,20 +1603,20 @@ function Xo(t, e) {
1595
1603
  format: r
1596
1604
  } = o, {
1597
1605
  isFocus: m
1598
- } = s, v = L(() => !t.disabled && !t.readonly);
1606
+ } = s, h = S(() => !t.disabled && !t.readonly);
1599
1607
  return J(() => {
1600
- const h = i(t.modelValue);
1601
- c.value = r(h);
1602
- }), W(() => [t.value], ([h]) => {
1603
- const g = i(h);
1604
- u.value = g, c.value = r(g);
1605
- }), W(() => [t.modelValue], ([h]) => {
1606
- h !== u.value && (u.value = h, !m.value && (c.value = r(i(h))));
1608
+ const v = i(t.modelValue);
1609
+ c.value = r(v);
1610
+ }), W(() => [t.value], ([v]) => {
1611
+ const b = i(v);
1612
+ u.value = b, c.value = r(b);
1613
+ }), W(() => [t.modelValue], ([v]) => {
1614
+ v !== u.value && (u.value = v, !m.value && (c.value = r(i(v))));
1607
1615
  }), W(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
1608
1616
  c.value = r(u.value);
1609
1617
  }), () => f("div", {
1610
1618
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1611
- }, [d(), v.value && l()]);
1619
+ }, [d(), h.value && l()]);
1612
1620
  }
1613
1621
  function Yo(t, e, n, o) {
1614
1622
  const a = p(), s = p(t.autocomplete), l = p(t.enableTitle), {
@@ -1616,17 +1624,17 @@ function Yo(t, e, n, o) {
1616
1624
  } = n, u = p(t.minLength), i = p(t.maxLength), d = p(t.tabIndex), {
1617
1625
  disabled: r,
1618
1626
  displayText: m,
1619
- inputType: v,
1620
- onBlur: h,
1621
- onFocus: g,
1622
- onInput: x,
1627
+ inputType: h,
1628
+ onBlur: v,
1629
+ onFocus: b,
1630
+ onInput: F,
1623
1631
  onClick: M,
1624
- onKeydown: y,
1625
- onKeyup: F,
1626
- onMousedown: b,
1627
- onTextBoxValueChange: w,
1628
- readonly: R,
1629
- placeholder: C,
1632
+ onKeydown: C,
1633
+ onKeyup: R,
1634
+ onMousedown: w,
1635
+ onTextBoxValueChange: g,
1636
+ readonly: L,
1637
+ placeholder: y,
1630
1638
  textBoxClass: P,
1631
1639
  textBoxTitle: O
1632
1640
  } = o;
@@ -1640,24 +1648,24 @@ function Yo(t, e, n, o) {
1640
1648
  disabled: r == null ? void 0 : r.value,
1641
1649
  maxlength: i.value,
1642
1650
  minlength: u.value,
1643
- placeholder: C.value,
1644
- readonly: R == null ? void 0 : R.value,
1651
+ placeholder: y.value,
1652
+ readonly: L == null ? void 0 : L.value,
1645
1653
  tabindex: d.value,
1646
1654
  title: l.value && !c.value ? O.value : "",
1647
- type: v.value,
1655
+ type: h.value,
1648
1656
  value: m == null ? void 0 : m.value,
1649
- onBlur: h,
1657
+ onBlur: v,
1650
1658
  onClick: M,
1651
- onChange: w,
1652
- onFocus: g,
1653
- onInput: x,
1654
- onKeydown: y,
1655
- onKeyup: F,
1656
- onMousedown: b
1659
+ onChange: g,
1660
+ onFocus: b,
1661
+ onInput: F,
1662
+ onKeydown: C,
1663
+ onKeyup: R,
1664
+ onMousedown: w
1657
1665
  }, null);
1658
1666
  }
1659
1667
  function Jo(t, e) {
1660
- const n = L(() => t.useExtendInfo && !!t.extendInfo), o = Z({
1668
+ const n = S(() => t.useExtendInfo && !!t.extendInfo), o = Z({
1661
1669
  content: t.extendInfo
1662
1670
  });
1663
1671
  function a() {
@@ -1676,57 +1684,57 @@ function at(t, e, n, o, a) {
1676
1684
  const {
1677
1685
  appendedButtonClass: s,
1678
1686
  appendedContent: l
1679
- } = n, c = L(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), u = L(() => l.value && !e.slots.groupTextTemplate), i = L(() => !!e.slots.groupTextTemplate), {
1687
+ } = n, c = S(() => t.showButtonWhenDisabled && (!t.editable || !t.readonly) && !t.disabled), u = S(() => l.value && !e.slots.groupTextTemplate), i = S(() => !!e.slots.groupTextTemplate), {
1680
1688
  clearButtonClass: d,
1681
1689
  clearButtonStyle: r,
1682
1690
  onClearValue: m,
1683
- shouldShowClearButton: v
1691
+ shouldShowClearButton: h
1684
1692
  } = o;
1685
- function h() {
1693
+ function v() {
1686
1694
  return f("span", {
1687
1695
  id: "clearIcon",
1688
1696
  class: d.value,
1689
1697
  style: r.value,
1690
- onClick: (C) => m(C)
1698
+ onClick: (y) => m(y)
1691
1699
  }, [f("i", {
1692
1700
  class: "f-icon modal_close"
1693
1701
  }, null)]);
1694
1702
  }
1695
- function g(C) {
1696
- e.emit("iconMouseEnter", C);
1703
+ function b(y) {
1704
+ e.emit("iconMouseEnter", y);
1697
1705
  }
1698
- function x(C) {
1699
- e.emit("iconMouseLeave", C);
1706
+ function F(y) {
1707
+ e.emit("iconMouseLeave", y);
1700
1708
  }
1701
- function M(C) {
1709
+ function M(y) {
1702
1710
  c.value && e.emit("clickHandle", {
1703
- originalEvent: C
1704
- }), C.stopPropagation();
1711
+ originalEvent: y
1712
+ }), y.stopPropagation();
1705
1713
  }
1706
- const y = t.type === "password" ? a.onClickAppendedButton : M;
1707
- function F() {
1714
+ const C = t.type === "password" ? a.onClickAppendedButton : M;
1715
+ function R() {
1708
1716
  return f("span", {
1709
1717
  class: "input-group-text",
1710
- onMouseenter: (C) => g(C),
1711
- onMouseleave: (C) => x(C),
1718
+ onMouseenter: (y) => b(y),
1719
+ onMouseleave: (y) => F(y),
1712
1720
  innerHTML: l.value,
1713
- onClick: (C) => y(C)
1721
+ onClick: (y) => C(y)
1714
1722
  }, null);
1715
1723
  }
1716
- function b() {
1724
+ function w() {
1717
1725
  return e.slots.groupTextTemplate && e.slots.groupTextTemplate();
1718
1726
  }
1719
- function w() {
1720
- return u.value ? F : i.value ? b : "";
1727
+ function g() {
1728
+ return u.value ? R : i.value ? w : "";
1721
1729
  }
1722
- const R = w();
1730
+ const L = g();
1723
1731
  return () => f("div", {
1724
1732
  class: s.value
1725
- }, [v.value && h(), R && R()]);
1733
+ }, [h.value && v(), L && L()]);
1726
1734
  }
1727
- const Qo = /* @__PURE__ */ H({
1735
+ const Qo = /* @__PURE__ */ X({
1728
1736
  name: "FInputGroup",
1729
- props: Ie,
1737
+ props: Ee,
1730
1738
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1731
1739
  setup(t, e) {
1732
1740
  const n = p(t.modelValue), o = p(t.modelValue), a = Nt(t, e, n, o), {
@@ -1738,35 +1746,35 @@ const Qo = /* @__PURE__ */ H({
1738
1746
  } = u, d = je(t, e, a), {
1739
1747
  onMouseEnter: r,
1740
1748
  onMouseLeave: m
1741
- } = d, v = ot(t, e, l, u), h = Xo(t, e), g = Yo(t, e, v, a), x = at(t, e, u, d, v), M = Jo(t, e), y = L(() => t.type === "number");
1742
- W(() => [t.value], ([b]) => {
1743
- n.value = b, o.value = b;
1744
- }), W(() => [t.modelValue], ([b]) => {
1745
- n.value = b, o.value = b;
1749
+ } = d, h = ot(t, e, l, u), v = Xo(t, e), b = Yo(t, e, h, a), F = at(t, e, u, d, h), M = Jo(t, e), C = S(() => t.type === "number");
1750
+ W(() => [t.value], ([w]) => {
1751
+ n.value = w, o.value = w;
1752
+ }), W(() => [t.modelValue], ([w]) => {
1753
+ n.value = w, o.value = w;
1746
1754
  }), J(() => {
1747
1755
  t.value && (n.value = t.value, o.value = t.value);
1748
1756
  });
1749
- const F = () => f(ae, null, [f("div", {
1757
+ const R = () => f(ae, null, [f("div", {
1750
1758
  id: t.id,
1751
1759
  class: s.value,
1752
1760
  style: c.value,
1753
1761
  onMouseenter: r,
1754
1762
  onMouseleave: m
1755
- }, [y.value ? h() : f(ae, null, [M(), g(), i.value && x()])])]);
1756
- return () => F();
1763
+ }, [C.value ? v() : f(ae, null, [M(), b(), i.value && F()])])]);
1764
+ return () => R();
1757
1765
  }
1758
- }), B = {}, k = {}, E = {}, S = {};
1766
+ }), T = {}, B = {}, k = {}, E = {};
1759
1767
  let Oe = !1;
1760
1768
  function Zo() {
1761
- Oe || (Oe = !0, Gt.register(B, k, E, S), qt.register(B, k, E, S), Wt.register(B, k, E, S), Ht.register(B, k, E, S), Xt.register(B, k, E, S), Yt.register(B, k, E, S), Jt.register(B, k, E, S), oe.register(B, k, E, S), Qt.register(B, k, E, S), Zt.register(B, k, E, S), Kt.register(B, k, E, S), _t.register(B, k, E, S), en.register(B, k, E, S), tn.register(B, k, E, S), nn.register(B, k, E, S), on.register(B, k, E, S), an.register(B, k, E, S), ln.register(B, k, E, S), sn.register(B, k, E, S), un.register(B, k, E, S), cn.register(B, k, E, S), dn.register(B, k, E, S), mn.register(B, k, E, S), pn.register(B, k, E, S), fn.register(B, k, E, S), vn.register(B, k, E, S), hn.register(B, k, E, S), yn.register(B, k, E, S), At.register(B, k, E, S), gn.register(B, k, E, S), Cn.register(B, k, E, S), bn.register(B, k, E, S), wn.register(B, k, E, S), Mn.register(B, k, E, S), xn.register(B, k, E, S), Fn.register(B, k, E, S), Tn.register(B, k, E, S), kn.register(B, k, E, S), En.register(B, k, E, S), Bn.register(B, k, E, S), Hn.register(B, k, E), In.register(B, k, E, S), Sn.register(B, k, E, S), Ln.register(B, k, E, S), Dn.register(B, k, E, S), Pn.register(B, k, E, S), Vn.register(B, k, E, S), Rn.register(B, k, E, S), Nn.register(B, k, E, S), On.register(B, k, E, S), An.register(B, k, E, S), $n.register(B, k, E, S), Un.register(B, k, E, S), zn.register(B, k, E, S), jn.register(B, k, E, S), qn.register(B, k, E, S), Gn.register(B, k, E, S), Wn.register(B, k, E, S), Xn.register(B, k, E, S), rn.register(B, k, E, S), Yn.register(B, k, E, S));
1769
+ Oe || (Oe = !0, Gt.register(T, B, k, E), qt.register(T, B, k, E), Wt.register(T, B, k, E), Ht.register(T, B, k, E), Xt.register(T, B, k, E), Yt.register(T, B, k, E), Jt.register(T, B, k, E), oe.register(T, B, k, E), Qt.register(T, B, k, E), Zt.register(T, B, k, E), Kt.register(T, B, k, E), _t.register(T, B, k, E), en.register(T, B, k, E), tn.register(T, B, k, E), nn.register(T, B, k, E), on.register(T, B, k, E), an.register(T, B, k, E), ln.register(T, B, k, E), sn.register(T, B, k, E), un.register(T, B, k, E), cn.register(T, B, k, E), dn.register(T, B, k, E), mn.register(T, B, k, E), pn.register(T, B, k, E), fn.register(T, B, k, E), vn.register(T, B, k, E), hn.register(T, B, k, E), yn.register(T, B, k, E), At.register(T, B, k, E), gn.register(T, B, k, E), Cn.register(T, B, k, E), bn.register(T, B, k, E), wn.register(T, B, k, E), Mn.register(T, B, k, E), Fn.register(T, B, k, E), xn.register(T, B, k, E), Tn.register(T, B, k, E), kn.register(T, B, k, E), In.register(T, B, k, E), Bn.register(T, B, k, E), Hn.register(T, B, k), En.register(T, B, k, E), Sn.register(T, B, k, E), Ln.register(T, B, k, E), Dn.register(T, B, k, E), Pn.register(T, B, k, E), Vn.register(T, B, k, E), Rn.register(T, B, k, E), Nn.register(T, B, k, E), On.register(T, B, k, E), An.register(T, B, k, E), $n.register(T, B, k, E), Un.register(T, B, k, E), zn.register(T, B, k, E), jn.register(T, B, k, E), qn.register(T, B, k, E), Gn.register(T, B, k, E), Wn.register(T, B, k, E), Xn.register(T, B, k, E), rn.register(T, B, k, E), Yn.register(T, B, k, E));
1762
1770
  }
1763
1771
  function lt() {
1764
1772
  Zo();
1765
1773
  function t(a) {
1766
- return B[a] || Qo;
1774
+ return T[a] || Qo;
1767
1775
  }
1768
1776
  function e(a, s) {
1769
- const l = k[a];
1777
+ const l = B[a];
1770
1778
  return l ? l(s) : {};
1771
1779
  }
1772
1780
  function n(a) {
@@ -1843,7 +1851,7 @@ function lt() {
1843
1851
  }
1844
1852
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
1845
1853
  }
1846
- const we = /* @__PURE__ */ H({
1854
+ const we = /* @__PURE__ */ X({
1847
1855
  name: "FDynamicFormGroup",
1848
1856
  props: le,
1849
1857
  emits: ["change", "update:modelValue"],
@@ -1852,32 +1860,32 @@ const we = /* @__PURE__ */ H({
1852
1860
  p(t.type);
1853
1861
  const r = p(), {
1854
1862
  resolveEditorProps: m,
1855
- resolveEditorType: v,
1856
- getChangeFunctionName: h,
1857
- getClearFunctionName: g
1858
- } = lt(), x = L(() => ({
1863
+ resolveEditorType: h,
1864
+ getChangeFunctionName: v,
1865
+ getClearFunctionName: b
1866
+ } = lt(), F = S(() => ({
1859
1867
  "form-group": !0,
1860
1868
  "farris-form-group": !0,
1861
1869
  "common-group": !0,
1862
1870
  "q-state-readonly": c.value
1863
1871
  }));
1864
- function M(b, w) {
1865
- l.value = w !== void 0 ? w : b, e.emit("update:modelValue", l.value), e.emit("change", l.value);
1872
+ function M(w, g) {
1873
+ l.value = g !== void 0 ? g : w, e.emit("update:modelValue", l.value), e.emit("change", l.value);
1866
1874
  }
1867
- function y() {
1875
+ function C() {
1868
1876
  e.emit("update:modelValue", "");
1869
1877
  }
1870
- const F = L(() => {
1871
- const b = a.value.type || "input-group", w = v(b), R = m(b, a.value), C = h(b), P = g(a.value.type);
1872
- return P && (R[P] = y), R[C] = M, (R.id == null || R.id === "") && (R.id = n.value), () => f(w, te({
1878
+ const R = S(() => {
1879
+ const w = a.value.type || "input-group", g = h(w), L = m(w, a.value), y = v(w), P = b(a.value.type);
1880
+ return P && (L[P] = C), L[y] = M, (L.id == null || L.id === "") && (L.id = n.value), () => f(g, te({
1873
1881
  ref: r
1874
- }, R, {
1882
+ }, L, {
1875
1883
  modelValue: l.value,
1876
1884
  "onUpdate:modelValue": (O) => l.value = O
1877
1885
  }), e.slots);
1878
1886
  });
1879
- return W([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([b, w, R, C, P, O, U, z, Y]) => {
1880
- n.value = b, o.value = w, a.value = R, s.value = C, l.value = P, c.value = O, u.value = U, i.value = z, d.value = Y;
1887
+ return W([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible], ([w, g, L, y, P, O, U, z, H]) => {
1888
+ n.value = w, o.value = g, a.value = L, s.value = y, l.value = P, c.value = O, u.value = U, i.value = z, d.value = H;
1881
1889
  }), e.expose({
1882
1890
  editorRef: r
1883
1891
  }), () => d.value && f("div", {
@@ -1887,7 +1895,7 @@ const we = /* @__PURE__ */ H({
1887
1895
  }, [f("div", {
1888
1896
  class: "farris-group-wrap"
1889
1897
  }, [f("div", {
1890
- class: x.value
1898
+ class: F.value
1891
1899
  }, [i.value && f(tt, {
1892
1900
  id: `${n.value}-lable`,
1893
1901
  required: u.value,
@@ -1895,7 +1903,7 @@ const we = /* @__PURE__ */ H({
1895
1903
  title: s.value
1896
1904
  }, null), f("div", {
1897
1905
  class: "farris-input-wrap"
1898
- }, [F.value()])])])]);
1906
+ }, [R.value()])])])]);
1899
1907
  }
1900
1908
  }), _o = {}, Ko = {}, K = class K {
1901
1909
  /**
@@ -1967,7 +1975,7 @@ N(K, "fieldControlTypeMapping", {
1967
1975
  { key: V["radio-group"].type, value: V["radio-group"].name }
1968
1976
  ]
1969
1977
  });
1970
- let ce = K;
1978
+ let de = K;
1971
1979
  const ea = p(0);
1972
1980
  class ta extends Je {
1973
1981
  constructor(n, o) {
@@ -2002,7 +2010,7 @@ class ta extends Je {
2002
2010
  textField: "value",
2003
2011
  valueField: "key",
2004
2012
  editable: !1,
2005
- data: a.designViewModelField ? ce.getEditorTypesByMDataType((s = a.designViewModelField.type) == null ? void 0 : s.name) : ce.getAllInputTypes()
2013
+ data: a.designViewModelField ? de.getEditorTypesByMDataType((s = a.designViewModelField.type) == null ? void 0 : s.name) : de.getAllInputTypes()
2006
2014
  }
2007
2015
  },
2008
2016
  label: {
@@ -2095,11 +2103,11 @@ class ta extends Je {
2095
2103
  * @param newControlType 新控件类型
2096
2104
  */
2097
2105
  changeControlType(n, o, a) {
2098
- var d, r, m, v;
2106
+ var d, r, m, h;
2099
2107
  const s = o.propertyValue, l = a && a.parent && a.parent.schema;
2100
2108
  if (!l)
2101
2109
  return;
2102
- const c = l.contents.findIndex((h) => h.id === n.id), u = l.contents[c];
2110
+ const c = l.contents.findIndex((v) => v.id === n.id), u = l.contents[c];
2103
2111
  let i;
2104
2112
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
2105
2113
  editor: {
@@ -2120,9 +2128,9 @@ class ta extends Je {
2120
2128
  placeholder: (d = u.editor) == null ? void 0 : d.placeholder,
2121
2129
  holdPlace: (r = u.editor) == null ? void 0 : r.holdPlace,
2122
2130
  readonly: (m = u.editor) == null ? void 0 : m.readonly,
2123
- require: (v = u.editor) == null ? void 0 : v.require
2131
+ require: (h = u.editor) == null ? void 0 : h.require
2124
2132
  }), l.contents.splice(c, 1), l.contents.splice(c, 0, i), a.schema = Object.assign(u, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
2125
- (h) => h.classList.remove("dgComponentSelected")
2133
+ (v) => v.classList.remove("dgComponentSelected")
2126
2134
  ), ea.value++;
2127
2135
  }
2128
2136
  getComponentConfig(n, o = {}, a = {}) {
@@ -2185,15 +2193,15 @@ class ta extends Je {
2185
2193
  return;
2186
2194
  const s = [];
2187
2195
  if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, s, 1), o) {
2188
- const h = s.find((g) => g.id === o.id);
2189
- Object.assign(h || {}, o);
2196
+ const v = s.find((b) => b.id === o.id);
2197
+ Object.assign(v || {}, o);
2190
2198
  }
2191
- const l = s.map((h) => h.columnInSM), c = s.map((h) => h.columnInMD), u = s.map((h) => h.columnInLG), i = s.map((h) => h.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, r = this.checkIsUniqueColumn(c) ? c[0] : null, m = this.checkIsUniqueColumn(u) ? u[0] : null, v = this.checkIsUniqueColumn(i) ? i[0] : null;
2199
+ const l = s.map((v) => v.columnInSM), c = s.map((v) => v.columnInMD), u = s.map((v) => v.columnInLG), i = s.map((v) => v.columnInEL), d = this.checkIsUniqueColumn(l) ? l[0] : null, r = this.checkIsUniqueColumn(c) ? c[0] : null, m = this.checkIsUniqueColumn(u) ? u[0] : null, h = this.checkIsUniqueColumn(i) ? i[0] : null;
2192
2200
  Object.assign(a.unifiedLayout, {
2193
2201
  uniqueColClassInSM: d,
2194
2202
  uniqueColClassInMD: r,
2195
2203
  uniqueColClassInLG: m,
2196
- uniqueColClassInEL: v
2204
+ uniqueColClassInEL: h
2197
2205
  });
2198
2206
  }
2199
2207
  /**
@@ -2216,9 +2224,9 @@ function oa(t, e) {
2216
2224
  }
2217
2225
  return { getPropsConfig: o };
2218
2226
  }
2219
- const aa = /* @__PURE__ */ H({
2227
+ const aa = /* @__PURE__ */ X({
2220
2228
  name: "FInputGroupDesign",
2221
- props: Ie,
2229
+ props: Ee,
2222
2230
  emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
2223
2231
  setup(t, e) {
2224
2232
  const n = p(t.modelValue), o = p(t.modelValue), a = Ot(t, e, n, o), {
@@ -2230,24 +2238,24 @@ const aa = /* @__PURE__ */ H({
2230
2238
  } = u, d = je(t, e, a), {
2231
2239
  onMouseEnter: r,
2232
2240
  onMouseLeave: m
2233
- } = d, v = ot(t, e, l, u), h = p(), g = ee("designer-host-service"), x = ee("design-item-context"), M = oa(x, g), y = Rt(h, x, M);
2241
+ } = d, h = ot(t, e, l, u), v = p(), b = ee("designer-host-service"), F = ee("design-item-context"), M = oa(F, b), C = Rt(v, F, M);
2234
2242
  J(() => {
2235
- h.value.componentInstance = y;
2236
- }), e.expose(y.value);
2237
- const F = at(t, e, u, d, v), b = p();
2243
+ v.value.componentInstance = C;
2244
+ }), e.expose(C.value);
2245
+ const R = at(t, e, u, d, h), w = p();
2238
2246
  return () => f("div", {
2239
2247
  id: "inputGroup",
2240
- ref: h,
2248
+ ref: v,
2241
2249
  class: s.value,
2242
2250
  style: c.value,
2243
2251
  onMouseenter: r,
2244
2252
  onMouseleave: m
2245
2253
  }, [f("input", {
2246
- ref: b,
2254
+ ref: w,
2247
2255
  class: "form-control",
2248
2256
  readonly: !0,
2249
2257
  placeholder: t.placeholder
2250
- }, null), i.value && F()]);
2258
+ }, null), i.value && R()]);
2251
2259
  }
2252
2260
  });
2253
2261
  function la() {
@@ -2264,7 +2272,7 @@ function la() {
2264
2272
  }
2265
2273
  return { getChangeFunctionName: n, getClearFunctionName: o, resolveEditorProps: t, resolveEditorType: e };
2266
2274
  }
2267
- const sa = /* @__PURE__ */ H({
2275
+ const sa = /* @__PURE__ */ X({
2268
2276
  name: "FDynamicFormGroupDesign",
2269
2277
  props: le,
2270
2278
  emits: ["change", "update:modelValue"],
@@ -2274,23 +2282,23 @@ const sa = /* @__PURE__ */ H({
2274
2282
  const d = p(), {
2275
2283
  resolveEditorProps: r,
2276
2284
  resolveEditorType: m
2277
- } = la(), v = L(() => ({
2285
+ } = la(), h = S(() => ({
2278
2286
  "form-group": !0,
2279
2287
  "farris-form-group": !0,
2280
2288
  "common-group": !0,
2281
2289
  "q-state-readonly": c.value,
2282
2290
  "form-group-in-canvas": !0
2283
- })), h = L(() => {
2284
- const g = a.value.type || "input-group", x = m(g), M = r(g, a.value);
2285
- return () => f(x, te({
2291
+ })), v = S(() => {
2292
+ const b = a.value.type || "input-group", F = m(b), M = r(b, a.value);
2293
+ return () => f(F, te({
2286
2294
  ref: d
2287
2295
  }, M, {
2288
2296
  modelValue: l.value,
2289
- "onUpdate:modelValue": (y) => l.value = y
2297
+ "onUpdate:modelValue": (C) => l.value = C
2290
2298
  }), null);
2291
2299
  });
2292
- return W([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel], ([g, x, M, y, F, b, w, R]) => {
2293
- n.value = g, o.value = x, a.value = M, s.value = y, l.value = F, c.value = b, u.value = w, i.value = R;
2300
+ return W([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel], ([b, F, M, C, R, w, g, L]) => {
2301
+ n.value = b, o.value = F, a.value = M, s.value = C, l.value = R, c.value = w, u.value = g, i.value = L;
2294
2302
  }), e.expose({
2295
2303
  editorRef: d
2296
2304
  }), () => f("div", {
@@ -2300,7 +2308,7 @@ const sa = /* @__PURE__ */ H({
2300
2308
  }, [f("div", {
2301
2309
  class: "farris-group-wrap"
2302
2310
  }, [f("div", {
2303
- class: v.value
2311
+ class: h.value
2304
2312
  }, [i.value && f(tt, {
2305
2313
  id: `${n.value}-lable`,
2306
2314
  required: u.value,
@@ -2308,7 +2316,7 @@ const sa = /* @__PURE__ */ H({
2308
2316
  title: s.value
2309
2317
  }, null), f("div", {
2310
2318
  class: "farris-input-wrap"
2311
- }, [h.value()])])])]);
2319
+ }, [v.value()])])])]);
2312
2320
  }
2313
2321
  });
2314
2322
  function ra(t, e) {
@@ -2325,12 +2333,12 @@ function ra(t, e) {
2325
2333
  return !0;
2326
2334
  }
2327
2335
  function l(i) {
2328
- var g;
2329
- const d = e == null ? void 0 : e.designViewModelUtils, r = e == null ? void 0 : e.formSchemaUtils, m = (g = t == null ? void 0 : t.componentInstance.value) == null ? void 0 : g.belongedComponentId;
2336
+ var b;
2337
+ const d = e == null ? void 0 : e.designViewModelUtils, r = e == null ? void 0 : e.formSchemaUtils, m = (b = t == null ? void 0 : t.componentInstance.value) == null ? void 0 : b.belongedComponentId;
2330
2338
  if (!m || !d || !r)
2331
2339
  return;
2332
- const v = r.getViewModelIdByComponentId(m), h = d.getDgViewModel(v);
2333
- h && h.removeField([i]);
2340
+ const h = r.getViewModelIdByComponentId(m), v = d.getDgViewModel(h);
2341
+ v && v.removeField([i]);
2334
2342
  }
2335
2343
  function c(i) {
2336
2344
  const d = e == null ? void 0 : e.formSchemaUtils;
@@ -2351,7 +2359,7 @@ function ra(t, e) {
2351
2359
  onRemoveComponent: u
2352
2360
  };
2353
2361
  }
2354
- const ia = /* @__PURE__ */ H({
2362
+ const ia = /* @__PURE__ */ X({
2355
2363
  name: "FFormGroupDesign",
2356
2364
  props: le,
2357
2365
  emits: [],
@@ -2381,12 +2389,12 @@ const ia = /* @__PURE__ */ H({
2381
2389
  * 作为内嵌编辑器被创建后默认选中文本
2382
2390
  */
2383
2391
  selectOnCreated: { type: Boolean, default: !1 }
2384
- }, ua = de(
2392
+ }, ua = pe(
2385
2393
  st,
2386
2394
  Xe,
2387
- Ee,
2395
+ Ie,
2388
2396
  void 0
2389
- ), ca = /* @__PURE__ */ H({
2397
+ ), ca = /* @__PURE__ */ X({
2390
2398
  name: "FDynamicFormInput",
2391
2399
  props: st,
2392
2400
  emits: ["change", "update:modelValue"],
@@ -2399,13 +2407,13 @@ const ia = /* @__PURE__ */ H({
2399
2407
  function u(d, r) {
2400
2408
  a.value = r !== void 0 ? r : d, e.emit("update:modelValue", a.value), e.emit("change", a.value);
2401
2409
  }
2402
- const i = L(() => {
2410
+ const i = S(() => {
2403
2411
  const d = l(o.value.type), r = s(o.value.type, o.value);
2404
2412
  r.focusOnCreated = t.focusOnCreated, r.selectOnCreated = t.selectOnCreated;
2405
2413
  const m = c(o.value.type);
2406
2414
  return r[m] = u, (r.id == null || r.id === "") && (r.id = n.value), () => f(d, te(r, {
2407
2415
  modelValue: a.value,
2408
- "onUpdate:modelValue": (v) => a.value = v
2416
+ "onUpdate:modelValue": (h) => a.value = h
2409
2417
  }), null);
2410
2418
  });
2411
2419
  return W([() => t.id, () => t.editor, () => t.modelValue], ([d, r, m]) => {
@@ -2485,7 +2493,7 @@ async function Ma(t) {
2485
2493
  if (!a)
2486
2494
  throw Se();
2487
2495
  }
2488
- async function xa(t) {
2496
+ async function Fa(t) {
2489
2497
  try {
2490
2498
  await wa(t);
2491
2499
  } catch (e) {
@@ -2496,14 +2504,14 @@ async function xa(t) {
2496
2504
  }
2497
2505
  }
2498
2506
  }
2499
- function Fa() {
2507
+ function xa() {
2500
2508
  async function t(e) {
2501
- await xa(e);
2509
+ await Fa(e);
2502
2510
  }
2503
2511
  return { onCopy: t };
2504
2512
  }
2505
2513
  function Ta(t, e, n, o) {
2506
- const a = p(14), s = p(140), l = p(""), c = p(o.value.length), u = L(() => o.value), i = L(() => ({
2514
+ const a = p(14), s = p(140), l = p(""), c = p(o.value.length), u = S(() => o.value), i = S(() => ({
2507
2515
  "font-size": `${a.value}px`,
2508
2516
  height: "100%"
2509
2517
  }));
@@ -2537,7 +2545,7 @@ function Ba(t, e, n, o) {
2537
2545
  function ka() {
2538
2546
  const t = p(!1), e = p("复制成功");
2539
2547
  return {
2540
- feedbackStyle: L(() => {
2548
+ feedbackStyle: S(() => {
2541
2549
  const o = {
2542
2550
  position: "absolute",
2543
2551
  left: "50%",
@@ -2560,36 +2568,36 @@ function ka() {
2560
2568
  toShowFeedback: t
2561
2569
  };
2562
2570
  }
2563
- function Ea(t, e) {
2571
+ function Ia(t, e) {
2564
2572
  const n = e.getEditorRender(t.promptEditorType);
2565
2573
  return () => n && n();
2566
2574
  }
2567
- function Ia(t) {
2568
- const e = p(3), n = p(480), o = L(() => !!t.value && !!t.value.date), a = L(() => `发生时间 : ${t.value && t.value.date || ""}`), s = L(() => !!t.value && !!t.value.detail), l = L(() => {
2569
- const x = `${n.value}px`;
2575
+ function Ea(t) {
2576
+ const e = p(3), n = p(480), o = S(() => !!t.value && !!t.value.date), a = S(() => `发生时间 : ${t.value && t.value.date || ""}`), s = S(() => !!t.value && !!t.value.detail), l = S(() => {
2577
+ const F = `${n.value}px`;
2570
2578
  return {
2571
2579
  overflow: "hidden",
2572
2580
  "text-overflow": "ellipsis",
2573
2581
  display: "-webkit-box",
2574
2582
  "-webkit-box-orient": "vertical",
2575
2583
  "-webkit-line-clamp": e.value,
2576
- "max-height": x
2584
+ "max-height": F
2577
2585
  };
2578
- }), c = L(() => t.value && t.value.detail || ""), u = L(() => !0), i = p(!1), d = p("展开"), r = p("收起"), m = L(() => {
2579
- const x = {
2586
+ }), c = S(() => t.value && t.value.detail || ""), u = S(() => !0), i = p(!1), d = p("展开"), r = p("收起"), m = S(() => {
2587
+ const F = {
2580
2588
  display: "block",
2581
2589
  color: "#2A87FF"
2582
2590
  };
2583
- return x["text-align"] = i.value ? "" : "right", x;
2591
+ return F["text-align"] = i.value ? "" : "right", F;
2584
2592
  });
2585
- function v(x, M) {
2593
+ function h(F, M) {
2586
2594
  i.value = !i.value, e.value = i.value ? 20 : 3;
2587
2595
  }
2588
- function h(x) {
2589
- return v();
2596
+ function v(F) {
2597
+ return h();
2590
2598
  }
2591
- function g(x) {
2592
- return v();
2599
+ function b(F) {
2600
+ return h();
2593
2601
  }
2594
2602
  return () => f("div", {
2595
2603
  class: "toast-msg-detail"
@@ -2597,15 +2605,15 @@ function Ia(t) {
2597
2605
  id: "exception_error_msg",
2598
2606
  ref: "exceptionMessageRef",
2599
2607
  style: l.value
2600
- }, [X("详细信息 : "), f("span", {
2608
+ }, [Y("详细信息 : "), f("span", {
2601
2609
  innerHTML: c.value
2602
2610
  }, null)]), u.value && f("span", {
2603
2611
  style: m.value
2604
2612
  }, [i.value && f("span", {
2605
- onClick: h,
2613
+ onClick: v,
2606
2614
  style: "cursor: pointer;"
2607
2615
  }, [r.value]), !i.value && f("span", {
2608
- onClick: g,
2616
+ onClick: b,
2609
2617
  style: "cursor: pointer;"
2610
2618
  }, [d.value])])]);
2611
2619
  }
@@ -2616,14 +2624,14 @@ function Sa(t) {
2616
2624
  }, null);
2617
2625
  }
2618
2626
  function La(t, e, n, o) {
2619
- const a = p(t.exceptionInfo), s = L(() => {
2627
+ const a = p(t.exceptionInfo), s = S(() => {
2620
2628
  const m = {
2621
2629
  "f-icon": !0
2622
- }, v = `f-icon-${e.value}`;
2623
- return m[v] = !0, m;
2624
- }), l = L(() => n.value || a.value && a.value.message), c = L(() => o.value), u = L(() => !!o.value), i = L(() => !!a.value);
2630
+ }, h = `f-icon-${e.value}`;
2631
+ return m[h] = !0, m;
2632
+ }), l = S(() => n.value || a.value && a.value.message), c = S(() => o.value), u = S(() => !!o.value), i = S(() => !!a.value);
2625
2633
  function d() {
2626
- return i.value ? Ia(a) : u.value ? Sa(c) : () => null;
2634
+ return i.value ? Ea(a) : u.value ? Sa(c) : () => null;
2627
2635
  }
2628
2636
  const r = d();
2629
2637
  return () => f(ae, null, [f("div", {
@@ -2646,7 +2654,7 @@ function Da(t, e, n) {
2646
2654
  date: "",
2647
2655
  message: "",
2648
2656
  detail: ""
2649
- }), u = L(() => c.value && c.value.detail || "");
2657
+ }), u = S(() => c.value && c.value.detail || "");
2650
2658
  function i(d) {
2651
2659
  o(u.value).catch((r) => {
2652
2660
  s.value = "复制失败";
@@ -2664,47 +2672,47 @@ function Da(t, e, n) {
2664
2672
  }, [l.value])]);
2665
2673
  }
2666
2674
  function Pa(t, e, n, o) {
2667
- const a = p(t.type), s = p([]), l = p(t.exceptionInfo), c = p(t.okButtonText), u = p(t.cancelButtonText), i = p(!0), d = p(!0), r = L(() => !!(s.value && s.value.length)), m = L(() => l.value && l.value.date && l.value.message && l.value.detail), v = L(() => !(s.value && s.value.length) && (c.value || u.value)), h = L(() => d.value && c.value), g = L(() => i.value && u.value), x = Da(t, n, o);
2668
- function M(F) {
2675
+ const a = p(t.type), s = p([]), l = p(t.exceptionInfo), c = p(t.okButtonText), u = p(t.cancelButtonText), i = p(!0), d = p(!0), r = S(() => !!(s.value && s.value.length)), m = S(() => l.value && l.value.date && l.value.message && l.value.detail), h = S(() => !(s.value && s.value.length) && (c.value || u.value)), v = S(() => d.value && c.value), b = S(() => i.value && u.value), F = Da(t, n, o);
2676
+ function M(R) {
2669
2677
  a.value === "question" && e.emit("reject"), e.emit("close");
2670
2678
  }
2671
- function y(F) {
2679
+ function C(R) {
2672
2680
  a.value === "question" && e.emit("accept"), e.emit("close");
2673
2681
  }
2674
2682
  return () => f("div", {
2675
2683
  class: "modal-footer"
2676
- }, [m.value && x(), v.value && g.value && f("button", {
2684
+ }, [m.value && F(), h.value && b.value && f("button", {
2677
2685
  type: "button",
2678
2686
  class: "btn btn-secondary btn-lg",
2679
2687
  onClick: M
2680
- }, [u.value]), v.value && h.value && f("button", {
2688
+ }, [u.value]), h.value && v.value && f("button", {
2681
2689
  type: "button",
2682
2690
  class: "btn btn-primary btn-lg",
2683
- onClick: y
2684
- }, [c.value]), r.value && s.value.length && s.value.map((F) => f("button", {
2691
+ onClick: C
2692
+ }, [c.value]), r.value && s.value.length && s.value.map((R) => f("button", {
2685
2693
  type: "button",
2686
- onClick: F.handle,
2687
- class: F.class
2688
- }, [F.iconClass && f("span", {
2689
- class: F.iconClass
2690
- }, null), F.text]))]);
2694
+ onClick: R.handle,
2695
+ class: R.class
2696
+ }, [R.iconClass && f("span", {
2697
+ class: R.iconClass
2698
+ }, null), R.text]))]);
2691
2699
  }
2692
- const ie = /* @__PURE__ */ H({
2700
+ const ue = /* @__PURE__ */ X({
2693
2701
  name: "FMessageBox",
2694
2702
  props: ba,
2695
2703
  emits: ["accept", "reject", "close"],
2696
2704
  setup(t, e) {
2697
- const n = p(t.type), o = p(t.title), a = p(t.detail), s = L(() => {
2698
- const x = {
2705
+ const n = p(t.type), o = p(t.title), a = p(t.detail), s = S(() => {
2706
+ const F = {
2699
2707
  "modal-tips": !0,
2700
2708
  "d-flex": !0,
2701
2709
  "flex-row": !0
2702
2710
  }, M = `messager-type-${n.value}`;
2703
- return x[M] = !0, x;
2704
- }), l = L(() => {
2705
- const x = {};
2706
- return n.value === "prompt" ? x.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (x.padding = "0.5rem 1.5rem 1rem 1.5rem"), x;
2707
- }), c = Fa(), u = Ba(t, n, o, a), i = ka(), {
2711
+ return F[M] = !0, F;
2712
+ }), l = S(() => {
2713
+ const F = {};
2714
+ return n.value === "prompt" ? F.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (F.padding = "0.5rem 1.5rem 1rem 1.5rem"), F;
2715
+ }), c = xa(), u = Ba(t, n, o, a), i = ka(), {
2708
2716
  feedbackStyle: d,
2709
2717
  feedbackMessage: r
2710
2718
  } = i;
@@ -2713,21 +2721,21 @@ const ie = /* @__PURE__ */ H({
2713
2721
  style: d.value
2714
2722
  }, [r.value]);
2715
2723
  }
2716
- function v() {
2724
+ function h() {
2717
2725
  switch (n.value) {
2718
2726
  case "prompt":
2719
- return Ea(t, u);
2727
+ return Ia(t, u);
2720
2728
  default:
2721
2729
  return La(t, n, o, a);
2722
2730
  }
2723
2731
  }
2724
- const h = v(), g = Pa(t, e, c, i);
2732
+ const v = h(), b = Pa(t, e, c, i);
2725
2733
  return () => f("div", {
2726
2734
  class: "farris-messager"
2727
2735
  }, [f("section", {
2728
2736
  class: s.value,
2729
2737
  style: l.value
2730
- }, [h()]), g(), m()]);
2738
+ }, [v()]), b(), m()]);
2731
2739
  }
2732
2740
  }), Va = {
2733
2741
  /**
@@ -2874,8 +2882,8 @@ class _ {
2874
2882
  }
2875
2883
  }
2876
2884
  function Ra(t, e) {
2877
- const n = p(), o = p(), a = p(), s = p(), l = p(), c = p(), u = p(), i = p(), d = p(), r = p(), m = p(), v = p(), h = p(t.draggable), g = p(!1);
2878
- function x() {
2885
+ const n = p(), o = p(), a = p(), s = p(), l = p(), c = p(), u = p(), i = p(), d = p(), r = p(), m = p(), h = p(), v = p(t.draggable), b = p(!1);
2886
+ function F() {
2879
2887
  const I = o.value || document.body, D = window.getComputedStyle(I);
2880
2888
  if (!D || !n.value)
2881
2889
  return;
@@ -2886,7 +2894,7 @@ function Ra(t, e) {
2886
2894
  }
2887
2895
  function M(I) {
2888
2896
  if (n.value) {
2889
- s.value = _.getCurrent(n.value), l.value = q.getCurrent(n.value), c.value = s.value ? _.copy(s.value) : null, u.value = l.value ? q.copy(l.value) : null, x();
2897
+ s.value = _.getCurrent(n.value), l.value = q.getCurrent(n.value), c.value = s.value ? _.copy(s.value) : null, u.value = l.value ? q.copy(l.value) : null, F();
2890
2898
  const D = I.target.getAttribute("type") || "";
2891
2899
  i.value = {
2892
2900
  n: !!D.match(/n/),
@@ -2896,18 +2904,18 @@ function Ra(t, e) {
2896
2904
  };
2897
2905
  }
2898
2906
  }
2899
- function y() {
2907
+ function C() {
2900
2908
  var I, D, $, A;
2901
2909
  if (n.value) {
2902
2910
  const G = n.value;
2903
2911
  i.value && ((i.value.n || i.value.s) && ((I = c.value) != null && I.height) && (G.style.height = c.value.height + "px"), (i.value.w || i.value.e) && ((D = c.value) != null && D.width) && (G.style.width = c.value.width + "px"), u.value && (($ = u.value) != null && $.x && (G.style.left = u.value.x + "px"), (A = u.value) != null && A.y && (G.style.top = u.value.y + "px")));
2904
2912
  }
2905
2913
  }
2906
- function F() {
2914
+ function R() {
2907
2915
  const I = t.minHeight ? t.minHeight : 1, D = t.minWidth ? t.minWidth : 1;
2908
2916
  c.value && u.value && i.value && s.value && (c.value.height < I && (c.value.height = I, i.value.n && l.value && (u.value.y = l.value.y + (s.value.height - I))), c.value.width < D && (c.value.width = D, i.value.w && l.value && (u.value.x = l.value.x + (s.value.width - D))), t.maxHeight && c.value.height > t.maxHeight && (c.value.height = t.maxHeight, l.value && i.value.n && (u.value.y = l.value.y + (s.value.height - t.maxHeight))), t.maxWidth && c.value.width > t.maxWidth && (c.value.width = t.maxWidth, i.value.w && l.value && (u.value.x = l.value.x + (s.value.width - t.maxWidth))));
2909
2917
  }
2910
- function b() {
2918
+ function w() {
2911
2919
  if (o.value) {
2912
2920
  const I = r.value;
2913
2921
  if (u.value && c.value && i.value && s.value) {
@@ -2916,20 +2924,20 @@ function Ra(t, e) {
2916
2924
  }
2917
2925
  }
2918
2926
  }
2919
- function w(I) {
2927
+ function g(I) {
2920
2928
  if (!a.value || !s.value || !l.value || !i.value)
2921
2929
  return;
2922
2930
  I.subtract(a.value);
2923
2931
  const D = I.x, $ = I.y;
2924
- i.value.n ? (u.value.y = l.value.y + $, c.value.height = s.value.height - $) : i.value.s && (c.value.height = s.value.height + $), i.value.e ? c.value.width = s.value.width + D : i.value.w && (c.value.width = s.value.width - D, u.value.x = l.value.x + D), b(), F(), y();
2932
+ i.value.n ? (u.value.y = l.value.y + $, c.value.height = s.value.height - $) : i.value.s && (c.value.height = s.value.height + $), i.value.e ? c.value.width = s.value.width + D : i.value.w && (c.value.width = s.value.width - D, u.value.x = l.value.x + D), w(), R(), C();
2925
2933
  }
2926
- function R(I) {
2934
+ function L(I) {
2927
2935
  if (!d.value)
2928
2936
  return;
2929
2937
  const D = q.fromEvent(I);
2930
- D && w(D);
2938
+ D && g(D);
2931
2939
  }
2932
- function C() {
2940
+ function y() {
2933
2941
  if (n.value) {
2934
2942
  const {
2935
2943
  width: I,
@@ -2952,16 +2960,16 @@ function Ra(t, e) {
2952
2960
  }
2953
2961
  function P(I) {
2954
2962
  if (n.value) {
2955
- const D = C();
2963
+ const D = y();
2956
2964
  m.value = D;
2957
2965
  }
2958
- a.value = void 0, s.value = null, l.value = null, c.value = null, u.value = null, i.value = null, d.value = null, document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", P);
2966
+ a.value = void 0, s.value = null, l.value = null, c.value = null, u.value = null, i.value = null, d.value = null, document.removeEventListener("mousemove", L), document.removeEventListener("mouseup", P);
2959
2967
  }
2960
2968
  function O() {
2961
- document.addEventListener("mousemove", R), document.addEventListener("mouseup", P);
2969
+ document.addEventListener("mousemove", L), document.addEventListener("mouseup", P);
2962
2970
  }
2963
2971
  function U(I) {
2964
- I instanceof MouseEvent && I.button === 2 || h.value && (I.stopPropagation(), I.preventDefault(), a.value = q.fromEvent(I), d.value = I.target, M(I), O());
2972
+ I instanceof MouseEvent && I.button === 2 || v.value && (I.stopPropagation(), I.preventDefault(), a.value = q.fromEvent(I), d.value = I.target, M(I), O());
2965
2973
  }
2966
2974
  function z(I) {
2967
2975
  return n.value = I, f(ae, null, [f("div", {
@@ -2998,22 +3006,22 @@ function Ra(t, e) {
2998
3006
  onMousedown: (D) => U(D)
2999
3007
  }, null)]);
3000
3008
  }
3001
- function Y(I = !0) {
3009
+ function H(I = !0) {
3002
3010
  const D = o.value || document.body, $ = _.getCurrent(D), A = n.value;
3003
- I && (v.value = C(), v.value.transform = A.style.transform), $ && A && (c.value = $, A.style.height = c.value.height - 14 + "px", A.style.width = c.value.width - 14 + "px", A.style.left = "7px", A.style.top = "7px", A.style.transform = "", m.value = {
3011
+ I && (h.value = y(), h.value.transform = A.style.transform), $ && A && (c.value = $, A.style.height = c.value.height - 14 + "px", A.style.width = c.value.width - 14 + "px", A.style.left = "7px", A.style.top = "7px", A.style.transform = "", m.value = {
3004
3012
  size: c.value,
3005
3013
  position: {
3006
3014
  x: 0,
3007
3015
  y: 0
3008
3016
  }
3009
- }, h.value = !1, g.value = !0);
3017
+ }, v.value = !1, b.value = !0);
3010
3018
  }
3011
- function pe() {
3019
+ function se() {
3012
3020
  var I, D;
3013
- if (v.value) {
3021
+ if (h.value) {
3014
3022
  const $ = {
3015
- width: v.value.size.width || 0,
3016
- height: v.value.size.height || 0
3023
+ width: h.value.size.width || 0,
3024
+ height: h.value.size.height || 0
3017
3025
  }, A = {
3018
3026
  x: (window.innerWidth - $.width) / 2,
3019
3027
  y: (window.innerHeight - $.height) / 2
@@ -3023,7 +3031,7 @@ function Ra(t, e) {
3023
3031
  G.style.height = $.height + "px", G.style.width = $.width + "px", G.style.left = `${A.x}px`, G.style.top = `${A.y}px`, G.style.transform = "", m.value = {
3024
3032
  size: $,
3025
3033
  position: A
3026
- }, h.value = t.draggable, g.value = !1;
3034
+ }, v.value = t.draggable, b.value = !1;
3027
3035
  }
3028
3036
  }
3029
3037
  function me() {
@@ -3040,88 +3048,88 @@ function Ra(t, e) {
3040
3048
  }
3041
3049
  function fe() {
3042
3050
  const I = () => {
3043
- g.value ? Y(!1) : me();
3051
+ b.value ? H(!1) : me();
3044
3052
  };
3045
3053
  return window.addEventListener("resize", I), () => {
3046
3054
  window.removeEventListener("resize", I);
3047
3055
  };
3048
3056
  }
3049
- const se = fe();
3057
+ const re = fe();
3050
3058
  return {
3051
3059
  renderResizeBar: z,
3052
3060
  boundingElement: o,
3053
3061
  resizedEventParam: m,
3054
- maximize: Y,
3055
- restore: pe,
3056
- allowDrag: h,
3057
- isMaximized: g,
3058
- unWindowResizeHandle: se
3062
+ maximize: H,
3063
+ restore: se,
3064
+ allowDrag: v,
3065
+ isMaximized: b,
3066
+ unWindowResizeHandle: re
3059
3067
  };
3060
3068
  }
3061
3069
  function Na(t, e, n) {
3062
3070
  const o = p(), a = p(t.draggable), s = p(t.lockAxis), l = p(), c = p(), u = p(!1), i = p(new q(0, 0)), d = p(new q(0, 0)), r = p(new q(0, 0)), m = p(new q(0, 0));
3063
- W(() => n.value, (C) => {
3064
- l.value.style.cursor = C ? "move" : "default";
3071
+ W(() => n.value, (y) => {
3072
+ l.value.style.cursor = y ? "move" : "default";
3065
3073
  });
3066
- function v(C, P) {
3074
+ function h(y, P) {
3067
3075
  if (P.tagName === "BUTTON")
3068
3076
  return !1;
3069
- if (P === C)
3077
+ if (P === y)
3070
3078
  return !0;
3071
3079
  for (const O in P.children)
3072
- if (Object.prototype.hasOwnProperty.call(P.children, O) && v(C, P.children[O]))
3080
+ if (Object.prototype.hasOwnProperty.call(P.children, O) && h(y, P.children[O]))
3073
3081
  return !0;
3074
3082
  return !1;
3075
3083
  }
3076
- function h() {
3084
+ function v() {
3077
3085
  var U, z;
3078
- let C = r.value.x + d.value.x, P = r.value.y + d.value.y;
3079
- s.value === "x" ? (C = ((U = i.value) == null ? void 0 : U.x) || 0, r.value.x = 0) : s.value === "y" && (P = ((z = i.value) == null ? void 0 : z.y) || 0, r.value.y = 0);
3080
- const O = `translate3d(${Math.round(C)}px, ${Math.round(P)}px, 0px)`;
3081
- o.value && (o.value.style.transform = O), m.value.x = C, m.value.y = P;
3086
+ let y = r.value.x + d.value.x, P = r.value.y + d.value.y;
3087
+ s.value === "x" ? (y = ((U = i.value) == null ? void 0 : U.x) || 0, r.value.x = 0) : s.value === "y" && (P = ((z = i.value) == null ? void 0 : z.y) || 0, r.value.y = 0);
3088
+ const O = `translate3d(${Math.round(y)}px, ${Math.round(P)}px, 0px)`;
3089
+ o.value && (o.value.style.transform = O), m.value.x = y, m.value.y = P;
3082
3090
  }
3083
- function g() {
3091
+ function b() {
3084
3092
  if (!c.value || !o.value)
3085
3093
  return null;
3086
- const C = c.value.getBoundingClientRect(), P = o.value.getBoundingClientRect(), O = {
3087
- top: C.top < P.top,
3088
- right: C.right > P.right,
3089
- bottom: C.bottom > P.bottom,
3090
- left: C.left < P.left
3094
+ const y = c.value.getBoundingClientRect(), P = o.value.getBoundingClientRect(), O = {
3095
+ top: y.top < P.top,
3096
+ right: y.right > P.right,
3097
+ bottom: y.bottom > P.bottom,
3098
+ left: y.left < P.left
3091
3099
  };
3092
- return O.top || (r.value.y -= P.top - C.top), O.bottom || (r.value.y -= P.bottom - C.bottom), O.right || (r.value.x -= P.right - C.right), O.left || (r.value.x -= P.left - C.left), h(), O;
3100
+ return O.top || (r.value.y -= P.top - y.top), O.bottom || (r.value.y -= P.bottom - y.bottom), O.right || (r.value.x -= P.right - y.right), O.left || (r.value.x -= P.left - y.left), v(), O;
3093
3101
  }
3094
- function x(C) {
3095
- C && (i.value && C.subtract(i.value), r.value.set(C), h(), g());
3102
+ function F(y) {
3103
+ y && (i.value && y.subtract(i.value), r.value.set(y), v(), b());
3096
3104
  }
3097
- function M(C) {
3098
- u.value && a.value && (C.stopPropagation(), C.preventDefault(), x(q.fromEvent(C, l.value)));
3105
+ function M(y) {
3106
+ u.value && a.value && (y.stopPropagation(), y.preventDefault(), F(q.fromEvent(y, l.value)));
3099
3107
  }
3100
- function y() {
3101
- var C;
3102
- u.value && (u.value = !1, d.value.add(r.value), r.value.reset(), (C = o.value) == null || C.classList.remove("ng-dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", y));
3108
+ function C() {
3109
+ var y;
3110
+ u.value && (u.value = !1, d.value.add(r.value), r.value.reset(), (y = o.value) == null || y.classList.remove("ng-dragging"), document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", C));
3103
3111
  }
3104
- function F() {
3105
- !u.value && l.value && (u.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", M), document.addEventListener("mouseup", y));
3112
+ function R() {
3113
+ !u.value && l.value && (u.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", M), document.addEventListener("mouseup", C));
3106
3114
  }
3107
- function b() {
3115
+ function w() {
3108
3116
  if (o.value) {
3109
- const C = q.getTransformInfo(o.value);
3110
- d.value.set(C);
3117
+ const y = q.getTransformInfo(o.value);
3118
+ d.value.set(y);
3111
3119
  return;
3112
3120
  }
3113
3121
  d.value.reset();
3114
3122
  }
3115
- function w(C) {
3116
- if (!n.value || C instanceof MouseEvent && C.button === 2)
3123
+ function g(y) {
3124
+ if (!n.value || y instanceof MouseEvent && y.button === 2)
3117
3125
  return;
3118
- const P = C.target || C.srcElement;
3119
- l.value !== void 0 && P && !v(P, l.value) || a.value !== !1 && (document.body.click(), C.stopPropagation(), C.preventDefault(), i.value = q.fromEvent(C, o.value), b(), F());
3126
+ const P = y.target || y.srcElement;
3127
+ l.value !== void 0 && P && !h(P, l.value) || a.value !== !1 && (document.body.click(), y.stopPropagation(), y.preventDefault(), i.value = q.fromEvent(y, o.value), w(), R());
3120
3128
  }
3121
- function R(C, P, O) {
3129
+ function L(y, P, O) {
3122
3130
  if (a.value && P) {
3123
- if (C)
3124
- l.value = C;
3131
+ if (y)
3132
+ l.value = y;
3125
3133
  else if (t.dragHandle) {
3126
3134
  if (t.dragHandle instanceof HTMLElement)
3127
3135
  l.value = t.dragHandle;
@@ -3130,12 +3138,12 @@ function Na(t, e, n) {
3130
3138
  U && (l.value = U);
3131
3139
  }
3132
3140
  }
3133
- o.value = P, c.value = O, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", w);
3141
+ o.value = P, c.value = O, l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", g);
3134
3142
  }
3135
3143
  }
3136
3144
  return {
3137
- registerDraggle: R,
3138
- resetTranslate: b
3145
+ registerDraggle: L,
3146
+ resetTranslate: w
3139
3147
  };
3140
3148
  }
3141
3149
  function it(t, e) {
@@ -3166,125 +3174,125 @@ function Aa(t, e) {
3166
3174
  remove: o
3167
3175
  }) : null;
3168
3176
  }
3169
- const ut = /* @__PURE__ */ H({
3177
+ const ut = /* @__PURE__ */ X({
3170
3178
  name: "FModal",
3171
3179
  props: Va,
3172
3180
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
3173
3181
  setup(t, e) {
3174
- const n = p(t.width || 300), o = p(t.height || 200), a = p(t.modelValue), s = p(""), l = p(t.class), c = p(t.fitContent), u = p(t.showHeader), i = p(""), d = p(t.showCloseButton), r = p(t.showMaxButton), m = p(!1), v = p(""), h = p(""), g = p(""), x = p(t.showButtons), M = p(t.title), y = p(t.reiszeable), F = p(t.containment || null), b = p();
3175
- function w(T, j) {
3176
- a.value = !1, e.emit("update:modelValue", !1), j != null && e.emit(j ? "accept" : "cancel"), e.emit("closed", T);
3182
+ const n = p(t.width || 300), o = p(t.height || 200), a = p(t.modelValue), s = p(""), l = p(t.class), c = p(t.fitContent), u = p(t.showHeader), i = p(""), d = p(t.showCloseButton), r = p(t.showMaxButton), m = p(!1), h = p(""), v = p(""), b = p(""), F = p(t.showButtons), M = p(t.title), C = p(t.reiszeable), R = p(t.containment || null), w = p();
3183
+ function g(x, j) {
3184
+ a.value = !1, e.emit("update:modelValue", !1), j != null && e.emit(j ? "accept" : "cancel"), e.emit("closed", x);
3177
3185
  }
3178
- const R = [{
3186
+ const L = [{
3179
3187
  name: "cancel",
3180
3188
  text: "取消",
3181
3189
  class: "btn btn-secondary",
3182
- handle: (T) => {
3183
- w(T, !1);
3190
+ handle: (x) => {
3191
+ g(x, !1);
3184
3192
  }
3185
3193
  }, {
3186
3194
  name: "accept",
3187
3195
  text: "确定",
3188
3196
  class: "btn btn-primary",
3189
- handle: (T) => {
3190
- w(T, !0);
3197
+ handle: (x) => {
3198
+ g(x, !0);
3191
3199
  }
3192
- }], C = p(t.buttons && t.buttons.length ? t.buttons : R), P = L(() => !!i.value), O = L(() => !!x.value && !!C.value), U = p(), z = p(), Y = p(!1), {
3193
- renderResizeBar: pe,
3200
+ }], y = p(t.buttons && t.buttons.length ? t.buttons : L), P = S(() => !!i.value), O = S(() => !!F.value && !!y.value), U = p(), z = p(), H = p(!1), {
3201
+ renderResizeBar: se,
3194
3202
  maximize: me,
3195
3203
  restore: fe,
3196
- boundingElement: se,
3204
+ boundingElement: re,
3197
3205
  resizedEventParam: I,
3198
3206
  allowDrag: D,
3199
3207
  unWindowResizeHandle: $
3200
3208
  } = Ra(t), {
3201
3209
  registerDraggle: A
3202
3210
  } = Na(t, e, D);
3203
- W(() => t.title, (T, j) => {
3204
- T !== j && (M.value = T);
3205
- }), W(() => t.modelValue, (T, j) => {
3206
- T !== j && (a.value = T);
3207
- }), W(() => t.showHeader, (T, j) => {
3208
- T !== j && (u.value = T);
3209
- }), W(() => t.showButtons, (T, j) => {
3210
- T !== j && (x.value = T);
3211
- }), W(() => I.value, (T, j) => {
3212
- const ne = T || {}, re = j || {};
3213
- JSON.stringify(ne) !== JSON.stringify(re) && e.emit("resize", {
3214
- newSize: T,
3211
+ W(() => t.title, (x, j) => {
3212
+ x !== j && (M.value = x);
3213
+ }), W(() => t.modelValue, (x, j) => {
3214
+ x !== j && (a.value = x);
3215
+ }), W(() => t.showHeader, (x, j) => {
3216
+ x !== j && (u.value = x);
3217
+ }), W(() => t.showButtons, (x, j) => {
3218
+ x !== j && (F.value = x);
3219
+ }), W(() => I.value, (x, j) => {
3220
+ const ne = x || {}, ie = j || {};
3221
+ JSON.stringify(ne) !== JSON.stringify(ie) && e.emit("resize", {
3222
+ newSize: x,
3215
3223
  oldSize: j
3216
3224
  });
3217
3225
  });
3218
3226
  function G() {
3219
- const T = document.querySelectorAll(".farris-modal").length;
3220
- (!T || T - 1 <= 0) && document.body.classList.remove("modal-open"), b.value && b.value.classList.remove("show");
3227
+ const x = document.querySelectorAll(".farris-modal").length;
3228
+ (!x || x - 1 <= 0) && document.body.classList.remove("modal-open"), w.value && w.value.classList.remove("show");
3221
3229
  }
3222
- const ve = L(() => (a.value ? document.body.classList.add("modal-open") : G(), a.value)), dt = L(() => {
3223
- const T = {
3230
+ const ve = S(() => (a.value ? document.body.classList.add("modal-open") : G(), a.value)), dt = S(() => {
3231
+ const x = {
3224
3232
  modal: !0,
3225
3233
  "farris-modal": !0,
3226
3234
  fade: !0
3227
3235
  };
3228
- return T["f-modal-fitContent"] = !!c.value, T.show = !!ve.value, T;
3229
- }), pt = L(() => {
3236
+ return x["f-modal-fitContent"] = !!c.value, x.show = !!ve.value, x;
3237
+ }), pt = S(() => {
3230
3238
  var ne;
3231
- const T = {
3239
+ const x = {
3232
3240
  "modal-dialog": !0
3233
3241
  }, j = (ne = l.value) == null ? void 0 : ne.split(" ");
3234
- return j == null || j.reduce((re, Bt) => (re[Bt] = !0, re), T), T;
3235
- }), mt = L(() => ({
3242
+ return j == null || j.reduce((ie, Bt) => (ie[Bt] = !0, ie), x), x;
3243
+ }), mt = S(() => ({
3236
3244
  position: "absolute",
3237
3245
  top: `${(window.innerHeight - o.value) / 2}px`,
3238
3246
  left: `${(window.innerWidth - n.value) / 2}px`,
3239
3247
  width: `${n.value}px`,
3240
3248
  height: c.value ? "auto" : `${o.value}px`
3241
- })), ft = L(() => ({
3249
+ })), ft = S(() => ({
3242
3250
  "modal-content": !0,
3243
3251
  "modal-content-has-header": u.value
3244
- })), vt = L(() => {
3245
- const T = {
3252
+ })), vt = S(() => {
3253
+ const x = {
3246
3254
  display: u.value ? "" : "none"
3247
3255
  };
3248
- return T["pointer-events"] = D.value ? "auto" : "none", T;
3249
- }), ht = L(() => ({
3256
+ return x["pointer-events"] = D.value ? "auto" : "none", x;
3257
+ }), ht = S(() => ({
3250
3258
  "f-icon": !0,
3251
3259
  modal_maximize: !0,
3252
- modalrevert: Y.value
3253
- })), yt = L(() => ({
3260
+ modalrevert: H.value
3261
+ })), yt = S(() => ({
3254
3262
  "modal-body": !0,
3255
- "f-utils-flex-column": v.value === "iframe"
3263
+ "f-utils-flex-column": h.value === "iframe"
3256
3264
  }));
3257
3265
  function gt() {
3258
3266
  return {};
3259
3267
  }
3260
- const Ct = L(() => {
3261
- const T = {
3262
- textAlgin: g.value
3268
+ const Ct = S(() => {
3269
+ const x = {
3270
+ textAlgin: b.value
3263
3271
  }, j = gt();
3264
- return Object.assign(T, j);
3272
+ return Object.assign(x, j);
3265
3273
  });
3266
- function Le(T) {
3267
- if (T.stopPropagation(), Y.value) {
3268
- Y.value = !1, fe();
3274
+ function Le(x) {
3275
+ if (x.stopPropagation(), H.value) {
3276
+ H.value = !1, fe();
3269
3277
  return;
3270
3278
  }
3271
- me(), Y.value = !0;
3279
+ me(), H.value = !0;
3272
3280
  }
3273
- async function bt(T, j) {
3274
- T.handle && await T.handle(j, T) && e.emit("closed", j);
3281
+ async function bt(x, j) {
3282
+ x.handle && await x.handle(j, x) && e.emit("closed", j);
3275
3283
  }
3276
- function wt(T) {
3277
- T.width && (n.value = T.width), T.height && (o.value = T.height), T.buttons && (C.value = T.buttons), T.title && (M.value = T.title);
3284
+ function wt(x) {
3285
+ x.width && (n.value = x.width), x.height && (o.value = x.height), x.buttons && (y.value = x.buttons), x.title && (M.value = x.title);
3278
3286
  }
3279
3287
  let he = null, ye = null;
3280
3288
  J(() => {
3281
- z.value && !F.value && (F.value = z.value.parentElement, se.value = F.value, A(U.value, z.value, se.value)), ve.value && document.body.classList.add("modal-open"), he = Oa(t, e), ye = Aa(t, e);
3289
+ z.value && !R.value && (R.value = z.value.parentElement, re.value = R.value, A(U.value, z.value, re.value)), ve.value && document.body.classList.add("modal-open"), he = Oa(t, e), ye = Aa(t, e);
3282
3290
  }), Ue(() => {
3283
3291
  G(), $ && $(), he && he.remove(), ye && ye.remove();
3284
3292
  }), e.expose({
3285
3293
  modalElementRef: z,
3286
3294
  updateModalOptions: wt,
3287
- close: w,
3295
+ close: g,
3288
3296
  maxDialog: Le
3289
3297
  });
3290
3298
  function Mt() {
@@ -3300,28 +3308,28 @@ const ut = /* @__PURE__ */ H({
3300
3308
  class: ht.value
3301
3309
  }, null)]), d.value && f("li", {
3302
3310
  class: "f-btn-icon f-bare",
3303
- onClick: (T) => w(T, !1),
3311
+ onClick: (x) => g(x, !1),
3304
3312
  style: "pointer-events: auto;"
3305
3313
  }, [f("span", {
3306
3314
  class: "f-icon modal_close"
3307
3315
  }, null)])]);
3308
3316
  }
3309
- function xt() {
3317
+ function Ft() {
3310
3318
  return f("div", {
3311
3319
  class: "modal-footer",
3312
3320
  style: Ct.value
3313
- }, [C.value && C.value.map((T) => f("button", {
3314
- name: T.name,
3321
+ }, [y.value && y.value.map((x) => f("button", {
3322
+ name: x.name,
3315
3323
  type: "button",
3316
- class: T.class + (T.iconClass ? " btn-icontext" : ""),
3324
+ class: x.class + (x.iconClass ? " btn-icontext" : ""),
3317
3325
  onClick: (j) => {
3318
- bt(T, j);
3326
+ bt(x, j);
3319
3327
  }
3320
- }, [!!T.iconClass && f("i", {
3321
- class: T.iconClass
3322
- }, null), T.text]))]);
3328
+ }, [!!x.iconClass && f("i", {
3329
+ class: x.iconClass
3330
+ }, null), x.text]))]);
3323
3331
  }
3324
- function Ft() {
3332
+ function xt() {
3325
3333
  return f("div", {
3326
3334
  ref: U,
3327
3335
  class: "modal-header",
@@ -3337,10 +3345,10 @@ const ut = /* @__PURE__ */ H({
3337
3345
  class: "actions"
3338
3346
  }, [Mt()])]);
3339
3347
  }
3340
- function Tt(T) {
3341
- T.stopPropagation();
3348
+ function Tt(x) {
3349
+ x.stopPropagation();
3342
3350
  }
3343
- return () => f(It, {
3351
+ return () => f(Et, {
3344
3352
  to: "body"
3345
3353
  }, {
3346
3354
  default: () => [ve.value && f(St, {
@@ -3348,11 +3356,11 @@ const ut = /* @__PURE__ */ H({
3348
3356
  appear: !0
3349
3357
  }, {
3350
3358
  default: () => {
3351
- var T, j;
3359
+ var x, j;
3352
3360
  return [f("div", {
3353
3361
  class: dt.value,
3354
3362
  style: "display: block",
3355
- ref: b,
3363
+ ref: w,
3356
3364
  onClick: Tt
3357
3365
  }, [f("div", {
3358
3366
  id: s.value,
@@ -3361,15 +3369,15 @@ const ut = /* @__PURE__ */ H({
3361
3369
  ref: z
3362
3370
  }, [f("div", {
3363
3371
  class: ft.value
3364
- }, [u.value && Ft(), f("div", {
3372
+ }, [u.value && xt(), f("div", {
3365
3373
  class: yt.value
3366
- }, [(j = (T = e.slots).default) == null ? void 0 : j.call(T), v.value === "iframe" && f("iframe", {
3374
+ }, [(j = (x = e.slots).default) == null ? void 0 : j.call(x), h.value === "iframe" && f("iframe", {
3367
3375
  title: s.value,
3368
3376
  class: "f-utils-fill",
3369
3377
  width: "100%",
3370
3378
  frameborder: "0",
3371
- src: h.value
3372
- }, null)]), O.value && xt()]), !c.value && y.value && z.value && pe(z.value)])])];
3379
+ src: v.value
3380
+ }, null)]), O.value && Ft()]), !c.value && C.value && z.value && se(z.value)])])];
3373
3381
  }
3374
3382
  })]
3375
3383
  });
@@ -3390,11 +3398,11 @@ function $a(t) {
3390
3398
  document.body.removeChild(e);
3391
3399
  });
3392
3400
  const s = p(), l = p(t.class || ""), c = p(!!t.showButtons), u = p(!!t.showHeader), i = p(t.showCloseButton == null ? !0 : t.showCloseButton), d = p(!0), r = p(t.title || ""), m = t.acceptCallback || (() => {
3393
- }), v = t.rejectCallback || (() => {
3394
- }), h = t.closedCallback || ((y) => {
3395
- }), g = t.resizeHandle || ((y) => {
3396
- }), x = ct(t), M = (y) => {
3397
- d.value = !1, n.unmount(), h(y);
3401
+ }), h = t.rejectCallback || (() => {
3402
+ }), v = t.closedCallback || ((C) => {
3403
+ }), b = t.resizeHandle || ((C) => {
3404
+ }), F = ct(t), M = (C) => {
3405
+ d.value = !1, n.unmount(), v(C);
3398
3406
  };
3399
3407
  return J(() => {
3400
3408
  }), a.expose({
@@ -3403,7 +3411,7 @@ function $a(t) {
3403
3411
  ref: s,
3404
3412
  class: l.value,
3405
3413
  modelValue: d.value,
3406
- "onUpdate:modelValue": (y) => d.value = y,
3414
+ "onUpdate:modelValue": (C) => d.value = C,
3407
3415
  title: r.value,
3408
3416
  width: t.width,
3409
3417
  height: t.height,
@@ -3413,12 +3421,12 @@ function $a(t) {
3413
3421
  "show-close-button": i.value,
3414
3422
  "show-max-button": !1,
3415
3423
  onAccept: m,
3416
- onCancel: v,
3424
+ onCancel: h,
3417
3425
  fitContent: t.fitContent == null ? !0 : t.fitContent,
3418
3426
  onClosed: M,
3419
- onResize: g
3427
+ onResize: b
3420
3428
  }, {
3421
- default: () => [x && x(n)]
3429
+ default: () => [F && F(n)]
3422
3430
  });
3423
3431
  }
3424
3432
  });
@@ -3431,7 +3439,7 @@ class Ua {
3431
3439
  N(this, "activeModalIndex", p(0));
3432
3440
  N(this, "modalRefs", {});
3433
3441
  N(this, "isUseEscCloseModal", p(!1));
3434
- N(this, "activeModalInstance", L(() => this.modalRefs[this.activeModalIndex.value]));
3442
+ N(this, "activeModalInstance", S(() => this.modalRefs[this.activeModalIndex.value]));
3435
3443
  this.app = e, this.appContext = e ? e._context : null;
3436
3444
  }
3437
3445
  getCurrentModal() {
@@ -3454,27 +3462,27 @@ class Ua {
3454
3462
  showHeader: !0
3455
3463
  }, e)), a = p(!0), s = o.value.acceptCallback || (() => {
3456
3464
  }), l = o.value.rejectCallback || (() => {
3457
- }), c = o.value.closedCallback || ((M, y) => {
3465
+ }), c = o.value.closedCallback || ((M, C) => {
3458
3466
  }), u = o.value.resizeHandle || ((M) => {
3459
3467
  });
3460
3468
  let i;
3461
3469
  const d = ct(o.value), r = (M) => {
3462
- var F;
3470
+ var R;
3463
3471
  a.value = !1;
3464
- const y = (F = M == null ? void 0 : M.target) == null ? void 0 : F.classList.contains("modal_close");
3465
- c(M, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
3472
+ const C = (R = M == null ? void 0 : M.target) == null ? void 0 : R.classList.contains("modal_close");
3473
+ c(M, this.isUseEscCloseModal.value ? "esc" : C ? "icon" : "button");
3466
3474
  }, m = (M) => {
3467
- r(M), i && ue(() => {
3475
+ r(M), i && ce(() => {
3468
3476
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ge(null, n), i = null, this.modalRef.value = null, this.modalRefs) {
3469
- const y = Object.keys(this.modalRefs).map((F) => Number(F));
3470
- y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
3477
+ const C = Object.keys(this.modalRefs).map((R) => Number(R));
3478
+ C.length > 0 ? this.activeModalIndex.value = Math.max(...C) : this.activeModalIndex.value = 0;
3471
3479
  }
3472
3480
  this.isUseEscCloseModal.value = !1;
3473
3481
  });
3474
- }, v = (M) => {
3475
- var y;
3476
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((y = this.activeModalInstance.value) == null || y.close(M == null ? void 0 : M.event));
3477
- }, h = () => f(ut, te({
3482
+ }, h = (M) => {
3483
+ var C;
3484
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((C = this.activeModalInstance.value) == null || C.close(M == null ? void 0 : M.event));
3485
+ }, v = () => f(ut, te({
3478
3486
  ref: this.modalRef,
3479
3487
  modelValue: a.value,
3480
3488
  "onUpdate:modelValue": (M) => a.value = M
@@ -3483,13 +3491,13 @@ class Ua {
3483
3491
  onCancel: l,
3484
3492
  onClosed: m,
3485
3493
  onResize: u,
3486
- onEsc: v
3494
+ onEsc: h
3487
3495
  }), {
3488
3496
  default: () => [d && d(this.app)]
3489
3497
  });
3490
3498
  return i = ((M) => {
3491
- const y = Pt(h, M);
3492
- return y.appContext = this.appContext, ge(y, n), y;
3499
+ const C = Pt(v, M);
3500
+ return C.appContext = this.appContext, ge(C, n), C;
3493
3501
  })({
3494
3502
  ...o.value
3495
3503
  // 'onUpdate:modelValue': onUpdateModelValue,
@@ -3526,7 +3534,7 @@ class Q {
3526
3534
  width: n.width || 400,
3527
3535
  fitContent: !0,
3528
3536
  showMaxButton: !1,
3529
- render: () => f(ie, te(n, {
3537
+ render: () => f(ue, te(n, {
3530
3538
  onAccept: l,
3531
3539
  onReject: c,
3532
3540
  onClose: d
@@ -3600,77 +3608,77 @@ class Q {
3600
3608
  Q.show(s);
3601
3609
  }
3602
3610
  }
3603
- ie.install = (t) => {
3604
- t.component(ie.name, ie), t.provide("FMessageBoxService", Q);
3611
+ ue.install = (t) => {
3612
+ t.component(ue.name, ue), t.provide("FMessageBoxService", Q);
3605
3613
  };
3606
- const ja = /* @__PURE__ */ H({
3614
+ const ja = /* @__PURE__ */ X({
3607
3615
  name: "FResponseFormLayoutSetting",
3608
3616
  props: rt,
3609
3617
  emits: ["change"],
3610
3618
  setup(t, e) {
3611
3619
  const n = [1], o = [1, 2], a = [1, 2, 3, 4], s = [1, 2, 3, 4, 6];
3612
3620
  let l = [], c = [], u = [], i = [];
3613
- const d = p(t.initialState), r = p(0), m = p(0), v = p(0), h = p(0);
3614
- function g() {
3615
- const y = "自定义", F = 12 / d.value.uniqueColClassInSM;
3616
- n.includes(F) ? r.value = F : (l.push({
3621
+ const d = p(t.initialState), r = p(0), m = p(0), h = p(0), v = p(0);
3622
+ function b() {
3623
+ const C = "自定义", R = 12 / d.value.uniqueColClassInSM;
3624
+ n.includes(R) ? r.value = R : (l.push({
3617
3625
  value: 0,
3618
- name: y
3626
+ name: C
3619
3627
  }), r.value = 0);
3620
- const b = 12 / d.value.uniqueColClassInMD;
3621
- o.includes(b) ? m.value = b : (c.push({
3628
+ const w = 12 / d.value.uniqueColClassInMD;
3629
+ o.includes(w) ? m.value = w : (c.push({
3622
3630
  value: 0,
3623
- name: y
3631
+ name: C
3624
3632
  }), m.value = 0);
3625
- const w = 12 / d.value.uniqueColClassInLG;
3626
- a.includes(w) ? v.value = w : (u.push({
3633
+ const g = 12 / d.value.uniqueColClassInLG;
3634
+ a.includes(g) ? h.value = g : (u.push({
3627
3635
  value: 0,
3628
- name: y
3629
- }), v.value = 0);
3630
- const R = 12 / d.value.uniqueColClassInEL;
3631
- s.includes(R) ? h.value = R : (i.push({
3636
+ name: C
3637
+ }), h.value = 0);
3638
+ const L = 12 / d.value.uniqueColClassInEL;
3639
+ s.includes(L) ? v.value = L : (i.push({
3632
3640
  value: 0,
3633
- name: y
3634
- }), h.value = 0), l = [...l], c = [...c], u = [...u], i = [...i];
3641
+ name: C
3642
+ }), v.value = 0), l = [...l], c = [...c], u = [...u], i = [...i];
3635
3643
  }
3636
- function x() {
3637
- n.forEach((y) => {
3644
+ function F() {
3645
+ n.forEach((C) => {
3638
3646
  l.push({
3639
- value: y,
3640
- name: y + ""
3647
+ value: C,
3648
+ name: C + ""
3641
3649
  });
3642
- }), o.forEach((y) => {
3650
+ }), o.forEach((C) => {
3643
3651
  c.push({
3644
- value: y,
3645
- name: y + ""
3652
+ value: C,
3653
+ name: C + ""
3646
3654
  });
3647
- }), a.forEach((y) => {
3655
+ }), a.forEach((C) => {
3648
3656
  u.push({
3649
- value: y,
3650
- name: y + ""
3657
+ value: C,
3658
+ name: C + ""
3651
3659
  });
3652
- }), s.forEach((y) => {
3660
+ }), s.forEach((C) => {
3653
3661
  i.push({
3654
- value: y,
3655
- name: y + ""
3662
+ value: C,
3663
+ name: C + ""
3656
3664
  });
3657
3665
  });
3658
3666
  }
3659
3667
  function M() {
3660
3668
  Q.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
3661
- d.value.uniqueColClassInSM = r.value === 0 ? null : 12 / r.value, d.value.uniqueColClassInMD = m.value === 0 ? null : 12 / m.value, d.value.uniqueColClassInLG = v.value === 0 ? null : 12 / v.value, d.value.uniqueColClassInEL = h.value === 0 ? null : 12 / h.value, e.emit("change", d.value);
3669
+ d.value.uniqueColClassInSM = r.value === 0 ? null : 12 / r.value, d.value.uniqueColClassInMD = m.value === 0 ? null : 12 / m.value, d.value.uniqueColClassInLG = h.value === 0 ? null : 12 / h.value, d.value.uniqueColClassInEL = v.value === 0 ? null : 12 / v.value, e.emit("change", d.value);
3662
3670
  }, () => {
3663
3671
  });
3664
3672
  }
3665
3673
  return J(() => {
3666
- x(), g();
3674
+ F(), b();
3667
3675
  }), () => f("div", null, [f("div", {
3668
3676
  class: "f-form-layout farris-form farris-form-controls-inline"
3669
3677
  }, [f("div", {
3670
3678
  class: "form-group farris-form-group screenGroup"
3671
3679
  }, [f("span", {
3672
3680
  class: "screenName"
3673
- }, [X(" 小屏幕 ")]), f("div", {
3681
+ }, [Y(" 小屏幕 ")]), f("div", {
3674
3682
  class: "d-flex ml-2 screen-input"
3675
3683
  }, [f(oe, {
3676
3684
  data: l,
@@ -3679,14 +3687,14 @@ const ja = /* @__PURE__ */ H({
3679
3687
  editable: !1,
3680
3688
  enableClear: !1,
3681
3689
  modelValue: r.value,
3682
- "onUpdate:modelValue": (y) => r.value = y
3690
+ "onUpdate:modelValue": (C) => r.value = C
3683
3691
  }, null), f("span", {
3684
3692
  class: "ml-2 columnText"
3685
- }, [X("列")])])]), f("div", {
3693
+ }, [Y("列")])])]), f("div", {
3686
3694
  class: "form-group farris-form-group screenGroup"
3687
3695
  }, [f("span", {
3688
3696
  class: "screenName"
3689
- }, [X("中等屏幕")]), f("div", {
3697
+ }, [Y("中等屏幕")]), f("div", {
3690
3698
  class: "d-flex ml-2 screen-input"
3691
3699
  }, [f(oe, {
3692
3700
  data: c,
@@ -3695,14 +3703,14 @@ const ja = /* @__PURE__ */ H({
3695
3703
  editable: !1,
3696
3704
  enableClear: !1,
3697
3705
  modelValue: m.value,
3698
- "onUpdate:modelValue": (y) => m.value = y
3706
+ "onUpdate:modelValue": (C) => m.value = C
3699
3707
  }, null), f("span", {
3700
3708
  class: "ml-2 columnText"
3701
- }, [X("列")])])]), f("div", {
3709
+ }, [Y("列")])])]), f("div", {
3702
3710
  class: "form-group farris-form-group screenGroup"
3703
3711
  }, [f("span", {
3704
3712
  class: "screenName"
3705
- }, [X("大屏幕")]), f("div", {
3713
+ }, [Y("大屏幕")]), f("div", {
3706
3714
  class: "d-flex ml-2 screen-input"
3707
3715
  }, [f(oe, {
3708
3716
  data: u,
@@ -3710,15 +3718,15 @@ const ja = /* @__PURE__ */ H({
3710
3718
  valueField: "value",
3711
3719
  editable: !1,
3712
3720
  enableClear: !1,
3713
- modelValue: v.value,
3714
- "onUpdate:modelValue": (y) => v.value = y
3721
+ modelValue: h.value,
3722
+ "onUpdate:modelValue": (C) => h.value = C
3715
3723
  }, null), f("span", {
3716
3724
  class: "ml-2 columnText"
3717
- }, [X("列")])])]), f("div", {
3725
+ }, [Y("列")])])]), f("div", {
3718
3726
  class: "form-group farris-form-group screenGroup"
3719
3727
  }, [f("span", {
3720
3728
  class: "screenName"
3721
- }, [X("极大屏幕")]), f("div", {
3729
+ }, [Y("极大屏幕")]), f("div", {
3722
3730
  class: "d-flex ml-2 screen-input"
3723
3731
  }, [f(oe, {
3724
3732
  data: i,
@@ -3726,24 +3734,24 @@ const ja = /* @__PURE__ */ H({
3726
3734
  valueField: "value",
3727
3735
  editable: !1,
3728
3736
  enableClear: !1,
3729
- modelValue: h.value,
3730
- "onUpdate:modelValue": (y) => h.value = y
3737
+ modelValue: v.value,
3738
+ "onUpdate:modelValue": (C) => v.value = C
3731
3739
  }, null), f("span", {
3732
3740
  class: "ml-2 columnText"
3733
- }, [X("列")])])])]), f("div", {
3741
+ }, [Y("列")])])])]), f("div", {
3734
3742
  class: "applyBtn"
3735
3743
  }, [f("button", {
3736
3744
  class: "btn f-rt-btn btn-primary",
3737
3745
  type: "button",
3738
3746
  onClick: () => M()
3739
- }, [X("应用")])])]);
3747
+ }, [Y("应用")])])]);
3740
3748
  }
3741
3749
  }), ns = {
3742
3750
  install(t) {
3743
3751
  t.component(Ce.name, Ce).component(we.name, we);
3744
3752
  },
3745
3753
  register(t, e, n, o) {
3746
- t["form-group"] = we, e["form-group"] = Ve, t["response-form"] = Ce, e["response-form"] = Pe, t["form-input"] = ca, e["form-input"] = ua, o["form-group"] = { editorResolver: xo }, t["response-form-layout-setting"] = ja, e["response-form-layout-setting"] = Ca;
3754
+ t["form-group"] = we, e["form-group"] = Ve, t["response-form"] = Ce, e["response-form"] = Pe, t["form-input"] = ca, e["form-input"] = ua, o["form-group"] = { editorResolver: Fo }, t["response-form-layout-setting"] = ja, e["response-form-layout-setting"] = Ca;
3747
3755
  },
3748
3756
  registerDesigner(t, e, n) {
3749
3757
  t["form-group"] = ia, e["form-group"] = Ve, t["response-form"] = Do, e["response-form"] = Pe;
@@ -3755,9 +3763,9 @@ export {
3755
3763
  Ce as FResponseForm,
3756
3764
  ns as default,
3757
3765
  le as dynamicFormGroupProps,
3758
- xo as editorResolver,
3766
+ Fo as editorResolver,
3759
3767
  Ve as formGroupPropsResolver,
3760
3768
  Pe as formPropsResolver,
3761
3769
  He as responseFormProps,
3762
- Io as useDesignerRules
3770
+ Eo as useDesignerRules
3763
3771
  };