@farris/ui-vue 1.2.6 → 1.2.8

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 (210) hide show
  1. package/components/accordion/index.esm.js +150 -142
  2. package/components/avatar/index.esm.js +393 -457
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +491 -554
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +479 -513
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +857 -743
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4883 -5182
  17. package/components/data-view/index.esm.js +3072 -2949
  18. package/components/date-picker/index.esm.js +2626 -2689
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +940 -998
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +307 -293
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1747 -1627
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5877 -6176
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1454 -1524
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +659 -722
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1643 -1524
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6502 -6770
  47. package/components/mapping-editor/index.esm.js +5639 -5939
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +1098 -1130
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1317
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1479 -1513
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +706 -778
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +453 -516
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +555 -526
  74. package/components/response-toolbar/index.esm.js +1009 -1247
  75. package/components/schema-selector/index.esm.js +3261 -3373
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +441 -504
  83. package/components/tabs/index.esm.js +1849 -2039
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +445 -493
  87. package/components/time-picker/index.esm.js +1350 -1414
  88. package/components/transfer/index.esm.js +146 -144
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5948 -6237
  91. package/components/tree-view/index.esm.js +2381 -2255
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +27221 -26804
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  102. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  103. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  104. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  105. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  106. package/types/data-view/composition/types.d.ts +1 -1
  107. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  108. package/types/designer-canvas/src/types.d.ts +1 -1
  109. package/types/dynamic-form/index.d.ts +1 -0
  110. package/types/dynamic-form/src/types.d.ts +1 -1
  111. package/types/dynamic-resolver/index.d.ts +1 -0
  112. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  113. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  114. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  115. package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
  116. package/types/modal/src/modal.props.d.ts +1 -4
  117. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
  118. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
  119. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  120. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  121. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  122. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  123. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  124. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  125. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  126. package/components/accordion/index.umd.cjs +0 -1
  127. package/components/avatar/index.umd.cjs +0 -1
  128. package/components/border-editor/index.umd.cjs +0 -1
  129. package/components/button/index.umd.cjs +0 -1
  130. package/components/button-edit/index.umd.cjs +0 -1
  131. package/components/button-group/index.umd.cjs +0 -1
  132. package/components/calculator/index.umd.cjs +0 -1
  133. package/components/calendar/index.umd.cjs +0 -1
  134. package/components/capsule/index.umd.cjs +0 -1
  135. package/components/checkbox/index.umd.cjs +0 -1
  136. package/components/color-picker/index.umd.cjs +0 -3
  137. package/components/combo-list/index.umd.cjs +0 -1
  138. package/components/combo-tree/index.umd.cjs +0 -1
  139. package/components/common/index.umd.cjs +0 -1
  140. package/components/component/index.umd.cjs +0 -1
  141. package/components/condition/index.umd.cjs +0 -1
  142. package/components/content-container/index.umd.cjs +0 -1
  143. package/components/data-grid/index.umd.cjs +0 -1
  144. package/components/data-view/index.umd.cjs +0 -1
  145. package/components/date-picker/index.umd.cjs +0 -1
  146. package/components/designer-canvas/index.umd.cjs +0 -1
  147. package/components/designer-outline/index.umd.cjs +0 -1
  148. package/components/designer-toolbox/index.umd.cjs +0 -1
  149. package/components/discussion-editor/index.umd.cjs +0 -3
  150. package/components/discussion-list/index.umd.cjs +0 -1
  151. package/components/drawer/index.umd.cjs +0 -1
  152. package/components/dropdown/index.umd.cjs +0 -2
  153. package/components/dynamic-form/index.umd.cjs +0 -1
  154. package/components/dynamic-resolver/index.umd.cjs +0 -1
  155. package/components/dynamic-view/index.umd.cjs +0 -1
  156. package/components/enum-editor/index.umd.cjs +0 -1
  157. package/components/events-editor/index.umd.cjs +0 -1
  158. package/components/expression-editor/index.umd.cjs +0 -1
  159. package/components/external-container/index.umd.cjs +0 -1
  160. package/components/field-selector/index.umd.cjs +0 -1
  161. package/components/filter-bar/index.umd.cjs +0 -1
  162. package/components/flow-canvas/index.umd.cjs +0 -1
  163. package/components/image-cropper/index.umd.cjs +0 -1
  164. package/components/input-group/index.umd.cjs +0 -1
  165. package/components/layout/index.umd.cjs +0 -1
  166. package/components/list-nav/index.umd.cjs +0 -1
  167. package/components/list-view/index.umd.cjs +0 -1
  168. package/components/loading/index.umd.cjs +0 -8
  169. package/components/locale/index.umd.cjs +0 -1
  170. package/components/lookup/index.umd.cjs +0 -1
  171. package/components/mapping-editor/index.umd.cjs +0 -1
  172. package/components/message-box/index.umd.cjs +0 -1
  173. package/components/modal/index.umd.cjs +0 -1
  174. package/components/nav/index.umd.cjs +0 -3
  175. package/components/notify/index.umd.cjs +0 -1
  176. package/components/order/index.umd.cjs +0 -1
  177. package/components/page-footer/index.umd.cjs +0 -1
  178. package/components/page-header/index.umd.cjs +0 -1
  179. package/components/pagination/index.umd.cjs +0 -1
  180. package/components/popover/index.umd.cjs +0 -1
  181. package/components/progress/index.umd.cjs +0 -3
  182. package/components/property-editor/index.umd.cjs +0 -3
  183. package/components/property-panel/index.umd.cjs +0 -1
  184. package/components/radio-button/index.umd.cjs +0 -1
  185. package/components/radio-group/index.umd.cjs +0 -1
  186. package/components/rate/index.umd.cjs +0 -1
  187. package/components/response-layout/index.umd.cjs +0 -1
  188. package/components/response-layout-editor/index.umd.cjs +0 -1
  189. package/components/response-toolbar/index.umd.cjs +0 -1
  190. package/components/schema-selector/index.umd.cjs +0 -8
  191. package/components/search-box/index.umd.cjs +0 -1
  192. package/components/section/index.umd.cjs +0 -1
  193. package/components/smoke-detector/index.umd.cjs +0 -1
  194. package/components/spacing-editor/index.umd.cjs +0 -1
  195. package/components/splitter/index.umd.cjs +0 -1
  196. package/components/step/index.umd.cjs +0 -1
  197. package/components/switch/index.umd.cjs +0 -1
  198. package/components/tabs/index.umd.cjs +0 -1
  199. package/components/tags/index.umd.cjs +0 -1
  200. package/components/text/index.umd.cjs +0 -1
  201. package/components/textarea/index.umd.cjs +0 -1
  202. package/components/time-picker/index.umd.cjs +0 -1
  203. package/components/tooltip/index.umd.cjs +0 -1
  204. package/components/transfer/index.umd.cjs +0 -1
  205. package/components/tree-grid/index.umd.cjs +0 -1
  206. package/components/tree-view/index.umd.cjs +0 -1
  207. package/components/uploader/index.umd.cjs +0 -2
  208. package/components/verify-detail/index.umd.cjs +0 -1
  209. package/components/video/index.umd.cjs +0 -1
  210. package/components/weather/index.umd.cjs +0 -16
@@ -1,43 +1,43 @@
1
1
  import { ref as p, computed as $, createVNode as l, Fragment as B, watch as X, withModifiers as te, withDirectives as ne, vModelText as le, defineComponent as G, createTextVNode as H, inject as se, onMounted as ae } from "vue";
2
2
  import { cloneDeep as oe } from "lodash-es";
3
- import { useIdentify as re, useHierarchy as ie, useGroupData as ce, usePagination as ue, useDataView as fe, useSelection as de, useEdit as pe, useVisualDataBound as ve, useVisualDataCell as he, useVisualDataRow as ge, useVisualGroupRow as me, useVisualSummaryRow as ye, useVisualData as Ce } from "@farris/ui-vue/components/data-view";
4
- import { FCheckBox as q } from "@farris/ui-vue/components/checkbox";
3
+ import { useIdentify as re, useHierarchy as ie, useGroupData as ce, usePagination as ue, useDataView as fe, useSelection as de, useEdit as pe, useVisualDataBound as ve, useVisualDataCell as he, useVisualDataRow as ge, useVisualGroupRow as me, useVisualSummaryRow as ye, useVisualData as Ce } from "../data-view/index.esm.js";
4
+ import { FCheckBox as q } from "../checkbox/index.esm.js";
5
5
  const Q = {}, Y = {};
6
6
  function z(t) {
7
- const { properties: e, title: n } = t, c = Object.keys(e).reduce((g, a) => (g[a] = e[a].type === "object" && e[a].properties ? z(e[a]) : oe(e[a].default), g), {});
8
- return c.id = `${n}-${Date.now()}`, c;
7
+ const { properties: e, title: n } = t, i = Object.keys(e).reduce((g, a) => (g[a] = e[a].type === "object" && e[a].properties ? z(e[a]) : oe(e[a].default), g), {});
8
+ return i.id = `${n}-${Date.now()}`, i;
9
9
  }
10
10
  function N(t, e = {}) {
11
11
  const n = Q[t];
12
12
  if (n) {
13
- let c = z(n);
13
+ let i = z(n);
14
14
  const g = Y[t];
15
- return c = g ? g({ getSchemaByType: N }, c, e) : c, c;
15
+ return i = g ? g({ getSchemaByType: N }, i, e) : i, i;
16
16
  }
17
17
  return null;
18
18
  }
19
19
  function Se(t, e) {
20
20
  const n = z(e);
21
- return Object.keys(t).reduce((c, g) => (c[g] = t[g], c), n), n;
21
+ return Object.keys(t).reduce((i, g) => (i[g] && typeof i[g] == "object" ? Object.assign(i[g], t[g]) : i[g] = t[g], i), n), n;
22
22
  }
23
23
  function we(t, e) {
24
- return Object.keys(t).filter((c) => t[c] != null).reduce((c, g) => {
24
+ return Object.keys(t).filter((i) => t[i] != null).reduce((i, g) => {
25
25
  if (e.has(g)) {
26
26
  const a = e.get(g);
27
27
  if (typeof a == "string")
28
- c[a] = t[g];
28
+ i[a] = t[g];
29
29
  else {
30
30
  const v = a(g, t[g], t);
31
- Object.assign(c, v);
31
+ Object.assign(i, v);
32
32
  }
33
33
  } else
34
- c[g] = t[g];
35
- return c;
34
+ i[g] = t[g];
35
+ return i;
36
36
  }, {});
37
37
  }
38
38
  function be(t, e, n = /* @__PURE__ */ new Map()) {
39
- const c = Se(t, e);
40
- return we(c, n);
39
+ const i = Se(t, e);
40
+ return we(i, n);
41
41
  }
42
42
  function ke(t = {}) {
43
43
  function e(d, u, o, r) {
@@ -57,11 +57,11 @@ function ke(t = {}) {
57
57
  function n(d, u, o, r) {
58
58
  return r[d] && r[d].propertyValue && String(r[d].propertyValue.value) === String(o);
59
59
  }
60
- const c = /* @__PURE__ */ new Map([
60
+ const i = /* @__PURE__ */ new Map([
61
61
  ["length", e],
62
62
  ["getProperty", n]
63
63
  ]);
64
- Object.keys(t).reduce((d, u) => (d.set(u, t[u]), d), c);
64
+ Object.keys(t).reduce((d, u) => (d.set(u, t[u]), d), i);
65
65
  function g(d, u) {
66
66
  const o = d;
67
67
  return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param: d, value: !!u }] : typeof u == "object" ? Object.keys(u).map((r) => {
@@ -78,8 +78,8 @@ function ke(t = {}) {
78
78
  }, []);
79
79
  }
80
80
  function v(d, u) {
81
- if (c.has(d.operator)) {
82
- const o = c.get(d.operator);
81
+ if (i.has(d.operator)) {
82
+ const o = i.get(d.operator);
83
83
  return o && o(d.target, d.param, d.value, u) || !1;
84
84
  }
85
85
  return !1;
@@ -87,27 +87,27 @@ function ke(t = {}) {
87
87
  function y(d, u) {
88
88
  return a(d).reduce((b, w) => b && v(w, u), !0);
89
89
  }
90
- function i(d, u) {
91
- const o = Object.keys(d), r = o.includes("allOf"), b = o.includes("anyOf"), w = r || b, T = (w ? d[w ? r ? "allOf" : "anyOf" : "allOf"] : [d]).map((I) => y(I, u));
92
- return r ? !T.includes(!1) : T.includes(!0);
90
+ function c(d, u) {
91
+ const o = Object.keys(d), r = o.includes("allOf"), b = o.includes("anyOf"), w = r || b, D = (w ? d[w ? r ? "allOf" : "anyOf" : "allOf"] : [d]).map((I) => y(I, u));
92
+ return r ? !D.includes(!1) : D.includes(!0);
93
93
  }
94
- return { parseValueSchema: i };
94
+ return { parseValueSchema: c };
95
95
  }
96
96
  const Ve = {}, Me = {};
97
97
  ke();
98
- function Z(t, e, n = /* @__PURE__ */ new Map(), c = (v, y, i) => y, g = {}, a = (v) => v) {
99
- return Q[e.title] = e, Y[e.title] = c, Ve[e.title] = g, Me[e.title] = a, (v = {}) => {
100
- const y = be(v, e, n), i = Object.keys(t).reduce((d, u) => (d[u] = t[u].default, d), {});
101
- return Object.assign(i, y);
98
+ function Z(t, e, n = /* @__PURE__ */ new Map(), i = (v, y, c) => y, g = {}, a = (v) => v) {
99
+ return Q[e.title] = e, Y[e.title] = i, Ve[e.title] = g, Me[e.title] = a, (v = {}) => {
100
+ const y = be(v, e, n), c = Object.keys(t).reduce((d, u) => (d[u] = t[u].default, d), {});
101
+ return Object.assign(c, y);
102
102
  };
103
103
  }
104
104
  function K(t, e) {
105
105
  return { customClass: e.class, customStyle: e.style };
106
106
  }
107
- const Te = /* @__PURE__ */ new Map([
107
+ const De = /* @__PURE__ */ new Map([
108
108
  ["appearance", K]
109
109
  ]);
110
- function De(t, e, n) {
110
+ function Te(t, e, n) {
111
111
  return e;
112
112
  }
113
113
  const Oe = "transfer", Fe = "A Farris Component", Ie = "object", je = {
@@ -222,7 +222,7 @@ const Oe = "transfer", Fe = "A Farris Component", Ie = "object", je = {
222
222
  placeholder: { type: String, default: "" },
223
223
  selections: { type: Array, default: [] },
224
224
  selectionValues: { type: Array, default: [] }
225
- }, x = Z(U, Ne, Te, De, Re), Be = /* @__PURE__ */ new Map([
225
+ }, x = Z(U, Ne, De, Te, Re), Be = /* @__PURE__ */ new Map([
226
226
  ["appearance", K]
227
227
  ]);
228
228
  function Ge(t, e, n) {
@@ -366,7 +366,9 @@ const qe = "https://json-schema.org/draft/2020-12/schema", ze = "https://farris-
366
366
  }
367
367
  },
368
368
  keepOrder: { type: Boolean, default: !1 },
369
- disableField: { type: String, default: "disabled" }
369
+ disableField: { type: String, default: "disabled" },
370
+ // 搜索启用高亮
371
+ enableHighlightSearch: { type: Boolean, default: !0 }
370
372
  };
371
373
  Z(ee, Ye, Be, Ge, tt);
372
374
  function nt(t, e) {
@@ -377,7 +379,7 @@ function nt(t, e) {
377
379
  v.push(y), y = a.nextNode();
378
380
  return v;
379
381
  }
380
- function c(a, v) {
382
+ function i(a, v) {
381
383
  const y = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
382
384
  return n(y).map((o) => ({ textNode: o, text: (o.textContent || "").toLocaleLowerCase() })).map(({ textNode: o, text: r }) => {
383
385
  const b = [];
@@ -397,21 +399,21 @@ function nt(t, e) {
397
399
  function g(a) {
398
400
  if (!CSS.highlights || (CSS.highlights.clear(), !a || !e))
399
401
  return;
400
- const v = c(e.value, a.toLocaleLowerCase()), y = new Highlight(...v);
402
+ const v = i(e.value, a.toLocaleLowerCase()), y = new Highlight(...v);
401
403
  CSS.highlights.set("search-result", y);
402
404
  }
403
405
  return { search: g };
404
406
  }
405
- function W(t, e, n, c, g, a, v, y, i, d) {
407
+ function W(t, e, n, i, g, a, v, y, c, d) {
406
408
  const u = p(t.size), o = p(t.textField), r = p(t.titleField), b = p(t.multiSelect), w = p(t.disableField), {
407
409
  onMouseenterItem: V,
408
410
  onMouseoverItem: F,
409
- onMouseoutItem: T
411
+ onMouseoutItem: D
410
412
  } = a, {
411
413
  getKey: M,
412
414
  listViewItemClass: I,
413
415
  onCheckItem: P,
414
- onClickItem: D
416
+ onClickItem: T
415
417
  } = v, m = $(() => ({
416
418
  margin: u.value === "small" ? "0.25rem 0" : "10px 0"
417
419
  }));
@@ -420,10 +422,10 @@ function W(t, e, n, c, g, a, v, y, i, d) {
420
422
  class: I(f, S),
421
423
  id: M(f, S),
422
424
  key: M(f, S),
423
- onClick: (s) => D(s, f, S),
425
+ onClick: (s) => T(s, f, S),
424
426
  onMouseenter: (s) => V(s, f, S),
425
427
  onMouseover: (s) => F(s, f, S),
426
- onMouseout: (s) => T(s, f, S)
428
+ onMouseout: (s) => D(s, f, S)
427
429
  }, [b.value && l("div", {
428
430
  class: "f-list-select",
429
431
  onClick: (s) => s.stopPropagation()
@@ -447,7 +449,7 @@ function W(t, e, n, c, g, a, v, y, i, d) {
447
449
  renderItem: O
448
450
  };
449
451
  }
450
- function lt(t, e, n, c, g, a, v, y, i, d) {
452
+ function lt(t, e, n, i, g, a, v, y, c, d) {
451
453
  const u = p(t.multiSelect), o = p(t.disableField), {
452
454
  onMouseenterItem: r,
453
455
  onMouseoverItem: b,
@@ -455,46 +457,46 @@ function lt(t, e, n, c, g, a, v, y, i, d) {
455
457
  } = a, {
456
458
  getKey: V,
457
459
  listViewItemClass: F,
458
- onCheckItem: T,
460
+ onCheckItem: D,
459
461
  onClickItem: M
460
462
  } = v;
461
- function I(D, m, O) {
463
+ function I(T, m, O) {
462
464
  return e.slots.content ? l(B, null, [e.slots.content && e.slots.content({
463
- item: D.raw,
465
+ item: T.raw,
464
466
  index: m,
465
467
  selectedItem: O
466
468
  })]) : l("div", {
467
469
  style: "margin: 10px 0;"
468
- }, [D.raw.name]);
470
+ }, [T.raw.name]);
469
471
  }
470
- function P(D, m, O) {
472
+ function P(T, m, O) {
471
473
  return l("li", {
472
- class: F(D, m),
473
- id: V(D, m),
474
- key: V(D, m),
475
- onClick: (f) => M(f, D, m),
476
- onMouseenter: (f) => r(f, D, m),
477
- onMouseover: (f) => b(f, D, m),
478
- onMouseout: (f) => w(f, D, m)
474
+ class: F(T, m),
475
+ id: V(T, m),
476
+ key: V(T, m),
477
+ onClick: (f) => M(f, T, m),
478
+ onMouseenter: (f) => r(f, T, m),
479
+ onMouseover: (f) => b(f, T, m),
480
+ onMouseout: (f) => w(f, T, m)
479
481
  }, [u.value && l("div", {
480
482
  class: "f-list-select",
481
483
  onClick: (f) => f.stopPropagation()
482
484
  }, [l(q, {
483
- id: "list-" + V(D, m),
485
+ id: "list-" + V(T, m),
484
486
  customClass: "listview-checkbox",
485
- disabled: D[o.value] || !D.checked,
486
- checked: D.checked,
487
- "onUpdate:checked": (f) => D.checked = f,
488
- onChange: (f) => T(D, m, !f.checked)
487
+ disabled: T[o.value] || !T.checked,
488
+ checked: T.checked,
489
+ "onUpdate:checked": (f) => T.checked = f,
490
+ onChange: (f) => D(T, m, !f.checked)
489
491
  }, null)]), l("div", {
490
492
  class: "f-list-content"
491
- }, [I(D, m, O)])]);
493
+ }, [I(T, m, O)])]);
492
494
  }
493
495
  return {
494
496
  renderItem: P
495
497
  };
496
498
  }
497
- function st(t, e, n, c, g, a, v, y, i, d) {
499
+ function st(t, e, n, i, g, a, v, y, c, d) {
498
500
  const u = p(t.multiSelect), o = p(t.disableField), {
499
501
  onMouseenterItem: r,
500
502
  onMouseoverItem: b,
@@ -502,16 +504,16 @@ function st(t, e, n, c, g, a, v, y, i, d) {
502
504
  } = a, {
503
505
  getKey: V,
504
506
  listViewItemClass: F,
505
- onCheckItem: T,
507
+ onCheckItem: D,
506
508
  onClickItem: M
507
509
  } = v, {
508
510
  dragstart: I,
509
511
  dragenter: P,
510
- dragover: D,
512
+ dragover: T,
511
513
  dragend: m
512
- } = c, {
514
+ } = i, {
513
515
  removeItem: O
514
- } = i, f = $(() => ({
516
+ } = c, f = $(() => ({
515
517
  margin: u.value ? "10px 0" : "10px 0px 10px 14px"
516
518
  }));
517
519
  function S(h) {
@@ -536,7 +538,7 @@ function st(t, e, n, c, g, a, v, y, i, d) {
536
538
  onDragstart: (R) => I(R, h, j),
537
539
  onDragenter: (R) => P(R, j),
538
540
  onDragend: (R) => m(R, h),
539
- onDragover: (R) => D(R, j)
541
+ onDragover: (R) => T(R, j)
540
542
  }, [u.value && l("div", {
541
543
  class: "f-list-select",
542
544
  onClick: (R) => R.stopPropagation()
@@ -546,7 +548,7 @@ function st(t, e, n, c, g, a, v, y, i, d) {
546
548
  disabled: h[o.value] || !h.checked,
547
549
  checked: h.checked,
548
550
  "onUpdate:checked": (R) => h.checked = R,
549
- onChange: (R) => T(h, j, !R.checked)
551
+ onChange: (R) => D(h, j, !R.checked)
550
552
  }, null)]), l("div", {
551
553
  class: "f-list-content"
552
554
  }, [s(h)]), l("div", {
@@ -566,17 +568,17 @@ function st(t, e, n, c, g, a, v, y, i, d) {
566
568
  renderItem: C
567
569
  };
568
570
  }
569
- function at(t, e, n, c, g, a, v, y, i, d) {
571
+ function at(t, e, n, i, g, a, v, y, c, d) {
570
572
  var V;
571
573
  const u = p(((V = t.group) == null ? void 0 : V.groupFields) || []), {
572
574
  collpaseGroupIconClass: o
573
575
  } = g, {
574
576
  toggleGroupRow: r
575
577
  } = d;
576
- function b(F, T) {
577
- T.collapse = !T.collapse, n.value = r(T.collapse ? "collapse" : "expand", T, n.value);
578
+ function b(F, D) {
579
+ D.collapse = !D.collapse, n.value = r(D.collapse ? "collapse" : "expand", D, n.value);
578
580
  }
579
- function w(F, T, M) {
581
+ function w(F, D, M) {
580
582
  return F.layer > -1 && l("div", {
581
583
  class: "f-navlookup-recentHeader",
582
584
  onClick: (I) => b(I, F)
@@ -593,21 +595,21 @@ function at(t, e, n, c, g, a, v, y, i, d) {
593
595
  };
594
596
  }
595
597
  function ot() {
596
- const t = p(-1), e = p(""), n = p(-1), c = p(!1);
598
+ const t = p(-1), e = p(""), n = p(-1), i = p(!1);
597
599
  function g(d, u, o) {
598
600
  n.value = o;
599
601
  }
600
602
  function a(d, u, o) {
601
- c.value || (n.value = o);
603
+ i.value || (n.value = o);
602
604
  }
603
605
  function v(d, u, o) {
604
606
  n.value = -1;
605
607
  }
606
608
  function y() {
607
- c.value = !0;
609
+ i.value = !0;
608
610
  }
609
- function i() {
610
- c.value = !1;
611
+ function c() {
612
+ i.value = !1;
611
613
  }
612
614
  return {
613
615
  activeIndex: t,
@@ -616,30 +618,30 @@ function ot() {
616
618
  onMouseenterItem: g,
617
619
  onMouseoverItem: a,
618
620
  onMouseoutItem: v,
619
- resumeHover: i,
621
+ resumeHover: c,
620
622
  suspendHover: y
621
623
  };
622
624
  }
623
- function rt(t, e, n, c) {
624
- const g = p(t.idField), { dataView: a } = n, v = p(-1), y = p(!1), { activeIndex: i, focusedItemId: d, hoverIndex: u, resumeHover: o, suspendHover: r } = c;
625
- function b(T, M, I) {
626
- T.stopPropagation(), r(), M && setTimeout(() => {
625
+ function rt(t, e, n, i) {
626
+ const g = p(t.idField), { dataView: a } = n, v = p(-1), y = p(!1), { activeIndex: c, focusedItemId: d, hoverIndex: u, resumeHover: o, suspendHover: r } = i;
627
+ function b(D, M, I) {
628
+ D.stopPropagation(), r(), M && setTimeout(() => {
627
629
  v.value = I, y.value = !0, M.moving = !0;
628
630
  });
629
631
  }
630
- function w(T, M) {
631
- if (T.preventDefault(), v.value !== M) {
632
+ function w(D, M) {
633
+ if (D.preventDefault(), v.value !== M) {
632
634
  const I = a.value[v.value], P = a.value;
633
635
  P.splice(v.value, 1), P.splice(M, 0, I), v.value = M;
634
636
  }
635
637
  }
636
- function V(T, M) {
637
- T.preventDefault(), T.dataTransfer && (T.dataTransfer.dropEffect = "move");
638
+ function V(D, M) {
639
+ D.preventDefault(), D.dataTransfer && (D.dataTransfer.dropEffect = "move");
638
640
  }
639
- function F(T, M) {
641
+ function F(D, M) {
640
642
  M && (M.moving = !1), a.value.forEach((I, P) => {
641
643
  I.__fv_index__ = P;
642
- }), y.value = !1, o(), u.value = M.raw.__fv_index__, i.value = M.raw.__fv_index__, d.value = M.raw[g.value], e.emit("change", a.value), e.emit("activeChange", M);
644
+ }), y.value = !1, o(), u.value = M.raw.__fv_index__, c.value = M.raw.__fv_index__, d.value = M.raw[g.value], e.emit("change", a.value), e.emit("activeChange", M);
643
645
  }
644
646
  return {
645
647
  dragstart: b,
@@ -650,23 +652,23 @@ function rt(t, e, n, c) {
650
652
  };
651
653
  }
652
654
  function it(t, e, n) {
653
- const { dataView: c } = n;
655
+ const { dataView: i } = n;
654
656
  function g(a) {
655
- if (a > -1 && a < c.value.length) {
656
- const v = c.value.splice(a, 1);
657
+ if (a > -1 && a < i.value.length) {
658
+ const v = i.value.splice(a, 1);
657
659
  e.emit("removeItem", v[0]);
658
660
  }
659
661
  }
660
662
  return { removeItem: g };
661
663
  }
662
- function ct(t, e, n, c, g, a) {
663
- const v = p(t.idField), y = p(t.disableField), i = p(t.draggable), d = p(t.itemClass), u = p(t.selection.multiSelect ?? !1), o = p(t.selection.multiSelectMode);
664
+ function ct(t, e, n, i, g, a) {
665
+ const v = p(t.idField), y = p(t.disableField), c = p(t.draggable), d = p(t.itemClass), u = p(t.selection.multiSelect ?? !1), o = p(t.selection.multiSelectMode);
664
666
  p(!0);
665
- const { isDragging: r } = c, { activeIndex: b, focusedItemId: w, hoverIndex: V } = g, { clearSelection: F, getSelectedItems: T, toggleSelectItem: M } = a, I = p(T());
667
+ const { isDragging: r } = i, { activeIndex: b, focusedItemId: w, hoverIndex: V } = g, { clearSelection: F, getSelectedItems: D, toggleSelectItem: M } = a, I = p(D());
666
668
  function P(s, C) {
667
669
  const h = {
668
670
  "f-list-view-group-item": !0,
669
- "f-list-view-draggable-item": i.value,
671
+ "f-list-view-draggable-item": c.value,
670
672
  "f-un-click": !s.checked,
671
673
  "f-un-select": !!s.raw[y.value],
672
674
  "f-listview-active": s.raw.__fv_index__ === b.value,
@@ -675,7 +677,7 @@ function ct(t, e, n, c, g, a) {
675
677
  };
676
678
  return d.value.split(" ").reduce((E, R) => (E[R] = !0, E), h), h;
677
679
  }
678
- function D(s, C) {
680
+ function T(s, C) {
679
681
  return s.raw[v.value] || "";
680
682
  }
681
683
  const m = $(() => !u.value);
@@ -688,29 +690,29 @@ function ct(t, e, n, c, g, a) {
688
690
  s.preventDefault(), s.stopPropagation();
689
691
  return;
690
692
  }
691
- w.value = C.raw[v.value], b.value = h, f.value && F(n.value), S.value && (M(C), I.value = T()), e.emit("clickItem", { data: I.value, index: h }), e.emit("activeChange", I.value);
693
+ w.value = C.raw[v.value], b.value = h, f.value && F(n.value), S.value && (M(C), I.value = D()), e.emit("clickItem", { data: I.value, index: h }), e.emit("activeChange", I.value);
692
694
  }
693
695
  return {
694
- getKey: D,
696
+ getKey: T,
695
697
  listViewItemClass: P,
696
698
  onCheckItem: O,
697
699
  onClickItem: k
698
700
  };
699
701
  }
700
- function ut(t, e, n, c, g, a, v) {
701
- const y = p(t.view), i = p(t.view === "CardView"), d = p({}), u = p("暂无数据"), o = ot(), r = rt(t, e, c, o), b = it(t, e, c), w = ct(t, e, n, r, o, a), V = $(() => ({
702
+ function ut(t, e, n, i, g, a, v) {
703
+ const y = p(t.view), c = p(t.view === "CardView"), d = p({}), u = p("暂无数据"), o = ot(), r = rt(t, e, i, o), b = it(t, e, i), w = ct(t, e, n, r, o, a), V = $(() => ({
702
704
  "f-list-view-group": !0,
703
- "d-flex": i.value,
704
- "flex-wrap": i.value
705
- })), F = $(() => !!n.value && n.value.length > 0), T = $(() => n.value.length === 0), M = $(() => T.value && !e.slots.empty);
705
+ "d-flex": c.value,
706
+ "flex-wrap": c.value
707
+ })), F = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0), M = $(() => D.value && !e.slots.empty);
706
708
  function I() {
707
709
  return y.value === "SingleView" ? W : y.value === "DraggableView" ? st : (y.value === "ContentView" || y.value === "CardView") && e.slots.content ? lt : W;
708
710
  }
709
711
  const P = I(), {
710
- renderItem: D
712
+ renderItem: T
711
713
  } = P(t, e, n, r, g, o, w, a, b, v), {
712
714
  renderItem: m
713
- } = at(t, e, n, r, g, o, w, a, b, v), O = [D, m];
715
+ } = at(t, e, n, r, g, o, w, a, b, v), O = [T, m];
714
716
  function f() {
715
717
  return n.value.filter((s) => s.visible !== !1).map((s, C) => O[s.type](s, C, d));
716
718
  }
@@ -732,29 +734,29 @@ function ut(t, e, n, c, g, a, v) {
732
734
  };
733
735
  }
734
736
  function ft(t, e, n) {
735
- function c() {
737
+ function i() {
736
738
  return e.slots.header && l("div", {
737
739
  class: "f-list-view-header"
738
740
  }, [e.slots.header()]);
739
741
  }
740
742
  return {
741
- renderHeader: c
743
+ renderHeader: i
742
744
  };
743
745
  }
744
746
  function J(t, e, n) {
745
- const c = p(t.headerClass), g = p(t.placeholder), a = p(""), v = $(() => !a.value), y = $(() => !!a.value);
746
- function i(r) {
747
+ const i = p(t.headerClass), g = p(t.placeholder), a = p(""), v = $(() => !a.value), y = $(() => !!a.value);
748
+ function c(r) {
747
749
  a.value = "";
748
750
  }
749
751
  X(a, (r) => {
750
- n.search(r);
752
+ t.enableHighlightSearch && n.search(r), e.emit("afterSearch", r);
751
753
  });
752
754
  const d = $(() => {
753
755
  const r = {
754
756
  "form-group": !0,
755
757
  "farris-form-group": !0
756
758
  };
757
- return c.value && c.value.split(" ").reduce((w, V) => (w[V] = !0, w), r), r;
759
+ return i.value && i.value.split(" ").reduce((w, V) => (w[V] = !0, w), r), r;
758
760
  });
759
761
  function u(r) {
760
762
  }
@@ -781,7 +783,7 @@ function J(t, e, n) {
781
783
  class: "input-group-append"
782
784
  }, [y.value && l("span", {
783
785
  class: "input-group-text input-group-clear",
784
- onClick: (r) => i()
786
+ onClick: (r) => c()
785
787
  }, [l("i", {
786
788
  class: "f-icon f-icon-close-circle"
787
789
  }, null)]), v.value && l("span", {
@@ -797,9 +799,9 @@ function J(t, e, n) {
797
799
  const L = /* @__PURE__ */ G({
798
800
  name: "FListView",
799
801
  props: ee,
800
- emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
802
+ emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
801
803
  setup(t, e) {
802
- const n = p(), c = p(!0), g = p(!1), a = p([]), v = 0, y = p(t.columns), i = re(t), d = ie(t), u = ce(t, i), o = ue(t), r = fe(t, /* @__PURE__ */ new Map(), d, i, o), b = de(t, r, i, a, e), w = nt(t, n), V = $(() => r.dataView.value.length), F = pe(t, i), T = ve(), M = he(t, {}, T), I = ge(t, F, d, i, T, M), P = me(t, i, M, I), D = ye(t, i, M, I), m = Ce(t, y, r, V, v, I, P, D), {
804
+ const n = p(), i = p(!0), g = p(!1), a = p([]), v = 0, y = p(t.columns), c = re(t), d = ie(t), u = ce(t, c), o = ue(t), r = fe(t, /* @__PURE__ */ new Map(), d, c, o), b = de(t, r, c, a, e), w = nt(t, n), V = $(() => r.dataView.value.length), F = pe(t, c), D = ve(), M = he(t, {}, D), I = ge(t, F, d, c, D, M), P = me(t, c, M, I), T = ye(t, c, M, I), m = Ce(t, y, r, V, v, I, P, T), {
803
805
  getVisualData: O
804
806
  } = m;
805
807
  a.value = O(0, V.value + v - 1);
@@ -809,7 +811,7 @@ const L = /* @__PURE__ */ G({
809
811
  "f-list-view-multiple": t.multiSelect
810
812
  };
811
813
  return t.size !== "default" && (A[`${t.size}-item`] = !0), A;
812
- }), S = $(() => !!e.slots.footer || c.value);
814
+ }), S = $(() => !!e.slots.footer || i.value);
813
815
  function k() {
814
816
  return t.header === "SearchBar" ? J : t.header === "ContentHeader" ? ft : J;
815
817
  }
@@ -852,12 +854,12 @@ const L = /* @__PURE__ */ G({
852
854
  props: U,
853
855
  emits: ["change", "activeChange"],
854
856
  setup(t, e) {
855
- const n = p(t.identifyField), c = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), i = p(t.selections || []), d = $(() => i.value.map((S) => S[n.value])), u = /* @__PURE__ */ new Map(), o = p();
857
+ const n = p(t.identifyField), i = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), c = p(t.selections || []), d = $(() => c.value.map((S) => S[n.value])), u = /* @__PURE__ */ new Map(), o = p();
856
858
  function r() {
857
859
  const S = /* @__PURE__ */ new Map(), k = t.selectionValues || [];
858
860
  k.length && k.reduce((C, h) => (C.set(h, !0), C), S);
859
861
  const s = t.selections || [];
860
- s.length && (S.clear(), s.reduce((C, h) => (C.set(h[n.value], !0), C), S)), i.value.length || (i.value = y.value.filter((C) => S.has(C[n.value])).map((C) => Object.assign({}, C))), y.value.forEach((C) => {
862
+ s.length && (S.clear(), s.reduce((C, h) => (C.set(h[n.value], !0), C), S)), c.value.length || (c.value = y.value.filter((C) => S.has(C[n.value])).map((C) => Object.assign({}, C))), y.value.forEach((C) => {
861
863
  const h = C[n.value], j = S.has(h);
862
864
  C.checked = j, j && u.set(h, C);
863
865
  });
@@ -865,7 +867,7 @@ const L = /* @__PURE__ */ G({
865
867
  r();
866
868
  const b = $(() => a.value === "List"), w = $(() => a.value === "Tree");
867
869
  function V(S) {
868
- i.value = S.map((k) => Object.assign({}, k)), e.emit("change", i.value);
870
+ c.value = S.map((k) => Object.assign({}, k)), e.emit("change", c.value);
869
871
  }
870
872
  function F() {
871
873
  return l(L, {
@@ -889,7 +891,7 @@ const L = /* @__PURE__ */ G({
889
891
  default: () => [H(" ")]
890
892
  });
891
893
  }
892
- function T() {
894
+ function D() {
893
895
  return l(B, null, null);
894
896
  }
895
897
  function M() {
@@ -899,37 +901,37 @@ const L = /* @__PURE__ */ G({
899
901
  class: "f-utils-flex-column option-pane-content f-utils-fill"
900
902
  }, [l("div", {
901
903
  class: "container columns-box d-flex f-utils-fill"
902
- }, [b.value && F(), w.value && T()])])]);
904
+ }, [b.value && F(), w.value && D()])])]);
903
905
  }
904
906
  function I(S) {
905
907
  const k = S[n.value];
906
908
  if (k !== null || k !== void 0) {
907
- i.value = i.value.filter((C) => C[n.value] !== k);
909
+ c.value = c.value.filter((C) => C[n.value] !== k);
908
910
  const s = u.get(k);
909
- s && (s.checked = !1, u.delete(k)), e.emit("change", i.value);
911
+ s && (s.checked = !1, u.delete(k)), e.emit("change", c.value);
910
912
  }
911
913
  }
912
- X(i, (S) => {
914
+ X(c, (S) => {
913
915
  o.value.updateDataSource(S);
914
916
  });
915
917
  function P(S) {
916
918
  const k = /* @__PURE__ */ new Map();
917
- i.value.reduce((s, C) => (s.set(C[n.value], C), s), k), i.value = S.map((s) => k.get(s[n.value])), e.emit("change", i.value);
919
+ c.value.reduce((s, C) => (s.set(C[n.value], C), s), k), c.value = S.map((s) => k.get(s[n.value])), e.emit("change", c.value);
918
920
  }
919
- function D(S) {
921
+ function T(S) {
920
922
  e.emit("activeChange", S);
921
923
  }
922
924
  function m() {
923
925
  return l(L, {
924
926
  ref: o,
925
927
  style: "flex:1",
926
- data: i.value,
928
+ data: c.value,
927
929
  draggable: !0,
928
930
  view: "DraggableView",
929
931
  "keep-order": !0,
930
932
  onChange: P,
931
933
  onRemoveItem: I,
932
- onActiveChange: D
934
+ onActiveChange: T
933
935
  }, null);
934
936
  }
935
937
  function O() {
@@ -941,9 +943,9 @@ const L = /* @__PURE__ */ G({
941
943
  class: "selection-pane-title"
942
944
  }, [l("span", {
943
945
  class: "selection-title"
944
- }, [c.value]), l("span", {
946
+ }, [i.value]), l("span", {
945
947
  class: "selection-count"
946
- }, [i.value && i.value.length]), l("span", {
948
+ }, [c.value && c.value.length]), l("span", {
947
949
  class: "selection-item-title"
948
950
  }, [g.value])]), l("div", {
949
951
  class: "container columns-box f-utils-fill d-flex"
@@ -961,14 +963,14 @@ const L = /* @__PURE__ */ G({
961
963
  }
962
964
  });
963
965
  function dt(t, e, n) {
964
- var D;
965
- function c() {
966
+ var T;
967
+ function i() {
966
968
  }
967
969
  const g = "", a = "", v = p();
968
970
  function y() {
969
971
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
970
972
  }
971
- function i() {
973
+ function c() {
972
974
  return !1;
973
975
  }
974
976
  function d() {
@@ -999,7 +1001,7 @@ function dt(t, e, n) {
999
1001
  }
1000
1002
  function F(m, O) {
1001
1003
  }
1002
- function T(m) {
1004
+ function D(m) {
1003
1005
  const { componentType: O } = m;
1004
1006
  let f = N(O, m);
1005
1007
  const S = O.toLowerCase().replace("-", "_");
@@ -1018,12 +1020,12 @@ function dt(t, e, n) {
1018
1020
  }
1019
1021
  return v.value = {
1020
1022
  canMove: y(),
1021
- canSelectParent: i(),
1023
+ canSelectParent: c(),
1022
1024
  canDelete: d(),
1023
1025
  canNested: !u(),
1024
1026
  contents: e == null ? void 0 : e.schema.contents,
1025
1027
  elementRef: t,
1026
- parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
1028
+ parent: (T = e == null ? void 0 : e.parent) == null ? void 0 : T.componentInstance,
1027
1029
  schema: e == null ? void 0 : e.schema,
1028
1030
  styles: g,
1029
1031
  designerClass: a,
@@ -1036,8 +1038,8 @@ function dt(t, e, n) {
1036
1038
  onAcceptMovedChildElement: F,
1037
1039
  onAcceptNewChildElement: M,
1038
1040
  onChildElementMovedOut: I,
1039
- addNewChildComponentSchema: T,
1040
- updateDragAndDropRules: c,
1041
+ addNewChildComponentSchema: D,
1042
+ updateDragAndDropRules: i,
1041
1043
  triggerBelongedComponentToMoveWhenMoved: p(!1),
1042
1044
  triggerBelongedComponentToDeleteWhenDeleted: p(!1)
1043
1045
  }, v;
@@ -1047,12 +1049,12 @@ const pt = /* @__PURE__ */ G({
1047
1049
  props: U,
1048
1050
  emits: ["change"],
1049
1051
  setup(t, e) {
1050
- const n = p(t.identifyField), c = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), i = p(t.selections || []), d = $(() => i.value.map((k) => k[n.value])), u = /* @__PURE__ */ new Map();
1052
+ const n = p(t.identifyField), i = p("已选:"), g = p("项数据"), a = p(t.displayType), v = p(!1), y = p(t.dataSource), c = p(t.selections || []), d = $(() => c.value.map((k) => k[n.value])), u = /* @__PURE__ */ new Map();
1051
1053
  function o() {
1052
1054
  const k = /* @__PURE__ */ new Map(), s = t.selectionValues || [];
1053
1055
  s.length && s.reduce((h, j) => (h.set(j, !0), h), k);
1054
1056
  const C = t.selections || [];
1055
- C.length && (k.clear(), C.reduce((h, j) => (h.set(j[n.value], !0), h), k)), i.value.length || (i.value = y.value.filter((h) => k.has(h[n.value])).map((h) => Object.assign({}, h))), y.value.forEach((h) => {
1057
+ C.length && (k.clear(), C.reduce((h, j) => (h.set(j[n.value], !0), h), k)), c.value.length || (c.value = y.value.filter((h) => k.has(h[n.value])).map((h) => Object.assign({}, h))), y.value.forEach((h) => {
1056
1058
  const j = h[n.value], E = k.has(j);
1057
1059
  h.checked = E, E && u.set(j, h);
1058
1060
  });
@@ -1060,7 +1062,7 @@ const pt = /* @__PURE__ */ G({
1060
1062
  o();
1061
1063
  const r = $(() => a.value === "List"), b = $(() => a.value === "Tree");
1062
1064
  function w(k) {
1063
- i.value = k.map((s) => Object.assign({}, s)), e.emit("change", i.value);
1065
+ c.value = k.map((s) => Object.assign({}, s)), e.emit("change", c.value);
1064
1066
  }
1065
1067
  function V() {
1066
1068
  return l(L, {
@@ -1079,7 +1081,7 @@ const pt = /* @__PURE__ */ G({
1079
1081
  function F() {
1080
1082
  return l(B, null, null);
1081
1083
  }
1082
- function T() {
1084
+ function D() {
1083
1085
  return l("div", {
1084
1086
  class: "f-utils-fill option-pane d-flex flex-column"
1085
1087
  }, [l("div", {
@@ -1091,19 +1093,19 @@ const pt = /* @__PURE__ */ G({
1091
1093
  function M(k) {
1092
1094
  const s = k[n.value];
1093
1095
  if (s !== null || s !== void 0) {
1094
- i.value = i.value.filter((h) => h[n.value] !== s);
1096
+ c.value = c.value.filter((h) => h[n.value] !== s);
1095
1097
  const C = u.get(s);
1096
- C && (C.checked = !1, u.delete(s)), e.emit("change", i.value);
1098
+ C && (C.checked = !1, u.delete(s)), e.emit("change", c.value);
1097
1099
  }
1098
1100
  }
1099
1101
  function I(k) {
1100
1102
  const s = /* @__PURE__ */ new Map();
1101
- i.value.reduce((C, h) => (C.set(h[n.value], h), C), s), i.value = k.map((C) => s.get(C[n.value])), e.emit("change", i.value);
1103
+ c.value.reduce((C, h) => (C.set(h[n.value], h), C), s), c.value = k.map((C) => s.get(C[n.value])), e.emit("change", c.value);
1102
1104
  }
1103
1105
  function P() {
1104
1106
  return l(L, {
1105
1107
  style: "flex:1",
1106
- data: i.value,
1108
+ data: c.value,
1107
1109
  draggable: !0,
1108
1110
  view: "DraggableView",
1109
1111
  "keep-order": !0,
@@ -1113,7 +1115,7 @@ const pt = /* @__PURE__ */ G({
1113
1115
  default: () => [H(" ")]
1114
1116
  });
1115
1117
  }
1116
- function D() {
1118
+ function T() {
1117
1119
  return l("div", {
1118
1120
  class: "f-utils-fill selection-pane d-flex flex-column"
1119
1121
  }, [l("div", {
@@ -1122,9 +1124,9 @@ const pt = /* @__PURE__ */ G({
1122
1124
  class: "selection-pane-title"
1123
1125
  }, [l("span", {
1124
1126
  class: "selection-title"
1125
- }, [c.value]), l("span", {
1127
+ }, [i.value]), l("span", {
1126
1128
  class: "selection-count"
1127
- }, [i.value && i.value.length]), l("span", {
1129
+ }, [c.value && c.value.length]), l("span", {
1128
1130
  class: "selection-item-title"
1129
1131
  }, [g.value])]), l("div", {
1130
1132
  class: "container columns-box f-utils-fill d-flex"
@@ -1141,7 +1143,7 @@ const pt = /* @__PURE__ */ G({
1141
1143
  ref: O,
1142
1144
  class: m.value,
1143
1145
  style: "height:480px"
1144
- }, [T(), D()]);
1146
+ }, [D(), T()]);
1145
1147
  }
1146
1148
  }), vt = (t) => {
1147
1149
  const e = t;