@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
@@ -1,16 +1,16 @@
1
1
  var Ce = Object.defineProperty;
2
2
  var Se = (e, t, n) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var $ = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as b, computed as O, createVNode as h, Fragment as Q, watch as N, withModifiers as we, withDirectives as Fe, vModelText as Te, defineComponent as H, inject as q, onMounted as ie, nextTick as ke } from "vue";
4
+ import { ref as C, computed as B, createVNode as v, Fragment as Q, watch as H, withModifiers as we, withDirectives as Fe, vModelText as ke, defineComponent as N, inject as q, onMounted as ie, nextTick as Te } from "vue";
5
5
  import { cloneDeep as Me } from "lodash-es";
6
- import { useIdentify as Ve, useHierarchy as De, useGroupData as Ie, usePagination as je, useDataView as Pe, useSelection as Be, useEdit as Oe, useVisualDataBound as Ae, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as $e, useVisualSummaryRow as Ee, useVisualData as Ne } from "@farris/ui-vue/components/data-view";
6
+ import { useIdentify as Ve, useHierarchy as De, useGroupData as je, usePagination as Ie, useDataView as Oe, useSelection as Pe, useEdit as Be, useVisualDataBound as Ae, useVisualDataCell as xe, useVisualDataRow as Le, useVisualGroupRow as $e, useVisualSummaryRow as Ee, useVisualData as He } from "@farris/ui-vue/components/data-view";
7
7
  import { FCheckBox as X } from "@farris/ui-vue/components/checkbox";
8
- import He from "@farris/ui-vue/components/list-view";
8
+ import Ne from "@farris/ui-vue/components/list-view";
9
9
  import le from "@farris/ui-vue/components/button-edit";
10
10
  import { useDesignerComponent as Re } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
11
11
  const se = {}, ce = {};
12
12
  function Y(e) {
13
- const { properties: t, title: n } = e, o = Object.keys(t).reduce((c, i) => (c[i] = t[i].type === "object" && t[i].properties ? Y(t[i]) : Me(t[i].default), c), {});
13
+ const { properties: t, title: n } = e, o = Object.keys(t).reduce((c, r) => (c[r] = t[r].type === "object" && t[r].properties ? Y(t[r]) : Me(t[r].default), c), {});
14
14
  return o.id = `${n}-${Date.now()}`, o;
15
15
  }
16
16
  function R(e, t = {}) {
@@ -29,12 +29,12 @@ function Ue(e, t) {
29
29
  function ze(e, t) {
30
30
  return Object.keys(e).filter((o) => e[o] != null).reduce((o, c) => {
31
31
  if (t.has(c)) {
32
- const i = t.get(c);
33
- if (typeof i == "string")
34
- o[i] = e[c];
32
+ const r = t.get(c);
33
+ if (typeof r == "string")
34
+ o[r] = e[c];
35
35
  else {
36
- const u = i(c, e[c], e);
37
- Object.assign(o, u);
36
+ const d = r(c, e[c], e);
37
+ Object.assign(o, d);
38
38
  }
39
39
  } else
40
40
  o[c] = e[c];
@@ -46,58 +46,58 @@ function Ge(e, t, n = /* @__PURE__ */ new Map()) {
46
46
  return ze(o, n);
47
47
  }
48
48
  function _e(e = {}) {
49
- function t(f, y, a, r) {
50
- if (typeof a == "number")
51
- return r[f].length === a;
52
- if (typeof a == "object") {
53
- const w = Object.keys(a)[0], s = a[w];
54
- if (w === "not")
55
- return Number(r[f].length) !== Number(s);
56
- if (w === "moreThan")
57
- return Number(r[f].length) >= Number(s);
58
- if (w === "lessThan")
59
- return Number(r[f].length) <= Number(s);
49
+ function t(m, g, l, i) {
50
+ if (typeof l == "number")
51
+ return i[m].length === l;
52
+ if (typeof l == "object") {
53
+ const h = Object.keys(l)[0], a = l[h];
54
+ if (h === "not")
55
+ return Number(i[m].length) !== Number(a);
56
+ if (h === "moreThan")
57
+ return Number(i[m].length) >= Number(a);
58
+ if (h === "lessThan")
59
+ return Number(i[m].length) <= Number(a);
60
60
  }
61
61
  return !1;
62
62
  }
63
- function n(f, y, a, r) {
64
- return r[f] && r[f].propertyValue && String(r[f].propertyValue.value) === String(a);
63
+ function n(m, g, l, i) {
64
+ return i[m] && i[m].propertyValue && String(i[m].propertyValue.value) === String(l);
65
65
  }
66
66
  const o = /* @__PURE__ */ new Map([
67
67
  ["length", t],
68
68
  ["getProperty", n]
69
69
  ]);
70
- Object.keys(e).reduce((f, y) => (f.set(y, e[y]), f), o);
71
- function c(f, y) {
72
- const a = f;
73
- return typeof y == "number" ? [{ target: a, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: a, operator: "getProperty", param: f, value: !!y }] : typeof y == "object" ? Object.keys(y).map((r) => {
74
- if (r === "length")
75
- return { target: a, operator: "length", param: null, value: y[r] };
76
- const w = r, s = y[r];
77
- return { target: a, operator: "getProperty", param: w, value: s };
70
+ Object.keys(e).reduce((m, g) => (m.set(g, e[g]), m), o);
71
+ function c(m, g) {
72
+ const l = m;
73
+ return typeof g == "number" ? [{ target: l, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: l, operator: "getProperty", param: m, value: !!g }] : typeof g == "object" ? Object.keys(g).map((i) => {
74
+ if (i === "length")
75
+ return { target: l, operator: "length", param: null, value: g[i] };
76
+ const h = i, a = g[i];
77
+ return { target: l, operator: "getProperty", param: h, value: a };
78
78
  }) : [];
79
79
  }
80
- function i(f) {
81
- return Object.keys(f).reduce((a, r) => {
82
- const w = c(r, f[r]);
83
- return a.push(...w), a;
80
+ function r(m) {
81
+ return Object.keys(m).reduce((l, i) => {
82
+ const h = c(i, m[i]);
83
+ return l.push(...h), l;
84
84
  }, []);
85
85
  }
86
- function u(f, y) {
87
- if (o.has(f.operator)) {
88
- const a = o.get(f.operator);
89
- return a && a(f.target, f.param, f.value, y) || !1;
86
+ function d(m, g) {
87
+ if (o.has(m.operator)) {
88
+ const l = o.get(m.operator);
89
+ return l && l(m.target, m.param, m.value, g) || !1;
90
90
  }
91
91
  return !1;
92
92
  }
93
- function m(f, y) {
94
- return i(f).reduce((w, s) => w && u(s, y), !0);
93
+ function y(m, g) {
94
+ return r(m).reduce((h, a) => h && d(a, g), !0);
95
95
  }
96
- function S(f, y) {
97
- const a = Object.keys(f), r = a.includes("allOf"), w = a.includes("anyOf"), s = r || w, d = (s ? f[s ? r ? "allOf" : "anyOf" : "allOf"] : [f]).map((T) => m(T, y));
98
- return r ? !d.includes(!1) : d.includes(!0);
96
+ function w(m, g) {
97
+ const l = Object.keys(m), i = l.includes("allOf"), h = l.includes("anyOf"), a = i || h, u = (a ? m[a ? i ? "allOf" : "anyOf" : "allOf"] : [m]).map((k) => y(k, g));
98
+ return i ? !u.includes(!1) : u.includes(!0);
99
99
  }
100
- return { parseValueSchema: S };
100
+ return { parseValueSchema: w };
101
101
  }
102
102
  const M = {
103
103
  Button: { type: "Button", name: "按钮", icon: "Button" },
@@ -212,10 +212,10 @@ const M = {
212
212
  /** 审批类 end */
213
213
  }, We = {}, qe = {};
214
214
  _e();
215
- function Z(e, t, n = /* @__PURE__ */ new Map(), o = (u, m, S) => m, c = {}, i = (u) => u) {
216
- return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] = i, (u = {}) => {
217
- const m = Ge(u, t, n), S = Object.keys(e).reduce((f, y) => (f[y] = e[y].default, f), {});
218
- return Object.assign(S, m);
215
+ function Z(e, t, n = /* @__PURE__ */ new Map(), o = (d, y, w) => y, c = {}, r = (d) => d) {
216
+ return se[t.title] = t, ce[t.title] = o, We[t.title] = c, qe[t.title] = r, (d = {}) => {
217
+ const y = Ge(d, t, n), w = Object.keys(e).reduce((m, g) => (m[g] = e[g].default, m), {});
218
+ return Object.assign(w, y);
219
219
  };
220
220
  }
221
221
  function J(e, t) {
@@ -580,199 +580,201 @@ const dt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
580
580
  }
581
581
  },
582
582
  keepOrder: { type: Boolean, default: !1 },
583
- disableField: { type: String, default: "disabled" }
583
+ disableField: { type: String, default: "disabled" },
584
+ // 搜索启用高亮
585
+ enableHighlightSearch: { type: Boolean, default: !0 }
584
586
  };
585
587
  Z(ue, vt, ct, ut, Ft);
586
- function Tt(e, t) {
587
- function n(i) {
588
- const u = [];
589
- let m = i.nextNode();
590
- for (; m; )
591
- u.push(m), m = i.nextNode();
592
- return u;
593
- }
594
- function o(i, u) {
595
- const m = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
596
- return n(m).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: r }) => {
597
- const w = [];
598
- let s = 0;
599
- for (; s < r.length; ) {
600
- const g = r.indexOf(u, s);
601
- if (g === -1)
588
+ function kt(e, t) {
589
+ function n(r) {
590
+ const d = [];
591
+ let y = r.nextNode();
592
+ for (; y; )
593
+ d.push(y), y = r.nextNode();
594
+ return d;
595
+ }
596
+ function o(r, d) {
597
+ const y = document.createTreeWalker(r, NodeFilter.SHOW_TEXT);
598
+ return n(y).map((l) => ({ textNode: l, text: (l.textContent || "").toLocaleLowerCase() })).map(({ textNode: l, text: i }) => {
599
+ const h = [];
600
+ let a = 0;
601
+ for (; a < i.length; ) {
602
+ const f = i.indexOf(d, a);
603
+ if (f === -1)
602
604
  break;
603
- w.push(g), s = g + u.length;
605
+ h.push(f), a = f + d.length;
604
606
  }
605
- return w.map((g) => {
606
- const l = new Range();
607
- return l.setStart(a, g), l.setEnd(a, g + u.length), l;
607
+ return h.map((f) => {
608
+ const s = new Range();
609
+ return s.setStart(l, f), s.setEnd(l, f + d.length), s;
608
610
  });
609
611
  }).flat();
610
612
  }
611
- function c(i) {
612
- if (!CSS.highlights || (CSS.highlights.clear(), !i || !t))
613
+ function c(r) {
614
+ if (!CSS.highlights || (CSS.highlights.clear(), !r || !t))
613
615
  return;
614
- const u = o(t.value, i.toLocaleLowerCase()), m = new Highlight(...u);
615
- CSS.highlights.set("search-result", m);
616
+ const d = o(t.value, r.toLocaleLowerCase()), y = new Highlight(...d);
617
+ CSS.highlights.set("search-result", y);
616
618
  }
617
619
  return { search: c };
618
620
  }
619
- function ae(e, t, n, o, c, i, u, m, S, f) {
620
- const y = b(e.size), a = b(e.textField), r = b(e.titleField), w = b(e.multiSelect), s = b(e.disableField), {
621
- onMouseenterItem: g,
622
- onMouseoverItem: l,
623
- onMouseoutItem: d
624
- } = i, {
621
+ function ae(e, t, n, o, c, r, d, y, w, m) {
622
+ const g = C(e.size), l = C(e.textField), i = C(e.titleField), h = C(e.multiSelect), a = C(e.disableField), {
623
+ onMouseenterItem: f,
624
+ onMouseoverItem: s,
625
+ onMouseoutItem: u
626
+ } = r, {
625
627
  getKey: F,
626
- listViewItemClass: T,
627
- onCheckItem: I,
628
- onClickItem: C
629
- } = u, v = O(() => ({
630
- margin: y.value === "small" ? "0.25rem 0" : "10px 0"
628
+ listViewItemClass: k,
629
+ onCheckItem: j,
630
+ onClickItem: S
631
+ } = d, b = B(() => ({
632
+ margin: g.value === "small" ? "0.25rem 0" : "10px 0"
631
633
  }));
632
634
  function D(p, V, A) {
633
- return p.checked = m.findIndexInSelectedItems(p) > -1, h("li", {
634
- class: T(p, V),
635
+ return p.checked = y.findIndexInSelectedItems(p) > -1, v("li", {
636
+ class: k(p, V),
635
637
  id: F(p, V),
636
638
  key: F(p, V),
637
- onClick: (k) => C(k, p, V),
638
- onMouseenter: (k) => g(k, p, V),
639
- onMouseover: (k) => l(k, p, V),
640
- onMouseout: (k) => d(k, p, V)
641
- }, [w.value && h("div", {
639
+ onClick: (T) => S(T, p, V),
640
+ onMouseenter: (T) => f(T, p, V),
641
+ onMouseover: (T) => s(T, p, V),
642
+ onMouseout: (T) => u(T, p, V)
643
+ }, [h.value && v("div", {
642
644
  class: "f-list-select",
643
- onClick: (k) => k.stopPropagation()
644
- }, [h(X, {
645
+ onClick: (T) => T.stopPropagation()
646
+ }, [v(X, {
645
647
  id: "list-" + F(p, V),
646
648
  customClass: "listview-checkbox",
647
- disabled: p[s.value],
649
+ disabled: p[a.value],
648
650
  checked: p.checked,
649
- "onUpdate:checked": (k) => p.checked = k,
650
- onChange: (k) => {
651
- I(p, V, !k.checked);
651
+ "onUpdate:checked": (T) => p.checked = T,
652
+ onChange: (T) => {
653
+ j(p, V, !T.checked);
652
654
  }
653
- }, null)]), h("div", {
655
+ }, null)]), v("div", {
654
656
  class: "f-list-content"
655
- }, [h("div", {
656
- style: v.value,
657
- title: p.raw[r.value] || p.raw[a.value]
658
- }, [p.raw[a.value]])])]);
657
+ }, [v("div", {
658
+ style: b.value,
659
+ title: p.raw[i.value] || p.raw[l.value]
660
+ }, [p.raw[l.value]])])]);
659
661
  }
660
662
  return {
661
663
  renderItem: D
662
664
  };
663
665
  }
664
- function kt(e, t, n, o, c, i, u, m, S, f) {
665
- const y = b(e.multiSelect), a = b(e.disableField), {
666
- onMouseenterItem: r,
667
- onMouseoverItem: w,
668
- onMouseoutItem: s
669
- } = i, {
670
- getKey: g,
671
- listViewItemClass: l,
672
- onCheckItem: d,
666
+ function Tt(e, t, n, o, c, r, d, y, w, m) {
667
+ const g = C(e.multiSelect), l = C(e.disableField), {
668
+ onMouseenterItem: i,
669
+ onMouseoverItem: h,
670
+ onMouseoutItem: a
671
+ } = r, {
672
+ getKey: f,
673
+ listViewItemClass: s,
674
+ onCheckItem: u,
673
675
  onClickItem: F
674
- } = u;
675
- function T(C, v, D) {
676
- return t.slots.content ? h(Q, null, [t.slots.content && t.slots.content({
677
- item: C.raw,
678
- index: v,
676
+ } = d;
677
+ function k(S, b, D) {
678
+ return t.slots.content ? v(Q, null, [t.slots.content && t.slots.content({
679
+ item: S.raw,
680
+ index: b,
679
681
  selectedItem: D
680
- })]) : h("div", {
682
+ })]) : v("div", {
681
683
  style: "margin: 10px 0;"
682
- }, [C.raw.name]);
683
- }
684
- function I(C, v, D) {
685
- return h("li", {
686
- class: l(C, v),
687
- id: g(C, v),
688
- key: g(C, v),
689
- onClick: (p) => F(p, C, v),
690
- onMouseenter: (p) => r(p, C, v),
691
- onMouseover: (p) => w(p, C, v),
692
- onMouseout: (p) => s(p, C, v)
693
- }, [y.value && h("div", {
684
+ }, [S.raw.name]);
685
+ }
686
+ function j(S, b, D) {
687
+ return v("li", {
688
+ class: s(S, b),
689
+ id: f(S, b),
690
+ key: f(S, b),
691
+ onClick: (p) => F(p, S, b),
692
+ onMouseenter: (p) => i(p, S, b),
693
+ onMouseover: (p) => h(p, S, b),
694
+ onMouseout: (p) => a(p, S, b)
695
+ }, [g.value && v("div", {
694
696
  class: "f-list-select",
695
697
  onClick: (p) => p.stopPropagation()
696
- }, [h(X, {
697
- id: "list-" + g(C, v),
698
+ }, [v(X, {
699
+ id: "list-" + f(S, b),
698
700
  customClass: "listview-checkbox",
699
- disabled: C[a.value] || !C.checked,
700
- checked: C.checked,
701
- "onUpdate:checked": (p) => C.checked = p,
702
- onChange: (p) => d(C, v, !p.checked)
703
- }, null)]), h("div", {
701
+ disabled: S[l.value] || !S.checked,
702
+ checked: S.checked,
703
+ "onUpdate:checked": (p) => S.checked = p,
704
+ onChange: (p) => u(S, b, !p.checked)
705
+ }, null)]), v("div", {
704
706
  class: "f-list-content"
705
- }, [T(C, v, D)])]);
707
+ }, [k(S, b, D)])]);
706
708
  }
707
709
  return {
708
- renderItem: I
710
+ renderItem: j
709
711
  };
710
712
  }
711
- function Mt(e, t, n, o, c, i, u, m, S, f) {
712
- const y = b(e.multiSelect), a = b(e.disableField), {
713
- onMouseenterItem: r,
714
- onMouseoverItem: w,
715
- onMouseoutItem: s
716
- } = i, {
717
- getKey: g,
718
- listViewItemClass: l,
719
- onCheckItem: d,
713
+ function Mt(e, t, n, o, c, r, d, y, w, m) {
714
+ const g = C(e.multiSelect), l = C(e.disableField), {
715
+ onMouseenterItem: i,
716
+ onMouseoverItem: h,
717
+ onMouseoutItem: a
718
+ } = r, {
719
+ getKey: f,
720
+ listViewItemClass: s,
721
+ onCheckItem: u,
720
722
  onClickItem: F
721
- } = u, {
722
- dragstart: T,
723
- dragenter: I,
724
- dragover: C,
725
- dragend: v
723
+ } = d, {
724
+ dragstart: k,
725
+ dragenter: j,
726
+ dragover: S,
727
+ dragend: b
726
728
  } = o, {
727
729
  removeItem: D
728
- } = S, p = O(() => ({
729
- margin: y.value ? "10px 0" : "10px 0px 10px 14px"
730
+ } = w, p = B(() => ({
731
+ margin: g.value ? "10px 0" : "10px 0px 10px 14px"
730
732
  }));
731
- function V(j) {
732
- return h("div", {
733
+ function V(I) {
734
+ return v("div", {
733
735
  style: p.value
734
- }, [j.raw.name]);
736
+ }, [I.raw.name]);
735
737
  }
736
738
  function A() {
737
739
  return t.slots.itemContent ? t.slots.itemContent : V;
738
740
  }
739
- const k = A();
740
- function x(j, B, E) {
741
- return h("li", {
742
- class: l(j, B),
743
- id: g(j, B),
744
- key: g(j, B),
745
- onClick: (P) => F(P, j, B),
746
- onMouseenter: (P) => r(P, j, B),
747
- onMouseover: (P) => w(P, j, B),
748
- onMouseout: (P) => s(P, j, B),
741
+ const T = A();
742
+ function x(I, P, E) {
743
+ return v("li", {
744
+ class: s(I, P),
745
+ id: f(I, P),
746
+ key: f(I, P),
747
+ onClick: (O) => F(O, I, P),
748
+ onMouseenter: (O) => i(O, I, P),
749
+ onMouseover: (O) => h(O, I, P),
750
+ onMouseout: (O) => a(O, I, P),
749
751
  draggable: "true",
750
- onDragstart: (P) => T(P, j, B),
751
- onDragenter: (P) => I(P, B),
752
- onDragend: (P) => v(P, j),
753
- onDragover: (P) => C(P, B)
754
- }, [y.value && h("div", {
752
+ onDragstart: (O) => k(O, I, P),
753
+ onDragenter: (O) => j(O, P),
754
+ onDragend: (O) => b(O, I),
755
+ onDragover: (O) => S(O, P)
756
+ }, [g.value && v("div", {
755
757
  class: "f-list-select",
756
- onClick: (P) => P.stopPropagation()
757
- }, [h(X, {
758
- id: "list-" + g(j, B),
758
+ onClick: (O) => O.stopPropagation()
759
+ }, [v(X, {
760
+ id: "list-" + f(I, P),
759
761
  customClass: "listview-checkbox",
760
- disabled: j[a.value] || !j.checked,
761
- checked: j.checked,
762
- "onUpdate:checked": (P) => j.checked = P,
763
- onChange: (P) => d(j, B, !P.checked)
764
- }, null)]), h("div", {
762
+ disabled: I[l.value] || !I.checked,
763
+ checked: I.checked,
764
+ "onUpdate:checked": (O) => I.checked = O,
765
+ onChange: (O) => u(I, P, !O.checked)
766
+ }, null)]), v("div", {
765
767
  class: "f-list-content"
766
- }, [k(j)]), h("div", {
768
+ }, [T(I)]), v("div", {
767
769
  class: "f-list-remove",
768
- onClick: (P) => D(B)
769
- }, [h("div", {
770
+ onClick: (O) => D(P)
771
+ }, [v("div", {
770
772
  class: "f-list-remove-icon"
771
- }, [h("i", {
773
+ }, [v("i", {
772
774
  class: "f-icon f-icon-remove_face"
773
- }, null)])]), h("div", {
775
+ }, null)])]), v("div", {
774
776
  class: "f-list-handle"
775
- }, [h("div", null, [h("i", {
777
+ }, [v("div", null, [v("i", {
776
778
  class: "f-icon f-icon-drag-vertical"
777
779
  }, null)])])]);
778
780
  }
@@ -780,47 +782,47 @@ function Mt(e, t, n, o, c, i, u, m, S, f) {
780
782
  renderItem: x
781
783
  };
782
784
  }
783
- function Vt(e, t, n, o, c, i, u, m, S, f) {
784
- var g;
785
- const y = b(((g = e.group) == null ? void 0 : g.groupFields) || []), {
786
- collpaseGroupIconClass: a
785
+ function Vt(e, t, n, o, c, r, d, y, w, m) {
786
+ var f;
787
+ const g = C(((f = e.group) == null ? void 0 : f.groupFields) || []), {
788
+ collpaseGroupIconClass: l
787
789
  } = c, {
788
- toggleGroupRow: r
789
- } = f;
790
- function w(l, d) {
791
- d.collapse = !d.collapse, n.value = r(d.collapse ? "collapse" : "expand", d, n.value);
790
+ toggleGroupRow: i
791
+ } = m;
792
+ function h(s, u) {
793
+ u.collapse = !u.collapse, n.value = i(u.collapse ? "collapse" : "expand", u, n.value);
792
794
  }
793
- function s(l, d, F) {
794
- return l.layer > -1 && h("div", {
795
+ function a(s, u, F) {
796
+ return s.layer > -1 && v("div", {
795
797
  class: "f-navlookup-recentHeader",
796
- onClick: (T) => w(T, l)
797
- }, [h("div", {
798
+ onClick: (k) => h(k, s)
799
+ }, [v("div", {
798
800
  class: "fv-grid-group-row-icon"
799
- }, [h("span", {
800
- class: a(l)
801
- }, null)]), h("div", {
801
+ }, [v("span", {
802
+ class: l(s)
803
+ }, null)]), v("div", {
802
804
  class: "f-navlookup-recommandLabel"
803
- }, [l.raw[y.value[l.layer]]])]);
805
+ }, [s.raw[g.value[s.layer]]])]);
804
806
  }
805
807
  return {
806
- renderItem: s
808
+ renderItem: a
807
809
  };
808
810
  }
809
811
  function Dt() {
810
- const e = b(-1), t = b(""), n = b(-1), o = b(!1);
811
- function c(f, y, a) {
812
- n.value = a;
812
+ const e = C(-1), t = C(""), n = C(-1), o = C(!1);
813
+ function c(m, g, l) {
814
+ n.value = l;
813
815
  }
814
- function i(f, y, a) {
815
- o.value || (n.value = a);
816
+ function r(m, g, l) {
817
+ o.value || (n.value = l);
816
818
  }
817
- function u(f, y, a) {
819
+ function d(m, g, l) {
818
820
  n.value = -1;
819
821
  }
820
- function m() {
822
+ function y() {
821
823
  o.value = !0;
822
824
  }
823
- function S() {
825
+ function w() {
824
826
  o.value = !1;
825
827
  }
826
828
  return {
@@ -828,126 +830,126 @@ function Dt() {
828
830
  focusedItemId: t,
829
831
  hoverIndex: n,
830
832
  onMouseenterItem: c,
831
- onMouseoverItem: i,
832
- onMouseoutItem: u,
833
- resumeHover: S,
834
- suspendHover: m
833
+ onMouseoverItem: r,
834
+ onMouseoutItem: d,
835
+ resumeHover: w,
836
+ suspendHover: y
835
837
  };
836
838
  }
837
- function It(e, t, n, o) {
838
- const c = b(e.idField), { dataView: i } = n, u = b(-1), m = b(!1), { activeIndex: S, focusedItemId: f, hoverIndex: y, resumeHover: a, suspendHover: r } = o;
839
- function w(d, F, T) {
840
- d.stopPropagation(), r(), F && setTimeout(() => {
841
- u.value = T, m.value = !0, F.moving = !0;
839
+ function jt(e, t, n, o) {
840
+ const c = C(e.idField), { dataView: r } = n, d = C(-1), y = C(!1), { activeIndex: w, focusedItemId: m, hoverIndex: g, resumeHover: l, suspendHover: i } = o;
841
+ function h(u, F, k) {
842
+ u.stopPropagation(), i(), F && setTimeout(() => {
843
+ d.value = k, y.value = !0, F.moving = !0;
842
844
  });
843
845
  }
844
- function s(d, F) {
845
- if (d.preventDefault(), u.value !== F) {
846
- const T = i.value[u.value], I = i.value;
847
- I.splice(u.value, 1), I.splice(F, 0, T), u.value = F;
846
+ function a(u, F) {
847
+ if (u.preventDefault(), d.value !== F) {
848
+ const k = r.value[d.value], j = r.value;
849
+ j.splice(d.value, 1), j.splice(F, 0, k), d.value = F;
848
850
  }
849
851
  }
850
- function g(d, F) {
851
- d.preventDefault(), d.dataTransfer && (d.dataTransfer.dropEffect = "move");
852
+ function f(u, F) {
853
+ u.preventDefault(), u.dataTransfer && (u.dataTransfer.dropEffect = "move");
852
854
  }
853
- function l(d, F) {
854
- F && (F.moving = !1), i.value.forEach((T, I) => {
855
- T.__fv_index__ = I;
856
- }), m.value = !1, a(), y.value = F.raw.__fv_index__, S.value = F.raw.__fv_index__, f.value = F.raw[c.value], t.emit("change", i.value), t.emit("activeChange", F);
855
+ function s(u, F) {
856
+ F && (F.moving = !1), r.value.forEach((k, j) => {
857
+ k.__fv_index__ = j;
858
+ }), y.value = !1, l(), g.value = F.raw.__fv_index__, w.value = F.raw.__fv_index__, m.value = F.raw[c.value], t.emit("change", r.value), t.emit("activeChange", F);
857
859
  }
858
860
  return {
859
- dragstart: w,
860
- dragenter: s,
861
- dragover: g,
862
- dragend: l,
863
- isDragging: m
861
+ dragstart: h,
862
+ dragenter: a,
863
+ dragover: f,
864
+ dragend: s,
865
+ isDragging: y
864
866
  };
865
867
  }
866
- function jt(e, t, n) {
868
+ function It(e, t, n) {
867
869
  const { dataView: o } = n;
868
- function c(i) {
869
- if (i > -1 && i < o.value.length) {
870
- const u = o.value.splice(i, 1);
871
- t.emit("removeItem", u[0]);
870
+ function c(r) {
871
+ if (r > -1 && r < o.value.length) {
872
+ const d = o.value.splice(r, 1);
873
+ t.emit("removeItem", d[0]);
872
874
  }
873
875
  }
874
876
  return { removeItem: c };
875
877
  }
876
- function Pt(e, t, n, o, c, i) {
877
- const u = b(e.idField), m = b(e.disableField), S = b(e.draggable), f = b(e.itemClass), y = b(e.selection.multiSelect ?? !1), a = b(e.selection.multiSelectMode);
878
- b(!0);
879
- const { isDragging: r } = o, { activeIndex: w, focusedItemId: s, hoverIndex: g } = c, { clearSelection: l, getSelectedItems: d, toggleSelectItem: F } = i, T = b(d());
880
- function I(k, x) {
881
- const j = {
878
+ function Ot(e, t, n, o, c, r) {
879
+ const d = C(e.idField), y = C(e.disableField), w = C(e.draggable), m = C(e.itemClass), g = C(e.selection.multiSelect ?? !1), l = C(e.selection.multiSelectMode);
880
+ C(!0);
881
+ const { isDragging: i } = o, { activeIndex: h, focusedItemId: a, hoverIndex: f } = c, { clearSelection: s, getSelectedItems: u, toggleSelectItem: F } = r, k = C(u());
882
+ function j(T, x) {
883
+ const I = {
882
884
  "f-list-view-group-item": !0,
883
- "f-list-view-draggable-item": S.value,
884
- "f-un-click": !k.checked,
885
- "f-un-select": !!k.raw[m.value],
886
- "f-listview-active": k.raw.__fv_index__ === w.value,
887
- "f-listview-hover": !r.value && x === g.value,
888
- moving: !!k.moving
885
+ "f-list-view-draggable-item": w.value,
886
+ "f-un-click": !T.checked,
887
+ "f-un-select": !!T.raw[y.value],
888
+ "f-listview-active": T.raw.__fv_index__ === h.value,
889
+ "f-listview-hover": !i.value && x === f.value,
890
+ moving: !!T.moving
889
891
  };
890
- return f.value.split(" ").reduce((E, P) => (E[P] = !0, E), j), j;
892
+ return m.value.split(" ").reduce((E, O) => (E[O] = !0, E), I), I;
891
893
  }
892
- function C(k, x) {
893
- return k.raw[u.value] || "";
894
+ function S(T, x) {
895
+ return T.raw[d.value] || "";
894
896
  }
895
- const v = O(() => !y.value);
896
- function D(k, x, j) {
897
- k.checked = j, !k.raw[m.value] && (v.value && (s.value = k.raw[u.value]), F(k));
897
+ const b = B(() => !g.value);
898
+ function D(T, x, I) {
899
+ T.checked = I, !T.raw[y.value] && (b.value && (a.value = T.raw[d.value]), F(T));
898
900
  }
899
- const p = O(() => y.value && a.value === "OnCheckClearByClick"), V = O(() => !y.value || y.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
900
- function A(k, x, j) {
901
- if (x.raw[m.value]) {
902
- k.preventDefault(), k.stopPropagation();
901
+ const p = B(() => g.value && l.value === "OnCheckClearByClick"), V = B(() => !g.value || g.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
902
+ function A(T, x, I) {
903
+ if (x.raw[y.value]) {
904
+ T.preventDefault(), T.stopPropagation();
903
905
  return;
904
906
  }
905
- s.value = x.raw[u.value], w.value = j, p.value && l(n.value), V.value && (F(x), T.value = d()), t.emit("clickItem", { data: T.value, index: j }), t.emit("activeChange", T.value);
907
+ a.value = x.raw[d.value], h.value = I, p.value && s(n.value), V.value && (F(x), k.value = u()), t.emit("clickItem", { data: k.value, index: I }), t.emit("activeChange", k.value);
906
908
  }
907
909
  return {
908
- getKey: C,
909
- listViewItemClass: I,
910
+ getKey: S,
911
+ listViewItemClass: j,
910
912
  onCheckItem: D,
911
913
  onClickItem: A
912
914
  };
913
915
  }
914
- function Bt(e, t, n, o, c, i, u) {
915
- const m = b(e.view), S = b(e.view === "CardView"), f = b({}), y = b("暂无数据"), a = Dt(), r = It(e, t, o, a), w = jt(e, t, o), s = Pt(e, t, n, r, a, i), g = O(() => ({
916
+ function Pt(e, t, n, o, c, r, d) {
917
+ const y = C(e.view), w = C(e.view === "CardView"), m = C({}), g = C("暂无数据"), l = Dt(), i = jt(e, t, o, l), h = It(e, t, o), a = Ot(e, t, n, i, l, r), f = B(() => ({
916
918
  "f-list-view-group": !0,
917
- "d-flex": S.value,
918
- "flex-wrap": S.value
919
- })), l = O(() => !!n.value && n.value.length > 0), d = O(() => n.value.length === 0), F = O(() => d.value && !t.slots.empty);
920
- function T() {
921
- return m.value === "SingleView" ? ae : m.value === "DraggableView" ? Mt : (m.value === "ContentView" || m.value === "CardView") && t.slots.content ? kt : ae;
922
- }
923
- const I = T(), {
924
- renderItem: C
925
- } = I(e, t, n, r, c, a, s, i, w, u), {
926
- renderItem: v
927
- } = Vt(e, t, n, r, c, a, s, i, w, u), D = [C, v];
919
+ "d-flex": w.value,
920
+ "flex-wrap": w.value
921
+ })), s = B(() => !!n.value && n.value.length > 0), u = B(() => n.value.length === 0), F = B(() => u.value && !t.slots.empty);
922
+ function k() {
923
+ return y.value === "SingleView" ? ae : y.value === "DraggableView" ? Mt : (y.value === "ContentView" || y.value === "CardView") && t.slots.content ? Tt : ae;
924
+ }
925
+ const j = k(), {
926
+ renderItem: S
927
+ } = j(e, t, n, i, c, l, a, r, h, d), {
928
+ renderItem: b
929
+ } = Vt(e, t, n, i, c, l, a, r, h, d), D = [S, b];
928
930
  function p() {
929
- return n.value.filter((k) => k.visible !== !1).map((k, x) => D[k.type](k, x, f));
931
+ return n.value.filter((T) => T.visible !== !1).map((T, x) => D[T.type](T, x, m));
930
932
  }
931
933
  function V() {
932
- return h("div", {
934
+ return v("div", {
933
935
  class: "f-list-view-emptydata"
934
- }, [h("p", {
936
+ }, [v("p", {
935
937
  class: "f-empty-title"
936
- }, [y.value])]);
938
+ }, [g.value])]);
937
939
  }
938
940
  function A() {
939
- return h("ul", {
940
- class: g.value,
941
+ return v("ul", {
942
+ class: f.value,
941
943
  style: "list-style: none;"
942
- }, [l.value && p(), F.value && V(), t.slots.empty && t.slots.empty()]);
944
+ }, [s.value && p(), F.value && V(), t.slots.empty && t.slots.empty()]);
943
945
  }
944
946
  return {
945
947
  renderListArea: A
946
948
  };
947
949
  }
948
- function Ot(e, t, n) {
950
+ function Bt(e, t, n) {
949
951
  function o() {
950
- return t.slots.header && h("div", {
952
+ return t.slots.header && v("div", {
951
953
  class: "f-list-view-header"
952
954
  }, [t.slots.header()]);
953
955
  }
@@ -956,99 +958,99 @@ function Ot(e, t, n) {
956
958
  };
957
959
  }
958
960
  function re(e, t, n) {
959
- const o = b(e.headerClass), c = b(e.placeholder), i = b(""), u = O(() => !i.value), m = O(() => !!i.value);
960
- function S(r) {
961
- i.value = "";
961
+ const o = C(e.headerClass), c = C(e.placeholder), r = C(""), d = B(() => !r.value), y = B(() => !!r.value);
962
+ function w(i) {
963
+ r.value = "";
962
964
  }
963
- N(i, (r) => {
964
- n.search(r);
965
+ H(r, (i) => {
966
+ e.enableHighlightSearch && n.search(i), t.emit("afterSearch", i);
965
967
  });
966
- const f = O(() => {
967
- const r = {
968
+ const m = B(() => {
969
+ const i = {
968
970
  "form-group": !0,
969
971
  "farris-form-group": !0
970
972
  };
971
- return o.value && o.value.split(" ").reduce((s, g) => (s[g] = !0, s), r), r;
973
+ return o.value && o.value.split(" ").reduce((a, f) => (a[f] = !0, a), i), i;
972
974
  });
973
- function y(r) {
975
+ function g(i) {
974
976
  }
975
- function a() {
976
- return h("div", {
977
+ function l() {
978
+ return v("div", {
977
979
  class: "f-list-view-header",
978
- onClick: we(() => y, ["prevent", "stop"])
979
- }, [h("div", {
980
- class: f.value
981
- }, [h("div", {
980
+ onClick: we(() => g, ["prevent", "stop"])
981
+ }, [v("div", {
982
+ class: m.value
983
+ }, [v("div", {
982
984
  class: "farris-input-wrap"
983
- }, [h("div", {
985
+ }, [v("div", {
984
986
  class: "f-cmp-inputgroup"
985
- }, [h("div", {
987
+ }, [v("div", {
986
988
  class: "input-group f-state-editable"
987
- }, [Fe(h("input", {
989
+ }, [Fe(v("input", {
988
990
  class: "form-control f-utils-fill text-left",
989
- "onUpdate:modelValue": (r) => i.value = r,
991
+ "onUpdate:modelValue": (i) => r.value = i,
990
992
  name: "input-group-value",
991
993
  type: "text",
992
994
  placeholder: c.value,
993
995
  autocomplete: "off"
994
- }, null), [[Te, i.value]]), h("div", {
996
+ }, null), [[ke, r.value]]), v("div", {
995
997
  class: "input-group-append"
996
- }, [m.value && h("span", {
998
+ }, [y.value && v("span", {
997
999
  class: "input-group-text input-group-clear",
998
- onClick: (r) => S()
999
- }, [h("i", {
1000
+ onClick: (i) => w()
1001
+ }, [v("i", {
1000
1002
  class: "f-icon f-icon-close-circle"
1001
- }, null)]), u.value && h("span", {
1003
+ }, null)]), d.value && v("span", {
1002
1004
  class: "input-group-text"
1003
- }, [h("span", {
1005
+ }, [v("span", {
1004
1006
  class: "f-icon f-icon-search"
1005
1007
  }, null)])])])])])])]);
1006
1008
  }
1007
1009
  return {
1008
- renderHeader: a
1010
+ renderHeader: l
1009
1011
  };
1010
1012
  }
1011
- const de = /* @__PURE__ */ H({
1013
+ const de = /* @__PURE__ */ N({
1012
1014
  name: "FListView",
1013
1015
  props: ue,
1014
- emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
1016
+ emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
1015
1017
  setup(e, t) {
1016
- const n = b(), o = b(!0), c = b(!1), i = b([]), u = 0, m = b(e.columns), S = Ve(e), f = De(e), y = Ie(e, S), a = je(e), r = Pe(e, /* @__PURE__ */ new Map(), f, S, a), w = Be(e, r, S, i, t), s = Tt(e, n), g = O(() => r.dataView.value.length), l = Oe(e, S), d = Ae(), F = xe(e, {}, d), T = Le(e, l, f, S, d, F), I = $e(e, S, F, T), C = Ee(e, S, F, T), v = Ne(e, m, r, g, u, T, I, C), {
1018
+ const n = C(), o = C(!0), c = C(!1), r = C([]), d = 0, y = C(e.columns), w = Ve(e), m = De(e), g = je(e, w), l = Ie(e), i = Oe(e, /* @__PURE__ */ new Map(), m, w, l), h = Pe(e, i, w, r, t), a = kt(e, n), f = B(() => i.dataView.value.length), s = Be(e, w), u = Ae(), F = xe(e, {}, u), k = Le(e, s, m, w, u, F), j = $e(e, w, F, k), S = Ee(e, w, F, k), b = He(e, y, i, f, d, k, j, S), {
1017
1019
  getVisualData: D
1018
- } = v;
1019
- i.value = D(0, g.value + u - 1);
1020
- const p = O(() => {
1020
+ } = b;
1021
+ r.value = D(0, f.value + d - 1);
1022
+ const p = B(() => {
1021
1023
  const L = {
1022
1024
  "f-list-view": !0,
1023
1025
  "f-list-view-multiple": e.multiSelect
1024
1026
  };
1025
1027
  return e.size !== "default" && (L[`${e.size}-item`] = !0), L;
1026
- }), V = O(() => !!t.slots.footer || o.value);
1028
+ }), V = B(() => !!t.slots.footer || o.value);
1027
1029
  function A() {
1028
- return e.header === "SearchBar" ? re : e.header === "ContentHeader" ? Ot : re;
1030
+ return e.header === "SearchBar" ? re : e.header === "ContentHeader" ? Bt : re;
1029
1031
  }
1030
- const k = A(), {
1032
+ const T = A(), {
1031
1033
  renderHeader: x
1032
- } = k(e, t, s), {
1033
- renderListArea: j
1034
- } = Bt(e, t, i, r, y, w, v);
1035
- function B(L) {
1036
- s.search(L);
1034
+ } = T(e, t, a), {
1035
+ renderListArea: I
1036
+ } = Pt(e, t, r, i, g, h, b);
1037
+ function P(L) {
1038
+ a.search(L);
1037
1039
  }
1038
1040
  function E(L) {
1039
- L && (r.load(L), i.value = D(0, g.value + u - 1));
1041
+ L && (i.load(L), r.value = D(0, f.value + d - 1));
1040
1042
  }
1041
1043
  t.expose({
1042
- search: B,
1044
+ search: P,
1043
1045
  updateDataSource: E
1044
1046
  });
1045
- function P(L) {
1047
+ function O(L) {
1046
1048
  e.multiSelect && (L.preventDefault(), L.stopPropagation());
1047
1049
  }
1048
- return () => h("div", {
1050
+ return () => v("div", {
1049
1051
  class: p.value,
1050
- onClick: P
1051
- }, [x(), h("div", {
1052
+ onClick: O
1053
+ }, [x(), v("div", {
1052
1054
  ref: n,
1053
1055
  class: "f-list-view-content",
1054
1056
  onMouseover: () => {
@@ -1057,7 +1059,7 @@ const de = /* @__PURE__ */ H({
1057
1059
  onMouseleave: () => {
1058
1060
  c.value = !1;
1059
1061
  }
1060
- }, [j()]), V.value && h("div", {
1062
+ }, [I()]), V.value && v("div", {
1061
1063
  class: "f-list-view-footer"
1062
1064
  }, [t.slots.footer && t.slots.footer()])]);
1063
1065
  }
@@ -1096,19 +1098,19 @@ function xt(e, t) {
1096
1098
  };
1097
1099
  }
1098
1100
  function Lt(e) {
1099
- const t = O(() => {
1101
+ const t = B(() => {
1100
1102
  const o = {
1101
1103
  "f-icon": !0
1102
1104
  };
1103
1105
  if (e.icon) {
1104
1106
  const c = e.icon.trim().split(" ");
1105
- c && c.length && c.reduce((i, u) => (i[u] = !0, i), o);
1107
+ c && c.length && c.reduce((r, d) => (r[d] = !0, r), o);
1106
1108
  }
1107
1109
  return o;
1108
- }), n = O(() => !!(e.icon && e.icon.trim()));
1110
+ }), n = B(() => !!(e.icon && e.icon.trim()));
1109
1111
  return { iconClass: t, shouldShowIcon: n };
1110
1112
  }
1111
- const pe = /* @__PURE__ */ H({
1113
+ const pe = /* @__PURE__ */ N({
1112
1114
  name: "FButton",
1113
1115
  props: At,
1114
1116
  emits: ["click"],
@@ -1118,27 +1120,27 @@ const pe = /* @__PURE__ */ H({
1118
1120
  } = xt(e, t), {
1119
1121
  iconClass: o,
1120
1122
  shouldShowIcon: c
1121
- } = Lt(e), i = O(() => {
1122
- const u = {
1123
+ } = Lt(e), r = B(() => {
1124
+ const d = {
1123
1125
  btn: !0,
1124
1126
  "btn-lg": e.size === "large",
1125
1127
  "btn-md": e.size !== "large" && e.size !== "small",
1126
1128
  "btn-sm": e.size === "small",
1127
1129
  "btn-icontext": c.value
1128
1130
  };
1129
- return u[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((m, S) => (m[S] = e.customClass[S], m), u), u;
1131
+ return d[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((y, w) => (y[w] = e.customClass[w], y), d), d;
1130
1132
  });
1131
- return () => h("button", {
1132
- class: i.value,
1133
+ return () => v("button", {
1134
+ class: r.value,
1133
1135
  disabled: e.disabled,
1134
- onClick: (u) => n(u)
1135
- }, [c.value && h("i", {
1136
+ onClick: (d) => n(d)
1137
+ }, [c.value && v("i", {
1136
1138
  class: o.value
1137
1139
  }, null), t.slots.default && t.slots.default()]);
1138
1140
  }
1139
1141
  }), $t = /* @__PURE__ */ new Map([
1140
1142
  ["appearance", J]
1141
- ]), Et = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-design.gitee.io/combo-list.schema.json", Ht = "combo-list", Rt = "A Farris Input Component", Ut = "object", zt = {
1143
+ ]), Et = "https://json-schema.org/draft/2020-12/schema", Ht = "https://farris-design.gitee.io/combo-list.schema.json", Nt = "combo-list", Rt = "A Farris Input Component", Ut = "object", zt = {
1142
1144
  id: {
1143
1145
  description: "The unique identifier for a combo list",
1144
1146
  type: "string"
@@ -1254,8 +1256,8 @@ const pe = /* @__PURE__ */ H({
1254
1256
  "type"
1255
1257
  ], _t = {
1256
1258
  $schema: Et,
1257
- $id: Nt,
1258
- title: Ht,
1259
+ $id: Ht,
1260
+ title: Nt,
1259
1261
  description: Rt,
1260
1262
  type: Ut,
1261
1263
  properties: zt,
@@ -1423,7 +1425,13 @@ const ee = {
1423
1425
  /**
1424
1426
  * 打开前
1425
1427
  */
1426
- beforeOpen: { type: Function, default: null }
1428
+ beforeOpen: { type: Function, default: null },
1429
+ searchOption: {
1430
+ type: Object,
1431
+ default: !1
1432
+ },
1433
+ // 搜索启用高亮
1434
+ enableHighlightSearch: { type: Boolean, default: !0 }
1427
1435
  }, fe = Z(ee, _t, $t, Wt), qt = {
1428
1436
  dataSource: { type: Array, default: [] },
1429
1437
  enableSearch: { type: Boolean, default: !1 },
@@ -1438,137 +1446,159 @@ const ee = {
1438
1446
  valueField: { type: String, default: "id" },
1439
1447
  /** 值变化事件 */
1440
1448
  onSelectionChange: { type: Function, default: () => {
1441
- } }
1442
- }, Qt = /* @__PURE__ */ H({
1449
+ } },
1450
+ searchOption: {
1451
+ type: Object,
1452
+ default: !1
1453
+ },
1454
+ // 搜索启用高亮
1455
+ enableHighlightSearch: { type: Boolean, default: !0 }
1456
+ }, Qt = /* @__PURE__ */ N({
1443
1457
  name: "FComboListContainer",
1444
1458
  props: qt,
1445
1459
  emits: ["selectionChange"],
1446
1460
  setup(e, t) {
1447
- const n = b(e.dataSource), o = b([]), c = b(e.separator), i = b(e.width), u = b(e.maxHeight), m = b(String(e.selectedValues).split(c.value));
1448
- N(e.dataSource, () => {
1449
- n.value = e.dataSource;
1461
+ const n = C(), o = C(e.dataSource), c = C([]), r = C(e.separator), d = C(e.width), y = C(e.maxHeight), w = C(String(e.selectedValues).split(r.value));
1462
+ H(e.dataSource, () => {
1463
+ o.value = e.dataSource;
1450
1464
  });
1451
- const S = O(() => e.enableSearch ? "SearchBar" : "ContentHeader"), f = O(() => {
1452
- const a = {};
1453
- return i.value !== void 0 && (a.width = `${i.value}px`), u.value !== void 0 && u.value > 0 && (a.maxHeight = `${u.value}px`), a;
1465
+ const m = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), g = B(() => {
1466
+ const h = {};
1467
+ return d.value !== void 0 && (h.width = `${d.value}px`), y.value !== void 0 && y.value > 0 && (h.maxHeight = `${y.value}px`), h;
1454
1468
  });
1455
- function y(a) {
1456
- o.value = a.map((r) => Object.assign({}, r)), m.value = a.map((r) => r[e.idField]), t.emit("selectionChange", o.value);
1469
+ function l(h) {
1470
+ c.value = h.map((a) => Object.assign({}, a)), w.value = h.map((a) => a[e.idField]), t.emit("selectionChange", c.value);
1457
1471
  }
1458
- return N([() => e.selectedValues], ([a]) => {
1459
- m.value = a.split(c.value);
1460
- }), () => h("div", {
1472
+ function i(h) {
1473
+ if (e.enableHighlightSearch)
1474
+ return;
1475
+ let a = [];
1476
+ typeof e.searchOption == "function" ? a = o.value.filter((f) => e.searchOption(h, f)) : a = o.value.filter((f) => f[e.valueField].indexOf(h) > -1 || f[e.textField].indexOf(h) > -1), n.value.updateDataSource(a);
1477
+ }
1478
+ return H([() => e.selectedValues], ([h]) => {
1479
+ w.value = h.split(r.value);
1480
+ }), () => v("div", {
1461
1481
  class: "f-combo-list-container pl-3",
1462
- style: f.value
1463
- }, [h(He, {
1482
+ style: g.value
1483
+ }, [v(Ne, {
1484
+ ref: n,
1464
1485
  size: "small",
1465
1486
  itemClass: "f-combo-list-item",
1466
- header: S.value,
1487
+ header: m.value,
1467
1488
  headerClass: "f-combo-list-search-box",
1468
- data: n.value,
1489
+ data: o.value,
1469
1490
  idField: e.idField,
1470
1491
  textField: e.textField,
1471
1492
  titleField: e.titleField,
1472
1493
  multiSelect: e.multiSelect,
1473
- multiSelectMode: "OnCheckAndClick",
1474
- selectionValues: m.value,
1475
- onSelectionChange: y
1494
+ selection: {
1495
+ enableSelectRow: !0,
1496
+ multiSelect: !0,
1497
+ multiSelectMode: "OnCheckAndClick",
1498
+ showCheckbox: !0,
1499
+ showSelectAll: !1,
1500
+ showSelection: !0
1501
+ },
1502
+ enableHighlightSearch: e.enableHighlightSearch,
1503
+ selectionValues: w.value,
1504
+ onSelectionChange: l,
1505
+ onAfterSearch: i
1476
1506
  }, null)]);
1477
1507
  }
1478
1508
  });
1479
1509
  function Xt(e) {
1480
- const t = b(""), n = b(e.modelValue), o = b(e.data || []), c = b(e.editable);
1481
- function i(a) {
1482
- const r = String(a).split(e.separator).map((s) => [s, !0]), w = new Map(r);
1483
- return o.value.filter((s) => w.has(String(s[e.valueField])));
1510
+ const t = C(""), n = C(e.modelValue), o = C(e.data || []), c = C(e.editable);
1511
+ function r(l) {
1512
+ const i = String(l).split(e.separator).map((a) => [a, !0]), h = new Map(i);
1513
+ return o.value.filter((a) => h.has(String(a[e.valueField])));
1484
1514
  }
1485
- function u(a) {
1486
- const r = i(a).map((w) => w[e.textField]).join(e.separator);
1487
- t.value = c.value ? r || a : r;
1515
+ function d(l) {
1516
+ const i = r(l).map((h) => h[e.textField]).join(e.separator);
1517
+ t.value = c.value ? i || l : i;
1488
1518
  }
1489
- function m(a) {
1490
- const r = a.split(e.separator).map((s) => [s, !0]), w = new Map(r);
1491
- return o.value.filter((s) => w.has(s[e.textField]));
1519
+ function y(l) {
1520
+ const i = l.split(e.separator).map((a) => [a, !0]), h = new Map(i);
1521
+ return o.value.filter((a) => h.has(a[e.textField]));
1492
1522
  }
1493
- function S(a) {
1494
- const r = {};
1495
- return r[e.idField] = a, r[e.textField] = a, [r];
1523
+ function w(l) {
1524
+ const i = {};
1525
+ return i[e.idField] = l, i[e.textField] = l, [i];
1496
1526
  }
1497
- function f(a) {
1498
- let r = m(a);
1499
- const w = r && r.length > 0;
1500
- return c.value && !w && (r = S(a)), r;
1527
+ function m(l) {
1528
+ let i = y(l);
1529
+ const h = i && i.length > 0;
1530
+ return c.value && !h && (i = w(l)), i;
1501
1531
  }
1502
- function y() {
1503
- const { url: a, method: r = "GET", headers: w = {}, body: s = null } = e.remote, g = r.toLowerCase() == "get" ? { method: r, headers: w } : { method: r, headers: w, body: s };
1504
- let l = !1;
1505
- fetch(a, g).then((d) => {
1506
- var T, I;
1507
- if (d.status === 200)
1508
- return l = !!((I = (T = d.headers) == null ? void 0 : T.get("content-type")) != null && I.includes("application/json")), l ? d.text() : d.json();
1509
- throw new Error(d.statusText);
1510
- }).then((d) => {
1511
- o.value = l ? JSON.parse(d) : d;
1512
- }).catch((d) => {
1513
- console.error(d);
1532
+ function g() {
1533
+ const { url: l, method: i = "GET", headers: h = {}, body: a = null } = e.remote, f = i.toLowerCase() == "get" ? { method: i, headers: h } : { method: i, headers: h, body: a };
1534
+ let s = !1;
1535
+ fetch(l, f).then((u) => {
1536
+ var k, j;
1537
+ if (u.status === 200)
1538
+ return s = !!((j = (k = u.headers) == null ? void 0 : k.get("content-type")) != null && j.includes("application/json")), s ? u.text() : u.json();
1539
+ throw new Error(u.statusText);
1540
+ }).then((u) => {
1541
+ o.value = s ? JSON.parse(u) : u;
1542
+ }).catch((u) => {
1543
+ console.error(u);
1514
1544
  });
1515
1545
  }
1516
- return e.remote && y(), N(() => e.data, () => {
1546
+ return e.remote && g(), H(() => e.data, () => {
1517
1547
  o.value = e.data;
1518
- }), N([o], ([a]) => {
1548
+ }), H([o], ([l]) => {
1519
1549
  if (e.modelValue) {
1520
- const r = a.find((w) => w[e.valueField] === e.modelValue);
1521
- r && (t.value = r[e.textField]);
1550
+ const i = l.find((h) => h[e.valueField] === e.modelValue);
1551
+ i && (t.value = i[e.textField]);
1522
1552
  }
1523
- }), N(() => e.modelValue, (a) => {
1524
- n.value = a, u(a);
1525
- }), u(e.modelValue), { dataSource: o, displayText: t, editable: c, modelValue: n, getItemsByDisplayText: m, getItemsByValue: i, getSelectedItemsByDisplayText: f };
1553
+ }), H(() => e.modelValue, (l) => {
1554
+ n.value = l, d(l);
1555
+ }), d(e.modelValue), { dataSource: o, displayText: t, editable: c, modelValue: n, getItemsByDisplayText: y, getItemsByValue: r, getSelectedItemsByDisplayText: m };
1526
1556
  }
1527
- const U = /* @__PURE__ */ H({
1557
+ const U = /* @__PURE__ */ N({
1528
1558
  name: "FComboList",
1529
1559
  props: ee,
1530
1560
  emits: ["clear", "update:modelValue", "change", "input"],
1531
1561
  setup(e, t) {
1532
- const n = b(), o = b(e.disabled), c = b(e.enableClear), i = b(e.enableSearch), u = b(e.readonly), {
1533
- dataSource: m,
1534
- displayText: S,
1535
- editable: f,
1536
- modelValue: y,
1537
- getSelectedItemsByDisplayText: a
1538
- } = Xt(e), r = O(() => e.multiSelect), w = O(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1539
- function s() {
1540
- !r.value && n.value && n.value.hidePopup();
1562
+ const n = C(), o = C(e.disabled), c = C(e.enableClear), r = C(e.enableSearch), d = C(e.readonly), {
1563
+ dataSource: y,
1564
+ displayText: w,
1565
+ editable: m,
1566
+ modelValue: g,
1567
+ getSelectedItemsByDisplayText: l
1568
+ } = Xt(e), i = B(() => e.multiSelect), h = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
1569
+ function a() {
1570
+ !i.value && n.value && n.value.hidePopup();
1541
1571
  }
1542
- function g(C) {
1543
- S.value = C.map((v) => v[e.textField]).join(e.separator), C.length === 1 ? y.value = C[0][e.valueField] : y.value = C.map((v) => v[e.valueField]).join(e.separator), t.emit("update:modelValue", y.value), t.emit("change", C, y.value), s();
1572
+ function f(S) {
1573
+ w.value = S.map((b) => b[e.textField]).join(e.separator), S.length === 1 ? g.value = S[0][e.valueField] : g.value = S.map((b) => b[e.valueField]).join(e.separator), t.emit("update:modelValue", g.value), t.emit("change", S, g.value), a();
1544
1574
  }
1545
- function l() {
1546
- u.value || n.value.togglePopup();
1575
+ function s() {
1576
+ d.value || n.value.togglePopup();
1547
1577
  }
1548
- function d(C) {
1549
- y.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1578
+ function u(S) {
1579
+ g.value = "", t.emit("update:modelValue", ""), t.emit("clear");
1550
1580
  }
1551
- function F(C) {
1552
- const v = a(C);
1553
- g(v);
1581
+ function F(S) {
1582
+ const b = l(S);
1583
+ f(b);
1554
1584
  }
1555
- function T() {
1556
- return S.value;
1585
+ function k() {
1586
+ return w.value;
1557
1587
  }
1558
- function I(C) {
1559
- t.emit("input", C);
1588
+ function j(S) {
1589
+ t.emit("input", S);
1560
1590
  }
1561
1591
  return t.expose({
1562
- getDisplayText: T
1563
- }), N([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([C, v, D, p, V]) => {
1564
- o.value = C, f.value = v, c.value = D, i.value = p, u.value = V;
1565
- }), () => h(le, {
1592
+ getDisplayText: k
1593
+ }), H([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, b, D, p, V]) => {
1594
+ o.value = S, m.value = b, c.value = D, r.value = p, d.value = V;
1595
+ }), () => v(le, {
1566
1596
  ref: n,
1567
1597
  id: e.id,
1568
1598
  disable: o.value,
1569
- readonly: u.value,
1599
+ readonly: d.value,
1570
1600
  forcePlaceholder: e.forcePlaceholder,
1571
- editable: f.value,
1601
+ editable: m.value,
1572
1602
  buttonContent: e.dropDownIcon,
1573
1603
  placeholder: e.placeholder,
1574
1604
  enableClear: c.value,
@@ -1577,64 +1607,65 @@ const U = /* @__PURE__ */ H({
1577
1607
  enableTitle: e.enableTitle,
1578
1608
  multiSelect: e.multiSelect,
1579
1609
  inputType: e.multiSelect ? e.viewType : "text",
1580
- modelValue: S.value,
1581
- "onUpdate:modelValue": (C) => S.value = C,
1610
+ modelValue: w.value,
1611
+ "onUpdate:modelValue": (S) => w.value = S,
1582
1612
  focusOnCreated: e.focusOnCreated,
1583
1613
  selectOnCreated: e.selectOnCreated,
1584
- onClear: d,
1585
- onClick: l,
1614
+ onClear: u,
1615
+ onClick: s,
1586
1616
  onChange: F,
1587
- onInput: I,
1617
+ onInput: j,
1588
1618
  beforeOpen: e.beforeOpen
1589
1619
  }, {
1590
- default: () => [h(Qt, {
1620
+ default: () => [v(Qt, {
1591
1621
  idField: e.idField,
1592
1622
  valueField: e.valueField,
1593
1623
  textField: e.textField,
1594
1624
  titleField: e.titleField,
1595
- dataSource: m.value,
1596
- selectedValues: y.value,
1625
+ dataSource: y.value,
1626
+ selectedValues: g.value,
1597
1627
  multiSelect: e.multiSelect,
1598
- enableSearch: i.value,
1628
+ enableSearch: r.value,
1599
1629
  maxHeight: e.maxHeight,
1600
- width: e.fitEditor ? w.value : void 0,
1601
- onSelectionChange: g
1630
+ enableHighlightSearch: e.enableHighlightSearch,
1631
+ width: e.fitEditor ? h.value : void 0,
1632
+ onSelectionChange: f
1602
1633
  }, null)]
1603
1634
  });
1604
1635
  }
1605
1636
  });
1606
1637
  function Yt(e, t) {
1607
1638
  e.schema;
1608
- const n = b(!0), o = b(!0);
1609
- function c(a) {
1639
+ const n = C(!0), o = C(!0);
1640
+ function c(l) {
1610
1641
  return !1;
1611
1642
  }
1612
- function i() {
1643
+ function r() {
1613
1644
  return !1;
1614
1645
  }
1615
- function u() {
1646
+ function d() {
1616
1647
  return !1;
1617
1648
  }
1618
- function m() {
1649
+ function y() {
1619
1650
  return !0;
1620
1651
  }
1621
- function S(a) {
1652
+ function w(l) {
1622
1653
  }
1623
- function f() {
1654
+ function m() {
1624
1655
  }
1625
- function y(a) {
1656
+ function g(l) {
1626
1657
  return null;
1627
1658
  }
1628
1659
  return {
1629
1660
  canAccepts: c,
1630
- checkCanDeleteComponent: i,
1631
- checkCanMoveComponent: u,
1632
- hideNestedPaddingInDesginerView: m,
1633
- onAcceptMovedChildElement: S,
1634
- resolveComponentContext: f,
1661
+ checkCanDeleteComponent: r,
1662
+ checkCanMoveComponent: d,
1663
+ hideNestedPaddingInDesginerView: y,
1664
+ onAcceptMovedChildElement: w,
1665
+ resolveComponentContext: m,
1635
1666
  triggerBelongedComponentToMoveWhenMoved: n,
1636
1667
  triggerBelongedComponentToDeleteWhenDeleted: o,
1637
- getPropsConfig: y
1668
+ getPropsConfig: g
1638
1669
  };
1639
1670
  }
1640
1671
  class me {
@@ -1770,11 +1801,11 @@ class Zt {
1770
1801
  $converter: "/converter/form-group-label.converter"
1771
1802
  }
1772
1803
  },
1773
- setPropertyRelates(i, u) {
1774
- if (i)
1775
- switch (i && i.propertyID) {
1804
+ setPropertyRelates(r, d) {
1805
+ if (r)
1806
+ switch (r && r.propertyID) {
1776
1807
  case "type": {
1777
- n.changeControlType(t, i);
1808
+ n.changeControlType(t, r);
1778
1809
  break;
1779
1810
  }
1780
1811
  }
@@ -1787,13 +1818,13 @@ class Zt {
1787
1818
  * @param newControlType 新控件类型
1788
1819
  */
1789
1820
  changeControlType(t, n) {
1790
- var f, y, a, r, w;
1821
+ var m, g, l, i, h;
1791
1822
  const o = n.propertyValue, c = this.formSchemaUtils.getComponentById(this.componentId);
1792
- let i = this.getControlParentContainer(t.id, c);
1793
- if (!i)
1823
+ let r = this.getControlParentContainer(t.id, c);
1824
+ if (!r)
1794
1825
  return;
1795
- const u = i.contents.findIndex((s) => s.id === t.id), m = i.contents[u];
1796
- let S;
1826
+ const d = r.contents.findIndex((a) => a.id === t.id), y = r.contents[d];
1827
+ let w;
1797
1828
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
1798
1829
  editor: {
1799
1830
  $type: o
@@ -1801,20 +1832,20 @@ class Zt {
1801
1832
  name: this.designViewModelField.name,
1802
1833
  require: this.designViewModelField.require,
1803
1834
  readonly: this.designViewModelField.readonly
1804
- }, !1), S = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(S, {
1805
- id: m.id,
1806
- appearance: m.appearance,
1807
- size: m.size,
1808
- label: m.label
1809
- }), Object.assign(S.editor, {
1810
- isTextArea: S.isTextArea && m.isTextArea,
1835
+ }, !1), w = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(w, {
1836
+ id: y.id,
1837
+ appearance: y.appearance,
1838
+ size: y.size,
1839
+ label: y.label
1840
+ }), Object.assign(w.editor, {
1841
+ isTextArea: w.isTextArea && y.isTextArea,
1811
1842
  type: o || "",
1812
- placeHolder: (f = m.editor) == null ? void 0 : f.placeHolder,
1813
- holdPlace: (y = m.editor) == null ? void 0 : y.holdPlace,
1814
- readonly: (a = m.editor) == null ? void 0 : a.readonly,
1815
- require: (r = m.editor) == null ? void 0 : r.require,
1816
- visible: (w = m.editor) == null ? void 0 : w.visible
1817
- }), i.contents.splice(u, 1, S);
1843
+ placeHolder: (m = y.editor) == null ? void 0 : m.placeHolder,
1844
+ holdPlace: (g = y.editor) == null ? void 0 : g.holdPlace,
1845
+ readonly: (l = y.editor) == null ? void 0 : l.readonly,
1846
+ require: (i = y.editor) == null ? void 0 : i.require,
1847
+ visible: (h = y.editor) == null ? void 0 : h.visible
1848
+ }), r.contents.splice(d, 1, w);
1818
1849
  }
1819
1850
  getAppearanceConfig(t = null) {
1820
1851
  return {
@@ -1862,27 +1893,6 @@ class Zt {
1862
1893
  return o;
1863
1894
  }
1864
1895
  }
1865
- getBindingFieldEditorOptions(t) {
1866
- const n = this.formSchemaUtils.getFormMetadataBasicInfo();
1867
- return {
1868
- type: "field-selector",
1869
- bindingType: { enable: !1 },
1870
- editorParams: {
1871
- propertyData: t,
1872
- formBasicInfo: n
1873
- },
1874
- columns: [
1875
- { field: "name", title: "字段名称" },
1876
- { field: "bindingField", title: "绑定字段" },
1877
- { field: "fieldType", title: "字段类型" }
1878
- ],
1879
- beforeOpenDialog: (o) => {
1880
- const c = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
1881
- o.instance.loadData(c);
1882
- },
1883
- textField: "bindingField"
1884
- };
1885
- }
1886
1896
  }
1887
1897
  class Jt extends Zt {
1888
1898
  constructor(t, n) {
@@ -1919,17 +1929,21 @@ class Jt extends Zt {
1919
1929
  { field: "bindingField", title: "绑定字段" },
1920
1930
  { field: "fieldType", title: "字段类型" }
1921
1931
  ],
1932
+ textField: "bindingField",
1922
1933
  data: o
1923
1934
  }
1924
1935
  };
1925
1936
  }
1937
+ getBindingOtions(t) {
1938
+ return this.getFieldSelectorOptions(t);
1939
+ }
1926
1940
  getComponentConfig(t, n = {}, o = {}) {
1927
1941
  const c = Object.assign({
1928
1942
  description: "组件信息",
1929
1943
  title: "组件信息",
1930
1944
  type: "input-group",
1931
1945
  $converter: "/converter/property-editor.converter"
1932
- }, n), i = Object.assign({
1946
+ }, n), r = Object.assign({
1933
1947
  readonly: {
1934
1948
  description: "",
1935
1949
  title: "只读",
@@ -1951,7 +1965,7 @@ class Jt extends Zt {
1951
1965
  type: "string"
1952
1966
  }
1953
1967
  }, o);
1954
- return { ...c, properties: { ...i } };
1968
+ return { ...c, properties: { ...r } };
1955
1969
  }
1956
1970
  }
1957
1971
  class Kt extends Jt {
@@ -1983,36 +1997,36 @@ function en(e, t) {
1983
1997
  canAccepts: n,
1984
1998
  checkCanDeleteComponent: o,
1985
1999
  checkCanMoveComponent: c,
1986
- hideNestedPaddingInDesginerView: i,
1987
- onAcceptMovedChildElement: u,
1988
- resolveComponentContext: m,
1989
- triggerBelongedComponentToMoveWhenMoved: S,
1990
- triggerBelongedComponentToDeleteWhenDeleted: f
1991
- } = Yt(e), y = e.schema;
1992
- function a(r) {
1993
- return new Kt(r, t).getPropertyConfig(y);
2000
+ hideNestedPaddingInDesginerView: r,
2001
+ onAcceptMovedChildElement: d,
2002
+ resolveComponentContext: y,
2003
+ triggerBelongedComponentToMoveWhenMoved: w,
2004
+ triggerBelongedComponentToDeleteWhenDeleted: m
2005
+ } = Yt(e), g = e.schema;
2006
+ function l(i) {
2007
+ return new Kt(i, t).getPropertyConfig(g);
1994
2008
  }
1995
2009
  return {
1996
2010
  canAccepts: n,
1997
2011
  checkCanDeleteComponent: o,
1998
2012
  checkCanMoveComponent: c,
1999
- hideNestedPaddingInDesginerView: i,
2000
- onAcceptMovedChildElement: u,
2001
- resolveComponentContext: m,
2002
- triggerBelongedComponentToMoveWhenMoved: S,
2003
- triggerBelongedComponentToDeleteWhenDeleted: f,
2004
- getPropsConfig: a
2013
+ hideNestedPaddingInDesginerView: r,
2014
+ onAcceptMovedChildElement: d,
2015
+ resolveComponentContext: y,
2016
+ triggerBelongedComponentToMoveWhenMoved: w,
2017
+ triggerBelongedComponentToDeleteWhenDeleted: m,
2018
+ getPropsConfig: l
2005
2019
  };
2006
2020
  }
2007
- const tn = /* @__PURE__ */ H({
2021
+ const tn = /* @__PURE__ */ N({
2008
2022
  name: "FComboListDesign",
2009
2023
  props: ee,
2010
2024
  emits: ["clear", "update:modelValue", "change"],
2011
2025
  setup(e, t) {
2012
- const n = b(), o = q("designer-host-service"), c = q("design-item-context"), i = en(c, o), u = Re(n, c, i);
2026
+ const n = C(), o = q("designer-host-service"), c = q("design-item-context"), r = en(c, o), d = Re(n, c, r);
2013
2027
  return ie(() => {
2014
- n.value.componentInstance = u;
2015
- }), t.expose(u.value), () => h(le, {
2028
+ n.value.componentInstance = d;
2029
+ }), t.expose(d.value), () => v(le, {
2016
2030
  ref: n,
2017
2031
  id: e.id,
2018
2032
  disable: e.disabled,
@@ -2041,210 +2055,210 @@ U.register = (e, t, n, o) => {
2041
2055
  U.registerDesigner = (e, t, n) => {
2042
2056
  e["combo-list"] = tn, t["combo-list"] = fe;
2043
2057
  };
2044
- const z = nn(U), _ = /* @__PURE__ */ H({
2058
+ const z = nn(U), _ = /* @__PURE__ */ N({
2045
2059
  name: "FOrder",
2046
2060
  props: K,
2047
2061
  emits: ["change"],
2048
2062
  setup(e, t) {
2049
- const n = b(e.items), o = b("排序列"), c = b("排序方式"), i = b("添加排序列"), u = [{
2063
+ const n = C(e.items), o = C("排序列"), c = C("排序方式"), r = C("添加排序列"), d = [{
2050
2064
  id: "asc",
2051
2065
  name: "升序"
2052
2066
  }, {
2053
2067
  id: "desc",
2054
2068
  name: "降序"
2055
- }], m = b(/* @__PURE__ */ new Map());
2056
- function S() {
2057
- const l = n.value.map((d) => [d.id, !0]);
2058
- m.value = new Map(l);
2069
+ }], y = C(/* @__PURE__ */ new Map());
2070
+ function w() {
2071
+ const s = n.value.map((u) => [u.id, !0]);
2072
+ y.value = new Map(s);
2059
2073
  }
2060
- S();
2061
- const f = O(() => e.dataSource.map((l) => (l.disabled = m.value.has(l.id), l))), y = O(() => ({
2074
+ w();
2075
+ const m = B(() => e.dataSource.map((s) => (s.disabled = y.value.has(s.id), s))), g = B(() => ({
2062
2076
  "f-order": !0
2063
2077
  }));
2064
- function a(l) {
2065
- n.value = n.value.filter((d) => d.id !== l.id), S(), t.emit("change", n.value);
2078
+ function l(s) {
2079
+ n.value = n.value.filter((u) => u.id !== s.id), w(), t.emit("change", n.value);
2066
2080
  }
2067
- function r() {
2081
+ function i() {
2068
2082
  n.value = [...n.value, {
2069
2083
  id: Date.now().toString(),
2070
2084
  name: "",
2071
2085
  order: "asc"
2072
- }], S(), t.emit("change", n.value);
2086
+ }], w(), t.emit("change", n.value);
2073
2087
  }
2074
- function w(l) {
2075
- if (l && l.length === 1) {
2076
- const d = l[0], F = n.value.find((T) => T.id === d.id);
2077
- F && (F.name = d.name);
2088
+ function h(s) {
2089
+ if (s && s.length === 1) {
2090
+ const u = s[0], F = n.value.find((k) => k.id === u.id);
2091
+ F && (F.name = u.name);
2078
2092
  }
2079
- S(), t.emit("change", n.value);
2093
+ w(), t.emit("change", n.value);
2080
2094
  }
2081
- function s(l) {
2082
- if (l && l.length) {
2083
- const d = /* @__PURE__ */ new Map();
2084
- l.reduce((F, T) => (F.set(T.id, T), F), d), n.value = l.map((F) => d.get(F.id)), t.emit("change", n.value);
2095
+ function a(s) {
2096
+ if (s && s.length) {
2097
+ const u = /* @__PURE__ */ new Map();
2098
+ s.reduce((F, k) => (F.set(k.id, k), F), u), n.value = s.map((F) => u.get(F.id)), t.emit("change", n.value);
2085
2099
  }
2086
2100
  }
2087
- function g() {
2088
- return h(de, {
2101
+ function f() {
2102
+ return v(de, {
2089
2103
  style: "flex:1",
2090
2104
  data: n.value,
2091
2105
  draggable: !0,
2092
2106
  view: "DraggableView",
2093
2107
  "keep-order": !0,
2094
2108
  itemClass: "f-order-item",
2095
- onRemoveItem: a,
2096
- onChange: s
2109
+ onRemoveItem: l,
2110
+ onChange: a
2097
2111
  }, {
2098
- header: () => h("div", {
2112
+ header: () => v("div", {
2099
2113
  class: "f-order-header"
2100
- }, [h("span", {
2114
+ }, [v("span", {
2101
2115
  class: "f-order-header-order-field"
2102
- }, [o.value]), h("span", {
2116
+ }, [o.value]), v("span", {
2103
2117
  class: "f-order-header-order-type"
2104
2118
  }, [c.value])]),
2105
- itemContent: (l) => h("div", {
2119
+ itemContent: (s) => v("div", {
2106
2120
  class: "f-order-item-content"
2107
- }, [h(z, {
2121
+ }, [v(z, {
2108
2122
  class: "f-order-item-content-order-field",
2109
- data: f.value,
2123
+ data: m.value,
2110
2124
  valueField: "id",
2111
2125
  textField: "name",
2112
2126
  idField: "id",
2113
- modelValue: l.id,
2114
- "onUpdate:modelValue": (d) => l.id = d,
2115
- onChange: w,
2116
- onClear: w
2117
- }, null), h(z, {
2127
+ modelValue: s.id,
2128
+ "onUpdate:modelValue": (u) => s.id = u,
2129
+ onChange: h,
2130
+ onClear: h
2131
+ }, null), v(z, {
2118
2132
  class: "f-order-item-content-order-type",
2119
- data: u,
2133
+ data: d,
2120
2134
  valueField: "id",
2121
2135
  textField: "name",
2122
2136
  idField: "id",
2123
- modelValue: l.order,
2124
- "onUpdate:modelValue": (d) => l.order = d,
2125
- onChange: w
2137
+ modelValue: s.order,
2138
+ "onUpdate:modelValue": (u) => s.order = u,
2139
+ onChange: h
2126
2140
  }, null)]),
2127
- footer: () => h("div", {
2141
+ footer: () => v("div", {
2128
2142
  class: "f-order-footer"
2129
- }, [h(pe, {
2143
+ }, [v(pe, {
2130
2144
  type: "link",
2131
2145
  class: "f-order-add-button",
2132
- onClick: r
2146
+ onClick: i
2133
2147
  }, {
2134
- default: () => h(Q, null, [h("span", {
2148
+ default: () => v(Q, null, [v("span", {
2135
2149
  class: "f-order-add-icon"
2136
- }, [h("i", {
2150
+ }, [v("i", {
2137
2151
  class: "f-icon f-icon-add"
2138
- }, null)]), i.value])
2152
+ }, null)]), r.value])
2139
2153
  })])
2140
2154
  });
2141
2155
  }
2142
- return () => h("div", {
2143
- class: y.value
2144
- }, [g()]);
2156
+ return () => v("div", {
2157
+ class: g.value
2158
+ }, [f()]);
2145
2159
  }
2146
2160
  });
2147
2161
  function on(e, t, n) {
2148
- var C;
2162
+ var S;
2149
2163
  function o() {
2150
2164
  n != null && n.resolveComponentContext && n.resolveComponentContext();
2151
2165
  }
2152
2166
  o();
2153
- const c = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", u = b();
2154
- function m() {
2167
+ const c = n && n.getStyles && n.getStyles() || "", r = n && n.getDesignerClass && n.getDesignerClass() || "", d = C();
2168
+ function y() {
2155
2169
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
2156
2170
  }
2157
- function S() {
2171
+ function w() {
2158
2172
  return !1;
2159
2173
  }
2160
- function f() {
2174
+ function m() {
2161
2175
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
2162
2176
  }
2163
- function y() {
2177
+ function g() {
2164
2178
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
2165
2179
  }
2166
- function a(v) {
2167
- if (!v || !v.value)
2180
+ function l(b) {
2181
+ if (!b || !b.value)
2168
2182
  return null;
2169
- if (v.value.schema && v.value.schema.type === "component")
2170
- return v.value;
2171
- const D = b(v == null ? void 0 : v.value.parent), p = a(D);
2183
+ if (b.value.schema && b.value.schema.type === "component")
2184
+ return b.value;
2185
+ const D = C(b == null ? void 0 : b.value.parent), p = l(D);
2172
2186
  return p || null;
2173
2187
  }
2174
- function r(v = t) {
2175
- const { componentInstance: D, designerItemElementRef: p } = v;
2176
- return !D || !D.value ? null : D.value.canMove ? p : r(v.parent);
2188
+ function i(b = t) {
2189
+ const { componentInstance: D, designerItemElementRef: p } = b;
2190
+ return !D || !D.value ? null : D.value.canMove ? p : i(b.parent);
2177
2191
  }
2178
- function w(v) {
2179
- return !!n && n.canAccepts(v);
2192
+ function h(b) {
2193
+ return !!n && n.canAccepts(b);
2180
2194
  }
2181
- function s() {
2195
+ function a() {
2182
2196
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2183
2197
  }
2184
- function g() {
2198
+ function f() {
2185
2199
  }
2186
- function l(v, D) {
2200
+ function s(b, D) {
2187
2201
  D && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(D);
2188
2202
  }
2189
- function d(v) {
2190
- const { componentType: D } = v;
2191
- let p = R(D, v);
2192
- n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(v, p));
2203
+ function u(b) {
2204
+ const { componentType: D } = b;
2205
+ let p = R(D, b);
2206
+ n && n.onResolveNewComponentSchema && (p = n.onResolveNewComponentSchema(b, p));
2193
2207
  const V = D.toLowerCase().replace("-", "_");
2194
2208
  return p && !p.id && p.type === D && (p.id = `${V}_${Math.random().toString().slice(2, 6)}`), p;
2195
2209
  }
2196
- function F(v, D) {
2197
- const p = String(v.getAttribute("data-controltype")), V = v.getAttribute("data-feature"), A = V ? JSON.parse(V) : {};
2198
- A.parentComponentInstance = u.value;
2199
- let k = R(p, A);
2200
- n && n.onAcceptNewChildElement && (k = n.onAcceptNewChildElement(v, D, k));
2210
+ function F(b, D) {
2211
+ const p = String(b.getAttribute("data-controltype")), V = b.getAttribute("data-feature"), A = V ? JSON.parse(V) : {};
2212
+ A.parentComponentInstance = d.value;
2213
+ let T = R(p, A);
2214
+ n && n.onAcceptNewChildElement && (T = n.onAcceptNewChildElement(b, D, T));
2201
2215
  const x = p.toLowerCase().replace("-", "_");
2202
- return k && !k.id && k.type === p && (k.id = `${x}_${Math.random().toString().slice(2, 6)}`), k;
2216
+ return T && !T.id && T.type === p && (T.id = `${x}_${Math.random().toString().slice(2, 6)}`), T;
2203
2217
  }
2204
- function T(v) {
2218
+ function k(b) {
2205
2219
  }
2206
- function I(...v) {
2220
+ function j(...b) {
2207
2221
  if (n && n.getPropsConfig)
2208
- return n.getPropsConfig(...v);
2222
+ return n.getPropsConfig(...b);
2209
2223
  }
2210
- return u.value = {
2211
- canMove: m(),
2212
- canSelectParent: S(),
2213
- canDelete: f(),
2214
- canNested: !y(),
2224
+ return d.value = {
2225
+ canMove: y(),
2226
+ canSelectParent: w(),
2227
+ canDelete: m(),
2228
+ canNested: !g(),
2215
2229
  contents: t == null ? void 0 : t.schema.contents,
2216
2230
  elementRef: e,
2217
- parent: (C = t == null ? void 0 : t.parent) == null ? void 0 : C.componentInstance,
2231
+ parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
2218
2232
  schema: t == null ? void 0 : t.schema,
2219
2233
  styles: c,
2220
- designerClass: i,
2221
- canAccepts: w,
2222
- getBelongedComponentInstance: a,
2223
- getDraggableDesignItemElement: r,
2224
- getDraggingDisplayText: s,
2225
- getPropConfig: I,
2226
- getDragScopeElement: g,
2227
- onAcceptMovedChildElement: l,
2234
+ designerClass: r,
2235
+ canAccepts: h,
2236
+ getBelongedComponentInstance: l,
2237
+ getDraggableDesignItemElement: i,
2238
+ getDraggingDisplayText: a,
2239
+ getPropConfig: j,
2240
+ getDragScopeElement: f,
2241
+ onAcceptMovedChildElement: s,
2228
2242
  onAcceptNewChildElement: F,
2229
- onChildElementMovedOut: T,
2230
- addNewChildComponentSchema: d,
2243
+ onChildElementMovedOut: k,
2244
+ addNewChildComponentSchema: u,
2231
2245
  updateDragAndDropRules: o,
2232
- triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
2233
- triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
2234
- }, u;
2246
+ triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
2247
+ triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
2248
+ }, d;
2235
2249
  }
2236
2250
  function an() {
2237
2251
  function e(t) {
2238
- var c, i;
2252
+ var c, r;
2239
2253
  if (!t)
2240
2254
  return !1;
2241
2255
  const n = ((c = t.targetContainer) == null ? void 0 : c.componentInstance) && t.targetContainer.componentInstance.value;
2242
2256
  if (!n)
2243
2257
  return !1;
2244
- const o = (i = n.schema.appearance) == null ? void 0 : i.class;
2258
+ const o = (r = n.schema.appearance) == null ? void 0 : r.class;
2245
2259
  if (t.controlCategory === "input" || t.controlType === "form-group") {
2246
- const u = n.schema.type, m = (u === "response-form" || u === "content-container") && o && o.includes("farris-form");
2247
- if (n.schema.type !== "response-layout-item" && !m)
2260
+ const d = n.schema.type, y = (d === "response-form" || d === "content-container") && o && o.includes("farris-form");
2261
+ if (n.schema.type !== "response-layout-item" && !y)
2248
2262
  return !1;
2249
2263
  }
2250
2264
  return t.controlType !== "field-set";
@@ -2827,29 +2841,29 @@ const rn = "https://json-schema.org/draft/2020-12/schema", ln = "https://farris-
2827
2841
  required: pn
2828
2842
  }, W = /* @__PURE__ */ new Map();
2829
2843
  function mn() {
2830
- function e(s, g, l, d) {
2844
+ function e(a, f, s, u) {
2831
2845
  var F;
2832
- if (typeof l == "number")
2833
- return ((F = d[s]) == null ? void 0 : F.length) === l;
2834
- if (typeof l == "object") {
2835
- const T = Object.keys(l)[0], I = l[T];
2836
- if (T === "not")
2837
- return Number(d[s].length) !== Number(I);
2838
- if (T === "moreThan")
2839
- return Number(d[s].length) >= Number(I);
2840
- if (T === "lessThan")
2841
- return Number(d[s].length) <= Number(I);
2846
+ if (typeof s == "number")
2847
+ return ((F = u[a]) == null ? void 0 : F.length) === s;
2848
+ if (typeof s == "object") {
2849
+ const k = Object.keys(s)[0], j = s[k];
2850
+ if (k === "not")
2851
+ return Number(u[a].length) !== Number(j);
2852
+ if (k === "moreThan")
2853
+ return Number(u[a].length) >= Number(j);
2854
+ if (k === "lessThan")
2855
+ return Number(u[a].length) <= Number(j);
2842
2856
  }
2843
2857
  return !1;
2844
2858
  }
2845
- function t(s, g, l, d) {
2846
- return typeof l == "boolean" ? d.childrenClassList.includes(g) === !!l : !1;
2859
+ function t(a, f, s, u) {
2860
+ return typeof s == "boolean" ? u.childrenClassList.includes(f) === !!s : !1;
2847
2861
  }
2848
- function n(s, g, l, d) {
2849
- return typeof l == "boolean" ? d.parentClassList.includes(g) === !!l : !1;
2862
+ function n(a, f, s, u) {
2863
+ return typeof s == "boolean" ? u.parentClassList.includes(f) === !!s : !1;
2850
2864
  }
2851
- function o(s, g, l, d) {
2852
- return typeof l == "boolean" ? d.parentClassList.includes(g) === !!l : !1;
2865
+ function o(a, f, s, u) {
2866
+ return typeof s == "boolean" ? u.parentClassList.includes(f) === !!s : !1;
2853
2867
  }
2854
2868
  const c = /* @__PURE__ */ new Map([
2855
2869
  ["length", e],
@@ -2857,116 +2871,116 @@ function mn() {
2857
2871
  ["hasSibling", o],
2858
2872
  ["hasParent", n]
2859
2873
  ]);
2860
- function i(s, g) {
2861
- const l = s;
2862
- return typeof g == "number" ? [{ target: l, operator: "length", param: null, value: Number(g) }] : typeof g == "object" ? Object.keys(g).map((d) => {
2863
- if (d === "length")
2864
- return { target: l, operator: "length", param: null, value: g[d] };
2865
- const F = d, T = g[d];
2866
- return { target: l, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: F, value: T };
2874
+ function r(a, f) {
2875
+ const s = a;
2876
+ return typeof f == "number" ? [{ target: s, operator: "length", param: null, value: Number(f) }] : typeof f == "object" ? Object.keys(f).map((u) => {
2877
+ if (u === "length")
2878
+ return { target: s, operator: "length", param: null, value: f[u] };
2879
+ const F = u, k = f[u];
2880
+ return { target: s, operator: a === "children" ? "hasChildren" : a === "parent" ? "hasParent" : "hasSibling", param: F, value: k };
2867
2881
  }) : [];
2868
2882
  }
2869
- function u(s, g) {
2870
- if (c.has(s.operator)) {
2871
- const l = c.get(s.operator);
2872
- return l && l(s.target, s.param, s.value, g) || !1;
2883
+ function d(a, f) {
2884
+ if (c.has(a.operator)) {
2885
+ const s = c.get(a.operator);
2886
+ return s && s(a.target, a.param, a.value, f) || !1;
2873
2887
  }
2874
2888
  return !1;
2875
2889
  }
2876
- function m(s, g) {
2877
- return Object.keys(s).reduce((T, I) => {
2878
- const C = i(I, s[I]);
2879
- return T.push(...C), T;
2880
- }, []).reduce((T, I) => T && u(I, g), !0);
2881
- }
2882
- function S(s, g) {
2883
- const l = Object.keys(s), d = l.includes("allOf"), F = l.includes("anyOf"), T = d || F, v = (T ? s[T ? d ? "allOf" : "anyOf" : "allOf"] : [s]).map((p) => m(p, g));
2884
- return d ? !v.includes(!1) : v.includes(!0);
2885
- }
2886
- function f(s, g) {
2887
- const l = s.const;
2888
- return l ? typeof l == "boolean" ? l : typeof l == "object" ? S(l, g) : !1 : !1;
2889
- }
2890
- function y(s) {
2891
- return (g) => {
2892
- const l = { canAccept: !0, fixed: !1, hidePadding: !1 };
2893
- return s && s.properties && Object.keys(s.properties).reduce((d, F) => {
2894
- const T = s.properties[F];
2895
- return d[F] = f(T, g), d;
2896
- }, l), l;
2890
+ function y(a, f) {
2891
+ return Object.keys(a).reduce((k, j) => {
2892
+ const S = r(j, a[j]);
2893
+ return k.push(...S), k;
2894
+ }, []).reduce((k, j) => k && d(j, f), !0);
2895
+ }
2896
+ function w(a, f) {
2897
+ const s = Object.keys(a), u = s.includes("allOf"), F = s.includes("anyOf"), k = u || F, b = (k ? a[k ? u ? "allOf" : "anyOf" : "allOf"] : [a]).map((p) => y(p, f));
2898
+ return u ? !b.includes(!1) : b.includes(!0);
2899
+ }
2900
+ function m(a, f) {
2901
+ const s = a.const;
2902
+ return s ? typeof s == "boolean" ? s : typeof s == "object" ? w(s, f) : !1 : !1;
2903
+ }
2904
+ function g(a) {
2905
+ return (f) => {
2906
+ const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
2907
+ return a && a.properties && Object.keys(a.properties).reduce((u, F) => {
2908
+ const k = a.properties[F];
2909
+ return u[F] = m(k, f), u;
2910
+ }, s), s;
2897
2911
  };
2898
2912
  }
2899
- function a(s, g, l) {
2900
- if (g.type === "object" && g.properties) {
2901
- const { rules: d, contents: F } = g.properties;
2902
- l.set(s, y(d)), F && Object.keys(F.properties).forEach(
2903
- (T) => a(T, F.properties[T], l)
2913
+ function l(a, f, s) {
2914
+ if (f.type === "object" && f.properties) {
2915
+ const { rules: u, contents: F } = f.properties;
2916
+ s.set(a, g(u)), F && Object.keys(F.properties).forEach(
2917
+ (k) => l(k, F.properties[k], s)
2904
2918
  );
2905
2919
  }
2906
2920
  }
2907
- function r() {
2908
- const { properties: s } = fn;
2909
- Object.keys(s).forEach((g) => {
2910
- a(g, s[g], W);
2921
+ function i() {
2922
+ const { properties: a } = fn;
2923
+ Object.keys(a).forEach((f) => {
2924
+ l(f, a[f], W);
2911
2925
  });
2912
2926
  }
2913
- function w(s, g) {
2914
- const l = { canAccept: !0, fixed: !1, hidePadding: !0 };
2915
- return W.has(s) ? W.get(s)(g) : l;
2927
+ function h(a, f) {
2928
+ const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
2929
+ return W.has(a) ? W.get(a)(f) : s;
2916
2930
  }
2917
- return r(), { getRuleValue: w };
2931
+ return i(), { getRuleValue: h };
2918
2932
  }
2919
2933
  function yn(e, t) {
2920
2934
  var D;
2921
- const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(), i = b(!1), u = b(!1);
2922
- let m = !0, S = !1, f, y = !1;
2923
- function a(p) {
2924
- return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? p.sourceType === "control" && p.controlCategory === "input" || p.sourceType === "move" && p.controlType === "form-group" : !0;
2935
+ const n = e.schema, o = (D = e.parent) == null ? void 0 : D.schema, c = mn(), r = C(!1), d = C(!1);
2936
+ let y = !0, w = !1, m, g = !1;
2937
+ function l(p) {
2938
+ return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? p.sourceType === "control" && p.controlCategory === "input" || p.sourceType === "move" && p.controlType === "form-group" : !0;
2925
2939
  }
2926
- function r(p) {
2927
- return !(!an().basalDragulaRuleForContainer(p) || !m || !a(p));
2940
+ function i(p) {
2941
+ return !(!an().basalDragulaRuleForContainer(p) || !y || !l(p));
2928
2942
  }
2929
- function w() {
2930
- i.value = !1, u.value = !1;
2931
- const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), k = p.contents || [], x = k.length ? k[0] : null, j = x && x.appearance ? x.appearance.class : "", B = j ? j.split(" ") : [], E = k.length ? k.reduce((te, G) => {
2943
+ function h() {
2944
+ r.value = !1, d.value = !1;
2945
+ const p = n, V = p.appearance && p.appearance.class || "", A = V.split(" "), T = p.contents || [], x = T.length ? T[0] : null, I = x && x.appearance ? x.appearance.class : "", P = I ? I.split(" ") : [], E = T.length ? T.reduce((te, G) => {
2932
2946
  const ne = G && G.appearance ? G.appearance.class : "", be = ne ? ne.split(" ") : [];
2933
2947
  return te.push(...be), te;
2934
- }, []) : [], P = o, L = P && P.appearance && P.appearance.class || "", ye = L ? L.split(" ") : [];
2935
- f = {
2948
+ }, []) : [], O = o, L = O && O.appearance && O.appearance.class || "", ye = L ? L.split(" ") : [];
2949
+ m = {
2936
2950
  componentClass: V,
2937
2951
  componentClassList: A,
2938
- childContents: k,
2952
+ childContents: T,
2939
2953
  firstChildContent: x,
2940
- firstChildClass: j,
2941
- firstChildClassList: B,
2942
- parent: P,
2954
+ firstChildClass: I,
2955
+ firstChildClassList: P,
2956
+ parent: O,
2943
2957
  parentClass: L,
2944
2958
  parentClassList: ye,
2945
- children: k,
2959
+ children: T,
2946
2960
  childrenClassList: E
2947
2961
  };
2948
- const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0], f);
2949
- return m = ge, S = ve, y = he, !0;
2962
+ const { canAccept: ge, fixed: he, hidePadding: ve } = c.getRuleValue(A[0], m);
2963
+ return y = ge, w = ve, g = he, !0;
2950
2964
  }
2951
- function s(p) {
2952
- ke();
2965
+ function a(p) {
2966
+ Te();
2953
2967
  }
2954
- function g() {
2968
+ function f() {
2955
2969
  return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
2956
2970
  }
2957
- function l(p, V) {
2971
+ function s(p, V) {
2958
2972
  const A = n;
2959
2973
  if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
2960
- const { label: j } = p, B = R("form-group");
2961
- return B.editor = V, B.label = j, d(B), delete B.editor.id, delete B.editor.binding, delete B.editor.appearance, delete B.editor.visible, B;
2974
+ const { label: I } = p, P = R("form-group");
2975
+ return P.editor = V, P.label = I, u(P), delete P.editor.id, delete P.editor.binding, delete P.editor.appearance, delete P.editor.visible, P;
2962
2976
  }
2963
2977
  return V;
2964
2978
  }
2965
- function d(p) {
2979
+ function u(p) {
2966
2980
  const V = e.componentInstance.value.getBelongedComponentInstance(e.componentInstance);
2967
2981
  if (V && V.schema && V.schema.componentType) {
2968
- const A = V.schema.componentType, k = F(A);
2969
- p.appearance || (p.appearance = {}), p.appearance.class = k;
2982
+ const A = V.schema.componentType, T = F(A);
2983
+ p.appearance || (p.appearance = {}), p.appearance.class = T;
2970
2984
  }
2971
2985
  }
2972
2986
  function F(p) {
@@ -3003,141 +3017,141 @@ function yn(e, t) {
3003
3017
  }
3004
3018
  return V;
3005
3019
  }
3006
- function T(p, V, A) {
3007
- const k = n;
3008
- if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
3009
- const B = String(p.innerText), E = R("form-group");
3010
- return E.editor = A, E.label = B, E;
3020
+ function k(p, V, A) {
3021
+ const T = n;
3022
+ if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
3023
+ const P = String(p.innerText), E = R("form-group");
3024
+ return E.editor = A, E.label = P, E;
3011
3025
  }
3012
3026
  return A;
3013
3027
  }
3014
- function I() {
3015
- return !y;
3028
+ function j() {
3029
+ return !g;
3016
3030
  }
3017
- function C() {
3018
- return !y;
3031
+ function S() {
3032
+ return !g;
3019
3033
  }
3020
- function v() {
3021
- return S;
3034
+ function b() {
3035
+ return w;
3022
3036
  }
3023
3037
  return {
3024
- canAccepts: r,
3025
- checkCanDeleteComponent: C,
3026
- checkCanMoveComponent: I,
3027
- getStyles: g,
3028
- hideNestedPaddingInDesginerView: v,
3029
- onAcceptNewChildElement: T,
3030
- onAcceptMovedChildElement: s,
3031
- resolveComponentContext: w,
3032
- onResolveNewComponentSchema: l,
3033
- triggerBelongedComponentToMoveWhenMoved: i,
3034
- triggerBelongedComponentToDeleteWhenDeleted: u
3038
+ canAccepts: i,
3039
+ checkCanDeleteComponent: S,
3040
+ checkCanMoveComponent: j,
3041
+ getStyles: f,
3042
+ hideNestedPaddingInDesginerView: b,
3043
+ onAcceptNewChildElement: k,
3044
+ onAcceptMovedChildElement: a,
3045
+ resolveComponentContext: h,
3046
+ onResolveNewComponentSchema: s,
3047
+ triggerBelongedComponentToMoveWhenMoved: r,
3048
+ triggerBelongedComponentToDeleteWhenDeleted: d
3035
3049
  };
3036
3050
  }
3037
- const gn = /* @__PURE__ */ H({
3051
+ const gn = /* @__PURE__ */ N({
3038
3052
  name: "FOrderDesign",
3039
3053
  props: K,
3040
3054
  emits: ["change"],
3041
3055
  setup(e, t) {
3042
- var I;
3043
- const n = b(e.items), o = b("排序列"), c = b("排序方式"), i = b("添加排序列"), u = [{
3056
+ var j;
3057
+ const n = C(e.items), o = C("排序列"), c = C("排序方式"), r = C("添加排序列"), d = [{
3044
3058
  id: "asc",
3045
3059
  name: "升序"
3046
3060
  }, {
3047
3061
  id: "desc",
3048
3062
  name: "降序"
3049
- }], m = b(/* @__PURE__ */ new Map()), S = b(), f = q("design-item-context"), y = yn(f.schema, (I = f.parent) == null ? void 0 : I.schema), a = on(S, f, y);
3063
+ }], y = C(/* @__PURE__ */ new Map()), w = C(), m = q("design-item-context"), g = yn(m.schema, (j = m.parent) == null ? void 0 : j.schema), l = on(w, m, g);
3050
3064
  ie(() => {
3051
- S.value.componentInstance = a;
3052
- }), t.expose(a.value);
3053
- function r() {
3054
- const C = n.value.map((v) => [v.id, !0]);
3055
- m.value = new Map(C);
3065
+ w.value.componentInstance = l;
3066
+ }), t.expose(l.value);
3067
+ function i() {
3068
+ const S = n.value.map((b) => [b.id, !0]);
3069
+ y.value = new Map(S);
3056
3070
  }
3057
- r();
3058
- const w = O(() => e.dataSource.map((C) => (C.disabled = m.value.has(C.id), C))), s = O(() => ({
3071
+ i();
3072
+ const h = B(() => e.dataSource.map((S) => (S.disabled = y.value.has(S.id), S))), a = B(() => ({
3059
3073
  "f-order": !0
3060
3074
  }));
3061
- function g(C) {
3062
- n.value = n.value.filter((v) => v.id !== C.id), r(), t.emit("change", n.value);
3075
+ function f(S) {
3076
+ n.value = n.value.filter((b) => b.id !== S.id), i(), t.emit("change", n.value);
3063
3077
  }
3064
- function l() {
3078
+ function s() {
3065
3079
  n.value = [...n.value, {
3066
3080
  id: Date.now().toString(),
3067
3081
  name: "",
3068
3082
  order: "asc"
3069
- }], r(), t.emit("change", n.value);
3083
+ }], i(), t.emit("change", n.value);
3070
3084
  }
3071
- function d(C) {
3072
- r(), t.emit("change", n.value);
3085
+ function u(S) {
3086
+ i(), t.emit("change", n.value);
3073
3087
  }
3074
- function F(C) {
3075
- if (C && C.length) {
3076
- const v = /* @__PURE__ */ new Map();
3077
- C.reduce((D, p) => (D.set(p.id, p), D), v), n.value = C.map((D) => v.get(D.id)), t.emit("change", n.value);
3088
+ function F(S) {
3089
+ if (S && S.length) {
3090
+ const b = /* @__PURE__ */ new Map();
3091
+ S.reduce((D, p) => (D.set(p.id, p), D), b), n.value = S.map((D) => b.get(D.id)), t.emit("change", n.value);
3078
3092
  }
3079
3093
  }
3080
- function T() {
3081
- return h(de, {
3094
+ function k() {
3095
+ return v(de, {
3082
3096
  style: "flex:1",
3083
3097
  data: n.value,
3084
3098
  draggable: !0,
3085
3099
  view: "DraggableView",
3086
3100
  "keep-order": !0,
3087
3101
  itemClass: "f-order-item",
3088
- onRemoveItem: g,
3102
+ onRemoveItem: f,
3089
3103
  onChange: F
3090
3104
  }, {
3091
- header: () => h("div", {
3105
+ header: () => v("div", {
3092
3106
  class: "f-order-header"
3093
- }, [h("span", {
3107
+ }, [v("span", {
3094
3108
  class: "f-order-header-order-field"
3095
- }, [o.value]), h("span", {
3109
+ }, [o.value]), v("span", {
3096
3110
  class: "f-order-header-order-type"
3097
3111
  }, [c.value])]),
3098
- itemContent: (C) => h("div", {
3112
+ itemContent: (S) => v("div", {
3099
3113
  class: "f-order-item-content"
3100
- }, [h(z, {
3114
+ }, [v(z, {
3101
3115
  class: "f-order-item-content-order-field",
3102
- data: w.value,
3116
+ data: h.value,
3103
3117
  valueField: "id",
3104
3118
  textField: "name",
3105
3119
  idField: "id",
3106
- modelValue: C.id,
3107
- "onUpdate:modelValue": (v) => C.id = v,
3108
- onChange: d,
3109
- onClear: d
3110
- }, null), h(z, {
3120
+ modelValue: S.id,
3121
+ "onUpdate:modelValue": (b) => S.id = b,
3122
+ onChange: u,
3123
+ onClear: u
3124
+ }, null), v(z, {
3111
3125
  class: "f-order-item-content-order-type",
3112
- data: u,
3126
+ data: d,
3113
3127
  valueField: "id",
3114
3128
  textField: "name",
3115
3129
  idField: "id",
3116
- modelValue: C.order,
3117
- "onUpdate:modelValue": (v) => C.order = v,
3118
- onChange: d
3130
+ modelValue: S.order,
3131
+ "onUpdate:modelValue": (b) => S.order = b,
3132
+ onChange: u
3119
3133
  }, null)]),
3120
- footer: () => h("div", {
3134
+ footer: () => v("div", {
3121
3135
  class: "f-order-footer"
3122
- }, [h(pe, {
3136
+ }, [v(pe, {
3123
3137
  type: "link",
3124
3138
  class: "f-order-add-button",
3125
- onClick: l
3139
+ onClick: s
3126
3140
  }, {
3127
- default: () => h(Q, null, [h("span", {
3141
+ default: () => v(Q, null, [v("span", {
3128
3142
  class: "f-order-add-icon"
3129
- }, [h("i", {
3143
+ }, [v("i", {
3130
3144
  class: "f-icon f-icon-add"
3131
- }, null)]), i.value])
3145
+ }, null)]), r.value])
3132
3146
  })])
3133
3147
  });
3134
3148
  }
3135
- return () => h("div", {
3136
- ref: S,
3137
- class: s.value
3138
- }, [T()]);
3149
+ return () => v("div", {
3150
+ ref: w,
3151
+ class: a.value
3152
+ }, [k()]);
3139
3153
  }
3140
- }), kn = {
3154
+ }), Tn = {
3141
3155
  install(e) {
3142
3156
  e.component(_.name, _);
3143
3157
  },
@@ -3150,7 +3164,7 @@ const gn = /* @__PURE__ */ H({
3150
3164
  };
3151
3165
  export {
3152
3166
  _ as FOrder,
3153
- kn as default,
3167
+ Tn as default,
3154
3168
  K as orderProps,
3155
3169
  oe as propsResolver
3156
3170
  };