@farris/ui-vue 1.3.1 → 1.3.3

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