@farris/ui-vue 1.6.5-beta.7 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +360 -361
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +524 -520
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +190 -181
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +309 -309
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1125 -1124
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +472 -472
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-grid/index.esm.js +99 -99
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3387 -3321
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1604 -1601
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +1082 -1079
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/discussion-editor/index.esm.js +973 -1040
  38. package/components/discussion-editor/index.umd.cjs +6 -6
  39. package/components/dropdown/index.esm.js +335 -330
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +177 -177
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +6 -6
  44. package/components/dynamic-resolver/index.umd.cjs +1 -1
  45. package/components/dynamic-view/index.esm.js +344 -344
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +644 -644
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.esm.js +1773 -1760
  50. package/components/expression-editor/index.umd.cjs +4 -4
  51. package/components/fieldset/index.esm.js +55 -55
  52. package/components/fieldset/index.umd.cjs +1 -1
  53. package/components/filter-bar/index.esm.js +879 -869
  54. package/components/filter-bar/index.umd.cjs +1 -1
  55. package/components/filter-condition-editor/index.esm.js +1091 -1077
  56. package/components/filter-condition-editor/index.umd.cjs +3 -3
  57. package/components/flow-canvas/index.esm.js +215 -215
  58. package/components/flow-canvas/index.umd.cjs +1 -1
  59. package/components/html-template/index.esm.js +164 -164
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +198 -198
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +64 -64
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +140 -140
  66. package/components/language-textbox/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +111 -111
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +90 -90
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +139 -141
  72. package/components/list-view/index.umd.cjs +3 -3
  73. package/components/locale/index.esm.js +833 -901
  74. package/components/locale/index.umd.cjs +6 -6
  75. package/components/lookup/index.esm.js +1352 -1351
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.esm.js +1387 -1383
  78. package/components/mapping-editor/index.umd.cjs +1 -1
  79. package/components/menu-lookup/index.esm.js +1059 -1127
  80. package/components/menu-lookup/index.umd.cjs +6 -6
  81. package/components/message-box/index.esm.js +217 -217
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.esm.js +283 -283
  84. package/components/modal/index.umd.cjs +1 -1
  85. package/components/nav/index.esm.js +106 -106
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +194 -194
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +463 -462
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +883 -876
  92. package/components/order/index.umd.cjs +4 -4
  93. package/components/page-footer/index.esm.js +94 -94
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +942 -939
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +82 -82
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/popover/index.esm.js +59 -57
  100. package/components/popover/index.umd.cjs +1 -1
  101. package/components/progress/index.esm.js +113 -113
  102. package/components/progress/index.umd.cjs +2 -2
  103. package/components/property-editor/index.esm.js +151 -150
  104. package/components/property-editor/index.umd.cjs +1 -1
  105. package/components/property-panel/index.esm.js +739 -739
  106. package/components/property-panel/index.umd.cjs +2 -2
  107. package/components/query-solution/index.esm.js +4142 -4190
  108. package/components/query-solution/index.umd.cjs +6 -6
  109. package/components/radio-button/index.esm.js +182 -182
  110. package/components/radio-button/index.umd.cjs +1 -1
  111. package/components/rate/index.esm.js +106 -106
  112. package/components/rate/index.umd.cjs +1 -1
  113. package/components/response-layout/index.esm.js +535 -535
  114. package/components/response-layout/index.umd.cjs +1 -1
  115. package/components/response-layout-editor/index.esm.js +1456 -1443
  116. package/components/response-layout-editor/index.umd.cjs +1 -1
  117. package/components/response-toolbar/index.esm.js +779 -776
  118. package/components/response-toolbar/index.umd.cjs +1 -1
  119. package/components/schema-selector/index.esm.js +1875 -1866
  120. package/components/schema-selector/index.umd.cjs +7 -7
  121. package/components/search-box/index.esm.js +151 -147
  122. package/components/search-box/index.umd.cjs +1 -1
  123. package/components/section/index.esm.js +1236 -1233
  124. package/components/section/index.umd.cjs +1 -1
  125. package/components/smoke-detector/index.esm.js +163 -163
  126. package/components/smoke-detector/index.umd.cjs +1 -1
  127. package/components/sort-condition-editor/index.esm.js +1097 -1083
  128. package/components/sort-condition-editor/index.umd.cjs +3 -3
  129. package/components/splitter/index.esm.js +3 -3
  130. package/components/splitter/index.umd.cjs +1 -1
  131. package/components/step/index.esm.js +133 -133
  132. package/components/step/index.umd.cjs +1 -1
  133. package/components/switch/index.esm.js +103 -98
  134. package/components/switch/index.umd.cjs +1 -1
  135. package/components/tabs/index.esm.js +1596 -1593
  136. package/components/tabs/index.umd.cjs +2 -2
  137. package/components/tags/index.esm.js +93 -93
  138. package/components/tags/index.umd.cjs +1 -1
  139. package/components/text/index.esm.js +138 -138
  140. package/components/text/index.umd.cjs +1 -1
  141. package/components/textarea/index.esm.js +684 -684
  142. package/components/textarea/index.umd.cjs +2 -2
  143. package/components/time-picker/index.esm.js +935 -929
  144. package/components/time-picker/index.umd.cjs +1 -1
  145. package/components/tooltip/index.esm.js +173 -171
  146. package/components/tooltip/index.umd.cjs +1 -1
  147. package/components/transfer/index.esm.js +190 -192
  148. package/components/transfer/index.umd.cjs +4 -4
  149. package/components/tree-grid/index.esm.js +124 -124
  150. package/components/tree-grid/index.umd.cjs +1 -1
  151. package/components/tree-view/index.esm.js +2363 -2278
  152. package/components/tree-view/index.umd.cjs +1 -1
  153. package/components/uploader/index.esm.js +170 -170
  154. package/components/uploader/index.umd.cjs +2 -2
  155. package/components/verify-detail/index.esm.js +196 -196
  156. package/components/verify-detail/index.umd.cjs +1 -1
  157. package/components/video/index.esm.js +227 -227
  158. package/components/video/index.umd.cjs +1 -1
  159. package/components/weather/index.esm.js +9 -9
  160. package/components/weather/index.umd.cjs +2 -2
  161. package/designer/button-edit/index.esm.js +353 -353
  162. package/designer/button-edit/index.umd.cjs +1 -1
  163. package/designer/checkbox/index.esm.js +7 -3
  164. package/designer/checkbox/index.umd.cjs +1 -1
  165. package/designer/checkbox-group/index.esm.js +38 -33
  166. package/designer/checkbox-group/index.umd.cjs +1 -1
  167. package/designer/data-grid/index.esm.js +3562 -3536
  168. package/designer/data-grid/index.umd.cjs +6 -6
  169. package/designer/data-view/index.esm.js +3 -3
  170. package/designer/data-view/index.umd.cjs +3 -3
  171. package/designer/farris-designer.all.esm.js +4203 -4193
  172. package/designer/farris-designer.all.umd.cjs +9 -9
  173. package/designer/input-group/index.esm.js +97 -97
  174. package/designer/input-group/index.umd.cjs +1 -1
  175. package/designer/list-view/index.esm.js +1868 -1854
  176. package/designer/list-view/index.umd.cjs +8 -8
  177. package/designer/radio-group/index.esm.js +954 -949
  178. package/designer/radio-group/index.umd.cjs +1 -1
  179. package/farris.all.esm.js +16195 -16126
  180. package/farris.all.umd.cjs +30 -30
  181. package/locales/data-grid/ui/en.json +2 -2
  182. package/locales/designer/en.json +7 -6
  183. package/locales/designer/zh-CHS.json +2 -1
  184. package/locales/designer/zh-CHT.json +2 -1
  185. package/locales/ui/en.json +7 -6
  186. package/locales/ui/zh-CHS.json +2 -1
  187. package/locales/ui/zh-CHT.json +2 -1
  188. package/package.json +1 -1
  189. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  190. package/types/data-view/composition/types.d.ts +10 -4
  191. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  192. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
@@ -1,6 +1,6 @@
1
- import { ref as w, computed as D, createVNode as C, Fragment as U, watch as G, withModifiers as Ne, withDirectives as Ge, vModelText as _e, defineComponent as q, onMounted as le, inject as ie } from "vue";
2
- import { isPlainObject as de, cloneDeep as fe, isUndefined as ze } from "lodash-es";
3
- import { getCustomStyle as me, getCustomClass as re, FormSchemaEntityFieldType$Type as qe, withInstall as We } from "../common/index.esm.js";
1
+ import { ref as F, computed as L, createVNode as C, Fragment as U, watch as G, withModifiers as Ne, withDirectives as Ge, vModelText as _e, defineComponent as q, onMounted as le, inject as ie } from "vue";
2
+ import { cloneDeep as de, isPlainObject as fe, isUndefined as ze } from "lodash-es";
3
+ import { getCustomClass as re, getCustomStyle as me, FormSchemaEntityFieldType$Type as qe, withInstall as We } from "../common/index.esm.js";
4
4
  import { useFilter as Ue, useIdentify as Xe, useHierarchy as Ye, useGroupData as Je, useDataView as Qe, useSelection as Ze, usePagination as Ke, useRow as et, useEdit as tt, useVisualDataBound as nt, useVisualDataCell as ot, useVisualDataRow as it, useVisualGroupRow as rt, useVisualSummaryRow as lt, useVisualData as at, useSidebar as st, useColumn as ct, useVirtualScroll as ut, getPagination as dt } from "../data-view/index.esm.js";
5
5
  import { useI18n as ae } from "vue-i18n";
6
6
  import { FCheckbox as se } from "../checkbox/index.esm.js";
@@ -12,145 +12,145 @@ import { useDesignerComponent as yt } from "../designer-canvas/index.esm.js";
12
12
  import { InputBaseProperty as bt } from "../property-panel/index.esm.js";
13
13
  function ye(e, t) {
14
14
  let n;
15
- function i(r) {
16
- const { properties: o, title: s, ignore: l } = r, a = l && Array.isArray(l), u = Object.keys(o).reduce((y, c) => ((!a || !l.find((g) => g === c)) && (y[c] = o[c].type === "object" && o[c].properties ? i(o[c]) : fe(o[c].default)), y), {});
17
- if (s && (!a || !l.find((y) => y === "id"))) {
18
- const y = s.toLowerCase().replace(/-/g, "_");
19
- u.id = `${y}_${Math.random().toString().slice(2, 6)}`;
20
- }
21
- return u;
22
- }
23
- function m(r) {
24
- const { properties: o, title: s, required: l } = r;
25
- if (l && Array.isArray(l)) {
26
- const a = l.reduce((u, y) => (u[y] = o[y].type === "object" && o[y].properties ? i(o[y]) : fe(o[y].default), u), {});
27
- if (s && l.find((u) => u === "id")) {
28
- const u = s.toLowerCase().replace(/-/g, "_");
29
- a.id = `${u}_${Math.random().toString().slice(2, 6)}`;
15
+ function o(r) {
16
+ const { properties: i, title: c, ignore: a } = r, l = a && Array.isArray(a), s = Object.keys(i).reduce((h, u) => ((!l || !a.find((g) => g === u)) && (h[u] = i[u].type === "object" && i[u].properties ? o(i[u]) : de(i[u].default)), h), {});
17
+ if (c && (!l || !a.find((h) => h === "id"))) {
18
+ const h = c.toLowerCase().replace(/-/g, "_");
19
+ s.id = `${h}_${Math.random().toString().slice(2, 6)}`;
20
+ }
21
+ return s;
22
+ }
23
+ function f(r) {
24
+ const { properties: i, title: c, required: a } = r;
25
+ if (a && Array.isArray(a)) {
26
+ const l = a.reduce((s, h) => (s[h] = i[h].type === "object" && i[h].properties ? o(i[h]) : de(i[h].default), s), {});
27
+ if (c && a.find((s) => s === "id")) {
28
+ const s = c.toLowerCase().replace(/-/g, "_");
29
+ l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
30
30
  }
31
- return a;
31
+ return l;
32
32
  }
33
33
  return {
34
- type: s
34
+ type: c
35
35
  };
36
36
  }
37
- function v(r, o = {}, s) {
38
- const l = e[r];
39
- if (l) {
40
- let a = m(l);
41
- const u = t[r];
42
- return a = u ? u({ getSchemaByType: v }, a, o, s) : a, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(a), a;
37
+ function v(r, i = {}, c) {
38
+ const a = e[r];
39
+ if (a) {
40
+ let l = f(a);
41
+ const s = t[r];
42
+ return l = s ? s({ getSchemaByType: v }, l, i, c) : l, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(l), l;
43
43
  }
44
44
  return null;
45
45
  }
46
- function f(r, o) {
47
- const s = i(o);
48
- return Object.keys(s).reduce((l, a) => (Object.prototype.hasOwnProperty.call(r, a) && (l[a] && de(l[a]) && de(r[a] || !r[a]) ? Object.assign(l[a], r[a] || {}) : l[a] = r[a]), l), s), s;
46
+ function m(r, i) {
47
+ const c = o(i);
48
+ return Object.keys(c).reduce((a, l) => (Object.prototype.hasOwnProperty.call(r, l) && (a[l] && fe(a[l]) && fe(r[l] || !r[l]) ? Object.assign(a[l], r[l] || {}) : a[l] = r[l]), a), c), c;
49
49
  }
50
- function S(r, o) {
51
- return Object.keys(r).filter((l) => r[l] != null).reduce((l, a) => {
52
- if (o.has(a)) {
53
- const u = o.get(a);
54
- if (typeof u == "string")
55
- l[u] = r[a];
50
+ function S(r, i) {
51
+ return Object.keys(r).filter((a) => r[a] != null).reduce((a, l) => {
52
+ if (i.has(l)) {
53
+ const s = i.get(l);
54
+ if (typeof s == "string")
55
+ a[s] = r[l];
56
56
  else {
57
- const y = u(a, r[a], r);
58
- Object.assign(l, y);
57
+ const h = s(l, r[l], r);
58
+ Object.assign(a, h);
59
59
  }
60
60
  } else
61
- l[a] = r[a];
62
- return l;
61
+ a[l] = r[l];
62
+ return a;
63
63
  }, {});
64
64
  }
65
- function T(r, o, s = /* @__PURE__ */ new Map()) {
66
- const l = f(r, o);
67
- return S(l, s);
65
+ function k(r, i, c = /* @__PURE__ */ new Map()) {
66
+ const a = m(r, i);
67
+ return S(a, c);
68
68
  }
69
69
  function p(r) {
70
- var s;
71
- const o = r.type;
72
- if (o) {
73
- const l = e[o];
74
- if (!l)
70
+ var c;
71
+ const i = r.type;
72
+ if (i) {
73
+ const a = e[i];
74
+ if (!a)
75
75
  return r;
76
- const a = f(r, l), u = ((s = r.editor) == null ? void 0 : s.type) || "";
77
- if (u) {
78
- const y = e[u], c = f(r.editor, y);
79
- a.editor = c;
76
+ const l = m(r, a), s = ((c = r.editor) == null ? void 0 : c.type) || "";
77
+ if (s) {
78
+ const h = e[s], u = m(r.editor, h);
79
+ l.editor = u;
80
80
  }
81
- return a;
81
+ return l;
82
82
  }
83
83
  return r;
84
84
  }
85
- function b(r) {
85
+ function y(r) {
86
86
  n = r;
87
87
  }
88
- return { getSchemaByType: v, resolveSchemaWithDefaultValue: p, resolveSchemaToProps: T, mappingSchemaToProps: S, setDesignerContext: b };
88
+ return { getSchemaByType: v, resolveSchemaWithDefaultValue: p, resolveSchemaToProps: k, mappingSchemaToProps: S, setDesignerContext: y };
89
89
  }
90
- const be = {}, Se = {}, { resolveSchemaWithDefaultValue: St, resolveSchemaToProps: Ct, mappingSchemaToProps: wt } = ye(be, Se);
90
+ const be = {}, Se = {}, { getSchemaByType: ro, resolveSchemaWithDefaultValue: St, resolveSchemaToProps: Ct, mappingSchemaToProps: wt, setDesignerContext: lo } = ye(be, Se);
91
91
  function Ft(e = {}) {
92
- function t(p, b, r, o) {
92
+ function t(p, y, r, i) {
93
93
  if (typeof r == "number")
94
- return o[p].length === r;
94
+ return i[p].length === r;
95
95
  if (typeof r == "object") {
96
- const s = Object.keys(r)[0], l = r[s];
97
- if (s === "not")
98
- return Number(o[p].length) !== Number(l);
99
- if (s === "moreThan")
100
- return Number(o[p].length) >= Number(l);
101
- if (s === "lessThan")
102
- return Number(o[p].length) <= Number(l);
96
+ const c = Object.keys(r)[0], a = r[c];
97
+ if (c === "not")
98
+ return Number(i[p].length) !== Number(a);
99
+ if (c === "moreThan")
100
+ return Number(i[p].length) >= Number(a);
101
+ if (c === "lessThan")
102
+ return Number(i[p].length) <= Number(a);
103
103
  }
104
104
  return !1;
105
105
  }
106
- function n(p, b, r, o) {
107
- return o[p] && o[p].propertyValue && String(o[p].propertyValue.value) === String(r);
106
+ function n(p, y, r, i) {
107
+ return i[p] && i[p].propertyValue && String(i[p].propertyValue.value) === String(r);
108
108
  }
109
- const i = /* @__PURE__ */ new Map([
109
+ const o = /* @__PURE__ */ new Map([
110
110
  ["length", t],
111
111
  ["getProperty", n]
112
112
  ]);
113
- Object.keys(e).reduce((p, b) => (p.set(b, e[b]), p), i);
114
- function m(p, b) {
113
+ Object.keys(e).reduce((p, y) => (p.set(y, e[y]), p), o);
114
+ function f(p, y) {
115
115
  const r = p;
116
- return typeof b == "number" ? [{ target: r, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: r, operator: "getProperty", param: p, value: !!b }] : typeof b == "object" ? Object.keys(b).map((o) => {
117
- if (o === "length")
118
- return { target: r, operator: "length", param: null, value: b[o] };
119
- const s = o, l = b[o];
120
- return { target: r, operator: "getProperty", param: s, value: l };
116
+ return typeof y == "number" ? [{ target: r, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: r, operator: "getProperty", param: p, value: !!y }] : typeof y == "object" ? Object.keys(y).map((i) => {
117
+ if (i === "length")
118
+ return { target: r, operator: "length", param: null, value: y[i] };
119
+ const c = i, a = y[i];
120
+ return { target: r, operator: "getProperty", param: c, value: a };
121
121
  }) : [];
122
122
  }
123
123
  function v(p) {
124
- return Object.keys(p).reduce((r, o) => {
125
- const s = m(o, p[o]);
126
- return r.push(...s), r;
124
+ return Object.keys(p).reduce((r, i) => {
125
+ const c = f(i, p[i]);
126
+ return r.push(...c), r;
127
127
  }, []);
128
128
  }
129
- function f(p, b) {
130
- if (i.has(p.operator)) {
131
- const r = i.get(p.operator);
132
- return r && r(p.target, p.param, p.value, b) || !1;
129
+ function m(p, y) {
130
+ if (o.has(p.operator)) {
131
+ const r = o.get(p.operator);
132
+ return r && r(p.target, p.param, p.value, y) || !1;
133
133
  }
134
134
  return !1;
135
135
  }
136
- function S(p, b) {
137
- return v(p).reduce((s, l) => s && f(l, b), !0);
136
+ function S(p, y) {
137
+ return v(p).reduce((c, a) => c && m(a, y), !0);
138
138
  }
139
- function T(p, b) {
140
- const r = Object.keys(p), o = r.includes("allOf"), s = r.includes("anyOf"), l = o || s, y = (l ? p[l ? o ? "allOf" : "anyOf" : "allOf"] : [p]).map((g) => S(g, b));
141
- return o ? !y.includes(!1) : y.includes(!0);
139
+ function k(p, y) {
140
+ const r = Object.keys(p), i = r.includes("allOf"), c = r.includes("anyOf"), a = i || c, h = (a ? p[a ? i ? "allOf" : "anyOf" : "allOf"] : [p]).map((g) => S(g, y));
141
+ return i ? !h.includes(!1) : h.includes(!0);
142
142
  }
143
- return { parseValueSchema: T };
143
+ return { parseValueSchema: k };
144
144
  }
145
145
  const Tt = {
146
- convertTo: (e, t, n, i) => {
146
+ convertTo: (e, t, n, o) => {
147
147
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
148
148
  },
149
149
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
150
150
  }, kt = {
151
151
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
152
152
  }, Ot = {
153
- convertTo: (e, t, n, i) => {
153
+ convertTo: (e, t, n, o) => {
154
154
  e.editor && (e.editor[t] = n);
155
155
  },
156
156
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
@@ -203,17 +203,17 @@ const Tt = {
203
203
  "language-textbox": { type: "language-textbox", name: "多语输入框" }
204
204
  }, Vt = {
205
205
  convertFrom: (e, t, n) => {
206
- var m;
207
- const i = e.editor && e.editor[t] ? e.editor[t] : e[t];
208
- return ((m = Ce[i]) == null ? void 0 : m.name) || i;
206
+ var f;
207
+ const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
208
+ return ((f = Ce[o]) == null ? void 0 : f.name) || o;
209
209
  }
210
210
  }, Pt = {
211
- convertTo: (e, t, n, i) => {
211
+ convertTo: (e, t, n, o) => {
212
212
  e[t] = e[t];
213
213
  },
214
214
  convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
215
- }, Mt = {
216
- convertTo: (e, t, n, i) => {
215
+ }, Bt = {
216
+ convertTo: (e, t, n, o) => {
217
217
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = {
218
218
  [t]: n
219
219
  });
@@ -244,7 +244,7 @@ const Tt = {
244
244
  return "none";
245
245
  }
246
246
  }, It = {
247
- convertTo: (e, t, n, i) => {
247
+ convertTo: (e, t, n, o) => {
248
248
  e.command ? e.command[t] = n : e.command = {
249
249
  [t]: n
250
250
  }, t === "enable" && n && (e.command.commands || (e.command.commands = [
@@ -261,8 +261,8 @@ const Tt = {
261
261
  ]));
262
262
  },
263
263
  convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
264
- }, Bt = {
265
- convertTo: (e, t, n, i) => {
264
+ }, Mt = {
265
+ convertTo: (e, t, n, o) => {
266
266
  e.column ? e.column[t] = n : e.column = {
267
267
  [t]: n
268
268
  }, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average"));
@@ -277,7 +277,7 @@ const Tt = {
277
277
  return "";
278
278
  }
279
279
  }, Rt = {
280
- convertTo: (e, t, n, i) => {
280
+ convertTo: (e, t, n, o) => {
281
281
  e.summary ? e.summary[t] = n : e.summary = {
282
282
  [t]: n
283
283
  }, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = {
@@ -287,7 +287,7 @@ const Tt = {
287
287
  },
288
288
  convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
289
289
  }, Et = {
290
- convertTo: (e, t, n, i) => {
290
+ convertTo: (e, t, n, o) => {
291
291
  e.group ? e.group[t] = n : e.group = {
292
292
  [t]: n
293
293
  }, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = {
@@ -304,33 +304,33 @@ const Tt = {
304
304
  return e.group.showSummary;
305
305
  }
306
306
  }
307
- }, jt = {
307
+ }, Dt = {
308
308
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
309
309
  convertTo: (e, t, n) => {
310
310
  if (n && n.length > 0) {
311
- const i = n[0];
312
- e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = i.bindingField, e.binding.field = i.id, e.binding.fullPath = i.path, e.path = i.bindingPath;
311
+ const o = n[0];
312
+ e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
313
313
  }
314
314
  }
315
- }, Lt = {
316
- convertTo: (e, t, n, i) => {
315
+ }, jt = {
316
+ convertTo: (e, t, n, o) => {
317
317
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
318
318
  },
319
319
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
320
- }, At = {
321
- convertTo: (e, t, n, i) => {
320
+ }, Lt = {
321
+ convertTo: (e, t, n, o) => {
322
322
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
323
323
  },
324
324
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
325
- }, Dt = {
326
- convertTo: (e, t, n, i) => {
325
+ }, $t = {
326
+ convertTo: (e, t, n, o) => {
327
327
  e.selection || (e.selection = {}), e.selection[t] = n;
328
328
  },
329
329
  convertFrom: (e, t, n) => {
330
- var i, m;
331
- return t === "showCheckbox" ? (i = e.selection) != null && i.multiSelect ? !0 : (m = e.selection) == null ? void 0 : m.showCheckbox : e.selection ? e.selection[t] : e[t];
330
+ var o, f;
331
+ return t === "showCheckbox" ? (o = e.selection) != null && o.multiSelect ? !0 : (f = e.selection) == null ? void 0 : f.showCheckbox : e.selection ? e.selection[t] : e[t];
332
332
  }
333
- }, $t = {
333
+ }, At = {
334
334
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
335
335
  }, xt = {
336
336
  convertFrom: (e, t) => e[t] || "",
@@ -338,37 +338,37 @@ const Tt = {
338
338
  e[t] = n;
339
339
  }
340
340
  }, Ht = {
341
- convertTo: (e, t, n, i) => {
341
+ convertTo: (e, t, n, o) => {
342
342
  e.size || (e.size = {}), e.size[t] = n;
343
343
  },
344
344
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
345
345
  }, Nt = {
346
346
  convertFrom: (e, t, n) => {
347
- var i, m;
348
- return (i = e.formatter) != null && i.data && t === "formatterEnumData" && !e.formatterEnumData ? (m = e.formatter) == null ? void 0 : m.data : e.formatterEnumData;
347
+ var o, f;
348
+ return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (f = e.formatter) == null ? void 0 : f.data : e.formatterEnumData;
349
349
  }
350
350
  }, Gt = {
351
- convertTo: (e, t, n, i) => {
351
+ convertTo: (e, t, n, o) => {
352
352
  e.sort || (e.sort = {}), e.sort[t] = n;
353
353
  },
354
354
  convertFrom: (e, t, n) => {
355
- var i, m;
355
+ var o, f;
356
356
  if (t === "mode")
357
- return ((i = e.sort) == null ? void 0 : i.mode) || "client";
357
+ return ((o = e.sort) == null ? void 0 : o.mode) || "client";
358
358
  if (t === "multiSort")
359
- return !!((m = e.sort) != null && m.multiSort);
359
+ return !!((f = e.sort) != null && f.multiSort);
360
360
  }
361
361
  }, _t = {
362
- convertTo: (e, t, n, i) => {
362
+ convertTo: (e, t, n, o) => {
363
363
  e.filter || (e.filter = {}), e.filter[t] = n;
364
364
  },
365
365
  convertFrom: (e, t, n) => {
366
- var i;
366
+ var o;
367
367
  if (t === "mode")
368
- return ((i = e.filter) == null ? void 0 : i.mode) || "client";
368
+ return ((o = e.filter) == null ? void 0 : o.mode) || "client";
369
369
  }
370
370
  }, zt = {
371
- convertTo: (e, t, n, i) => {
371
+ convertTo: (e, t, n, o) => {
372
372
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
373
373
  [t]: n
374
374
  };
@@ -384,29 +384,29 @@ const Tt = {
384
384
  }
385
385
  };
386
386
  function we(e, t, n) {
387
- const i = /* @__PURE__ */ new Map([
387
+ const o = /* @__PURE__ */ new Map([
388
388
  ["/converter/appearance.converter", Tt],
389
389
  ["/converter/buttons.converter", kt],
390
390
  ["/converter/property-editor.converter", Ot],
391
- ["/converter/items-count.converter", $t],
391
+ ["/converter/items-count.converter", At],
392
392
  ["/converter/type.converter", Vt],
393
393
  ["/converter/change-editor.converter", Pt],
394
- ["/converter/change-formatter.converter", Mt],
394
+ ["/converter/change-formatter.converter", Bt],
395
395
  ["/converter/column-command.converter", It],
396
- ["/converter/column-option.converter", Bt],
396
+ ["/converter/column-option.converter", Mt],
397
397
  ["/converter/summary.converter", Rt],
398
398
  ["/converter/group.converter", Et],
399
399
  ["/converter/form-group-label.converter", xt],
400
- ["/converter/field-selector.converter", jt],
401
- ["/converter/pagination.converter", Lt],
402
- ["/converter/row-number.converter", At],
403
- ["/converter/grid-selection.converter", Dt],
400
+ ["/converter/field-selector.converter", Dt],
401
+ ["/converter/pagination.converter", jt],
402
+ ["/converter/row-number.converter", Lt],
403
+ ["/converter/grid-selection.converter", $t],
404
404
  ["/converter/size.converter", Ht],
405
405
  ["/converter/change-formatter-enum.converter", Nt],
406
406
  ["/converter/grid-sort.converter", Gt],
407
407
  ["/converter/grid-filter.converter", _t],
408
408
  ["/converter/row-option.converter", zt]
409
- ]), m = /* @__PURE__ */ new Map([
409
+ ]), f = /* @__PURE__ */ new Map([
410
410
  ["string", { type: "input-group", enableClear: !1 }],
411
411
  ["boolean", {
412
412
  type: "combo-list",
@@ -431,94 +431,94 @@ function we(e, t, n) {
431
431
  ["number", { type: "number-spinner", placeholder: "" }],
432
432
  ["events-editor", { type: "events-editor", hide: !0 }]
433
433
  ]), v = Ft();
434
- function f(l, a) {
435
- return () => v.parseValueSchema(l, a);
436
- }
437
- function S(l, a, u) {
438
- return l.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : f(a.visible, u) : () => !0;
439
- }
440
- function T(l, a, u) {
441
- return l.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : f(a.readonly, u) : () => !1;
442
- }
443
- function p(l, a) {
444
- const u = l.$converter || a;
445
- return typeof u == "string" && u && i.has(u) ? i.get(u) || null : u || null;
446
- }
447
- function b(l, a, u, y, c, g = "", P = "") {
448
- return Object.keys(l).map((O) => {
449
- const V = w(1), B = O, d = l[O], I = Object.keys(d), j = d.title, h = d.type, E = m.get(h) || { type: "input-group", enableClear: !1 }, k = d.editor ? Object.assign({}, E, d.editor) : Object.assign({}, E), F = S(I, d, a), M = T(I, d, a);
450
- k.readonly = k.readonly === void 0 ? M() : k.readonly;
451
- const A = d.type === "cascade" ? b(d.properties, a, u, y, c, g, P) : [], L = !0;
452
- let x = p(d, P);
453
- const H = D({
434
+ function m(a, l) {
435
+ return () => v.parseValueSchema(a, l);
436
+ }
437
+ function S(a, l, s) {
438
+ return a.includes("visible") && l.visible !== void 0 ? typeof l.visible == "boolean" ? () => !!l.visible : l.visible === void 0 ? !0 : m(l.visible, s) : () => !0;
439
+ }
440
+ function k(a, l, s) {
441
+ return a.includes("readonly") && l.readonly !== void 0 ? typeof l.readonly == "boolean" ? () => !!l.readonly : m(l.readonly, s) : () => !1;
442
+ }
443
+ function p(a, l) {
444
+ const s = a.$converter || l;
445
+ return typeof s == "string" && s && o.has(s) ? o.get(s) || null : s || null;
446
+ }
447
+ function y(a, l, s, h, u, g = "", I = "") {
448
+ return Object.keys(a).map((O) => {
449
+ const P = F(1), R = O, d = a[O], M = Object.keys(d), A = d.title, T = d.type, B = f.get(T) || { type: "input-group", enableClear: !1 }, b = d.editor ? Object.assign({}, B, d.editor) : Object.assign({}, B), w = S(M, d, l), V = k(M, d, l);
450
+ b.readonly = b.readonly === void 0 ? V() : b.readonly;
451
+ const j = d.type === "cascade" ? y(d.properties, l, s, h, u, g, I) : [], D = !0;
452
+ let x = p(d, I);
453
+ const H = L({
454
454
  get() {
455
- if (V.value) {
456
- if (["class", "style"].find((te) => te === B) && !x && (x = i.get("/converter/appearance.converter") || null), x && x.convertFrom)
457
- return x.convertFrom(u, O, c, g);
458
- const N = u[O];
455
+ if (P.value) {
456
+ if (["class", "style"].find((te) => te === R) && !x && (x = o.get("/converter/appearance.converter") || null), x && x.convertFrom)
457
+ return x.convertFrom(s, O, u, g);
458
+ const N = s[O];
459
459
  return Object.prototype.hasOwnProperty.call(d, "defaultValue") && (N === void 0 || typeof N == "string" && N === "") ? d.type === "boolean" ? d.defaultValue : d.defaultValue || "" : N;
460
460
  }
461
461
  return null;
462
462
  },
463
463
  set(N) {
464
- V.value += 1, x && x.convertTo ? (x.convertTo(y, O, N, c, g), x.convertTo(u, O, N, c, g)) : (y[O] = N, u[O] = N);
464
+ P.value += 1, x && x.convertTo ? (x.convertTo(h, O, N, u, g), x.convertTo(s, O, N, u, g)) : (h[O] = N, s[O] = N);
465
465
  }
466
- }), { refreshPanelAfterChanged: _, description: K, isExpand: ee, parentPropertyID: X } = d, Y = { propertyID: B, propertyName: j, propertyType: h, propertyValue: H, editor: k, visible: F, readonly: M, cascadeConfig: A, hideCascadeTitle: L, refreshPanelAfterChanged: _, description: K, isExpand: ee, parentPropertyID: X };
467
- return a[B] = Y, Y;
466
+ }), { refreshPanelAfterChanged: _, description: K, isExpand: ee, parentPropertyID: X } = d, Y = { propertyID: R, propertyName: A, propertyType: T, propertyValue: H, editor: b, visible: w, readonly: V, cascadeConfig: j, hideCascadeTitle: D, refreshPanelAfterChanged: _, description: K, isExpand: ee, parentPropertyID: X };
467
+ return l[R] = Y, Y;
468
468
  });
469
469
  }
470
- function r(l, a, u = {}) {
471
- const y = {}, c = e[l];
472
- return c && c.categories ? Object.keys(c.categories).map((P) => {
473
- const R = c.categories[P], O = R == null ? void 0 : R.title, V = b(R.properties || {}, y, {}, u, a);
474
- return { categoryId: P, categoryName: O, properties: V };
470
+ function r(a, l, s = {}) {
471
+ const h = {}, u = e[a];
472
+ return u && u.categories ? Object.keys(u.categories).map((I) => {
473
+ const E = u.categories[I], O = E == null ? void 0 : E.title, P = y(E.properties || {}, h, {}, s, l);
474
+ return { categoryId: I, categoryName: O, properties: P };
475
475
  }) : [];
476
476
  }
477
- function o(l, a, u, y, c = "") {
478
- const g = a.$ref.schema, P = a.$ref.converter, R = u[g], O = R.type, V = n(R), B = {}, d = e[O];
477
+ function i(a, l, s, h, u = "") {
478
+ const g = l.$ref.schema, I = l.$ref.converter, E = s[g], O = E.type, P = n(E), R = {}, d = e[O];
479
479
  if (d && d.categories) {
480
- const I = d.categories[l], j = I == null ? void 0 : I.title;
481
- P && Object.keys(I.properties).forEach((k) => {
482
- I.properties[k].$converter = P;
480
+ const M = d.categories[a], A = M == null ? void 0 : M.title;
481
+ I && Object.keys(M.properties).forEach((b) => {
482
+ M.properties[b].$converter = I;
483
483
  });
484
- const h = (I == null ? void 0 : I.properties) || {}, E = b(h, B, V, R, y, c);
485
- return { categoryId: l, categoryName: j, properties: E };
486
- }
487
- return { categoryId: l, categoryName: "", properties: [] };
488
- }
489
- function s(l, a, u, y, c) {
490
- const g = l.type, P = n(l), R = {};
491
- let O = c || e[g];
492
- if (O && Object.keys(O).length === 0 && u && u.getPropConfig && (O = u.getPropConfig(y)), O && O.categories) {
493
- const V = [];
494
- return Object.keys(O.categories).map((B) => {
495
- const d = O.categories[B];
484
+ const T = (M == null ? void 0 : M.properties) || {}, B = y(T, R, P, E, h, u);
485
+ return { categoryId: a, categoryName: A, properties: B };
486
+ }
487
+ return { categoryId: a, categoryName: "", properties: [] };
488
+ }
489
+ function c(a, l, s, h, u) {
490
+ const g = a.type, I = n(a), E = {};
491
+ let O = u || e[g];
492
+ if (O && Object.keys(O).length === 0 && s && s.getPropConfig && (O = s.getPropConfig(h)), O && O.categories) {
493
+ const P = [];
494
+ return Object.keys(O.categories).map((R) => {
495
+ const d = O.categories[R];
496
496
  if (d.$ref) {
497
- V.push(o(B, d, l, a, y));
497
+ P.push(i(R, d, a, l, h));
498
498
  return;
499
499
  }
500
- const I = d == null ? void 0 : d.title, j = d == null ? void 0 : d.tabId, h = d == null ? void 0 : d.tabName, E = d == null ? void 0 : d.hide, k = d == null ? void 0 : d.hideTitle, F = b(d.properties || {}, R, P, l, a, y, d.$converter), { setPropertyRelates: M } = d, A = d == null ? void 0 : d.parentPropertyID;
501
- V.push({ categoryId: B, categoryName: I, tabId: j, tabName: h, hide: E, properties: F, hideTitle: k, setPropertyRelates: M, parentPropertyID: A });
502
- }), V;
500
+ const M = d == null ? void 0 : d.title, A = d == null ? void 0 : d.tabId, T = d == null ? void 0 : d.tabName, B = d == null ? void 0 : d.hide, b = d == null ? void 0 : d.hideTitle, w = y(d.properties || {}, E, I, a, l, h, d.$converter), { setPropertyRelates: V } = d, j = d == null ? void 0 : d.parentPropertyID;
501
+ P.push({ categoryId: R, categoryName: M, tabId: A, tabName: T, hide: B, properties: w, hideTitle: b, setPropertyRelates: V, parentPropertyID: j });
502
+ }), P;
503
503
  }
504
504
  return [];
505
505
  }
506
506
  return {
507
- getPropertyConfigBySchema: s,
507
+ getPropertyConfigBySchema: c,
508
508
  getPropertyConfigByType: r,
509
- propertyConverterMap: i
509
+ propertyConverterMap: o
510
510
  };
511
511
  }
512
512
  const Fe = {}, Te = {};
513
513
  we(Fe, Te, St);
514
- const ke = {}, Oe = {}, { resolveSchemaWithDefaultValue: qt } = ye(ke, Oe), Ve = {}, Pe = {};
514
+ const ke = {}, Oe = {}, { getSchemaByType: ao, resolveSchemaWithDefaultValue: qt, resolveSchemaToProps: so, mappingSchemaToProps: co, setDesignerContext: uo } = ye(ke, Oe), Ve = {}, Pe = {};
515
515
  we(Ve, Pe, qt);
516
- function Wt(e, t, n = /* @__PURE__ */ new Map(), i = (f, S, T, p) => S, m = {}, v = (f) => f) {
517
- return be[t.title] = t, Se[t.title] = i, Fe[t.title] = m, Te[t.title] = v, ke[t.title] = t, Oe[t.title] = i, Ve[t.title] = m, Pe[t.title] = v, (f = {}, S = !0) => {
516
+ function Wt(e, t, n = /* @__PURE__ */ new Map(), o = (m, S, k, p) => S, f = {}, v = (m) => m) {
517
+ return be[t.title] = t, Se[t.title] = o, Fe[t.title] = f, Te[t.title] = v, ke[t.title] = t, Oe[t.title] = o, Ve[t.title] = f, Pe[t.title] = v, (m = {}, S = !0) => {
518
518
  if (!S)
519
- return wt(f, n);
520
- const T = Ct(f, t, n), p = Object.keys(e).reduce((b, r) => (b[r] = e[r].default, b), {});
521
- return Object.assign(p, T);
519
+ return wt(m, n);
520
+ const k = Ct(m, t, n), p = Object.keys(e).reduce((y, r) => (y[r] = e[r].default, y), {});
521
+ return Object.assign(p, k);
522
522
  };
523
523
  }
524
524
  function Ut(e, t) {
@@ -795,212 +795,214 @@ const rn = "order", ln = "A Farris Component", an = "object", sn = {
795
795
  };
796
796
  function dn(e, t) {
797
797
  function n(v) {
798
- const f = [];
798
+ const m = [];
799
799
  let S = v.nextNode();
800
800
  for (; S; )
801
- f.push(S), S = v.nextNode();
802
- return f;
801
+ m.push(S), S = v.nextNode();
802
+ return m;
803
803
  }
804
- function i(v, f) {
804
+ function o(v, m) {
805
805
  const S = document.createTreeWalker(v, NodeFilter.SHOW_TEXT);
806
- return n(S).map((r) => ({ textNode: r, text: (r.textContent || "").toLocaleLowerCase() })).map(({ textNode: r, text: o }) => {
807
- const s = [];
808
- let l = 0;
809
- for (; l < o.length; ) {
810
- const a = o.indexOf(f, l);
811
- if (a === -1)
806
+ return n(S).map((r) => ({ textNode: r, text: (r.textContent || "").toLocaleLowerCase() })).map(({ textNode: r, text: i }) => {
807
+ const c = [];
808
+ let a = 0;
809
+ for (; a < i.length; ) {
810
+ const l = i.indexOf(m, a);
811
+ if (l === -1)
812
812
  break;
813
- s.push(a), l = a + f.length;
813
+ c.push(l), a = l + m.length;
814
814
  }
815
- return s.map((a) => {
816
- const u = new Range();
817
- return u.setStart(r, a), u.setEnd(r, a + f.length), u;
815
+ return c.map((l) => {
816
+ const s = new Range();
817
+ return s.setStart(r, l), s.setEnd(r, l + m.length), s;
818
818
  });
819
819
  }).flat();
820
820
  }
821
- function m(v) {
821
+ function f(v) {
822
822
  if (!CSS.highlights || (CSS.highlights.clear(), !v || !t))
823
823
  return;
824
- const f = i(t.value, v.toLocaleLowerCase()), S = new Highlight(...f);
824
+ const m = o(t.value, v.toLocaleLowerCase()), S = new Highlight(...m);
825
825
  CSS.highlights.set("search-result", S);
826
826
  }
827
- return { search: m };
827
+ return { search: f };
828
828
  }
829
- function pe(e, t, n, i, m, v, f, S, T, p) {
830
- const b = w(e.size), r = w(e.textField), o = w(e.titleField), s = w(e.disableField), l = D(() => {
831
- var d, I;
832
- return ((d = e.selection) == null ? void 0 : d.multiSelect) && ((I = e.selection) == null ? void 0 : I.showCheckbox);
829
+ function pe(e, t, n, o, f, v, m, S, k, p) {
830
+ const y = F(e.size), r = F(e.textField), i = F(e.titleField), c = F(e.disableField), a = L(() => {
831
+ var d, M;
832
+ return ((d = e.selection) == null ? void 0 : d.multiSelect) && ((M = e.selection) == null ? void 0 : M.showCheckbox);
833
833
  }), {
834
- onMouseenterItem: a,
835
- onMouseoverItem: u,
836
- onMouseoutItem: y
834
+ onMouseenterItem: l,
835
+ onMouseoverItem: s,
836
+ onMouseoutItem: h
837
837
  } = v, {
838
- getKey: c,
838
+ getKey: u,
839
839
  listViewItemClass: g,
840
- listViewItemStyle: P,
841
- onCheckItem: R,
840
+ listViewItemStyle: I,
841
+ onCheckItem: E,
842
842
  onClickItem: O
843
- } = f, V = D(() => {
843
+ } = m, P = L(() => {
844
844
  const d = {
845
845
  "text-overflow": "ellipsis",
846
846
  overflow: "hidden",
847
847
  "white-space": "nowrap"
848
848
  };
849
849
  return e.itemClass ? d : {
850
- margin: b.value === "small" ? "0.25rem 0" : "8px 0",
850
+ margin: y.value === "small" ? "0.25rem 0" : "8px 0",
851
851
  ...d
852
852
  };
853
853
  });
854
- function B(d, I, j) {
854
+ function R(d, M, A) {
855
855
  return d.checked = S.findIndexInSelectedItems(d) > -1, C("li", {
856
- class: g(d, I),
857
- id: c(d, I),
858
- key: c(d, I),
859
- style: P(d, I),
860
- onClick: (h) => O(d, I, h),
861
- onMouseenter: (h) => a(h, d, I),
862
- onMouseover: (h) => u(h, d, I),
863
- onMouseout: (h) => y(h, d, I)
864
- }, [l.value && C("div", {
856
+ class: g(d, M),
857
+ id: u(d, M),
858
+ key: u(d, M),
859
+ style: I(d, M),
860
+ onClick: (T) => O(d, M, T),
861
+ onMouseenter: (T) => l(T, d, M),
862
+ onMouseover: (T) => s(T, d, M),
863
+ onMouseout: (T) => h(T, d, M)
864
+ }, [a.value && C("div", {
865
865
  class: "f-list-select",
866
- onClick: (h) => h.stopPropagation()
866
+ onClick: (T) => T.stopPropagation()
867
867
  }, [C(se, {
868
- id: "list-" + c(d, I),
868
+ id: "list-" + u(d, M),
869
869
  customClass: "listview-checkbox float-left",
870
- disabled: d[s.value],
870
+ disabled: d[c.value],
871
871
  checked: d.checked,
872
- "onUpdate:checked": (h) => d.checked = h,
873
- onChange: (h) => {
874
- R(d, I, !h.checked);
872
+ "onUpdate:checked": (T) => d.checked = T,
873
+ onChange: (T) => {
874
+ E(d, M, !T.checked);
875
875
  }
876
876
  }, null)]), C("div", {
877
877
  class: "f-list-content"
878
878
  }, [C("div", {
879
879
  class: e.itemContentClass,
880
- style: V.value,
881
- title: d.raw[o.value] || d.raw[r.value]
880
+ style: P.value,
881
+ title: d.raw[i.value] || d.raw[r.value]
882
882
  }, [d.raw[r.value]])])]);
883
883
  }
884
884
  return {
885
- renderItem: B
885
+ renderItem: R
886
886
  };
887
887
  }
888
- function fn(e, t, n, i, m, v, f, S, T, p) {
889
- const b = w(e.multiSelect), r = w(e.disableField), o = w(e.textField), {
890
- onMouseenterItem: s,
891
- onMouseoverItem: l,
892
- onMouseoutItem: a
888
+ function fn(e, t, n, o, f, v, m, S, k, p) {
889
+ const y = F(e.multiSelect), r = F(e.disableField), i = F(e.textField), {
890
+ onMouseenterItem: c,
891
+ onMouseoverItem: a,
892
+ onMouseoutItem: l
893
893
  } = v, {
894
- getKey: u,
895
- listViewItemClass: y,
896
- listViewItemStyle: c,
894
+ getKey: s,
895
+ listViewItemClass: h,
896
+ listViewItemStyle: u,
897
897
  onCheckItem: g,
898
- onClickItem: P
899
- } = f;
900
- function R(V, B, d) {
898
+ onClickItem: I
899
+ } = m;
900
+ function E(P, R, d) {
901
901
  return e.contentTemplate ? C(U, null, [e.contentTemplate({
902
- item: V.raw,
903
- index: B,
902
+ item: P.raw,
903
+ index: R,
904
904
  selectedItem: d
905
905
  })]) : t.slots.content ? C(U, null, [t.slots.content && t.slots.content({
906
- item: V.raw,
907
- index: B,
906
+ item: P.raw,
907
+ index: R,
908
908
  selectedItem: d
909
909
  })]) : C("div", {
910
910
  style: "margin: 10px 0;"
911
- }, [V.raw[o.value || "name"]]);
911
+ }, [P.raw[i.value || "name"]]);
912
912
  }
913
- function O(V, B, d) {
913
+ function O(P, R, d) {
914
914
  return C("li", {
915
- class: y(V, B),
916
- id: u(V, B),
917
- key: u(V, B),
918
- style: c(V, B),
919
- onClick: (I) => P(V, B, I),
920
- onMouseenter: (I) => s(I, V, B),
921
- onMouseover: (I) => l(I, V, B),
922
- onMouseout: (I) => a(I, V, B)
923
- }, [b.value && C("div", {
915
+ class: h(P, R),
916
+ id: s(P, R),
917
+ key: s(P, R),
918
+ style: u(P, R),
919
+ onClick: (M) => I(P, R, M),
920
+ onMouseenter: (M) => c(M, P, R),
921
+ onMouseover: (M) => a(M, P, R),
922
+ onMouseout: (M) => l(M, P, R)
923
+ }, [y.value && C("div", {
924
924
  class: "f-list-select",
925
- onClick: (I) => I.stopPropagation()
925
+ onClick: (M) => M.stopPropagation()
926
926
  }, [C(se, {
927
- id: "list-" + u(V, B),
927
+ id: "list-" + s(P, R),
928
928
  customClass: "listview-checkbox",
929
- disabled: V[r.value] || !V.checked,
930
- checked: V.checked,
931
- "onUpdate:checked": (I) => V.checked = I,
932
- onChange: (I) => g(V, B, !I.checked)
929
+ disabled: P[r.value] || !P.checked,
930
+ checked: P.checked,
931
+ "onUpdate:checked": (M) => P.checked = M,
932
+ onChange: (M) => g(P, R, !M.checked)
933
933
  }, null)]), C("div", {
934
934
  class: "f-list-content"
935
- }, [R(V, B, d)])]);
935
+ }, [E(P, R, d)])]);
936
936
  }
937
937
  return {
938
938
  renderItem: O
939
939
  };
940
940
  }
941
- function mn(e, t, n, i, m, v, f, S, T, p) {
942
- const b = w(e.multiSelect), r = w(e.disableField), o = w(e.textField), {
943
- onMouseenterItem: s,
944
- onMouseoverItem: l,
945
- onMouseoutItem: a
941
+ function mn(e, t, n, o, f, v, m, S, k, p) {
942
+ const y = F(e.multiSelect), r = F(e.disableField), i = F(e.textField), {
943
+ onMouseenterItem: c,
944
+ onMouseoverItem: a,
945
+ onMouseoutItem: l
946
946
  } = v, {
947
- getKey: u,
948
- listViewItemClass: y,
949
- onCheckItem: c,
947
+ getKey: s,
948
+ listViewItemClass: h,
949
+ onCheckItem: u,
950
950
  onClickItem: g
951
- } = f, {
952
- dragstart: P,
953
- dragenter: R,
951
+ } = m, {
952
+ dragstart: I,
953
+ dragenter: E,
954
954
  dragover: O,
955
- dragend: V
956
- } = i, {
957
- removeItem: B
958
- } = T, d = D(() => ({
959
- margin: b.value ? "10px 0" : "10px 0px 10px 14px"
955
+ dragend: P
956
+ } = o, {
957
+ removeItem: R
958
+ } = k, d = L(() => ({
959
+ margin: y.value ? "10px 0" : "10px 0px 10px 14px"
960
960
  }));
961
- function I(F, M = "") {
962
- const A = F.target;
963
- A.title = A.scrollWidth > A.clientWidth ? M : "";
961
+ function M(w, V = "") {
962
+ const j = w.target;
963
+ j.title = j.scrollWidth > j.clientWidth ? V : "";
964
964
  }
965
- function j(F) {
965
+ function A(w) {
966
966
  return C("div", {
967
967
  style: d.value,
968
- onMouseenter: (M) => I(M, F.raw[o.value || "name"])
969
- }, [F.raw[o.value || "name"]]);
968
+ onMouseenter: (V) => M(V, w.raw[i.value || "name"])
969
+ }, [w.raw[i.value || "name"]]);
970
970
  }
971
- function h() {
972
- return t.slots.itemContent ? t.slots.itemContent : j;
971
+ function T() {
972
+ return t.slots.itemContent ? t.slots.itemContent : A;
973
973
  }
974
- const E = h();
975
- function k(F, M, A) {
974
+ const B = T();
975
+ function b(w, V, j) {
976
976
  return C("li", {
977
- class: y(F, M),
978
- id: u(F, M),
979
- key: u(F, M),
980
- onClick: (L) => g(F, M, L),
981
- onMouseenter: (L) => s(L, F, M),
982
- onMouseover: (L) => l(L, F, M),
983
- onMouseout: (L) => a(L, F, M),
977
+ class: h(w, V),
978
+ id: s(w, V),
979
+ key: s(w, V),
980
+ onClick: (D) => g(w, V, D),
981
+ onMouseenter: (D) => c(D, w, V),
982
+ onMouseover: (D) => a(D, w, V),
983
+ onMouseout: (D) => l(D, w, V),
984
984
  draggable: "true",
985
- onDragstart: (L) => P(L, F, M),
986
- onDragenter: (L) => R(L, M),
987
- onDragend: (L) => V(L, F),
988
- onDragover: (L) => O(L)
989
- }, [b.value && C("div", {
985
+ onDragstart: (D) => I(D, w, V),
986
+ onDragenter: (D) => E(D, V),
987
+ onDragend: (D) => P(D, w),
988
+ onDragover: (D) => O(D)
989
+ }, [y.value && C("div", {
990
990
  class: "f-list-select",
991
- onClick: (L) => L.stopPropagation()
991
+ onClick: (D) => D.stopPropagation()
992
992
  }, [C(se, {
993
- id: "list-" + u(F, M),
993
+ id: "list-" + s(w, V),
994
994
  customClass: "listview-checkbox",
995
- disabled: F[r.value] || !F.checked,
996
- checked: F.checked,
997
- "onUpdate:checked": (L) => F.checked = L,
998
- onChange: (L) => c(F, M, !L.checked)
995
+ disabled: w[r.value] || !w.checked,
996
+ checked: w.checked,
997
+ "onUpdate:checked": (D) => w.checked = D,
998
+ onChange: (D) => u(w, V, !D.checked)
999
999
  }, null)]), C("div", {
1000
1000
  class: "f-list-content"
1001
- }, [E(F)]), C("div", {
1001
+ }, [B(w)]), C("div", {
1002
1002
  class: "f-list-remove",
1003
- onClick: (L) => B(M)
1003
+ onClick: (D) => {
1004
+ D.stopPropagation(), R(V);
1005
+ }
1004
1006
  }, [C("div", {
1005
1007
  class: "f-list-remove-icon"
1006
1008
  }, [C("i", {
@@ -1012,74 +1014,74 @@ function mn(e, t, n, i, m, v, f, S, T, p) {
1012
1014
  }, null)])])]);
1013
1015
  }
1014
1016
  return {
1015
- renderItem: k
1017
+ renderItem: b
1016
1018
  };
1017
1019
  }
1018
- function vn(e, t, n, i, m, v, f, S, T, p) {
1019
- var u;
1020
- const b = w(((u = e.group) == null ? void 0 : u.groupFields) || []), {
1020
+ function vn(e, t, n, o, f, v, m, S, k, p) {
1021
+ var s;
1022
+ const y = F(((s = e.group) == null ? void 0 : s.groupFields) || []), {
1021
1023
  collpaseGroupIconClass: r
1022
- } = m, {
1023
- toggleGroupRow: o
1024
+ } = f, {
1025
+ toggleGroupRow: i
1024
1026
  } = p;
1025
- function s(y, c) {
1026
- c.collapse = !c.collapse, n.value = o(c.collapse ? "collapse" : "expand", c, n.value);
1027
+ function c(h, u) {
1028
+ u.collapse = !u.collapse, n.value = i(u.collapse ? "collapse" : "expand", u, n.value);
1027
1029
  }
1028
- function l(y, c, g) {
1030
+ function a(h, u, g) {
1029
1031
  return t.slots.group ? C(U, null, [t.slots.content && t.slots.group({
1030
- item: y.raw,
1031
- index: c,
1032
+ item: h.raw,
1033
+ index: u,
1032
1034
  selectedItem: g
1033
1035
  })]) : C("div", {
1034
1036
  class: "f-navlookup-recentHeader",
1035
- onClick: (P) => s(P, y)
1037
+ onClick: (I) => c(I, h)
1036
1038
  }, [C("div", {
1037
1039
  class: "fv-grid-group-row-icon"
1038
1040
  }, [C("span", {
1039
- class: r(y)
1041
+ class: r(h)
1040
1042
  }, null)]), C("div", {
1041
1043
  class: "f-navlookup-recommandLabel"
1042
- }, [y.raw[b.value[y.layer]]])]);
1044
+ }, [h.raw[y.value[h.layer]]])]);
1043
1045
  }
1044
- function a(y, c, g) {
1045
- return y.layer > -1 && l(y, c, g);
1046
+ function l(h, u, g) {
1047
+ return h.layer > -1 && a(h, u, g);
1046
1048
  }
1047
1049
  return {
1048
- renderItem: a
1050
+ renderItem: l
1049
1051
  };
1050
1052
  }
1051
- function pn(e, t, n, i) {
1052
- const { dataView: m } = n, { updateSelectedItems: v } = i;
1053
- function f(S) {
1054
- if (S > -1 && S < m.value.length) {
1055
- if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(m.value[S]))
1053
+ function pn(e, t, n, o) {
1054
+ const { dataView: f } = n, { updateSelectedItems: v } = o;
1055
+ function m(S) {
1056
+ if (S > -1 && S < f.value.length) {
1057
+ if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(f.value[S]))
1056
1058
  return;
1057
- const T = m.value.splice(S, 1);
1058
- v(), t.emit("removeItem", T[0]);
1059
+ const k = f.value.splice(S, 1);
1060
+ v(), t.emit("removeItem", k[0]);
1059
1061
  }
1060
1062
  }
1061
- return { removeItem: f };
1063
+ return { removeItem: m };
1062
1064
  }
1063
- function gn(e, t, n, i, m, v, f, S, T, p) {
1065
+ function gn(e, t, n, o, f, v, m, S, k, p) {
1064
1066
  const {
1065
- t: b
1066
- } = ae(), r = w(e.view), o = w(e.view === "CardView"), s = w({}), l = w(b("listView.emptyMessage")), a = pn(e, t, i, T), u = D(() => ({
1067
+ t: y
1068
+ } = ae(), r = F(e.view), i = F(e.view === "CardView"), c = F({}), a = F(y("listView.emptyMessage")), l = pn(e, t, o, k), s = L(() => ({
1067
1069
  "f-list-view-group": !0,
1068
1070
  "f-list-view-group-multiselect": e.multiSelect,
1069
- "d-flex": o.value,
1070
- "flex-wrap": o.value
1071
- })), y = D(() => !!n.value && n.value.length > 0), c = D(() => n.value.length === 0);
1072
- D(() => c.value && !t.slots.empty);
1071
+ "d-flex": i.value,
1072
+ "flex-wrap": i.value
1073
+ })), h = L(() => !!n.value && n.value.length > 0), u = L(() => n.value.length === 0);
1074
+ L(() => u.value && !t.slots.empty);
1073
1075
  function g() {
1074
1076
  return r.value === "SingleView" ? pe : r.value === "DraggableView" ? mn : (r.value === "ContentView" || r.value === "CardView") && (e.contentTemplate || t.slots.content) ? fn : pe;
1075
1077
  }
1076
- const P = g(), {
1077
- renderItem: R
1078
- } = P(e, t, n, p, m, v, T, f, a, S), {
1078
+ const I = g(), {
1079
+ renderItem: E
1080
+ } = I(e, t, n, p, f, v, k, m, l, S), {
1079
1081
  renderItem: O
1080
- } = vn(e, t, n, p, m, v, T, f, a, S), V = [R, O];
1081
- function B() {
1082
- return n.value.filter((j) => j.visible !== !1).map((j, h) => V[j.type](j, h, s));
1082
+ } = vn(e, t, n, p, f, v, k, m, l, S), P = [E, O];
1083
+ function R() {
1084
+ return n.value.filter((A) => A.visible !== !1).map((A, T) => P[A.type](A, T, c));
1083
1085
  }
1084
1086
  function d() {
1085
1087
  return C("div", {
@@ -1087,49 +1089,49 @@ function gn(e, t, n, i, m, v, f, S, T, p) {
1087
1089
  style: "margin: 0 auto;"
1088
1090
  }, [C("p", {
1089
1091
  class: "f-empty-title"
1090
- }, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : l.value])]);
1092
+ }, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : a.value])]);
1091
1093
  }
1092
- function I() {
1094
+ function M() {
1093
1095
  return C("ul", {
1094
- class: u.value,
1096
+ class: s.value,
1095
1097
  style: "list-style: none;"
1096
- }, [y.value && B(), c.value && d()]);
1098
+ }, [h.value && R(), u.value && d()]);
1097
1099
  }
1098
1100
  return {
1099
- renderListArea: I
1101
+ renderListArea: M
1100
1102
  };
1101
1103
  }
1102
1104
  function hn(e, t, n) {
1103
- function i() {
1105
+ function o() {
1104
1106
  return t.slots.header && C("div", {
1105
1107
  class: "f-list-view-header"
1106
1108
  }, [t.slots.header()]);
1107
1109
  }
1108
1110
  return {
1109
- renderHeader: i
1111
+ renderHeader: o
1110
1112
  };
1111
1113
  }
1112
1114
  function ge(e, t, n) {
1113
- const i = w(e.headerClass), m = w(e.placeholder), v = w(""), f = D(() => !v.value), S = D(() => !!v.value);
1114
- function T(o) {
1115
+ const o = F(e.headerClass), f = F(e.placeholder), v = F(""), m = L(() => !v.value), S = L(() => !!v.value);
1116
+ function k(i) {
1115
1117
  v.value = "";
1116
1118
  }
1117
- G(v, (o) => {
1118
- e.enableHighlightSearch && n.search(o), t.emit("afterSearch", o);
1119
+ G(v, (i) => {
1120
+ e.enableHighlightSearch && n.search(i), t.emit("afterSearch", i);
1119
1121
  });
1120
- const p = D(() => {
1121
- const o = {
1122
+ const p = L(() => {
1123
+ const i = {
1122
1124
  "form-group": !0,
1123
1125
  "farris-form-group": !0
1124
1126
  };
1125
- return i.value && i.value.split(" ").reduce((l, a) => (l[a] = !0, l), o), o;
1127
+ return o.value && o.value.split(" ").reduce((a, l) => (a[l] = !0, a), i), i;
1126
1128
  });
1127
- function b(o) {
1129
+ function y(i) {
1128
1130
  }
1129
1131
  function r() {
1130
1132
  return C("div", {
1131
1133
  class: "f-list-view-header",
1132
- onClick: Ne(() => b, ["prevent", "stop"])
1134
+ onClick: Ne(() => y, ["prevent", "stop"])
1133
1135
  }, [C("div", {
1134
1136
  class: p.value
1135
1137
  }, [C("div", {
@@ -1140,19 +1142,19 @@ function ge(e, t, n) {
1140
1142
  class: "input-group f-state-editable"
1141
1143
  }, [Ge(C("input", {
1142
1144
  class: "form-control f-utils-fill text-left",
1143
- "onUpdate:modelValue": (o) => v.value = o,
1145
+ "onUpdate:modelValue": (i) => v.value = i,
1144
1146
  name: "input-group-value",
1145
1147
  type: "text",
1146
- placeholder: m.value,
1148
+ placeholder: f.value,
1147
1149
  autocomplete: "off"
1148
1150
  }, null), [[_e, v.value]]), C("div", {
1149
1151
  class: "input-group-append"
1150
1152
  }, [S.value && C("span", {
1151
1153
  class: "input-group-text input-group-clear",
1152
- onClick: (o) => T()
1154
+ onClick: (i) => k()
1153
1155
  }, [C("i", {
1154
1156
  class: "f-icon f-icon-close-circle"
1155
- }, null)]), f.value && C("span", {
1157
+ }, null)]), m.value && C("span", {
1156
1158
  class: "input-group-text"
1157
1159
  }, [C("span", {
1158
1160
  class: "f-icon f-icon-search"
@@ -1163,50 +1165,50 @@ function ge(e, t, n) {
1163
1165
  };
1164
1166
  }
1165
1167
  function yn() {
1166
- const e = w(""), t = w(-1), n = w(""), i = w(-1), m = w(!1);
1167
- function v(r, o, s) {
1168
- i.value = s;
1168
+ const e = F(""), t = F(-1), n = F(""), o = F(-1), f = F(!1);
1169
+ function v(r, i, c) {
1170
+ o.value = c;
1169
1171
  }
1170
- function f(r, o, s) {
1171
- m.value || (i.value = s);
1172
+ function m(r, i, c) {
1173
+ f.value || (o.value = c);
1172
1174
  }
1173
- function S(r, o, s) {
1174
- i.value = -1;
1175
+ function S(r, i, c) {
1176
+ o.value = -1;
1175
1177
  }
1176
- function T() {
1177
- m.value = !0;
1178
+ function k() {
1179
+ f.value = !0;
1178
1180
  }
1179
1181
  function p() {
1180
- m.value = !1;
1182
+ f.value = !1;
1181
1183
  }
1182
- function b() {
1184
+ function y() {
1183
1185
  t.value = -1, e.value = "";
1184
1186
  }
1185
1187
  return {
1186
1188
  activeIndex: t,
1187
1189
  focusedItemId: n,
1188
- hoverIndex: i,
1189
- clearActiveItem: b,
1190
+ hoverIndex: o,
1191
+ clearActiveItem: y,
1190
1192
  onMouseenterItem: v,
1191
- onMouseoverItem: f,
1193
+ onMouseoverItem: m,
1192
1194
  onMouseoutItem: S,
1193
1195
  resumeHover: p,
1194
- suspendHover: T
1196
+ suspendHover: k
1195
1197
  };
1196
1198
  }
1197
- function bn(e, t, n, i) {
1198
- const m = w(e.idField), { dataView: v } = n, f = w(-1), S = w(!1), { activeIndex: T, focusedItemId: p, hoverIndex: b, resumeHover: r, suspendHover: o } = i;
1199
- let s, l = 0, a = 0;
1200
- function u(O, V) {
1201
- const B = O - l, d = V - a;
1202
- s.style.left = parseInt(s.style.left) + B + "px", s.style.top = parseInt(s.style.top) + d + "px", l = O, a = V;
1203
- }
1204
- function y(O) {
1205
- const { left: V, top: B } = O.getBoundingClientRect(), d = O.cloneNode(!0);
1199
+ function bn(e, t, n, o) {
1200
+ const f = F(e.idField), { dataView: v } = n, m = F(-1), S = F(!1), { activeIndex: k, focusedItemId: p, hoverIndex: y, resumeHover: r, suspendHover: i } = o;
1201
+ let c, a = 0, l = 0;
1202
+ function s(O, P) {
1203
+ const R = O - a, d = P - l;
1204
+ c.style.left = parseInt(c.style.left) + R + "px", c.style.top = parseInt(c.style.top) + d + "px", a = O, l = P;
1205
+ }
1206
+ function h(O) {
1207
+ const { left: P, top: R } = O.getBoundingClientRect(), d = O.cloneNode(!0);
1206
1208
  return d.style.cssText = `
1207
1209
  position:absolute;
1208
- left:${V}px;
1209
- top:${document.documentElement.scrollTop ? B + document.documentElement.scrollTop : B}px;
1210
+ left:${P}px;
1211
+ top:${document.documentElement.scrollTop ? R + document.documentElement.scrollTop : R}px;
1210
1212
  z-index: 999999;
1211
1213
  border: 1px solid #e2e3e5;
1212
1214
  pointer-events: none;
@@ -1224,170 +1226,170 @@ function bn(e, t, n, i) {
1224
1226
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
1225
1227
  `, d.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", d.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(d), d;
1226
1228
  }
1227
- function c(O, V, B) {
1228
- if (O.stopPropagation(), o(), V) {
1229
- if (s = y(O.target), O.dataTransfer) {
1229
+ function u(O, P, R) {
1230
+ if (O.stopPropagation(), i(), P) {
1231
+ if (c = h(O.target), O.dataTransfer) {
1230
1232
  const d = new Image();
1231
1233
  d.src = "", O.dataTransfer.setDragImage(d, 0, 0);
1232
1234
  }
1233
- l = O.pageX, a = O.pageY, setTimeout(() => {
1234
- f.value = B, S.value = !0, V.moving = !0;
1235
+ a = O.pageX, l = O.pageY, setTimeout(() => {
1236
+ m.value = R, S.value = !0, P.moving = !0;
1235
1237
  });
1236
1238
  }
1237
1239
  }
1238
- function g(O, V) {
1239
- if (O.preventDefault(), f.value !== V) {
1240
- const B = v.value[f.value], d = v.value;
1241
- d.splice(f.value, 1), d.splice(V, 0, B), f.value = V, u(O.pageX, O.pageY);
1240
+ function g(O, P) {
1241
+ if (O.preventDefault(), m.value !== P) {
1242
+ const R = v.value[m.value], d = v.value;
1243
+ d.splice(m.value, 1), d.splice(P, 0, R), m.value = P, s(O.pageX, O.pageY);
1242
1244
  }
1243
1245
  }
1244
- function P(O) {
1245
- O.preventDefault(), O.dataTransfer && (O.dataTransfer.dropEffect = "move"), u(O.pageX, O.pageY);
1246
+ function I(O) {
1247
+ O.preventDefault(), O.dataTransfer && (O.dataTransfer.dropEffect = "move"), s(O.pageX, O.pageY);
1246
1248
  }
1247
- function R(O, V) {
1248
- V && (V.moving = !1, s && (document.body.removeChild(s), s = null)), v.value.forEach((B, d) => {
1249
- B.__fv_index__ = d;
1250
- }), S.value = !1, r(), b.value = V.raw.__fv_index__, T.value = V.raw.__fv_index__, p.value = V.raw[m.value], t.emit("change", v.value), t.emit("activeChange", [V.raw]);
1249
+ function E(O, P) {
1250
+ P && (P.moving = !1, c && (document.body.removeChild(c), c = null)), v.value.forEach((R, d) => {
1251
+ R.__fv_index__ = d;
1252
+ }), S.value = !1, r(), y.value = P.raw.__fv_index__, k.value = P.raw.__fv_index__, p.value = P.raw[f.value], t.emit("change", v.value), t.emit("activeChange", [P.raw]);
1251
1253
  }
1252
1254
  return {
1253
- dragstart: c,
1255
+ dragstart: u,
1254
1256
  dragenter: g,
1255
- dragover: P,
1256
- dragend: R,
1257
+ dragover: I,
1258
+ dragend: E,
1257
1259
  isDragging: S
1258
1260
  };
1259
1261
  }
1260
- function Sn(e, t, n, i, m, v) {
1261
- const f = w(e.idField), S = w(e.disableField), T = w(e.draggable);
1262
- w(e.itemClass);
1263
- const p = w(e.selection.multiSelect ?? !1), b = w(e.selection.multiSelectMode), { isDragging: r } = i, { activeIndex: o, focusedItemId: s, hoverIndex: l } = m, { clearSelection: a, getSelectedItems: u, toggleSelectItem: y, currentSelectedDataId: c } = v, g = w(u()), P = (k) => g.value.length === 0 ? !1 : g.value.some((F) => {
1264
- let M = "";
1265
- return F.data ? M = F.data[f.value] : M = F[f.value], M === k;
1262
+ function Sn(e, t, n, o, f, v) {
1263
+ const m = F(e.idField), S = F(e.disableField), k = F(e.draggable);
1264
+ F(e.itemClass);
1265
+ const p = F(e.selection.multiSelect ?? !1), y = F(e.selection.multiSelectMode), { isDragging: r } = o, { activeIndex: i, focusedItemId: c, hoverIndex: a } = f, { clearSelection: l, getSelectedItems: s, toggleSelectItem: h, currentSelectedDataId: u } = v, g = F(s()), I = (b) => g.value.length === 0 ? !1 : g.value.some((w) => {
1266
+ let V = "";
1267
+ return w.data ? V = w.data[m.value] : V = w[m.value], V === b;
1266
1268
  });
1267
- function R() {
1268
- g.value = u();
1269
+ function E() {
1270
+ g.value = s();
1269
1271
  }
1270
- function O(k, F) {
1271
- return k.raw[f.value] != null ? k.raw[f.value] : "";
1272
+ function O(b, w) {
1273
+ return b.raw[m.value] != null ? b.raw[m.value] : "";
1272
1274
  }
1273
- function V(k, F) {
1274
- const M = {
1275
+ function P(b, w) {
1276
+ const V = {
1275
1277
  "f-list-view-group-item": !0,
1276
- "f-list-view-draggable-item": T.value,
1277
- "f-un-click": !k.checked,
1278
- "f-un-select": !!k.raw[S.value],
1278
+ "f-list-view-draggable-item": k.value,
1279
+ "f-un-click": !b.checked,
1280
+ "f-un-select": !!b.raw[S.value],
1279
1281
  "f-listview-active": (
1280
1282
  // 多选
1281
- p.value && P(O(k)) || // 单选
1282
- !p.value && k.raw[f.value] === c.value
1283
+ p.value && I(O(b)) || // 单选
1284
+ !p.value && b.raw[m.value] === u.value
1283
1285
  ),
1284
- "f-listview-hover": !r.value && F === l.value,
1285
- moving: !!k.moving
1286
+ "f-listview-hover": !r.value && w === a.value,
1287
+ moving: !!b.moving
1286
1288
  };
1287
1289
  if (typeof e.itemClass == "string")
1288
- return re(M, e.itemClass);
1290
+ return re(V, e.itemClass);
1289
1291
  if (typeof e.itemClass == "function") {
1290
- const A = e.itemClass(k);
1291
- return re(M, A);
1292
+ const j = e.itemClass(b);
1293
+ return re(V, j);
1292
1294
  }
1293
- return M;
1295
+ return V;
1294
1296
  }
1295
- function B(k, F) {
1296
- const M = (
1297
+ function R(b, w) {
1298
+ const V = (
1297
1299
  // 多选
1298
- p.value && P(O(k)) || // 单选
1299
- !p.value && k.raw[f.value] === c.value
1300
- ), A = {};
1301
- if (M && (A.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
1302
- return me(A, e.itemStyle);
1300
+ p.value && I(O(b)) || // 单选
1301
+ !p.value && b.raw[m.value] === u.value
1302
+ ), j = {};
1303
+ if (V && (j.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
1304
+ return me(j, e.itemStyle);
1303
1305
  if (typeof e.itemStyle == "function") {
1304
- const L = e.itemStyle(k);
1305
- return me(A, L);
1306
+ const D = e.itemStyle(b);
1307
+ return me(j, D);
1306
1308
  }
1307
- return A;
1309
+ return j;
1308
1310
  }
1309
- const d = D(() => !p.value);
1310
- function I(k, F, M) {
1311
- k.checked = M, !k.raw[S.value] && (d.value && (s.value = k.raw[f.value]), y(k));
1311
+ const d = L(() => !p.value);
1312
+ function M(b, w, V) {
1313
+ b.checked = V, !b.raw[S.value] && (d.value && (c.value = b.raw[m.value]), h(b));
1312
1314
  }
1313
- const j = D(() => p.value && b.value === "OnCheckClearByClick"), h = D(() => !p.value || p.value && (b.value === "OnCheckAndClick" || b.value === "OnClick"));
1314
- function E(k, F, M) {
1315
- if (k.raw[S.value]) {
1316
- M == null || M.preventDefault(), M == null || M.stopPropagation();
1315
+ const A = L(() => p.value && y.value === "OnCheckClearByClick"), T = L(() => !p.value || p.value && (y.value === "OnCheckAndClick" || y.value === "OnClick"));
1316
+ function B(b, w, V) {
1317
+ if (b.raw[S.value]) {
1318
+ V == null || V.preventDefault(), V == null || V.stopPropagation();
1317
1319
  return;
1318
1320
  }
1319
- s.value = k.raw[f.value], o.value = F, j.value && a(), h.value && (y(k), R()), t.emit("clickItem", { data: g.value, index: F, dataItem: k.raw }), t.emit("activeChange", g.value);
1321
+ c.value = b.raw[m.value], i.value = w, A.value && l(), T.value && (h(b), E()), t.emit("clickItem", { data: g.value, index: w, dataItem: b.raw }), t.emit("activeChange", g.value);
1320
1322
  }
1321
1323
  return {
1322
1324
  getKey: O,
1323
1325
  selectedItems: g,
1324
- listViewItemClass: V,
1325
- listViewItemStyle: B,
1326
- updateSelectedItems: R,
1327
- onCheckItem: I,
1328
- onClickItem: E
1326
+ listViewItemClass: P,
1327
+ listViewItemStyle: R,
1328
+ updateSelectedItems: E,
1329
+ onCheckItem: M,
1330
+ onClickItem: B
1329
1331
  };
1330
1332
  }
1331
- const Me = /* @__PURE__ */ q({
1333
+ const Be = /* @__PURE__ */ q({
1332
1334
  name: "FListView",
1333
1335
  props: un,
1334
1336
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
1335
1337
  setup(e, t) {
1336
- const n = w(), i = w(!0), m = w(!1), v = w([]), f = 0, S = w(e.columns), T = Ue(e, t), p = Xe(e), b = Ye(e), r = Je(e, p), o = Qe(e, /* @__PURE__ */ new Map(), T, b, p), s = Ze(e, o, p, v, t), l = dn(e, n), a = Ke(e, o), u = D(() => o.dataView.value.length), y = et(e, t, s, p), c = tt(e, t, p, y, v), g = nt(e), P = ot(e, {}, g), R = it(e, o, c, b, p, g, P), O = rt(e, p, P, R), V = lt(e, p, P, R), B = at(e, S, o, u, f, R, O, V), {
1338
+ const n = F(), o = F(!0), f = F(!1), v = F([]), m = 0, S = F(e.columns), k = Ue(e, t), p = Xe(e), y = Ye(e), r = Je(e, p), i = Qe(e, /* @__PURE__ */ new Map(), k, y, p), c = Ze(e, i, p, v, t), a = dn(e, n), l = Ke(e, i), s = L(() => i.dataView.value.length), h = et(e, t, c, p), u = tt(e, t, p, h, v), g = nt(e), I = ot(e, {}, g), E = it(e, i, u, y, p, g, I), O = rt(e, p, I, E), P = lt(e, p, I, E), R = at(e, S, i, s, m, E, O, P), {
1337
1339
  getVisualData: d
1338
- } = B;
1339
- v.value = d(0, u.value + f - 1);
1340
- const I = D(() => {
1340
+ } = R;
1341
+ v.value = d(0, s.value + m - 1);
1342
+ const M = L(() => {
1341
1343
  const $ = {
1342
1344
  "f-list-view": !0,
1343
1345
  "f-list-view-multiple": e.multiSelect
1344
1346
  };
1345
1347
  return e.size !== "default" && ($[`${e.size}-item`] = !0), re($, e.customClass);
1346
- }), j = D(() => !!t.slots.footer || i.value);
1347
- function h() {
1348
+ }), A = L(() => !!t.slots.footer || o.value);
1349
+ function T() {
1348
1350
  return e.header === "SearchBar" ? ge : e.header === "ContentHeader" ? hn : ge;
1349
1351
  }
1350
- const E = h(), {
1351
- renderHeader: k
1352
- } = E(e, t, l), F = yn(), M = bn(e, t, o, F), A = Sn(e, t, v, M, F, s), {
1353
- renderListArea: L
1354
- } = gn(e, t, v, o, r, F, s, B, A, M);
1352
+ const B = T(), {
1353
+ renderHeader: b
1354
+ } = B(e, t, a), w = yn(), V = bn(e, t, i, w), j = Sn(e, t, v, V, w, c), {
1355
+ renderListArea: D
1356
+ } = gn(e, t, v, i, r, w, c, R, j, V);
1355
1357
  function x($) {
1356
- l.search($);
1358
+ a.search($);
1357
1359
  }
1358
1360
  function H($) {
1359
- $ && (o.load($), v.value = d(0, u.value + f - 1));
1361
+ $ && (i.load($), v.value = d(0, s.value + m - 1));
1360
1362
  }
1361
1363
  function _() {
1362
- s.clearSelection(), F.clearActiveItem();
1364
+ c.clearSelection(), w.clearActiveItem();
1363
1365
  }
1364
1366
  function K() {
1365
- return A.selectedItems.value;
1367
+ return j.selectedItems.value;
1366
1368
  }
1367
1369
  function ee() {
1368
- return A.selectedItems.value.map(($) => $[p.idField.value]);
1370
+ return j.selectedItems.value.map(($) => $[p.idField.value]);
1369
1371
  }
1370
1372
  function X($) {
1371
- s.selectedValues.value = $, A.updateSelectedItems();
1373
+ c.selectedValues.value = $, j.updateSelectedItems();
1372
1374
  }
1373
1375
  function Y() {
1374
- return s.currentSelectedDataId.value;
1376
+ return c.currentSelectedDataId.value;
1375
1377
  }
1376
1378
  function N($) {
1377
- y.activeRowById($);
1379
+ h.activeRowById($);
1378
1380
  }
1379
1381
  function te($) {
1380
1382
  const z = p.idField.value, W = v.value.find((ne) => ne.raw[z] === $), J = v.value.findIndex((ne) => ne.raw[z] === $);
1381
- W && J > -1 && A.onClickItem(W, J);
1383
+ W && J > -1 && j.onClickItem(W, J);
1382
1384
  }
1383
1385
  function Re($) {
1384
1386
  const z = p.idField.value, W = v.value.find((J) => J.raw[z] === $);
1385
- W && y.changeRow(W);
1387
+ W && h.changeRow(W);
1386
1388
  }
1387
1389
  function Ee($) {
1388
- a.updatePagination($);
1390
+ l.updatePagination($);
1389
1391
  }
1390
- function je($) {
1392
+ function De($) {
1391
1393
  return v.value.filter((z) => $.includes(z.raw[e.idField]));
1392
1394
  }
1393
1395
  t.expose({
@@ -1401,40 +1403,36 @@ const Me = /* @__PURE__ */ q({
1401
1403
  getCurrentRowId: Y,
1402
1404
  clickRowItemById: te,
1403
1405
  updatePagination: Ee,
1404
- getVisibleDataByIds: je,
1406
+ getVisibleDataByIds: De,
1405
1407
  selectRowById: Re
1406
1408
  });
1407
- function Le($) {
1409
+ function je($) {
1408
1410
  e.multiSelect && ($.preventDefault(), $.stopPropagation());
1409
1411
  }
1410
1412
  G(() => e.selectionValues, ($, z) => {
1411
1413
  $ !== z && X($);
1412
1414
  });
1413
- const Ae = st(e, s), {
1414
- sidebarWidth: De,
1415
+ const Le = st(e, c), {
1416
+ sidebarWidth: $e,
1415
1417
  showSidebarCheckBox: zn
1416
- } = Ae, $e = ct(e, t), {
1418
+ } = Le, Ae = ct(e, t), {
1417
1419
  applyColumnSorter: qn,
1418
1420
  columnContext: xe,
1419
1421
  updateColumnRenderContext: Wn
1420
- } = $e, He = ut(e, o, v, xe, B, u, f, De, c), {
1421
- shouldRenderPagination: Un
1422
- } = a, {
1423
- renderDataGridPagination: Xn
1424
- } = dt(e, t, o, He, a, s);
1425
- return () => C("div", {
1426
- class: I.value,
1427
- onClick: Le
1428
- }, [k(), C("div", {
1422
+ } = Ae, He = ut(e, i, v, xe, R, s, m, $e, u);
1423
+ return dt(e, t, i, He, l, c), () => C("div", {
1424
+ class: M.value,
1425
+ onClick: je
1426
+ }, [b(), C("div", {
1429
1427
  ref: n,
1430
1428
  class: "f-list-view-content",
1431
1429
  onMouseover: () => {
1432
- m.value = !0;
1430
+ f.value = !0;
1433
1431
  },
1434
1432
  onMouseleave: () => {
1435
- m.value = !1;
1433
+ f.value = !1;
1436
1434
  }
1437
- }, [L()]), j.value && C("div", {
1435
+ }, [D()]), A.value && C("div", {
1438
1436
  class: "f-list-view-footer"
1439
1437
  }, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
1440
1438
  }
@@ -1465,24 +1463,24 @@ const Me = /* @__PURE__ */ q({
1465
1463
  customClass: { type: Object, default: {} }
1466
1464
  };
1467
1465
  function wn(e, t) {
1468
- function n(i) {
1469
- i.stopPropagation(), e.disabled || t.emit("click", i);
1466
+ function n(o) {
1467
+ o.stopPropagation(), e.disabled || t.emit("click", o);
1470
1468
  }
1471
1469
  return {
1472
1470
  onClickButton: n
1473
1471
  };
1474
1472
  }
1475
1473
  function Fn(e) {
1476
- const t = D(() => {
1477
- const i = {
1474
+ const t = L(() => {
1475
+ const o = {
1478
1476
  "f-icon": !0
1479
1477
  };
1480
1478
  if (e.icon) {
1481
- const m = e.icon.trim().split(" ");
1482
- m && m.length && m.reduce((v, f) => (v[f] = !0, v), i);
1479
+ const f = e.icon.trim().split(" ");
1480
+ f && f.length && f.reduce((v, m) => (v[m] = !0, v), o);
1483
1481
  }
1484
- return i;
1485
- }), n = D(() => !!(e.icon && e.icon.trim()));
1482
+ return o;
1483
+ }), n = L(() => !!(e.icon && e.icon.trim()));
1486
1484
  return { iconClass: t, shouldShowIcon: n };
1487
1485
  }
1488
1486
  const Ie = /* @__PURE__ */ q({
@@ -1493,29 +1491,29 @@ const Ie = /* @__PURE__ */ q({
1493
1491
  const {
1494
1492
  onClickButton: n
1495
1493
  } = wn(e, t), {
1496
- iconClass: i,
1497
- shouldShowIcon: m
1498
- } = Fn(e), v = D(() => {
1499
- const f = {
1494
+ iconClass: o,
1495
+ shouldShowIcon: f
1496
+ } = Fn(e), v = L(() => {
1497
+ const m = {
1500
1498
  btn: !0,
1501
1499
  "btn-lg": e.size === "large",
1502
1500
  "btn-md": e.size !== "large" && e.size !== "small",
1503
1501
  "btn-sm": e.size === "small",
1504
- "btn-icontext": m.value
1502
+ "btn-icontext": f.value
1505
1503
  };
1506
- return f[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((S, T) => (S[T] = e.customClass[T], S), f), f;
1504
+ return m[`btn-${e.type}`] = !0, e.customClass && Object.keys(e.customClass).reduce((S, k) => (S[k] = e.customClass[k], S), m), m;
1507
1505
  });
1508
1506
  return () => C("button", {
1509
1507
  class: v.value,
1510
1508
  disabled: e.disabled,
1511
- onClick: (f) => n(f)
1512
- }, [m.value && C("i", {
1513
- class: i.value
1509
+ onClick: (m) => n(m)
1510
+ }, [f.value && C("i", {
1511
+ class: o.value
1514
1512
  }, null), t.slots.default && t.slots.default()]);
1515
1513
  }
1516
1514
  }), Tn = /* @__PURE__ */ new Map([
1517
1515
  ["appearance", mt]
1518
- ]), kn = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/combo-list.schema.json", Vn = "combo-list", Pn = "A Farris Input Component", Mn = "object", In = {
1516
+ ]), kn = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/combo-list.schema.json", Vn = "combo-list", Pn = "A Farris Input Component", Bn = "object", In = {
1519
1517
  id: {
1520
1518
  description: "The unique identifier for a combo list",
1521
1519
  type: "string"
@@ -1694,8 +1692,12 @@ const Ie = /* @__PURE__ */ q({
1694
1692
  description: "启用高亮搜索",
1695
1693
  type: "boolean",
1696
1694
  default: !1
1695
+ },
1696
+ onChange: {
1697
+ description: "",
1698
+ type: "string"
1697
1699
  }
1698
- }, Bn = [
1700
+ }, Mn = [
1699
1701
  "type"
1700
1702
  ], Rn = [
1701
1703
  "id",
@@ -1707,12 +1709,12 @@ const Ie = /* @__PURE__ */ q({
1707
1709
  $id: On,
1708
1710
  title: Vn,
1709
1711
  description: Pn,
1710
- type: Mn,
1712
+ type: Bn,
1711
1713
  properties: In,
1712
- required: Bn,
1714
+ required: Mn,
1713
1715
  ignore: Rn
1714
1716
  };
1715
- function jn(e, t, n) {
1717
+ function Dn(e, t, n) {
1716
1718
  return t;
1717
1719
  }
1718
1720
  const ue = {
@@ -1883,9 +1885,9 @@ const ue = {
1883
1885
  enableHighlightSearch: { type: Boolean, default: !0 },
1884
1886
  minPanelWidth: { type: Number, default: 160 },
1885
1887
  popupOnClick: { type: Boolean, default: !0 }
1886
- }, Ln = Object.assign({}, ue, {
1888
+ }, jn = Object.assign({}, ue, {
1887
1889
  readonly: {}
1888
- }), Be = vt(ue, En, Tn, jn), An = {
1890
+ }), Me = vt(ue, En, Tn, Dn), Ln = {
1889
1891
  dataSource: { type: Array, default: [] },
1890
1892
  enableSearch: { type: Boolean, default: !1 },
1891
1893
  idField: { type: String, default: "id" },
@@ -1906,12 +1908,12 @@ const ue = {
1906
1908
  },
1907
1909
  // 搜索启用高亮
1908
1910
  enableHighlightSearch: { type: Boolean, default: !0 }
1909
- }, Dn = /* @__PURE__ */ q({
1911
+ }, $n = /* @__PURE__ */ q({
1910
1912
  name: "FComboListContainer",
1911
- props: An,
1913
+ props: Ln,
1912
1914
  emits: ["selectionChange"],
1913
1915
  setup(e, t) {
1914
- const n = w(), i = w(e.dataSource), m = w([]), v = w(e.separator), f = w(e.width), S = w(e.maxHeight), T = w(String(e.selectedValues).split(v.value)), p = D(() => e.multiSelect), b = D(() => ({
1916
+ const n = F(), o = F(e.dataSource), f = F([]), v = F(e.separator), m = F(e.width), S = F(e.maxHeight), k = F(String(e.selectedValues).split(v.value)), p = L(() => e.multiSelect), y = L(() => ({
1915
1917
  enableSelectRow: !0,
1916
1918
  multiSelect: e.multiSelect,
1917
1919
  multiSelectMode: "OnCheckAndClick",
@@ -1920,46 +1922,46 @@ const ue = {
1920
1922
  showSelection: !0
1921
1923
  }));
1922
1924
  G(e.dataSource, () => {
1923
- i.value = e.dataSource;
1924
- }), D(() => e.enableSearch ? "SearchBar" : "ContentHeader");
1925
- const r = D(() => {
1926
- const u = {};
1927
- return f.value !== void 0 && (u.width = `${f.value}px`), S.value !== void 0 && S.value > 0 && (u.maxHeight = `${S.value}px`), u;
1925
+ o.value = e.dataSource;
1926
+ }), L(() => e.enableSearch ? "SearchBar" : "ContentHeader");
1927
+ const r = L(() => {
1928
+ const s = {};
1929
+ return m.value !== void 0 && (s.width = `${m.value}px`), S.value !== void 0 && S.value > 0 && (s.maxHeight = `${S.value}px`), s;
1928
1930
  });
1929
- function o(u) {
1930
- n.value.search(u);
1931
+ function i(s) {
1932
+ n.value.search(s);
1931
1933
  }
1932
- function s(u) {
1933
- m.value = u.map((y) => Object.assign({}, y)), T.value = u.map((y) => y[e.idField]), t.emit("selectionChange", m.value);
1934
+ function c(s) {
1935
+ f.value = s.map((h) => Object.assign({}, h)), k.value = s.map((h) => h[e.idField]), t.emit("selectionChange", f.value);
1934
1936
  }
1935
- function l(u) {
1937
+ function a(s) {
1936
1938
  if (e.enableHighlightSearch)
1937
1939
  return;
1938
- let y = [];
1940
+ let h = [];
1939
1941
  const {
1940
- searchOption: c
1942
+ searchOption: u
1941
1943
  } = e;
1942
- typeof c == "function" ? y = i.value.filter((g) => c(u, g)) : y = i.value.filter((g) => g[e.valueField].indexOf(u) > -1 || g[e.textField].indexOf(u) > -1), n.value.updateDataSource(y);
1944
+ typeof u == "function" ? h = o.value.filter((g) => u(s, g)) : h = o.value.filter((g) => g[e.valueField].indexOf(s) > -1 || g[e.textField].indexOf(s) > -1), n.value.updateDataSource(h);
1943
1945
  }
1944
- G([() => e.selectedValues], ([u]) => {
1945
- e.multiSelect ? T.value = u.split(v.value) : T.value = [u];
1946
+ G([() => e.selectedValues], ([s]) => {
1947
+ e.multiSelect ? k.value = s.split(v.value) : k.value = [s];
1946
1948
  });
1947
- function a(u) {
1948
- n.value.activeRowById(u);
1949
+ function l(s) {
1950
+ n.value.activeRowById(s);
1949
1951
  }
1950
1952
  return le(() => {
1951
- var u, y;
1953
+ var s, h;
1952
1954
  if (!e.multiSelect) {
1953
- const c = (u = T.value) == null ? void 0 : u[0];
1954
- let g = c;
1955
- if (!ze(c)) {
1956
- const P = typeof c, R = typeof ((y = i.value[0]) == null ? void 0 : y[e.valueField || e.idField]);
1957
- R === "number" && P !== R && (g = Number(c)), R === "boolean" && P !== R && (g = c === "true" ? !0 : c === "false" ? !1 : c), a(g);
1955
+ const u = (s = k.value) == null ? void 0 : s[0];
1956
+ let g = u;
1957
+ if (!ze(u)) {
1958
+ const I = typeof u, E = typeof ((h = o.value[0]) == null ? void 0 : h[e.valueField || e.idField]);
1959
+ E === "number" && I !== E && (g = Number(u)), E === "boolean" && I !== E && (g = u === "true" ? !0 : u === "false" ? !1 : u), l(g);
1958
1960
  }
1959
1961
  }
1960
1962
  }), t.expose({
1961
- search: o,
1962
- activeRowById: a
1963
+ search: i,
1964
+ activeRowById: l
1963
1965
  }), () => C("div", {
1964
1966
  class: "f-combo-list-container",
1965
1967
  style: r.value
@@ -1970,72 +1972,72 @@ const ue = {
1970
1972
  itemContentClass: "text-truncate",
1971
1973
  header: "ContentHeader",
1972
1974
  headerClass: "f-combo-list-search-box",
1973
- data: i.value,
1975
+ data: o.value,
1974
1976
  idField: e.idField,
1975
1977
  textField: e.textField,
1976
1978
  titleField: e.titleField,
1977
1979
  multiSelect: e.multiSelect,
1978
- selection: b.value,
1980
+ selection: y.value,
1979
1981
  enableHighlightSearch: e.enableHighlightSearch,
1980
- selectionValues: T.value,
1981
- onSelectionUpdate: s,
1982
- onAfterSearch: l
1982
+ selectionValues: k.value,
1983
+ onSelectionUpdate: c,
1984
+ onAfterSearch: a
1983
1985
  }, null)]);
1984
1986
  }
1985
1987
  });
1986
- function $n(e) {
1987
- const { t } = ae(), n = w(""), i = w(e.modelValue), m = w(e.data || []), v = w(e.editable);
1988
- function f(o) {
1989
- const s = e.multiSelect ? String(o).split(e.separator) : [String(o)], l = s.map((y) => [y, !0]), a = new Map(l);
1990
- return m.value.filter((y) => a.has(String(y[e.valueField]))).sort((y, c) => {
1991
- const g = s.indexOf(y[e.valueField]), P = s.indexOf(c[e.valueField]);
1992
- return g - P;
1988
+ function An(e) {
1989
+ const { t } = ae(), n = F(""), o = F(e.modelValue), f = F(e.data || []), v = F(e.editable);
1990
+ function m(i) {
1991
+ const c = e.multiSelect ? String(i).split(e.separator) : [String(i)], a = c.map((h) => [h, !0]), l = new Map(a);
1992
+ return f.value.filter((h) => l.has(String(h[e.valueField]))).sort((h, u) => {
1993
+ const g = c.indexOf(h[e.valueField]), I = c.indexOf(u[e.valueField]);
1994
+ return g - I;
1993
1995
  });
1994
1996
  }
1995
- function S(o) {
1996
- const s = f(o).map((l) => l[e.textField]).join(e.separator);
1997
- n.value = v.value ? s || o : s;
1997
+ function S(i) {
1998
+ const c = m(i).map((a) => a[e.textField]).join(e.separator);
1999
+ n.value = v.value ? c || i : c;
1998
2000
  }
1999
- function T(o) {
2001
+ function k(i) {
2000
2002
  if (e.multiSelect) {
2001
- const s = o.split(e.separator).map((a) => [a, !0]), l = new Map(s);
2002
- return m.value.filter((a) => l.has(a[e.textField]));
2003
+ const c = i.split(e.separator).map((l) => [l, !0]), a = new Map(c);
2004
+ return f.value.filter((l) => a.has(l[e.textField]));
2003
2005
  }
2004
- return m.value.filter((s) => "" + s[e.textField] === o);
2006
+ return f.value.filter((c) => "" + c[e.textField] === i);
2005
2007
  }
2006
- function p(o) {
2007
- const s = {};
2008
- return s[e.idField] = o, s[e.textField] = o, [s];
2008
+ function p(i) {
2009
+ const c = {};
2010
+ return c[e.idField] = i, c[e.textField] = i, [c];
2009
2011
  }
2010
- function b(o) {
2011
- let s = T(o);
2012
- const l = s && s.length > 0;
2013
- return v.value && !l && (s = p(o)), s;
2012
+ function y(i) {
2013
+ let c = k(i);
2014
+ const a = c && c.length > 0;
2015
+ return v.value && !a && (c = p(i)), c;
2014
2016
  }
2015
2017
  function r() {
2016
- const { url: o, method: s = "GET", headers: l = { "Content-Type": "application/json;charset=utf-8;" }, body: a = null } = e.remote, u = s.toLowerCase() === "get" ? { method: s, headers: l } : { method: s, headers: l, body: a };
2017
- let y = !1;
2018
- fetch(new Request(o, u)).then((c) => {
2019
- var P, R;
2020
- if (c.status === 200)
2021
- return y = !!((R = (P = c.headers) == null ? void 0 : P.get("content-type")) != null && R.includes("application/json")), y ? c.text() : c.json();
2022
- throw c.status === 405 ? new Error(t("comboList.remoteError")) : new Error(c.statusText);
2023
- }).then((c) => {
2024
- c.length && (m.value = y ? JSON.parse(c) : c);
2025
- }).catch((c) => {
2026
- console.warn(c);
2018
+ const { url: i, method: c = "GET", headers: a = { "Content-Type": "application/json;charset=utf-8;" }, body: l = null } = e.remote, s = c.toLowerCase() === "get" ? { method: c, headers: a } : { method: c, headers: a, body: l };
2019
+ let h = !1;
2020
+ fetch(new Request(i, s)).then((u) => {
2021
+ var I, E;
2022
+ if (u.status === 200)
2023
+ return h = !!((E = (I = u.headers) == null ? void 0 : I.get("content-type")) != null && E.includes("application/json")), h ? u.text() : u.json();
2024
+ throw u.status === 405 ? new Error(t("comboList.remoteError")) : new Error(u.statusText);
2025
+ }).then((u) => {
2026
+ u.length && (f.value = h ? JSON.parse(u) : u);
2027
+ }).catch((u) => {
2028
+ console.warn(u);
2027
2029
  });
2028
2030
  }
2029
2031
  return e.remote && r(), G(() => e.data, () => {
2030
- m.value = e.data;
2031
- }), G([m], ([o]) => {
2032
+ f.value = e.data;
2033
+ }), G([f], ([i]) => {
2032
2034
  if (e.modelValue != null) {
2033
- const s = o.find((l) => l[e.valueField] === e.modelValue);
2034
- s && (n.value = s[e.textField]);
2035
+ const c = i.find((a) => a[e.valueField] === e.modelValue);
2036
+ c && (n.value = c[e.textField]);
2035
2037
  }
2036
- }), G(() => e.modelValue, (o) => {
2037
- i.value = o, S(o);
2038
- }), S(e.modelValue), { dataSource: m, displayText: n, editable: v, modelValue: i, getItemsByDisplayText: T, getItemsByValue: f, getSelectedItemsByDisplayText: b };
2038
+ }), G(() => e.modelValue, (i) => {
2039
+ o.value = i, S(i);
2040
+ }), S(e.modelValue), { dataSource: f, displayText: n, editable: v, modelValue: o, getItemsByDisplayText: k, getItemsByValue: m, getSelectedItemsByDisplayText: y };
2039
2041
  }
2040
2042
  const Q = /* @__PURE__ */ q({
2041
2043
  name: "FComboList",
@@ -2044,85 +2046,89 @@ const Q = /* @__PURE__ */ q({
2044
2046
  setup(e, t) {
2045
2047
  const {
2046
2048
  t: n
2047
- } = ae(), i = w(), m = w(), v = w(e.disabled || e.readonly), f = w(e.enableClear), S = w(e.enableSearch), T = w(e.readonly), {
2049
+ } = ae(), o = F(), f = F(), v = F(e.disabled || e.readonly), m = F(e.enableClear), S = F(e.enableSearch), k = F(e.readonly), {
2048
2050
  dataSource: p,
2049
- displayText: b,
2051
+ displayText: y,
2050
2052
  editable: r,
2051
- modelValue: o,
2052
- getItemsByValue: s
2053
- } = $n(e), l = w(e.dropDownIcon);
2054
- l.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (l.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
2055
- const a = D(() => e.multiSelect), u = D(() => m.value ? m.value.elementRef.getBoundingClientRect().width : 0);
2056
- function y() {
2057
- !a.value && m.value && m.value.hidePopup();
2053
+ modelValue: i,
2054
+ getSelectedItemsByDisplayText: c,
2055
+ getItemsByDisplayText: a,
2056
+ getItemsByValue: l
2057
+ } = An(e), s = F(e.dropDownIcon);
2058
+ s.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (s.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
2059
+ const h = L(() => e.multiSelect), u = L(() => f.value ? f.value.elementRef.getBoundingClientRect().width : 0);
2060
+ function g() {
2061
+ !h.value && f.value && f.value.hidePopup();
2058
2062
  }
2059
- function c(j) {
2060
- b.value = j.map((E) => E[e.textField]).join(e.separator);
2061
- let h = "";
2062
- j.length === 1 ? h = j[0][e.valueField] : h = j.map((E) => E[e.valueField]).join(e.separator), o.value !== h && (o.value = h, t.emit("update:modelValue", o.value), t.emit("change", j, o.value));
2063
+ function I(B) {
2064
+ y.value = B.map((w) => w[e.textField]).join(e.separator);
2065
+ let b = "";
2066
+ B.length === 1 ? b = B[0][e.valueField] : b = B.map((w) => w[e.valueField]).join(e.separator), i.value !== b && (i.value = b, t.emit("update:modelValue", i.value), t.emit("change", B, i.value));
2063
2067
  }
2064
- function g() {
2065
- const j = s(o.value);
2066
- c(j);
2068
+ function E() {
2069
+ const B = l(i.value);
2070
+ I(B);
2067
2071
  }
2068
- function P() {
2069
- T.value || b.value;
2072
+ function O() {
2073
+ k.value || y.value;
2070
2074
  }
2071
- function R(j) {
2072
- var h;
2073
- o.value = "", (h = i.value) == null || h.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
2075
+ function P(B) {
2076
+ var b;
2077
+ i.value = "", (b = o.value) == null || b.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
2074
2078
  }
2075
- function O(j) {
2076
- var h, E;
2077
- e.enableSearch && e.enableHighlightSearch && ((h = i.value) == null || h.search(j)), (E = i.value) == null || E.activeRowById(j), t.emit("change", [o.value], o.value);
2079
+ function R(B) {
2080
+ var b, w;
2081
+ e.enableSearch && e.enableHighlightSearch && ((b = o.value) == null || b.search(B)), (w = o.value) == null || w.activeRowById(B), t.emit("change", [i.value], i.value);
2078
2082
  }
2079
- function V(j) {
2083
+ function d(B) {
2080
2084
  if (e.multiSelect) {
2081
- const h = s(o.value), k = h.map((F) => F[e.idField || e.valueField]).join(e.separator);
2082
- o.value !== k && (o.value = k, t.emit("update:modelValue", o.value), t.emit("change", h, o.value));
2085
+ const b = a(B);
2086
+ e.viewType;
2087
+ const V = b.map((j) => j[e.idField || e.valueField]).join(e.separator);
2088
+ i.value !== V && (i.value = V, t.emit("update:modelValue", i.value), t.emit("change", b, i.value));
2083
2089
  }
2084
2090
  }
2085
- function B() {
2086
- return b.value;
2091
+ function M() {
2092
+ return y.value;
2087
2093
  }
2088
- function d(j) {
2094
+ function A(B) {
2089
2095
  const {
2090
- value: h
2091
- } = j.target;
2092
- O(h), t.emit("input", h);
2096
+ value: b
2097
+ } = B.target;
2098
+ R(b), t.emit("input", b);
2093
2099
  }
2094
- function I() {
2095
- m.value.hidePopup();
2100
+ function T() {
2101
+ f.value.hidePopup();
2096
2102
  }
2097
2103
  return t.expose({
2098
- getDisplayText: B,
2099
- hidePopup: I
2100
- }), G([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([j, h, E, k, F]) => {
2101
- v.value = j, r.value = h, f.value = E, S.value = k, T.value = F;
2104
+ getDisplayText: M,
2105
+ hidePopup: T
2106
+ }), G([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([B, b, w, V, j]) => {
2107
+ v.value = B, r.value = b, m.value = w, S.value = V, k.value = j;
2102
2108
  }), () => C(ft, {
2103
- ref: m,
2109
+ ref: f,
2104
2110
  id: e.id,
2105
2111
  disable: v.value,
2106
- readonly: T.value,
2112
+ readonly: k.value,
2107
2113
  forcePlaceholder: e.forcePlaceholder,
2108
2114
  editable: r.value,
2109
- buttonContent: l.value,
2115
+ buttonContent: s.value,
2110
2116
  placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
2111
- enableClear: f.value,
2117
+ enableClear: m.value,
2112
2118
  maxLength: e.maxLength,
2113
2119
  tabIndex: e.tabIndex,
2114
2120
  enableTitle: e.enableTitle,
2115
2121
  multiSelect: e.multiSelect,
2116
2122
  inputType: e.multiSelect ? e.viewType : "text",
2117
- modelValue: b.value,
2118
- "onUpdate:modelValue": (j) => b.value = j,
2123
+ modelValue: y.value,
2124
+ "onUpdate:modelValue": (B) => y.value = B,
2119
2125
  focusOnCreated: e.focusOnCreated,
2120
2126
  selectOnCreated: e.selectOnCreated,
2121
- onClear: R,
2122
- onClick: P,
2123
- onChange: V,
2124
- onBlur: g,
2125
- onInput: d,
2127
+ onClear: P,
2128
+ onClick: O,
2129
+ onChange: d,
2130
+ onBlur: E,
2131
+ onInput: A,
2126
2132
  beforeOpen: e.beforeOpen,
2127
2133
  placement: e.placement,
2128
2134
  popupMinWidth: e.minPanelWidth,
@@ -2130,22 +2136,22 @@ const Q = /* @__PURE__ */ q({
2130
2136
  popupOnClick: e.popupOnClick,
2131
2137
  limitContentBySpace: !0
2132
2138
  }, {
2133
- default: () => [C(Dn, {
2134
- ref: i,
2139
+ default: () => [C($n, {
2140
+ ref: o,
2135
2141
  idField: e.idField,
2136
2142
  valueField: e.valueField,
2137
2143
  textField: e.textField,
2138
2144
  titleField: e.titleField,
2139
2145
  dataSource: p.value,
2140
- selectedValues: o.value,
2146
+ selectedValues: i.value,
2141
2147
  separator: e.separator,
2142
2148
  multiSelect: e.multiSelect,
2143
2149
  enableSearch: S.value,
2144
2150
  maxHeight: e.maxHeight,
2145
2151
  enableHighlightSearch: e.enableHighlightSearch,
2146
2152
  width: e.fitEditor ? u.value : void 0,
2147
- onSelectionChange: (j) => {
2148
- c(j), y();
2153
+ onSelectionChange: (B) => {
2154
+ I(B), g();
2149
2155
  }
2150
2156
  }, null)]
2151
2157
  });
@@ -2161,7 +2167,7 @@ class xn extends bt {
2161
2167
  super(t, n);
2162
2168
  }
2163
2169
  getCommonEditorProperties(t) {
2164
- var n, i, m, v, f, S;
2170
+ var n, o, f;
2165
2171
  return {
2166
2172
  viewType: {
2167
2173
  visible: !!((n = t.editor) != null && n.multiSelect),
@@ -2177,7 +2183,7 @@ class xn extends bt {
2177
2183
  refreshPanelAfterChanged: !0
2178
2184
  },
2179
2185
  separator: {
2180
- visible: !!((i = t.editor) != null && i.multiSelect) && ((m = t.editor) == null ? void 0 : m.viewType) === "text",
2186
+ visible: !!((o = t.editor) != null && o.multiSelect) && ((f = t.editor) == null ? void 0 : f.viewType) === "text",
2181
2187
  description: "下拉列表启用多选且数据展示类型为文本时的分隔符",
2182
2188
  title: "分隔符",
2183
2189
  type: "enum",
@@ -2195,23 +2201,24 @@ class xn extends bt {
2195
2201
  title: "允许编辑",
2196
2202
  type: "boolean",
2197
2203
  refreshPanelAfterChanged: !0,
2198
- readonly: !!((v = t.editor) != null && v.multiSelect) && (((f = t.editor) == null ? void 0 : f.viewType) === "tag" || !t.editor.viewType)
2199
- },
2200
- enableHighlightSearch: {
2201
- visible: !!((S = t.editor) != null && S.editable),
2202
- description: "编辑状态下启用高亮搜索",
2203
- title: "启用高亮搜索",
2204
- type: "boolean"
2204
+ readonly: !0
2205
+ // readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
2205
2206
  }
2207
+ // enableHighlightSearch: {
2208
+ // visible: !!propertyData.editor?.editable,
2209
+ // description: "编辑状态下启用高亮搜索",
2210
+ // title: "启用高亮搜索",
2211
+ // type: "boolean"
2212
+ // },
2206
2213
  };
2207
2214
  }
2208
2215
  getEditorProperties(t) {
2209
- var v, f;
2216
+ var v, m;
2210
2217
  const n = this;
2211
- let i = "";
2218
+ let o = "";
2212
2219
  if (((v = t == null ? void 0 : t.binding) == null ? void 0 : v.type) === "Form") {
2213
2220
  const S = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
2214
- (f = S == null ? void 0 : S.schemaField) != null && f.type && (i = S.schemaField.type.$type);
2221
+ (m = S == null ? void 0 : S.schemaField) != null && m.type && (o = S.schemaField.type.$type);
2215
2222
  }
2216
2223
  return n.getComponentConfig(t, { type: "combo-list" }, {
2217
2224
  // enableSearch: {
@@ -2290,7 +2297,7 @@ class xn extends bt {
2290
2297
  multiSelect: {
2291
2298
  description: "",
2292
2299
  title: "启用多选",
2293
- visible: !i || i === "StringType",
2300
+ visible: !o || o === "StringType",
2294
2301
  type: "boolean",
2295
2302
  refreshPanelAfterChanged: !0
2296
2303
  },
@@ -2305,33 +2312,33 @@ class xn extends bt {
2305
2312
  }
2306
2313
  },
2307
2314
  ...this.getCommonEditorProperties(t)
2308
- }, (S, T) => {
2309
- if (!S || !T.editor)
2315
+ }, (S, k) => {
2316
+ if (!S || !k.editor)
2310
2317
  return;
2311
2318
  const p = this;
2312
2319
  switch (S.propertyID) {
2313
2320
  case "dataSourceType": {
2314
- S.propertyValue === "static" ? (T.editor.valueField = "value", T.editor.textField = "name", T.editor.remote = null) : S.propertyValue === "dynamic" && (T.editor.remote = { method: "GET" }, T.editor.valueField = "value", T.editor.textField = "name");
2321
+ S.propertyValue === "static" ? (k.editor.valueField = "value", k.editor.textField = "name", k.editor.remote = null) : S.propertyValue === "dynamic" && (k.editor.remote = { method: "GET" }, k.editor.valueField = "value", k.editor.textField = "name");
2315
2322
  break;
2316
2323
  }
2317
2324
  case "data": {
2318
- !p.checkEnumDataReadonly(T) && T.formatter && (T.formatter.data = [...S.propertyValue]);
2325
+ !p.checkEnumDataReadonly(k) && k.formatter && (k.formatter.data = [...S.propertyValue]);
2319
2326
  break;
2320
2327
  }
2321
2328
  case "viewType":
2322
- S.propertyValue === "tag" && (T.editor.editable = !1);
2329
+ S.propertyValue === "tag" && (k.editor.editable = !1);
2323
2330
  }
2324
2331
  });
2325
2332
  }
2326
2333
  getGridFieldEdtiorProperties(t, n) {
2327
- var f, S, T, p;
2328
- const i = this;
2329
- let m = "";
2330
- if (((f = t == null ? void 0 : t.binding) == null ? void 0 : f.type) === "Form") {
2331
- const b = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
2332
- (S = b == null ? void 0 : b.schemaField) != null && S.type && (m = b.schemaField.type.$type);
2333
- }
2334
- return i.getComponentConfig(t, { type: "combo-list" }, {
2334
+ var m, S, k, p;
2335
+ const o = this;
2336
+ let f = "";
2337
+ if (((m = t == null ? void 0 : t.binding) == null ? void 0 : m.type) === "Form") {
2338
+ const y = this.schemaService.getFieldByIDAndVMID(t.binding.field, this.viewModelId);
2339
+ (S = y == null ? void 0 : y.schemaField) != null && S.type && (f = y.schemaField.type.$type);
2340
+ }
2341
+ return o.getComponentConfig(t, { type: "combo-list" }, {
2335
2342
  // editable: {
2336
2343
  // description: "",
2337
2344
  // title: "允许编辑",
@@ -2348,7 +2355,7 @@ class xn extends bt {
2348
2355
  title: "数据",
2349
2356
  type: "array",
2350
2357
  visible: !0,
2351
- ...i.getItemCollectionEditor(t, (T = t.editor) == null ? void 0 : T.valueField, (p = t.editor) == null ? void 0 : p.textField),
2358
+ ...o.getItemCollectionEditor(t, (k = t.editor) == null ? void 0 : k.valueField, (p = t.editor) == null ? void 0 : p.textField),
2352
2359
  // 这个属性,标记当属性变更得时候触发重新更新属性
2353
2360
  refreshPanelAfterChanged: !0
2354
2361
  },
@@ -2367,7 +2374,7 @@ class xn extends bt {
2367
2374
  multiSelect: {
2368
2375
  description: "",
2369
2376
  title: "启用多选",
2370
- visible: m === "StringType",
2377
+ visible: f === "StringType",
2371
2378
  type: "boolean",
2372
2379
  refreshPanelAfterChanged: !0
2373
2380
  },
@@ -2382,33 +2389,33 @@ class xn extends bt {
2382
2389
  }
2383
2390
  },
2384
2391
  ...this.getCommonEditorProperties(t)
2385
- }, (b, r) => {
2386
- if (!b || !r.editor)
2392
+ }, (y, r) => {
2393
+ if (!y || !r.editor)
2387
2394
  return;
2388
- const o = this;
2389
- switch (b.propertyID) {
2395
+ const i = this;
2396
+ switch (y.propertyID) {
2390
2397
  case "dataSourceType": {
2391
- b.propertyValue === "static" ? (r.editor.valueField = "value", r.editor.textField = "name", r.editor.remote = null) : b.propertyValue === "dynamic" && (r.editor.remote = { method: "GET" });
2398
+ y.propertyValue === "static" ? (r.editor.valueField = "value", r.editor.textField = "name", r.editor.remote = null) : y.propertyValue === "dynamic" && (r.editor.remote = { method: "GET" });
2392
2399
  break;
2393
2400
  }
2394
2401
  case "data": {
2395
- !o.checkEnumDataReadonly(r) && r.formatter && (r.formatter.data = [...b.propertyValue]);
2402
+ !i.checkEnumDataReadonly(r) && r.formatter && (r.formatter.data = [...y.propertyValue]);
2396
2403
  break;
2397
2404
  }
2398
2405
  }
2399
2406
  });
2400
2407
  }
2401
- setEditorPropertyRelates(t, n, i) {
2408
+ setEditorPropertyRelates(t, n, o) {
2402
2409
  if (!t || !n.editor)
2403
2410
  return;
2404
- const m = this;
2411
+ const f = this;
2405
2412
  switch (t.propertyID) {
2406
2413
  case "dataSourceType": {
2407
2414
  t.propertyValue === "static" && (n.editor.valueField = "value", n.editor.textField = "name", n.editor.remote = {});
2408
2415
  break;
2409
2416
  }
2410
2417
  case "data": {
2411
- !m.checkEnumDataReadonly(n) && n.formatter && (n.formatter.data = [...t.propertyValue]);
2418
+ !f.checkEnumDataReadonly(n) && n.formatter && (n.formatter.data = [...t.propertyValue]);
2412
2419
  break;
2413
2420
  }
2414
2421
  }
@@ -2416,31 +2423,31 @@ class xn extends bt {
2416
2423
  /**
2417
2424
  * 切换绑定属性
2418
2425
  */
2419
- changeBindingField(t, n, i) {
2426
+ changeBindingField(t, n, o) {
2420
2427
  var v;
2421
2428
  super.changeBindingField(t, n);
2422
- const m = i;
2423
- t.editor && ((v = m == null ? void 0 : m.type) == null ? void 0 : v.$type) === qe.EnumType && (t.editor.data = m.type.enumValues || []);
2429
+ const f = o;
2430
+ t.editor && ((v = f == null ? void 0 : f.type) == null ? void 0 : v.$type) === qe.EnumType && (t.editor.data = f.type.enumValues || []);
2424
2431
  }
2425
2432
  }
2426
2433
  function Hn(e, t) {
2427
2434
  const n = e.schema;
2428
- function i(m, v) {
2429
- return new xn(m, t).getPropertyConfig(n, v);
2435
+ function o(f, v) {
2436
+ return new xn(f, t).getPropertyConfig(n, v);
2430
2437
  }
2431
2438
  return {
2432
- getPropsConfig: i
2439
+ getPropsConfig: o
2433
2440
  };
2434
2441
  }
2435
2442
  const Nn = /* @__PURE__ */ q({
2436
2443
  name: "FComboListDesign",
2437
- props: Ln,
2444
+ props: jn,
2438
2445
  emits: ["clear", "update:modelValue", "change"],
2439
2446
  setup(e, t) {
2440
- const n = w(), i = ie("designer-host-service"), m = ie("design-item-context"), v = Hn(m, i), f = yt(n, m, v);
2447
+ const n = F(), o = ie("designer-host-service"), f = ie("design-item-context"), v = Hn(f, o), m = yt(n, f, v);
2441
2448
  return le(() => {
2442
- n.value.componentInstance = f;
2443
- }), t.expose(f.value), () => C(ht, {
2449
+ n.value.componentInstance = m;
2450
+ }), t.expose(m.value), () => C(ht, {
2444
2451
  ref: n,
2445
2452
  buttonContent: e.dropDownIcon,
2446
2453
  readonly: !0,
@@ -2451,73 +2458,73 @@ const Nn = /* @__PURE__ */ q({
2451
2458
  }, null);
2452
2459
  }
2453
2460
  });
2454
- Q.register = (e, t, n, i) => {
2455
- e["combo-list"] = Q, t["combo-list"] = Be;
2461
+ Q.register = (e, t, n, o) => {
2462
+ e["combo-list"] = Q, t["combo-list"] = Me;
2456
2463
  };
2457
2464
  Q.registerDesigner = (e, t, n) => {
2458
- e["combo-list"] = Nn, t["combo-list"] = Be;
2465
+ e["combo-list"] = Nn, t["combo-list"] = Me;
2459
2466
  };
2460
2467
  const Z = We(Q), oe = /* @__PURE__ */ q({
2461
2468
  name: "FOrder",
2462
2469
  props: ce,
2463
2470
  emits: ["change"],
2464
2471
  setup(e, t) {
2465
- const n = w(), i = w(e.items);
2466
- function m() {
2472
+ const n = F(), o = F(e.items);
2473
+ function f() {
2467
2474
  var g;
2468
- const c = Array.isArray(e.items) ? e.items : [];
2469
- i.value = [...c], (g = n.value) == null || g.updateDataSource(i.value);
2475
+ const u = Array.isArray(e.items) ? e.items : [];
2476
+ o.value = [...u], (g = n.value) == null || g.updateDataSource(o.value);
2470
2477
  }
2471
- G(() => e.items, m);
2472
- const v = w("排序列"), f = w("排序方式"), S = w("添加排序列"), T = [{
2478
+ G(() => e.items, f);
2479
+ const v = F("排序列"), m = F("排序方式"), S = F("添加排序列"), k = [{
2473
2480
  id: "asc",
2474
2481
  name: "升序"
2475
2482
  }, {
2476
2483
  id: "desc",
2477
2484
  name: "降序"
2478
- }], p = w(/* @__PURE__ */ new Map());
2479
- function b() {
2480
- const c = i.value.map((g) => [g.id, !0]);
2481
- p.value = new Map(c);
2485
+ }], p = F(/* @__PURE__ */ new Map());
2486
+ function y() {
2487
+ const u = o.value.map((g) => [g.id, !0]);
2488
+ p.value = new Map(u);
2482
2489
  }
2483
- b();
2484
- const r = D(() => e.dataSource.map((c) => (c.disabled = p.value.has(c.id), c))), o = D(() => ({
2490
+ y();
2491
+ const r = L(() => e.dataSource.map((u) => (u.disabled = p.value.has(u.id), u))), i = L(() => ({
2485
2492
  "f-order": !0
2486
2493
  }));
2487
- function s(c) {
2488
- i.value = i.value.filter((g) => g.id !== c.id), b(), t.emit("change", i.value);
2494
+ function c(u) {
2495
+ o.value = o.value.filter((g) => g.id !== u.id), y(), t.emit("change", o.value);
2489
2496
  }
2490
- function l() {
2491
- i.value = [...i.value, {
2497
+ function a() {
2498
+ o.value = [...o.value, {
2492
2499
  id: Date.now().toString(),
2493
2500
  name: "",
2494
2501
  order: "asc"
2495
- }], b(), t.emit("change", i.value);
2502
+ }], y(), t.emit("change", o.value);
2496
2503
  }
2497
- function a(c) {
2498
- if (c && c.length === 1) {
2499
- const g = c[0], P = i.value.find((R) => R.id === g.id);
2500
- P && (P.name = g.name);
2504
+ function l(u) {
2505
+ if (u && u.length === 1) {
2506
+ const g = u[0], I = o.value.find((E) => E.id === g.id);
2507
+ I && (I.name = g.name);
2501
2508
  }
2502
- b(), t.emit("change", i.value);
2509
+ y(), t.emit("change", o.value);
2503
2510
  }
2504
- function u(c) {
2505
- if (c && c.length) {
2511
+ function s(u) {
2512
+ if (u && u.length) {
2506
2513
  const g = /* @__PURE__ */ new Map();
2507
- c.reduce((P, R) => (P.set(R.id, R), P), g), i.value = c.map((P) => g.get(P.id)), t.emit("change", i.value);
2514
+ u.reduce((I, E) => (I.set(E.id, E), I), g), o.value = u.map((I) => g.get(I.id)), t.emit("change", o.value);
2508
2515
  }
2509
2516
  }
2510
- function y() {
2511
- return C(Me, {
2517
+ function h() {
2518
+ return C(Be, {
2512
2519
  ref: n,
2513
2520
  style: "flex:1",
2514
- data: i.value,
2521
+ data: o.value,
2515
2522
  draggable: !0,
2516
2523
  view: "DraggableView",
2517
2524
  "keep-order": !0,
2518
2525
  itemClass: "f-order-item",
2519
- onRemoveItem: s,
2520
- onChange: u
2526
+ onRemoveItem: c,
2527
+ onChange: s
2521
2528
  }, {
2522
2529
  header: () => C("div", {
2523
2530
  class: "f-order-header"
@@ -2525,8 +2532,8 @@ const Z = We(Q), oe = /* @__PURE__ */ q({
2525
2532
  class: "f-order-header-order-field"
2526
2533
  }, [v.value]), C("span", {
2527
2534
  class: "f-order-header-order-type"
2528
- }, [f.value])]),
2529
- itemContent: (c) => C("div", {
2535
+ }, [m.value])]),
2536
+ itemContent: (u) => C("div", {
2530
2537
  class: "f-order-item-content"
2531
2538
  }, [C(Z, {
2532
2539
  class: "f-order-item-content-order-field",
@@ -2534,26 +2541,26 @@ const Z = We(Q), oe = /* @__PURE__ */ q({
2534
2541
  valueField: "id",
2535
2542
  textField: "name",
2536
2543
  idField: "id",
2537
- modelValue: c.raw.id,
2538
- "onUpdate:modelValue": (g) => c.raw.id = g,
2539
- onChange: a,
2540
- onClear: a
2544
+ modelValue: u.raw.id,
2545
+ "onUpdate:modelValue": (g) => u.raw.id = g,
2546
+ onChange: l,
2547
+ onClear: l
2541
2548
  }, null), C(Z, {
2542
2549
  class: "f-order-item-content-order-type",
2543
- data: T,
2550
+ data: k,
2544
2551
  valueField: "id",
2545
2552
  textField: "name",
2546
2553
  idField: "id",
2547
- modelValue: c.raw.order,
2548
- "onUpdate:modelValue": (g) => c.raw.order = g,
2549
- onChange: a
2554
+ modelValue: u.raw.order,
2555
+ "onUpdate:modelValue": (g) => u.raw.order = g,
2556
+ onChange: l
2550
2557
  }, null)]),
2551
2558
  footer: () => C("div", {
2552
2559
  class: "f-order-footer"
2553
2560
  }, [C(Ie, {
2554
2561
  type: "link",
2555
2562
  class: "f-order-add-button",
2556
- onClick: l
2563
+ onClick: a
2557
2564
  }, {
2558
2565
  default: () => C(U, null, [C("span", {
2559
2566
  class: "f-order-add-icon"
@@ -2564,150 +2571,150 @@ const Z = We(Q), oe = /* @__PURE__ */ q({
2564
2571
  });
2565
2572
  }
2566
2573
  return () => C("div", {
2567
- class: o.value
2568
- }, [y()]);
2574
+ class: i.value
2575
+ }, [h()]);
2569
2576
  }
2570
2577
  });
2571
2578
  function Gn(e, t, n) {
2572
- var j;
2573
- const i = "", m = "", v = w();
2574
- let f;
2579
+ var A;
2580
+ const o = "", f = "", v = F();
2581
+ let m;
2575
2582
  function S() {
2576
2583
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
2577
2584
  }
2578
- function T() {
2585
+ function k() {
2579
2586
  return !1;
2580
2587
  }
2581
2588
  function p() {
2582
2589
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
2583
2590
  }
2584
- function b() {
2591
+ function y() {
2585
2592
  return (t == null ? void 0 : t.schema.componentType) === "frame";
2586
2593
  }
2587
- function r(h) {
2588
- if (!h || !h.value)
2594
+ function r(T) {
2595
+ if (!T || !T.value)
2589
2596
  return null;
2590
- if (h.value.schema && h.value.schema.type === "component")
2591
- return h.value;
2592
- const E = w(h == null ? void 0 : h.value.parent), k = r(E);
2593
- return k || null;
2594
- }
2595
- function o(h = t) {
2596
- var M;
2597
- const { componentInstance: E, designerItemElementRef: k } = h;
2598
- if (!E || !E.value)
2597
+ if (T.value.schema && T.value.schema.type === "component")
2598
+ return T.value;
2599
+ const B = F(T == null ? void 0 : T.value.parent), b = r(B);
2600
+ return b || null;
2601
+ }
2602
+ function i(T = t) {
2603
+ var V;
2604
+ const { componentInstance: B, designerItemElementRef: b } = T;
2605
+ if (!B || !B.value)
2599
2606
  return null;
2600
- const { getCustomButtons: F } = E.value;
2601
- return E.value.canMove || F && ((M = F()) != null && M.length) ? k : o(h.parent);
2607
+ const { getCustomButtons: w } = B.value;
2608
+ return B.value.canMove || w && ((V = w()) != null && V.length) ? b : i(T.parent);
2602
2609
  }
2603
- function s(h) {
2604
- return !1;
2610
+ function c(T) {
2611
+ return !!n;
2605
2612
  }
2606
- function l() {
2613
+ function a() {
2607
2614
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
2608
2615
  }
2609
- function a() {
2616
+ function l() {
2610
2617
  }
2611
- function u(h, E) {
2612
- var k;
2613
- !h || !E || (k = t == null ? void 0 : t.setupContext) == null || k.emit("dragEnd");
2618
+ function s(T, B) {
2619
+ var b;
2620
+ !T || !B || (b = t == null ? void 0 : t.setupContext) == null || b.emit("dragEnd");
2614
2621
  }
2615
- function y(h, E) {
2616
- const { componentType: k } = h;
2617
- let F = pt(k, h, E);
2618
- const M = k.toLowerCase().replace(/-/g, "_");
2619
- return F && !F.id && F.type === k && (F.id = `${M}_${Math.random().toString().slice(2, 6)}`), F;
2622
+ function h(T, B) {
2623
+ const { componentType: b } = T;
2624
+ let w = pt(b, T, B);
2625
+ const V = b.toLowerCase().replace(/-/g, "_");
2626
+ return w && !w.id && w.type === b && (w.id = `${V}_${Math.random().toString().slice(2, 6)}`), w;
2620
2627
  }
2621
- function c(h) {
2628
+ function u(T) {
2622
2629
  }
2623
- function g(...h) {
2630
+ function g(...T) {
2624
2631
  }
2625
- function P(h) {
2626
- if (!h)
2632
+ function I(T) {
2633
+ if (!T)
2627
2634
  return;
2628
- const E = t == null ? void 0 : t.schema, { formSchemaUtils: k } = h;
2629
- if (E && k.getExpressions().length) {
2630
- const F = k.getExpressions().findIndex((M) => M.target === E.id);
2631
- F > -1 && k.getExpressions().splice(F, 1);
2635
+ const B = t == null ? void 0 : t.schema, { formSchemaUtils: b } = T;
2636
+ if (B && b.getExpressions().length) {
2637
+ const w = b.getExpressions().findIndex((V) => V.target === B.id);
2638
+ w > -1 && b.getExpressions().splice(w, 1);
2632
2639
  }
2633
2640
  }
2634
- function R(h) {
2635
- if (!h || !(t != null && t.schema))
2641
+ function E(T) {
2642
+ if (!T || !(t != null && t.schema))
2636
2643
  return;
2637
- const E = t.schema, { formSchemaUtils: k } = h;
2638
- k.removeCommunicationInComponent(E);
2639
- }
2640
- function O(h) {
2641
- P(h), R(h), t != null && t.schema.contents && t.schema.contents.map((E) => {
2642
- let k = E.id;
2643
- E.type === "component-ref" && (k = E.component);
2644
- const F = e.value.querySelectorAll(`#${k}-design-item`);
2645
- F != null && F.length && Array.from(F).map((M) => {
2646
- var A;
2647
- (A = M == null ? void 0 : M.componentInstance) != null && A.value.onRemoveComponent && M.componentInstance.value.onRemoveComponent(h);
2644
+ const B = t.schema, { formSchemaUtils: b } = T;
2645
+ b.removeCommunicationInComponent(B);
2646
+ }
2647
+ function O(T) {
2648
+ I(T), E(T), t != null && t.schema.contents && t.schema.contents.map((B) => {
2649
+ let b = B.id;
2650
+ B.type === "component-ref" && (b = B.component);
2651
+ const w = e.value.querySelectorAll(`#${b}-design-item`);
2652
+ w != null && w.length && Array.from(w).map((V) => {
2653
+ var j;
2654
+ (j = V == null ? void 0 : V.componentInstance) != null && j.value.onRemoveComponent && V.componentInstance.value.onRemoveComponent(T);
2648
2655
  });
2649
2656
  });
2650
2657
  }
2651
- function V() {
2658
+ function P() {
2652
2659
  }
2653
- function B(h) {
2654
- var k, F;
2655
- if (!((k = t == null ? void 0 : t.schema) != null && k.id))
2660
+ function R(T) {
2661
+ var b, w;
2662
+ if (!((b = t == null ? void 0 : t.schema) != null && b.id))
2656
2663
  return;
2657
- !f && h && (f = h.formSchemaUtils);
2658
- let E = "";
2664
+ !m && T && (m = T.formSchemaUtils);
2665
+ let B = "";
2659
2666
  {
2660
- const { text: M, title: A, label: L, mainTitle: x, name: H, type: _ } = t.schema;
2661
- E = M || A || L || x || H || ((F = Ce[_]) == null ? void 0 : F.name);
2667
+ const { text: V, title: j, label: D, mainTitle: x, name: H, type: _ } = t.schema;
2668
+ B = V || j || D || x || H || ((w = Ce[_]) == null ? void 0 : w.name);
2662
2669
  }
2663
- E && f.getControlBasicInfoMap().set(t.schema.id, {
2664
- componentTitle: E,
2665
- parentPathName: E
2670
+ B && m.getControlBasicInfoMap().set(t.schema.id, {
2671
+ componentTitle: B,
2672
+ parentPathName: B
2666
2673
  });
2667
2674
  }
2668
- function d(h) {
2669
- var M;
2670
- const { changeObject: E } = h, { propertyID: k, propertyValue: F } = E;
2671
- if (["text", "title", "label", "name", "mainTitle"].includes((M = h == null ? void 0 : h.changeObject) == null ? void 0 : M.propertyID) && k && F && (B(), f)) {
2672
- const A = f.getControlBasicInfoMap(), L = A.keys().toArray().filter((x) => {
2675
+ function d(T) {
2676
+ var V;
2677
+ const { changeObject: B } = T, { propertyID: b, propertyValue: w } = B;
2678
+ if (["text", "title", "label", "name", "mainTitle"].includes((V = T == null ? void 0 : T.changeObject) == null ? void 0 : V.propertyID) && b && w && (R(), m)) {
2679
+ const j = m.getControlBasicInfoMap(), D = j.keys().toArray().filter((x) => {
2673
2680
  var H, _;
2674
- return ((H = A.get(x)) == null ? void 0 : H.reliedComponentId) === ((_ = t == null ? void 0 : t.schema) == null ? void 0 : _.id);
2681
+ return ((H = j.get(x)) == null ? void 0 : H.reliedComponentId) === ((_ = t == null ? void 0 : t.schema) == null ? void 0 : _.id);
2675
2682
  });
2676
- L != null && L.length && L.forEach((x) => {
2677
- const H = A.get(x).parentPathName.split(" > ");
2678
- H[0] = F, A.get(x).parentPathName = H.join(" > ");
2683
+ D != null && D.length && D.forEach((x) => {
2684
+ const H = j.get(x).parentPathName.split(" > ");
2685
+ H[0] = w, j.get(x).parentPathName = H.join(" > ");
2679
2686
  });
2680
2687
  }
2681
2688
  }
2682
- function I(h) {
2683
- d(h);
2689
+ function M(T) {
2690
+ d(T);
2684
2691
  }
2685
2692
  return v.value = {
2686
2693
  canMove: S(),
2687
- canSelectParent: T(),
2694
+ canSelectParent: k(),
2688
2695
  canDelete: p(),
2689
- canNested: !b(),
2696
+ canNested: !y(),
2690
2697
  contents: t == null ? void 0 : t.schema.contents,
2691
2698
  elementRef: e,
2692
- parent: (j = t == null ? void 0 : t.parent) == null ? void 0 : j.componentInstance,
2699
+ parent: (A = t == null ? void 0 : t.parent) == null ? void 0 : A.componentInstance,
2693
2700
  schema: t == null ? void 0 : t.schema,
2694
- styles: i,
2695
- designerClass: m,
2696
- canAccepts: s,
2701
+ styles: o,
2702
+ designerClass: f,
2703
+ canAccepts: c,
2697
2704
  getBelongedComponentInstance: r,
2698
- getDraggableDesignItemElement: o,
2699
- getDraggingDisplayText: l,
2705
+ getDraggableDesignItemElement: i,
2706
+ getDraggingDisplayText: a,
2700
2707
  getPropConfig: g,
2701
- getDragScopeElement: a,
2702
- onAcceptMovedChildElement: u,
2703
- onChildElementMovedOut: c,
2704
- addNewChildComponentSchema: y,
2705
- triggerBelongedComponentToMoveWhenMoved: w(!1),
2706
- triggerBelongedComponentToDeleteWhenDeleted: w(!1),
2708
+ getDragScopeElement: l,
2709
+ onAcceptMovedChildElement: s,
2710
+ onChildElementMovedOut: u,
2711
+ addNewChildComponentSchema: h,
2712
+ triggerBelongedComponentToMoveWhenMoved: F(!1),
2713
+ triggerBelongedComponentToDeleteWhenDeleted: F(!1),
2707
2714
  onRemoveComponent: O,
2708
- getCustomButtons: V,
2709
- onPropertyChanged: I,
2710
- setComponentBasicInfoMap: B,
2715
+ getCustomButtons: P,
2716
+ onPropertyChanged: M,
2717
+ setComponentBasicInfoMap: R,
2711
2718
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
2712
2719
  }, v;
2713
2720
  }
@@ -2716,89 +2723,89 @@ const _n = /* @__PURE__ */ q({
2716
2723
  props: ce,
2717
2724
  emits: ["change"],
2718
2725
  setup(e, t) {
2719
- const n = w(e.items), i = w("排序列"), m = w("排序方式"), v = w("添加排序列"), f = [{
2726
+ const n = F(e.items), o = F("排序列"), f = F("排序方式"), v = F("添加排序列"), m = [{
2720
2727
  id: "asc",
2721
2728
  name: "升序"
2722
2729
  }, {
2723
2730
  id: "desc",
2724
2731
  name: "降序"
2725
- }], S = w(/* @__PURE__ */ new Map()), T = w(), p = ie("design-item-context"), b = Gn(T, p);
2732
+ }], S = F(/* @__PURE__ */ new Map()), k = F(), p = ie("design-item-context"), y = Gn(k, p);
2726
2733
  le(() => {
2727
- T.value.componentInstance = b;
2728
- }), t.expose(b.value);
2734
+ k.value.componentInstance = y;
2735
+ }), t.expose(y.value);
2729
2736
  function r() {
2730
- const g = n.value.map((P) => [P.id, !0]);
2737
+ const g = n.value.map((I) => [I.id, !0]);
2731
2738
  S.value = new Map(g);
2732
2739
  }
2733
2740
  r();
2734
- const o = D(() => e.dataSource.map((g) => (g.disabled = S.value.has(g.id), g))), s = D(() => ({
2741
+ const i = L(() => e.dataSource.map((g) => (g.disabled = S.value.has(g.id), g))), c = L(() => ({
2735
2742
  "f-order": !0
2736
2743
  }));
2737
- function l(g) {
2738
- n.value = n.value.filter((P) => P.id !== g.id), r(), t.emit("change", n.value);
2744
+ function a(g) {
2745
+ n.value = n.value.filter((I) => I.id !== g.id), r(), t.emit("change", n.value);
2739
2746
  }
2740
- function a() {
2747
+ function l() {
2741
2748
  n.value = [...n.value, {
2742
2749
  id: Date.now().toString(),
2743
2750
  name: "",
2744
2751
  order: "asc"
2745
2752
  }], r(), t.emit("change", n.value);
2746
2753
  }
2747
- function u(g) {
2754
+ function s(g) {
2748
2755
  r(), t.emit("change", n.value);
2749
2756
  }
2750
- function y(g) {
2757
+ function h(g) {
2751
2758
  if (g && g.length) {
2752
- const P = /* @__PURE__ */ new Map();
2753
- g.reduce((R, O) => (R.set(O.id, O), R), P), n.value = g.map((R) => P.get(R.id)), t.emit("change", n.value);
2759
+ const I = /* @__PURE__ */ new Map();
2760
+ g.reduce((E, O) => (E.set(O.id, O), E), I), n.value = g.map((E) => I.get(E.id)), t.emit("change", n.value);
2754
2761
  }
2755
2762
  }
2756
- function c() {
2757
- return C(Me, {
2763
+ function u() {
2764
+ return C(Be, {
2758
2765
  style: "flex:1",
2759
2766
  data: n.value,
2760
2767
  draggable: !0,
2761
2768
  view: "DraggableView",
2762
2769
  "keep-order": !0,
2763
2770
  itemClass: "f-order-item",
2764
- onRemoveItem: l,
2765
- onChange: y
2771
+ onRemoveItem: a,
2772
+ onChange: h
2766
2773
  }, {
2767
2774
  header: () => C("div", {
2768
2775
  class: "f-order-header"
2769
2776
  }, [C("span", {
2770
2777
  class: "f-order-header-order-field"
2771
- }, [i.value]), C("span", {
2778
+ }, [o.value]), C("span", {
2772
2779
  class: "f-order-header-order-type"
2773
- }, [m.value])]),
2780
+ }, [f.value])]),
2774
2781
  itemContent: (g) => C("div", {
2775
2782
  class: "f-order-item-content"
2776
2783
  }, [C(Z, {
2777
2784
  class: "f-order-item-content-order-field",
2778
- data: o.value,
2785
+ data: i.value,
2779
2786
  valueField: "id",
2780
2787
  textField: "name",
2781
2788
  idField: "id",
2782
2789
  modelValue: g.id,
2783
- "onUpdate:modelValue": (P) => g.id = P,
2784
- onChange: u,
2785
- onClear: u
2790
+ "onUpdate:modelValue": (I) => g.id = I,
2791
+ onChange: s,
2792
+ onClear: s
2786
2793
  }, null), C(Z, {
2787
2794
  class: "f-order-item-content-order-type",
2788
- data: f,
2795
+ data: m,
2789
2796
  valueField: "id",
2790
2797
  textField: "name",
2791
2798
  idField: "id",
2792
2799
  modelValue: g.order,
2793
- "onUpdate:modelValue": (P) => g.order = P,
2794
- onChange: u
2800
+ "onUpdate:modelValue": (I) => g.order = I,
2801
+ onChange: s
2795
2802
  }, null)]),
2796
2803
  footer: () => C("div", {
2797
2804
  class: "f-order-footer"
2798
2805
  }, [C(Ie, {
2799
2806
  type: "link",
2800
2807
  class: "f-order-add-button",
2801
- onClick: a
2808
+ onClick: l
2802
2809
  }, {
2803
2810
  default: () => C(U, null, [C("span", {
2804
2811
  class: "f-order-add-icon"
@@ -2809,15 +2816,15 @@ const _n = /* @__PURE__ */ q({
2809
2816
  });
2810
2817
  }
2811
2818
  return () => C("div", {
2812
- ref: T,
2813
- class: s.value
2814
- }, [c()]);
2819
+ ref: k,
2820
+ class: c.value
2821
+ }, [u()]);
2815
2822
  }
2816
- }), ao = {
2823
+ }), fo = {
2817
2824
  install(e) {
2818
2825
  e.component(oe.name, oe);
2819
2826
  },
2820
- register(e, t, n, i) {
2827
+ register(e, t, n, o) {
2821
2828
  e.order = oe, t.order = ve;
2822
2829
  },
2823
2830
  registerDesigner(e, t, n) {
@@ -2826,7 +2833,7 @@ const _n = /* @__PURE__ */ q({
2826
2833
  };
2827
2834
  export {
2828
2835
  oe as FOrder,
2829
- ao as default,
2836
+ fo as default,
2830
2837
  ce as orderProps,
2831
2838
  ve as propsResolver
2832
2839
  };