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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +360 -361
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +524 -520
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +190 -181
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +309 -309
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1125 -1124
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +472 -472
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-grid/index.esm.js +99 -99
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3387 -3321
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1604 -1601
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +1082 -1079
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/discussion-editor/index.esm.js +973 -1040
  38. package/components/discussion-editor/index.umd.cjs +6 -6
  39. package/components/dropdown/index.esm.js +335 -330
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +177 -177
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +6 -6
  44. package/components/dynamic-resolver/index.umd.cjs +1 -1
  45. package/components/dynamic-view/index.esm.js +344 -344
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +644 -644
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.esm.js +1773 -1760
  50. package/components/expression-editor/index.umd.cjs +4 -4
  51. package/components/fieldset/index.esm.js +55 -55
  52. package/components/fieldset/index.umd.cjs +1 -1
  53. package/components/filter-bar/index.esm.js +879 -869
  54. package/components/filter-bar/index.umd.cjs +1 -1
  55. package/components/filter-condition-editor/index.esm.js +1091 -1077
  56. package/components/filter-condition-editor/index.umd.cjs +3 -3
  57. package/components/flow-canvas/index.esm.js +215 -215
  58. package/components/flow-canvas/index.umd.cjs +1 -1
  59. package/components/html-template/index.esm.js +164 -164
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +198 -198
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +64 -64
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +140 -140
  66. package/components/language-textbox/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +111 -111
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +90 -90
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +139 -141
  72. package/components/list-view/index.umd.cjs +3 -3
  73. package/components/locale/index.esm.js +833 -901
  74. package/components/locale/index.umd.cjs +6 -6
  75. package/components/lookup/index.esm.js +1352 -1351
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.esm.js +1387 -1383
  78. package/components/mapping-editor/index.umd.cjs +1 -1
  79. package/components/menu-lookup/index.esm.js +1059 -1127
  80. package/components/menu-lookup/index.umd.cjs +6 -6
  81. package/components/message-box/index.esm.js +217 -217
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.esm.js +283 -283
  84. package/components/modal/index.umd.cjs +1 -1
  85. package/components/nav/index.esm.js +106 -106
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +194 -194
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +463 -462
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +883 -876
  92. package/components/order/index.umd.cjs +4 -4
  93. package/components/page-footer/index.esm.js +94 -94
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +942 -939
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +82 -82
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/popover/index.esm.js +59 -57
  100. package/components/popover/index.umd.cjs +1 -1
  101. package/components/progress/index.esm.js +113 -113
  102. package/components/progress/index.umd.cjs +2 -2
  103. package/components/property-editor/index.esm.js +151 -150
  104. package/components/property-editor/index.umd.cjs +1 -1
  105. package/components/property-panel/index.esm.js +739 -739
  106. package/components/property-panel/index.umd.cjs +2 -2
  107. package/components/query-solution/index.esm.js +4142 -4190
  108. package/components/query-solution/index.umd.cjs +6 -6
  109. package/components/radio-button/index.esm.js +182 -182
  110. package/components/radio-button/index.umd.cjs +1 -1
  111. package/components/rate/index.esm.js +106 -106
  112. package/components/rate/index.umd.cjs +1 -1
  113. package/components/response-layout/index.esm.js +535 -535
  114. package/components/response-layout/index.umd.cjs +1 -1
  115. package/components/response-layout-editor/index.esm.js +1456 -1443
  116. package/components/response-layout-editor/index.umd.cjs +1 -1
  117. package/components/response-toolbar/index.esm.js +779 -776
  118. package/components/response-toolbar/index.umd.cjs +1 -1
  119. package/components/schema-selector/index.esm.js +1875 -1866
  120. package/components/schema-selector/index.umd.cjs +7 -7
  121. package/components/search-box/index.esm.js +151 -147
  122. package/components/search-box/index.umd.cjs +1 -1
  123. package/components/section/index.esm.js +1236 -1233
  124. package/components/section/index.umd.cjs +1 -1
  125. package/components/smoke-detector/index.esm.js +163 -163
  126. package/components/smoke-detector/index.umd.cjs +1 -1
  127. package/components/sort-condition-editor/index.esm.js +1097 -1083
  128. package/components/sort-condition-editor/index.umd.cjs +3 -3
  129. package/components/splitter/index.esm.js +3 -3
  130. package/components/splitter/index.umd.cjs +1 -1
  131. package/components/step/index.esm.js +133 -133
  132. package/components/step/index.umd.cjs +1 -1
  133. package/components/switch/index.esm.js +103 -98
  134. package/components/switch/index.umd.cjs +1 -1
  135. package/components/tabs/index.esm.js +1596 -1593
  136. package/components/tabs/index.umd.cjs +2 -2
  137. package/components/tags/index.esm.js +93 -93
  138. package/components/tags/index.umd.cjs +1 -1
  139. package/components/text/index.esm.js +138 -138
  140. package/components/text/index.umd.cjs +1 -1
  141. package/components/textarea/index.esm.js +684 -684
  142. package/components/textarea/index.umd.cjs +2 -2
  143. package/components/time-picker/index.esm.js +935 -929
  144. package/components/time-picker/index.umd.cjs +1 -1
  145. package/components/tooltip/index.esm.js +173 -171
  146. package/components/tooltip/index.umd.cjs +1 -1
  147. package/components/transfer/index.esm.js +190 -192
  148. package/components/transfer/index.umd.cjs +4 -4
  149. package/components/tree-grid/index.esm.js +124 -124
  150. package/components/tree-grid/index.umd.cjs +1 -1
  151. package/components/tree-view/index.esm.js +2363 -2278
  152. package/components/tree-view/index.umd.cjs +1 -1
  153. package/components/uploader/index.esm.js +170 -170
  154. package/components/uploader/index.umd.cjs +2 -2
  155. package/components/verify-detail/index.esm.js +196 -196
  156. package/components/verify-detail/index.umd.cjs +1 -1
  157. package/components/video/index.esm.js +227 -227
  158. package/components/video/index.umd.cjs +1 -1
  159. package/components/weather/index.esm.js +9 -9
  160. package/components/weather/index.umd.cjs +2 -2
  161. package/designer/button-edit/index.esm.js +353 -353
  162. package/designer/button-edit/index.umd.cjs +1 -1
  163. package/designer/checkbox/index.esm.js +7 -3
  164. package/designer/checkbox/index.umd.cjs +1 -1
  165. package/designer/checkbox-group/index.esm.js +38 -33
  166. package/designer/checkbox-group/index.umd.cjs +1 -1
  167. package/designer/data-grid/index.esm.js +3562 -3536
  168. package/designer/data-grid/index.umd.cjs +6 -6
  169. package/designer/data-view/index.esm.js +3 -3
  170. package/designer/data-view/index.umd.cjs +3 -3
  171. package/designer/farris-designer.all.esm.js +4203 -4193
  172. package/designer/farris-designer.all.umd.cjs +9 -9
  173. package/designer/input-group/index.esm.js +97 -97
  174. package/designer/input-group/index.umd.cjs +1 -1
  175. package/designer/list-view/index.esm.js +1868 -1854
  176. package/designer/list-view/index.umd.cjs +8 -8
  177. package/designer/radio-group/index.esm.js +954 -949
  178. package/designer/radio-group/index.umd.cjs +1 -1
  179. package/farris.all.esm.js +16195 -16126
  180. package/farris.all.umd.cjs +30 -30
  181. package/locales/data-grid/ui/en.json +2 -2
  182. package/locales/designer/en.json +7 -6
  183. package/locales/designer/zh-CHS.json +2 -1
  184. package/locales/designer/zh-CHT.json +2 -1
  185. package/locales/ui/en.json +7 -6
  186. package/locales/ui/zh-CHS.json +2 -1
  187. package/locales/ui/zh-CHT.json +2 -1
  188. package/package.json +1 -1
  189. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  190. package/types/data-view/composition/types.d.ts +10 -4
  191. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  192. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
@@ -1,8 +1,8 @@
1
1
  import { ref as T, computed as $, createVNode as p, Fragment as X, watch as Y, withModifiers as Ee, withDirectives as Ne, vModelText as Ae, defineComponent as re, onMounted as de, inject as Le, createTextVNode as ie } from "vue";
2
2
  import $e from "../tree-view/index.esm.js";
3
- import { isPlainObject as se, cloneDeep as J } from "lodash-es";
4
- import { getCustomStyle as ce, getCustomClass as oe, withInstall as _e } from "../common/index.esm.js";
5
- import { useFilter as ze, useIdentify as He, useHierarchy as Ge, useGroupData as Ue, useDataView as qe, useSelection as We, usePagination as xe, useRow as Xe, useEdit as Ye, useVisualDataBound as Je, useVisualDataCell as Qe, useVisualDataRow as Ze, useVisualGroupRow as Ke, useVisualSummaryRow as et, useVisualData as tt, useSidebar as nt, useColumn as ot, useVirtualScroll as rt, getPagination as lt } from "../data-view/index.esm.js";
3
+ import { cloneDeep as J, isPlainObject as se } from "lodash-es";
4
+ import { getCustomClass as oe, getCustomStyle as ce, withInstall as _e } from "../common/index.esm.js";
5
+ import { useFilter as ze, useIdentify as He, useHierarchy as Ge, useGroupData as Ue, useDataView as xe, useSelection as qe, usePagination as We, useRow as Xe, useEdit as Ye, useVisualDataBound as Je, useVisualDataCell as Qe, useVisualDataRow as Ze, useVisualGroupRow as Ke, useVisualSummaryRow as et, useVisualData as tt, useSidebar as nt, useColumn as ot, useVirtualScroll as rt, getPagination as lt } from "../data-view/index.esm.js";
6
6
  import { useI18n as ve } from "vue-i18n";
7
7
  import { FCheckbox as le } from "../checkbox/index.esm.js";
8
8
  import { getSchemaByTypeForDesigner as at } from "../dynamic-resolver/index.esm.js";
@@ -16,7 +16,7 @@ function me(e, t) {
16
16
  }
17
17
  return v;
18
18
  }
19
- function R(i) {
19
+ function I(i) {
20
20
  const { properties: l, title: f, required: c } = i;
21
21
  if (c && Array.isArray(c)) {
22
22
  const r = c.reduce((v, k) => (v[k] = l[k].type === "object" && l[k].properties ? u(l[k]) : J(l[k].default), v), {});
@@ -33,7 +33,7 @@ function me(e, t) {
33
33
  function S(i, l = {}, f) {
34
34
  const c = e[i];
35
35
  if (c) {
36
- let r = R(c);
36
+ let r = I(c);
37
37
  const v = t[i];
38
38
  return r = v ? v({ getSchemaByType: S }, r, l, f) : r, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(r), r;
39
39
  }
@@ -43,7 +43,7 @@ function me(e, t) {
43
43
  const f = u(l);
44
44
  return Object.keys(f).reduce((c, r) => (Object.prototype.hasOwnProperty.call(i, r) && (c[r] && se(c[r]) && se(i[r] || !i[r]) ? Object.assign(c[r], i[r] || {}) : c[r] = i[r]), c), f), f;
45
45
  }
46
- function D(i, l) {
46
+ function M(i, l) {
47
47
  return Object.keys(i).filter((c) => i[c] != null).reduce((c, r) => {
48
48
  if (l.has(r)) {
49
49
  const v = l.get(r);
@@ -60,7 +60,7 @@ function me(e, t) {
60
60
  }
61
61
  function V(i, l, f = /* @__PURE__ */ new Map()) {
62
62
  const c = h(i, l);
63
- return D(c, f);
63
+ return M(c, f);
64
64
  }
65
65
  function s(i) {
66
66
  var f;
@@ -81,9 +81,9 @@ function me(e, t) {
81
81
  function C(i) {
82
82
  n = i;
83
83
  }
84
- return { getSchemaByType: S, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: V, mappingSchemaToProps: D, setDesignerContext: C };
84
+ return { getSchemaByType: S, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: V, mappingSchemaToProps: M, setDesignerContext: C };
85
85
  }
86
- const pe = {}, ge = {}, { resolveSchemaWithDefaultValue: it, resolveSchemaToProps: st, mappingSchemaToProps: ct } = me(pe, ge);
86
+ const pe = {}, ge = {}, { getSchemaByType: wn, resolveSchemaWithDefaultValue: it, resolveSchemaToProps: st, mappingSchemaToProps: ct, setDesignerContext: Cn } = me(pe, ge);
87
87
  function ut(e = {}) {
88
88
  function t(s, C, i, l) {
89
89
  if (typeof i == "number")
@@ -107,7 +107,7 @@ function ut(e = {}) {
107
107
  ["getProperty", n]
108
108
  ]);
109
109
  Object.keys(e).reduce((s, C) => (s.set(C, e[C]), s), u);
110
- function R(s, C) {
110
+ function I(s, C) {
111
111
  const i = s;
112
112
  return typeof C == "number" ? [{ target: i, operator: "length", param: null, value: Number(C) }] : typeof C == "boolean" ? [{ target: i, operator: "getProperty", param: s, value: !!C }] : typeof C == "object" ? Object.keys(C).map((l) => {
113
113
  if (l === "length")
@@ -118,7 +118,7 @@ function ut(e = {}) {
118
118
  }
119
119
  function S(s) {
120
120
  return Object.keys(s).reduce((i, l) => {
121
- const f = R(l, s[l]);
121
+ const f = I(l, s[l]);
122
122
  return i.push(...f), i;
123
123
  }, []);
124
124
  }
@@ -129,11 +129,11 @@ function ut(e = {}) {
129
129
  }
130
130
  return !1;
131
131
  }
132
- function D(s, C) {
132
+ function M(s, C) {
133
133
  return S(s).reduce((f, c) => f && h(c, C), !0);
134
134
  }
135
135
  function V(s, C) {
136
- const i = Object.keys(s), l = i.includes("allOf"), f = i.includes("anyOf"), c = l || f, k = (c ? s[c ? l ? "allOf" : "anyOf" : "allOf"] : [s]).map((j) => D(j, C));
136
+ const i = Object.keys(s), l = i.includes("allOf"), f = i.includes("anyOf"), c = l || f, k = (c ? s[c ? l ? "allOf" : "anyOf" : "allOf"] : [s]).map((j) => M(j, C));
137
137
  return l ? !k.includes(!1) : k.includes(!0);
138
138
  }
139
139
  return { parseValueSchema: V };
@@ -199,9 +199,9 @@ const ft = {
199
199
  "language-textbox": { type: "language-textbox", name: "多语输入框" }
200
200
  }, mt = {
201
201
  convertFrom: (e, t, n) => {
202
- var R;
202
+ var I;
203
203
  const u = e.editor && e.editor[t] ? e.editor[t] : e[t];
204
- return ((R = he[u]) == null ? void 0 : R.name) || u;
204
+ return ((I = he[u]) == null ? void 0 : I.name) || u;
205
205
  }
206
206
  }, pt = {
207
207
  convertTo: (e, t, n, u) => {
@@ -323,8 +323,8 @@ const ft = {
323
323
  e.selection || (e.selection = {}), e.selection[t] = n;
324
324
  },
325
325
  convertFrom: (e, t, n) => {
326
- var u, R;
327
- return t === "showCheckbox" ? (u = e.selection) != null && u.multiSelect ? !0 : (R = e.selection) == null ? void 0 : R.showCheckbox : e.selection ? e.selection[t] : e[t];
326
+ var u, I;
327
+ return t === "showCheckbox" ? (u = e.selection) != null && u.multiSelect ? !0 : (I = e.selection) == null ? void 0 : I.showCheckbox : e.selection ? e.selection[t] : e[t];
328
328
  }
329
329
  }, Tt = {
330
330
  convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
@@ -340,21 +340,21 @@ const ft = {
340
340
  convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
341
341
  }, Mt = {
342
342
  convertFrom: (e, t, n) => {
343
- var u, R;
344
- return (u = e.formatter) != null && u.data && t === "formatterEnumData" && !e.formatterEnumData ? (R = e.formatter) == null ? void 0 : R.data : e.formatterEnumData;
343
+ var u, I;
344
+ return (u = e.formatter) != null && u.data && t === "formatterEnumData" && !e.formatterEnumData ? (I = e.formatter) == null ? void 0 : I.data : e.formatterEnumData;
345
345
  }
346
- }, Rt = {
346
+ }, It = {
347
347
  convertTo: (e, t, n, u) => {
348
348
  e.sort || (e.sort = {}), e.sort[t] = n;
349
349
  },
350
350
  convertFrom: (e, t, n) => {
351
- var u, R;
351
+ var u, I;
352
352
  if (t === "mode")
353
353
  return ((u = e.sort) == null ? void 0 : u.mode) || "client";
354
354
  if (t === "multiSort")
355
- return !!((R = e.sort) != null && R.multiSort);
355
+ return !!((I = e.sort) != null && I.multiSort);
356
356
  }
357
- }, It = {
357
+ }, Rt = {
358
358
  convertTo: (e, t, n, u) => {
359
359
  e.filter || (e.filter = {}), e.filter[t] = n;
360
360
  },
@@ -399,10 +399,10 @@ function ye(e, t, n) {
399
399
  ["/converter/grid-selection.converter", Ft],
400
400
  ["/converter/size.converter", Dt],
401
401
  ["/converter/change-formatter-enum.converter", Mt],
402
- ["/converter/grid-sort.converter", Rt],
403
- ["/converter/grid-filter.converter", It],
402
+ ["/converter/grid-sort.converter", It],
403
+ ["/converter/grid-filter.converter", Rt],
404
404
  ["/converter/row-option.converter", Vt]
405
- ]), R = /* @__PURE__ */ new Map([
405
+ ]), I = /* @__PURE__ */ new Map([
406
406
  ["string", { type: "input-group", enableClear: !1 }],
407
407
  ["boolean", {
408
408
  type: "combo-list",
@@ -430,7 +430,7 @@ function ye(e, t, n) {
430
430
  function h(c, r) {
431
431
  return () => S.parseValueSchema(c, r);
432
432
  }
433
- function D(c, r, v) {
433
+ function M(c, r, v) {
434
434
  return c.includes("visible") && r.visible !== void 0 ? typeof r.visible == "boolean" ? () => !!r.visible : r.visible === void 0 ? !0 : h(r.visible, v) : () => !0;
435
435
  }
436
436
  function V(c, r, v) {
@@ -442,14 +442,14 @@ function ye(e, t, n) {
442
442
  }
443
443
  function C(c, r, v, k, O, j = "", E = "") {
444
444
  return Object.keys(c).map((w) => {
445
- const b = T(1), I = w, o = c[w], y = Object.keys(o), B = o.title, d = o.type, F = R.get(d) || { type: "input-group", enableClear: !1 }, g = o.editor ? Object.assign({}, F, o.editor) : Object.assign({}, F), a = D(y, o, r), m = V(y, o, r);
445
+ const b = T(1), R = w, o = c[w], y = Object.keys(o), B = o.title, d = o.type, F = I.get(d) || { type: "input-group", enableClear: !1 }, g = o.editor ? Object.assign({}, F, o.editor) : Object.assign({}, F), a = M(y, o, r), m = V(y, o, r);
446
446
  g.readonly = g.readonly === void 0 ? m() : g.readonly;
447
- const P = o.type === "cascade" ? C(o.properties, r, v, k, O, j, E) : [], M = !0;
447
+ const P = o.type === "cascade" ? C(o.properties, r, v, k, O, j, E) : [], D = !0;
448
448
  let L = s(o, E);
449
449
  const _ = $({
450
450
  get() {
451
451
  if (b.value) {
452
- if (["class", "style"].find((te) => te === I) && !L && (L = u.get("/converter/appearance.converter") || null), L && L.convertFrom)
452
+ if (["class", "style"].find((te) => te === R) && !L && (L = u.get("/converter/appearance.converter") || null), L && L.convertFrom)
453
453
  return L.convertFrom(v, w, O, j);
454
454
  const z = v[w];
455
455
  return Object.prototype.hasOwnProperty.call(o, "defaultValue") && (z === void 0 || typeof z == "string" && z === "") ? o.type === "boolean" ? o.defaultValue : o.defaultValue || "" : z;
@@ -459,8 +459,8 @@ function ye(e, t, n) {
459
459
  set(z) {
460
460
  b.value += 1, L && L.convertTo ? (L.convertTo(k, w, z, O, j), L.convertTo(v, w, z, O, j)) : (k[w] = z, v[w] = z);
461
461
  }
462
- }), { refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: q } = o, W = { propertyID: I, propertyName: B, propertyType: d, propertyValue: _, editor: g, visible: a, readonly: m, cascadeConfig: P, hideCascadeTitle: M, refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: q };
463
- return r[I] = W, W;
462
+ }), { refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x } = o, q = { propertyID: R, propertyName: B, propertyType: d, propertyValue: _, editor: g, visible: a, readonly: m, cascadeConfig: P, hideCascadeTitle: D, refreshPanelAfterChanged: H, description: K, isExpand: ee, parentPropertyID: x };
463
+ return r[R] = q, q;
464
464
  });
465
465
  }
466
466
  function i(c, r, v = {}) {
@@ -471,13 +471,13 @@ function ye(e, t, n) {
471
471
  }) : [];
472
472
  }
473
473
  function l(c, r, v, k, O = "") {
474
- const j = r.$ref.schema, E = r.$ref.converter, N = v[j], w = N.type, b = n(N), I = {}, o = e[w];
474
+ const j = r.$ref.schema, E = r.$ref.converter, N = v[j], w = N.type, b = n(N), R = {}, o = e[w];
475
475
  if (o && o.categories) {
476
476
  const y = o.categories[c], B = y == null ? void 0 : y.title;
477
477
  E && Object.keys(y.properties).forEach((g) => {
478
478
  y.properties[g].$converter = E;
479
479
  });
480
- const d = (y == null ? void 0 : y.properties) || {}, F = C(d, I, b, N, k, O);
480
+ const d = (y == null ? void 0 : y.properties) || {}, F = C(d, R, b, N, k, O);
481
481
  return { categoryId: c, categoryName: B, properties: F };
482
482
  }
483
483
  return { categoryId: c, categoryName: "", properties: [] };
@@ -487,14 +487,14 @@ function ye(e, t, n) {
487
487
  let w = O || e[j];
488
488
  if (w && Object.keys(w).length === 0 && v && v.getPropConfig && (w = v.getPropConfig(k)), w && w.categories) {
489
489
  const b = [];
490
- return Object.keys(w.categories).map((I) => {
491
- const o = w.categories[I];
490
+ return Object.keys(w.categories).map((R) => {
491
+ const o = w.categories[R];
492
492
  if (o.$ref) {
493
- b.push(l(I, o, c, r, k));
493
+ b.push(l(R, o, c, r, k));
494
494
  return;
495
495
  }
496
496
  const y = o == null ? void 0 : o.title, B = o == null ? void 0 : o.tabId, d = o == null ? void 0 : o.tabName, F = o == null ? void 0 : o.hide, g = o == null ? void 0 : o.hideTitle, a = C(o.properties || {}, N, E, c, r, k, o.$converter), { setPropertyRelates: m } = o, P = o == null ? void 0 : o.parentPropertyID;
497
- b.push({ categoryId: I, categoryName: y, tabId: B, tabName: d, hide: F, properties: a, hideTitle: g, setPropertyRelates: m, parentPropertyID: P });
497
+ b.push({ categoryId: R, categoryName: y, tabId: B, tabName: d, hide: F, properties: a, hideTitle: g, setPropertyRelates: m, parentPropertyID: P });
498
498
  }), b;
499
499
  }
500
500
  return [];
@@ -507,11 +507,11 @@ function ye(e, t, n) {
507
507
  }
508
508
  const be = {}, Se = {};
509
509
  ye(be, Se, it);
510
- const we = {}, Ce = {}, { resolveSchemaWithDefaultValue: Pt } = me(we, Ce), ke = {}, Fe = {};
510
+ const we = {}, Ce = {}, { getSchemaByType: kn, resolveSchemaWithDefaultValue: Pt, resolveSchemaToProps: Fn, mappingSchemaToProps: Tn, setDesignerContext: On } = me(we, Ce), ke = {}, Fe = {};
511
511
  ye(ke, Fe, Pt);
512
- function jt(e, t, n = /* @__PURE__ */ new Map(), u = (h, D, V, s) => D, R = {}, S = (h) => h) {
513
- return pe[t.title] = t, ge[t.title] = u, be[t.title] = R, Se[t.title] = S, we[t.title] = t, Ce[t.title] = u, ke[t.title] = R, Fe[t.title] = S, (h = {}, D = !0) => {
514
- if (!D)
512
+ function jt(e, t, n = /* @__PURE__ */ new Map(), u = (h, M, V, s) => M, I = {}, S = (h) => h) {
513
+ return pe[t.title] = t, ge[t.title] = u, be[t.title] = I, Se[t.title] = S, we[t.title] = t, Ce[t.title] = u, ke[t.title] = I, Fe[t.title] = S, (h = {}, M = !0) => {
514
+ if (!M)
515
515
  return ct(h, n);
516
516
  const V = st(h, t, n), s = Object.keys(e).reduce((C, i) => (C[i] = e[i].default, C), {});
517
517
  return Object.assign(s, V);
@@ -553,7 +553,7 @@ const At = "transfer", Lt = "A Farris Component", $t = "object", _t = {
553
553
  description: Lt,
554
554
  type: $t,
555
555
  categories: _t
556
- }, Ht = "https://json-schema.org/draft/2020-12/schema", Gt = "https://farris-design.gitee.io/transfer.schema.json", Ut = "transfer", qt = "A Farris Component", Wt = "object", xt = {
556
+ }, Ht = "https://json-schema.org/draft/2020-12/schema", Gt = "https://farris-design.gitee.io/transfer.schema.json", Ut = "transfer", xt = "A Farris Component", qt = "object", Wt = {
557
557
  id: {
558
558
  description: "The unique identifier for transfer",
559
559
  type: "string"
@@ -622,9 +622,9 @@ const At = "transfer", Lt = "A Farris Component", $t = "object", _t = {
622
622
  $schema: Ht,
623
623
  $id: Gt,
624
624
  title: Ut,
625
- description: qt,
626
- type: Wt,
627
- properties: xt,
625
+ description: xt,
626
+ type: qt,
627
+ properties: Wt,
628
628
  required: Xt
629
629
  }, ae = {
630
630
  dataSource: {
@@ -725,14 +725,14 @@ const At = "transfer", Lt = "A Farris Component", $t = "object", _t = {
725
725
  function Qt(e, t) {
726
726
  function n(S) {
727
727
  const h = [];
728
- let D = S.nextNode();
729
- for (; D; )
730
- h.push(D), D = S.nextNode();
728
+ let M = S.nextNode();
729
+ for (; M; )
730
+ h.push(M), M = S.nextNode();
731
731
  return h;
732
732
  }
733
733
  function u(S, h) {
734
- const D = document.createTreeWalker(S, NodeFilter.SHOW_TEXT);
735
- return n(D).map((i) => ({ textNode: i, text: (i.textContent || "").toLocaleLowerCase() })).map(({ textNode: i, text: l }) => {
734
+ const M = document.createTreeWalker(S, NodeFilter.SHOW_TEXT);
735
+ return n(M).map((i) => ({ textNode: i, text: (i.textContent || "").toLocaleLowerCase() })).map(({ textNode: i, text: l }) => {
736
736
  const f = [];
737
737
  let c = 0;
738
738
  for (; c < l.length; ) {
@@ -747,15 +747,15 @@ function Qt(e, t) {
747
747
  });
748
748
  }).flat();
749
749
  }
750
- function R(S) {
750
+ function I(S) {
751
751
  if (!CSS.highlights || (CSS.highlights.clear(), !S || !t))
752
752
  return;
753
- const h = u(t.value, S.toLocaleLowerCase()), D = new Highlight(...h);
754
- CSS.highlights.set("search-result", D);
753
+ const h = u(t.value, S.toLocaleLowerCase()), M = new Highlight(...h);
754
+ CSS.highlights.set("search-result", M);
755
755
  }
756
- return { search: R };
756
+ return { search: I };
757
757
  }
758
- function ue(e, t, n, u, R, S, h, D, V, s) {
758
+ function ue(e, t, n, u, I, S, h, M, V, s) {
759
759
  const C = T(e.size), i = T(e.textField), l = T(e.titleField), f = T(e.disableField), c = $(() => {
760
760
  var o, y;
761
761
  return ((o = e.selection) == null ? void 0 : o.multiSelect) && ((y = e.selection) == null ? void 0 : y.showCheckbox);
@@ -780,8 +780,8 @@ function ue(e, t, n, u, R, S, h, D, V, s) {
780
780
  ...o
781
781
  };
782
782
  });
783
- function I(o, y, B) {
784
- return o.checked = D.findIndexInSelectedItems(o) > -1, p("li", {
783
+ function R(o, y, B) {
784
+ return o.checked = M.findIndexInSelectedItems(o) > -1, p("li", {
785
785
  class: j(o, y),
786
786
  id: O(o, y),
787
787
  key: O(o, y),
@@ -811,10 +811,10 @@ function ue(e, t, n, u, R, S, h, D, V, s) {
811
811
  }, [o.raw[i.value]])])]);
812
812
  }
813
813
  return {
814
- renderItem: I
814
+ renderItem: R
815
815
  };
816
816
  }
817
- function Zt(e, t, n, u, R, S, h, D, V, s) {
817
+ function Zt(e, t, n, u, I, S, h, M, V, s) {
818
818
  const C = T(e.multiSelect), i = T(e.disableField), l = T(e.textField), {
819
819
  onMouseenterItem: f,
820
820
  onMouseoverItem: c,
@@ -826,48 +826,48 @@ function Zt(e, t, n, u, R, S, h, D, V, s) {
826
826
  onCheckItem: j,
827
827
  onClickItem: E
828
828
  } = h;
829
- function N(b, I, o) {
829
+ function N(b, R, o) {
830
830
  return e.contentTemplate ? p(X, null, [e.contentTemplate({
831
831
  item: b.raw,
832
- index: I,
832
+ index: R,
833
833
  selectedItem: o
834
834
  })]) : t.slots.content ? p(X, null, [t.slots.content && t.slots.content({
835
835
  item: b.raw,
836
- index: I,
836
+ index: R,
837
837
  selectedItem: o
838
838
  })]) : p("div", {
839
839
  style: "margin: 10px 0;"
840
840
  }, [b.raw[l.value || "name"]]);
841
841
  }
842
- function w(b, I, o) {
842
+ function w(b, R, o) {
843
843
  return p("li", {
844
- class: k(b, I),
845
- id: v(b, I),
846
- key: v(b, I),
847
- style: O(b, I),
848
- onClick: (y) => E(b, I, y),
849
- onMouseenter: (y) => f(y, b, I),
850
- onMouseover: (y) => c(y, b, I),
851
- onMouseout: (y) => r(y, b, I)
844
+ class: k(b, R),
845
+ id: v(b, R),
846
+ key: v(b, R),
847
+ style: O(b, R),
848
+ onClick: (y) => E(b, R, y),
849
+ onMouseenter: (y) => f(y, b, R),
850
+ onMouseover: (y) => c(y, b, R),
851
+ onMouseout: (y) => r(y, b, R)
852
852
  }, [C.value && p("div", {
853
853
  class: "f-list-select",
854
854
  onClick: (y) => y.stopPropagation()
855
855
  }, [p(le, {
856
- id: "list-" + v(b, I),
856
+ id: "list-" + v(b, R),
857
857
  customClass: "listview-checkbox",
858
858
  disabled: b[i.value] || !b.checked,
859
859
  checked: b.checked,
860
860
  "onUpdate:checked": (y) => b.checked = y,
861
- onChange: (y) => j(b, I, !y.checked)
861
+ onChange: (y) => j(b, R, !y.checked)
862
862
  }, null)]), p("div", {
863
863
  class: "f-list-content"
864
- }, [N(b, I, o)])]);
864
+ }, [N(b, R, o)])]);
865
865
  }
866
866
  return {
867
867
  renderItem: w
868
868
  };
869
869
  }
870
- function Kt(e, t, n, u, R, S, h, D, V, s) {
870
+ function Kt(e, t, n, u, I, S, h, M, V, s) {
871
871
  const C = T(e.multiSelect), i = T(e.disableField), l = T(e.textField), {
872
872
  onMouseenterItem: f,
873
873
  onMouseoverItem: c,
@@ -883,7 +883,7 @@ function Kt(e, t, n, u, R, S, h, D, V, s) {
883
883
  dragover: w,
884
884
  dragend: b
885
885
  } = u, {
886
- removeItem: I
886
+ removeItem: R
887
887
  } = V, o = $(() => ({
888
888
  margin: C.value ? "10px 0" : "10px 0px 10px 14px"
889
889
  }));
@@ -906,30 +906,32 @@ function Kt(e, t, n, u, R, S, h, D, V, s) {
906
906
  class: k(a, m),
907
907
  id: v(a, m),
908
908
  key: v(a, m),
909
- onClick: (M) => j(a, m, M),
910
- onMouseenter: (M) => f(M, a, m),
911
- onMouseover: (M) => c(M, a, m),
912
- onMouseout: (M) => r(M, a, m),
909
+ onClick: (D) => j(a, m, D),
910
+ onMouseenter: (D) => f(D, a, m),
911
+ onMouseover: (D) => c(D, a, m),
912
+ onMouseout: (D) => r(D, a, m),
913
913
  draggable: "true",
914
- onDragstart: (M) => E(M, a, m),
915
- onDragenter: (M) => N(M, m),
916
- onDragend: (M) => b(M, a),
917
- onDragover: (M) => w(M)
914
+ onDragstart: (D) => E(D, a, m),
915
+ onDragenter: (D) => N(D, m),
916
+ onDragend: (D) => b(D, a),
917
+ onDragover: (D) => w(D)
918
918
  }, [C.value && p("div", {
919
919
  class: "f-list-select",
920
- onClick: (M) => M.stopPropagation()
920
+ onClick: (D) => D.stopPropagation()
921
921
  }, [p(le, {
922
922
  id: "list-" + v(a, m),
923
923
  customClass: "listview-checkbox",
924
924
  disabled: a[i.value] || !a.checked,
925
925
  checked: a.checked,
926
- "onUpdate:checked": (M) => a.checked = M,
927
- onChange: (M) => O(a, m, !M.checked)
926
+ "onUpdate:checked": (D) => a.checked = D,
927
+ onChange: (D) => O(a, m, !D.checked)
928
928
  }, null)]), p("div", {
929
929
  class: "f-list-content"
930
930
  }, [F(a)]), p("div", {
931
931
  class: "f-list-remove",
932
- onClick: (M) => I(m)
932
+ onClick: (D) => {
933
+ D.stopPropagation(), R(m);
934
+ }
933
935
  }, [p("div", {
934
936
  class: "f-list-remove-icon"
935
937
  }, [p("i", {
@@ -944,11 +946,11 @@ function Kt(e, t, n, u, R, S, h, D, V, s) {
944
946
  renderItem: g
945
947
  };
946
948
  }
947
- function en(e, t, n, u, R, S, h, D, V, s) {
949
+ function en(e, t, n, u, I, S, h, M, V, s) {
948
950
  var v;
949
951
  const C = T(((v = e.group) == null ? void 0 : v.groupFields) || []), {
950
952
  collpaseGroupIconClass: i
951
- } = R, {
953
+ } = I, {
952
954
  toggleGroupRow: l
953
955
  } = s;
954
956
  function f(k, O) {
@@ -978,18 +980,18 @@ function en(e, t, n, u, R, S, h, D, V, s) {
978
980
  };
979
981
  }
980
982
  function tn(e, t, n, u) {
981
- const { dataView: R } = n, { updateSelectedItems: S } = u;
982
- function h(D) {
983
- if (D > -1 && D < R.value.length) {
984
- if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(R.value[D]))
983
+ const { dataView: I } = n, { updateSelectedItems: S } = u;
984
+ function h(M) {
985
+ if (M > -1 && M < I.value.length) {
986
+ if (e != null && e.checkBeforeRemoveItem && !e.checkBeforeRemoveItem(I.value[M]))
985
987
  return;
986
- const V = R.value.splice(D, 1);
988
+ const V = I.value.splice(M, 1);
987
989
  S(), t.emit("removeItem", V[0]);
988
990
  }
989
991
  }
990
992
  return { removeItem: h };
991
993
  }
992
- function nn(e, t, n, u, R, S, h, D, V, s) {
994
+ function nn(e, t, n, u, I, S, h, M, V, s) {
993
995
  const {
994
996
  t: C
995
997
  } = ve(), i = T(e.view), l = T(e.view === "CardView"), f = T({}), c = T(C("listView.emptyMessage")), r = tn(e, t, u, V), v = $(() => ({
@@ -1004,10 +1006,10 @@ function nn(e, t, n, u, R, S, h, D, V, s) {
1004
1006
  }
1005
1007
  const E = j(), {
1006
1008
  renderItem: N
1007
- } = E(e, t, n, s, R, S, V, h, r, D), {
1009
+ } = E(e, t, n, s, I, S, V, h, r, M), {
1008
1010
  renderItem: w
1009
- } = en(e, t, n, s, R, S, V, h, r, D), b = [N, w];
1010
- function I() {
1011
+ } = en(e, t, n, s, I, S, V, h, r, M), b = [N, w];
1012
+ function R() {
1011
1013
  return n.value.filter((B) => B.visible !== !1).map((B, d) => b[B.type](B, d, f));
1012
1014
  }
1013
1015
  function o() {
@@ -1022,7 +1024,7 @@ function nn(e, t, n, u, R, S, h, D, V, s) {
1022
1024
  return p("ul", {
1023
1025
  class: v.value,
1024
1026
  style: "list-style: none;"
1025
- }, [k.value && I(), O.value && o()]);
1027
+ }, [k.value && R(), O.value && o()]);
1026
1028
  }
1027
1029
  return {
1028
1030
  renderListArea: y
@@ -1039,7 +1041,7 @@ function on(e, t, n) {
1039
1041
  };
1040
1042
  }
1041
1043
  function fe(e, t, n) {
1042
- const u = T(e.headerClass), R = T(e.placeholder), S = T(""), h = $(() => !S.value), D = $(() => !!S.value);
1044
+ const u = T(e.headerClass), I = T(e.placeholder), S = T(""), h = $(() => !S.value), M = $(() => !!S.value);
1043
1045
  function V(l) {
1044
1046
  S.value = "";
1045
1047
  }
@@ -1072,11 +1074,11 @@ function fe(e, t, n) {
1072
1074
  "onUpdate:modelValue": (l) => S.value = l,
1073
1075
  name: "input-group-value",
1074
1076
  type: "text",
1075
- placeholder: R.value,
1077
+ placeholder: I.value,
1076
1078
  autocomplete: "off"
1077
1079
  }, null), [[Ae, S.value]]), p("div", {
1078
1080
  class: "input-group-append"
1079
- }, [D.value && p("span", {
1081
+ }, [M.value && p("span", {
1080
1082
  class: "input-group-text input-group-clear",
1081
1083
  onClick: (l) => V()
1082
1084
  }, [p("i", {
@@ -1092,21 +1094,21 @@ function fe(e, t, n) {
1092
1094
  };
1093
1095
  }
1094
1096
  function rn() {
1095
- const e = T(""), t = T(-1), n = T(""), u = T(-1), R = T(!1);
1097
+ const e = T(""), t = T(-1), n = T(""), u = T(-1), I = T(!1);
1096
1098
  function S(i, l, f) {
1097
1099
  u.value = f;
1098
1100
  }
1099
1101
  function h(i, l, f) {
1100
- R.value || (u.value = f);
1102
+ I.value || (u.value = f);
1101
1103
  }
1102
- function D(i, l, f) {
1104
+ function M(i, l, f) {
1103
1105
  u.value = -1;
1104
1106
  }
1105
1107
  function V() {
1106
- R.value = !0;
1108
+ I.value = !0;
1107
1109
  }
1108
1110
  function s() {
1109
- R.value = !1;
1111
+ I.value = !1;
1110
1112
  }
1111
1113
  function C() {
1112
1114
  t.value = -1, e.value = "";
@@ -1118,24 +1120,24 @@ function rn() {
1118
1120
  clearActiveItem: C,
1119
1121
  onMouseenterItem: S,
1120
1122
  onMouseoverItem: h,
1121
- onMouseoutItem: D,
1123
+ onMouseoutItem: M,
1122
1124
  resumeHover: s,
1123
1125
  suspendHover: V
1124
1126
  };
1125
1127
  }
1126
1128
  function ln(e, t, n, u) {
1127
- const R = T(e.idField), { dataView: S } = n, h = T(-1), D = T(!1), { activeIndex: V, focusedItemId: s, hoverIndex: C, resumeHover: i, suspendHover: l } = u;
1129
+ const I = T(e.idField), { dataView: S } = n, h = T(-1), M = T(!1), { activeIndex: V, focusedItemId: s, hoverIndex: C, resumeHover: i, suspendHover: l } = u;
1128
1130
  let f, c = 0, r = 0;
1129
1131
  function v(w, b) {
1130
- const I = w - c, o = b - r;
1131
- f.style.left = parseInt(f.style.left) + I + "px", f.style.top = parseInt(f.style.top) + o + "px", c = w, r = b;
1132
+ const R = w - c, o = b - r;
1133
+ f.style.left = parseInt(f.style.left) + R + "px", f.style.top = parseInt(f.style.top) + o + "px", c = w, r = b;
1132
1134
  }
1133
1135
  function k(w) {
1134
- const { left: b, top: I } = w.getBoundingClientRect(), o = w.cloneNode(!0);
1136
+ const { left: b, top: R } = w.getBoundingClientRect(), o = w.cloneNode(!0);
1135
1137
  return o.style.cssText = `
1136
1138
  position:absolute;
1137
1139
  left:${b}px;
1138
- top:${document.documentElement.scrollTop ? I + document.documentElement.scrollTop : I}px;
1140
+ top:${document.documentElement.scrollTop ? R + document.documentElement.scrollTop : R}px;
1139
1141
  z-index: 999999;
1140
1142
  border: 1px solid #e2e3e5;
1141
1143
  pointer-events: none;
@@ -1153,43 +1155,43 @@ function ln(e, t, n, u) {
1153
1155
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
1154
1156
  `, o.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", o.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(o), o;
1155
1157
  }
1156
- function O(w, b, I) {
1158
+ function O(w, b, R) {
1157
1159
  if (w.stopPropagation(), l(), b) {
1158
1160
  if (f = k(w.target), w.dataTransfer) {
1159
1161
  const o = new Image();
1160
1162
  o.src = "", w.dataTransfer.setDragImage(o, 0, 0);
1161
1163
  }
1162
1164
  c = w.pageX, r = w.pageY, setTimeout(() => {
1163
- h.value = I, D.value = !0, b.moving = !0;
1165
+ h.value = R, M.value = !0, b.moving = !0;
1164
1166
  });
1165
1167
  }
1166
1168
  }
1167
1169
  function j(w, b) {
1168
1170
  if (w.preventDefault(), h.value !== b) {
1169
- const I = S.value[h.value], o = S.value;
1170
- o.splice(h.value, 1), o.splice(b, 0, I), h.value = b, v(w.pageX, w.pageY);
1171
+ const R = S.value[h.value], o = S.value;
1172
+ o.splice(h.value, 1), o.splice(b, 0, R), h.value = b, v(w.pageX, w.pageY);
1171
1173
  }
1172
1174
  }
1173
1175
  function E(w) {
1174
1176
  w.preventDefault(), w.dataTransfer && (w.dataTransfer.dropEffect = "move"), v(w.pageX, w.pageY);
1175
1177
  }
1176
1178
  function N(w, b) {
1177
- b && (b.moving = !1, f && (document.body.removeChild(f), f = null)), S.value.forEach((I, o) => {
1178
- I.__fv_index__ = o;
1179
- }), D.value = !1, i(), C.value = b.raw.__fv_index__, V.value = b.raw.__fv_index__, s.value = b.raw[R.value], t.emit("change", S.value), t.emit("activeChange", [b.raw]);
1179
+ b && (b.moving = !1, f && (document.body.removeChild(f), f = null)), S.value.forEach((R, o) => {
1180
+ R.__fv_index__ = o;
1181
+ }), M.value = !1, i(), C.value = b.raw.__fv_index__, V.value = b.raw.__fv_index__, s.value = b.raw[I.value], t.emit("change", S.value), t.emit("activeChange", [b.raw]);
1180
1182
  }
1181
1183
  return {
1182
1184
  dragstart: O,
1183
1185
  dragenter: j,
1184
1186
  dragover: E,
1185
1187
  dragend: N,
1186
- isDragging: D
1188
+ isDragging: M
1187
1189
  };
1188
1190
  }
1189
- function an(e, t, n, u, R, S) {
1190
- const h = T(e.idField), D = T(e.disableField), V = T(e.draggable);
1191
+ function an(e, t, n, u, I, S) {
1192
+ const h = T(e.idField), M = T(e.disableField), V = T(e.draggable);
1191
1193
  T(e.itemClass);
1192
- const s = T(e.selection.multiSelect ?? !1), C = T(e.selection.multiSelectMode), { isDragging: i } = u, { activeIndex: l, focusedItemId: f, hoverIndex: c } = R, { clearSelection: r, getSelectedItems: v, toggleSelectItem: k, currentSelectedDataId: O } = S, j = T(v()), E = (g) => j.value.length === 0 ? !1 : j.value.some((a) => {
1194
+ const s = T(e.selection.multiSelect ?? !1), C = T(e.selection.multiSelectMode), { isDragging: i } = u, { activeIndex: l, focusedItemId: f, hoverIndex: c } = I, { clearSelection: r, getSelectedItems: v, toggleSelectItem: k, currentSelectedDataId: O } = S, j = T(v()), E = (g) => j.value.length === 0 ? !1 : j.value.some((a) => {
1193
1195
  let m = "";
1194
1196
  return a.data ? m = a.data[h.value] : m = a[h.value], m === g;
1195
1197
  });
@@ -1204,7 +1206,7 @@ function an(e, t, n, u, R, S) {
1204
1206
  "f-list-view-group-item": !0,
1205
1207
  "f-list-view-draggable-item": V.value,
1206
1208
  "f-un-click": !g.checked,
1207
- "f-un-select": !!g.raw[D.value],
1209
+ "f-un-select": !!g.raw[M.value],
1208
1210
  "f-listview-active": (
1209
1211
  // 多选
1210
1212
  s.value && E(w(g)) || // 单选
@@ -1221,7 +1223,7 @@ function an(e, t, n, u, R, S) {
1221
1223
  }
1222
1224
  return m;
1223
1225
  }
1224
- function I(g, a) {
1226
+ function R(g, a) {
1225
1227
  const m = (
1226
1228
  // 多选
1227
1229
  s.value && E(w(g)) || // 单选
@@ -1230,18 +1232,18 @@ function an(e, t, n, u, R, S) {
1230
1232
  if (m && (P.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
1231
1233
  return ce(P, e.itemStyle);
1232
1234
  if (typeof e.itemStyle == "function") {
1233
- const M = e.itemStyle(g);
1234
- return ce(P, M);
1235
+ const D = e.itemStyle(g);
1236
+ return ce(P, D);
1235
1237
  }
1236
1238
  return P;
1237
1239
  }
1238
1240
  const o = $(() => !s.value);
1239
1241
  function y(g, a, m) {
1240
- g.checked = m, !g.raw[D.value] && (o.value && (f.value = g.raw[h.value]), k(g));
1242
+ g.checked = m, !g.raw[M.value] && (o.value && (f.value = g.raw[h.value]), k(g));
1241
1243
  }
1242
1244
  const B = $(() => s.value && C.value === "OnCheckClearByClick"), d = $(() => !s.value || s.value && (C.value === "OnCheckAndClick" || C.value === "OnClick"));
1243
1245
  function F(g, a, m) {
1244
- if (g.raw[D.value]) {
1246
+ if (g.raw[M.value]) {
1245
1247
  m == null || m.preventDefault(), m == null || m.stopPropagation();
1246
1248
  return;
1247
1249
  }
@@ -1251,7 +1253,7 @@ function an(e, t, n, u, R, S) {
1251
1253
  getKey: w,
1252
1254
  selectedItems: j,
1253
1255
  listViewItemClass: b,
1254
- listViewItemStyle: I,
1256
+ listViewItemStyle: R,
1255
1257
  updateSelectedItems: N,
1256
1258
  onCheckItem: y,
1257
1259
  onClickItem: F
@@ -1262,9 +1264,9 @@ const Q = /* @__PURE__ */ re({
1262
1264
  props: Jt,
1263
1265
  emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
1264
1266
  setup(e, t) {
1265
- const n = T(), u = T(!0), R = T(!1), S = T([]), h = 0, D = T(e.columns), V = ze(e, t), s = He(e), C = Ge(e), i = Ue(e, s), l = qe(e, /* @__PURE__ */ new Map(), V, C, s), f = We(e, l, s, S, t), c = Qt(e, n), r = xe(e, l), v = $(() => l.dataView.value.length), k = Xe(e, t, f, s), O = Ye(e, t, s, k, S), j = Je(e), E = Qe(e, {}, j), N = Ze(e, l, O, C, s, j, E), w = Ke(e, s, E, N), b = et(e, s, E, N), I = tt(e, D, l, v, h, N, w, b), {
1267
+ const n = T(), u = T(!0), I = T(!1), S = T([]), h = 0, M = T(e.columns), V = ze(e, t), s = He(e), C = Ge(e), i = Ue(e, s), l = xe(e, /* @__PURE__ */ new Map(), V, C, s), f = qe(e, l, s, S, t), c = Qt(e, n), r = We(e, l), v = $(() => l.dataView.value.length), k = Xe(e, t, f, s), O = Ye(e, t, s, k, S), j = Je(e), E = Qe(e, {}, j), N = Ze(e, l, O, C, s, j, E), w = Ke(e, s, E, N), b = et(e, s, E, N), R = tt(e, M, l, v, h, N, w, b), {
1266
1268
  getVisualData: o
1267
- } = I;
1269
+ } = R;
1268
1270
  S.value = o(0, v.value + h - 1);
1269
1271
  const y = $(() => {
1270
1272
  const A = {
@@ -1279,8 +1281,8 @@ const Q = /* @__PURE__ */ re({
1279
1281
  const F = d(), {
1280
1282
  renderHeader: g
1281
1283
  } = F(e, t, c), a = rn(), m = ln(e, t, l, a), P = an(e, t, S, m, a, f), {
1282
- renderListArea: M
1283
- } = nn(e, t, S, l, i, a, f, I, P, m);
1284
+ renderListArea: D
1285
+ } = nn(e, t, S, l, i, a, f, R, P, m);
1284
1286
  function L(A) {
1285
1287
  c.search(A);
1286
1288
  }
@@ -1296,21 +1298,21 @@ const Q = /* @__PURE__ */ re({
1296
1298
  function ee() {
1297
1299
  return P.selectedItems.value.map((A) => A[s.idField.value]);
1298
1300
  }
1299
- function q(A) {
1301
+ function x(A) {
1300
1302
  f.selectedValues.value = A, P.updateSelectedItems();
1301
1303
  }
1302
- function W() {
1304
+ function q() {
1303
1305
  return f.currentSelectedDataId.value;
1304
1306
  }
1305
1307
  function z(A) {
1306
1308
  k.activeRowById(A);
1307
1309
  }
1308
1310
  function te(A) {
1309
- const G = s.idField.value, U = S.value.find((ne) => ne.raw[G] === A), x = S.value.findIndex((ne) => ne.raw[G] === A);
1310
- U && x > -1 && P.onClickItem(U, x);
1311
+ const G = s.idField.value, U = S.value.find((ne) => ne.raw[G] === A), W = S.value.findIndex((ne) => ne.raw[G] === A);
1312
+ U && W > -1 && P.onClickItem(U, W);
1311
1313
  }
1312
1314
  function Oe(A) {
1313
- const G = s.idField.value, U = S.value.find((x) => x.raw[G] === A);
1315
+ const G = s.idField.value, U = S.value.find((W) => W.raw[G] === A);
1314
1316
  U && k.changeRow(U);
1315
1317
  }
1316
1318
  function De(A) {
@@ -1324,46 +1326,42 @@ const Q = /* @__PURE__ */ re({
1324
1326
  updateDataSource: _,
1325
1327
  clearSelection: H,
1326
1328
  getSelections: K,
1327
- updateSelectionByIds: q,
1329
+ updateSelectionByIds: x,
1328
1330
  getSelectionIds: ee,
1329
1331
  activeRowById: z,
1330
- getCurrentRowId: W,
1332
+ getCurrentRowId: q,
1331
1333
  clickRowItemById: te,
1332
1334
  updatePagination: De,
1333
1335
  getVisibleDataByIds: Me,
1334
1336
  selectRowById: Oe
1335
1337
  });
1336
- function Re(A) {
1338
+ function Ie(A) {
1337
1339
  e.multiSelect && (A.preventDefault(), A.stopPropagation());
1338
1340
  }
1339
1341
  Y(() => e.selectionValues, (A, G) => {
1340
- A !== G && q(A);
1342
+ A !== G && x(A);
1341
1343
  });
1342
- const Ie = nt(e, f), {
1344
+ const Re = nt(e, f), {
1343
1345
  sidebarWidth: Ve,
1344
1346
  showSidebarCheckBox: un
1345
- } = Ie, Pe = ot(e, t), {
1347
+ } = Re, Pe = ot(e, t), {
1346
1348
  applyColumnSorter: fn,
1347
1349
  columnContext: je,
1348
1350
  updateColumnRenderContext: dn
1349
- } = Pe, Be = rt(e, l, S, je, I, v, h, Ve, O), {
1350
- shouldRenderPagination: vn
1351
- } = r, {
1352
- renderDataGridPagination: mn
1353
- } = lt(e, t, l, Be, r, f);
1354
- return () => p("div", {
1351
+ } = Pe, Be = rt(e, l, S, je, R, v, h, Ve, O);
1352
+ return lt(e, t, l, Be, r, f), () => p("div", {
1355
1353
  class: y.value,
1356
- onClick: Re
1354
+ onClick: Ie
1357
1355
  }, [g(), p("div", {
1358
1356
  ref: n,
1359
1357
  class: "f-list-view-content",
1360
1358
  onMouseover: () => {
1361
- R.value = !0;
1359
+ I.value = !0;
1362
1360
  },
1363
1361
  onMouseleave: () => {
1364
- R.value = !1;
1362
+ I.value = !1;
1365
1363
  }
1366
- }, [M()]), B.value && p("div", {
1364
+ }, [D()]), B.value && p("div", {
1367
1365
  class: "f-list-view-footer"
1368
1366
  }, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
1369
1367
  }
@@ -1374,18 +1372,18 @@ const Q = /* @__PURE__ */ re({
1374
1372
  setup(e, t) {
1375
1373
  const {
1376
1374
  t: n
1377
- } = ve(), u = T(e.identifyField), R = {
1375
+ } = ve(), u = T(e.identifyField), I = {
1378
1376
  selectedStart: n("transfer.selectedStart"),
1379
1377
  selectedEnd: n("transfer.selectedEnd")
1380
- }, S = T(e.displayType), h = T(!1), D = T(e.dataSource), V = T(e.textField), s = T(e.selections || []), C = $(() => s.value.map((a) => a[u.value])), i = /* @__PURE__ */ new Map(), l = T(), f = T(), c = T();
1378
+ }, S = T(e.displayType), h = T(!1), M = T(e.dataSource), V = T(e.textField), s = T(e.selections || []), C = $(() => s.value.map((a) => a[u.value])), i = /* @__PURE__ */ new Map(), l = T(), f = T(), c = T();
1381
1379
  let r;
1382
1380
  function v() {
1383
1381
  const a = /* @__PURE__ */ new Map(), m = e.selectionValues || [];
1384
- m.length && m.reduce((M, L) => (M.set(L, !0), M), a);
1382
+ m.length && m.reduce((D, L) => (D.set(L, !0), D), a);
1385
1383
  const P = e.selections || [];
1386
- P.length && (a.clear(), P.reduce((M, L) => (M.set(L[u.value], !0), M), a)), s.value.length || (s.value = D.value.filter((M) => a.has(M[u.value])).map((M) => Object.assign({}, M))), D.value.forEach((M) => {
1387
- const L = M[u.value], _ = a.has(L);
1388
- M.checked = _, _ && i.set(L, M);
1384
+ P.length && (a.clear(), P.reduce((D, L) => (D.set(L[u.value], !0), D), a)), s.value.length || (s.value = M.value.filter((D) => a.has(D[u.value])).map((D) => Object.assign({}, D))), M.value.forEach((D) => {
1385
+ const L = D[u.value], _ = a.has(L);
1386
+ D.checked = _, _ && i.set(L, D);
1389
1387
  });
1390
1388
  }
1391
1389
  v(), Y(() => e.selections, (a) => {
@@ -1405,7 +1403,7 @@ const Q = /* @__PURE__ */ re({
1405
1403
  function w() {
1406
1404
  return p(Q, {
1407
1405
  class: "f-utils-fill",
1408
- data: D.value,
1406
+ data: M.value,
1409
1407
  multiSelect: !0,
1410
1408
  itemClass: "f-transfer-list-item",
1411
1409
  textField: V.value,
@@ -1427,7 +1425,7 @@ const Q = /* @__PURE__ */ re({
1427
1425
  function b() {
1428
1426
  return p($e, {
1429
1427
  ref: c,
1430
- data: D.value,
1428
+ data: M.value,
1431
1429
  columns: e.columns,
1432
1430
  virtualized: e.virtualized,
1433
1431
  rowOption: e.rowOption,
@@ -1446,7 +1444,7 @@ const Q = /* @__PURE__ */ re({
1446
1444
  onUnSelectItem: N
1447
1445
  }, null);
1448
1446
  }
1449
- function I() {
1447
+ function R() {
1450
1448
  return p("div", {
1451
1449
  class: "f-utils-fill option-pane d-flex flex-column"
1452
1450
  }, [p("div", {
@@ -1458,19 +1456,19 @@ const Q = /* @__PURE__ */ re({
1458
1456
  function o(a) {
1459
1457
  const m = a[u.value];
1460
1458
  if (m !== null || m !== void 0) {
1461
- s.value = s.value.filter((M) => M[u.value] !== m);
1459
+ s.value = s.value.filter((D) => D[u.value] !== m);
1462
1460
  const P = i.get(m);
1463
1461
  P && (P.checked = !1, i.delete(m)), t.emit("change", s.value), t.emit("removeItem", a);
1464
1462
  }
1465
1463
  }
1466
1464
  Y(s, (a) => {
1467
1465
  l.value.updateDataSource(J(a));
1468
- const m = r == null ? void 0 : r[u.value], P = a.find((M) => m === M[u.value]);
1466
+ const m = r == null ? void 0 : r[u.value], P = a.find((D) => m === D[u.value]);
1469
1467
  P ? l.value.activeRowById(P[u.value]) : (r = null, l.value.activeRowById(""));
1470
1468
  });
1471
1469
  function y(a) {
1472
1470
  const m = /* @__PURE__ */ new Map();
1473
- s.value.reduce((P, M) => (P.set(M[u.value], M), P), m), s.value = a.map((P) => m.get(P[u.value])), t.emit("change", s.value);
1471
+ s.value.reduce((P, D) => (P.set(D[u.value], D), P), m), s.value = a.map((P) => m.get(P[u.value])), t.emit("change", s.value);
1474
1472
  }
1475
1473
  function B(a) {
1476
1474
  r = a[0], t.emit("activeChange", a);
@@ -1507,11 +1505,11 @@ const Q = /* @__PURE__ */ re({
1507
1505
  class: "selection-pane-title"
1508
1506
  }, [p("span", {
1509
1507
  class: "selection-title"
1510
- }, [R.selectedStart]), p("span", {
1508
+ }, [I.selectedStart]), p("span", {
1511
1509
  class: "selection-count"
1512
1510
  }, [s.value && s.value.length]), p("span", {
1513
1511
  class: "selection-item-title"
1514
- }, [R.selectedEnd])]), p("div", {
1512
+ }, [I.selectedEnd])]), p("div", {
1515
1513
  class: "container columns-box f-utils-fill d-flex"
1516
1514
  }, [d()])])]);
1517
1515
  }
@@ -1528,14 +1526,14 @@ const Q = /* @__PURE__ */ re({
1528
1526
  style: "height:480px"
1529
1527
  }, [t.slots.children ? t.slots.children({
1530
1528
  selections: s.value
1531
- }) : I(), F()]);
1529
+ }) : R(), F()]);
1532
1530
  }
1533
1531
  });
1534
1532
  function sn(e, t, n) {
1535
1533
  var B;
1536
- const u = "", R = "", S = T();
1534
+ const u = "", I = "", S = T();
1537
1535
  let h;
1538
- function D() {
1536
+ function M() {
1539
1537
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
1540
1538
  }
1541
1539
  function V() {
@@ -1564,7 +1562,7 @@ function sn(e, t, n) {
1564
1562
  return F.value.canMove || a && ((m = a()) != null && m.length) ? g : l(d.parent);
1565
1563
  }
1566
1564
  function f(d) {
1567
- return !1;
1565
+ return !!n;
1568
1566
  }
1569
1567
  function c() {
1570
1568
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
@@ -1613,15 +1611,15 @@ function sn(e, t, n) {
1613
1611
  }
1614
1612
  function b() {
1615
1613
  }
1616
- function I(d) {
1614
+ function R(d) {
1617
1615
  var g, a;
1618
1616
  if (!((g = t == null ? void 0 : t.schema) != null && g.id))
1619
1617
  return;
1620
1618
  !h && d && (h = d.formSchemaUtils);
1621
1619
  let F = "";
1622
1620
  {
1623
- const { text: m, title: P, label: M, mainTitle: L, name: _, type: H } = t.schema;
1624
- F = m || P || M || L || _ || ((a = he[H]) == null ? void 0 : a.name);
1621
+ const { text: m, title: P, label: D, mainTitle: L, name: _, type: H } = t.schema;
1622
+ F = m || P || D || L || _ || ((a = he[H]) == null ? void 0 : a.name);
1625
1623
  }
1626
1624
  F && h.getControlBasicInfoMap().set(t.schema.id, {
1627
1625
  componentTitle: F,
@@ -1631,12 +1629,12 @@ function sn(e, t, n) {
1631
1629
  function o(d) {
1632
1630
  var m;
1633
1631
  const { changeObject: F } = d, { propertyID: g, propertyValue: a } = F;
1634
- if (["text", "title", "label", "name", "mainTitle"].includes((m = d == null ? void 0 : d.changeObject) == null ? void 0 : m.propertyID) && g && a && (I(), h)) {
1635
- const P = h.getControlBasicInfoMap(), M = P.keys().toArray().filter((L) => {
1632
+ if (["text", "title", "label", "name", "mainTitle"].includes((m = d == null ? void 0 : d.changeObject) == null ? void 0 : m.propertyID) && g && a && (R(), h)) {
1633
+ const P = h.getControlBasicInfoMap(), D = P.keys().toArray().filter((L) => {
1636
1634
  var _, H;
1637
1635
  return ((_ = P.get(L)) == null ? void 0 : _.reliedComponentId) === ((H = t == null ? void 0 : t.schema) == null ? void 0 : H.id);
1638
1636
  });
1639
- M != null && M.length && M.forEach((L) => {
1637
+ D != null && D.length && D.forEach((L) => {
1640
1638
  const _ = P.get(L).parentPathName.split(" > ");
1641
1639
  _[0] = a, P.get(L).parentPathName = _.join(" > ");
1642
1640
  });
@@ -1646,7 +1644,7 @@ function sn(e, t, n) {
1646
1644
  o(d);
1647
1645
  }
1648
1646
  return S.value = {
1649
- canMove: D(),
1647
+ canMove: M(),
1650
1648
  canSelectParent: V(),
1651
1649
  canDelete: s(),
1652
1650
  canNested: !C(),
@@ -1655,7 +1653,7 @@ function sn(e, t, n) {
1655
1653
  parent: (B = t == null ? void 0 : t.parent) == null ? void 0 : B.componentInstance,
1656
1654
  schema: t == null ? void 0 : t.schema,
1657
1655
  styles: u,
1658
- designerClass: R,
1656
+ designerClass: I,
1659
1657
  canAccepts: f,
1660
1658
  getBelongedComponentInstance: i,
1661
1659
  getDraggableDesignItemElement: l,
@@ -1670,7 +1668,7 @@ function sn(e, t, n) {
1670
1668
  onRemoveComponent: w,
1671
1669
  getCustomButtons: b,
1672
1670
  onPropertyChanged: y,
1673
- setComponentBasicInfoMap: I,
1671
+ setComponentBasicInfoMap: R,
1674
1672
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
1675
1673
  }, S;
1676
1674
  }
@@ -1679,12 +1677,12 @@ const cn = /* @__PURE__ */ re({
1679
1677
  props: ae,
1680
1678
  emits: ["change"],
1681
1679
  setup(e, t) {
1682
- const n = T(e.identifyField), u = T("已选:"), R = T("项数据"), S = T(e.displayType), h = T(!1), D = T(e.dataSource), V = T(e.selections || []), s = $(() => V.value.map((y) => y[n.value])), C = /* @__PURE__ */ new Map();
1680
+ const n = T(e.identifyField), u = T("已选:"), I = T("项数据"), S = T(e.displayType), h = T(!1), M = T(e.dataSource), V = T(e.selections || []), s = $(() => V.value.map((y) => y[n.value])), C = /* @__PURE__ */ new Map();
1683
1681
  function i() {
1684
1682
  const y = /* @__PURE__ */ new Map(), B = e.selectionValues || [];
1685
1683
  B.length && B.reduce((F, g) => (F.set(g, !0), F), y);
1686
1684
  const d = e.selections || [];
1687
- d.length && (y.clear(), d.reduce((F, g) => (F.set(g[n.value], !0), F), y)), V.value.length || (V.value = D.value.filter((F) => y.has(F[n.value])).map((F) => Object.assign({}, F))), D.value.forEach((F) => {
1685
+ d.length && (y.clear(), d.reduce((F, g) => (F.set(g[n.value], !0), F), y)), V.value.length || (V.value = M.value.filter((F) => y.has(F[n.value])).map((F) => Object.assign({}, F))), M.value.forEach((F) => {
1688
1686
  const g = F[n.value], a = y.has(g);
1689
1687
  F.checked = a, a && C.set(g, F);
1690
1688
  });
@@ -1697,7 +1695,7 @@ const cn = /* @__PURE__ */ re({
1697
1695
  function r() {
1698
1696
  return p(Q, {
1699
1697
  class: "f-utils-fill",
1700
- data: D.value,
1698
+ data: M.value,
1701
1699
  "multi-select": !0,
1702
1700
  draggable: !1,
1703
1701
  header: "Search",
@@ -1758,7 +1756,7 @@ const cn = /* @__PURE__ */ re({
1758
1756
  class: "selection-count"
1759
1757
  }, [V.value && V.value.length]), p("span", {
1760
1758
  class: "selection-item-title"
1761
- }, [R.value])]), p("div", {
1759
+ }, [I.value])]), p("div", {
1762
1760
  class: "container columns-box f-utils-fill d-flex"
1763
1761
  }, [E()])])]);
1764
1762
  }
@@ -1766,7 +1764,7 @@ const cn = /* @__PURE__ */ re({
1766
1764
  transfer: !0,
1767
1765
  row: !0,
1768
1766
  "f-utils-fill": h.value
1769
- })), b = T(), I = Le("design-item-context"), o = sn(b, I);
1767
+ })), b = T(), R = Le("design-item-context"), o = sn(b, R);
1770
1768
  return de(() => {
1771
1769
  b.value.componentInstance = o;
1772
1770
  }), t.expose(o.value), () => p("div", {
@@ -1782,10 +1780,10 @@ Z.register = (e, t, n) => {
1782
1780
  Z.registerDesigner = (e, t, n) => {
1783
1781
  e.transfer = cn, t.transfer = Te;
1784
1782
  };
1785
- const kn = _e(Z);
1783
+ const Dn = _e(Z);
1786
1784
  export {
1787
1785
  Z as FTransfer,
1788
- kn as default,
1786
+ Dn as default,
1789
1787
  Te as propsResolver,
1790
1788
  ae as transferProps
1791
1789
  };