@farris/ui-vue 1.2.8 → 1.3.0

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