@farris/ui-vue 1.3.0 → 1.3.1

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 (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,104 +1,104 @@
1
- import { ref as h, computed as $, createVNode as l, Fragment as B, watch as Q, withModifiers as ne, withDirectives as le, vModelText as se, defineComponent as G, createTextVNode as _, inject as ae, onMounted as oe } from "vue";
2
- import { isPlainObject as W, cloneDeep as ie } from "lodash-es";
3
- import { useIdentify as re, useHierarchy as ce, useGroupData as ue, usePagination as fe, useDataView as de, useSelection as pe, useEdit as ve, useVisualDataBound as ge, useVisualDataCell as he, useVisualDataRow as me, useVisualGroupRow as ye, useVisualSummaryRow as we, useVisualData as Ce } from "../data-view/index.esm.js";
4
- import { FCheckBox as q } from "../checkbox/index.esm.js";
5
- const Y = {}, Z = {};
6
- function z(t) {
7
- const { properties: e, title: n, ignore: u } = t, v = u && Array.isArray(u), a = Object.keys(e).reduce((r, m) => ((!v || !u.find((c) => c == m)) && (r[m] = e[m].type === "object" && e[m].properties ? z(e[m]) : ie(e[m].default)), r), {});
8
- return (!v || !u.find((r) => r == "id")) && (a.id = `${n}-${Date.now()}`), a;
1
+ import { ref as h, computed as $, createVNode as l, Fragment as B, watch as J, withModifiers as ne, withDirectives as le, vModelText as se, defineComponent as N, createTextVNode as _, inject as ae, onMounted as oe } from "vue";
2
+ import { isPlainObject as U, cloneDeep as ie } from "lodash-es";
3
+ import { useIdentify as re, useHierarchy as ce, useGroupData as ue, usePagination as fe, useDataView as de, useSelection as pe, useEdit as ve, useVisualDataBound as he, useVisualDataCell as ge, useVisualDataRow as me, useVisualGroupRow as ye, useVisualSummaryRow as we, useVisualData as Ce } from "../data-view/index.esm.js";
4
+ import { FCheckBox as G } from "../checkbox/index.esm.js";
5
+ const Q = {}, Y = {};
6
+ function q(t) {
7
+ const { properties: e, title: n, ignore: c } = t, p = c && Array.isArray(c), s = Object.keys(e).reduce((r, g) => ((!p || !c.find((i) => i == g)) && (r[g] = e[g].type === "object" && e[g].properties ? q(e[g]) : ie(e[g].default)), r), {});
8
+ return n && (!p || !c.find((r) => r == "id")) && (s.id = `${n}-${Date.now()}`), s;
9
9
  }
10
- function N(t, e = {}, n) {
11
- const u = Y[t];
12
- if (u) {
13
- let v = z(u);
14
- const a = Z[t];
15
- return v = a ? a({ getSchemaByType: N }, v, e, n) : v, v;
10
+ function Z(t, e = {}, n) {
11
+ const c = Q[t];
12
+ if (c) {
13
+ let p = q(c);
14
+ const s = Y[t];
15
+ return p = s ? s({ getSchemaByType: Z }, p, e, n) : p, p;
16
16
  }
17
17
  return null;
18
18
  }
19
- function Se(t, e) {
20
- const n = z(e);
21
- return Object.keys(t).reduce((u, v) => (u[v] && W(u[v]) && W(t[v]) ? Object.assign(u[v], t[v]) : u[v] = t[v], u), n), n;
22
- }
23
19
  function be(t, e) {
24
- return Object.keys(t).filter((u) => t[u] != null).reduce((u, v) => {
25
- if (e.has(v)) {
26
- const a = e.get(v);
27
- if (typeof a == "string")
28
- u[a] = t[v];
20
+ const n = q(e);
21
+ return Object.keys(t).reduce((c, p) => (c[p] && U(c[p]) && U(t[p]) ? Object.assign(c[p], t[p]) : c[p] = t[p], c), n), n;
22
+ }
23
+ function Se(t, e) {
24
+ return Object.keys(t).filter((c) => t[c] != null).reduce((c, p) => {
25
+ if (e.has(p)) {
26
+ const s = e.get(p);
27
+ if (typeof s == "string")
28
+ c[s] = t[p];
29
29
  else {
30
- const r = a(v, t[v], t);
31
- Object.assign(u, r);
30
+ const r = s(p, t[p], t);
31
+ Object.assign(c, r);
32
32
  }
33
33
  } else
34
- u[v] = t[v];
35
- return u;
34
+ c[p] = t[p];
35
+ return c;
36
36
  }, {});
37
37
  }
38
38
  function ke(t, e, n = /* @__PURE__ */ new Map()) {
39
- const u = Se(t, e);
40
- return be(u, n);
39
+ const c = be(t, e);
40
+ return Se(c, n);
41
41
  }
42
- function Me(t = {}) {
43
- function e(p, d, o, i) {
44
- if (typeof o == "number")
45
- return i[p].length === o;
46
- if (typeof o == "object") {
47
- const M = Object.keys(o)[0], b = o[M];
48
- if (M === "not")
49
- return Number(i[p].length) !== Number(b);
50
- if (M === "moreThan")
51
- return Number(i[p].length) >= Number(b);
52
- if (M === "lessThan")
53
- return Number(i[p].length) <= Number(b);
42
+ function Ve(t = {}) {
43
+ function e(d, f, a, o) {
44
+ if (typeof a == "number")
45
+ return o[d].length === a;
46
+ if (typeof a == "object") {
47
+ const V = Object.keys(a)[0], C = a[V];
48
+ if (V === "not")
49
+ return Number(o[d].length) !== Number(C);
50
+ if (V === "moreThan")
51
+ return Number(o[d].length) >= Number(C);
52
+ if (V === "lessThan")
53
+ return Number(o[d].length) <= Number(C);
54
54
  }
55
55
  return !1;
56
56
  }
57
- function n(p, d, o, i) {
58
- return i[p] && i[p].propertyValue && String(i[p].propertyValue.value) === String(o);
57
+ function n(d, f, a, o) {
58
+ return o[d] && o[d].propertyValue && String(o[d].propertyValue.value) === String(a);
59
59
  }
60
- const u = /* @__PURE__ */ new Map([
60
+ const c = /* @__PURE__ */ new Map([
61
61
  ["length", e],
62
62
  ["getProperty", n]
63
63
  ]);
64
- Object.keys(t).reduce((p, d) => (p.set(d, t[d]), p), u);
65
- function v(p, d) {
66
- const o = p;
67
- return typeof d == "number" ? [{ target: o, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: o, operator: "getProperty", param: p, value: !!d }] : typeof d == "object" ? Object.keys(d).map((i) => {
68
- if (i === "length")
69
- return { target: o, operator: "length", param: null, value: d[i] };
70
- const M = i, b = d[i];
71
- return { target: o, operator: "getProperty", param: M, value: b };
64
+ Object.keys(t).reduce((d, f) => (d.set(f, t[f]), d), c);
65
+ function p(d, f) {
66
+ const a = d;
67
+ return typeof f == "number" ? [{ target: a, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: a, operator: "getProperty", param: d, value: !!f }] : typeof f == "object" ? Object.keys(f).map((o) => {
68
+ if (o === "length")
69
+ return { target: a, operator: "length", param: null, value: f[o] };
70
+ const V = o, C = f[o];
71
+ return { target: a, operator: "getProperty", param: V, value: C };
72
72
  }) : [];
73
73
  }
74
- function a(p) {
75
- return Object.keys(p).reduce((o, i) => {
76
- const M = v(i, p[i]);
77
- return o.push(...M), o;
74
+ function s(d) {
75
+ return Object.keys(d).reduce((a, o) => {
76
+ const V = p(o, d[o]);
77
+ return a.push(...V), a;
78
78
  }, []);
79
79
  }
80
- function r(p, d) {
81
- if (u.has(p.operator)) {
82
- const o = u.get(p.operator);
83
- return o && o(p.target, p.param, p.value, d) || !1;
80
+ function r(d, f) {
81
+ if (c.has(d.operator)) {
82
+ const a = c.get(d.operator);
83
+ return a && a(d.target, d.param, d.value, f) || !1;
84
84
  }
85
85
  return !1;
86
86
  }
87
- function m(p, d) {
88
- return a(p).reduce((M, b) => M && r(b, d), !0);
87
+ function g(d, f) {
88
+ return s(d).reduce((V, C) => V && r(C, f), !0);
89
89
  }
90
- function c(p, d) {
91
- const o = Object.keys(p), i = o.includes("allOf"), M = o.includes("anyOf"), b = i || M, D = (b ? p[b ? i ? "allOf" : "anyOf" : "allOf"] : [p]).map((T) => m(T, d));
92
- return i ? !D.includes(!1) : D.includes(!0);
90
+ function i(d, f) {
91
+ const a = Object.keys(d), o = a.includes("allOf"), V = a.includes("anyOf"), C = o || V, D = (C ? d[C ? o ? "allOf" : "anyOf" : "allOf"] : [d]).map((T) => g(T, f));
92
+ return o ? !D.includes(!1) : D.includes(!0);
93
93
  }
94
- return { parseValueSchema: c };
94
+ return { parseValueSchema: i };
95
95
  }
96
- const Ve = {}, De = {};
97
- Me();
98
- function K(t, e, n = /* @__PURE__ */ new Map(), u = (r, m, c) => m, v = {}, a = (r) => r) {
99
- return Y[e.title] = e, Z[e.title] = u, Ve[e.title] = v, De[e.title] = a, (r = {}) => {
100
- const m = ke(r, e, n), c = Object.keys(t).reduce((p, d) => (p[d] = t[d].default, p), {});
101
- return Object.assign(c, m);
96
+ const Me = {}, De = {};
97
+ Ve();
98
+ function K(t, e, n = /* @__PURE__ */ new Map(), c = (r, g, i) => g, p = {}, s = (r) => r) {
99
+ return Q[e.title] = e, Y[e.title] = c, Me[e.title] = p, De[e.title] = s, (r = {}) => {
100
+ const g = ke(r, e, n), i = Object.keys(t).reduce((d, f) => (d[f] = t[f].default, d), {});
101
+ return Object.assign(i, g);
102
102
  };
103
103
  }
104
104
  function x(t, e) {
@@ -110,7 +110,7 @@ const Oe = /* @__PURE__ */ new Map([
110
110
  function Te(t, e, n) {
111
111
  return e;
112
112
  }
113
- const Ie = "transfer", Fe = "A Farris Component", je = "object", Re = {
113
+ const Fe = "transfer", Ie = "A Farris Component", je = "object", Re = {
114
114
  basic: {
115
115
  description: "Basic Infomation",
116
116
  title: "基本信息",
@@ -133,8 +133,8 @@ const Ie = "transfer", Fe = "A Farris Component", je = "object", Re = {
133
133
  }
134
134
  }
135
135
  }, $e = {
136
- title: Ie,
137
- description: Fe,
136
+ title: Fe,
137
+ description: Ie,
138
138
  type: je,
139
139
  categories: Re
140
140
  }, Pe = "https://json-schema.org/draft/2020-12/schema", Ae = "https://farris-design.gitee.io/transfer.schema.json", Le = "transfer", Ee = "A Farris Component", He = "object", _e = {
@@ -199,18 +199,18 @@ const Ie = "transfer", Fe = "A Farris Component", je = "object", Re = {
199
199
  type: "boolean",
200
200
  default: !0
201
201
  }
202
- }, Ne = [
202
+ }, Be = [
203
203
  "id",
204
204
  "type"
205
- ], Be = {
205
+ ], Ne = {
206
206
  $schema: Pe,
207
207
  $id: Ae,
208
208
  title: Le,
209
209
  description: Ee,
210
210
  type: He,
211
211
  properties: _e,
212
- required: Ne
213
- }, U = {
212
+ required: Be
213
+ }, z = {
214
214
  dataSource: {
215
215
  type: Array,
216
216
  default: []
@@ -222,13 +222,13 @@ const Ie = "transfer", Fe = "A Farris Component", je = "object", Re = {
222
222
  placeholder: { type: String, default: "" },
223
223
  selections: { type: Array, default: [] },
224
224
  selectionValues: { type: Array, default: [] }
225
- }, ee = K(U, Be, Oe, Te, $e), Ge = /* @__PURE__ */ new Map([
225
+ }, ee = K(z, Ne, Oe, Te, $e), Ge = /* @__PURE__ */ new Map([
226
226
  ["appearance", x]
227
227
  ]);
228
228
  function qe(t, e, n) {
229
229
  return e;
230
230
  }
231
- const ze = "https://json-schema.org/draft/2020-12/schema", Ue = "https://farris-design.gitee.io/list-view.schema.json", We = "list-view", Je = "A Farris Component", Xe = "object", Qe = {
231
+ const ze = "https://json-schema.org/draft/2020-12/schema", Ue = "https://farris-design.gitee.io/list-view.schema.json", We = "list-view", Xe = "A Farris Component", Je = "object", Qe = {
232
232
  id: {
233
233
  description: "The unique identifier for list-view",
234
234
  type: "string"
@@ -297,8 +297,8 @@ const ze = "https://json-schema.org/draft/2020-12/schema", Ue = "https://farris-
297
297
  $schema: ze,
298
298
  $id: Ue,
299
299
  title: We,
300
- description: Je,
301
- type: Xe,
300
+ description: Xe,
301
+ type: Je,
302
302
  properties: Qe,
303
303
  required: Ye
304
304
  }, Ke = "list-view", xe = "A Farris Component", et = "object", tt = {
@@ -372,191 +372,191 @@ const ze = "https://json-schema.org/draft/2020-12/schema", Ue = "https://farris-
372
372
  };
373
373
  K(te, Ze, Ge, qe, nt);
374
374
  function lt(t, e) {
375
- function n(a) {
375
+ function n(s) {
376
376
  const r = [];
377
- let m = a.nextNode();
378
- for (; m; )
379
- r.push(m), m = a.nextNode();
377
+ let g = s.nextNode();
378
+ for (; g; )
379
+ r.push(g), g = s.nextNode();
380
380
  return r;
381
381
  }
382
- function u(a, r) {
383
- const m = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
384
- return n(m).map((o) => ({ textNode: o, text: (o.textContent || "").toLocaleLowerCase() })).map(({ textNode: o, text: i }) => {
385
- const M = [];
386
- let b = 0;
387
- for (; b < i.length; ) {
388
- const k = i.indexOf(r, b);
382
+ function c(s, r) {
383
+ const g = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
384
+ return n(g).map((a) => ({ textNode: a, text: (a.textContent || "").toLocaleLowerCase() })).map(({ textNode: a, text: o }) => {
385
+ const V = [];
386
+ let C = 0;
387
+ for (; C < o.length; ) {
388
+ const k = o.indexOf(r, C);
389
389
  if (k === -1)
390
390
  break;
391
- M.push(k), b = k + r.length;
391
+ V.push(k), C = k + r.length;
392
392
  }
393
- return M.map((k) => {
394
- const I = new Range();
395
- return I.setStart(o, k), I.setEnd(o, k + r.length), I;
393
+ return V.map((k) => {
394
+ const F = new Range();
395
+ return F.setStart(a, k), F.setEnd(a, k + r.length), F;
396
396
  });
397
397
  }).flat();
398
398
  }
399
- function v(a) {
400
- if (!CSS.highlights || (CSS.highlights.clear(), !a || !e))
399
+ function p(s) {
400
+ if (!CSS.highlights || (CSS.highlights.clear(), !s || !e))
401
401
  return;
402
- const r = u(e.value, a.toLocaleLowerCase()), m = new Highlight(...r);
403
- CSS.highlights.set("search-result", m);
402
+ const r = c(e.value, s.toLocaleLowerCase()), g = new Highlight(...r);
403
+ CSS.highlights.set("search-result", g);
404
404
  }
405
- return { search: v };
405
+ return { search: p };
406
406
  }
407
- function J(t, e, n, u, v, a, r, m, c, p) {
408
- const d = h(t.size), o = h(t.textField), i = h(t.titleField), M = h(t.disableField), b = $(() => {
409
- var f, y;
410
- return ((f = t.selection) == null ? void 0 : f.multiSelect) && ((y = t.selection) == null ? void 0 : y.showCheckbox);
407
+ function W(t, e, n, c, p, s, r, g, i, d) {
408
+ const f = h(t.size), a = h(t.textField), o = h(t.titleField), V = h(t.disableField), C = $(() => {
409
+ var m, w;
410
+ return ((m = t.selection) == null ? void 0 : m.multiSelect) && ((w = t.selection) == null ? void 0 : w.showCheckbox);
411
411
  }), {
412
412
  onMouseenterItem: k,
413
- onMouseoverItem: I,
413
+ onMouseoverItem: F,
414
414
  onMouseoutItem: D
415
- } = a, {
416
- getKey: V,
415
+ } = s, {
416
+ getKey: M,
417
417
  listViewItemClass: T,
418
418
  onCheckItem: P,
419
- onClickItem: O
420
- } = r, w = $(() => ({
421
- margin: d.value === "small" ? "0.25rem 0" : "10px 0"
419
+ onClickItem: y
420
+ } = r, O = $(() => ({
421
+ margin: f.value === "small" ? "0.25rem 0" : "10px 0"
422
422
  }));
423
- function F(f, y, C) {
424
- return f.checked = m.findIndexInSelectedItems(f) > -1, l("li", {
425
- class: T(f, y),
426
- id: V(f, y),
427
- key: V(f, y),
428
- onClick: (s) => O(s, f, y),
429
- onMouseenter: (s) => k(s, f, y),
430
- onMouseover: (s) => I(s, f, y),
431
- onMouseout: (s) => D(s, f, y)
432
- }, [b.value && l("div", {
423
+ function I(m, w, S) {
424
+ return m.checked = g.findIndexInSelectedItems(m) > -1, l("li", {
425
+ class: T(m, w),
426
+ id: M(m, w),
427
+ key: M(m, w),
428
+ onClick: (u) => y(u, m, w),
429
+ onMouseenter: (u) => k(u, m, w),
430
+ onMouseover: (u) => F(u, m, w),
431
+ onMouseout: (u) => D(u, m, w)
432
+ }, [C.value && l("div", {
433
433
  class: "f-list-select",
434
- onClick: (s) => s.stopPropagation()
435
- }, [l(q, {
436
- id: "list-" + V(f, y),
434
+ onClick: (u) => u.stopPropagation()
435
+ }, [l(G, {
436
+ id: "list-" + M(m, w),
437
437
  customClass: "listview-checkbox",
438
- disabled: f[M.value],
439
- checked: f.checked,
440
- "onUpdate:checked": (s) => f.checked = s,
441
- onChange: (s) => {
442
- P(f, y, !s.checked);
438
+ disabled: m[V.value],
439
+ checked: m.checked,
440
+ "onUpdate:checked": (u) => m.checked = u,
441
+ onChange: (u) => {
442
+ P(m, w, !u.checked);
443
443
  }
444
444
  }, null)]), l("div", {
445
445
  class: "f-list-content"
446
446
  }, [l("div", {
447
- style: w.value,
448
- title: f.raw[i.value] || f.raw[o.value]
449
- }, [f.raw[o.value]])])]);
447
+ style: O.value,
448
+ title: m.raw[o.value] || m.raw[a.value]
449
+ }, [m.raw[a.value]])])]);
450
450
  }
451
451
  return {
452
- renderItem: F
452
+ renderItem: I
453
453
  };
454
454
  }
455
- function st(t, e, n, u, v, a, r, m, c, p) {
456
- const d = h(t.multiSelect), o = h(t.disableField), {
457
- onMouseenterItem: i,
458
- onMouseoverItem: M,
459
- onMouseoutItem: b
460
- } = a, {
455
+ function st(t, e, n, c, p, s, r, g, i, d) {
456
+ const f = h(t.multiSelect), a = h(t.disableField), {
457
+ onMouseenterItem: o,
458
+ onMouseoverItem: V,
459
+ onMouseoutItem: C
460
+ } = s, {
461
461
  getKey: k,
462
- listViewItemClass: I,
462
+ listViewItemClass: F,
463
463
  onCheckItem: D,
464
- onClickItem: V
464
+ onClickItem: M
465
465
  } = r;
466
- function T(O, w, F) {
466
+ function T(y, O, I) {
467
467
  return e.slots.content ? l(B, null, [e.slots.content && e.slots.content({
468
- item: O.raw,
469
- index: w,
470
- selectedItem: F
468
+ item: y.raw,
469
+ index: O,
470
+ selectedItem: I
471
471
  })]) : l("div", {
472
472
  style: "margin: 10px 0;"
473
- }, [O.raw.name]);
473
+ }, [y.raw.name]);
474
474
  }
475
- function P(O, w, F) {
475
+ function P(y, O, I) {
476
476
  return l("li", {
477
- class: I(O, w),
478
- id: k(O, w),
479
- key: k(O, w),
480
- onClick: (f) => V(f, O, w),
481
- onMouseenter: (f) => i(f, O, w),
482
- onMouseover: (f) => M(f, O, w),
483
- onMouseout: (f) => b(f, O, w)
484
- }, [d.value && l("div", {
477
+ class: F(y, O),
478
+ id: k(y, O),
479
+ key: k(y, O),
480
+ onClick: (m) => M(m, y, O),
481
+ onMouseenter: (m) => o(m, y, O),
482
+ onMouseover: (m) => V(m, y, O),
483
+ onMouseout: (m) => C(m, y, O)
484
+ }, [f.value && l("div", {
485
485
  class: "f-list-select",
486
- onClick: (f) => f.stopPropagation()
487
- }, [l(q, {
488
- id: "list-" + k(O, w),
486
+ onClick: (m) => m.stopPropagation()
487
+ }, [l(G, {
488
+ id: "list-" + k(y, O),
489
489
  customClass: "listview-checkbox",
490
- disabled: O[o.value] || !O.checked,
491
- checked: O.checked,
492
- "onUpdate:checked": (f) => O.checked = f,
493
- onChange: (f) => D(O, w, !f.checked)
490
+ disabled: y[a.value] || !y.checked,
491
+ checked: y.checked,
492
+ "onUpdate:checked": (m) => y.checked = m,
493
+ onChange: (m) => D(y, O, !m.checked)
494
494
  }, null)]), l("div", {
495
495
  class: "f-list-content"
496
- }, [T(O, w, F)])]);
496
+ }, [T(y, O, I)])]);
497
497
  }
498
498
  return {
499
499
  renderItem: P
500
500
  };
501
501
  }
502
- function at(t, e, n, u, v, a, r, m, c, p) {
503
- const d = h(t.multiSelect), o = h(t.disableField), {
504
- onMouseenterItem: i,
505
- onMouseoverItem: M,
506
- onMouseoutItem: b
507
- } = a, {
502
+ function at(t, e, n, c, p, s, r, g, i, d) {
503
+ const f = h(t.multiSelect), a = h(t.disableField), {
504
+ onMouseenterItem: o,
505
+ onMouseoverItem: V,
506
+ onMouseoutItem: C
507
+ } = s, {
508
508
  getKey: k,
509
- listViewItemClass: I,
509
+ listViewItemClass: F,
510
510
  onCheckItem: D,
511
- onClickItem: V
511
+ onClickItem: M
512
512
  } = r, {
513
513
  dragstart: T,
514
514
  dragenter: P,
515
- dragover: O,
516
- dragend: w
517
- } = u, {
518
- removeItem: F
519
- } = c, f = $(() => ({
520
- margin: d.value ? "10px 0" : "10px 0px 10px 14px"
515
+ dragover: y,
516
+ dragend: O
517
+ } = c, {
518
+ removeItem: I
519
+ } = i, m = $(() => ({
520
+ margin: f.value ? "10px 0" : "10px 0px 10px 14px"
521
521
  }));
522
- function y(g) {
522
+ function w(v) {
523
523
  return l("div", {
524
- style: f.value
525
- }, [g.raw.name]);
524
+ style: m.value
525
+ }, [v.raw.name]);
526
526
  }
527
- function C() {
528
- return e.slots.itemContent ? e.slots.itemContent : y;
527
+ function S() {
528
+ return e.slots.itemContent ? e.slots.itemContent : w;
529
529
  }
530
- const s = C();
531
- function S(g, j, A) {
530
+ const u = S();
531
+ function b(v, j, A) {
532
532
  return l("li", {
533
- class: I(g, j),
534
- id: k(g, j),
535
- key: k(g, j),
536
- onClick: (R) => V(R, g, j),
537
- onMouseenter: (R) => i(R, g, j),
538
- onMouseover: (R) => M(R, g, j),
539
- onMouseout: (R) => b(R, g, j),
533
+ class: F(v, j),
534
+ id: k(v, j),
535
+ key: k(v, j),
536
+ onClick: (R) => M(R, v, j),
537
+ onMouseenter: (R) => o(R, v, j),
538
+ onMouseover: (R) => V(R, v, j),
539
+ onMouseout: (R) => C(R, v, j),
540
540
  draggable: "true",
541
- onDragstart: (R) => T(R, g, j),
541
+ onDragstart: (R) => T(R, v, j),
542
542
  onDragenter: (R) => P(R, j),
543
- onDragend: (R) => w(R, g),
544
- onDragover: (R) => O(R, j)
545
- }, [d.value && l("div", {
543
+ onDragend: (R) => O(R, v),
544
+ onDragover: (R) => y(R, j)
545
+ }, [f.value && l("div", {
546
546
  class: "f-list-select",
547
547
  onClick: (R) => R.stopPropagation()
548
- }, [l(q, {
549
- id: "list-" + k(g, j),
548
+ }, [l(G, {
549
+ id: "list-" + k(v, j),
550
550
  customClass: "listview-checkbox",
551
- disabled: g[o.value] || !g.checked,
552
- checked: g.checked,
553
- "onUpdate:checked": (R) => g.checked = R,
554
- onChange: (R) => D(g, j, !R.checked)
551
+ disabled: v[a.value] || !v.checked,
552
+ checked: v.checked,
553
+ "onUpdate:checked": (R) => v.checked = R,
554
+ onChange: (R) => D(v, j, !R.checked)
555
555
  }, null)]), l("div", {
556
556
  class: "f-list-content"
557
- }, [s(g)]), l("div", {
557
+ }, [u(v)]), l("div", {
558
558
  class: "f-list-remove",
559
- onClick: (R) => F(j)
559
+ onClick: (R) => I(j)
560
560
  }, [l("div", {
561
561
  class: "f-list-remove-icon"
562
562
  }, [l("i", {
@@ -568,215 +568,215 @@ function at(t, e, n, u, v, a, r, m, c, p) {
568
568
  }, null)])])]);
569
569
  }
570
570
  return {
571
- renderItem: S
571
+ renderItem: b
572
572
  };
573
573
  }
574
- function ot(t, e, n, u, v, a, r, m, c, p) {
574
+ function ot(t, e, n, c, p, s, r, g, i, d) {
575
575
  var k;
576
- const d = h(((k = t.group) == null ? void 0 : k.groupFields) || []), {
577
- collpaseGroupIconClass: o
578
- } = v, {
579
- toggleGroupRow: i
580
- } = p;
581
- function M(I, D) {
582
- D.collapse = !D.collapse, n.value = i(D.collapse ? "collapse" : "expand", D, n.value);
576
+ const f = h(((k = t.group) == null ? void 0 : k.groupFields) || []), {
577
+ collpaseGroupIconClass: a
578
+ } = p, {
579
+ toggleGroupRow: o
580
+ } = d;
581
+ function V(F, D) {
582
+ D.collapse = !D.collapse, n.value = o(D.collapse ? "collapse" : "expand", D, n.value);
583
583
  }
584
- function b(I, D, V) {
585
- return I.layer > -1 && l("div", {
584
+ function C(F, D, M) {
585
+ return F.layer > -1 && l("div", {
586
586
  class: "f-navlookup-recentHeader",
587
- onClick: (T) => M(T, I)
587
+ onClick: (T) => V(T, F)
588
588
  }, [l("div", {
589
589
  class: "fv-grid-group-row-icon"
590
590
  }, [l("span", {
591
- class: o(I)
591
+ class: a(F)
592
592
  }, null)]), l("div", {
593
593
  class: "f-navlookup-recommandLabel"
594
- }, [I.raw[d.value[I.layer]]])]);
594
+ }, [F.raw[f.value[F.layer]]])]);
595
595
  }
596
596
  return {
597
- renderItem: b
597
+ renderItem: C
598
598
  };
599
599
  }
600
600
  function it() {
601
- const t = h(-1), e = h(""), n = h(-1), u = h(!1);
602
- function v(p, d, o) {
603
- n.value = o;
601
+ const t = h(-1), e = h(""), n = h(-1), c = h(!1);
602
+ function p(d, f, a) {
603
+ n.value = a;
604
604
  }
605
- function a(p, d, o) {
606
- u.value || (n.value = o);
605
+ function s(d, f, a) {
606
+ c.value || (n.value = a);
607
607
  }
608
- function r(p, d, o) {
608
+ function r(d, f, a) {
609
609
  n.value = -1;
610
610
  }
611
- function m() {
612
- u.value = !0;
611
+ function g() {
612
+ c.value = !0;
613
613
  }
614
- function c() {
615
- u.value = !1;
614
+ function i() {
615
+ c.value = !1;
616
616
  }
617
617
  return {
618
618
  activeIndex: t,
619
619
  focusedItemId: e,
620
620
  hoverIndex: n,
621
- onMouseenterItem: v,
622
- onMouseoverItem: a,
621
+ onMouseenterItem: p,
622
+ onMouseoverItem: s,
623
623
  onMouseoutItem: r,
624
- resumeHover: c,
625
- suspendHover: m
624
+ resumeHover: i,
625
+ suspendHover: g
626
626
  };
627
627
  }
628
- function rt(t, e, n, u) {
629
- const v = h(t.idField), { dataView: a } = n, r = h(-1), m = h(!1), { activeIndex: c, focusedItemId: p, hoverIndex: d, resumeHover: o, suspendHover: i } = u;
630
- function M(D, V, T) {
631
- D.stopPropagation(), i(), V && setTimeout(() => {
632
- r.value = T, m.value = !0, V.moving = !0;
628
+ function rt(t, e, n, c) {
629
+ const p = h(t.idField), { dataView: s } = n, r = h(-1), g = h(!1), { activeIndex: i, focusedItemId: d, hoverIndex: f, resumeHover: a, suspendHover: o } = c;
630
+ function V(D, M, T) {
631
+ D.stopPropagation(), o(), M && setTimeout(() => {
632
+ r.value = T, g.value = !0, M.moving = !0;
633
633
  });
634
634
  }
635
- function b(D, V) {
636
- if (D.preventDefault(), r.value !== V) {
637
- const T = a.value[r.value], P = a.value;
638
- P.splice(r.value, 1), P.splice(V, 0, T), r.value = V;
635
+ function C(D, M) {
636
+ if (D.preventDefault(), r.value !== M) {
637
+ const T = s.value[r.value], P = s.value;
638
+ P.splice(r.value, 1), P.splice(M, 0, T), r.value = M;
639
639
  }
640
640
  }
641
- function k(D, V) {
641
+ function k(D, M) {
642
642
  D.preventDefault(), D.dataTransfer && (D.dataTransfer.dropEffect = "move");
643
643
  }
644
- function I(D, V) {
645
- V && (V.moving = !1), a.value.forEach((T, P) => {
644
+ function F(D, M) {
645
+ M && (M.moving = !1), s.value.forEach((T, P) => {
646
646
  T.__fv_index__ = P;
647
- }), m.value = !1, o(), d.value = V.raw.__fv_index__, c.value = V.raw.__fv_index__, p.value = V.raw[v.value], e.emit("change", a.value), e.emit("activeChange", V);
647
+ }), g.value = !1, a(), f.value = M.raw.__fv_index__, i.value = M.raw.__fv_index__, d.value = M.raw[p.value], e.emit("change", s.value), e.emit("activeChange", M);
648
648
  }
649
649
  return {
650
- dragstart: M,
651
- dragenter: b,
650
+ dragstart: V,
651
+ dragenter: C,
652
652
  dragover: k,
653
- dragend: I,
654
- isDragging: m
653
+ dragend: F,
654
+ isDragging: g
655
655
  };
656
656
  }
657
657
  function ct(t, e, n) {
658
- const { dataView: u } = n;
659
- function v(a) {
660
- if (a > -1 && a < u.value.length) {
661
- const r = u.value.splice(a, 1);
658
+ const { dataView: c } = n;
659
+ function p(s) {
660
+ if (s > -1 && s < c.value.length) {
661
+ const r = c.value.splice(s, 1);
662
662
  e.emit("removeItem", r[0]);
663
663
  }
664
664
  }
665
- return { removeItem: v };
665
+ return { removeItem: p };
666
666
  }
667
- function ut(t, e, n, u, v, a) {
668
- const r = h(t.idField), m = h(t.disableField), c = h(t.draggable), p = h(t.itemClass), d = h(t.selection.multiSelect ?? !1), o = h(t.selection.multiSelectMode), { isDragging: i } = u, { activeIndex: M, focusedItemId: b, hoverIndex: k } = v, { clearSelection: I, getSelectedItems: D, toggleSelectItem: V } = a, T = h(D());
669
- function P(s, S) {
670
- const g = {
667
+ function ut(t, e, n, c, p, s) {
668
+ const r = h(t.idField), g = h(t.disableField), i = h(t.draggable), d = h(t.itemClass), f = h(t.selection.multiSelect ?? !1), a = h(t.selection.multiSelectMode), { isDragging: o } = c, { activeIndex: V, focusedItemId: C, hoverIndex: k } = p, { clearSelection: F, getSelectedItems: D, toggleSelectItem: M } = s, T = h(D());
669
+ function P(u, b) {
670
+ const v = {
671
671
  "f-listview-item": !0,
672
672
  "f-list-view-group-item": !0,
673
- "f-list-view-draggable-item": c.value,
674
- "f-un-click": !s.checked,
675
- "f-un-select": !!s.raw[m.value],
673
+ "f-list-view-draggable-item": i.value,
674
+ "f-un-click": !u.checked,
675
+ "f-un-select": !!u.raw[g.value],
676
676
  // 'f-listview-active': item.raw.__fv_index__ === activeIndex.value,
677
677
  // 多选
678
678
  "f-listview-active": T.value.findIndex(
679
- (A) => A[r.value] === s.raw[r.value]
679
+ (A) => A[r.value] === u.raw[r.value]
680
680
  ) > -1,
681
681
  "f-listview-item-active": T.value.findIndex(
682
- (A) => A[r.value] === s.raw[r.value]
682
+ (A) => A[r.value] === u.raw[r.value]
683
683
  ) > -1,
684
- "f-listview-hover": !i.value && S === k.value,
685
- "f-listview-item-hover": !i.value && S === k.value,
686
- moving: !!s.moving
684
+ "f-listview-hover": !o.value && b === k.value,
685
+ "f-listview-item-hover": !o.value && b === k.value,
686
+ moving: !!u.moving
687
687
  };
688
- return p.value.split(" ").reduce((A, R) => (A[R] = !0, A), g), g;
688
+ return d.value.split(" ").reduce((A, R) => (A[R] = !0, A), v), v;
689
689
  }
690
- function O(s, S) {
691
- return s.raw[r.value] || "";
690
+ function y(u, b) {
691
+ return u.raw[r.value] || "";
692
692
  }
693
- const w = $(() => !d.value);
694
- function F(s, S, g) {
695
- s.checked = g, !s.raw[m.value] && (w.value && (b.value = s.raw[r.value]), V(s));
693
+ const O = $(() => !f.value);
694
+ function I(u, b, v) {
695
+ u.checked = v, !u.raw[g.value] && (O.value && (C.value = u.raw[r.value]), M(u));
696
696
  }
697
- const f = $(() => d.value && o.value === "OnCheckClearByClick"), y = $(() => !d.value || d.value && (o.value === "OnCheckAndClick" || o.value === "OnClick"));
698
- function C(s, S, g) {
699
- if (S.raw[m.value]) {
700
- s.preventDefault(), s.stopPropagation();
697
+ const m = $(() => f.value && a.value === "OnCheckClearByClick"), w = $(() => !f.value || f.value && (a.value === "OnCheckAndClick" || a.value === "OnClick"));
698
+ function S(u, b, v) {
699
+ if (b.raw[g.value]) {
700
+ u.preventDefault(), u.stopPropagation();
701
701
  return;
702
702
  }
703
- b.value = S.raw[r.value], M.value = g, f.value && I(n.value), y.value && (V(S), T.value = D()), e.emit("clickItem", { data: T.value, index: g }), e.emit("activeChange", T.value);
703
+ C.value = b.raw[r.value], V.value = v, m.value && F(n.value), w.value && (M(b), T.value = D()), e.emit("clickItem", { data: T.value, index: v }), e.emit("activeChange", T.value);
704
704
  }
705
705
  return {
706
- getKey: O,
706
+ getKey: y,
707
707
  listViewItemClass: P,
708
- onCheckItem: F,
709
- onClickItem: C
708
+ onCheckItem: I,
709
+ onClickItem: S
710
710
  };
711
711
  }
712
- function ft(t, e, n, u, v, a, r) {
713
- const m = h(t.view), c = h(t.view === "CardView"), p = h({}), d = h("暂无数据"), o = it(), i = rt(t, e, u, o), M = ct(t, e, u), b = ut(t, e, n, i, o, a), k = $(() => ({
712
+ function ft(t, e, n, c, p, s, r) {
713
+ const g = h(t.view), i = h(t.view === "CardView"), d = h({}), f = h("暂无数据"), a = it(), o = rt(t, e, c, a), V = ct(t, e, c), C = ut(t, e, n, o, a, s), k = $(() => ({
714
714
  "f-list-view-group": !0,
715
- "d-flex": c.value,
716
- "flex-wrap": c.value
717
- })), I = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0);
715
+ "d-flex": i.value,
716
+ "flex-wrap": i.value
717
+ })), F = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0);
718
718
  $(() => D.value && !e.slots.empty);
719
- function V() {
720
- return m.value === "SingleView" ? J : m.value === "DraggableView" ? at : (m.value === "ContentView" || m.value === "CardView") && e.slots.content ? st : J;
719
+ function M() {
720
+ return g.value === "SingleView" ? W : g.value === "DraggableView" ? at : (g.value === "ContentView" || g.value === "CardView") && e.slots.content ? st : W;
721
721
  }
722
- const T = V(), {
722
+ const T = M(), {
723
723
  renderItem: P
724
- } = T(t, e, n, i, v, o, b, a, M, r), {
725
- renderItem: O
726
- } = ot(t, e, n, i, v, o, b, a, M, r), w = [P, O];
727
- function F() {
728
- return n.value.filter((C) => C.visible !== !1).map((C, s) => w[C.type](C, s, p));
724
+ } = T(t, e, n, o, p, a, C, s, V, r), {
725
+ renderItem: y
726
+ } = ot(t, e, n, o, p, a, C, s, V, r), O = [P, y];
727
+ function I() {
728
+ return n.value.filter((S) => S.visible !== !1).map((S, u) => O[S.type](S, u, d));
729
729
  }
730
- function f() {
730
+ function m() {
731
731
  return l("div", {
732
732
  class: "f-list-view-emptydata"
733
733
  }, [l("p", {
734
734
  class: "f-empty-title"
735
- }, [e.slots.empty ? e.slots.empty() : d.value])]);
735
+ }, [e.slots.empty ? e.slots.empty() : f.value])]);
736
736
  }
737
- function y() {
737
+ function w() {
738
738
  return l("ul", {
739
739
  class: k.value,
740
740
  style: "list-style: none;"
741
- }, [I.value && F(), D.value && f()]);
741
+ }, [F.value && I(), D.value && m()]);
742
742
  }
743
743
  return {
744
- renderListArea: y
744
+ renderListArea: w
745
745
  };
746
746
  }
747
747
  function dt(t, e, n) {
748
- function u() {
748
+ function c() {
749
749
  return e.slots.header && l("div", {
750
750
  class: "f-list-view-header"
751
751
  }, [e.slots.header()]);
752
752
  }
753
753
  return {
754
- renderHeader: u
754
+ renderHeader: c
755
755
  };
756
756
  }
757
757
  function X(t, e, n) {
758
- const u = h(t.headerClass), v = h(t.placeholder), a = h(""), r = $(() => !a.value), m = $(() => !!a.value);
759
- function c(i) {
760
- a.value = "";
758
+ const c = h(t.headerClass), p = h(t.placeholder), s = h(""), r = $(() => !s.value), g = $(() => !!s.value);
759
+ function i(o) {
760
+ s.value = "";
761
761
  }
762
- Q(a, (i) => {
763
- t.enableHighlightSearch && n.search(i), e.emit("afterSearch", i);
762
+ J(s, (o) => {
763
+ t.enableHighlightSearch && n.search(o), e.emit("afterSearch", o);
764
764
  });
765
- const p = $(() => {
766
- const i = {
765
+ const d = $(() => {
766
+ const o = {
767
767
  "form-group": !0,
768
768
  "farris-form-group": !0
769
769
  };
770
- return u.value && u.value.split(" ").reduce((b, k) => (b[k] = !0, b), i), i;
770
+ return c.value && c.value.split(" ").reduce((C, k) => (C[k] = !0, C), o), o;
771
771
  });
772
- function d(i) {
772
+ function f(o) {
773
773
  }
774
- function o() {
774
+ function a() {
775
775
  return l("div", {
776
776
  class: "f-list-view-header",
777
- onClick: ne(() => d, ["prevent", "stop"])
777
+ onClick: ne(() => f, ["prevent", "stop"])
778
778
  }, [l("div", {
779
- class: p.value
779
+ class: d.value
780
780
  }, [l("div", {
781
781
  class: "farris-input-wrap"
782
782
  }, [l("div", {
@@ -785,16 +785,16 @@ function X(t, e, n) {
785
785
  class: "input-group f-state-editable"
786
786
  }, [le(l("input", {
787
787
  class: "form-control f-utils-fill text-left",
788
- "onUpdate:modelValue": (i) => a.value = i,
788
+ "onUpdate:modelValue": (o) => s.value = o,
789
789
  name: "input-group-value",
790
790
  type: "text",
791
- placeholder: v.value,
791
+ placeholder: p.value,
792
792
  autocomplete: "off"
793
- }, null), [[se, a.value]]), l("div", {
793
+ }, null), [[se, s.value]]), l("div", {
794
794
  class: "input-group-append"
795
- }, [m.value && l("span", {
795
+ }, [g.value && l("span", {
796
796
  class: "input-group-text input-group-clear",
797
- onClick: (i) => c()
797
+ onClick: (o) => i()
798
798
  }, [l("i", {
799
799
  class: "f-icon f-icon-close-circle"
800
800
  }, null)]), r.value && l("span", {
@@ -804,38 +804,38 @@ function X(t, e, n) {
804
804
  }, null)])])])])])])]);
805
805
  }
806
806
  return {
807
- renderHeader: o
807
+ renderHeader: a
808
808
  };
809
809
  }
810
- const E = /* @__PURE__ */ G({
810
+ const E = /* @__PURE__ */ N({
811
811
  name: "FListView",
812
812
  props: te,
813
813
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
814
814
  setup(t, e) {
815
- const n = h(), u = h(!0), v = h(!1), a = h([]), r = 0, m = h(t.columns), c = re(t), p = ce(t), d = ue(t, c), o = fe(t), i = de(t, /* @__PURE__ */ new Map(), p, c, o), M = pe(t, i, c, a, e), b = lt(t, n), k = $(() => i.dataView.value.length), I = ve(t, e, c), D = ge(), V = he(t, {}, D), T = me(t, I, p, c, D, V), P = ye(t, c, V, T), O = we(t, c, V, T), w = Ce(t, m, i, k, r, T, P, O), {
816
- getVisualData: F
817
- } = w;
818
- a.value = F(0, k.value + r - 1);
819
- const f = $(() => {
815
+ const n = h(), c = h(!0), p = h(!1), s = h([]), r = 0, g = h(t.columns), i = re(t), d = ce(t), f = ue(t, i), a = fe(t), o = de(t, /* @__PURE__ */ new Map(), d, i, a), V = pe(t, o, i, s, e), C = lt(t, n), k = $(() => o.dataView.value.length), F = ve(t, e, i), D = he(), M = ge(t, {}, D), T = me(t, F, d, i, D, M), P = ye(t, i, M, T), y = we(t, i, M, T), O = Ce(t, g, o, k, r, T, P, y), {
816
+ getVisualData: I
817
+ } = O;
818
+ s.value = I(0, k.value + r - 1);
819
+ const m = $(() => {
820
820
  const L = {
821
821
  "f-list-view": !0,
822
822
  "f-list-view-multiple": t.multiSelect
823
823
  };
824
824
  return t.size !== "default" && (L[`${t.size}-item`] = !0), L;
825
- }), y = $(() => !!e.slots.footer || u.value);
826
- function C() {
825
+ }), w = $(() => !!e.slots.footer || c.value);
826
+ function S() {
827
827
  return t.header === "SearchBar" ? X : t.header === "ContentHeader" ? dt : X;
828
828
  }
829
- const s = C(), {
830
- renderHeader: S
831
- } = s(t, e, b), {
832
- renderListArea: g
833
- } = ft(t, e, a, i, d, M, w);
829
+ const u = S(), {
830
+ renderHeader: b
831
+ } = u(t, e, C), {
832
+ renderListArea: v
833
+ } = ft(t, e, s, o, f, V, O);
834
834
  function j(L) {
835
- b.search(L);
835
+ C.search(L);
836
836
  }
837
837
  function A(L) {
838
- L && (i.load(L), a.value = F(0, k.value + r - 1));
838
+ L && (o.load(L), s.value = I(0, k.value + r - 1));
839
839
  }
840
840
  e.expose({
841
841
  search: j,
@@ -845,45 +845,45 @@ const E = /* @__PURE__ */ G({
845
845
  t.multiSelect && (L.preventDefault(), L.stopPropagation());
846
846
  }
847
847
  return () => l("div", {
848
- class: f.value,
848
+ class: m.value,
849
849
  onClick: R
850
- }, [S(), l("div", {
850
+ }, [b(), l("div", {
851
851
  ref: n,
852
852
  class: "f-list-view-content",
853
853
  onMouseover: () => {
854
- v.value = !0;
854
+ p.value = !0;
855
855
  },
856
856
  onMouseleave: () => {
857
- v.value = !1;
857
+ p.value = !1;
858
858
  }
859
- }, [g()]), y.value && l("div", {
859
+ }, [v()]), w.value && l("div", {
860
860
  class: "f-list-view-footer"
861
861
  }, [e.slots.footer && e.slots.footer()])]);
862
862
  }
863
- }), H = /* @__PURE__ */ G({
863
+ }), H = /* @__PURE__ */ N({
864
864
  name: "FTransfer",
865
- props: U,
865
+ props: z,
866
866
  emits: ["change", "activeChange"],
867
867
  setup(t, e) {
868
- const n = h(t.identifyField), u = h("已选:"), v = h("项数据"), a = h(t.displayType), r = h(!1), m = h(t.dataSource), c = h(t.selections || []), p = $(() => c.value.map((y) => y[n.value])), d = /* @__PURE__ */ new Map(), o = h();
869
- function i() {
870
- const y = /* @__PURE__ */ new Map(), C = t.selectionValues || [];
871
- C.length && C.reduce((S, g) => (S.set(g, !0), S), y);
872
- const s = t.selections || [];
873
- s.length && (y.clear(), s.reduce((S, g) => (S.set(g[n.value], !0), S), y)), c.value.length || (c.value = m.value.filter((S) => y.has(S[n.value])).map((S) => Object.assign({}, S))), m.value.forEach((S) => {
874
- const g = S[n.value], j = y.has(g);
875
- S.checked = j, j && d.set(g, S);
868
+ const n = h(t.identifyField), c = h("已选:"), p = h("项数据"), s = h(t.displayType), r = h(!1), g = h(t.dataSource), i = h(t.selections || []), d = $(() => i.value.map((w) => w[n.value])), f = /* @__PURE__ */ new Map(), a = h();
869
+ function o() {
870
+ const w = /* @__PURE__ */ new Map(), S = t.selectionValues || [];
871
+ S.length && S.reduce((b, v) => (b.set(v, !0), b), w);
872
+ const u = t.selections || [];
873
+ u.length && (w.clear(), u.reduce((b, v) => (b.set(v[n.value], !0), b), w)), i.value.length || (i.value = g.value.filter((b) => w.has(b[n.value])).map((b) => Object.assign({}, b))), g.value.forEach((b) => {
874
+ const v = b[n.value], j = w.has(v);
875
+ b.checked = j, j && f.set(v, b);
876
876
  });
877
877
  }
878
- i();
879
- const M = $(() => a.value === "List"), b = $(() => a.value === "Tree");
880
- function k(y) {
881
- c.value = y.map((C) => Object.assign({}, C)), e.emit("change", c.value);
878
+ o();
879
+ const V = $(() => s.value === "List"), C = $(() => s.value === "Tree");
880
+ function k(w) {
881
+ i.value = w.map((S) => Object.assign({}, S)), e.emit("change", i.value);
882
882
  }
883
- function I() {
883
+ function F() {
884
884
  return l(E, {
885
885
  class: "f-utils-fill",
886
- data: m.value,
886
+ data: g.value,
887
887
  multiSelect: !0,
888
888
  selection: {
889
889
  enableSelectRow: !0,
@@ -896,7 +896,7 @@ const E = /* @__PURE__ */ G({
896
896
  draggable: !1,
897
897
  header: "Search",
898
898
  headerClass: "transfer-search-box",
899
- "selection-values": p.value,
899
+ "selection-values": d.value,
900
900
  onSelectionChange: k
901
901
  }, {
902
902
  default: () => [_(" ")]
@@ -905,47 +905,47 @@ const E = /* @__PURE__ */ G({
905
905
  function D() {
906
906
  return l(B, null, null);
907
907
  }
908
- function V() {
908
+ function M() {
909
909
  return l("div", {
910
910
  class: "f-utils-fill option-pane d-flex flex-column"
911
911
  }, [l("div", {
912
912
  class: "f-utils-flex-column option-pane-content f-utils-fill"
913
913
  }, [l("div", {
914
914
  class: "container columns-box d-flex f-utils-fill"
915
- }, [M.value && I(), b.value && D()])])]);
915
+ }, [V.value && F(), C.value && D()])])]);
916
916
  }
917
- function T(y) {
918
- const C = y[n.value];
919
- if (C !== null || C !== void 0) {
920
- c.value = c.value.filter((S) => S[n.value] !== C);
921
- const s = d.get(C);
922
- s && (s.checked = !1, d.delete(C)), e.emit("change", c.value);
917
+ function T(w) {
918
+ const S = w[n.value];
919
+ if (S !== null || S !== void 0) {
920
+ i.value = i.value.filter((b) => b[n.value] !== S);
921
+ const u = f.get(S);
922
+ u && (u.checked = !1, f.delete(S)), e.emit("change", i.value);
923
923
  }
924
924
  }
925
- Q(c, (y) => {
926
- o.value.updateDataSource(y);
925
+ J(i, (w) => {
926
+ a.value.updateDataSource(w);
927
927
  });
928
- function P(y) {
929
- const C = /* @__PURE__ */ new Map();
930
- c.value.reduce((s, S) => (s.set(S[n.value], S), s), C), c.value = y.map((s) => C.get(s[n.value])), e.emit("change", c.value);
928
+ function P(w) {
929
+ const S = /* @__PURE__ */ new Map();
930
+ i.value.reduce((u, b) => (u.set(b[n.value], b), u), S), i.value = w.map((u) => S.get(u[n.value])), e.emit("change", i.value);
931
931
  }
932
- function O(y) {
933
- e.emit("activeChange", y);
932
+ function y(w) {
933
+ e.emit("activeChange", w);
934
934
  }
935
- function w() {
935
+ function O() {
936
936
  return l(E, {
937
- ref: o,
937
+ ref: a,
938
938
  style: "flex:1",
939
- data: c.value,
939
+ data: i.value,
940
940
  draggable: !0,
941
941
  view: "DraggableView",
942
942
  "keep-order": !0,
943
943
  onChange: P,
944
944
  onRemoveItem: T,
945
- onActiveChange: O
945
+ onActiveChange: y
946
946
  }, null);
947
947
  }
948
- function F() {
948
+ function I() {
949
949
  return l("div", {
950
950
  class: "f-utils-fill selection-pane d-flex flex-column"
951
951
  }, [l("div", {
@@ -954,142 +954,134 @@ const E = /* @__PURE__ */ G({
954
954
  class: "selection-pane-title"
955
955
  }, [l("span", {
956
956
  class: "selection-title"
957
- }, [u.value]), l("span", {
957
+ }, [c.value]), l("span", {
958
958
  class: "selection-count"
959
- }, [c.value && c.value.length]), l("span", {
959
+ }, [i.value && i.value.length]), l("span", {
960
960
  class: "selection-item-title"
961
- }, [v.value])]), l("div", {
961
+ }, [p.value])]), l("div", {
962
962
  class: "container columns-box f-utils-fill d-flex"
963
- }, [w()])])]);
963
+ }, [O()])])]);
964
964
  }
965
- const f = $(() => ({
965
+ const m = $(() => ({
966
966
  transfer: !0,
967
967
  row: !0,
968
968
  "f-utils-fill": r.value
969
969
  }));
970
970
  return () => l("div", {
971
- class: f.value,
971
+ class: m.value,
972
972
  style: "height:480px"
973
- }, [V(), F()]);
973
+ }, [M(), I()]);
974
974
  }
975
975
  });
976
976
  function pt(t, e, n) {
977
- var O;
978
- function u() {
977
+ var P;
978
+ function c() {
979
979
  }
980
- const v = "", a = "", r = h();
981
- function m() {
980
+ const p = "", s = "", r = h();
981
+ function g() {
982
982
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
983
983
  }
984
- function c() {
984
+ function i() {
985
985
  return !1;
986
986
  }
987
- function p() {
987
+ function d() {
988
988
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
989
989
  }
990
- function d() {
990
+ function f() {
991
991
  return (e == null ? void 0 : e.schema.componentType) === "frame";
992
992
  }
993
- function o(w) {
994
- if (!w || !w.value)
993
+ function a(y) {
994
+ if (!y || !y.value)
995
995
  return null;
996
- if (w.value.schema && w.value.schema.type === "component")
997
- return w.value;
998
- const F = h(w == null ? void 0 : w.value.parent), f = o(F);
999
- return f || null;
996
+ if (y.value.schema && y.value.schema.type === "component")
997
+ return y.value;
998
+ const O = h(y == null ? void 0 : y.value.parent), I = a(O);
999
+ return I || null;
1000
1000
  }
1001
- function i(w = e) {
1002
- const { componentInstance: F, designerItemElementRef: f } = w;
1003
- return !F || !F.value ? null : F.value.canMove ? f : i(w.parent);
1001
+ function o(y = e) {
1002
+ const { componentInstance: O, designerItemElementRef: I } = y;
1003
+ return !O || !O.value ? null : O.value.canMove ? I : o(y.parent);
1004
1004
  }
1005
- function M(w) {
1005
+ function V(y) {
1006
1006
  return !!n;
1007
1007
  }
1008
- function b() {
1008
+ function C() {
1009
1009
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1010
1010
  }
1011
1011
  function k() {
1012
1012
  }
1013
- function I(w, F) {
1013
+ function F(y, O) {
1014
1014
  }
1015
- function D(w, F) {
1016
- const { componentType: f } = w;
1017
- let y = N(f, w, F);
1018
- const C = f.toLowerCase().replace("-", "_");
1019
- return y && !y.id && y.type === f && (y.id = `${C}_${Math.random().toString().slice(2, 6)}`), y;
1015
+ function D(y, O) {
1016
+ const { componentType: I } = y;
1017
+ let m = Z(I, y, O);
1018
+ const w = I.toLowerCase().replace("-", "_");
1019
+ return m && !m.id && m.type === I && (m.id = `${w}_${Math.random().toString().slice(2, 6)}`), m;
1020
1020
  }
1021
- function V(w, F) {
1022
- const f = String(w.getAttribute("data-controltype")), y = w.getAttribute("data-feature"), C = y ? JSON.parse(y) : {};
1023
- C.parentComponentInstance = r.value;
1024
- let s = N(f, C);
1025
- const S = f.toLowerCase().replace("-", "_");
1026
- return s && !s.id && s.type === f && (s.id = `${S}_${Math.random().toString().slice(2, 6)}`), s;
1021
+ function M(y) {
1027
1022
  }
1028
- function T(w) {
1029
- }
1030
- function P(...w) {
1023
+ function T(...y) {
1031
1024
  }
1032
1025
  return r.value = {
1033
- canMove: m(),
1034
- canSelectParent: c(),
1035
- canDelete: p(),
1036
- canNested: !d(),
1026
+ canMove: g(),
1027
+ canSelectParent: i(),
1028
+ canDelete: d(),
1029
+ canNested: !f(),
1037
1030
  contents: e == null ? void 0 : e.schema.contents,
1038
1031
  elementRef: t,
1039
- parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
1032
+ parent: (P = e == null ? void 0 : e.parent) == null ? void 0 : P.componentInstance,
1040
1033
  schema: e == null ? void 0 : e.schema,
1041
- styles: v,
1042
- designerClass: a,
1043
- canAccepts: M,
1044
- getBelongedComponentInstance: o,
1045
- getDraggableDesignItemElement: i,
1046
- getDraggingDisplayText: b,
1047
- getPropConfig: P,
1034
+ styles: p,
1035
+ designerClass: s,
1036
+ canAccepts: V,
1037
+ getBelongedComponentInstance: a,
1038
+ getDraggableDesignItemElement: o,
1039
+ getDraggingDisplayText: C,
1040
+ getPropConfig: T,
1048
1041
  getDragScopeElement: k,
1049
- onAcceptMovedChildElement: I,
1050
- onAcceptNewChildElement: V,
1051
- onChildElementMovedOut: T,
1042
+ onAcceptMovedChildElement: F,
1043
+ onChildElementMovedOut: M,
1052
1044
  addNewChildComponentSchema: D,
1053
- updateDragAndDropRules: u,
1045
+ updateDragAndDropRules: c,
1054
1046
  triggerBelongedComponentToMoveWhenMoved: h(!1),
1055
1047
  triggerBelongedComponentToDeleteWhenDeleted: h(!1)
1056
1048
  }, r;
1057
1049
  }
1058
- const vt = /* @__PURE__ */ G({
1050
+ const vt = /* @__PURE__ */ N({
1059
1051
  name: "FTransferDesign",
1060
- props: U,
1052
+ props: z,
1061
1053
  emits: ["change"],
1062
1054
  setup(t, e) {
1063
- const n = h(t.identifyField), u = h("已选:"), v = h("项数据"), a = h(t.displayType), r = h(!1), m = h(t.dataSource), c = h(t.selections || []), p = $(() => c.value.map((C) => C[n.value])), d = /* @__PURE__ */ new Map();
1064
- function o() {
1065
- const C = /* @__PURE__ */ new Map(), s = t.selectionValues || [];
1066
- s.length && s.reduce((g, j) => (g.set(j, !0), g), C);
1067
- const S = t.selections || [];
1068
- S.length && (C.clear(), S.reduce((g, j) => (g.set(j[n.value], !0), g), C)), c.value.length || (c.value = m.value.filter((g) => C.has(g[n.value])).map((g) => Object.assign({}, g))), m.value.forEach((g) => {
1069
- const j = g[n.value], A = C.has(j);
1070
- g.checked = A, A && d.set(j, g);
1055
+ const n = h(t.identifyField), c = h("已选:"), p = h("项数据"), s = h(t.displayType), r = h(!1), g = h(t.dataSource), i = h(t.selections || []), d = $(() => i.value.map((S) => S[n.value])), f = /* @__PURE__ */ new Map();
1056
+ function a() {
1057
+ const S = /* @__PURE__ */ new Map(), u = t.selectionValues || [];
1058
+ u.length && u.reduce((v, j) => (v.set(j, !0), v), S);
1059
+ const b = t.selections || [];
1060
+ b.length && (S.clear(), b.reduce((v, j) => (v.set(j[n.value], !0), v), S)), i.value.length || (i.value = g.value.filter((v) => S.has(v[n.value])).map((v) => Object.assign({}, v))), g.value.forEach((v) => {
1061
+ const j = v[n.value], A = S.has(j);
1062
+ v.checked = A, A && f.set(j, v);
1071
1063
  });
1072
1064
  }
1073
- o();
1074
- const i = $(() => a.value === "List"), M = $(() => a.value === "Tree");
1075
- function b(C) {
1076
- c.value = C.map((s) => Object.assign({}, s)), e.emit("change", c.value);
1065
+ a();
1066
+ const o = $(() => s.value === "List"), V = $(() => s.value === "Tree");
1067
+ function C(S) {
1068
+ i.value = S.map((u) => Object.assign({}, u)), e.emit("change", i.value);
1077
1069
  }
1078
1070
  function k() {
1079
1071
  return l(E, {
1080
1072
  class: "f-utils-fill",
1081
- data: m.value,
1073
+ data: g.value,
1082
1074
  "multi-select": !0,
1083
1075
  draggable: !1,
1084
1076
  header: "Search",
1085
1077
  headerClass: "transfer-search-box",
1086
- "selection-values": p.value,
1087
- onSelectionChange: b
1078
+ "selection-values": d.value,
1079
+ onSelectionChange: C
1088
1080
  }, {
1089
1081
  default: () => [_(" ")]
1090
1082
  });
1091
1083
  }
1092
- function I() {
1084
+ function F() {
1093
1085
  return l(B, null, null);
1094
1086
  }
1095
1087
  function D() {
@@ -1099,34 +1091,34 @@ const vt = /* @__PURE__ */ G({
1099
1091
  class: "f-utils-flex-column option-pane-content f-utils-fill"
1100
1092
  }, [l("div", {
1101
1093
  class: "container columns-box d-flex f-utils-fill"
1102
- }, [i.value && k(), M.value && I()])])]);
1094
+ }, [o.value && k(), V.value && F()])])]);
1103
1095
  }
1104
- function V(C) {
1105
- const s = C[n.value];
1106
- if (s !== null || s !== void 0) {
1107
- c.value = c.value.filter((g) => g[n.value] !== s);
1108
- const S = d.get(s);
1109
- S && (S.checked = !1, d.delete(s)), e.emit("change", c.value);
1096
+ function M(S) {
1097
+ const u = S[n.value];
1098
+ if (u !== null || u !== void 0) {
1099
+ i.value = i.value.filter((v) => v[n.value] !== u);
1100
+ const b = f.get(u);
1101
+ b && (b.checked = !1, f.delete(u)), e.emit("change", i.value);
1110
1102
  }
1111
1103
  }
1112
- function T(C) {
1113
- const s = /* @__PURE__ */ new Map();
1114
- c.value.reduce((S, g) => (S.set(g[n.value], g), S), s), c.value = C.map((S) => s.get(S[n.value])), e.emit("change", c.value);
1104
+ function T(S) {
1105
+ const u = /* @__PURE__ */ new Map();
1106
+ i.value.reduce((b, v) => (b.set(v[n.value], v), b), u), i.value = S.map((b) => u.get(b[n.value])), e.emit("change", i.value);
1115
1107
  }
1116
1108
  function P() {
1117
1109
  return l(E, {
1118
1110
  style: "flex:1",
1119
- data: c.value,
1111
+ data: i.value,
1120
1112
  draggable: !0,
1121
1113
  view: "DraggableView",
1122
1114
  "keep-order": !0,
1123
1115
  onChange: T,
1124
- onRemoveItem: V
1116
+ onRemoveItem: M
1125
1117
  }, {
1126
1118
  default: () => [_(" ")]
1127
1119
  });
1128
1120
  }
1129
- function O() {
1121
+ function y() {
1130
1122
  return l("div", {
1131
1123
  class: "f-utils-fill selection-pane d-flex flex-column"
1132
1124
  }, [l("div", {
@@ -1135,28 +1127,28 @@ const vt = /* @__PURE__ */ G({
1135
1127
  class: "selection-pane-title"
1136
1128
  }, [l("span", {
1137
1129
  class: "selection-title"
1138
- }, [u.value]), l("span", {
1130
+ }, [c.value]), l("span", {
1139
1131
  class: "selection-count"
1140
- }, [c.value && c.value.length]), l("span", {
1132
+ }, [i.value && i.value.length]), l("span", {
1141
1133
  class: "selection-item-title"
1142
- }, [v.value])]), l("div", {
1134
+ }, [p.value])]), l("div", {
1143
1135
  class: "container columns-box f-utils-fill d-flex"
1144
1136
  }, [P()])])]);
1145
1137
  }
1146
- const w = $(() => ({
1138
+ const O = $(() => ({
1147
1139
  transfer: !0,
1148
1140
  row: !0,
1149
1141
  "f-utils-fill": r.value
1150
- })), F = h(), f = ae("design-item-context"), y = pt(F, f);
1142
+ })), I = h(), m = ae("design-item-context"), w = pt(I, m);
1151
1143
  return oe(() => {
1152
- F.value.componentInstance = y;
1153
- }), e.expose(y.value), () => l("div", {
1154
- ref: F,
1155
- class: w.value,
1144
+ I.value.componentInstance = w;
1145
+ }), e.expose(w.value), () => l("div", {
1146
+ ref: I,
1147
+ class: O.value,
1156
1148
  style: "height:480px"
1157
- }, [D(), O()]);
1149
+ }, [D(), y()]);
1158
1150
  }
1159
- }), gt = (t) => {
1151
+ }), ht = (t) => {
1160
1152
  const e = t;
1161
1153
  return e.install = function(n) {
1162
1154
  n.component(e.name, t);
@@ -1168,10 +1160,10 @@ H.register = (t, e, n) => {
1168
1160
  H.registerDesigner = (t, e, n) => {
1169
1161
  t.transfer = vt, e.transfer = ee;
1170
1162
  };
1171
- const Ct = gt(H);
1163
+ const Ct = ht(H);
1172
1164
  export {
1173
1165
  H as FTransfer,
1174
1166
  Ct as default,
1175
1167
  ee as propsResolver,
1176
- U as transferProps
1168
+ z as transferProps
1177
1169
  };