@farris/ui-vue 1.2.6 → 1.2.7

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 (74) hide show
  1. package/components/accordion/index.esm.js +147 -139
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +11 -28
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/checkbox/index.esm.js +33 -50
  6. package/components/checkbox/index.umd.cjs +1 -1
  7. package/components/combo-list/index.esm.js +183 -171
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/condition/index.esm.js +236 -235
  10. package/components/condition/index.umd.cjs +1 -1
  11. package/components/data-grid/index.esm.js +1531 -1560
  12. package/components/data-grid/index.umd.cjs +1 -1
  13. package/components/data-view/index.esm.js +1299 -1300
  14. package/components/data-view/index.umd.cjs +1 -1
  15. package/components/date-picker/index.esm.js +235 -252
  16. package/components/date-picker/index.umd.cjs +1 -1
  17. package/components/dynamic-form/index.esm.js +127 -143
  18. package/components/dynamic-form/index.umd.cjs +1 -1
  19. package/components/dynamic-view/index.esm.js +206 -201
  20. package/components/dynamic-view/index.umd.cjs +1 -1
  21. package/components/external-container/index.esm.js +650 -647
  22. package/components/external-container/index.umd.cjs +1 -1
  23. package/components/field-selector/index.esm.js +1101 -1131
  24. package/components/field-selector/index.umd.cjs +1 -1
  25. package/components/filter-bar/index.esm.js +335 -332
  26. package/components/filter-bar/index.umd.cjs +1 -1
  27. package/components/input-group/index.esm.js +128 -145
  28. package/components/input-group/index.umd.cjs +1 -1
  29. package/components/list-view/index.esm.js +306 -303
  30. package/components/list-view/index.umd.cjs +1 -1
  31. package/components/lookup/index.esm.js +2470 -2469
  32. package/components/lookup/index.umd.cjs +1 -1
  33. package/components/mapping-editor/index.esm.js +1928 -1958
  34. package/components/mapping-editor/index.umd.cjs +1 -1
  35. package/components/order/index.esm.js +802 -788
  36. package/components/order/index.umd.cjs +1 -1
  37. package/components/page-header/index.esm.js +116 -137
  38. package/components/page-header/index.umd.cjs +1 -1
  39. package/components/property-editor/index.esm.js +533 -521
  40. package/components/property-editor/index.umd.cjs +2 -2
  41. package/components/property-panel/index.esm.js +178 -177
  42. package/components/property-panel/index.umd.cjs +1 -1
  43. package/components/radio-group/index.esm.js +56 -73
  44. package/components/radio-group/index.umd.cjs +1 -1
  45. package/components/response-layout-editor/index.esm.js +547 -518
  46. package/components/response-layout-editor/index.umd.cjs +1 -1
  47. package/components/response-toolbar/index.esm.js +260 -281
  48. package/components/response-toolbar/index.umd.cjs +1 -1
  49. package/components/schema-selector/index.esm.js +598 -617
  50. package/components/schema-selector/index.umd.cjs +2 -2
  51. package/components/switch/index.esm.js +137 -154
  52. package/components/switch/index.umd.cjs +1 -1
  53. package/components/tabs/index.esm.js +109 -130
  54. package/components/tabs/index.umd.cjs +1 -1
  55. package/components/textarea/index.esm.js +103 -120
  56. package/components/textarea/index.umd.cjs +1 -1
  57. package/components/time-picker/index.esm.js +172 -189
  58. package/components/time-picker/index.umd.cjs +1 -1
  59. package/components/transfer/index.esm.js +124 -122
  60. package/components/transfer/index.umd.cjs +1 -1
  61. package/components/tree-grid/index.esm.js +1600 -1630
  62. package/components/tree-grid/index.umd.cjs +1 -1
  63. package/components/tree-view/index.esm.js +245 -246
  64. package/components/tree-view/index.umd.cjs +1 -1
  65. package/farris.all.esm.js +4123 -4112
  66. package/farris.all.umd.cjs +8 -8
  67. package/package.json +1 -1
  68. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  69. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  70. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  71. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  72. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -2
  73. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -16
  74. package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
@@ -15,8 +15,8 @@ import Le from "@farris/ui-vue/components/calendar";
15
15
  import Ae from "@farris/ui-vue/components/capsule";
16
16
  import Ne from "@farris/ui-vue/components/checkbox";
17
17
  import $e from "@farris/ui-vue/components/combo-tree";
18
- import Re from "@farris/ui-vue/components/component";
19
- import Ge from "@farris/ui-vue/components/color-picker";
18
+ import Ge from "@farris/ui-vue/components/component";
19
+ import Re from "@farris/ui-vue/components/color-picker";
20
20
  import qe from "@farris/ui-vue/components/content-container";
21
21
  import De from "@farris/ui-vue/components/date-picker";
22
22
  import We from "@farris/ui-vue/components/data-grid";
@@ -62,6 +62,7 @@ import St from "@farris/ui-vue/components/weather";
62
62
  import Vt from "@farris/ui-vue/components/video";
63
63
  import Et from "@farris/ui-vue/components/textarea";
64
64
  import Mt from "@farris/ui-vue/components/schema-selector";
65
+ import Pt from "@farris/ui-vue/components/tree-grid";
65
66
  import "@farris/ui-vue/components/external-container";
66
67
  const ae = {
67
68
  conditions: { type: Array, default: [] },
@@ -72,7 +73,7 @@ const ae = {
72
73
  */
73
74
  isControlInline: { type: Boolean, default: !0 }
74
75
  };
75
- class Pt {
76
+ class Ot {
76
77
  constructor(t = { value: [] }) {
77
78
  w(this, "editorType", "check-box");
78
79
  w(this, "value");
@@ -92,7 +93,7 @@ class Pt {
92
93
  return this.value.length === 0;
93
94
  }
94
95
  }
95
- class Ot {
96
+ class jt {
96
97
  constructor(t = { textValue: "", value: "", valueField: "" }) {
97
98
  w(this, "editorType", "combo-lookup");
98
99
  w(this, "textValue");
@@ -126,7 +127,7 @@ class Ot {
126
127
  return !this.valueField;
127
128
  }
128
129
  }
129
- class jt {
130
+ class Lt {
130
131
  constructor(t = { value: "" }) {
131
132
  w(this, "editorType", "date-picker");
132
133
  w(this, "value");
@@ -167,7 +168,7 @@ class oe {
167
168
  return !this.begin || !this.end;
168
169
  }
169
170
  }
170
- class Lt {
171
+ class At {
171
172
  constructor(t = { value: "" }) {
172
173
  w(this, "editorType", "datetime-picker");
173
174
  w(this, "value");
@@ -187,7 +188,7 @@ class Lt {
187
188
  return !this.value;
188
189
  }
189
190
  }
190
- class At {
191
+ class Nt {
191
192
  // 旧结构无,新结构为选中的value值,多选是以,分割的字符串
192
193
  constructor(t = { value: "", dispalyText: "" }) {
193
194
  w(this, "editorType", "combo-list");
@@ -210,7 +211,7 @@ class At {
210
211
  return !this.displayText;
211
212
  }
212
213
  }
213
- class Nt {
214
+ class $t {
214
215
  constructor(t = { value: [], displayText: "", displayField: "", isInputText: !1 }) {
215
216
  w(this, "editorType", "input-group");
216
217
  // 通过弹窗返回的若干个值对象构成的数组
@@ -249,7 +250,7 @@ class Nt {
249
250
  return !this.displayText;
250
251
  }
251
252
  }
252
- class $t {
253
+ class Gt {
253
254
  constructor(t = { textValue: "", value: [], valueField: "", isInputText: !1 }) {
254
255
  w(this, "editorType", "lookup");
255
256
  w(this, "textValue");
@@ -305,7 +306,7 @@ class Rt {
305
306
  return !this.value;
306
307
  }
307
308
  }
308
- class Gt {
309
+ class qt {
309
310
  constructor(t = { begin: "", end: "" }) {
310
311
  w(this, "editorType", "month-range");
311
312
  w(this, "begin");
@@ -326,7 +327,7 @@ class Gt {
326
327
  return !this.begin || !this.end;
327
328
  }
328
329
  }
329
- class qt {
330
+ class Dt {
330
331
  constructor(t = { begin: null, end: null }) {
331
332
  w(this, "editorType", "number-range");
332
333
  w(this, "begin");
@@ -350,7 +351,7 @@ class qt {
350
351
  return this.begin == null && this.end == null;
351
352
  }
352
353
  }
353
- class Dt {
354
+ class Wt {
354
355
  constructor(t = { value: "" }) {
355
356
  w(this, "editorType", "number-spinner");
356
357
  w(this, "value");
@@ -370,7 +371,7 @@ class Dt {
370
371
  return this.value == null;
371
372
  }
372
373
  }
373
- class Wt {
374
+ class zt {
374
375
  constructor(t = { value: null }) {
375
376
  w(this, "editorType", "radio-group");
376
377
  w(this, "value");
@@ -414,33 +415,33 @@ function se() {
414
415
  function e(t, n) {
415
416
  switch (t) {
416
417
  case "check-box":
417
- return new Pt(n);
418
+ return new Ot(n);
418
419
  case "combo-list":
419
- return new At(n);
420
+ return new Nt(n);
420
421
  case "combo-lookup":
421
- return new Ot(n);
422
+ return new jt(n);
422
423
  case "input-group":
423
- return new Nt(n);
424
+ return new $t(n);
424
425
  case "date-picker":
425
- return new jt(n);
426
+ return new Lt(n);
426
427
  case "date-range":
427
428
  return new oe(n);
428
429
  case "datetime-picker":
429
- return new Lt(n);
430
+ return new At(n);
430
431
  case "datetime-range":
431
432
  return new oe(n);
432
433
  case "lookup":
433
- return new $t(n);
434
+ return new Gt(n);
434
435
  case "month-picker":
435
436
  return new Rt(n);
436
437
  case "month-range":
437
- return new Gt(n);
438
- case "number-range":
439
438
  return new qt(n);
440
- case "number-spinner":
439
+ case "number-range":
441
440
  return new Dt(n);
442
- case "radio-group":
441
+ case "number-spinner":
443
442
  return new Wt(n);
443
+ case "radio-group":
444
+ return new zt(n);
444
445
  default:
445
446
  return new le(n);
446
447
  }
@@ -463,7 +464,7 @@ function ue(e, t) {
463
464
  }
464
465
  return l.editor;
465
466
  }
466
- function y(l) {
467
+ function b(l) {
467
468
  return l.map((c) => Object.assign({}, c)).map((c) => (c.editor = d(c), c));
468
469
  }
469
470
  function k(l = !0) {
@@ -477,11 +478,11 @@ function ue(e, t) {
477
478
  }
478
479
  }), l;
479
480
  }
480
- return { convertToSingleControl: y, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: k, initialConditionValue: s };
481
+ return { convertToSingleControl: b, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: k, initialConditionValue: s };
481
482
  }
482
- function zt(e, t, n) {
483
+ function Ut(e, t, n) {
483
484
  const o = I(null), r = I(n), p = I(0), d = P(() => s(p.value));
484
- function y() {
485
+ function b() {
485
486
  r.value && (o.value = new ResizeObserver(k((l) => {
486
487
  const u = l[0];
487
488
  p.value = u.contentRect.width;
@@ -501,7 +502,7 @@ function zt(e, t, n) {
501
502
  return l > 250 * 6 ? c = "col-2" : l > 250 * 4 ? c = "col-3" : l > 250 * 3 ? c = "col-4" : l > 250 * 2 && (c = "col-6"), c;
502
503
  }
503
504
  return W([n], ([l]) => {
504
- r.value = l, y();
505
+ r.value = l, b();
505
506
  }), {
506
507
  conditionClass: d,
507
508
  resizeObserver: o
@@ -513,14 +514,14 @@ const re = /* @__PURE__ */ Z({
513
514
  emits: ["valueChange", "blur", "focus", "click", "input"],
514
515
  setup(e, t) {
515
516
  const n = I(), o = I(e.key), r = I(e.isControlInline), p = I(e.conditions), d = ue(e), {
516
- initialConditionValue: y,
517
+ initialConditionValue: b,
517
518
  fieldMap: k,
518
519
  loadFieldConfigs: s
519
- } = d, l = zt(e, t, n), {
520
+ } = d, l = Ut(e, t, n), {
520
521
  conditionClass: u,
521
522
  resizeObserver: c
522
523
  } = l;
523
- s(!0), y(p.value), be(() => {
524
+ s(!0), b(p.value), be(() => {
524
525
  var T;
525
526
  (T = c.value) == null || T.unobserve(n.value);
526
527
  }), W(() => e.conditions, () => {
@@ -556,16 +557,16 @@ const re = /* @__PURE__ */ Z({
556
557
  ref: n
557
558
  }, [q()]);
558
559
  }
559
- }), Ut = {}, Ht = {};
560
+ }), Ht = {}, Qt = {};
560
561
  function ce(e) {
561
562
  const { properties: t, title: n } = e, o = Object.keys(t).reduce((r, p) => (r[p] = t[p].type === "object" && t[p].properties ? ce(t[p]) : Q(t[p].default), r), {});
562
563
  return o.id = `${n}-${Date.now()}`, o;
563
564
  }
564
- function Qt(e, t) {
565
+ function Zt(e, t) {
565
566
  const n = ce(t);
566
567
  return Object.keys(e).reduce((o, r) => (o[r] = e[r], o), n), n;
567
568
  }
568
- function Zt(e, t) {
569
+ function _t(e, t) {
569
570
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
570
571
  if (t.has(r)) {
571
572
  const p = t.get(r);
@@ -580,11 +581,11 @@ function Zt(e, t) {
580
581
  return o;
581
582
  }, {});
582
583
  }
583
- function _t(e, t, n = /* @__PURE__ */ new Map()) {
584
- const o = Qt(e, t);
585
- return Zt(o, n);
584
+ function Jt(e, t, n = /* @__PURE__ */ new Map()) {
585
+ const o = Zt(e, t);
586
+ return _t(o, n);
586
587
  }
587
- function Jt(e = {}) {
588
+ function Xt(e = {}) {
588
589
  function t(s, l, u, c) {
589
590
  if (typeof u == "number")
590
591
  return c[s].length === u;
@@ -629,21 +630,21 @@ function Jt(e = {}) {
629
630
  }
630
631
  return !1;
631
632
  }
632
- function y(s, l) {
633
+ function b(s, l) {
633
634
  return p(s).reduce((V, E) => V && d(E, l), !0);
634
635
  }
635
636
  function k(s, l) {
636
- const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => y(M, l));
637
+ const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => b(M, l));
637
638
  return c ? !T.includes(!1) : T.includes(!0);
638
639
  }
639
640
  return { parseValueSchema: k };
640
641
  }
641
- const Xt = {}, Yt = {};
642
- Jt();
643
- function X(e, t, n = /* @__PURE__ */ new Map(), o = (d, y, k) => y, r = {}, p = (d) => d) {
644
- return Ut[t.title] = t, Ht[t.title] = o, Xt[t.title] = r, Yt[t.title] = p, (d = {}) => {
645
- const y = _t(d, t, n), k = Object.keys(e).reduce((s, l) => (s[l] = e[l].default, s), {});
646
- return Object.assign(k, y);
642
+ const Yt = {}, Kt = {};
643
+ Xt();
644
+ function X(e, t, n = /* @__PURE__ */ new Map(), o = (d, b, k) => b, r = {}, p = (d) => d) {
645
+ return Ht[t.title] = t, Qt[t.title] = o, Yt[t.title] = r, Kt[t.title] = p, (d = {}) => {
646
+ const b = Jt(d, t, n), k = Object.keys(e).reduce((s, l) => (s[l] = e[l].default, s), {});
647
+ return Object.assign(k, b);
647
648
  };
648
649
  }
649
650
  function de(e, t) {
@@ -652,22 +653,22 @@ function de(e, t) {
652
653
  const ee = /* @__PURE__ */ new Map([
653
654
  ["appearance", de]
654
655
  ]);
655
- function Kt(e, t, n, o) {
656
+ function en(e, t, n, o) {
656
657
  const r = e.getSchemaByType("section");
657
658
  return r.id = `${o}-section`, r.appearance = { class: "f-section-form f-section-in-main" }, r.mainTitle = "标题", r.contents = [t], r;
658
659
  }
659
- function en(e, t, n, o) {
660
+ function tn(e, t, n, o) {
660
661
  const r = e.getSchemaByType("component");
661
662
  return r.id = `${o}-component`, r.componentType = "form-col-1", r.appearance = {
662
663
  class: "f-struct-form f-struct-wrapper"
663
664
  }, r.contents = [t], r;
664
665
  }
665
- function tn(e, t, n) {
666
+ function nn(e, t, n) {
666
667
  t.appearance = { class: "f-form-layout farris-form farris-form-controls-inline" };
667
- const o = Kt(e, t, n, t.id);
668
- return en(e, o, n, t.id);
668
+ const o = en(e, t, n, t.id);
669
+ return tn(e, o, n, t.id);
669
670
  }
670
- const nn = "https://json-schema.org/draft/2020-12/schema", on = "https://farris-design.gitee.io/response-form.schema.json", rn = "response-form", an = "A Farris Data Collection Component", ln = "object", sn = {
671
+ const on = "https://json-schema.org/draft/2020-12/schema", rn = "https://farris-design.gitee.io/response-form.schema.json", an = "response-form", ln = "A Farris Data Collection Component", sn = "object", un = {
671
672
  id: {
672
673
  description: "The unique identifier for a form group",
673
674
  type: "string"
@@ -695,18 +696,18 @@ const nn = "https://json-schema.org/draft/2020-12/schema", on = "https://farris-
695
696
  type: "array",
696
697
  default: []
697
698
  }
698
- }, un = [
699
+ }, cn = [
699
700
  "id",
700
701
  "type"
701
- ], cn = {
702
- $schema: nn,
703
- $id: on,
704
- title: rn,
705
- description: an,
706
- type: ln,
707
- properties: sn,
708
- required: un
709
- }, dn = "response-form", pn = "A Farris Component", fn = "object", mn = {
702
+ ], dn = {
703
+ $schema: on,
704
+ $id: rn,
705
+ title: an,
706
+ description: ln,
707
+ type: sn,
708
+ properties: un,
709
+ required: cn
710
+ }, pn = "response-form", fn = "A Farris Component", mn = "object", gn = {
710
711
  basic: {
711
712
  description: "Basic Infomation",
712
713
  title: "基本信息",
@@ -728,16 +729,16 @@ const nn = "https://json-schema.org/draft/2020-12/schema", on = "https://farris-
728
729
  }
729
730
  }
730
731
  }
731
- }, gn = {
732
- title: dn,
733
- description: pn,
734
- type: fn,
735
- categories: mn
736
732
  }, hn = {
733
+ title: pn,
734
+ description: fn,
735
+ type: mn,
736
+ categories: gn
737
+ }, vn = {
737
738
  customClass: { type: String, default: "" }
738
739
  };
739
- X(hn, cn, ee, tn, gn);
740
- const vn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/form-group.schema.json", bn = "form-group", Cn = "A Farris Input Component", Fn = "object", wn = {
740
+ X(vn, dn, ee, nn, hn);
741
+ const yn = "https://json-schema.org/draft/2020-12/schema", bn = "https://farris-design.gitee.io/form-group.schema.json", Cn = "form-group", Fn = "A Farris Input Component", wn = "object", Tn = {
741
742
  id: {
742
743
  description: "The unique identifier for a form group",
743
744
  type: "string"
@@ -778,17 +779,17 @@ const vn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-
778
779
  description: "",
779
780
  type: "number"
780
781
  }
781
- }, Tn = [
782
+ }, xn = [
782
783
  "id",
783
784
  "type"
784
785
  ], pe = {
785
- $schema: vn,
786
- $id: yn,
787
- title: bn,
788
- description: Cn,
789
- type: Fn,
790
- properties: wn,
791
- required: Tn
786
+ $schema: yn,
787
+ $id: bn,
788
+ title: Cn,
789
+ description: Fn,
790
+ type: wn,
791
+ properties: Tn,
792
+ required: xn
792
793
  }, fe = {
793
794
  id: { type: String, default: "" },
794
795
  customClass: { type: String, default: "" },
@@ -809,14 +810,14 @@ X(
809
810
  ee,
810
811
  void 0
811
812
  );
812
- const xn = {
813
+ const kn = {
813
814
  id: { type: String },
814
815
  required: { type: Boolean, default: !1 },
815
816
  text: { type: String, default: "" },
816
817
  title: { type: String }
817
- }, kn = /* @__PURE__ */ Z({
818
+ }, Bn = /* @__PURE__ */ Z({
818
819
  name: "FDynamicFormLabel",
819
- props: xn,
820
+ props: kn,
820
821
  emits: [],
821
822
  setup(e, t) {
822
823
  const n = I(e.title || e.text), o = I(e.required), r = I(e.text);
@@ -833,13 +834,13 @@ const xn = {
833
834
  class: "farris-label-text"
834
835
  }, [r.value])]);
835
836
  }
836
- }), Bn = /* @__PURE__ */ new Map([
837
+ }), In = /* @__PURE__ */ new Map([
837
838
  ["appearance", de]
838
839
  ]);
839
- function In(e, t, n) {
840
+ function Sn(e, t, n) {
840
841
  return t;
841
842
  }
842
- const Sn = "https://json-schema.org/draft/2020-12/schema", Vn = "https://farris-design.gitee.io/input-group.schema.json", En = "input-group", Mn = "A Farris Input Component", Pn = "object", On = {
843
+ const Vn = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/input-group.schema.json", Mn = "input-group", Pn = "A Farris Input Component", On = "object", jn = {
843
844
  id: {
844
845
  description: "The unique identifier for a Input Group",
845
846
  type: "string"
@@ -1041,17 +1042,17 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", Vn = "https://farris-
1041
1042
  type: "string",
1042
1043
  default: ""
1043
1044
  }
1044
- }, jn = [
1045
+ }, Ln = [
1045
1046
  "id",
1046
1047
  "type"
1047
- ], Ln = {
1048
- $schema: Sn,
1049
- $id: Vn,
1050
- title: En,
1051
- description: Mn,
1052
- type: Pn,
1053
- properties: On,
1054
- required: jn
1048
+ ], An = {
1049
+ $schema: Vn,
1050
+ $id: En,
1051
+ title: Mn,
1052
+ description: Pn,
1053
+ type: On,
1054
+ properties: jn,
1055
+ required: Ln
1055
1056
  }, me = {
1056
1057
  /** 是否自动完成 */
1057
1058
  autocomplete: { Type: String, default: "off" },
@@ -1119,9 +1120,9 @@ const Sn = "https://json-schema.org/draft/2020-12/schema", Vn = "https://farris-
1119
1120
  */
1120
1121
  updateOn: { type: String, default: "blur" }
1121
1122
  };
1122
- X(me, Ln, Bn, In);
1123
- function An(e, t, n, o) {
1124
- const r = I(e.disabled), p = I(!1), d = I("text"), y = I(e.showBorder), k = I(e.textAlign), s = I(e.updateOn), l = P(() => e.editable || !e.readonly), u = P(() => e.editable && !e.disabled && !e.readonly), c = P(() => !e.disabled && p.value), V = P(() => n.value === "" || n.value === null || n.value === void 0), E = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), O = P(() => e.readonly || !e.editable), q = P(() => e.enableTitle ? n.value : ""), T = P(() => ({
1123
+ X(me, An, In, Sn);
1124
+ function Nn(e, t, n, o) {
1125
+ const r = I(e.disabled), p = I(!1), d = I("text"), b = I(e.showBorder), k = I(e.textAlign), s = I(e.updateOn), l = P(() => e.editable || !e.readonly), u = P(() => e.editable && !e.disabled && !e.readonly), c = P(() => !e.disabled && p.value), V = P(() => n.value === "" || n.value === null || n.value === void 0), E = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), O = P(() => e.readonly || !e.editable), q = P(() => e.enableTitle ? n.value : ""), T = P(() => ({
1125
1126
  "form-control": !0,
1126
1127
  "f-utils-fill": !0,
1127
1128
  "text-left": k.value === "left",
@@ -1137,31 +1138,31 @@ function An(e, t, n, o) {
1137
1138
  "f-state-focus": c.value
1138
1139
  };
1139
1140
  return (e.customClass || "").split(" ").reduce((S, D) => (S[D] = !0, S), a), a;
1140
- }), M = P(() => y.value ? "" : "border-width : 0 ");
1141
- function j(a, b = !0) {
1142
- n.value = a, o.value !== a && (o.value = a), b && t.emit("change", a), t.emit("update:modelValue", a), t.emit("update:value", a);
1141
+ }), M = P(() => b.value ? "" : "border-width : 0 ");
1142
+ function j(a, C = !0) {
1143
+ n.value = a, o.value !== a && (o.value = a), C && t.emit("change", a), t.emit("update:modelValue", a), t.emit("update:value", a);
1143
1144
  }
1144
1145
  W(
1145
1146
  () => e.modelValue,
1146
- (a, b) => {
1147
- a !== b && (n.value = a, o.value = a);
1147
+ (a, C) => {
1148
+ a !== C && (n.value = a, o.value = a);
1148
1149
  }
1149
- ), W(() => e.disabled, (a, b) => {
1150
- a !== b && (r.value = a);
1150
+ ), W(() => e.disabled, (a, C) => {
1151
+ a !== C && (r.value = a);
1151
1152
  });
1152
1153
  function $(a) {
1153
1154
  return p.value = !1, t.emit("blur", a), a.stopPropagation(), !1;
1154
1155
  }
1155
- function R(a) {
1156
+ function G(a) {
1156
1157
  t.emit("click", a);
1157
1158
  }
1158
1159
  function A(a) {
1159
- e.disabled || (y.value && (p.value = !0), l.value && t.emit("focus", a));
1160
+ e.disabled || (b.value && (p.value = !0), l.value && t.emit("focus", a));
1160
1161
  }
1161
1162
  function z(a) {
1162
1163
  t.emit("input", a.target.value);
1163
- const b = a.target.value;
1164
- o.value = b, s.value === "input" && (t.emit("update:modelValue", b), t.emit("update:value", b));
1164
+ const C = a.target.value;
1165
+ o.value = C, s.value === "input" && (t.emit("update:modelValue", C), t.emit("update:value", C));
1165
1166
  }
1166
1167
  function i(a) {
1167
1168
  t.emit("keydown", a);
@@ -1174,8 +1175,8 @@ function An(e, t, n, o) {
1174
1175
  }
1175
1176
  function B(a) {
1176
1177
  if (s.value === "blur") {
1177
- const b = a.target.value;
1178
- a.stopPropagation(), j(b);
1178
+ const C = a.target.value;
1179
+ a.stopPropagation(), j(C);
1179
1180
  }
1180
1181
  }
1181
1182
  return {
@@ -1190,7 +1191,7 @@ function An(e, t, n, o) {
1190
1191
  modelValue: n,
1191
1192
  readonly: O,
1192
1193
  onBlur: $,
1193
- onClick: R,
1194
+ onClick: G,
1194
1195
  onFocus: A,
1195
1196
  onInput: z,
1196
1197
  onKeydown: i,
@@ -1203,13 +1204,13 @@ function An(e, t, n, o) {
1203
1204
  inputGroupStyle: M
1204
1205
  };
1205
1206
  }
1206
- function Nn(e, t, n) {
1207
- const o = I(!1), r = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: p, displayText: d, hasFocused: y, isEmpty: k } = n;
1207
+ function $n(e, t, n) {
1208
+ const o = I(!1), r = P(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: p, displayText: d, hasFocused: b, isEmpty: k } = n;
1208
1209
  function s(O) {
1209
1210
  o.value = O;
1210
1211
  }
1211
1212
  W(d, () => {
1212
- y != null && y.value ? s(!!(d != null && d.value)) : s(!1);
1213
+ b != null && b.value ? s(!!(d != null && d.value)) : s(!1);
1213
1214
  });
1214
1215
  const l = P(() => ({
1215
1216
  "input-group-text": !0,
@@ -1229,7 +1230,7 @@ function Nn(e, t, n) {
1229
1230
  }
1230
1231
  return { clearButtonClass: l, clearButtonStyle: u, hasShownClearButton: o, onClearValue: c, onMouseEnter: V, onMouseLeave: E, shouldShowClearButton: r };
1231
1232
  }
1232
- const $n = ["moz", "ms", "webkit"];
1233
+ const Gn = ["moz", "ms", "webkit"];
1233
1234
  function Rn() {
1234
1235
  let e = 0;
1235
1236
  return (t) => {
@@ -1239,41 +1240,41 @@ function Rn() {
1239
1240
  return e = n + o, r;
1240
1241
  };
1241
1242
  }
1242
- function Gn() {
1243
+ function qn() {
1243
1244
  if (typeof window > "u")
1244
1245
  return () => 0;
1245
1246
  if (window.requestAnimationFrame)
1246
1247
  return window.requestAnimationFrame.bind(window);
1247
- const e = $n.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1248
+ const e = Gn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
1248
1249
  return e ? window[`${e}RequestAnimationFrame`] : Rn();
1249
1250
  }
1250
- Gn();
1251
- function qn(e, t) {
1251
+ qn();
1252
+ function Dn(e, t) {
1252
1253
  const n = I(e.groupText), o = P(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = P(() => e.enableClear || !!e.groupText);
1253
1254
  return { appendedButtonClass: P(() => ({
1254
1255
  "input-group-append": !0,
1255
1256
  "append-force-show": o.value
1256
1257
  })), appendedContent: n, shouldShowAppendedButton: r };
1257
1258
  }
1258
- function Dn(e, t, n, o) {
1259
- const { appendedContent: r } = o, p = I(e.enableViewPassword), d = P(() => e.type === "password"), y = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', k = '<span class="f-icon f-icon-eye"></span>', s = I(!1);
1259
+ function Wn(e, t, n, o) {
1260
+ const { appendedContent: r } = o, p = I(e.enableViewPassword), d = P(() => e.type === "password"), b = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', k = '<span class="f-icon f-icon-eye"></span>', s = I(!1);
1260
1261
  W(() => [e.readonly, e.disabled], ([c, V]) => {
1261
1262
  d.value && (n.value = c || V ? "password" : n.value, r.value = c || V ? k : r.value);
1262
1263
  });
1263
1264
  function l() {
1264
- return s.value = !s.value, n.value = s.value ? "text" : "password", r.value = s.value ? y : k, !1;
1265
+ return s.value = !s.value, n.value = s.value ? "text" : "password", r.value = s.value ? b : k, !1;
1265
1266
  }
1266
1267
  function u() {
1267
1268
  n.value = d.value ? "password" : "text", r.value = d.value ? p.value ? k : "" : r.value;
1268
1269
  }
1269
1270
  return u(), { isPassword: d, onClickAppendedButton: l };
1270
1271
  }
1271
- function Wn(e, t, n) {
1272
+ function zn(e, t, n) {
1272
1273
  const o = I(), {
1273
1274
  onBlurTextBox: r,
1274
1275
  onFocusTextBox: p,
1275
1276
  onInput: d,
1276
- onKeyDown: y,
1277
+ onKeyDown: b,
1277
1278
  textBoxValue: k
1278
1279
  } = n, s = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), l = P(() => ({
1279
1280
  "form-control": !0,
@@ -1305,16 +1306,16 @@ function Wn(e, t, n) {
1305
1306
  onChange: c,
1306
1307
  onFocus: E,
1307
1308
  onInput: d,
1308
- onKeydown: y
1309
+ onKeydown: b
1309
1310
  }, null);
1310
1311
  }
1311
- function zn(e, t, n) {
1312
+ function Un(e, t, n) {
1312
1313
  const {
1313
1314
  canDownward: o,
1314
1315
  canUpward: r,
1315
1316
  onClickDownButton: p,
1316
1317
  onClickUpButton: d
1317
- } = n, y = P(() => ({
1318
+ } = n, b = P(() => ({
1318
1319
  "input-group-append": !0,
1319
1320
  "btn-group": !0,
1320
1321
  "btn-group-number": !0
@@ -1330,7 +1331,7 @@ function zn(e, t, n) {
1330
1331
  "margin-left": 0
1331
1332
  }));
1332
1333
  return () => F("div", {
1333
- class: y.value
1334
+ class: b.value
1334
1335
  }, [F("button", {
1335
1336
  title: "upButton",
1336
1337
  class: k.value,
@@ -1349,33 +1350,33 @@ function zn(e, t, n) {
1349
1350
  class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
1350
1351
  }, null)])]);
1351
1352
  }
1352
- function Un(e, t) {
1353
- const n = Ie(e, t), o = Se(e, t, n), r = Ve(e, t, o, n), p = Ee(e, t, o, n, r), d = zn(e, t, r), {
1354
- displayValue: y,
1353
+ function Hn(e, t) {
1354
+ const n = Ie(e, t), o = Se(e, t, n), r = Ve(e, t, o, n), p = Ee(e, t, o, n, r), d = Un(e, t, r), {
1355
+ displayValue: b,
1355
1356
  modelValue: k,
1356
1357
  getRealValue: s
1357
- } = n, l = Wn(e, t, p), {
1358
+ } = n, l = zn(e, t, p), {
1358
1359
  format: u
1359
1360
  } = o, {
1360
1361
  isFocus: c
1361
1362
  } = p, V = P(() => !e.disabled && !e.readonly);
1362
1363
  return J(() => {
1363
1364
  const E = s(e.modelValue);
1364
- y.value = u(E);
1365
+ b.value = u(E);
1365
1366
  }), W(() => [e.value], ([E]) => {
1366
1367
  const O = s(E);
1367
- k.value = O, y.value = u(O);
1368
+ k.value = O, b.value = u(O);
1368
1369
  }), W(() => [e.modelValue], ([E]) => {
1369
- E !== k.value && (k.value = E, !c.value && (y.value = u(s(E))));
1370
+ E !== k.value && (k.value = E, !c.value && (b.value = u(s(E))));
1370
1371
  }), W(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
1371
- y.value = u(k.value);
1372
+ b.value = u(k.value);
1372
1373
  }), () => F("div", {
1373
1374
  class: "input-group f-state-hover flex-row f-cmp-number-spinner"
1374
1375
  }, [l(), V.value && d()]);
1375
1376
  }
1376
- function Hn(e, t, n, o) {
1377
+ function Qn(e, t, n, o) {
1377
1378
  const r = I(), p = I(e.autocomplete), d = I(e.enableTitle), {
1378
- isPassword: y
1379
+ isPassword: b
1379
1380
  } = n, k = I(e.minLength), s = I(e.maxLength), l = I(e.tabIndex), {
1380
1381
  disabled: u,
1381
1382
  displayText: c,
@@ -1388,7 +1389,7 @@ function Hn(e, t, n, o) {
1388
1389
  onKeyup: M,
1389
1390
  onMousedown: j,
1390
1391
  onTextBoxValueChange: $,
1391
- readonly: R,
1392
+ readonly: G,
1392
1393
  placeholder: A,
1393
1394
  textBoxClass: z,
1394
1395
  textBoxTitle: i
@@ -1404,9 +1405,9 @@ function Hn(e, t, n, o) {
1404
1405
  maxlength: s.value,
1405
1406
  minlength: k.value,
1406
1407
  placeholder: A.value,
1407
- readonly: R == null ? void 0 : R.value,
1408
+ readonly: G == null ? void 0 : G.value,
1408
1409
  tabindex: l.value,
1409
- title: d.value && !y.value ? i.value : "",
1410
+ title: d.value && !b.value ? i.value : "",
1410
1411
  type: V.value,
1411
1412
  value: c == null ? void 0 : c.value,
1412
1413
  onBlur: E,
@@ -1419,7 +1420,7 @@ function Hn(e, t, n, o) {
1419
1420
  onMousedown: j
1420
1421
  }, null);
1421
1422
  }
1422
- function Qn(e, t) {
1423
+ function Zn(e, t) {
1423
1424
  const n = P(() => e.useExtendInfo && !!e.extendInfo), o = Ce({
1424
1425
  content: e.extendInfo
1425
1426
  });
@@ -1435,11 +1436,11 @@ function Qn(e, t) {
1435
1436
  class: "tips-arrow"
1436
1437
  }, null)]), [[we("tooltip"), o]]);
1437
1438
  }
1438
- function Zn(e, t, n, o, r) {
1439
+ function _n(e, t, n, o, r) {
1439
1440
  const {
1440
1441
  appendedButtonClass: p,
1441
1442
  appendedContent: d
1442
- } = n, y = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), k = P(() => d.value && !t.slots.groupTextTemplate), s = P(() => !!t.slots.groupTextTemplate), {
1443
+ } = n, b = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), k = P(() => d.value && !t.slots.groupTextTemplate), s = P(() => !!t.slots.groupTextTemplate), {
1443
1444
  clearButtonClass: l,
1444
1445
  clearButtonStyle: u,
1445
1446
  onClearValue: c,
@@ -1462,7 +1463,7 @@ function Zn(e, t, n, o, r) {
1462
1463
  t.emit("iconMouseLeave", A);
1463
1464
  }
1464
1465
  function T(A) {
1465
- y.value && t.emit("clickHandle", {
1466
+ b.value && t.emit("clickHandle", {
1466
1467
  originalEvent: A
1467
1468
  }), A.stopPropagation();
1468
1469
  }
@@ -1482,26 +1483,26 @@ function Zn(e, t, n, o, r) {
1482
1483
  function $() {
1483
1484
  return k.value ? M : s.value ? j : "";
1484
1485
  }
1485
- const R = $();
1486
+ const G = $();
1486
1487
  return () => F("div", {
1487
1488
  class: p.value
1488
- }, [V.value && E(), R && R()]);
1489
+ }, [V.value && E(), G && G()]);
1489
1490
  }
1490
- const _n = /* @__PURE__ */ Z({
1491
+ const Jn = /* @__PURE__ */ Z({
1491
1492
  name: "FInputGroup",
1492
1493
  props: me,
1493
1494
  emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
1494
1495
  setup(e, t) {
1495
- const n = I(e.modelValue), o = I(e.modelValue), r = An(e, t, n, o), {
1496
+ const n = I(e.modelValue), o = I(e.modelValue), r = Nn(e, t, n, o), {
1496
1497
  inputGroupClass: p,
1497
1498
  inputType: d,
1498
- inputGroupStyle: y
1499
- } = r, k = qn(e), {
1499
+ inputGroupStyle: b
1500
+ } = r, k = Dn(e), {
1500
1501
  shouldShowAppendedButton: s
1501
- } = k, l = Nn(e, t, r), {
1502
+ } = k, l = $n(e, t, r), {
1502
1503
  onMouseEnter: u,
1503
1504
  onMouseLeave: c
1504
- } = l, V = Dn(e, t, d, k), E = Un(e, t), O = Hn(e, t, V, r), q = Zn(e, t, k, l, V), T = Qn(e, t), x = P(() => e.type === "number");
1505
+ } = l, V = Wn(e, t, d, k), E = Hn(e, t), O = Qn(e, t, V, r), q = _n(e, t, k, l, V), T = Zn(e, t), x = P(() => e.type === "number");
1505
1506
  W(() => [e.value], ([j]) => {
1506
1507
  n.value = j, o.value = j;
1507
1508
  }), W(() => [e.modelValue], ([j]) => {
@@ -1512,25 +1513,25 @@ const _n = /* @__PURE__ */ Z({
1512
1513
  const M = () => F(ne, null, [F("div", {
1513
1514
  id: "inputGroup",
1514
1515
  class: p.value,
1515
- style: y.value,
1516
+ style: b.value,
1516
1517
  onMouseenter: u,
1517
1518
  onMouseleave: c
1518
1519
  }, [x.value ? E() : F(ne, null, [T(), O(), s.value && q()])])]);
1519
1520
  return () => M();
1520
1521
  }
1521
- }), g = {}, h = {}, v = {}, C = {};
1522
+ }), g = {}, h = {}, v = {}, y = {};
1522
1523
  let ie = !1;
1523
- function Jn() {
1524
- ie || (ie = !0, Pe.register(g, h, v, C), Me.register(g, h, v, C), Oe.register(g, h, v, C), je.register(g, h, v, C), Le.register(g, h, v, C), Ae.register(g, h, v, C), Ne.register(g, h, v, C), K.register(g, h, v, C), $e.register(g, h, v, C), Re.register(g, h, v, C), qe.register(g, h, v, C), Ge.register(g, h, v, C), De.register(g, h, v, C), We.register(g, h, v, C), ze.register(g, h, v, C), xe.register(g, h, v, C), Ue.register(g, h, v, C), He.register(g, h, v, C), Qe.register(g, h, v, C), Ze.register(g, h, v, C), _e.register(g, h, v, C), Je.register(g, h, v, C), Ye.register(g, h, v, C), Xe.register(g, h, v, C), Ke.register(g, h, v, C), et.register(g, h, v, C), tt.register(g, h, v, C), nt.register(g, h, v, C), Be.register(g, h, v, C), ot.register(g, h, v, C), rt.register(g, h, v, C), it.register(g, h, v, C), at.register(g, h, v, C), lt.register(g, h, v, C), st.register(g, h, v, C), ut.register(g, h, v, C), ct.register(g, h, v, C), pt.register(g, h, v, C), ft.register(g, h, v, C), dt.register(g, h, v, C), Mt.register(g, h, v), mt.register(g, h, v, C), gt.register(g, h, v, C), ht.register(g, h, v, C), vt.register(g, h, v, C), yt.register(g, h, v, C), bt.register(g, h, v, C), Ct.register(g, h, v, C), Ft.register(g, h, v, C), wt.register(g, h, v, C), Tt.register(g, h, v, C), xt.register(g, h, v, C), kt.register(g, h, v, C), It.register(g, h, v, C), Bt.register(g, h, v, C), St.register(g, h, v, C), Vt.register(g, h, v, C), Et.register(g, h, v, C));
1525
- }
1526
1524
  function Xn() {
1527
- Jn();
1525
+ ie || (ie = !0, Pe.register(g, h, v, y), Me.register(g, h, v, y), Oe.register(g, h, v, y), je.register(g, h, v, y), Le.register(g, h, v, y), Ae.register(g, h, v, y), Ne.register(g, h, v, y), K.register(g, h, v, y), $e.register(g, h, v, y), Ge.register(g, h, v, y), qe.register(g, h, v, y), Re.register(g, h, v, y), De.register(g, h, v, y), We.register(g, h, v, y), ze.register(g, h, v, y), xe.register(g, h, v, y), Ue.register(g, h, v, y), He.register(g, h, v, y), Qe.register(g, h, v, y), Ze.register(g, h, v, y), _e.register(g, h, v, y), Je.register(g, h, v, y), Ye.register(g, h, v, y), Xe.register(g, h, v, y), Ke.register(g, h, v, y), et.register(g, h, v, y), tt.register(g, h, v, y), nt.register(g, h, v, y), Be.register(g, h, v, y), ot.register(g, h, v, y), rt.register(g, h, v, y), it.register(g, h, v, y), at.register(g, h, v, y), lt.register(g, h, v, y), st.register(g, h, v, y), ut.register(g, h, v, y), ct.register(g, h, v, y), pt.register(g, h, v, y), ft.register(g, h, v, y), dt.register(g, h, v, y), Mt.register(g, h, v), mt.register(g, h, v, y), gt.register(g, h, v, y), ht.register(g, h, v, y), vt.register(g, h, v, y), yt.register(g, h, v, y), bt.register(g, h, v, y), Ct.register(g, h, v, y), Ft.register(g, h, v, y), wt.register(g, h, v, y), Tt.register(g, h, v, y), xt.register(g, h, v, y), kt.register(g, h, v, y), It.register(g, h, v, y), Bt.register(g, h, v, y), St.register(g, h, v, y), Vt.register(g, h, v, y), Et.register(g, h, v, y), Pt.register(g, h, v, y));
1526
+ }
1527
+ function Yn() {
1528
+ Xn();
1528
1529
  function e(r, p) {
1529
1530
  const d = h[r];
1530
1531
  return d ? d(p) : {};
1531
1532
  }
1532
1533
  function t(r) {
1533
- return g[r] || _n;
1534
+ return g[r] || Jn;
1534
1535
  }
1535
1536
  function n(r) {
1536
1537
  switch (r) {
@@ -1596,23 +1597,23 @@ function Xn() {
1596
1597
  }
1597
1598
  return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
1598
1599
  }
1599
- const Yn = /* @__PURE__ */ Z({
1600
+ const Kn = /* @__PURE__ */ Z({
1600
1601
  name: "FDynamicFormGroup",
1601
1602
  props: fe,
1602
1603
  emits: ["change", "update:modelValue"],
1603
1604
  setup(e, t) {
1604
- const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue), y = I(e.readonly), k = I(e.required), s = I(e.showLabel), l = I(e.visible);
1605
+ const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue), b = I(e.readonly), k = I(e.required), s = I(e.showLabel), l = I(e.visible);
1605
1606
  I(e.type);
1606
1607
  const u = I(), {
1607
1608
  resolveEditorProps: c,
1608
1609
  resolveEditorType: V,
1609
1610
  getChangeFunctionName: E,
1610
1611
  getClearFunctionName: O
1611
- } = Xn(), q = P(() => ({
1612
+ } = Yn(), q = P(() => ({
1612
1613
  "form-group": !0,
1613
1614
  "farris-form-group": !0,
1614
1615
  "common-group": !0,
1615
- "q-state-readonly": y.value
1616
+ "q-state-readonly": b.value
1616
1617
  }));
1617
1618
  function T(j, $) {
1618
1619
  d.value = $ !== void 0 ? $ : j, t.emit("update:modelValue", d.value), t.emit("change", d.value);
@@ -1621,16 +1622,16 @@ const Yn = /* @__PURE__ */ Z({
1621
1622
  t.emit("update:modelValue", "");
1622
1623
  }
1623
1624
  const M = P(() => {
1624
- const j = r.value.type || "input-group", $ = V(j), R = c(j, r.value), A = E(j), z = O(r.value.type);
1625
- return R[A] = T, R[z] = x, () => F($, Te({
1625
+ const j = r.value.type || "input-group", $ = V(j), G = c(j, r.value), A = E(j), z = O(r.value.type);
1626
+ return G[A] = T, G[z] = x, () => F($, Te({
1626
1627
  ref: u
1627
- }, R, {
1628
+ }, G, {
1628
1629
  modelValue: d.value,
1629
1630
  "onUpdate:modelValue": (i) => d.value = i
1630
1631
  }), null);
1631
1632
  });
1632
- return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([j, $, R, A, z, i, m, f, B]) => {
1633
- n.value = j, o.value = $, r.value = R, p.value = A, d.value = z, y.value = i, k.value = m, s.value = f, l.value = B;
1633
+ return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([j, $, G, A, z, i, m, f, B]) => {
1634
+ n.value = j, o.value = $, r.value = G, p.value = A, d.value = z, b.value = i, k.value = m, s.value = f, l.value = B;
1634
1635
  }), t.expose({
1635
1636
  editorRef: u
1636
1637
  }), () => l.value && F("div", {
@@ -1640,7 +1641,7 @@ const Yn = /* @__PURE__ */ Z({
1640
1641
  class: "farris-group-wrap"
1641
1642
  }, [F("div", {
1642
1643
  class: q.value
1643
- }, [s.value && F(kn, {
1644
+ }, [s.value && F(Bn, {
1644
1645
  id: `${n.value}-lable`,
1645
1646
  required: k.value,
1646
1647
  text: p.value,
@@ -1649,7 +1650,7 @@ const Yn = /* @__PURE__ */ Z({
1649
1650
  class: "farris-input-wrap"
1650
1651
  }, [M.value()])])])]);
1651
1652
  }
1652
- }), Kn = {
1653
+ }), eo = {
1653
1654
  id: { type: String, default: "" },
1654
1655
  /** 筛选组件配置器,具体配置项可查看各组件文档 */
1655
1656
  editor: { type: Object, default: {} },
@@ -1665,13 +1666,13 @@ const Yn = /* @__PURE__ */ Z({
1665
1666
  selectOnCreated: { type: Boolean, default: !1 }
1666
1667
  };
1667
1668
  X(
1668
- Kn,
1669
+ eo,
1669
1670
  pe,
1670
1671
  ee,
1671
1672
  void 0
1672
1673
  );
1673
- var eo = /* @__PURE__ */ ((e) => (e[e.IntType = 0] = "IntType", e[e.StringType = 1] = "StringType", e[e.BoolType = 2] = "BoolType", e))(eo || {}), ge = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(ge || {}), he = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(he || {});
1674
- const to = [
1674
+ var to = /* @__PURE__ */ ((e) => (e[e.IntType = 0] = "IntType", e[e.StringType = 1] = "StringType", e[e.BoolType = 2] = "BoolType", e))(to || {}), ge = /* @__PURE__ */ ((e) => (e[e.Value = 0] = "Value", e[e.SmartHelp = 1] = "SmartHelp", e[e.Enum = 2] = "Enum", e[e.Express = 3] = "Express", e))(ge || {}), he = /* @__PURE__ */ ((e) => (e.Equal = "0", e.NotEqual = "1", e.Greater = "2", e.GreaterOrEqual = "3", e.Less = "4", e.LessOrEqual = "5", e.Like = "6", e.LikeStartWith = "7", e.LikeEndWith = "8", e))(he || {});
1675
+ const no = [
1675
1676
  {
1676
1677
  value: "0",
1677
1678
  name: "等于"
@@ -1708,7 +1709,7 @@ const to = [
1708
1709
  value: "8",
1709
1710
  name: "结束是"
1710
1711
  }
1711
- ], no = {
1712
+ ], oo = {
1712
1713
  "button-edit": ["0", "1", " 6", "7", "8"],
1713
1714
  "check-box": ["0"],
1714
1715
  "combo-list": ["0", "1"],
@@ -1728,18 +1729,18 @@ const to = [
1728
1729
  "radio-group": ["0"],
1729
1730
  text: ["0", "1", " 6", "7", "8"]
1730
1731
  };
1731
- function oo(e, t, n) {
1732
+ function ro(e, t, n) {
1732
1733
  const { fieldMap: o } = n;
1733
1734
  function r(p) {
1734
1735
  const d = o.get(p.fieldCode);
1735
1736
  if (!d)
1736
1737
  return [];
1737
- const y = d.editor.type, k = new Set(no[y]);
1738
- return to.filter((l) => k.has(l.value));
1738
+ const b = d.editor.type, k = new Set(oo[b]);
1739
+ return no.filter((l) => k.has(l.value));
1739
1740
  }
1740
1741
  return { getCompareOperators: r };
1741
1742
  }
1742
- function ro() {
1743
+ function io() {
1743
1744
  const e = I({ relation: 0, items: [], children: [], path: [], groupId: 0, level: 0 }), t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1744
1745
  let o = 0;
1745
1746
  function r() {
@@ -1765,51 +1766,51 @@ function ro() {
1765
1766
  m.groupId === i.groupId && t.set(f, i);
1766
1767
  }), e.value = i;
1767
1768
  }
1768
- function y(i) {
1769
+ function b(i) {
1769
1770
  const m = /* @__PURE__ */ new Map();
1770
1771
  let f = 0;
1771
1772
  return i.forEach((B, a) => {
1772
- var b, S;
1773
- if (f += ((b = B.lBracket) == null ? void 0 : b.length) || 0, m.set(a, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
1773
+ var C, S;
1774
+ if (f += ((C = B.lBracket) == null ? void 0 : C.length) || 0, m.set(a, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
1774
1775
  throw new Error("The right bracket is out of range.");
1775
1776
  }), m;
1776
1777
  }
1777
1778
  function k(i, m, f, B, a) {
1778
- for (let b = 0; b < m; b++) {
1779
- const S = i + (b + 1), D = p(a, S);
1779
+ for (let C = 0; C < m; C++) {
1780
+ const S = i + (C + 1), D = p(a, S);
1780
1781
  f.children.push(D), n.set(D.groupId, f), f = f.children[f.children.length - 1], B.push(f);
1781
1782
  }
1782
1783
  return f;
1783
1784
  }
1784
1785
  function s(i, m, f, B, a) {
1785
- for (let G = m; G <= 0; G++)
1786
+ for (let R = m; R <= 0; R++)
1786
1787
  B.pop();
1787
- const b = B[B.length - 1];
1788
- if (!b)
1788
+ const C = B[B.length - 1];
1789
+ if (!C)
1789
1790
  throw new Error("The group path is out of range");
1790
1791
  const S = i + m, D = p(a, S);
1791
- return b.children.push(D), n.set(D.groupId, b), f = b.children[b.children.length - 1], B.push(f), f;
1792
+ return C.children.push(D), n.set(D.groupId, C), f = C.children[C.children.length - 1], B.push(f), f;
1792
1793
  }
1793
1794
  function l(i, m, f, B) {
1794
1795
  f.pop();
1795
- const a = f[f.length - 1], b = p(B, i);
1796
- return a.children.push(b), n.set(b.groupId, a), m = a.children[a.children.length - 1], f.push(m), m;
1796
+ const a = f[f.length - 1], C = p(B, i);
1797
+ return a.children.push(C), n.set(C.groupId, a), m = a.children[a.children.length - 1], f.push(m), m;
1797
1798
  }
1798
- function u(i, m, f, B, a, b) {
1799
+ function u(i, m, f, B, a, C) {
1799
1800
  let S = i[i.length - 1];
1800
1801
  if (!S)
1801
1802
  throw new Error("The group path is out of range");
1802
- const D = m.get(B) || 0, G = m.get(f) || 0;
1803
+ const D = m.get(B) || 0, R = m.get(f) || 0;
1803
1804
  if (f < 0 || f === B)
1804
1805
  return i[i.length - 1];
1805
- const N = D - G, L = a && a.relation !== void 0 ? a.relation : 1;
1806
- return S = N > 0 ? k(G, N, S, i, L) : S, S = N < 0 ? s(G, N, S, i, L) : S, S = N === 0 && G > 0 && D > 0 && a && b && !!a.rBracket && !!b.lBracket ? l(G, S, i, L) : S, S;
1806
+ const N = D - R, L = a && a.relation !== void 0 ? a.relation : 1;
1807
+ return S = N > 0 ? k(R, N, S, i, L) : S, S = N < 0 ? s(R, N, S, i, L) : S, S = N === 0 && R > 0 && D > 0 && a && C && !!a.rBracket && !!C.lBracket ? l(R, S, i, L) : S, S;
1807
1808
  }
1808
1809
  function c(i) {
1809
- const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], a = y(i);
1810
- return i.forEach((b, S) => {
1811
- const D = S - 1, G = i[D], N = u(B, a, D, S, G, b);
1812
- N.items.push(b), t.set(b.conditionId, N);
1810
+ const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], a = b(i);
1811
+ return i.forEach((C, S) => {
1812
+ const D = S - 1, R = i[D], N = u(B, a, D, S, R, C);
1813
+ N.items.push(C), t.set(C.conditionId, N);
1813
1814
  }), e.value = f, f;
1814
1815
  }
1815
1816
  function V() {
@@ -1830,21 +1831,21 @@ function ro() {
1830
1831
  m && (m.items = m.items.filter((f) => f.conditionId !== i.conditionId), t.delete(i.conditionId), z(), d());
1831
1832
  }
1832
1833
  function q(i, m, f, B) {
1833
- i.reduce((a, b) => {
1834
- const S = b.conditionId !== void 0, D = b.groupId !== void 0;
1834
+ i.reduce((a, C) => {
1835
+ const S = C.conditionId !== void 0, D = C.groupId !== void 0;
1835
1836
  if (S) {
1836
- const G = b;
1837
- f.push(G), a.items.set(G.conditionId, G);
1837
+ const R = C;
1838
+ f.push(R), a.items.set(R.conditionId, R);
1838
1839
  }
1839
1840
  if (D) {
1840
- const G = b;
1841
- B.push(G), a.groups.set(G.groupId, G);
1841
+ const R = C;
1842
+ B.push(R), a.groups.set(R.groupId, R);
1842
1843
  }
1843
1844
  return a;
1844
1845
  }, m);
1845
1846
  }
1846
1847
  function T(i, m, f, B, a) {
1847
- i && (i.items = m.length ? i.items.filter((b) => !f.has(b.conditionId)) : i.items, i.children = B.length ? i.children.filter((b) => !a.has(b.groupId)) : i.children);
1848
+ i && (i.items = m.length ? i.items.filter((C) => !f.has(C.conditionId)) : i.items, i.children = B.length ? i.children.filter((C) => !a.has(C.groupId)) : i.children);
1848
1849
  }
1849
1850
  function x(i, m, f) {
1850
1851
  m.forEach((B) => {
@@ -1854,11 +1855,11 @@ function ro() {
1854
1855
  });
1855
1856
  }
1856
1857
  function M(i) {
1857
- const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, a = [], b = [];
1858
+ const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, a = [], C = [];
1858
1859
  if (f) {
1859
- q(i, B, a, b), T(f, a, B.items, b, B.groups);
1860
+ q(i, B, a, C), T(f, a, B.items, C, B.groups);
1860
1861
  const S = p(f.relation, f.level + 1);
1861
- x(S, a, b), f.children.push(S), n.set(S.groupId, f), d();
1862
+ x(S, a, C), f.children.push(S), n.set(S.groupId, f), d();
1862
1863
  }
1863
1864
  }
1864
1865
  function j(i) {
@@ -1872,16 +1873,16 @@ function ro() {
1872
1873
  function $(i) {
1873
1874
  i.relation = i.relation === 1 ? 2 : 1, d();
1874
1875
  }
1875
- let R;
1876
+ let G;
1876
1877
  function A(i) {
1877
1878
  const { relation: m } = i;
1878
- return (i.children && i.children.length ? i.children.map((B, a, b) => {
1879
- const S = R(B);
1880
- return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = a < b.length - 1 ? m : 0, S;
1879
+ return (i.children && i.children.length ? i.children.map((B, a, C) => {
1880
+ const S = G(B);
1881
+ return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = a < C.length - 1 ? m : 0, S;
1881
1882
  }) : []).flat();
1882
1883
  }
1883
- R = (i = e.value) => {
1884
- const { relation: m } = i, f = i.items.map((a, b, S) => (a.lBracket = b === 0 ? "(" : "", a.rBracket = b === S.length - 1 ? ")" : "", a.relation = b < S.length - 1 ? m || 1 : 0, a)), B = A(i);
1884
+ G = (i = e.value) => {
1885
+ const { relation: m } = i, f = i.items.map((a, C, S) => (a.lBracket = C === 0 ? "(" : "", a.rBracket = C === S.length - 1 ? ")" : "", a.relation = C < S.length - 1 ? m || 1 : 0, a)), B = A(i);
1885
1886
  return [...f, ...B];
1886
1887
  };
1887
1888
  function z(i) {
@@ -1897,7 +1898,7 @@ function ro() {
1897
1898
  addCondition: V,
1898
1899
  changeGroupRelation: $,
1899
1900
  conditionGroupMap: t,
1900
- getConditions: R,
1901
+ getConditions: G,
1901
1902
  group: M,
1902
1903
  groupParentMap: n,
1903
1904
  insertConditionTo: E,
@@ -1908,11 +1909,11 @@ function ro() {
1908
1909
  unGroup: j
1909
1910
  };
1910
1911
  }
1911
- function io(e, t, n) {
1912
+ function ao(e, t, n) {
1912
1913
  const o = I(/* @__PURE__ */ new Set()), r = I(/* @__PURE__ */ new Set()), { conditionGroupMap: p, groupParentMap: d } = n;
1913
- let y, k;
1914
+ let b, k;
1914
1915
  function s(T) {
1915
- let x = y.level <= T.level ? y : T, M = y.level > T.level ? y : T;
1916
+ let x = b.level <= T.level ? b : T, M = b.level > T.level ? b : T;
1916
1917
  const j = [];
1917
1918
  for (; M && x && M !== x; )
1918
1919
  M.level > x.level ? (j.push(M), M = d.get(M.groupId)) : M.level === x.level && (x = d.get(x.groupId), x && j.unshift(x));
@@ -1923,7 +1924,7 @@ function io(e, t, n) {
1923
1924
  }
1924
1925
  function u(T) {
1925
1926
  const { conditionId: x } = T;
1926
- o.value.add(x), y = o.value.size === 0 ? p.get(x) : y;
1927
+ o.value.add(x), b = o.value.size === 0 ? p.get(x) : b;
1927
1928
  const M = p.get(T.conditionId);
1928
1929
  s(M).forEach(($) => l($));
1929
1930
  }
@@ -1941,11 +1942,11 @@ function io(e, t, n) {
1941
1942
  };
1942
1943
  function E(T) {
1943
1944
  const { conditionId: x } = T;
1944
- o.value.size === 0 && (y = p.get(x)), o.value.has(x) ? k(T) : u(T);
1945
+ o.value.size === 0 && (b = p.get(x)), o.value.has(x) ? k(T) : u(T);
1945
1946
  }
1946
1947
  function O() {
1947
1948
  const T = [];
1948
- return y && (y.items.filter((x) => o.value.has(x.conditionId)).forEach((x) => T.push(x)), y.children.filter((x) => r.value.has(x.groupId)).forEach((x) => T.push(x))), T;
1949
+ return b && (b.items.filter((x) => o.value.has(x.conditionId)).forEach((x) => T.push(x)), b.children.filter((x) => r.value.has(x.groupId)).forEach((x) => T.push(x))), T;
1949
1950
  }
1950
1951
  function q() {
1951
1952
  o.value.clear(), r.value.clear();
@@ -1960,9 +1961,9 @@ const Y = /* @__PURE__ */ Z({
1960
1961
  const n = I(e.key), o = I(e.conditions), r = ue(e), {
1961
1962
  convertToSingleControl: p,
1962
1963
  fields: d,
1963
- fieldMap: y,
1964
+ fieldMap: b,
1964
1965
  loadFieldConfigs: k
1965
- } = r, s = ro(), {
1966
+ } = r, s = io(), {
1966
1967
  addCondition: l,
1967
1968
  changeGroupRelation: u,
1968
1969
  getConditions: c,
@@ -1975,16 +1976,16 @@ const Y = /* @__PURE__ */ Z({
1975
1976
  unGroup: M
1976
1977
  } = s, {
1977
1978
  createConditionValue: j
1978
- } = se(), $ = io(e, t, s), {
1979
- selectedItems: R,
1979
+ } = se(), $ = ao(e, t, s), {
1980
+ selectedItems: G,
1980
1981
  toggleSelect: A
1981
1982
  } = $, {
1982
1983
  getCompareOperators: z
1983
- } = oo(e, t, r);
1984
+ } = ro(e, t, r);
1984
1985
  k(!1), d.value = p(d.value), O(o.value);
1985
1986
  function i(N) {
1986
1987
  var H;
1987
- const L = ((H = y.get(N.fieldCode)) == null ? void 0 : H.editor) || {
1988
+ const L = ((H = b.get(N.fieldCode)) == null ? void 0 : H.editor) || {
1988
1989
  type: "text"
1989
1990
  };
1990
1991
  N.value = j(L.type, void 0), t.emit("labelCodeChange", N);
@@ -2028,8 +2029,8 @@ const Y = /* @__PURE__ */ Z({
2028
2029
  onChange: (U) => m(U, L)
2029
2030
  }, null)]), F("div", {
2030
2031
  class: "condition-list-item-control mr-3"
2031
- }, [F(Yn, {
2032
- editor: (H = y.get(L.fieldCode)) == null ? void 0 : H.editor,
2032
+ }, [F(Kn, {
2033
+ editor: (H = b.get(L.fieldCode)) == null ? void 0 : H.editor,
2033
2034
  showLabel: !1,
2034
2035
  modelValue: L.value.value,
2035
2036
  "onUpdate:modelValue": (U) => L.value.value = U,
@@ -2050,14 +2051,14 @@ const Y = /* @__PURE__ */ Z({
2050
2051
  title: "selection",
2051
2052
  class: "custom-control-input",
2052
2053
  type: "checkbox",
2053
- checked: R.value.has(L.conditionId)
2054
+ checked: G.value.has(L.conditionId)
2054
2055
  }, null), F("label", {
2055
2056
  class: "custom-control-label",
2056
2057
  onClick: () => A(L)
2057
2058
  }, null)])]);
2058
2059
  });
2059
2060
  }
2060
- function b(N) {
2061
+ function C(N) {
2061
2062
  return F("div", {
2062
2063
  class: "condition-list-relation"
2063
2064
  }, [F("span", {
@@ -2073,12 +2074,12 @@ const Y = /* @__PURE__ */ Z({
2073
2074
  class: "condition-list-content"
2074
2075
  }, [F("div", {
2075
2076
  class: "condition-list-content-group"
2076
- }, [a(N), N.children && N.children.map((L) => S(L))]), b(N)]);
2077
+ }, [a(N), N.children && N.children.map((L) => S(L))]), C(N)]);
2077
2078
  }
2078
2079
  function D() {
2079
2080
  V($.getSelectedGroupItem()), $.clear();
2080
2081
  }
2081
- function G() {
2082
+ function R() {
2082
2083
  return F("div", {
2083
2084
  class: "condition-list-bottom"
2084
2085
  }, [F("div", {
@@ -2105,18 +2106,18 @@ const Y = /* @__PURE__ */ Z({
2105
2106
  key: n.value
2106
2107
  }, [F("div", {
2107
2108
  class: "condition-list-body"
2108
- }, [S(x.value)]), G()]);
2109
+ }, [S(x.value)]), R()]);
2109
2110
  }
2110
2111
  });
2111
2112
  Y.install = (e) => {
2112
2113
  e.component(re.name, re).component(Y.name, Y);
2113
2114
  };
2114
2115
  export {
2115
- eo as EnumType,
2116
+ to as EnumType,
2116
2117
  re as FConditionFields,
2117
2118
  Y as FConditionList,
2118
2119
  ge as ValueType,
2119
2120
  ae as conditionProps,
2120
2121
  Y as default,
2121
- ro as useCondition
2122
+ io as useCondition
2122
2123
  };