@farris/ui-vue 1.3.0 → 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 (305) 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 +454 -398
  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 +479 -476
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +255 -252
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +652 -567
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +518 -521
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +659 -553
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +162 -155
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +866 -747
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +371 -998
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1174 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +340 -991
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +6066 -5847
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3400 -3486
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2328 -2446
  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 +9551 -1200
  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 +234 -231
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1996 -2630
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +138 -123
  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 +548 -586
  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 +2871 -3736
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3380 -3645
  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 +10543 -3207
  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 +9775 -1312
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +442 -438
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +587 -807
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +415 -381
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +361 -1024
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2265 -2371
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6425 -6257
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +6164 -5946
  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 +524 -1474
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +547 -502
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +646 -574
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1181 -2028
  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 +1185 -2027
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +442 -1368
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +238 -235
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1635 -1713
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +791 -716
  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 +12203 -5274
  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 +1873 -520
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +299 -300
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +176 -173
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +715 -659
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +1032 -1883
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4767 -5693
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +169 -161
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +490 -1167
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +154 -151
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +575 -1204
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/splitter/style.js +2 -0
  136. package/components/step/index.esm.js +279 -276
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +478 -428
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2591 -3326
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +442 -439
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +309 -307
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +500 -430
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +1391 -1341
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +574 -575
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +3422 -3536
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2661 -2764
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +675 -674
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +300 -297
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +454 -1089
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +709 -706
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +54780 -52757
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/directive/area-response.d.ts +10 -0
  177. package/types/common/entity/entity-schema.d.ts +26 -11
  178. package/types/common/index.d.ts +9 -0
  179. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  180. package/types/common/types.d.ts +2 -2
  181. package/types/common/utils/resolve-field.d.ts +2 -0
  182. package/types/common/utils/use-class.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  184. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  185. package/types/condition/src/types.d.ts +5 -4
  186. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  187. package/types/data-grid/index.d.ts +8 -5
  188. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  189. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  190. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  191. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  194. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  196. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  197. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  198. package/types/data-view/composition/types.d.ts +9 -11
  199. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  200. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  201. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  202. package/types/designer-canvas/index.d.ts +3 -1
  203. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  204. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  205. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  206. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  207. package/types/designer-canvas/src/composition/types.d.ts +49 -41
  208. package/types/designer-canvas/src/types.d.ts +10 -21
  209. package/types/dynamic-form/index.d.ts +1 -1
  210. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  211. package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
  212. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  213. package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
  214. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  215. package/types/dynamic-form/src/types.d.ts +1 -1
  216. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
  217. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  218. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  219. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  220. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  221. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  222. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  223. package/types/event-parameter/index.d.ts +31 -0
  224. package/types/event-parameter/src/composition/type.d.ts +77 -0
  225. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  226. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  227. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  228. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  229. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  230. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  231. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  232. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  233. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  234. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  235. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  236. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  237. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  238. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  239. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  240. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  241. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  242. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  243. package/types/modal/src/composition/modal.service.d.ts +2 -1
  244. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  245. package/types/page-header/src/page-header.component.d.ts +1 -1
  246. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  247. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  248. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  249. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  250. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  251. package/types/property-panel/index.d.ts +3 -1
  252. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  253. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  254. package/types/property-panel/src/composition/type.d.ts +0 -13
  255. package/types/query-solution/src/composition/types.d.ts +35 -4
  256. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  257. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  258. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  259. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
  260. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  262. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  264. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
  266. package/types/query-solution/src/query-solution.d.ts +10 -2
  267. package/types/query-solution/src/solutions.d.ts +108 -509
  268. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  269. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  270. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  271. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  272. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  273. package/types/response-layout-editor/index.d.ts +3 -1
  274. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  275. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  276. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  277. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  278. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  279. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  280. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  281. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  282. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  283. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  284. package/types/tabs/src/composition/types.d.ts +4 -1
  285. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  286. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  287. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  288. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  289. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  290. package/types/text/src/composition/types.d.ts +4 -4
  291. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  292. package/types/tree-grid/index.d.ts +3 -3
  293. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  294. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  295. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  296. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  297. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  298. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  299. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  300. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
  301. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  302. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  303. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  304. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  305. package/types/weather/src/composition/types.d.ts +0 -2
@@ -1,116 +1,121 @@
1
- import { ref as h, computed as $, createVNode as l, Fragment as B, watch as Q, withModifiers as ne, withDirectives as le, vModelText as se, defineComponent as G, createTextVNode as _, inject as ae, onMounted as oe } from "vue";
2
- import { isPlainObject as W, cloneDeep as ie } from "lodash-es";
3
- import { useIdentify as re, useHierarchy as ce, useGroupData as ue, usePagination as fe, useDataView as de, useSelection as pe, useEdit as ve, useVisualDataBound as ge, useVisualDataCell as he, useVisualDataRow as me, useVisualGroupRow as ye, useVisualSummaryRow as we, useVisualData as Ce } from "../data-view/index.esm.js";
4
- import { FCheckBox as q } from "../checkbox/index.esm.js";
5
- const Y = {}, Z = {};
6
- function z(t) {
7
- const { properties: e, title: n, ignore: u } = t, v = u && Array.isArray(u), a = Object.keys(e).reduce((r, m) => ((!v || !u.find((c) => c == m)) && (r[m] = e[m].type === "object" && e[m].properties ? z(e[m]) : ie(e[m].default)), r), {});
8
- return (!v || !u.find((r) => r == "id")) && (a.id = `${n}-${Date.now()}`), a;
1
+ import { ref as 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
+ 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 Se } from "../data-view/index.esm.js";
4
+ import { FCheckBox as G } from "../checkbox/index.esm.js";
5
+ import { withInstall as be } from "../common/index.esm.js";
6
+ const Q = {}, Y = {};
7
+ function q(t) {
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 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;
15
+ function Z(t, e = {}, l) {
16
+ const c = Q[t];
17
+ if (c) {
18
+ let p = q(c);
19
+ const s = Y[t];
20
+ return p = s ? s({ getSchemaByType: Z }, p, e, l) : p, p;
16
21
  }
17
22
  return null;
18
23
  }
19
- function Se(t, e) {
20
- const n = z(e);
21
- return Object.keys(t).reduce((u, v) => (u[v] && W(u[v]) && W(t[v]) ? Object.assign(u[v], t[v]) : u[v] = t[v], u), n), n;
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 be(t, e) {
24
- return Object.keys(t).filter((u) => t[u] != null).reduce((u, v) => {
25
- if (e.has(v)) {
26
- const a = e.get(v);
27
- if (typeof a == "string")
28
- u[a] = t[v];
28
+ function ke(t, e) {
29
+ return Object.keys(t).filter((c) => t[c] != null).reduce((c, p) => {
30
+ if (e.has(p)) {
31
+ const s = e.get(p);
32
+ if (typeof s == "string")
33
+ c[s] = t[p];
29
34
  else {
30
- const r = a(v, t[v], t);
31
- Object.assign(u, r);
35
+ const o = s(p, t[p], t);
36
+ Object.assign(c, o);
32
37
  }
33
38
  } else
34
- u[v] = t[v];
35
- return u;
39
+ c[p] = t[p];
40
+ return c;
36
41
  }, {});
37
42
  }
38
- function ke(t, e, n = /* @__PURE__ */ new Map()) {
39
- const u = Se(t, e);
40
- return be(u, n);
43
+ function Me(t, e, l = /* @__PURE__ */ new Map()) {
44
+ const c = Ce(t, e);
45
+ return ke(c, l);
41
46
  }
42
- function Me(t = {}) {
43
- function e(p, d, o, i) {
44
- if (typeof o == "number")
45
- return i[p].length === o;
46
- if (typeof o == "object") {
47
- const M = Object.keys(o)[0], b = o[M];
48
- if (M === "not")
49
- return Number(i[p].length) !== Number(b);
50
- if (M === "moreThan")
51
- return Number(i[p].length) >= Number(b);
52
- if (M === "lessThan")
53
- return Number(i[p].length) <= Number(b);
47
+ function Ve(t = {}) {
48
+ function e(d, u, a, r) {
49
+ if (typeof a == "number")
50
+ return r[d].length === a;
51
+ if (typeof a == "object") {
52
+ const V = Object.keys(a)[0], S = a[V];
53
+ if (V === "not")
54
+ return Number(r[d].length) !== Number(S);
55
+ if (V === "moreThan")
56
+ return Number(r[d].length) >= Number(S);
57
+ if (V === "lessThan")
58
+ return Number(r[d].length) <= Number(S);
54
59
  }
55
60
  return !1;
56
61
  }
57
- function n(p, d, o, i) {
58
- return i[p] && i[p].propertyValue && String(i[p].propertyValue.value) === String(o);
62
+ function l(d, u, a, r) {
63
+ return r[d] && r[d].propertyValue && String(r[d].propertyValue.value) === String(a);
59
64
  }
60
- const u = /* @__PURE__ */ new Map([
65
+ const c = /* @__PURE__ */ new Map([
61
66
  ["length", e],
62
- ["getProperty", n]
67
+ ["getProperty", l]
63
68
  ]);
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 };
69
+ Object.keys(t).reduce((d, u) => (d.set(u, t[u]), d), c);
70
+ function p(d, u) {
71
+ const a = d;
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
- function a(p) {
75
- return Object.keys(p).reduce((o, i) => {
76
- const M = v(i, p[i]);
77
- return o.push(...M), o;
79
+ function s(d) {
80
+ return Object.keys(d).reduce((a, r) => {
81
+ const V = p(r, d[r]);
82
+ return a.push(...V), a;
78
83
  }, []);
79
84
  }
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;
85
+ function o(d, u) {
86
+ if (c.has(d.operator)) {
87
+ const a = c.get(d.operator);
88
+ return a && a(d.target, d.param, d.value, u) || !1;
84
89
  }
85
90
  return !1;
86
91
  }
87
- function m(p, d) {
88
- return a(p).reduce((M, b) => M && r(b, d), !0);
92
+ function m(d, u) {
93
+ return s(d).reduce((V, S) => V && o(S, u), !0);
89
94
  }
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);
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
- return { parseValueSchema: c };
99
+ return { parseValueSchema: i };
95
100
  }
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);
101
+ const Oe = {}, De = {};
102
+ Ve();
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 Ie = "transfer", Fe = "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 Ie = "transfer", Fe = "A Farris Component", je = "object", Re = {
132
137
  }
133
138
  }
134
139
  }
135
- }, $e = {
140
+ }, Pe = {
136
141
  title: Ie,
137
- description: Fe,
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 = {
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"
@@ -202,15 +207,15 @@ const Ie = "transfer", Fe = "A Farris Component", je = "object", Re = {
202
207
  }, Ne = [
203
208
  "id",
204
209
  "type"
205
- ], Be = {
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,
215
+ type: _e,
216
+ properties: Be,
212
217
  required: Ne
213
- }, U = {
218
+ }, z = {
214
219
  dataSource: {
215
220
  type: Array,
216
221
  default: []
@@ -222,13 +227,13 @@ const Ie = "transfer", Fe = "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(U, Be, 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", Je = "A Farris Component", Xe = "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,
301
+ ], Ke = {
302
+ $schema: Ue,
303
+ $id: We,
304
+ title: Xe,
300
305
  description: Je,
301
- type: Xe,
302
- properties: Qe,
303
- required: Ye
304
- }, Ke = "list-view", xe = "A Farris Component", et = "object", tt = {
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,472 +375,472 @@ 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(a) {
376
- const r = [];
377
- let m = a.nextNode();
378
+ K(te, Ke, qe, ze, lt);
379
+ function st(t, e) {
380
+ function l(s) {
381
+ const o = [];
382
+ let m = s.nextNode();
378
383
  for (; m; )
379
- r.push(m), m = a.nextNode();
380
- return r;
384
+ o.push(m), m = s.nextNode();
385
+ return o;
381
386
  }
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);
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 }) => {
390
+ const V = [];
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
- M.push(k), b = k + r.length;
396
+ V.push(k), S = k + o.length;
392
397
  }
393
- return M.map((k) => {
398
+ return V.map((k) => {
394
399
  const I = new Range();
395
- return I.setStart(o, k), I.setEnd(o, k + r.length), I;
400
+ return I.setStart(a, k), I.setEnd(a, k + o.length), I;
396
401
  });
397
402
  }).flat();
398
403
  }
399
- function v(a) {
400
- if (!CSS.highlights || (CSS.highlights.clear(), !a || !e))
404
+ function p(s) {
405
+ if (!CSS.highlights || (CSS.highlights.clear(), !s || !e))
401
406
  return;
402
- const r = u(e.value, a.toLocaleLowerCase()), m = new Highlight(...r);
407
+ const o = c(e.value, s.toLocaleLowerCase()), m = new Highlight(...o);
403
408
  CSS.highlights.set("search-result", m);
404
409
  }
405
- return { search: v };
410
+ return { search: p };
406
411
  }
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);
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
418
  onMouseoverItem: I,
414
419
  onMouseoutItem: D
415
- } = a, {
416
- getKey: V,
417
- listViewItemClass: T,
420
+ } = s, {
421
+ getKey: O,
422
+ listViewItemClass: F,
418
423
  onCheckItem: P,
419
- onClickItem: O
420
- } = r, w = $(() => ({
421
- margin: d.value === "small" ? "0.25rem 0" : "10px 0"
424
+ onClickItem: y
425
+ } = o, M = $(() => ({
426
+ margin: u.value === "small" ? "0.25rem 0" : "10px 0"
422
427
  }));
423
- function F(f, y, C) {
424
- return f.checked = m.findIndexInSelectedItems(f) > -1, l("li", {
425
- class: T(f, y),
426
- id: V(f, y),
427
- key: V(f, y),
428
- onClick: (s) => O(s, f, y),
429
- onMouseenter: (s) => k(s, f, y),
430
- onMouseover: (s) => I(s, f, y),
431
- onMouseout: (s) => D(s, f, y)
432
- }, [b.value && l("div", {
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: (s) => s.stopPropagation()
435
- }, [l(q, {
436
- id: "list-" + V(f, y),
439
+ onClick: (f) => f.stopPropagation()
440
+ }, [n(G, {
441
+ id: "list-" + O(v, w),
437
442
  customClass: "listview-checkbox",
438
- disabled: f[M.value],
439
- checked: f.checked,
440
- "onUpdate:checked": (s) => f.checked = s,
441
- onChange: (s) => {
442
- P(f, y, !s.checked);
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: w.value,
448
- title: f.raw[i.value] || f.raw[o.value]
449
- }, [f.raw[o.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: F
457
+ renderItem: T
453
458
  };
454
459
  }
455
- function st(t, e, n, u, v, a, r, m, c, p) {
456
- const d = h(t.multiSelect), o = h(t.disableField), {
457
- onMouseenterItem: i,
458
- onMouseoverItem: M,
459
- onMouseoutItem: b
460
- } = a, {
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,
463
+ onMouseoverItem: V,
464
+ onMouseoutItem: S
465
+ } = s, {
461
466
  getKey: k,
462
467
  listViewItemClass: I,
463
468
  onCheckItem: D,
464
- onClickItem: V
465
- } = r;
466
- function T(O, w, F) {
467
- return e.slots.content ? l(B, null, [e.slots.content && e.slots.content({
468
- item: O.raw,
469
- index: w,
470
- selectedItem: F
471
- })]) : l("div", {
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({
473
+ item: y.raw,
474
+ index: M,
475
+ selectedItem: T
476
+ })]) : n("div", {
472
477
  style: "margin: 10px 0;"
473
- }, [O.raw.name]);
478
+ }, [y.raw.name]);
474
479
  }
475
- function P(O, w, F) {
476
- return l("li", {
477
- class: I(O, w),
478
- id: k(O, w),
479
- key: k(O, w),
480
- onClick: (f) => V(f, O, w),
481
- onMouseenter: (f) => i(f, O, w),
482
- onMouseover: (f) => M(f, O, w),
483
- onMouseout: (f) => b(f, O, w)
484
- }, [d.value && l("div", {
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: (f) => f.stopPropagation()
487
- }, [l(q, {
488
- id: "list-" + k(O, w),
491
+ onClick: (v) => v.stopPropagation()
492
+ }, [n(G, {
493
+ id: "list-" + k(y, M),
489
494
  customClass: "listview-checkbox",
490
- disabled: O[o.value] || !O.checked,
491
- checked: O.checked,
492
- "onUpdate:checked": (f) => O.checked = f,
493
- onChange: (f) => D(O, w, !f.checked)
494
- }, null)]), l("div", {
495
+ disabled: y[a.value] || !y.checked,
496
+ checked: y.checked,
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(O, w, F)])]);
501
+ }, [F(y, M, T)])]);
497
502
  }
498
503
  return {
499
504
  renderItem: P
500
505
  };
501
506
  }
502
- function at(t, e, n, u, v, a, r, m, c, p) {
503
- const d = h(t.multiSelect), o = h(t.disableField), {
504
- onMouseenterItem: i,
505
- onMouseoverItem: M,
506
- onMouseoutItem: b
507
- } = a, {
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,
510
+ onMouseoverItem: V,
511
+ onMouseoutItem: S
512
+ } = s, {
508
513
  getKey: k,
509
514
  listViewItemClass: I,
510
515
  onCheckItem: D,
511
- onClickItem: V
512
- } = r, {
513
- dragstart: T,
516
+ onClickItem: O
517
+ } = o, {
518
+ dragstart: F,
514
519
  dragenter: P,
515
- dragover: O,
516
- dragend: w
517
- } = u, {
518
- removeItem: F
519
- } = c, f = $(() => ({
520
- margin: d.value ? "10px 0" : "10px 0px 10px 14px"
520
+ dragover: y,
521
+ dragend: M
522
+ } = c, {
523
+ removeItem: T
524
+ } = i, v = $(() => ({
525
+ margin: u.value ? "10px 0" : "10px 0px 10px 14px"
521
526
  }));
522
- function y(g) {
523
- return l("div", {
524
- style: f.value
525
- }, [g.raw.name]);
527
+ function w(h) {
528
+ return n("div", {
529
+ style: v.value
530
+ }, [h.raw.name]);
526
531
  }
527
532
  function C() {
528
- return e.slots.itemContent ? e.slots.itemContent : y;
533
+ return e.slots.itemContent ? e.slots.itemContent : w;
529
534
  }
530
- const s = C();
531
- function S(g, j, A) {
532
- return l("li", {
533
- class: I(g, j),
534
- id: k(g, j),
535
- key: k(g, j),
536
- onClick: (R) => V(R, g, j),
537
- onMouseenter: (R) => i(R, g, j),
538
- onMouseover: (R) => M(R, g, j),
539
- onMouseout: (R) => b(R, g, j),
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, g, j),
546
+ onDragstart: (R) => F(R, h, j),
542
547
  onDragenter: (R) => P(R, j),
543
- onDragend: (R) => w(R, g),
544
- onDragover: (R) => O(R, j)
545
- }, [d.value && l("div", {
548
+ onDragend: (R) => M(R, h),
549
+ onDragover: (R) => y(R, j)
550
+ }, [u.value && n("div", {
546
551
  class: "f-list-select",
547
552
  onClick: (R) => R.stopPropagation()
548
- }, [l(q, {
549
- id: "list-" + k(g, j),
553
+ }, [n(G, {
554
+ id: "list-" + k(h, j),
550
555
  customClass: "listview-checkbox",
551
- disabled: g[o.value] || !g.checked,
552
- checked: g.checked,
553
- "onUpdate:checked": (R) => g.checked = R,
554
- onChange: (R) => D(g, j, !R.checked)
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
- }, [s(g)]), l("div", {
562
+ }, [f(h)]), n("div", {
558
563
  class: "f-list-remove",
559
- onClick: (R) => F(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
  }
570
575
  return {
571
- renderItem: S
576
+ renderItem: b
572
577
  };
573
578
  }
574
- function ot(t, e, n, u, v, a, r, m, c, p) {
579
+ function it(t, e, l, c, p, s, o, m, i, d) {
575
580
  var k;
576
- const d = h(((k = t.group) == null ? void 0 : k.groupFields) || []), {
577
- collpaseGroupIconClass: o
578
- } = v, {
579
- toggleGroupRow: i
580
- } = p;
581
- function M(I, D) {
582
- D.collapse = !D.collapse, n.value = i(D.collapse ? "collapse" : "expand", D, n.value);
581
+ const u = g(((k = t.group) == null ? void 0 : k.groupFields) || []), {
582
+ collpaseGroupIconClass: a
583
+ } = p, {
584
+ toggleGroupRow: r
585
+ } = d;
586
+ function V(I, D) {
587
+ D.collapse = !D.collapse, l.value = r(D.collapse ? "collapse" : "expand", D, l.value);
583
588
  }
584
- function b(I, D, V) {
585
- return I.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) => M(T, I)
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: o(I)
592
- }, null)]), l("div", {
595
+ }, [n("span", {
596
+ class: a(I)
597
+ }, null)]), n("div", {
593
598
  class: "f-navlookup-recommandLabel"
594
- }, [I.raw[d.value[I.layer]]])]);
599
+ }, [I.raw[u.value[I.layer]]])]);
595
600
  }
596
601
  return {
597
- renderItem: b
602
+ renderItem: S
598
603
  };
599
604
  }
600
- function it() {
601
- const t = h(-1), e = h(""), n = h(-1), u = h(!1);
602
- function v(p, d, o) {
603
- n.value = o;
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 a(p, d, o) {
606
- u.value || (n.value = o);
610
+ function s(d, u, a) {
611
+ c.value || (l.value = a);
607
612
  }
608
- function r(p, d, o) {
609
- n.value = -1;
613
+ function o(d, u, a) {
614
+ l.value = -1;
610
615
  }
611
616
  function m() {
612
- u.value = !0;
617
+ c.value = !0;
613
618
  }
614
- function c() {
615
- u.value = !1;
619
+ function i() {
620
+ c.value = !1;
616
621
  }
617
622
  return {
618
623
  activeIndex: t,
619
624
  focusedItemId: e,
620
- hoverIndex: n,
621
- onMouseenterItem: v,
622
- onMouseoverItem: a,
623
- onMouseoutItem: r,
624
- resumeHover: c,
625
+ hoverIndex: l,
626
+ onMouseenterItem: p,
627
+ onMouseoverItem: s,
628
+ onMouseoutItem: o,
629
+ resumeHover: i,
625
630
  suspendHover: m
626
631
  };
627
632
  }
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;
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 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;
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, V) {
646
+ function k(D, O) {
642
647
  D.preventDefault(), D.dataTransfer && (D.dataTransfer.dropEffect = "move");
643
648
  }
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);
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
- dragstart: M,
651
- dragenter: b,
655
+ dragstart: V,
656
+ dragenter: S,
652
657
  dragover: k,
653
658
  dragend: I,
654
659
  isDragging: m
655
660
  };
656
661
  }
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]);
662
+ function ut(t, e, l) {
663
+ const { dataView: c } = l;
664
+ function p(s) {
665
+ if (s > -1 && s < c.value.length) {
666
+ const o = c.value.splice(s, 1);
667
+ e.emit("removeItem", o[0]);
663
668
  }
664
669
  }
665
- return { removeItem: v };
670
+ return { removeItem: p };
666
671
  }
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 = {
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
- "f-list-view-draggable-item": c.value,
674
- "f-un-click": !s.checked,
675
- "f-un-select": !!s.raw[m.value],
678
+ "f-list-view-draggable-item": i.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] === s.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] === s.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": !i.value && S === k.value,
685
- "f-listview-item-hover": !i.value && S === k.value,
686
- moving: !!s.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 p.value.split(" ").reduce((A, R) => (A[R] = !0, A), g), g;
693
+ return d.value.split(" ").reduce((A, R) => (A[R] = !0, A), h), h;
689
694
  }
690
- function O(s, S) {
691
- return s.raw[r.value] || "";
695
+ function y(f, b) {
696
+ return f.raw[o.value] || "";
692
697
  }
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));
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 f = $(() => d.value && o.value === "OnCheckClearByClick"), y = $(() => !d.value || d.value && (o.value === "OnCheckAndClick" || o.value === "OnClick"));
698
- function C(s, S, g) {
699
- if (S.raw[m.value]) {
700
- s.preventDefault(), s.stopPropagation();
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
- 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);
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
- getKey: O,
711
+ getKey: y,
707
712
  listViewItemClass: P,
708
- onCheckItem: F,
713
+ onCheckItem: T,
709
714
  onClickItem: C
710
715
  };
711
716
  }
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 = $(() => ({
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
- "d-flex": c.value,
716
- "flex-wrap": c.value
717
- })), I = $(() => !!n.value && n.value.length > 0), D = $(() => n.value.length === 0);
720
+ "d-flex": i.value,
721
+ "flex-wrap": i.value
722
+ })), I = $(() => !!l.value && l.value.length > 0), D = $(() => l.value.length === 0);
718
723
  $(() => 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;
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 = V(), {
727
+ const F = O(), {
723
728
  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));
729
+ } = F(t, e, l, r, p, a, S, s, V, o), {
730
+ renderItem: y
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 f() {
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() : d.value])]);
740
+ }, [e.slots.empty ? e.slots.empty() : u.value])]);
736
741
  }
737
- function y() {
738
- return l("ul", {
742
+ function w() {
743
+ return n("ul", {
739
744
  class: k.value,
740
745
  style: "list-style: none;"
741
- }, [I.value && F(), D.value && f()]);
746
+ }, [I.value && T(), D.value && v()]);
742
747
  }
743
748
  return {
744
- renderListArea: y
749
+ renderListArea: w
745
750
  };
746
751
  }
747
- function dt(t, e, n) {
748
- function u() {
749
- return e.slots.header && l("div", {
752
+ function pt(t, e, l) {
753
+ function c() {
754
+ return e.slots.header && n("div", {
750
755
  class: "f-list-view-header"
751
756
  }, [e.slots.header()]);
752
757
  }
753
758
  return {
754
- renderHeader: u
759
+ renderHeader: c
755
760
  };
756
761
  }
757
- function X(t, e, n) {
758
- const u = h(t.headerClass), v = h(t.placeholder), a = h(""), r = $(() => !a.value), m = $(() => !!a.value);
759
- function c(i) {
760
- a.value = "";
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) {
765
+ s.value = "";
761
766
  }
762
- Q(a, (i) => {
763
- t.enableHighlightSearch && n.search(i), e.emit("afterSearch", i);
767
+ J(s, (r) => {
768
+ t.enableHighlightSearch && l.search(r), e.emit("afterSearch", r);
764
769
  });
765
- const p = $(() => {
766
- const i = {
770
+ const d = $(() => {
771
+ const r = {
767
772
  "form-group": !0,
768
773
  "farris-form-group": !0
769
774
  };
770
- return u.value && u.value.split(" ").reduce((b, k) => (b[k] = !0, b), i), i;
775
+ return c.value && c.value.split(" ").reduce((S, k) => (S[k] = !0, S), r), r;
771
776
  });
772
- function d(i) {
777
+ function u(r) {
773
778
  }
774
- function o() {
775
- return l("div", {
779
+ function a() {
780
+ return n("div", {
776
781
  class: "f-list-view-header",
777
- onClick: ne(() => d, ["prevent", "stop"])
778
- }, [l("div", {
779
- class: p.value
780
- }, [l("div", {
782
+ onClick: ne(() => u, ["prevent", "stop"])
783
+ }, [n("div", {
784
+ class: d.value
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": (i) => a.value = i,
793
+ "onUpdate:modelValue": (r) => s.value = r,
789
794
  name: "input-group-value",
790
795
  type: "text",
791
- placeholder: v.value,
796
+ placeholder: p.value,
792
797
  autocomplete: "off"
793
- }, null), [[se, a.value]]), l("div", {
798
+ }, null), [[se, s.value]]), n("div", {
794
799
  class: "input-group-append"
795
- }, [m.value && l("span", {
800
+ }, [m.value && n("span", {
796
801
  class: "input-group-text input-group-clear",
797
- onClick: (i) => c()
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
  }
806
811
  return {
807
- renderHeader: o
812
+ renderHeader: a
808
813
  };
809
814
  }
810
- const E = /* @__PURE__ */ G({
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(), u = h(!0), v = h(!1), a = h([]), r = 0, m = h(t.columns), c = re(t), p = ce(t), d = ue(t, c), o = fe(t), i = de(t, /* @__PURE__ */ new Map(), p, c, o), M = pe(t, i, c, a, e), b = lt(t, n), k = $(() => i.dataView.value.length), I = ve(t, e, c), D = ge(), V = he(t, {}, D), T = me(t, I, p, c, D, V), P = ye(t, c, V, T), O = we(t, c, V, T), w = Ce(t, m, i, k, r, T, P, O), {
816
- getVisualData: F
817
- } = w;
818
- a.value = F(0, k.value + r - 1);
819
- const f = $(() => {
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
- }), y = $(() => !!e.slots.footer || u.value);
830
+ }), w = $(() => !!e.slots.footer || c.value);
826
831
  function C() {
827
- return t.header === "SearchBar" ? X : t.header === "ContentHeader" ? dt : X;
832
+ return t.header === "SearchBar" ? X : t.header === "ContentHeader" ? pt : X;
828
833
  }
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
+ const f = C(), {
835
+ renderHeader: b
836
+ } = f(t, e, S), {
837
+ renderListArea: h
838
+ } = dt(t, e, s, r, u, V, M);
834
839
  function j(L) {
835
- b.search(L);
840
+ S.search(L);
836
841
  }
837
842
  function A(L) {
838
- L && (i.load(L), a.value = F(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,44 +849,44 @@ const E = /* @__PURE__ */ G({
844
849
  function R(L) {
845
850
  t.multiSelect && (L.preventDefault(), L.stopPropagation());
846
851
  }
847
- return () => l("div", {
848
- class: f.value,
852
+ return () => n("div", {
853
+ class: v.value,
849
854
  onClick: R
850
- }, [S(), l("div", {
851
- ref: n,
855
+ }, [b(), n("div", {
856
+ ref: l,
852
857
  class: "f-list-view-content",
853
858
  onMouseover: () => {
854
- v.value = !0;
859
+ p.value = !0;
855
860
  },
856
861
  onMouseleave: () => {
857
- v.value = !1;
862
+ p.value = !1;
858
863
  }
859
- }, [g()]), y.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__ */ G({
868
+ }), E = /* @__PURE__ */ N({
864
869
  name: "FTransfer",
865
- props: U,
870
+ props: z,
866
871
  emits: ["change", "activeChange"],
867
872
  setup(t, e) {
868
- const n = h(t.identifyField), u = h("已选:"), v = h("项数据"), a = h(t.displayType), r = h(!1), m = h(t.dataSource), c = h(t.selections || []), p = $(() => c.value.map((y) => y[n.value])), d = /* @__PURE__ */ new Map(), o = h();
869
- function i() {
870
- const y = /* @__PURE__ */ new Map(), C = t.selectionValues || [];
871
- C.length && C.reduce((S, g) => (S.set(g, !0), S), y);
872
- const s = t.selections || [];
873
- s.length && (y.clear(), s.reduce((S, g) => (S.set(g[n.value], !0), S), y)), c.value.length || (c.value = m.value.filter((S) => y.has(S[n.value])).map((S) => Object.assign({}, S))), m.value.forEach((S) => {
874
- const g = S[n.value], j = y.has(g);
875
- S.checked = j, j && d.set(g, S);
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
- 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);
883
+ r();
884
+ const V = $(() => s.value === "List"), S = $(() => s.value === "Tree");
885
+ function k(w) {
886
+ i.value = w.map((C) => Object.assign({}, C)), e.emit("change", i.value);
882
887
  }
883
888
  function I() {
884
- return l(E, {
889
+ return n(H, {
885
890
  class: "f-utils-fill",
886
891
  data: m.value,
887
892
  multiSelect: !0,
@@ -896,282 +901,276 @@ const E = /* @__PURE__ */ G({
896
901
  draggable: !1,
897
902
  header: "Search",
898
903
  headerClass: "transfer-search-box",
899
- "selection-values": p.value,
904
+ "selection-values": d.value,
900
905
  onSelectionChange: k
901
906
  }, {
902
907
  default: () => [_(" ")]
903
908
  });
904
909
  }
905
910
  function D() {
906
- return l(B, null, null);
911
+ return n(B, null, null);
907
912
  }
908
- function V() {
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
- }, [M.value && I(), b.value && D()])])]);
920
+ }, [V.value && I(), S.value && D()])])]);
916
921
  }
917
- function T(y) {
918
- const C = y[n.value];
922
+ function F(w) {
923
+ const C = w[l.value];
919
924
  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);
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
- Q(c, (y) => {
926
- o.value.updateDataSource(y);
930
+ J(i, (w) => {
931
+ a.value.updateDataSource(w);
927
932
  });
928
- function P(y) {
933
+ function P(w) {
929
934
  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);
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
- function O(y) {
933
- e.emit("activeChange", y);
937
+ function y(w) {
938
+ e.emit("activeChange", w);
934
939
  }
935
- function w() {
936
- return l(E, {
937
- ref: o,
940
+ function M() {
941
+ return n(H, {
942
+ ref: a,
938
943
  style: "flex:1",
939
- data: c.value,
944
+ data: i.value,
940
945
  draggable: !0,
941
946
  view: "DraggableView",
942
947
  "keep-order": !0,
943
948
  onChange: P,
944
- onRemoveItem: T,
945
- onActiveChange: O
949
+ onRemoveItem: F,
950
+ onActiveChange: y
946
951
  }, null);
947
952
  }
948
- function F() {
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
- }, [u.value]), l("span", {
962
+ }, [c.value]), n("span", {
958
963
  class: "selection-count"
959
- }, [c.value && c.value.length]), l("span", {
964
+ }, [i.value && i.value.length]), n("span", {
960
965
  class: "selection-item-title"
961
- }, [v.value])]), l("div", {
966
+ }, [p.value])]), n("div", {
962
967
  class: "container columns-box f-utils-fill d-flex"
963
- }, [w()])])]);
968
+ }, [M()])])]);
964
969
  }
965
- const f = $(() => ({
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: f.value,
975
+ return () => n("div", {
976
+ class: v.value,
972
977
  style: "height:480px"
973
- }, [V(), F()]);
978
+ }, [O(), T()]);
974
979
  }
975
980
  });
976
- function pt(t, e, n) {
977
- var O;
978
- function u() {
979
- }
980
- const v = "", a = "", r = h();
981
- function m() {
981
+ function vt(t, e, l) {
982
+ var P;
983
+ const c = "", p = "", s = g();
984
+ function o() {
982
985
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
983
986
  }
984
- function c() {
987
+ function m() {
985
988
  return !1;
986
989
  }
987
- function p() {
990
+ function i() {
988
991
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
989
992
  }
990
993
  function d() {
991
994
  return (e == null ? void 0 : e.schema.componentType) === "frame";
992
995
  }
993
- function o(w) {
994
- if (!w || !w.value)
996
+ function u(y) {
997
+ if (!y || !y.value)
995
998
  return null;
996
- if (w.value.schema && w.value.schema.type === "component")
997
- return w.value;
998
- const F = h(w == null ? void 0 : w.value.parent), f = o(F);
999
- return f || null;
999
+ if (y.value.schema && y.value.schema.type === "component")
1000
+ return y.value;
1001
+ const M = g(y == null ? void 0 : y.value.parent), T = u(M);
1002
+ return T || null;
1000
1003
  }
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);
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 M(w) {
1006
- return !!n;
1008
+ function r(y) {
1009
+ return !!l;
1007
1010
  }
1008
- function b() {
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() {
1012
1015
  }
1013
- function I(w, F) {
1016
+ function k(y, M) {
1014
1017
  }
1015
- function D(w, F) {
1016
- const { componentType: f } = w;
1017
- let y = N(f, w, F);
1018
- const C = f.toLowerCase().replace("-", "_");
1019
- return y && !y.id && y.type === f && (y.id = `${C}_${Math.random().toString().slice(2, 6)}`), y;
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;
1020
1023
  }
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;
1024
+ function D(y) {
1027
1025
  }
1028
- function T(w) {
1026
+ function O(...y) {
1029
1027
  }
1030
- function P(...w) {
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
+ });
1031
1036
  }
1032
- return r.value = {
1033
- canMove: m(),
1034
- canSelectParent: c(),
1035
- canDelete: p(),
1037
+ return s.value = {
1038
+ canMove: o(),
1039
+ canSelectParent: m(),
1040
+ canDelete: i(),
1036
1041
  canNested: !d(),
1037
1042
  contents: e == null ? void 0 : e.schema.contents,
1038
1043
  elementRef: t,
1039
- parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
1044
+ parent: (P = e == null ? void 0 : e.parent) == null ? void 0 : P.componentInstance,
1040
1045
  schema: e == null ? void 0 : e.schema,
1041
- styles: v,
1042
- designerClass: a,
1043
- canAccepts: M,
1044
- getBelongedComponentInstance: o,
1045
- getDraggableDesignItemElement: i,
1046
- getDraggingDisplayText: b,
1047
- getPropConfig: P,
1048
- getDragScopeElement: k,
1049
- onAcceptMovedChildElement: I,
1050
- onAcceptNewChildElement: V,
1051
- onChildElementMovedOut: T,
1052
- addNewChildComponentSchema: D,
1053
- updateDragAndDropRules: u,
1054
- triggerBelongedComponentToMoveWhenMoved: h(!1),
1055
- triggerBelongedComponentToDeleteWhenDeleted: h(!1)
1056
- }, 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;
1057
1061
  }
1058
- const vt = /* @__PURE__ */ G({
1062
+ const ht = /* @__PURE__ */ N({
1059
1063
  name: "FTransferDesign",
1060
- props: U,
1064
+ props: z,
1061
1065
  emits: ["change"],
1062
1066
  setup(t, e) {
1063
- const n = h(t.identifyField), u = h("已选:"), v = h("项数据"), a = h(t.displayType), r = h(!1), m = h(t.dataSource), c = h(t.selections || []), p = $(() => c.value.map((C) => C[n.value])), d = /* @__PURE__ */ new Map();
1064
- function o() {
1065
- const C = /* @__PURE__ */ new Map(), s = t.selectionValues || [];
1066
- s.length && s.reduce((g, j) => (g.set(j, !0), g), C);
1067
- const S = t.selections || [];
1068
- S.length && (C.clear(), S.reduce((g, j) => (g.set(j[n.value], !0), g), C)), c.value.length || (c.value = m.value.filter((g) => C.has(g[n.value])).map((g) => Object.assign({}, g))), m.value.forEach((g) => {
1069
- const j = g[n.value], A = C.has(j);
1070
- g.checked = A, A && d.set(j, g);
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();
1068
+ function a() {
1069
+ const C = /* @__PURE__ */ new Map(), f = t.selectionValues || [];
1070
+ f.length && f.reduce((h, j) => (h.set(j, !0), h), C);
1071
+ const b = t.selections || [];
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);
1071
1075
  });
1072
1076
  }
1073
- o();
1074
- const i = $(() => a.value === "List"), M = $(() => a.value === "Tree");
1075
- function b(C) {
1076
- c.value = C.map((s) => Object.assign({}, s)), e.emit("change", c.value);
1077
+ a();
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);
1077
1081
  }
1078
1082
  function k() {
1079
- return l(E, {
1083
+ return n(H, {
1080
1084
  class: "f-utils-fill",
1081
1085
  data: m.value,
1082
1086
  "multi-select": !0,
1083
1087
  draggable: !1,
1084
1088
  header: "Search",
1085
1089
  headerClass: "transfer-search-box",
1086
- "selection-values": p.value,
1087
- onSelectionChange: b
1090
+ "selection-values": d.value,
1091
+ onSelectionChange: S
1088
1092
  }, {
1089
1093
  default: () => [_(" ")]
1090
1094
  });
1091
1095
  }
1092
1096
  function I() {
1093
- return l(B, null, null);
1097
+ return n(B, null, null);
1094
1098
  }
1095
1099
  function D() {
1096
- return l("div", {
1100
+ return n("div", {
1097
1101
  class: "f-utils-fill option-pane d-flex flex-column"
1098
- }, [l("div", {
1102
+ }, [n("div", {
1099
1103
  class: "f-utils-flex-column option-pane-content f-utils-fill"
1100
- }, [l("div", {
1104
+ }, [n("div", {
1101
1105
  class: "container columns-box d-flex f-utils-fill"
1102
- }, [i.value && k(), M.value && I()])])]);
1106
+ }, [r.value && k(), V.value && I()])])]);
1103
1107
  }
1104
- function V(C) {
1105
- const s = C[n.value];
1106
- if (s !== null || s !== void 0) {
1107
- c.value = c.value.filter((g) => g[n.value] !== s);
1108
- const S = d.get(s);
1109
- S && (S.checked = !1, d.delete(s)), e.emit("change", c.value);
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);
1110
1114
  }
1111
1115
  }
1112
- function T(C) {
1113
- const s = /* @__PURE__ */ new Map();
1114
- c.value.reduce((S, g) => (S.set(g[n.value], g), S), s), c.value = C.map((S) => s.get(S[n.value])), e.emit("change", c.value);
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);
1115
1119
  }
1116
1120
  function P() {
1117
- return l(E, {
1121
+ return n(H, {
1118
1122
  style: "flex:1",
1119
- data: c.value,
1123
+ data: i.value,
1120
1124
  draggable: !0,
1121
1125
  view: "DraggableView",
1122
1126
  "keep-order": !0,
1123
- onChange: T,
1124
- onRemoveItem: V
1127
+ onChange: F,
1128
+ onRemoveItem: O
1125
1129
  }, {
1126
1130
  default: () => [_(" ")]
1127
1131
  });
1128
1132
  }
1129
- function O() {
1130
- return l("div", {
1133
+ function y() {
1134
+ return n("div", {
1131
1135
  class: "f-utils-fill selection-pane d-flex flex-column"
1132
- }, [l("div", {
1136
+ }, [n("div", {
1133
1137
  class: "f-utils-flex-column selection-pane-content f-utils-fill"
1134
- }, [l("div", {
1138
+ }, [n("div", {
1135
1139
  class: "selection-pane-title"
1136
- }, [l("span", {
1140
+ }, [n("span", {
1137
1141
  class: "selection-title"
1138
- }, [u.value]), l("span", {
1142
+ }, [c.value]), n("span", {
1139
1143
  class: "selection-count"
1140
- }, [c.value && c.value.length]), l("span", {
1144
+ }, [i.value && i.value.length]), n("span", {
1141
1145
  class: "selection-item-title"
1142
- }, [v.value])]), l("div", {
1146
+ }, [p.value])]), n("div", {
1143
1147
  class: "container columns-box f-utils-fill d-flex"
1144
1148
  }, [P()])])]);
1145
1149
  }
1146
- const w = $(() => ({
1150
+ const M = $(() => ({
1147
1151
  transfer: !0,
1148
1152
  row: !0,
1149
- "f-utils-fill": r.value
1150
- })), F = h(), f = ae("design-item-context"), y = pt(F, f);
1153
+ "f-utils-fill": o.value
1154
+ })), T = g(), v = ae("design-item-context"), w = vt(T, v);
1151
1155
  return oe(() => {
1152
- F.value.componentInstance = y;
1153
- }), e.expose(y.value), () => l("div", {
1154
- ref: F,
1155
- class: w.value,
1156
+ T.value.componentInstance = w;
1157
+ }), e.expose(w.value), () => n("div", {
1158
+ ref: T,
1159
+ class: M.value,
1156
1160
  style: "height:480px"
1157
- }, [D(), O()]);
1161
+ }, [D(), y()]);
1158
1162
  }
1159
- }), gt = (t) => {
1160
- const e = t;
1161
- return e.install = function(n) {
1162
- n.component(e.name, t);
1163
- }, t;
1164
- };
1165
- H.register = (t, e, n) => {
1166
- t.transfer = H, e.transfer = ee;
1163
+ });
1164
+ E.register = (t, e, l) => {
1165
+ t.transfer = E, e.transfer = ee;
1167
1166
  };
1168
- H.registerDesigner = (t, e, n) => {
1169
- t.transfer = vt, e.transfer = ee;
1167
+ E.registerDesigner = (t, e, l) => {
1168
+ t.transfer = ht, e.transfer = ee;
1170
1169
  };
1171
- const Ct = gt(H);
1170
+ const bt = be(E);
1172
1171
  export {
1173
- H as FTransfer,
1174
- Ct as default,
1172
+ E as FTransfer,
1173
+ bt as default,
1175
1174
  ee as propsResolver,
1176
- U as transferProps
1175
+ z as transferProps
1177
1176
  };