@farris/ui-vue 1.7.1 → 1.7.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (420) hide show
  1. package/components/accordion/index.esm.js +312 -61
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +1482 -56
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +752 -8
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-group/index.esm.js +266 -110
  8. package/components/button-group/index.umd.cjs +1 -1
  9. package/components/calendar/index.esm.js +129 -128
  10. package/components/calendar/index.umd.cjs +2 -2
  11. package/components/code-editor/index.esm.js +237 -169
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +134 -133
  14. package/components/collection-property-editor/index.umd.cjs +2 -2
  15. package/components/color-picker/index.esm.js +812 -502
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +323 -291
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +355 -174
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/comment/index.esm.js +134 -133
  22. package/components/comment/index.umd.cjs +2 -2
  23. package/components/common/index.esm.js +1 -1
  24. package/components/common/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +3830 -2796
  26. package/components/component/index.umd.cjs +8 -1
  27. package/components/condition/index.esm.js +2482 -492
  28. package/components/condition/index.umd.cjs +8 -1
  29. package/components/data-grid/index.esm.js +431 -406
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3306 -3165
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1 -1
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +3094 -2731
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/drawer/index.esm.js +397 -387
  38. package/components/drawer/index.umd.cjs +2 -2
  39. package/components/dropdown/index.esm.js +373 -124
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +592 -1894
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +250 -248
  44. package/components/dynamic-resolver/index.umd.cjs +2 -2
  45. package/components/dynamic-view/index.esm.js +287 -284
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/event-parameter/index.esm.js +1 -1
  48. package/components/event-parameter/index.umd.cjs +1 -1
  49. package/components/events-editor/index.esm.js +1890 -1473
  50. package/components/events-editor/index.umd.cjs +3 -3
  51. package/components/expression-editor/index.css +1 -1
  52. package/components/expression-editor/index.esm.js +7371 -2
  53. package/components/expression-editor/index.umd.cjs +427 -1
  54. package/components/fieldset/index.esm.js +1 -1
  55. package/components/fieldset/index.umd.cjs +1 -1
  56. package/components/filter-bar/index.esm.js +4 -5
  57. package/components/filter-bar/index.umd.cjs +2 -2
  58. package/components/filter-condition-editor/index.css +1 -1
  59. package/components/filter-condition-editor/index.esm.js +9044 -425
  60. package/components/filter-condition-editor/index.umd.cjs +427 -1
  61. package/components/html-template/index.esm.js +33 -36
  62. package/components/html-template/index.umd.cjs +1 -1
  63. package/components/image/index.esm.js +2 -2
  64. package/components/image/index.umd.cjs +1 -1
  65. package/components/image-cropper/index.esm.js +615 -361
  66. package/components/image-cropper/index.umd.cjs +1 -1
  67. package/components/json-editor/index.esm.js +325 -247
  68. package/components/json-editor/index.umd.cjs +1 -1
  69. package/components/language-textbox/index.esm.js +269 -269
  70. package/components/language-textbox/index.umd.cjs +2 -2
  71. package/components/layout/index.esm.js +549 -163
  72. package/components/layout/index.umd.cjs +1 -1
  73. package/components/list-nav/index.esm.js +837 -39
  74. package/components/list-nav/index.umd.cjs +1 -1
  75. package/components/list-view/index.esm.js +404 -622
  76. package/components/list-view/index.umd.cjs +6 -6
  77. package/components/lookup/index.esm.js +3624 -3625
  78. package/components/lookup/index.umd.cjs +1 -1
  79. package/components/mapping-editor/index.esm.js +1487 -1462
  80. package/components/mapping-editor/index.umd.cjs +1 -1
  81. package/components/menu-lookup/index.esm.js +577 -536
  82. package/components/menu-lookup/index.umd.cjs +6 -6
  83. package/components/nav/index.esm.js +311 -31
  84. package/components/nav/index.umd.cjs +1 -1
  85. package/components/number-range/index.esm.js +1634 -189
  86. package/components/number-range/index.umd.cjs +1 -1
  87. package/components/number-spinner/index.esm.js +82 -82
  88. package/components/number-spinner/index.umd.cjs +1 -1
  89. package/components/order/index.esm.js +1200 -859
  90. package/components/order/index.umd.cjs +6 -6
  91. package/components/page-footer/index.esm.js +331 -48
  92. package/components/page-footer/index.umd.cjs +1 -1
  93. package/components/page-header/index.esm.js +110 -116
  94. package/components/page-header/index.umd.cjs +1 -1
  95. package/components/pagination/index.esm.js +509 -232
  96. package/components/pagination/index.umd.cjs +1 -1
  97. package/components/progress/index.esm.js +353 -148
  98. package/components/progress/index.umd.cjs +3 -3
  99. package/components/property-editor/index.esm.js +157 -153
  100. package/components/property-editor/index.umd.cjs +1 -1
  101. package/components/property-panel/index.esm.js +1825 -871
  102. package/components/property-panel/index.umd.cjs +12 -5
  103. package/components/query-solution/index.css +1 -1
  104. package/components/query-solution/index.esm.js +6075 -3862
  105. package/components/query-solution/index.umd.cjs +13 -6
  106. package/components/response-layout/index.esm.js +1 -1
  107. package/components/response-layout/index.umd.cjs +1 -1
  108. package/components/schema-selector/index.esm.js +2603 -2376
  109. package/components/schema-selector/index.umd.cjs +5 -5
  110. package/components/search-box/index.esm.js +244 -72
  111. package/components/search-box/index.umd.cjs +1 -1
  112. package/components/section/index.esm.js +134 -133
  113. package/components/section/index.umd.cjs +2 -2
  114. package/components/smoke-detector/index.esm.js +179 -8
  115. package/components/smoke-detector/index.umd.cjs +1 -1
  116. package/components/sort-condition-editor/index.css +1 -0
  117. package/components/sort-condition-editor/index.esm.js +9488 -4
  118. package/components/sort-condition-editor/index.umd.cjs +427 -1
  119. package/components/splitter/index.esm.js +1172 -142
  120. package/components/splitter/index.umd.cjs +1 -1
  121. package/components/step/index.esm.js +47 -48
  122. package/components/step/index.umd.cjs +1 -1
  123. package/components/tabs/index.esm.js +490 -419
  124. package/components/tabs/index.umd.cjs +1 -1
  125. package/components/text/index.esm.js +217 -73
  126. package/components/text/index.umd.cjs +1 -1
  127. package/components/textarea/index.esm.js +29 -27
  128. package/components/textarea/index.umd.cjs +2 -2
  129. package/components/transfer/index.esm.js +762 -544
  130. package/components/transfer/index.umd.cjs +5 -5
  131. package/components/tree-grid/index.esm.js +287 -283
  132. package/components/tree-grid/index.umd.cjs +1 -1
  133. package/components/tree-view/index.esm.js +326 -157
  134. package/components/tree-view/index.umd.cjs +1 -1
  135. package/components/uploader/index.esm.js +1125 -634
  136. package/components/uploader/index.umd.cjs +2 -2
  137. package/components/verify-detail/index.esm.js +359 -106
  138. package/components/verify-detail/index.umd.cjs +1 -1
  139. package/components/video/index.esm.js +222 -89
  140. package/components/video/index.umd.cjs +1 -1
  141. package/components/weather/index.esm.js +290 -199
  142. package/components/weather/index.umd.cjs +1 -1
  143. package/designer/data-grid/index.esm.js +5798 -4905
  144. package/designer/data-grid/index.umd.cjs +16 -9
  145. package/designer/drawer/index.esm.js +576 -567
  146. package/designer/drawer/index.umd.cjs +2 -2
  147. package/designer/dynamic-form/index.esm.js +1418 -1154
  148. package/designer/dynamic-form/index.umd.cjs +8 -1
  149. package/designer/farris-designer.all.esm.js +11332 -10754
  150. package/designer/farris-designer.all.umd.cjs +17 -17
  151. package/designer/list-view/index.esm.js +647 -647
  152. package/designer/list-view/index.umd.cjs +6 -6
  153. package/designer/modal/index.esm.js +29 -137
  154. package/designer/modal/index.umd.cjs +1 -1
  155. package/designer/radio-group/index.esm.js +2 -3
  156. package/designer/radio-group/index.umd.cjs +1 -1
  157. package/designer/response-toolbar/index.esm.js +1 -1
  158. package/designer/response-toolbar/index.umd.cjs +1 -1
  159. package/designer/section/index.esm.js +1 -6
  160. package/designer/section/index.umd.cjs +1 -1
  161. package/designer/tabs/index.esm.js +2848 -2556
  162. package/designer/tabs/index.umd.cjs +2 -2
  163. package/designer/time-picker/index.esm.js +2 -2
  164. package/designer/time-picker/index.umd.cjs +1 -1
  165. package/designer/tree-grid/index.esm.js +826 -465
  166. package/designer/tree-grid/index.umd.cjs +1 -1
  167. package/farris.all.esm.js +75302 -73138
  168. package/farris.all.umd.cjs +94 -94
  169. package/index.css +1 -1
  170. package/package.json +1 -1
  171. package/types/accordion/src/accordion.props.d.ts +1 -0
  172. package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
  173. package/types/avatar/src/avatar.props.d.ts +1 -0
  174. package/types/binding-selector/index.d.ts +54 -0
  175. package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
  176. package/types/button-group/index.d.ts +0 -15
  177. package/types/button-group/src/button-group.props.d.ts +1 -0
  178. package/types/code-editor/index.d.ts +1 -0
  179. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  180. package/types/code-editor/src/code-textbox.props.d.ts +2 -0
  181. package/types/color-picker/index.d.ts +15 -0
  182. package/types/color-picker/src/color-picker.props.d.ts +1 -0
  183. package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
  184. package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
  185. package/types/component/index.d.ts +2 -0
  186. package/types/component/src/component.props.d.ts +8 -0
  187. package/types/components.d.ts +7 -0
  188. package/types/condition/index.d.ts +55 -0
  189. package/types/data-grid/index.d.ts +5 -2
  190. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  191. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  192. package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
  193. package/types/data-view/composition/types.d.ts +5 -1
  194. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
  195. package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +3 -2
  196. package/types/data-view/composition/visualization/use-visual-data-row.d.ts +2 -1
  197. package/types/designer-toolbox/index.d.ts +3 -0
  198. package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
  199. package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
  200. package/types/designer-toolbox/src/types.d.ts +21 -0
  201. package/types/designer.d.ts +13 -0
  202. package/types/dropdown/index.d.ts +6 -27
  203. package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
  204. package/types/dropdown/src/dropdown.props.d.ts +1 -0
  205. package/types/dynamic-form/designer.d.ts +1 -3
  206. package/types/dynamic-form/index.d.ts +3 -9
  207. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
  208. package/types/dynamic-resolver/index.d.ts +0 -3
  209. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  210. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  211. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  212. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  213. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  214. package/types/dynamic-view/src/components/maps.d.ts +104 -92
  215. package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
  216. package/types/filter-condition-editor/index.d.ts +9 -0
  217. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  218. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  219. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
  220. package/types/flow-canvas/index.d.ts +3 -0
  221. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +8 -0
  222. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
  223. package/types/flow-canvas/src/composition/types.d.ts +42 -0
  224. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
  225. package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
  226. package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
  227. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
  228. package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
  229. package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
  230. package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
  231. package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
  232. package/types/index.d.ts +1 -0
  233. package/types/json-editor/src/json-editor.props.d.ts +1 -0
  234. package/types/layout/index.d.ts +0 -1
  235. package/types/layout/src/components/layout-pane.props.d.ts +1 -0
  236. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +2 -0
  237. package/types/layout/src/designer/layout-pane.design.component.d.ts +8 -0
  238. package/types/layout/src/designer/layout-use-designer-rules.d.ts +2 -0
  239. package/types/layout/src/designer/layout.design.component.d.ts +8 -0
  240. package/types/layout/src/layout.props.d.ts +1 -0
  241. package/types/layout/src/schema/schema-mapper.d.ts +2 -0
  242. package/types/layout/src/schema/schema-resolver.d.ts +2 -0
  243. package/types/list-nav/index.d.ts +5 -24
  244. package/types/list-nav/src/designer/use-designer-rules.d.ts +2 -0
  245. package/types/list-nav/src/list-nav.props.d.ts +1 -0
  246. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +8 -0
  247. package/types/list-nav/src/schema/schema-mapper.d.ts +2 -0
  248. package/types/list-nav/src/schema/schema-resolver.d.ts +2 -0
  249. package/types/list-view/index.d.ts +0 -1
  250. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  251. package/types/lookup/index.d.ts +1 -1
  252. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
  253. package/types/lookup/src/components/popup-container.component.d.ts +6 -6
  254. package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
  255. package/types/modal/designer.d.ts +0 -2
  256. package/types/nav/index.d.ts +20 -24
  257. package/types/nav/src/nav.props.d.ts +1 -0
  258. package/types/number-range/src/number-range.props.d.ts +1 -0
  259. package/types/order/index.d.ts +5 -36
  260. package/types/order/src/designer/order.design.component.d.ts +1 -1
  261. package/types/order/src/order.props.d.ts +1 -0
  262. package/types/page-footer/index.d.ts +2 -0
  263. package/types/page-footer/src/page-footer.props.d.ts +1 -0
  264. package/types/pagination/index.d.ts +0 -15
  265. package/types/pagination/src/pagination.props.d.ts +1 -0
  266. package/types/progress/src/progress.props.d.ts +1 -0
  267. package/types/query-solution/index.d.ts +2 -1
  268. package/types/radio-group/designer.d.ts +1 -2
  269. package/types/search-box/index.d.ts +17 -1
  270. package/types/search-box/src/search-box.props.d.ts +1 -0
  271. package/types/section/designer.d.ts +0 -1
  272. package/types/smoke-detector/index.d.ts +2 -0
  273. package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
  274. package/types/sort-condition-editor/index.d.ts +7 -2
  275. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
  276. package/types/splitter/index.d.ts +0 -1
  277. package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
  278. package/types/splitter/src/splitter.props.d.ts +1 -0
  279. package/types/tabs/designer.d.ts +0 -1
  280. package/types/tabs/index.d.ts +1 -0
  281. package/types/text/index.d.ts +20 -24
  282. package/types/text/src/text.props.d.ts +1 -0
  283. package/types/transfer/src/transfer.props.d.ts +1 -0
  284. package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
  285. package/types/tree-grid/src/tree-grid.props.d.ts +1 -0
  286. package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
  287. package/types/tree-view/src/tree-view.props.d.ts +2 -0
  288. package/types/uploader/src/uploader.props.d.ts +1 -0
  289. package/types/verify-detail/index.d.ts +5 -58
  290. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  291. package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
  292. package/types/video/index.d.ts +20 -24
  293. package/types/video/src/video.props.d.ts +1 -0
  294. package/components/dynamic-form/index.css +0 -1
  295. package/designer/accordion/index.esm.js +0 -257
  296. package/designer/accordion/index.umd.cjs +0 -1
  297. package/designer/avatar/index.esm.js +0 -1460
  298. package/designer/avatar/index.umd.cjs +0 -1
  299. package/designer/binding-selector/index.esm.js +0 -792
  300. package/designer/binding-selector/index.umd.cjs +0 -1
  301. package/designer/button-group/index.esm.js +0 -282
  302. package/designer/button-group/index.umd.cjs +0 -1
  303. package/designer/code-editor/index.esm.js +0 -75
  304. package/designer/code-editor/index.umd.cjs +0 -1
  305. package/designer/color-picker/index.esm.js +0 -1096
  306. package/designer/color-picker/index.umd.cjs +0 -1
  307. package/designer/combo-list/index.esm.js +0 -1095
  308. package/designer/combo-list/index.umd.cjs +0 -1
  309. package/designer/combo-tree/index.esm.js +0 -186
  310. package/designer/combo-tree/index.umd.cjs +0 -1
  311. package/designer/component/index.css +0 -1
  312. package/designer/component/index.esm.js +0 -5002
  313. package/designer/component/index.umd.cjs +0 -1
  314. package/designer/condition/index.esm.js +0 -1899
  315. package/designer/condition/index.umd.cjs +0 -1
  316. package/designer/dropdown/index.esm.js +0 -261
  317. package/designer/dropdown/index.umd.cjs +0 -1
  318. package/designer/expression-editor/index.css +0 -1
  319. package/designer/expression-editor/index.esm.js +0 -7006
  320. package/designer/expression-editor/index.umd.cjs +0 -427
  321. package/designer/filter-condition-editor/index.css +0 -1
  322. package/designer/filter-condition-editor/index.esm.js +0 -4795
  323. package/designer/filter-condition-editor/index.umd.cjs +0 -1
  324. package/designer/html-template/index.esm.js +0 -718
  325. package/designer/html-template/index.umd.cjs +0 -1
  326. package/designer/image-cropper/index.esm.js +0 -765
  327. package/designer/image-cropper/index.umd.cjs +0 -1
  328. package/designer/json-editor/index.esm.js +0 -83
  329. package/designer/json-editor/index.umd.cjs +0 -1
  330. package/designer/language-textbox/index.esm.js +0 -783
  331. package/designer/language-textbox/index.umd.cjs +0 -8
  332. package/designer/layout/index.esm.js +0 -430
  333. package/designer/layout/index.umd.cjs +0 -1
  334. package/designer/list-nav/index.esm.js +0 -802
  335. package/designer/list-nav/index.umd.cjs +0 -1
  336. package/designer/lookup/index.esm.js +0 -2083
  337. package/designer/lookup/index.umd.cjs +0 -1
  338. package/designer/menu-lookup/index.esm.js +0 -46
  339. package/designer/menu-lookup/index.umd.cjs +0 -1
  340. package/designer/nav/index.esm.js +0 -284
  341. package/designer/nav/index.umd.cjs +0 -1
  342. package/designer/number-range/index.esm.js +0 -1616
  343. package/designer/number-range/index.umd.cjs +0 -1
  344. package/designer/order/index.css +0 -1
  345. package/designer/order/index.esm.js +0 -2196
  346. package/designer/order/index.umd.cjs +0 -18
  347. package/designer/page-footer/index.esm.js +0 -290
  348. package/designer/page-footer/index.umd.cjs +0 -1
  349. package/designer/page-header/index.esm.js +0 -1003
  350. package/designer/page-header/index.umd.cjs +0 -1
  351. package/designer/pagination/index.esm.js +0 -591
  352. package/designer/pagination/index.umd.cjs +0 -1
  353. package/designer/progress/index.esm.js +0 -213
  354. package/designer/progress/index.umd.cjs +0 -1
  355. package/designer/search-box/index.esm.js +0 -245
  356. package/designer/search-box/index.umd.cjs +0 -1
  357. package/designer/smoke-detector/index.css +0 -1
  358. package/designer/smoke-detector/index.esm.js +0 -178
  359. package/designer/smoke-detector/index.umd.cjs +0 -1
  360. package/designer/sort-condition-editor/index.esm.js +0 -138
  361. package/designer/sort-condition-editor/index.umd.cjs +0 -1
  362. package/designer/splitter/index.esm.js +0 -1120
  363. package/designer/splitter/index.umd.cjs +0 -1
  364. package/designer/step/index.esm.js +0 -226
  365. package/designer/step/index.umd.cjs +0 -1
  366. package/designer/text/index.esm.js +0 -147
  367. package/designer/text/index.umd.cjs +0 -1
  368. package/designer/transfer/index.esm.js +0 -254
  369. package/designer/transfer/index.umd.cjs +0 -1
  370. package/designer/tree-view/index.esm.js +0 -313
  371. package/designer/tree-view/index.umd.cjs +0 -1
  372. package/designer/uploader/index.esm.js +0 -1190
  373. package/designer/uploader/index.umd.cjs +0 -2
  374. package/designer/verify-detail/index.esm.js +0 -258
  375. package/designer/verify-detail/index.umd.cjs +0 -1
  376. package/designer/video/index.esm.js +0 -136
  377. package/designer/video/index.umd.cjs +0 -1
  378. package/designer/weather/index.css +0 -1
  379. package/designer/weather/index.esm.js +0 -6244
  380. package/designer/weather/index.umd.cjs +0 -14
  381. package/types/accordion/designer.d.ts +0 -44
  382. package/types/avatar/designer.d.ts +0 -29
  383. package/types/button-group/designer.d.ts +0 -29
  384. package/types/code-editor/designer.d.ts +0 -5
  385. package/types/color-picker/designer.d.ts +0 -29
  386. package/types/combo-list/designer.d.ts +0 -29
  387. package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
  388. package/types/combo-tree/designer.d.ts +0 -5
  389. package/types/component/designer.d.ts +0 -35
  390. package/types/condition/designer.d.ts +0 -56
  391. package/types/dropdown/designer.d.ts +0 -6
  392. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
  393. package/types/expression-editor/designer.d.ts +0 -9
  394. package/types/filter-condition-editor/designer.d.ts +0 -10
  395. package/types/html-template/designer.d.ts +0 -31
  396. package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
  397. package/types/image-cropper/designer.d.ts +0 -4
  398. package/types/json-editor/designer.d.ts +0 -5
  399. package/types/menu-lookup/designer.d.ts +0 -5
  400. package/types/nav/designer.d.ts +0 -6
  401. package/types/number-range/designer.d.ts +0 -29
  402. package/types/order/designer.d.ts +0 -6
  403. package/types/page-footer/designer.d.ts +0 -6
  404. package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
  405. package/types/pagination/designer.d.ts +0 -29
  406. package/types/progress/designer.d.ts +0 -29
  407. package/types/search-box/designer.d.ts +0 -52
  408. package/types/smoke-detector/designer.d.ts +0 -6
  409. package/types/sort-condition-editor/designer.d.ts +0 -9
  410. package/types/splitter/designer.d.ts +0 -32
  411. package/types/step/designer.d.ts +0 -6
  412. package/types/text/designer.d.ts +0 -6
  413. package/types/transfer/designer.d.ts +0 -35
  414. package/types/tree-view/designer.d.ts +0 -29
  415. package/types/uploader/designer.d.ts +0 -141
  416. package/types/verify-detail/designer.d.ts +0 -6
  417. package/types/video/designer.d.ts +0 -6
  418. /package/{designer → components}/condition/index.css +0 -0
  419. /package/{designer → components}/uploader/index.css +0 -0
  420. /package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → list-nav/src/designer/list-nav.design.component.d.ts} +0 -0
@@ -1,20 +1,20 @@
1
- var wn = Object.defineProperty;
2
- var xn = (e, t, n) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var me = (e, t, n) => xn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as Se, ref as r, computed as y, createVNode as l, Teleport as Bt, createApp as rt, onUnmounted as Xe, Fragment as pe, watch as Z, nextTick as Ne, onBeforeMount as Bn, onMounted as ze, watchEffect as Sn, Transition as St, shallowRef as Tn, render as lt, h as Mn, cloneVNode as kn, mergeProps as tt, inject as Ze, withDirectives as On, vShow as Fn, onUpdated as In, onBeforeUnmount as En, createTextVNode as Be, reactive as ge, isVNode as Tt, Comment as Pn, provide as Rn } from "vue";
5
- import { LocaleService as Ce } from "../locale/index.esm.js";
6
- import { isMobilePhone as Dn, getMaxZIndex as bt, useGuid as Hn, withInstall as Mt, useCommonUtils as jn, getCustomClass as Vn } from "../common/index.esm.js";
1
+ var Sn = Object.defineProperty;
2
+ var Tn = (e, t, n) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var me = (e, t, n) => Tn(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { defineComponent as Se, ref as i, computed as p, createVNode as l, Teleport as St, createApp as ct, onUnmounted as Xe, Fragment as de, watch as X, nextTick as Ne, onBeforeMount as Mn, onMounted as ze, watchEffect as kn, Transition as Tt, shallowRef as Fn, render as ut, h as On, cloneVNode as In, mergeProps as tt, inject as Ze, withDirectives as En, vShow as Pn, onUpdated as Rn, onBeforeUnmount as Dn, createTextVNode as Be, reactive as ge, isVNode as Mt, Comment as Hn, provide as jn } from "vue";
5
+ import { LocaleService as be } from "../locale/index.esm.js";
6
+ import { isMobilePhone as Vn, getMaxZIndex as bt, useGuid as Nn, withInstall as kt, useCommonUtils as zn, getCustomClass as Ln } from "../common/index.esm.js";
7
7
  import "../property-panel/index.esm.js";
8
- import Nn from "../tags/index.esm.js";
9
- import { debounce as zn, cloneDeep as Ln } from "lodash-es";
10
- import An from "../popover/index.esm.js";
11
- import { useResizeObserver as Wn } from "@vueuse/core";
12
- import { CellMode as Gn, useMobile as $n, useIdentify as Un, useGroupData as Kn, useFilter as _n, useHierarchy as Yn, useLoading as qn, useDataView as Xn, usePagination as Jn, useSelection as Zn, useDataViewContainerStyle as Qn, useCommandColumn as ea, useSettingColumn as ta, useColumn as na, useSort as aa, useGroupColumn as oa, useRow as la, useEdit as sa, useVisualDataBound as ua, useVisualDataCell as ia, useVisualDataRow as ra, useVisualGroupRow as ca, useVisualSummaryRow as da, useVisualData as fa, useCellContentStyle as va, useCellPosition as ma, useSidebar as ha, useVirtualScroll as ga, useFitColumn as pa, useFilterHistory as ya, useColumnFilter as ba, useDragColumn as Ca, getColumnHeader as wa, getPagination as xa, getSidebar as Ba, getDisableMask as Sa, getSummary as Ta, getHorizontalScrollbar as Ma, getVerticalScrollbar as ka, getFilterPanel as Oa, getGroupPanel as Fa, useNavigation as Ia, getEmpty as Ea, COMMAND_COLUMN_DATA_TYPE as Ct, SETTING_COLUMN_DATA_TYPE as wt } from "../data-view/index.esm.js";
13
- import xt from "../button/index.esm.js";
14
- import Pa from "../drawer/index.esm.js";
15
- import Ra, { FDynamicFormLabel as Da } from "../dynamic-form/index.esm.js";
16
- import { createPropsResolver as Ha } from "../dynamic-resolver/index.esm.js";
17
- const ja = {
8
+ import An from "../tags/index.esm.js";
9
+ import { debounce as Wn, cloneDeep as Gn } from "lodash-es";
10
+ import $n from "../popover/index.esm.js";
11
+ import { useResizeObserver as Un } from "@vueuse/core";
12
+ import { CellMode as _n, useMobile as Kn, useIdentify as Yn, useGroupData as qn, useFilter as Xn, useHierarchy as Jn, useLoading as Zn, useDataView as Qn, usePagination as ea, useSelection as ta, useDataViewContainerStyle as na, useCommandColumn as aa, useSettingColumn as oa, useColumn as la, useSort as ua, useGroupColumn as sa, useRow as ia, useEdit as ra, useVisualDataBound as ca, useVisualDataCell as da, useVisualDataRow as fa, useVisualGroupRow as va, useVisualSummaryRow as ma, useVisualData as ha, useCellContentStyle as ga, useCellPosition as pa, useSidebar as ya, useVirtualScroll as Ca, useFitColumn as ba, useFilterHistory as wa, useColumnFilter as xa, useDragColumn as Ba, getColumnHeader as Sa, getPagination as Ta, getSidebar as Ma, getDisableMask as ka, getSummary as Fa, getHorizontalScrollbar as Oa, getVerticalScrollbar as Ia, getFilterPanel as Ea, getGroupPanel as Pa, useNavigation as Ra, getEmpty as Da, COMMAND_COLUMN_DATA_TYPE as wt, SETTING_COLUMN_DATA_TYPE as xt } from "../data-view/index.esm.js";
13
+ import Bt from "../button/index.esm.js";
14
+ import Ha from "../drawer/index.esm.js";
15
+ import ja, { FDynamicFormLabel as Va } from "../dynamic-form/index.esm.js";
16
+ import { createPropsResolver as Na } from "../dynamic-resolver/index.esm.js";
17
+ const za = {
18
18
  /**
19
19
  * 组件标识
20
20
  */
@@ -134,65 +134,65 @@ const ja = {
134
134
  */
135
135
  limitContentBySpace: { type: Boolean, default: !1 },
136
136
  beforeClosePopup: { type: Function, default: null }
137
- }, Va = {
137
+ }, La = {
138
138
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
139
139
  host: { type: Object },
140
140
  backgroundColor: { type: String, default: "" }
141
- }, Na = /* @__PURE__ */ Se({
141
+ }, Aa = /* @__PURE__ */ Se({
142
142
  name: "FOverlay",
143
- props: Va,
143
+ props: La,
144
144
  emits: ["click"],
145
145
  setup(e, t) {
146
- const n = r(e.popupContentPosition), a = r(e.host), o = y(() => ({
146
+ const n = i(e.popupContentPosition), a = i(e.host), o = p(() => ({
147
147
  backgroundColor: e.backgroundColor || "",
148
148
  pointerEvents: "auto"
149
149
  }));
150
- function s(u) {
151
- t.emit("click"), u.preventDefault(), u.stopPropagation();
152
- }
153
- y(() => {
154
- const u = a.value;
155
- if (u) {
156
- const v = u.getBoundingClientRect(), {
157
- left: f,
158
- top: p,
159
- height: w
160
- } = v;
150
+ function u(s) {
151
+ t.emit("click"), s.preventDefault(), s.stopPropagation();
152
+ }
153
+ p(() => {
154
+ const s = a.value;
155
+ if (s) {
156
+ const f = s.getBoundingClientRect(), {
157
+ left: g,
158
+ top: m,
159
+ height: C
160
+ } = f;
161
161
  return {
162
- left: f,
163
- top: p + w
162
+ left: g,
163
+ top: m + C
164
164
  };
165
165
  }
166
166
  return n.value;
167
167
  });
168
- const i = y(() => ({
168
+ const r = p(() => ({
169
169
  // position: 'relative',
170
170
  // left: `${position.value.left}px`,
171
171
  // top: `${position.value.top}px`
172
172
  }));
173
- return () => l(Bt, {
173
+ return () => l(St, {
174
174
  to: "body"
175
175
  }, {
176
176
  default: () => {
177
- var u, v;
177
+ var s, f;
178
178
  return [l("div", {
179
179
  class: "overlay-container",
180
- onClick: (f) => s(f),
180
+ onClick: (g) => u(g),
181
181
  style: o.value
182
182
  }, [l("div", {
183
- style: i.value
184
- }, [(v = (u = t.slots).default) == null ? void 0 : v.call(u)])])];
183
+ style: r.value
184
+ }, [(f = (s = t.slots).default) == null ? void 0 : f.call(s)])])];
185
185
  }
186
186
  });
187
187
  }
188
188
  });
189
- function za(e) {
189
+ function Wa(e) {
190
190
  if (e.content && e.content.render)
191
191
  return e.content.render;
192
192
  if (e.render && typeof e.render == "function")
193
193
  return e.render;
194
194
  }
195
- function La(e) {
195
+ function Ga(e) {
196
196
  const t = document.createElement("div");
197
197
  t.style.display = "contents";
198
198
  let n;
@@ -200,29 +200,29 @@ function La(e) {
200
200
  }), o = () => {
201
201
  a(), n && n.unmount();
202
202
  };
203
- return n = rt({
203
+ return n = ct({
204
204
  setup() {
205
205
  Xe(() => {
206
206
  document.body.removeChild(t);
207
207
  });
208
- const s = za(e);
209
- return () => l(Na, {
208
+ const u = Wa(e);
209
+ return () => l(Aa, {
210
210
  "popup-content-position": e.popupPosition,
211
211
  host: e.host,
212
212
  onClick: o,
213
213
  backgroundColor: e.backgroundColor
214
214
  }, {
215
- default: () => [s && s()]
215
+ default: () => [u && u()]
216
216
  });
217
217
  }
218
218
  }), document.body.appendChild(t), n.mount(t), n;
219
219
  }
220
- class Aa {
220
+ class $a {
221
221
  static show(t) {
222
- return La(t);
222
+ return Ga(t);
223
223
  }
224
224
  }
225
- const Wa = {
225
+ const Ua = {
226
226
  /**
227
227
  * 允许点击遮罩关闭对话框
228
228
  */
@@ -311,8 +311,8 @@ class ne {
311
311
  static getTransformInfo(t) {
312
312
  const a = window.getComputedStyle(t).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
313
313
  if (a.length >= 6) {
314
- const o = parseInt(a[4], 10), s = parseInt(a[5], 10);
315
- return { x: o, y: s };
314
+ const o = parseInt(a[4], 10), u = parseInt(a[5], 10);
315
+ return { x: o, y: u };
316
316
  }
317
317
  return { x: 0, y: 0 };
318
318
  }
@@ -336,8 +336,8 @@ class ne {
336
336
  if (window) {
337
337
  const a = window.getComputedStyle(t);
338
338
  if (a) {
339
- const o = parseInt(a.getPropertyValue("left"), 10), s = parseInt(a.getPropertyValue("top"), 10);
340
- n.x = isNaN(o) ? 0 : o, n.y = isNaN(s) ? 0 : s;
339
+ const o = parseInt(a.getPropertyValue("left"), 10), u = parseInt(a.getPropertyValue("top"), 10);
340
+ n.x = isNaN(o) ? 0 : o, n.y = isNaN(u) ? 0 : u;
341
341
  }
342
342
  return n;
343
343
  }
@@ -368,12 +368,12 @@ class ne {
368
368
  return this.x = t.x, this.y = t.y, this;
369
369
  }
370
370
  }
371
- class Re {
371
+ class Pe {
372
372
  constructor(t, n) {
373
373
  this.width = t, this.height = n;
374
374
  }
375
375
  static getCurrent(t) {
376
- const n = new Re(0, 0);
376
+ const n = new Pe(0, 0);
377
377
  if (window) {
378
378
  const a = window.getComputedStyle(t);
379
379
  return a && (n.width = parseInt(a.getPropertyValue("width"), 10), n.height = parseInt(a.getPropertyValue("height"), 10)), n;
@@ -381,280 +381,280 @@ class Re {
381
381
  return null;
382
382
  }
383
383
  static copy(t) {
384
- return new Re(0, 0).set(t);
384
+ return new Pe(0, 0).set(t);
385
385
  }
386
386
  set(t) {
387
387
  return this.width = t.width, this.height = t.height, this;
388
388
  }
389
389
  }
390
- function Ga(e, t) {
391
- const n = r(), a = r(), o = r(), s = r(), i = r(), u = r(), v = r(), f = r(), p = r(), w = r(), T = r(), h = r(e.resizeable), g = r(), F = r(e.draggable), E = r(!1);
392
- function P() {
393
- const d = a.value || document.body, x = window.getComputedStyle(d);
394
- if (!x || !n.value)
390
+ function _a(e, t) {
391
+ const n = i(), a = i(), o = i(), u = i(), r = i(), s = i(), f = i(), g = i(), m = i(), C = i(), S = i(), b = i(e.resizeable), v = i(), k = i(e.draggable), P = i(!1);
392
+ function E() {
393
+ const d = a.value || document.body, B = window.getComputedStyle(d);
394
+ if (!B || !n.value)
395
395
  return;
396
- const R = ne.getTransformInfo(n.value), D = {};
397
- v.value && (D.deltaL = n.value.offsetLeft - v.value.x, D.deltaT = n.value.offsetTop - v.value.y);
398
- const A = x.getPropertyValue("position");
399
- D.width = d.clientWidth, D.height = d.clientHeight, D.pr = parseInt(x.getPropertyValue("padding-right"), 10), D.pb = parseInt(x.getPropertyValue("padding-bottom"), 10), D.position = x.getPropertyValue("position"), A === "static" && (d.style.position = "relative"), D.translateX = R.x, D.translateY = R.y, w.value = D;
396
+ const j = ne.getTransformInfo(n.value), I = {};
397
+ f.value && (I.deltaL = n.value.offsetLeft - f.value.x, I.deltaT = n.value.offsetTop - f.value.y);
398
+ const A = B.getPropertyValue("position");
399
+ I.width = d.clientWidth, I.height = d.clientHeight, I.pr = parseInt(B.getPropertyValue("padding-right"), 10), I.pb = parseInt(B.getPropertyValue("padding-bottom"), 10), I.position = B.getPropertyValue("position"), A === "static" && (d.style.position = "relative"), I.translateX = j.x, I.translateY = j.y, C.value = I;
400
400
  }
401
- function C(d) {
401
+ function y(d) {
402
402
  if (n.value) {
403
- s.value = Re.getCurrent(n.value), i.value = ne.getCurrent(n.value), u.value = s.value ? Re.copy(s.value) : null, v.value = i.value ? ne.copy(i.value) : null, P();
404
- const x = d.target.getAttribute("type") || "";
405
- f.value = {
406
- n: !!x.match(/n/),
407
- s: !!x.match(/s/),
408
- w: !!x.match(/w/),
409
- e: !!x.match(/e/)
403
+ u.value = Pe.getCurrent(n.value), r.value = ne.getCurrent(n.value), s.value = u.value ? Pe.copy(u.value) : null, f.value = r.value ? ne.copy(r.value) : null, E();
404
+ const B = d.target.getAttribute("type") || "";
405
+ g.value = {
406
+ n: !!B.match(/n/),
407
+ s: !!B.match(/s/),
408
+ w: !!B.match(/w/),
409
+ e: !!B.match(/e/)
410
410
  };
411
411
  }
412
412
  }
413
- function N() {
414
- var d, x, R, D;
413
+ function L() {
414
+ var d, B, j, I;
415
415
  if (n.value) {
416
416
  const A = n.value;
417
- f.value && ((f.value.n || f.value.s) && ((d = u.value) != null && d.height) && (A.style.height = u.value.height + "px"), (f.value.w || f.value.e) && ((x = u.value) != null && x.width) && (A.style.width = u.value.width + "px"), v.value && ((R = v.value) != null && R.x && (A.style.left = v.value.x + "px"), (D = v.value) != null && D.y && (A.style.top = v.value.y + "px")));
417
+ g.value && ((g.value.n || g.value.s) && ((d = s.value) != null && d.height) && (A.style.height = s.value.height + "px"), (g.value.w || g.value.e) && ((B = s.value) != null && B.width) && (A.style.width = s.value.width + "px"), f.value && ((j = f.value) != null && j.x && (A.style.left = f.value.x + "px"), (I = f.value) != null && I.y && (A.style.top = f.value.y + "px")));
418
418
  }
419
419
  }
420
- function U() {
421
- const d = e.minHeight ? e.minHeight : 1, x = e.minWidth ? e.minWidth : 1;
422
- u.value && v.value && f.value && s.value && (u.value.height < d && (u.value.height = d, f.value.n && i.value && (v.value.y = i.value.y + (s.value.height - d))), u.value.width < x && (u.value.width = x, f.value.w && i.value && (v.value.x = i.value.x + (s.value.width - x))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && f.value.n && (v.value.y = i.value.y + (s.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, f.value.w && i.value && (v.value.x = i.value.x + (s.value.width - e.maxWidth))));
420
+ function _() {
421
+ const d = e.minHeight ? e.minHeight : 1, B = e.minWidth ? e.minWidth : 1;
422
+ s.value && f.value && g.value && u.value && (s.value.height < d && (s.value.height = d, g.value.n && r.value && (f.value.y = r.value.y + (u.value.height - d))), s.value.width < B && (s.value.width = B, g.value.w && r.value && (f.value.x = r.value.x + (u.value.width - B))), e.maxHeight && s.value.height > e.maxHeight && (s.value.height = e.maxHeight, r.value && g.value.n && (f.value.y = r.value.y + (u.value.height - e.maxHeight))), e.maxWidth && s.value.width > e.maxWidth && (s.value.width = e.maxWidth, g.value.w && r.value && (f.value.x = r.value.x + (u.value.width - e.maxWidth))));
423
423
  }
424
- function B() {
424
+ function H() {
425
425
  if (a.value) {
426
- const d = w.value;
427
- if (v.value && u.value && f.value && s.value) {
428
- const x = d.width - d.pr - d.deltaL - d.translateX - v.value.x, R = d.height - d.pb - d.deltaT - d.translateY - v.value.y;
429
- f.value.n && v.value.y + d.translateY < 0 && i.value && (v.value.y = -d.translateY, u.value.height = s.value.height + i.value.y + d.translateY), f.value.w && v.value.x + d.translateX < 0 && i.value && (v.value.x = -d.translateX, u.value.width = s.value.width + i.value.x + d.translateX), u.value.width > x && (u.value.width = x), u.value.height > R && (u.value.height = R);
426
+ const d = C.value;
427
+ if (f.value && s.value && g.value && u.value) {
428
+ const B = d.width - d.pr - d.deltaL - d.translateX - f.value.x, j = d.height - d.pb - d.deltaT - d.translateY - f.value.y;
429
+ g.value.n && f.value.y + d.translateY < 0 && r.value && (f.value.y = -d.translateY, s.value.height = u.value.height + r.value.y + d.translateY), g.value.w && f.value.x + d.translateX < 0 && r.value && (f.value.x = -d.translateX, s.value.width = u.value.width + r.value.x + d.translateX), s.value.width > B && (s.value.width = B), s.value.height > j && (s.value.height = j);
430
430
  }
431
431
  }
432
432
  }
433
- function L(d) {
434
- if (!o.value || !s.value || !i.value || !f.value)
433
+ function F(d) {
434
+ if (!o.value || !u.value || !r.value || !g.value)
435
435
  return;
436
436
  d.subtract(o.value);
437
- const x = d.x, R = d.y;
438
- f.value.n ? (v.value.y = i.value.y + R, u.value.height = s.value.height - R) : f.value.s && (u.value.height = s.value.height + R), f.value.e ? u.value.width = s.value.width + x : f.value.w && (u.value.width = s.value.width - x, v.value.x = i.value.x + x), B(), U(), N();
437
+ const B = d.x, j = d.y;
438
+ g.value.n ? (f.value.y = r.value.y + j, s.value.height = u.value.height - j) : g.value.s && (s.value.height = u.value.height + j), g.value.e ? s.value.width = u.value.width + B : g.value.w && (s.value.width = u.value.width - B, f.value.x = r.value.x + B), H(), _(), L();
439
439
  }
440
- function b(d) {
441
- if (!p.value)
440
+ function w(d) {
441
+ if (!m.value)
442
442
  return;
443
- const x = ne.fromEvent(d);
444
- x && L(x);
443
+ const B = ne.fromEvent(d);
444
+ B && F(B);
445
445
  }
446
- function k() {
446
+ function D() {
447
447
  if (n.value) {
448
448
  const {
449
449
  width: d,
450
- height: x,
451
- x: R,
452
- y: D
450
+ height: B,
451
+ x: j,
452
+ y: I
453
453
  } = n.value.getBoundingClientRect(), A = ne.getTransformInfo(n.value);
454
454
  return {
455
455
  size: {
456
456
  width: d,
457
- height: x
457
+ height: B
458
458
  },
459
459
  position: {
460
- x: R - A.x,
461
- y: D - A.y
460
+ x: j - A.x,
461
+ y: I - A.y
462
462
  }
463
463
  };
464
464
  }
465
465
  return null;
466
466
  }
467
- function W(d) {
467
+ function V(d) {
468
468
  if (n.value) {
469
- const x = k();
470
- T.value = x;
469
+ const B = D();
470
+ S.value = B;
471
471
  }
472
- o.value = void 0, s.value = null, i.value = null, u.value = null, v.value = null, f.value = null, p.value = null, document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", W);
472
+ o.value = void 0, u.value = null, r.value = null, s.value = null, f.value = null, g.value = null, m.value = null, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", V);
473
473
  }
474
- function K() {
475
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", W);
474
+ function Y() {
475
+ document.addEventListener("mousemove", w), document.addEventListener("mouseup", V);
476
476
  }
477
- function O(d) {
478
- d instanceof MouseEvent && d.button === 2 || F.value && (document.body.click(), d.stopPropagation(), d.preventDefault(), o.value = ne.fromEvent(d), p.value = d.target, C(d), K());
477
+ function T(d) {
478
+ d instanceof MouseEvent && d.button === 2 || k.value && (document.body.click(), d.stopPropagation(), d.preventDefault(), o.value = ne.fromEvent(d), m.value = d.target, y(d), Y());
479
479
  }
480
480
  function G(d) {
481
- return n.value = d, h.value && l(pe, null, [l("div", {
481
+ return n.value = d, b.value && l(de, null, [l("div", {
482
482
  class: "fv-resizable-handle fv-resizable-n",
483
483
  type: "n",
484
- onMousedown: (x) => O(x)
484
+ onMousedown: (B) => T(B)
485
485
  }, null), l("div", {
486
486
  class: "fv-resizable-handle fv-resizable-e",
487
487
  type: "e",
488
- onMousedown: (x) => O(x)
488
+ onMousedown: (B) => T(B)
489
489
  }, null), l("div", {
490
490
  class: "fv-resizable-handle fv-resizable-s",
491
491
  type: "s",
492
- onMousedown: (x) => O(x)
492
+ onMousedown: (B) => T(B)
493
493
  }, null), l("div", {
494
494
  class: "fv-resizable-handle fv-resizable-w",
495
495
  type: "w",
496
- onMousedown: (x) => O(x)
496
+ onMousedown: (B) => T(B)
497
497
  }, null), l("div", {
498
498
  class: "fv-resizable-handle fv-resizable-ne",
499
499
  type: "ne",
500
- onMousedown: (x) => O(x)
500
+ onMousedown: (B) => T(B)
501
501
  }, null), l("div", {
502
502
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
503
503
  type: "se",
504
- onMousedown: (x) => O(x)
504
+ onMousedown: (B) => T(B)
505
505
  }, null), l("div", {
506
506
  class: "fv-resizable-handle fv-resizable-sw",
507
507
  type: "sw",
508
- onMousedown: (x) => O(x)
508
+ onMousedown: (B) => T(B)
509
509
  }, null), l("div", {
510
510
  class: "fv-resizable-handle fv-resizable-nw",
511
511
  type: "nw",
512
- onMousedown: (x) => O(x)
512
+ onMousedown: (B) => T(B)
513
513
  }, null)]);
514
514
  }
515
515
  function se(d = !0) {
516
516
  document.body.click();
517
- const x = a.value || document.body, R = Re.getCurrent(x), D = n.value;
518
- d && D && (g.value = k(), g.value.transform = D.style.transform), R && D && (u.value = R, u.value.height -= 14, u.value.width -= 14, D.style.height = u.value.height + "px", D.style.width = u.value.width + "px", D.style.left = "7px", D.style.top = "7px", D.style.transform = "", T.value = {
519
- size: u.value,
517
+ const B = a.value || document.body, j = Pe.getCurrent(B), I = n.value;
518
+ d && I && (v.value = D(), v.value.transform = I.style.transform), j && I && (s.value = j, s.value.height -= 14, s.value.width -= 14, I.style.height = s.value.height + "px", I.style.width = s.value.width + "px", I.style.left = "7px", I.style.top = "7px", I.style.transform = "", S.value = {
519
+ size: s.value,
520
520
  position: {
521
521
  x: 0,
522
522
  y: 0
523
523
  }
524
- }, F.value = !1, E.value = !0);
525
- }
526
- function X() {
527
- var d, x;
528
- if (document.body.click(), g.value) {
529
- const R = {
530
- width: g.value.size.width || 0,
531
- height: g.value.size.height || 0
532
- }, D = {
533
- x: (window.innerWidth - R.width) / 2,
534
- y: (window.innerHeight - R.height) / 2
524
+ }, k.value = !1, P.value = !0);
525
+ }
526
+ function te() {
527
+ var d, B;
528
+ if (document.body.click(), v.value) {
529
+ const j = {
530
+ width: v.value.size.width || 0,
531
+ height: v.value.size.height || 0
532
+ }, I = {
533
+ x: (window.innerWidth - j.width) / 2,
534
+ y: (window.innerHeight - j.height) / 2
535
535
  };
536
- (d = u.value) == null || d.set(R), (x = v.value) == null || x.set(D);
536
+ (d = s.value) == null || d.set(j), (B = f.value) == null || B.set(I);
537
537
  const A = n.value;
538
- A.style.height = R.height + "px", A.style.width = R.width + "px", A.style.left = `${D.x}px`, A.style.top = `${D.y}px`, A.style.transform = "", T.value = {
539
- size: R,
540
- position: D
541
- }, F.value = e.draggable, E.value = !1;
538
+ A.style.height = j.height + "px", A.style.width = j.width + "px", A.style.left = `${I.x}px`, A.style.top = `${I.y}px`, A.style.transform = "", S.value = {
539
+ size: j,
540
+ position: I
541
+ }, k.value = e.draggable, P.value = !1;
542
542
  }
543
543
  }
544
- function ue() {
544
+ function oe() {
545
545
  if (n.value) {
546
- const d = Re.getCurrent(n.value);
546
+ const d = Pe.getCurrent(n.value);
547
547
  if (d) {
548
548
  const {
549
- width: x,
550
- height: R
549
+ width: B,
550
+ height: j
551
551
  } = d;
552
- n.value.style.left = `${(window.innerWidth - x) / 2}px`, n.value.style.top = `${(window.innerHeight - R) / 2}px`, n.value.style.transform = "";
552
+ n.value.style.left = `${(window.innerWidth - B) / 2}px`, n.value.style.top = `${(window.innerHeight - j) / 2}px`, n.value.style.transform = "";
553
553
  }
554
554
  }
555
555
  }
556
- function z() {
556
+ function W() {
557
557
  const d = () => {
558
- E.value ? se(!1) : ue(), document.body.click();
558
+ P.value ? se(!1) : oe(), document.body.click();
559
559
  };
560
560
  return window.addEventListener("resize", d), () => {
561
561
  window.removeEventListener("resize", d);
562
562
  };
563
563
  }
564
- const M = z();
564
+ const M = W();
565
565
  return {
566
566
  renderResizeBar: G,
567
567
  boundingElement: a,
568
- resizedEventParam: T,
568
+ resizedEventParam: S,
569
569
  maximize: se,
570
- restore: X,
571
- allowDrag: F,
572
- isMaximized: E,
570
+ restore: te,
571
+ allowDrag: k,
572
+ isMaximized: P,
573
573
  unWindowResizeHandle: M,
574
- moveToCenter: ue
574
+ moveToCenter: oe
575
575
  };
576
576
  }
577
- function $a(e, t, n) {
578
- const a = r(), o = r(e.draggable), s = r(e.lockAxis), i = r(), u = r(), v = r(!1), f = r(new ne(0, 0)), p = r(new ne(0, 0)), w = r(new ne(0, 0)), T = r(new ne(0, 0));
579
- Z(() => n.value, (b) => {
580
- i.value.style.cursor = b ? "move" : "default";
577
+ function Ka(e, t, n) {
578
+ const a = i(), o = i(e.draggable), u = i(e.lockAxis), r = i(), s = i(), f = i(!1), g = i(new ne(0, 0)), m = i(new ne(0, 0)), C = i(new ne(0, 0)), S = i(new ne(0, 0));
579
+ X(() => n.value, (w) => {
580
+ r.value.style.cursor = w ? "move" : "default";
581
581
  });
582
- function h(b, k) {
583
- if (k.tagName === "BUTTON")
582
+ function b(w, D) {
583
+ if (D.tagName === "BUTTON")
584
584
  return !1;
585
- if (k === b)
585
+ if (D === w)
586
586
  return !0;
587
- for (const W in k.children)
588
- if (Object.prototype.hasOwnProperty.call(k.children, W) && h(b, k.children[W]))
587
+ for (const V in D.children)
588
+ if (Object.prototype.hasOwnProperty.call(D.children, V) && b(w, D.children[V]))
589
589
  return !0;
590
590
  return !1;
591
591
  }
592
- function g() {
593
- var K, O;
594
- let b = w.value.x + p.value.x, k = w.value.y + p.value.y;
595
- s.value === "x" ? (b = ((K = f.value) == null ? void 0 : K.x) || 0, w.value.x = 0) : s.value === "y" && (k = ((O = f.value) == null ? void 0 : O.y) || 0, w.value.y = 0);
596
- const W = `translate3d(${Math.round(b)}px, ${Math.round(k)}px, 0px)`;
597
- a.value && (a.value.style.transform = W), T.value.x = b, T.value.y = k;
592
+ function v() {
593
+ var Y, T;
594
+ let w = C.value.x + m.value.x, D = C.value.y + m.value.y;
595
+ u.value === "x" ? (w = ((Y = g.value) == null ? void 0 : Y.x) || 0, C.value.x = 0) : u.value === "y" && (D = ((T = g.value) == null ? void 0 : T.y) || 0, C.value.y = 0);
596
+ const V = `translate3d(${Math.round(w)}px, ${Math.round(D)}px, 0px)`;
597
+ a.value && (a.value.style.transform = V), S.value.x = w, S.value.y = D;
598
598
  }
599
- function F() {
600
- if (!u.value || !a.value)
599
+ function k() {
600
+ if (!s.value || !a.value)
601
601
  return null;
602
- const b = u.value.getBoundingClientRect(), k = a.value.getBoundingClientRect(), W = {
603
- top: b.top < k.top,
604
- right: b.right > k.right,
605
- bottom: b.bottom > k.bottom,
606
- left: b.left < k.left
602
+ const w = s.value.getBoundingClientRect(), D = a.value.getBoundingClientRect(), V = {
603
+ top: w.top < D.top,
604
+ right: w.right > D.right,
605
+ bottom: w.bottom > D.bottom,
606
+ left: w.left < D.left
607
607
  };
608
- return W.top || (w.value.y -= k.top - b.top), W.bottom || (w.value.y -= k.bottom - b.bottom), W.right || (w.value.x -= k.right - b.right), W.left || (w.value.x -= k.left - b.left), g(), W;
608
+ return V.top || (C.value.y -= D.top - w.top), V.bottom || (C.value.y -= D.bottom - w.bottom), V.right || (C.value.x -= D.right - w.right), V.left || (C.value.x -= D.left - w.left), v(), V;
609
609
  }
610
- function E(b) {
611
- b && (f.value && b.subtract(f.value), w.value.set(b), g(), F());
610
+ function P(w) {
611
+ w && (g.value && w.subtract(g.value), C.value.set(w), v(), k());
612
612
  }
613
- function P(b) {
614
- v.value && o.value && (b.stopPropagation(), b.preventDefault(), E(ne.fromEvent(b, i.value)));
613
+ function E(w) {
614
+ f.value && o.value && (w.stopPropagation(), w.preventDefault(), P(ne.fromEvent(w, r.value)));
615
615
  }
616
- function C() {
617
- var b;
618
- v.value && (v.value = !1, p.value.add(w.value), w.value.reset(), (b = a.value) == null || b.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", C));
616
+ function y() {
617
+ var w;
618
+ f.value && (f.value = !1, m.value.add(C.value), C.value.reset(), (w = a.value) == null || w.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", y));
619
619
  }
620
- function N() {
621
- !v.value && i.value && (v.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", P), document.addEventListener("mouseup", C));
620
+ function L() {
621
+ !f.value && r.value && (f.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", E), document.addEventListener("mouseup", y));
622
622
  }
623
- function U() {
623
+ function _() {
624
624
  if (a.value) {
625
- const b = ne.getTransformInfo(a.value);
626
- p.value.set(b);
625
+ const w = ne.getTransformInfo(a.value);
626
+ m.value.set(w);
627
627
  return;
628
628
  }
629
- p.value.reset();
629
+ m.value.reset();
630
630
  }
631
- function B(b) {
632
- if (!n.value || b instanceof MouseEvent && b.button === 2)
631
+ function H(w) {
632
+ if (!n.value || w instanceof MouseEvent && w.button === 2)
633
633
  return;
634
- const k = b.target || b.srcElement;
635
- i.value !== void 0 && k && !h(k, i.value) || o.value !== !1 && (document.body.click(), b.stopPropagation(), b.preventDefault(), f.value = ne.fromEvent(b, a.value), U(), N());
634
+ const D = w.target || w.srcElement;
635
+ r.value !== void 0 && D && !b(D, r.value) || o.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), g.value = ne.fromEvent(w, a.value), _(), L());
636
636
  }
637
- function L(b, k, W) {
638
- if (o.value && k) {
639
- if (b)
640
- i.value = b;
637
+ function F(w, D, V) {
638
+ if (o.value && D) {
639
+ if (w)
640
+ r.value = w;
641
641
  else if (e.dragHandle) {
642
642
  if (e.dragHandle instanceof HTMLElement)
643
- i.value = e.dragHandle;
643
+ r.value = e.dragHandle;
644
644
  else if (typeof e.dragHandle == "string") {
645
- const K = k.querySelector(e.dragHandle);
646
- K && (i.value = K);
645
+ const Y = D.querySelector(e.dragHandle);
646
+ Y && (r.value = Y);
647
647
  }
648
648
  }
649
- a.value = k, u.value = W, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", B)) : o.value = !1;
649
+ a.value = D, s.value = V, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", H)) : o.value = !1;
650
650
  }
651
651
  }
652
652
  return {
653
- registerDraggle: L,
654
- resetTranslate: U
653
+ registerDraggle: F,
654
+ resetTranslate: _
655
655
  };
656
656
  }
657
- function kt(e, t) {
657
+ function Ft(e, t) {
658
658
  if (e) {
659
659
  const n = (a) => {
660
660
  a.key.toLowerCase() === e.toLowerCase() && t({ event: a, key: e });
@@ -664,19 +664,19 @@ function kt(e, t) {
664
664
  };
665
665
  }
666
666
  }
667
- function Ua(e, t) {
668
- const n = r(e.enableEsc);
667
+ function Ya(e, t) {
668
+ const n = i(e.enableEsc);
669
669
  let a = null;
670
- return n.value ? (a = kt("Escape", (o) => {
670
+ return n.value ? (a = Ft("Escape", (o) => {
671
671
  t.emit("esc", { event: o.event, type: "esc" });
672
672
  }), {
673
673
  remove: a
674
674
  }) : null;
675
675
  }
676
- function Ka(e, t) {
677
- const n = r(e.enableEnter);
676
+ function qa(e, t) {
677
+ const n = i(e.enableEnter);
678
678
  let a = null;
679
- return n.value ? (a = kt("Enter", (o) => {
679
+ return n.value ? (a = Ft("Enter", (o) => {
680
680
  t.emit("enter", { event: o.event, type: "enter" });
681
681
  }), {
682
682
  remove: a
@@ -684,266 +684,266 @@ function Ka(e, t) {
684
684
  }
685
685
  const Ye = /* @__PURE__ */ Se({
686
686
  name: "FModal",
687
- props: Wa,
687
+ props: Ua,
688
688
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
689
689
  setup(e, t) {
690
- const n = r(e.width || 300), a = r(e.height || 200), o = r(e.modelValue), s = r(""), i = r(e.class), u = r(e.fitContent), v = r(e.showHeader), f = r(""), p = r(e.showCloseButton), w = r(e.showMaxButton), T = r(!1), h = r(e.dialogType), g = r(e.src), F = r(""), E = r(e.showButtons), P = r(e.title), C = r(e.containment || null), N = r();
691
- P.value === "错误提示" && (P.value = Ce.getLocaleValue("messageBox.errorTitle"));
692
- const U = r(!1);
693
- function B(m, j) {
694
- const Q = j ? "accept" : "cancel";
690
+ const n = i(e.width || 300), a = i(e.height || 200), o = i(e.modelValue), u = i(""), r = i(e.class), s = i(e.fitContent), f = i(e.showHeader), g = i(""), m = i(e.showCloseButton), C = i(e.showMaxButton), S = i(!1), b = i(e.dialogType), v = i(e.src), k = i(""), P = i(e.showButtons), E = i(e.title), y = i(e.containment || null), L = i();
691
+ E.value === "错误提示" && (E.value = be.getLocaleValue("messageBox.errorTitle"));
692
+ const _ = i(!1);
693
+ function H(h, N) {
694
+ const Z = N ? "accept" : "cancel";
695
695
  Promise.resolve().then(() => {
696
- var ee;
697
- return (ee = e.beforeClose) == null ? void 0 : ee.call(e, {
698
- closeType: Q
696
+ var Q;
697
+ return (Q = e.beforeClose) == null ? void 0 : Q.call(e, {
698
+ closeType: Z
699
699
  });
700
- }).then((ee) => {
701
- ee && (o.value = !1, t.emit("update:modelValue", !1), j != null && t.emit(j ? "accept" : "cancel"), t.emit("closed", m));
700
+ }).then((Q) => {
701
+ Q && (o.value = !1, t.emit("update:modelValue", !1), N != null && t.emit(N ? "accept" : "cancel"), t.emit("closed", h));
702
702
  });
703
703
  }
704
- const L = [{
704
+ const F = [{
705
705
  name: "cancel",
706
- text: Ce.getLocaleValue("messageBox.cancel") || "取消",
706
+ text: be.getLocaleValue("messageBox.cancel") || "取消",
707
707
  class: "btn btn-secondary",
708
- handle: (m) => {
709
- B(m, !1);
708
+ handle: (h) => {
709
+ H(h, !1);
710
710
  }
711
711
  }, {
712
712
  name: "accept",
713
- text: Ce.getLocaleValue("messageBox.ok") || "确定",
713
+ text: be.getLocaleValue("messageBox.ok") || "确定",
714
714
  class: "btn btn-primary",
715
- handle: (m) => {
716
- B(m, !0);
715
+ handle: (h) => {
716
+ H(h, !0);
717
717
  }
718
- }], b = r(e.buttons && e.buttons.length ? e.buttons : L), k = y(() => !!f.value), W = y(() => !!E.value && !!b.value), K = r(), O = r(), G = r(!1), {
718
+ }], w = i(e.buttons && e.buttons.length ? e.buttons : F), D = p(() => !!g.value), V = p(() => !!P.value && !!w.value), Y = i(), T = i(), G = i(!1), {
719
719
  renderResizeBar: se,
720
- maximize: X,
721
- restore: ue,
722
- boundingElement: z,
720
+ maximize: te,
721
+ restore: oe,
722
+ boundingElement: W,
723
723
  resizedEventParam: M,
724
724
  allowDrag: d,
725
- unWindowResizeHandle: x,
726
- moveToCenter: R
727
- } = Ga(e), {
728
- registerDraggle: D
729
- } = $a(e, t, d);
725
+ unWindowResizeHandle: B,
726
+ moveToCenter: j
727
+ } = _a(e), {
728
+ registerDraggle: I
729
+ } = Ka(e, t, d);
730
730
  function A() {
731
731
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
732
732
  }
733
- function q() {
734
- const m = document.querySelectorAll(".farris-modal").length;
735
- (!m || m - 1 <= 0) && document.body.classList.remove("modal-open"), N.value && N.value.classList.remove("show");
736
- }
737
- Z(() => e.title, (m, j) => {
738
- m !== j && (P.value = m);
739
- }), Z(() => e.modelValue, (m, j) => {
740
- m !== j && (o.value = m, o.value && e.draggable && Ne(() => {
741
- O.value && !C.value && (C.value = O.value.parentElement, z.value = C.value, D(K.value, O.value, z.value), R());
742
- }), m || (C.value && (C.value = null), q())), o.value ? U.value = A() : (G.value = !1, d.value = e.draggable);
743
- }), Z(() => e.showHeader, (m, j) => {
744
- m !== j && (v.value = m);
745
- }), Z(() => e.showButtons, (m, j) => {
746
- m !== j && (E.value = m);
747
- }), Z(() => M.value, (m, j) => {
748
- const Q = m || {}, ee = j || {};
749
- JSON.stringify(Q) !== JSON.stringify(ee) && t.emit("resize", {
750
- newSize: m,
751
- oldSize: j,
733
+ function J() {
734
+ const h = document.querySelectorAll(".farris-modal").length;
735
+ (!h || h - 1 <= 0) && document.body.classList.remove("modal-open"), L.value && L.value.classList.remove("show");
736
+ }
737
+ X(() => e.title, (h, N) => {
738
+ h !== N && (E.value = h);
739
+ }), X(() => e.modelValue, (h, N) => {
740
+ h !== N && (o.value = h, o.value && e.draggable && Ne(() => {
741
+ T.value && !y.value && (y.value = T.value.parentElement, W.value = y.value, I(Y.value, T.value, W.value), j());
742
+ }), h || (y.value && (y.value = null), J())), o.value ? _.value = A() : (G.value = !1, d.value = e.draggable);
743
+ }), X(() => e.showHeader, (h, N) => {
744
+ h !== N && (f.value = h);
745
+ }), X(() => e.showButtons, (h, N) => {
746
+ h !== N && (P.value = h);
747
+ }), X(() => M.value, (h, N) => {
748
+ const Z = h || {}, Q = N || {};
749
+ JSON.stringify(Z) !== JSON.stringify(Q) && t.emit("resize", {
750
+ newSize: h,
751
+ oldSize: N,
752
752
  isMaximized: G.value
753
753
  });
754
- }), Z([() => e.width, () => e.height], (m, j) => {
755
- (m[0] !== j[0] || m[1] !== j[1]) && (n.value = m[0] || 500, a.value = m[1] || 600);
756
- }), Z(() => e.class, (m, j) => {
757
- i.value = m;
754
+ }), X([() => e.width, () => e.height], (h, N) => {
755
+ (h[0] !== N[0] || h[1] !== N[1]) && (n.value = h[0] || 500, a.value = h[1] || 600);
756
+ }), X(() => e.class, (h, N) => {
757
+ r.value = h;
758
758
  });
759
- const oe = y(() => (o.value && document.body.classList.add("modal-open"), o.value)), re = y(() => {
760
- var Q;
761
- const m = {
759
+ const ae = p(() => (o.value && document.body.classList.add("modal-open"), o.value)), pe = p(() => {
760
+ var Z;
761
+ const h = {
762
762
  modal: !0,
763
763
  "farris-modal": !0,
764
764
  fade: !0
765
765
  };
766
- m["f-modal-fitContent"] = !!u.value, m.show = !!oe.value;
767
- const j = (Q = e.maskClass) == null ? void 0 : Q.split(" ");
768
- return j == null || j.reduce((ee, le) => (ee[le] = !0, ee), m), m;
769
- }), de = y(() => {
770
- var Q;
771
- const m = {
766
+ h["f-modal-fitContent"] = !!s.value, h.show = !!ae.value;
767
+ const N = (Z = e.maskClass) == null ? void 0 : Z.split(" ");
768
+ return N == null || N.reduce((Q, ue) => (Q[ue] = !0, Q), h), h;
769
+ }), Te = p(() => {
770
+ var Z;
771
+ const h = {
772
772
  "modal-dialog": !0
773
- }, j = (Q = i.value) == null ? void 0 : Q.split(" ");
774
- return j == null || j.reduce((ee, le) => (ee[le] = !0, ee), m), m;
775
- }), te = () => Dn() && !e.isMessager, Te = y(() => {
776
- const m = document.documentElement.clientWidth, j = document.documentElement.clientHeight, Q = Math.min(n.value, m), ee = u.value ? "auto" : `${Math.min(a.value, j - 10)}px`, le = {
773
+ }, N = (Z = r.value) == null ? void 0 : Z.split(" ");
774
+ return N == null || N.reduce((Q, ue) => (Q[ue] = !0, Q), h), h;
775
+ }), fe = () => Vn() && !e.isMessager, ee = p(() => {
776
+ const h = document.documentElement.clientWidth, N = document.documentElement.clientHeight, Z = Math.min(n.value, h), Q = s.value ? "auto" : `${Math.min(a.value, N - 10)}px`, ue = {
777
777
  position: "absolute",
778
- top: `${(window.innerHeight - parseInt(ee === "auto" ? "0" : ee)) / 2}px`,
779
- left: `${(window.innerWidth - Q) / 2}px`,
780
- width: `${Q}px`,
781
- height: ee
778
+ top: `${(window.innerHeight - parseInt(Q === "auto" ? "0" : Q)) / 2}px`,
779
+ left: `${(window.innerWidth - Z) / 2}px`,
780
+ width: `${Z}px`,
781
+ height: Q
782
782
  };
783
- return te() && (le.top = "0px", le.left = "0px", le.width = `${window.innerWidth}px`, le.height = `${window.innerHeight}px`), e.mask || (le.pointerEvents = "auto"), le;
784
- }), fe = r(bt() || 1050), ye = y(() => {
785
- const m = {
783
+ return fe() && (ue.top = "0px", ue.left = "0px", ue.width = `${window.innerWidth}px`, ue.height = `${window.innerHeight}px`), e.mask || (ue.pointerEvents = "auto"), ue;
784
+ }), we = i(bt() || 1050), re = p(() => {
785
+ const h = {
786
786
  display: "block",
787
787
  overflow: "hidden"
788
788
  };
789
- return e.mask || (m.pointerEvents = "none", m.backgroundColor = "transparent"), U.value && (m.backgroundColor = "transparent"), m.zIndex = fe.value, m;
790
- }), Me = y(() => ({
789
+ return e.mask || (h.pointerEvents = "none", h.backgroundColor = "transparent"), _.value && (h.backgroundColor = "transparent"), h.zIndex = we.value, h;
790
+ }), ye = p(() => ({
791
791
  "modal-content": !0,
792
- "modal-content-has-header": v.value,
793
- "is-mobile": te()
794
- })), Le = y(() => {
795
- const m = {
796
- display: v.value ? "" : "none"
792
+ "modal-content-has-header": f.value,
793
+ "is-mobile": fe()
794
+ })), Le = p(() => {
795
+ const h = {
796
+ display: f.value ? "" : "none"
797
797
  };
798
- return m["pointer-events"] = d.value ? "auto" : "none", m;
799
- }), ke = y(() => ({
798
+ return h["pointer-events"] = d.value ? "auto" : "none", h;
799
+ }), Ae = p(() => ({
800
800
  "f-icon": !0,
801
801
  modal_maximize: !0,
802
802
  modalrevert: G.value
803
- })), De = y(() => ({
803
+ })), Me = p(() => ({
804
804
  "modal-body": !0,
805
- "f-utils-flex-column": h.value === "iframe",
805
+ "f-utils-flex-column": b.value === "iframe",
806
806
  "f-utils-fill": !0
807
807
  }));
808
- function Ae() {
808
+ function Re() {
809
809
  return {
810
810
  height: `${e.footerHeight || 60}px`
811
811
  };
812
812
  }
813
- const We = y(() => {
814
- const m = {
815
- textAlgin: F.value
816
- }, j = Ae();
817
- return Object.assign(m, j);
813
+ const We = p(() => {
814
+ const h = {
815
+ textAlgin: k.value
816
+ }, N = Re();
817
+ return Object.assign(h, N);
818
818
  });
819
- function we(m) {
820
- if (m == null || m.stopPropagation(), G.value) {
821
- G.value = !1, ue();
819
+ function De(h) {
820
+ if (h == null || h.stopPropagation(), G.value) {
821
+ G.value = !1, oe();
822
822
  return;
823
823
  }
824
- X(), G.value = !0;
824
+ te(), G.value = !0;
825
825
  }
826
- async function Ge(m, j) {
827
- m.handle && await m.handle(j, m) && t.emit("closed", j);
826
+ async function ke(h, N) {
827
+ h.handle && await h.handle(N, h) && t.emit("closed", N);
828
828
  }
829
- function $e(m) {
830
- m.width && (n.value = m.width), m.height && (a.value = m.height), m.buttons && (b.value = m.buttons), m.title && (P.value = m.title);
829
+ function Ge(h) {
830
+ h.width && (n.value = h.width), h.height && (a.value = h.height), h.buttons && (w.value = h.buttons), h.title && (E.value = h.title);
831
831
  }
832
- let _ = null, Oe = null;
833
- Bn(() => {
834
- U.value = A();
832
+ let Fe = null, K = null;
833
+ Mn(() => {
834
+ _.value = A();
835
835
  }), ze(() => {
836
- O.value && !C.value && (C.value = O.value.parentElement, z.value = C.value, D(K.value, O.value, z.value)), oe.value && document.body.classList.add("modal-open"), _ = Ua(e, t), Oe = Ka(e, t);
836
+ T.value && !y.value && (y.value = T.value.parentElement, W.value = y.value, I(Y.value, T.value, W.value)), ae.value && document.body.classList.add("modal-open"), Fe = Ya(e, t), K = qa(e, t);
837
837
  }), Xe(() => {
838
- x && x(), _ && _.remove(), Oe && Oe.remove();
838
+ B && B(), Fe && Fe.remove(), K && K.remove();
839
839
  }), t.expose({
840
- modalElementRef: O,
841
- updateModalOptions: $e,
842
- close: B,
843
- maxDialog: we,
840
+ modalElementRef: T,
841
+ updateModalOptions: Ge,
842
+ close: H,
843
+ maxDialog: De,
844
844
  isMaximized: G
845
845
  });
846
- function He() {
847
- return l("ul", null, [T.value && l("li", {
846
+ function $e() {
847
+ return l("ul", null, [S.value && l("li", {
848
848
  class: "f-btn-icon f-bare"
849
849
  }, [l("span", {
850
850
  class: "f-icon modal_minimize"
851
- }, null)]), w.value && l("li", {
852
- onClick: we,
851
+ }, null)]), C.value && l("li", {
852
+ onClick: De,
853
853
  class: "f-btn-icon f-bare",
854
854
  style: "pointer-events: auto;"
855
855
  }, [l("span", {
856
- class: ke.value
857
- }, null)]), p.value && l("li", {
856
+ class: Ae.value
857
+ }, null)]), m.value && l("li", {
858
858
  class: "f-btn-icon f-bare",
859
- onClick: (m) => B(m, !1),
859
+ onClick: (h) => H(h, !1),
860
860
  style: "pointer-events: auto;"
861
861
  }, [l("span", {
862
862
  class: "f-icon modal_close"
863
863
  }, null)])]);
864
864
  }
865
- function je() {
865
+ function He() {
866
866
  return l("div", {
867
867
  class: "modal-footer",
868
868
  style: We.value
869
- }, [b.value && b.value.map((m) => {
870
- const j = r(m.disabled);
869
+ }, [w.value && w.value.map((h) => {
870
+ const N = i(h.disabled);
871
871
  return l("button", {
872
- name: m.name,
872
+ name: h.name,
873
873
  type: "button",
874
- disabled: j.value,
875
- class: m.class + (m.iconClass ? " btn-icontext" : ""),
876
- onClick: (Q) => {
877
- Ge(m, Q);
874
+ disabled: N.value,
875
+ class: h.class + (h.iconClass ? " btn-icontext" : ""),
876
+ onClick: (Z) => {
877
+ ke(h, Z);
878
878
  }
879
- }, [!!m.iconClass && l("i", {
880
- class: m.iconClass
881
- }, null), m.text]);
879
+ }, [!!h.iconClass && l("i", {
880
+ class: h.iconClass
881
+ }, null), h.text]);
882
882
  })]);
883
883
  }
884
- function xe() {
884
+ function je() {
885
885
  return l("div", {
886
- ref: K,
886
+ ref: Y,
887
887
  class: "modal-header",
888
888
  style: Le.value
889
889
  }, [t.slots.headerTemplate ? t.slots.headerTemplate() : l("div", {
890
890
  class: "modal-title"
891
- }, [k.value && l("span", {
892
- class: f.value,
891
+ }, [D.value && l("span", {
892
+ class: g.value,
893
893
  style: "margin-right: 8px"
894
894
  }, null), l("span", {
895
895
  class: "modal-title-label"
896
- }, [P.value])]), l("div", {
896
+ }, [E.value])]), l("div", {
897
897
  class: "actions"
898
- }, [He()])]);
898
+ }, [$e()])]);
899
899
  }
900
- function ve() {
901
- return t.slots.footerTemplate ? t.slots.footerTemplate() : W.value && je();
900
+ function xe() {
901
+ return t.slots.footerTemplate ? t.slots.footerTemplate() : V.value && He();
902
902
  }
903
- function Ue(m) {
904
- if (m.stopPropagation(), e.allowClickMaskToClose) {
905
- if (m.target !== N.value)
903
+ function ve(h) {
904
+ if (h.stopPropagation(), e.allowClickMaskToClose) {
905
+ if (h.target !== L.value)
906
906
  return;
907
- B(m, !1);
907
+ H(h, !1);
908
908
  }
909
909
  }
910
- function Fe() {
911
- var m, j;
910
+ function Ue() {
911
+ var h, N;
912
912
  return l("div", {
913
- id: s.value,
914
- class: de.value,
915
- style: Te.value,
916
- ref: O
913
+ id: u.value,
914
+ class: Te.value,
915
+ style: ee.value,
916
+ ref: T
917
917
  }, [l("div", {
918
+ class: ye.value
919
+ }, [f.value && je(), l("div", {
918
920
  class: Me.value
919
- }, [v.value && xe(), l("div", {
920
- class: De.value
921
- }, [(j = (m = t.slots).default) == null ? void 0 : j.call(m), h.value === "iframe" && l("iframe", {
922
- title: s.value,
921
+ }, [(N = (h = t.slots).default) == null ? void 0 : N.call(h), b.value === "iframe" && l("iframe", {
922
+ title: u.value,
923
923
  class: "f-utils-fill",
924
924
  width: "100%",
925
925
  frameborder: "0",
926
- src: g.value
927
- }, null)]), ve()]), !u.value && O.value && !G.value && se(O.value)]);
926
+ src: v.value
927
+ }, null)]), xe()]), !s.value && T.value && !G.value && se(T.value)]);
928
928
  }
929
- function Ie(m) {
930
- return m || "body";
929
+ function Oe(h) {
930
+ return h || "body";
931
931
  }
932
- return Sn(() => {
933
- oe.value && (fe.value = bt() || 1050);
934
- }), () => l(Bt, {
935
- to: Ie(e.host)
932
+ return kn(() => {
933
+ ae.value && (we.value = bt() || 1050);
934
+ }), () => l(St, {
935
+ to: Oe(e.host)
936
936
  }, {
937
- default: () => [oe.value && l(St, {
937
+ default: () => [ae.value && l(Tt, {
938
938
  name: "fade",
939
939
  appear: !0
940
940
  }, {
941
941
  default: () => [l("div", {
942
- ref: N,
943
- class: re.value,
944
- style: ye.value,
945
- onClick: Ue
946
- }, [Fe()])]
942
+ ref: L,
943
+ class: pe.value,
944
+ style: re.value,
945
+ onClick: ve
946
+ }, [Ue()])]
947
947
  })]
948
948
  });
949
949
  }
@@ -954,59 +954,59 @@ function Ot(e) {
954
954
  if (e.render && typeof e.render == "function")
955
955
  return e.render;
956
956
  }
957
- function _a(e) {
957
+ function Xa(e) {
958
958
  const t = document.createElement("div");
959
959
  t.style.display = "contents";
960
- const n = rt({
960
+ const n = ct({
961
961
  setup(a, o) {
962
962
  Xe(() => {
963
963
  document.body.removeChild(t);
964
964
  });
965
- const s = r(), i = r(e.class || ""), u = r(!!e.showButtons), v = r(!!e.showHeader), f = r(e.showCloseButton == null ? !0 : e.showCloseButton), p = r(!0), w = r(e.title || ""), T = e.acceptCallback || (() => {
966
- }), h = e.rejectCallback || (() => {
967
- }), g = e.closedCallback || ((N) => {
968
- }), F = e.resizeHandle || ((N) => {
969
- }), E = e.stopMoveHandle || ((N) => {
970
- }), P = Ot(e), C = (N) => {
971
- p.value = !1, n.unmount(), g(N);
965
+ const u = i(), r = i(e.class || ""), s = i(!!e.showButtons), f = i(!!e.showHeader), g = i(e.showCloseButton == null ? !0 : e.showCloseButton), m = i(!0), C = i(e.title || ""), S = e.acceptCallback || (() => {
966
+ }), b = e.rejectCallback || (() => {
967
+ }), v = e.closedCallback || ((L) => {
968
+ }), k = e.resizeHandle || ((L) => {
969
+ }), P = e.stopMoveHandle || ((L) => {
970
+ }), E = Ot(e), y = (L) => {
971
+ m.value = !1, n.unmount(), v(L);
972
972
  };
973
973
  return ze(() => {
974
974
  }), o.expose({
975
- modalRef: s
975
+ modalRef: u
976
976
  }), () => l(Ye, {
977
- ref: s,
978
- class: i.value,
979
- modelValue: p.value,
980
- "onUpdate:modelValue": (N) => p.value = N,
981
- title: w.value,
977
+ ref: u,
978
+ class: r.value,
979
+ modelValue: m.value,
980
+ "onUpdate:modelValue": (L) => m.value = L,
981
+ title: C.value,
982
982
  width: e.width,
983
983
  height: e.height,
984
984
  buttons: e.buttons,
985
- "show-header": v.value,
986
- "show-buttons": u.value,
987
- "show-close-button": f.value,
985
+ "show-header": f.value,
986
+ "show-buttons": s.value,
987
+ "show-close-button": g.value,
988
988
  "show-max-button": !1,
989
- onAccept: T,
990
- onCancel: h,
989
+ onAccept: S,
990
+ onCancel: b,
991
991
  fitContent: e.fitContent == null ? !0 : e.fitContent,
992
- onClosed: C,
993
- onResize: F,
994
- onStopMove: E
992
+ onClosed: y,
993
+ onResize: k,
994
+ onStopMove: P
995
995
  }, {
996
- default: () => [P && P(n)]
996
+ default: () => [E && E(n)]
997
997
  });
998
998
  }
999
999
  });
1000
- return document.body.appendChild(t), n.use(Ce.i18n), n.mount(t), n;
1000
+ return document.body.appendChild(t), n.use(be.i18n), n.mount(t), n;
1001
1001
  }
1002
- class Ft {
1002
+ class It {
1003
1003
  constructor(t) {
1004
1004
  me(this, "appContext", null);
1005
- me(this, "modalRef", r());
1006
- me(this, "activeModalIndex", r(0));
1005
+ me(this, "modalRef", i());
1006
+ me(this, "activeModalIndex", i(0));
1007
1007
  me(this, "modalRefs", {});
1008
- me(this, "isUseEscCloseModal", r(!1));
1009
- me(this, "activeModalInstance", y(() => this.modalRefs[this.activeModalIndex.value]));
1008
+ me(this, "isUseEscCloseModal", i(!1));
1009
+ me(this, "activeModalInstance", p(() => this.modalRefs[this.activeModalIndex.value]));
1010
1010
  this.app = t, this.appContext = t ? t._context : null;
1011
1011
  }
1012
1012
  getCurrentModal() {
@@ -1031,7 +1031,7 @@ class Ft {
1031
1031
  showButtons: !0,
1032
1032
  showHeader: !0
1033
1033
  }, t);
1034
- return _a(n);
1034
+ return Xa(n);
1035
1035
  }
1036
1036
  close(t) {
1037
1037
  var n, a;
@@ -1040,432 +1040,432 @@ class Ft {
1040
1040
  open(t) {
1041
1041
  const n = document.createDocumentFragment();
1042
1042
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
1043
- const a = Tn(Object.assign({
1043
+ const a = Fn(Object.assign({
1044
1044
  title: "",
1045
1045
  showButtons: !0,
1046
1046
  showHeader: !0
1047
- }, t)), o = r(!0), s = a.value.acceptCallback || (() => {
1048
- }), i = a.value.rejectCallback || (() => {
1049
- }), u = a.value.closedCallback || ((B, L) => {
1050
- }), v = a.value.resizeHandle || ((B) => {
1051
- }), f = t.stopMoveHandle || ((B) => {
1047
+ }, t)), o = i(!0), u = a.value.acceptCallback || (() => {
1048
+ }), r = a.value.rejectCallback || (() => {
1049
+ }), s = a.value.closedCallback || ((H, F) => {
1050
+ }), f = a.value.resizeHandle || ((H) => {
1051
+ }), g = t.stopMoveHandle || ((H) => {
1052
1052
  });
1053
- let p;
1054
- const w = Ot(a.value), T = (B) => {
1055
- var b;
1053
+ let m;
1054
+ const C = Ot(a.value), S = (H) => {
1055
+ var w;
1056
1056
  o.value = !1;
1057
- const L = (b = B == null ? void 0 : B.target) == null ? void 0 : b.classList.contains("modal_close");
1058
- u(B, this.isUseEscCloseModal.value ? "esc" : L ? "icon" : "button");
1059
- }, h = (B) => {
1060
- T(B), p && Ne(() => {
1061
- if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], lt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
1062
- const L = Object.keys(this.modalRefs).map((b) => Number(b));
1063
- L.length > 0 ? this.activeModalIndex.value = Math.max(...L) : this.activeModalIndex.value = 0;
1057
+ const F = (w = H == null ? void 0 : H.target) == null ? void 0 : w.classList.contains("modal_close");
1058
+ s(H, this.isUseEscCloseModal.value ? "esc" : F ? "icon" : "button");
1059
+ }, b = (H) => {
1060
+ S(H), m && Ne(() => {
1061
+ if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ut(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
1062
+ const F = Object.keys(this.modalRefs).map((w) => Number(w));
1063
+ F.length > 0 ? this.activeModalIndex.value = Math.max(...F) : this.activeModalIndex.value = 0;
1064
1064
  }
1065
1065
  this.isUseEscCloseModal.value = !1;
1066
1066
  });
1067
- }, g = (B) => {
1068
- var L;
1069
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((L = this.activeModalInstance.value) == null || L.close(B == null ? void 0 : B.event));
1067
+ }, v = (H) => {
1068
+ var F;
1069
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((F = this.activeModalInstance.value) == null || F.close(H == null ? void 0 : H.event));
1070
1070
  }, {
1071
- width: F,
1072
- height: E
1073
- } = a.value, P = this.adaptToWindow(F || 500, E || 320);
1074
- Object.assign(a.value, P);
1075
- const C = () => l(Ye, tt({
1071
+ width: k,
1072
+ height: P
1073
+ } = a.value, E = this.adaptToWindow(k || 500, P || 320);
1074
+ Object.assign(a.value, E);
1075
+ const y = () => l(Ye, tt({
1076
1076
  ref: this.modalRef,
1077
1077
  modelValue: o.value,
1078
- "onUpdate:modelValue": (B) => o.value = B
1078
+ "onUpdate:modelValue": (H) => o.value = H
1079
1079
  }, a.value, {
1080
1080
  isMessager: a.value.class && a.value.class.indexOf("modal-message") > -1,
1081
- onAccept: s,
1082
- onCancel: i,
1083
- onClosed: h,
1084
- onResize: v,
1085
- onEsc: g,
1086
- onStopMove: f
1081
+ onAccept: u,
1082
+ onCancel: r,
1083
+ onClosed: b,
1084
+ onResize: f,
1085
+ onEsc: v,
1086
+ onStopMove: g
1087
1087
  }), {
1088
- default: () => [w && w(this.app)]
1088
+ default: () => [C && C(this.app)]
1089
1089
  });
1090
- return p = ((B) => {
1091
- const L = Mn(C, B);
1092
- return L.appContext = this.appContext, lt(L, n), L;
1090
+ return m = ((H) => {
1091
+ const F = On(y, H);
1092
+ return F.appContext = this.appContext, ut(F, n), F;
1093
1093
  })({
1094
1094
  ...a.value
1095
1095
  // 'onUpdate:modelValue': onUpdateModelValue,
1096
1096
  }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
1097
- update: (B) => {
1097
+ update: (H) => {
1098
1098
  a.value = {
1099
1099
  ...a.value,
1100
- ...B
1101
- }, p && lt(kn(p, {
1100
+ ...H
1101
+ }, m && ut(In(m, {
1102
1102
  ...a
1103
1103
  }), n);
1104
1104
  },
1105
- destroy: h,
1105
+ destroy: b,
1106
1106
  modalRef: this.activeModalInstance,
1107
1107
  close: () => this.close()
1108
1108
  };
1109
1109
  }
1110
1110
  }
1111
- const It = Symbol("FModalService");
1111
+ const Et = Symbol("FModalService");
1112
1112
  Ye.install = (e) => {
1113
1113
  e.component(Ye.name, Ye);
1114
- const t = new Ft(e);
1115
- e.provide(It, t), e.provide("FModalService", t);
1114
+ const t = new It(e);
1115
+ e.provide(Et, t), e.provide("FModalService", t);
1116
1116
  };
1117
- function Et(e, t) {
1117
+ function Pt(e, t) {
1118
1118
  function n() {
1119
1119
  const a = e.beforeOpen || e.beforeClickButton || null;
1120
1120
  let o = Promise.resolve(!0);
1121
1121
  if (a) {
1122
- const s = a(t.value);
1123
- if (typeof s > "u")
1122
+ const u = a(t.value);
1123
+ if (typeof u > "u")
1124
1124
  return o;
1125
- typeof s == "boolean" ? o = Promise.resolve(s) : o = s;
1125
+ typeof u == "boolean" ? o = Promise.resolve(u) : o = u;
1126
1126
  }
1127
1127
  return o;
1128
1128
  }
1129
1129
  return { judgeCanOpen: n };
1130
1130
  }
1131
- function Ya(e, t, n, a, o) {
1132
- const s = r(e.buttonBehavior), i = r(e.popupOnInput), u = y(() => ({
1131
+ function Ja(e, t, n, a, o) {
1132
+ const u = i(e.buttonBehavior), r = i(e.popupOnInput), s = p(() => ({
1133
1133
  "input-group-append": !0,
1134
1134
  "append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
1135
- })), { judgeCanOpen: v } = Et(e, o), f = y(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = Ze(It, null), w = r();
1136
- async function T(F) {
1137
- if (await v() && f.value) {
1138
- const E = !!t.slots.default;
1139
- if (s.value === "Modal") {
1140
- const P = e.modalOptions, C = p == null ? void 0 : p.open({
1141
- ...P,
1135
+ })), { judgeCanOpen: f } = Pt(e, o), g = p(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = Ze(Et, null), C = i();
1136
+ async function S(k) {
1137
+ if (await f() && g.value) {
1138
+ const P = !!t.slots.default;
1139
+ if (u.value === "Modal") {
1140
+ const E = e.modalOptions, y = m == null ? void 0 : m.open({
1141
+ ...E,
1142
1142
  render: () => t.slots.default && t.slots.default()
1143
1143
  });
1144
- w.value = C == null ? void 0 : C.modalRef;
1144
+ C.value = y == null ? void 0 : y.modalRef;
1145
1145
  }
1146
- s.value === "Overlay" && Aa.show({
1146
+ u.value === "Overlay" && $a.show({
1147
1147
  // host: buttonEditRef.value,
1148
1148
  host: document.body,
1149
1149
  backgroundColor: "rgba(0,0,0,.15)",
1150
1150
  render: () => t.slots.default && t.slots.default()
1151
- }), E && s.value === "Popup" && a.togglePopup(!0), E && i.value && a.hidePopup(), t.emit("clickButton", { origin: F, value: e.modelValue });
1151
+ }), P && u.value === "Popup" && a.togglePopup(!0), P && r.value && a.hidePopup(), t.emit("clickButton", { origin: k, value: e.modelValue });
1152
1152
  }
1153
1153
  }
1154
- function h(F) {
1155
- t.emit("mouseEnterIcon", F);
1154
+ function b(k) {
1155
+ t.emit("mouseEnterIcon", k);
1156
1156
  }
1157
- function g(F) {
1158
- t.emit("mouseLeaveIcon", F);
1157
+ function v(k) {
1158
+ t.emit("mouseLeaveIcon", k);
1159
1159
  }
1160
1160
  return {
1161
- buttonGroupClass: u,
1162
- onClickButton: T,
1163
- onMouseEnterButton: h,
1164
- onMouseLeaveButton: g,
1165
- modalRef: w
1161
+ buttonGroupClass: s,
1162
+ onClickButton: S,
1163
+ onMouseEnterButton: b,
1164
+ onMouseLeaveButton: v,
1165
+ modalRef: C
1166
1166
  };
1167
1167
  }
1168
- function qa(e, t, n, a, o, s) {
1169
- const i = r(!1), u = y(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: v, hasClearClass: f } = s;
1170
- function p(g) {
1171
- i.value = g, f.value = g;
1168
+ function Za(e, t, n, a, o, u) {
1169
+ const r = i(!1), s = p(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: f, hasClearClass: g } = u;
1170
+ function m(v) {
1171
+ r.value = v, g.value = v;
1172
1172
  }
1173
- Z(o, () => {
1174
- p(!!o.value);
1173
+ X(o, () => {
1174
+ m(!!o.value);
1175
1175
  });
1176
- function w(g) {
1177
- const F = !e.readonly && !e.disable && e.editable, E = !e.editable;
1178
- g.stopPropagation(), (F || E) && (v(""), o.value = "", p(!i.value), t.emit("clear"));
1176
+ function C(v) {
1177
+ const k = !e.readonly && !e.disable && e.editable, P = !e.editable;
1178
+ v.stopPropagation(), (k || P) && (f(""), o.value = "", m(!r.value), t.emit("clear"));
1179
1179
  }
1180
- function T(g) {
1181
- if (u.value) {
1180
+ function S(v) {
1181
+ if (s.value) {
1182
1182
  if (!n.value) {
1183
- p(!1);
1183
+ m(!1);
1184
1184
  return;
1185
1185
  }
1186
- !e.disable && !e.readonly && p(!0);
1186
+ !e.disable && !e.readonly && m(!0);
1187
1187
  }
1188
1188
  }
1189
- function h(g) {
1190
- u.value && p(!1);
1189
+ function b(v) {
1190
+ s.value && m(!1);
1191
1191
  }
1192
1192
  return {
1193
- enableClearButton: u,
1194
- showClearButton: i,
1195
- onClearValue: w,
1196
- onMouseEnterTextBox: T,
1197
- onMouseLeaveTextBox: h
1193
+ enableClearButton: s,
1194
+ showClearButton: r,
1195
+ onClearValue: C,
1196
+ onMouseEnterTextBox: S,
1197
+ onMouseLeaveTextBox: b
1198
1198
  };
1199
1199
  }
1200
- function Xa(e, t, n, a, o) {
1201
- const s = y(() => e.popupOnInput), i = y(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: v } = o, f = r(!1), p = y(() => e.enableTitle ? n.value : ""), w = y(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = y(() => e.readonly || !e.editable), h = r(!1), g = y(() => !e.disable && h.value), F = y(() => ({
1200
+ function Qa(e, t, n, a, o) {
1201
+ const u = p(() => e.popupOnInput), r = p(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: f } = o, g = i(!1), m = p(() => e.enableTitle ? n.value : ""), C = p(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), S = p(() => e.readonly || !e.editable), b = i(!1), v = p(() => !e.disable && b.value), k = p(() => ({
1202
1202
  "text-left": e.textAlign === "left",
1203
1203
  "text-center": e.textAlign === "center",
1204
1204
  "text-right": e.textAlign === "right",
1205
1205
  "form-control": !0,
1206
1206
  "f-utils-fill": !0
1207
- })), E = y(() => ({
1207
+ })), P = p(() => ({
1208
1208
  "input-group": !0,
1209
1209
  "f-state-disabled": e.disable,
1210
1210
  "f-state-editable": e.editable && !e.disable && !e.readonly,
1211
1211
  "f-state-readonly": e.readonly,
1212
- "f-state-focus": g.value,
1213
- "input-group--has-clear": e.enableClear && f.value
1212
+ "f-state-focus": v.value,
1213
+ "input-group--has-clear": e.enableClear && g.value
1214
1214
  }));
1215
- function P(O, G = !0) {
1216
- n.value = O, G && (t.emit("change", O), t.emit("update:modelValue", O));
1215
+ function E(T, G = !0) {
1216
+ n.value = T, G && (t.emit("change", T), t.emit("update:modelValue", T));
1217
1217
  }
1218
- function C(O) {
1219
- u.value = !1, P(O, !0);
1218
+ function y(T) {
1219
+ s.value = !1, E(T, !0);
1220
1220
  }
1221
- Z(
1221
+ X(
1222
1222
  () => e.modelValue,
1223
- (O) => {
1224
- n.value = O;
1223
+ (T) => {
1224
+ n.value = T;
1225
1225
  }
1226
1226
  );
1227
- function N(O) {
1228
- h.value = !1, t.emit("blur", O), O.stopPropagation();
1227
+ function L(T) {
1228
+ b.value = !1, t.emit("blur", T), T.stopPropagation();
1229
1229
  }
1230
- function U(O) {
1231
- t.emit("click", O), v(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
1230
+ function _(T) {
1231
+ t.emit("click", T), f(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
1232
1232
  }
1233
- function B(O) {
1234
- !e.disable && !e.readonly && (h.value = !0, T.value || (t.emit("focus", O), i.value && !u.value && o.popup()));
1233
+ function H(T) {
1234
+ !e.disable && !e.readonly && (b.value = !0, S.value || (t.emit("focus", T), r.value && !s.value && o.popup()));
1235
1235
  }
1236
- function L(O) {
1237
- t.emit("input", O);
1238
- const G = O.target.value;
1239
- a.value = G, n.value !== G && P(G, e.updateOn === "change"), s.value && !u.value && o.popup();
1236
+ function F(T) {
1237
+ t.emit("input", T);
1238
+ const G = T.target.value;
1239
+ a.value = G, n.value !== G && E(G, e.updateOn === "change"), u.value && !s.value && o.popup();
1240
1240
  }
1241
- function b(O) {
1242
- O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
1241
+ function w(T) {
1242
+ T.target.tagName !== "INPUT" && T.preventDefault(), T.stopPropagation();
1243
1243
  }
1244
- function k(O) {
1245
- t.emit("keydown", O);
1244
+ function D(T) {
1245
+ t.emit("keydown", T);
1246
1246
  }
1247
- function W(O) {
1248
- O.key === "Enter" && (s.value || i.value) && o.hidePopup(), t.emit("keyup", O);
1247
+ function V(T) {
1248
+ T.key === "Enter" && (u.value || r.value) && o.hidePopup(), t.emit("keyup", T);
1249
1249
  }
1250
- function K(O) {
1251
- const G = O.target.value;
1252
- O.stopPropagation(), P(G);
1250
+ function Y(T) {
1251
+ const G = T.target.value;
1252
+ T.stopPropagation(), E(G);
1253
1253
  }
1254
1254
  return {
1255
- hasFocusedTextBox: g,
1256
- isTextBoxReadonly: T,
1257
- textBoxClass: F,
1258
- textBoxPlaceholder: w,
1259
- textBoxTitle: p,
1260
- inputGroupClass: E,
1261
- hasClearClass: f,
1262
- changeTextBoxValue: P,
1263
- commitValue: C,
1264
- onBlurTextBox: N,
1265
- onClickTextBox: U,
1266
- onFocusTextBox: B,
1267
- onInput: L,
1268
- onKeyDownTextBox: k,
1269
- onKeyUpTextBox: W,
1270
- onMouseDownTextBox: b,
1271
- onTextBoxValueChange: K
1255
+ hasFocusedTextBox: v,
1256
+ isTextBoxReadonly: S,
1257
+ textBoxClass: k,
1258
+ textBoxPlaceholder: C,
1259
+ textBoxTitle: m,
1260
+ inputGroupClass: P,
1261
+ hasClearClass: g,
1262
+ changeTextBoxValue: E,
1263
+ commitValue: y,
1264
+ onBlurTextBox: L,
1265
+ onClickTextBox: _,
1266
+ onFocusTextBox: H,
1267
+ onInput: F,
1268
+ onKeyDownTextBox: D,
1269
+ onKeyUpTextBox: V,
1270
+ onMouseDownTextBox: w,
1271
+ onTextBoxValueChange: Y
1272
1272
  };
1273
1273
  }
1274
- const Pe = "FarrisVue_PopoverInstancesKey";
1275
- function Ja(e, t, n, a) {
1276
- const o = r(), s = r(!1), { judgeCanOpen: i } = Et(e, a);
1277
- Z(() => o.value, (h, g) => {
1278
- window[Pe] = window[Pe] || /* @__PURE__ */ new WeakMap(), h ? window[Pe].set(n.value, h) : window[Pe].delete(n.value);
1274
+ const Ee = "FarrisVue_PopoverInstancesKey";
1275
+ function eo(e, t, n, a) {
1276
+ const o = i(), u = i(!1), { judgeCanOpen: r } = Pt(e, a);
1277
+ X(() => o.value, (b, v) => {
1278
+ window[Ee] = window[Ee] || /* @__PURE__ */ new WeakMap(), b ? window[Ee].set(n.value, b) : window[Ee].delete(n.value);
1279
1279
  });
1280
- function u() {
1281
- if (window[Pe]) {
1282
- const h = window[Pe];
1283
- document.querySelectorAll(".f-button-edit,.v-popover").forEach((g) => {
1284
- const F = h.get(g);
1285
- F && g !== n.value && !n.value.closest(".popover-fitcontent") && F.hide();
1280
+ function s() {
1281
+ if (window[Ee]) {
1282
+ const b = window[Ee];
1283
+ document.querySelectorAll(".f-button-edit,.v-popover").forEach((v) => {
1284
+ const k = b.get(v);
1285
+ k && v !== n.value && !n.value.closest(".popover-fitcontent") && k.hide();
1286
1286
  });
1287
1287
  }
1288
1288
  }
1289
- function v() {
1290
- const h = o.value;
1291
- h && h.show(n.value);
1289
+ function f() {
1290
+ const b = o.value;
1291
+ b && b.show(n.value);
1292
1292
  }
1293
- async function f(h = !1) {
1293
+ async function g(b = !1) {
1294
1294
  if (!!t.slots.default) {
1295
- if (!h && !s.value && !await i())
1295
+ if (!b && !u.value && !await r())
1296
1296
  return;
1297
- s.value = !s.value, s.value && (await Ne(), v());
1297
+ u.value = !u.value, u.value && (await Ne(), f());
1298
1298
  }
1299
1299
  }
1300
- async function p(h = !1) {
1300
+ async function m(b = !1) {
1301
1301
  if (!!t.slots.default) {
1302
- if (!h && !await i())
1302
+ if (!b && !await r())
1303
1303
  return;
1304
- s.value = !0, await Ne(), v();
1304
+ u.value = !0, await Ne(), f();
1305
1305
  }
1306
1306
  }
1307
- function w() {
1308
- s.value = !1;
1307
+ function C() {
1308
+ u.value = !1;
1309
1309
  }
1310
- function T() {
1311
- s.value = !0, Ne(() => {
1312
- v();
1310
+ function S() {
1311
+ u.value = !0, Ne(() => {
1312
+ f();
1313
1313
  });
1314
1314
  }
1315
- return { hidePopup: w, showPopup: T, popup: p, shouldPopupContent: s, togglePopup: f, popoverRef: o, closeAllPopover: u };
1315
+ return { hidePopup: C, showPopup: S, popup: m, shouldPopupContent: u, togglePopup: g, popoverRef: o, closeAllPopover: s };
1316
1316
  }
1317
- function Za(e, t, n) {
1318
- const a = r(), {
1317
+ function to(e, t, n) {
1318
+ const a = i(), {
1319
1319
  isTextBoxReadonly: o,
1320
- textBoxClass: s,
1321
- textBoxPlaceholder: i,
1322
- textBoxTitle: u,
1323
- onBlurTextBox: v,
1324
- onClickTextBox: f,
1325
- onFocusTextBox: p,
1326
- onInput: w,
1327
- onKeyDownTextBox: T,
1328
- onKeyUpTextBox: h,
1329
- onMouseDownTextBox: g,
1330
- onTextBoxValueChange: F
1331
- } = n, E = r(e.id), {
1332
- uuid: P
1333
- } = Hn(), C = y(() => ({
1320
+ textBoxClass: u,
1321
+ textBoxPlaceholder: r,
1322
+ textBoxTitle: s,
1323
+ onBlurTextBox: f,
1324
+ onClickTextBox: g,
1325
+ onFocusTextBox: m,
1326
+ onInput: C,
1327
+ onKeyDownTextBox: S,
1328
+ onKeyUpTextBox: b,
1329
+ onMouseDownTextBox: v,
1330
+ onTextBoxValueChange: k
1331
+ } = n, P = i(e.id), {
1332
+ uuid: E
1333
+ } = Nn(), y = p(() => ({
1334
1334
  // 'border-top-right-radius': '6px',
1335
1335
  // 'border-bottom-right-radius': '6px'
1336
1336
  }));
1337
1337
  ze(() => {
1338
- var b, k;
1339
- e.selectOnCreated && ((b = a.value) == null || b.select()), e.focusOnCreated && ((k = a.value) == null || k.focus({
1338
+ var w, D;
1339
+ e.selectOnCreated && ((w = a.value) == null || w.select()), e.focusOnCreated && ((D = a.value) == null || D.focus({
1340
1340
  preventScroll: !0
1341
- })), E.value || (E.value = "button-edit_" + P(8)), E.value = E.value + "-textbox";
1341
+ })), P.value || (P.value = "button-edit_" + E(8)), P.value = P.value + "-textbox";
1342
1342
  });
1343
- const N = r(!1), U = (b) => {
1344
- b.preventDefault(), N.value = !0;
1345
- }, B = (b) => {
1346
- b.preventDefault(), N.value = !1, w(b);
1343
+ const L = i(!1), _ = (w) => {
1344
+ w.preventDefault(), L.value = !0;
1345
+ }, H = (w) => {
1346
+ w.preventDefault(), L.value = !1, C(w);
1347
1347
  };
1348
- function L(b) {
1349
- N.value || w(b);
1348
+ function F(w) {
1349
+ L.value || C(w);
1350
1350
  }
1351
1351
  return () => l("input", {
1352
1352
  id: e.id ? e.id + "-textbox" : void 0,
1353
1353
  ref: a,
1354
1354
  name: "input-group-value",
1355
1355
  autocomplete: e.autoComplete ? "on" : "off",
1356
- class: s.value,
1357
- style: C.value,
1356
+ class: u.value,
1357
+ style: y.value,
1358
1358
  disabled: e.disable,
1359
1359
  maxlength: e.maxLength,
1360
1360
  minlength: e.minLength,
1361
- placeholder: i.value,
1361
+ placeholder: r.value,
1362
1362
  readonly: o.value,
1363
1363
  tabindex: e.tabIndex,
1364
- title: u.value,
1364
+ title: s.value,
1365
1365
  type: e.inputType,
1366
1366
  value: t.value,
1367
- onBlur: v,
1368
- onChange: F,
1369
- onClick: f,
1370
- onFocus: p,
1371
- onInput: L,
1372
- onKeydown: T,
1373
- onKeyup: h,
1374
- onMousedown: g,
1375
- onCompositionend: B,
1376
- onCompositionstart: U
1367
+ onBlur: f,
1368
+ onChange: k,
1369
+ onClick: g,
1370
+ onFocus: m,
1371
+ onInput: F,
1372
+ onKeydown: S,
1373
+ onKeyup: b,
1374
+ onMousedown: v,
1375
+ onCompositionend: H,
1376
+ onCompositionstart: _
1377
1377
  }, null);
1378
1378
  }
1379
- function Qa(e, t, n) {
1380
- const a = r(e.separator), o = y(() => e.readonly || e.disable), {
1381
- changeTextBoxValue: s,
1382
- onFocusTextBox: i,
1383
- onBlurTextBox: u,
1384
- onClickTextBox: v,
1385
- textBoxPlaceholder: f
1386
- } = n, p = y(() => t.value ? t.value.split(a.value).map((g) => ({
1387
- name: g,
1379
+ function no(e, t, n) {
1380
+ const a = i(e.separator), o = p(() => e.readonly || e.disable), {
1381
+ changeTextBoxValue: u,
1382
+ onFocusTextBox: r,
1383
+ onBlurTextBox: s,
1384
+ onClickTextBox: f,
1385
+ textBoxPlaceholder: g
1386
+ } = n, m = p(() => t.value ? t.value.split(a.value).map((v) => ({
1387
+ name: v,
1388
1388
  selectable: !0
1389
1389
  })) : []);
1390
- function w(g) {
1391
- s(g.map((F) => F.name).join(a.value), !0);
1390
+ function C(v) {
1391
+ u(v.map((k) => k.name).join(a.value), !0);
1392
1392
  }
1393
- Z(() => e.separator, (g) => {
1394
- a.value = g;
1393
+ X(() => e.separator, (v) => {
1394
+ a.value = v;
1395
1395
  });
1396
- const T = r(!e.disable && !e.readonly);
1397
- Z([() => e.disable, () => e.readonly], ([g, F], [E, P]) => {
1398
- T.value = !g && !F;
1396
+ const S = i(!e.disable && !e.readonly);
1397
+ X([() => e.disable, () => e.readonly], ([v, k], [P, E]) => {
1398
+ S.value = !v && !k;
1399
1399
  });
1400
- function h(g) {
1401
- v(g);
1400
+ function b(v) {
1401
+ f(v);
1402
1402
  }
1403
- return () => l(Nn, {
1403
+ return () => l(An, {
1404
1404
  tabindex: e.tabIndex,
1405
- onFocus: i,
1406
- onBlur: u,
1405
+ onFocus: r,
1406
+ onBlur: s,
1407
1407
  id: `${e.id}-tag-editor`,
1408
1408
  class: "form-control",
1409
- placeholder: f.value,
1410
- data: p.value,
1409
+ placeholder: g.value,
1410
+ data: m.value,
1411
1411
  showClose: !o.value,
1412
1412
  showInput: !0,
1413
1413
  disable: o.value,
1414
- onChange: w,
1415
- onClick: h
1414
+ onChange: C,
1415
+ onClick: b
1416
1416
  }, null);
1417
1417
  }
1418
- function eo(e, t, n, a) {
1418
+ function ao(e, t, n, a) {
1419
1419
  const {
1420
1420
  buttonGroupClass: o,
1421
- onClickButton: s,
1422
- onMouseEnterButton: i,
1423
- onMouseLeaveButton: u
1421
+ onClickButton: u,
1422
+ onMouseEnterButton: r,
1423
+ onMouseLeaveButton: s
1424
1424
  } = n, {
1425
- enableClearButton: v,
1426
- showClearButton: f,
1427
- onClearValue: p
1428
- } = a, w = r(), T = zn((g) => {
1429
- s(g);
1430
- }, e.buttonBehavior === "Modal" ? 0 : 200), h = () => {
1425
+ enableClearButton: f,
1426
+ showClearButton: g,
1427
+ onClearValue: m
1428
+ } = a, C = i(), S = Wn((v) => {
1429
+ u(v);
1430
+ }, e.buttonBehavior === "Modal" ? 0 : 200), b = () => {
1431
1431
  t.emit("beforeClearValue");
1432
1432
  };
1433
1433
  return {
1434
1434
  renderButtonGroup: () => l("div", {
1435
1435
  id: e.id ? `${e.id}-button-group` : void 0,
1436
1436
  class: o.value
1437
- }, [v.value && On(l("span", {
1437
+ }, [f.value && En(l("span", {
1438
1438
  class: "input-group-text input-group-clear",
1439
- onClick: p,
1440
- onMousedown: h
1439
+ onClick: m,
1440
+ onMousedown: b
1441
1441
  }, [l("i", {
1442
1442
  class: "f-icon modal_close"
1443
- }, null)]), [[Fn, f.value]]), t.slots.buttonContent ? l("span", {
1443
+ }, null)]), [[Pn, g.value]]), t.slots.buttonContent ? l("span", {
1444
1444
  class: "input-group-text input-group-append-button",
1445
- onClick: T,
1446
- onMouseenter: i,
1447
- onMouseleave: u
1445
+ onClick: S,
1446
+ onMouseenter: r,
1447
+ onMouseleave: s
1448
1448
  }, [t.slots.buttonContent()]) : e.buttonContent ? l("span", {
1449
1449
  class: "input-group-text input-group-append-button",
1450
1450
  innerHTML: e.buttonContent,
1451
- ref: w,
1452
- onClick: (g) => T(g),
1453
- onMouseenter: i,
1454
- onMouseleave: u
1451
+ ref: C,
1452
+ onClick: (v) => S(v),
1453
+ onMouseenter: r,
1454
+ onMouseleave: s
1455
1455
  }, null) : null]),
1456
- buttonHandleElement: w
1456
+ buttonHandleElement: C
1457
1457
  };
1458
1458
  }
1459
- function to(e, t, n) {
1460
- const a = r(e.popupMinWidth), {
1459
+ function oo(e, t, n) {
1460
+ const a = i(e.popupMinWidth), {
1461
1461
  hidePopup: o,
1462
- popoverRef: s
1463
- } = n, i = () => {
1462
+ popoverRef: u
1463
+ } = n, r = () => {
1464
1464
  t.emit("shown");
1465
1465
  };
1466
- return () => l(An, {
1466
+ return () => l($n, {
1467
1467
  id: `${e.id}-popover`,
1468
- ref: s,
1468
+ ref: u,
1469
1469
  placement: e.placement,
1470
1470
  host: e.popupHost,
1471
1471
  "keep-width-with-reference": e.keepWidthWithReference,
@@ -1475,137 +1475,137 @@ function to(e, t, n) {
1475
1475
  class: e.popupClass,
1476
1476
  offsetX: e.popupOffsetX,
1477
1477
  onHidden: o,
1478
- onShown: i,
1478
+ onShown: r,
1479
1479
  beforeClose: e.beforeClosePopup,
1480
1480
  limitContentBySpace: e.limitContentBySpace
1481
1481
  }, {
1482
1482
  default: () => {
1483
- var u, v;
1484
- return [(v = (u = t.slots).default) == null ? void 0 : v.call(u)];
1483
+ var s, f;
1484
+ return [(f = (s = t.slots).default) == null ? void 0 : f.call(s)];
1485
1485
  }
1486
1486
  });
1487
1487
  }
1488
- const Pt = /* @__PURE__ */ Se({
1488
+ const Rt = /* @__PURE__ */ Se({
1489
1489
  name: "FButtonEdit",
1490
- props: ja,
1490
+ props: za,
1491
1491
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
1492
1492
  setup(e, t) {
1493
- const n = r(), a = r(e.customClass), o = r(e.modelValue), s = Ja(e, t, n, o), {
1494
- shouldPopupContent: i,
1495
- hidePopup: u,
1496
- showPopup: v,
1497
- togglePopup: f
1498
- } = s, p = Ya(e, t, n, s, o), w = r(""), T = Xa(e, t, o, w, s), {
1499
- hasFocusedTextBox: h,
1500
- commitValue: g,
1501
- inputGroupClass: F
1502
- } = T, E = qa(e, t, o, h, w, T), {
1503
- onMouseEnterTextBox: P,
1504
- onMouseLeaveTextBox: C
1505
- } = E, N = r(!1), U = y(() => {
1506
- const z = {
1493
+ const n = i(), a = i(e.customClass), o = i(e.modelValue), u = eo(e, t, n, o), {
1494
+ shouldPopupContent: r,
1495
+ hidePopup: s,
1496
+ showPopup: f,
1497
+ togglePopup: g
1498
+ } = u, m = Ja(e, t, n, u, o), C = i(""), S = Qa(e, t, o, C, u), {
1499
+ hasFocusedTextBox: b,
1500
+ commitValue: v,
1501
+ inputGroupClass: k
1502
+ } = S, P = Za(e, t, o, b, C, S), {
1503
+ onMouseEnterTextBox: E,
1504
+ onMouseLeaveTextBox: y
1505
+ } = P, L = i(!1), _ = p(() => {
1506
+ const W = {
1507
1507
  "f-button-edit": !0,
1508
1508
  "f-cmp-inputgroup": !0,
1509
1509
  "f-button-edit-nowrap": !e.wrapText
1510
1510
  };
1511
- return a.value && a.value.split(" ").reduce((M, d) => (M[d] = !0, M), z), z;
1512
- }), B = y(() => ({
1511
+ return a.value && a.value.split(" ").reduce((M, d) => (M[d] = !0, M), W), W;
1512
+ }), H = p(() => ({
1513
1513
  overflow: e.wrapText ? "hidden" : ""
1514
- })), L = y(() => ({
1514
+ })), F = p(() => ({
1515
1515
  // paddingLeft: '3px',
1516
1516
  // backgroundColor: '#fff'
1517
1517
  }));
1518
- function b() {
1518
+ function w() {
1519
1519
  if (!e.multiSelect || e.inputType !== "tag" || !n.value)
1520
1520
  return 0;
1521
- let z = 0;
1521
+ let W = 0;
1522
1522
  const M = Array.from(n.value.querySelectorAll(".farris-tag-item"));
1523
- return M && M.length && (z = M.map((d) => d.offsetTop).filter((d) => d > 20).length), z;
1523
+ return M && M.length && (W = M.map((d) => d.offsetTop).filter((d) => d > 20).length), W;
1524
1524
  }
1525
- const k = r(b());
1526
- In(() => {
1527
- k.value = b();
1525
+ const D = i(w());
1526
+ Rn(() => {
1527
+ D.value = w();
1528
1528
  });
1529
- function W() {
1530
- return e.multiSelect && e.inputType === "tag" ? () => l(pe, null, [Qa(e, o, T)(), !!k.value && l("div", {
1529
+ function V() {
1530
+ return e.multiSelect && e.inputType === "tag" ? () => l(de, null, [no(e, o, S)(), !!D.value && l("div", {
1531
1531
  class: "d-flex flex-row mr-2 more-tags",
1532
1532
  "more-tags": !0
1533
1533
  }, [l("span", {
1534
1534
  class: "multi--more-text"
1535
- }, [Be("+"), k.value])])]) : Za(e, o, T);
1535
+ }, [Be("+"), D.value])])]) : to(e, o, S);
1536
1536
  }
1537
- let K = W();
1538
- Z([() => e.multiSelect, () => e.inputType], () => {
1539
- K = W();
1537
+ let Y = V();
1538
+ X([() => e.multiSelect, () => e.inputType], () => {
1539
+ Y = V();
1540
1540
  });
1541
1541
  const {
1542
- renderButtonGroup: O,
1542
+ renderButtonGroup: T,
1543
1543
  buttonHandleElement: G
1544
- } = eo(e, t, p, E), se = to(e, t, s), X = r(i.value), ue = {
1545
- displayText: w,
1546
- commitValue: g,
1544
+ } = ao(e, t, m, P), se = oo(e, t, u), te = i(r.value), oe = {
1545
+ displayText: C,
1546
+ commitValue: v,
1547
1547
  elementRef: n,
1548
- hidePopup: u,
1549
- showPopup: v,
1550
- popoverRef: s.popoverRef,
1551
- shouldPopupContent: i,
1552
- togglePopup: f,
1548
+ hidePopup: s,
1549
+ showPopup: f,
1550
+ popoverRef: u.popoverRef,
1551
+ shouldPopupContent: r,
1552
+ togglePopup: g,
1553
1553
  openDialog: () => {
1554
1554
  G.value && e.buttonBehavior === "Modal" && G.value.click();
1555
1555
  },
1556
1556
  getModal: () => {
1557
- var z;
1558
- return e.buttonBehavior === "Modal" ? (z = p.modalRef.value) == null ? void 0 : z.value : null;
1557
+ var W;
1558
+ return e.buttonBehavior === "Modal" ? (W = m.modalRef.value) == null ? void 0 : W.value : null;
1559
1559
  },
1560
1560
  getTextbox: () => {
1561
- var z;
1562
- return (z = n.value) == null ? void 0 : z.querySelector("input");
1561
+ var W;
1562
+ return (W = n.value) == null ? void 0 : W.querySelector("input");
1563
1563
  },
1564
1564
  forceClosePopup: () => {
1565
- X.value = !1, N.value = !0, i.value = !1;
1565
+ te.value = !1, L.value = !0, r.value = !1;
1566
1566
  }
1567
1567
  };
1568
1568
  return ze(() => {
1569
- n.value.componentInstance = ue, window.onresize = () => {
1569
+ n.value.componentInstance = oe, window.onresize = () => {
1570
1570
  document.body.click();
1571
1571
  };
1572
- }), En(() => {
1573
- var z;
1574
- window.onresize = null, (z = window[Pe]) == null || z.delete(n.value);
1575
- }), t.expose(ue), Z(() => i.value, async (z, M) => {
1576
- if (N.value) {
1577
- X.value = z, N.value = !1;
1572
+ }), Dn(() => {
1573
+ var W;
1574
+ window.onresize = null, (W = window[Ee]) == null || W.delete(n.value);
1575
+ }), t.expose(oe), X(() => r.value, async (W, M) => {
1576
+ if (L.value) {
1577
+ te.value = W, L.value = !1;
1578
1578
  return;
1579
1579
  }
1580
- if (!z && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
1580
+ if (!W && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
1581
1581
  try {
1582
1582
  const d = await e.beforeClosePopup();
1583
- X.value = !d, (!d || e.readonly) && (i.value = !0);
1583
+ te.value = !d, (!d || e.readonly) && (r.value = !0);
1584
1584
  } catch (d) {
1585
- console.error("Error in beforeClosePopup:", d), X.value = M, i.value = M;
1585
+ console.error("Error in beforeClosePopup:", d), te.value = M, r.value = M;
1586
1586
  }
1587
1587
  return;
1588
1588
  }
1589
- X.value = z;
1589
+ te.value = W;
1590
1590
  }), () => {
1591
- var z, M;
1592
- return l(pe, null, [l("div", tt(t.attrs, {
1591
+ var W, M;
1592
+ return l(de, null, [l("div", tt(t.attrs, {
1593
1593
  ref: n,
1594
- class: U.value,
1594
+ class: _.value,
1595
1595
  id: e.id ? e.id : void 0,
1596
- style: B.value
1596
+ style: H.value
1597
1597
  }), [l("div", {
1598
1598
  id: e.id ? `${e.id}-input-group` : void 0,
1599
- class: F.value,
1600
- style: L.value,
1601
- onMouseenter: P,
1602
- onMouseleave: C
1603
- }, [(M = (z = t.slots).precontent) == null ? void 0 : M.call(z), K(), O()])]), X.value && se()]);
1599
+ class: k.value,
1600
+ style: F.value,
1601
+ onMouseenter: E,
1602
+ onMouseleave: y
1603
+ }, [(M = (W = t.slots).precontent) == null ? void 0 : M.call(W), Y(), T()])]), te.value && se()]);
1604
1604
  };
1605
1605
  }
1606
1606
  });
1607
- Mt(Pt);
1608
- const no = {
1607
+ kt(Rt);
1608
+ const lo = {
1609
1609
  /** 自定义样式 */
1610
1610
  customClass: { type: String, default: "" },
1611
1611
  /** 允许在最后一个单元回车新增一行 */
@@ -1734,613 +1734,638 @@ const no = {
1734
1734
  width: { type: Number, default: -1 },
1735
1735
  /** 空数据模板 */
1736
1736
  emptyTemplate: { type: Object },
1737
- beforeUpdate: { type: Function }
1737
+ beforeUpdate: { type: Function },
1738
+ /** 绑定动态字段的解析器 */
1739
+ fieldsResolver: { type: Function, default: (e, t) => e },
1740
+ /** 绑定动态字段的值*/
1741
+ displayType: { type: String, default: "List" },
1742
+ fieldsCallback: { type: Function, default: () => {
1743
+ } }
1738
1744
  };
1739
- function ao(e, t, n, a, o, s, i, u, v, f, p, w, T, h, g, F) {
1745
+ function uo(e, t, n, a, o, u, r, s, f, g, m, C, S, b, v, k) {
1740
1746
  const {
1741
- isNull: E,
1742
- isUndefined: P
1743
- } = jn(), {
1744
- totalItems: C,
1745
- rawView: N
1746
- } = F, {
1747
- calculateCellPositionInRow: U,
1748
- cellKey: B,
1749
- cellPosition: L,
1750
- rowKey: b,
1751
- rowPosition: k,
1752
- rowSpanCellPosition: W,
1753
- groupCellPosition: K,
1754
- summaryCellPosition: O
1755
- } = i, {
1747
+ isNull: P,
1748
+ isUndefined: E
1749
+ } = zn(), {
1750
+ totalItems: y,
1751
+ rawView: L
1752
+ } = k, {
1753
+ calculateCellPositionInRow: _,
1754
+ cellKey: H,
1755
+ cellPosition: F,
1756
+ rowKey: w,
1757
+ rowPosition: D,
1758
+ rowSpanCellPosition: V,
1759
+ groupCellPosition: Y,
1760
+ summaryCellPosition: T
1761
+ } = r, {
1756
1762
  cellContentClass: G,
1757
1763
  cellContentPosition: se,
1758
- cellContentClassWithEllipsis: X
1759
- } = s, {
1760
- collpaseGroupIconClass: ue
1761
- } = f, {
1762
- gridCellClass: z,
1764
+ cellContentClassWithEllipsis: te
1765
+ } = u, {
1766
+ collpaseGroupIconClass: oe
1767
+ } = g, {
1768
+ gridCellClass: W,
1763
1769
  gridRowClass: M,
1764
1770
  onClickRow: d,
1765
- onMouseoverRow: x,
1766
- onMouseoutRow: R
1767
- } = w, {
1768
- onClickCell: D
1769
- } = v, {
1771
+ onMouseoverRow: B,
1772
+ onMouseoutRow: j
1773
+ } = C, {
1774
+ onClickCell: I
1775
+ } = f, {
1770
1776
  toggleGroupRow: A
1771
- } = T, {
1772
- columnContext: q,
1773
- hasLeftFixedColumn: oe,
1774
- hasRightFixedColumn: re
1775
- } = u, {
1776
- navigateOnKeyUp: de,
1777
- navigateOnKeyDown: te
1778
- } = p, Te = (c) => (c || []).some((V) => Tt(V) ? !(V.type === Pn || V.type === pe && !Te(V.children)) : !0) ? c : null, fe = (c) => {
1779
- var V, $, I;
1780
- return (($ = (V = c.column) == null ? void 0 : V.editor) == null ? void 0 : $.type) === "switch" || ((I = c.column) == null ? void 0 : I.dataType) === "boolean" ? {
1777
+ } = S, {
1778
+ columnContext: J,
1779
+ hasLeftFixedColumn: ae,
1780
+ hasRightFixedColumn: pe
1781
+ } = s, {
1782
+ navigateOnKeyUp: Te,
1783
+ navigateOnKeyDown: fe
1784
+ } = m, ee = (c) => (c || []).some((z) => Mt(z) ? !(z.type === Hn || z.type === de && !ee(z.children)) : !0) ? c : null, we = (c) => {
1785
+ var z, $, O;
1786
+ return (($ = (z = c.column) == null ? void 0 : z.editor) == null ? void 0 : $.type) === "switch" || ((O = c.column) == null ? void 0 : O.dataType) === "boolean" ? {
1781
1787
  display: "flex",
1782
1788
  flexGrow: "1",
1783
1789
  overflow: "hidden"
1784
1790
  } : {
1785
1791
  flexGrow: "1"
1786
1792
  };
1787
- }, ye = ge({
1793
+ }, re = ge({
1788
1794
  "fv-grid-content-left-fixed": !0
1789
- }), Me = ge({
1795
+ }), ye = ge({
1790
1796
  "fv-grid-content-right-fixed": !0
1791
1797
  });
1792
- Z([C, N], (c) => {
1793
- !c[0] && !c[1].length ? (ye["fv-grid-content-left-fixed"] = !1, Me["fv-grid-content-right-fixed"] = !1) : (ye["fv-grid-content-left-fixed"] = !0, Me["fv-grid-content-right-fixed"] = !0);
1798
+ X([y, L], (c) => {
1799
+ !c[0] && !c[1].length ? (re["fv-grid-content-left-fixed"] = !1, ye["fv-grid-content-right-fixed"] = !1) : (re["fv-grid-content-left-fixed"] = !0, ye["fv-grid-content-right-fixed"] = !0);
1794
1800
  });
1795
1801
  const {
1796
1802
  gridDataStyle: Le,
1797
- gridMergedDataStyle: ke,
1798
- leftFixedGridDataStyle: De,
1799
- leftFixedGridMergedDataStyle: Ae,
1803
+ gridMergedDataStyle: Ae,
1804
+ leftFixedGridDataStyle: Me,
1805
+ leftFixedGridMergedDataStyle: Re,
1800
1806
  rightFixedGridDataStyle: We,
1801
- rightFixedGridMergedDataStyle: we
1802
- } = h;
1803
- function Ge(c, V) {
1804
- V.collapse = !V.collapse, g.value = A(V.collapse ? "collapse" : "expand", V, g.value);
1807
+ rightFixedGridMergedDataStyle: De
1808
+ } = b;
1809
+ function ke(c, z) {
1810
+ z.collapse = !z.collapse, v.value = A(z.collapse ? "collapse" : "expand", z, v.value);
1805
1811
  }
1806
- function $e(c, V) {
1812
+ function Ge(c, z) {
1807
1813
  const $ = [];
1808
- if (c.groupField && V[c.groupField]) {
1809
- for (let J = 0; J <= c.layer; J++)
1814
+ if (c.groupField && z[c.groupField]) {
1815
+ for (let q = 0; q <= c.layer; q++)
1810
1816
  $.push(l("div", {
1811
1817
  class: "fv-grid-group-row-icon",
1812
- onClick: (Ve) => Ge(Ve, c)
1818
+ onClick: (Ve) => ke(Ve, c)
1813
1819
  }, [l("span", {
1814
- class: ue(c)
1820
+ class: oe(c)
1815
1821
  }, null)]));
1816
- const I = c.data[c.groupField];
1822
+ const O = c.data[c.groupField];
1817
1823
  $.push(l("div", {
1818
- ref: I.setRef,
1819
- key: B(c, c.layer + 1),
1824
+ ref: O.setRef,
1825
+ key: H(c, c.layer + 1),
1820
1826
  class: "fv-grid-cell",
1821
- style: K(I, V, c.layer)
1822
- }, [I.data])), Object.values(c.data).filter((J) => J.field !== c.groupField && J.colSpan !== 0).forEach((J) => {
1827
+ style: Y(O, z, c.layer)
1828
+ }, [O.data])), Object.values(c.data).filter((q) => q.field !== c.groupField && q.colSpan !== 0).forEach((q) => {
1823
1829
  $.push(l("div", {
1824
- ref: J.setRef,
1825
- key: B(c, J.index),
1830
+ ref: q.setRef,
1831
+ key: H(c, q.index),
1826
1832
  class: "fv-grid-cell",
1827
- style: L(c, J, V)
1828
- }, [J.data]));
1833
+ style: F(c, q, z)
1834
+ }, [q.data]));
1829
1835
  });
1830
1836
  }
1831
1837
  return $;
1832
1838
  }
1833
- function _(c, V, $) {
1839
+ function Fe(c, z, $) {
1834
1840
  return c.layer > -1 && l("div", {
1835
1841
  ref: c.setRef,
1836
- key: b(c),
1842
+ key: w(c),
1837
1843
  class: M(c, $),
1838
- style: k(c),
1839
- onClick: (I) => d(I, c),
1840
- onMouseover: (I) => x(I, c)
1841
- }, [$e(c, V)]);
1844
+ style: D(c),
1845
+ onClick: (O) => d(O, c),
1846
+ onMouseover: (O) => B(O, c)
1847
+ }, [Ge(c, z)]);
1842
1848
  }
1843
- function Oe(c, V) {
1849
+ function K(c, z) {
1844
1850
  const $ = [];
1845
- if (c.groupField && V[c.groupField]) {
1846
- const I = c.data[c.groupField];
1851
+ if (c.groupField && z[c.groupField]) {
1852
+ const O = c.data[c.groupField];
1847
1853
  $.push(l("div", {
1848
- ref: I.setRef,
1849
- key: B(c, c.layer + 1),
1854
+ ref: O.setRef,
1855
+ key: H(c, c.layer + 1),
1850
1856
  class: "fv-grid-cell",
1851
- style: O(I, V, c.layer)
1852
- }, [I.data]));
1857
+ style: T(O, z, c.layer)
1858
+ }, [O.data]));
1853
1859
  }
1854
1860
  return $;
1855
1861
  }
1856
- function He(c, V, $) {
1862
+ function $e(c, z, $) {
1857
1863
  return c.layer > -1 && l("div", {
1858
1864
  ref: c.setRef,
1859
- key: b(c),
1865
+ key: w(c),
1860
1866
  class: M(c, $),
1861
- style: k(c),
1862
- onClick: (I) => d(I, c),
1863
- onMouseover: (I) => x(I, c)
1864
- }, [Oe(c, V)]);
1865
- }
1866
- function je(c, V) {
1867
- var $, I, J;
1868
- return c.showTips && typeof (($ = c.column) == null ? void 0 : $.formatter) != "function" && ((I = c.column) == null ? void 0 : I.dataType) !== "commands" && ((J = c.column) == null ? void 0 : J.dataType) !== "setting" ? l("div", {
1869
- class: X(c),
1870
- title: c.formatter(c, V)
1871
- }, [c.formatter(c, V)]) : l("div", {
1872
- class: X(c)
1873
- }, [c.formatter(c, V)]);
1874
- }
1875
- function xe() {
1867
+ style: D(c),
1868
+ onClick: (O) => d(O, c),
1869
+ onMouseover: (O) => B(O, c)
1870
+ }, [K(c, z)]);
1871
+ }
1872
+ function He(c, z) {
1873
+ var $, O, q;
1874
+ return c.showTips && typeof (($ = c.column) == null ? void 0 : $.formatter) != "function" && ((O = c.column) == null ? void 0 : O.dataType) !== "commands" && ((q = c.column) == null ? void 0 : q.dataType) !== "setting" ? l("div", {
1875
+ class: te(c),
1876
+ title: c.formatter(c, z)
1877
+ }, [c.formatter(c, z)]) : l("div", {
1878
+ class: te(c)
1879
+ }, [c.formatter(c, z)]);
1880
+ }
1881
+ function je() {
1876
1882
  return l("div", null, [Be("******")]);
1877
1883
  }
1878
- function ve(c) {
1879
- var I, J;
1880
- const V = !E(c.data) && !P(c.data) ? c.data.toString() : c.data;
1881
- return ((J = (I = c.column) == null ? void 0 : I.editor) == null ? void 0 : J.showType) === "password" ? xe() : c.showTips ? l("div", {
1882
- class: X(c),
1883
- title: V
1884
- }, [V]) : l("div", {
1885
- class: X(c)
1886
- }, [V]);
1887
- }
1888
- function Ue(c, V) {
1889
- return c.mode === Gn.editing ? l("div", {
1890
- style: fe(c)
1891
- }, [c.getEditor(c)]) : c.column.columnTemplate ? c.column.columnTemplate(c, V) : c.formatter ? je(c, V) : ve(c);
1892
- }
1893
- function Fe(c, V, $) {
1884
+ function xe(c) {
1885
+ var O, q;
1886
+ const z = !P(c.data) && !E(c.data) ? c.data.toString() : c.data;
1887
+ return ((q = (O = c.column) == null ? void 0 : O.editor) == null ? void 0 : q.showType) === "password" ? je() : c.showTips ? l("div", {
1888
+ class: te(c),
1889
+ title: z
1890
+ }, [z]) : l("div", {
1891
+ class: te(c)
1892
+ }, [z]);
1893
+ }
1894
+ function ve(c, z) {
1895
+ return c.mode === _n.editing ? l("div", {
1896
+ style: we(c)
1897
+ }, [c.getEditor(c)]) : c.column.columnTemplate ? c.column.columnTemplate(c, z) : c.formatter ? He(c, z) : xe(c);
1898
+ }
1899
+ function Ue(c) {
1900
+ return l(de, null, null);
1901
+ }
1902
+ function Oe(c, z, $) {
1894
1903
  return l("div", {
1895
1904
  ref: c.setRef,
1896
- key: b(c),
1905
+ key: w(c),
1897
1906
  class: M(c, $),
1898
- style: k(c),
1899
- onClick: (I) => d(I, c),
1900
- onMouseover: (I) => x(I, c),
1901
- onMouseout: (I) => R(I, c)
1902
- }, [Object.values(c.data).filter((I) => V[I.field] && I.rowSpan === 1).map((I) => {
1907
+ style: D(c),
1908
+ onClick: (O) => d(O, c),
1909
+ onMouseover: (O) => B(O, c),
1910
+ onMouseout: (O) => j(O, c)
1911
+ }, [e.displayType === "Card" ? Ue() : Object.values(c.data).filter((O) => z[O.field] && O.rowSpan === 1).map((O) => {
1903
1912
  var Ve, Je;
1904
- const J = t.slots.cellTemplate && Te(t.slots.cellTemplate({
1905
- cell: I,
1913
+ const q = t.slots.cellTemplate && ee(t.slots.cellTemplate({
1914
+ cell: O,
1906
1915
  row: c
1907
1916
  }));
1908
1917
  return l("div", {
1909
- ref: I.setRef,
1910
- key: B(c, I.index),
1911
- class: z(I, c),
1912
- style: L(c, I, V),
1913
- onClick: (Ke) => D(Ke, I, c, I.column),
1914
- onKeydown: (Ke) => de(Ke, I)
1918
+ ref: O.setRef,
1919
+ key: H(c, O.index),
1920
+ class: W(O, c),
1921
+ style: F(c, O, z),
1922
+ onClick: (_e) => {
1923
+ I(_e, O, c, O.column);
1924
+ },
1925
+ onKeydown: (_e) => Te(_e, O)
1915
1926
  }, [l("div", {
1916
- class: G(I),
1917
- style: se(I)
1918
- }, [J ? (Je = (Ve = t.slots).cellTemplate) == null ? void 0 : Je.call(Ve, {
1919
- cell: I,
1927
+ class: G(O),
1928
+ style: se(O)
1929
+ }, [q ? (Je = (Ve = t.slots).cellTemplate) == null ? void 0 : Je.call(Ve, {
1930
+ cell: O,
1920
1931
  row: c
1921
- }) : Ue(I, c)])]);
1932
+ }) : ve(O, c)])]);
1922
1933
  })]);
1923
1934
  }
1924
- const Ie = [Fe, _, He];
1925
- function m(c, V) {
1926
- const $ = U(c);
1927
- return g.value.map((I, J) => Ie[I.type](I, $, J));
1935
+ const h = [Oe, Fe, $e];
1936
+ function N(c, z) {
1937
+ const $ = _(c);
1938
+ return v.value.map((O, q) => h[O.type](O, $, q));
1928
1939
  }
1929
- function j(c) {
1930
- const V = U(c);
1931
- return g.value.map(($) => Object.values($.data).filter((I) => V[I.field] && I.rowSpan > 1).map((I) => l("div", {
1932
- key: B($, I.index),
1940
+ function Z(c) {
1941
+ const z = _(c);
1942
+ return v.value.map(($) => Object.values($.data).filter((O) => z[O.field] && O.rowSpan > 1).map((O) => l("div", {
1943
+ key: H($, O.index),
1933
1944
  class: "fv-grid-cell fv-grid-merged-cell",
1934
- style: W($, I, V)
1935
- }, [I.data])));
1945
+ style: V($, O, z)
1946
+ }, [O.data])));
1936
1947
  }
1937
1948
  function Q() {
1938
1949
  return l("div", {
1939
1950
  ref: a,
1940
- class: ye
1951
+ class: re
1941
1952
  }, [l("div", {
1942
1953
  class: "fv-grid-data",
1943
- style: De.value
1944
- }, [m(q.value.leftColumns.filter((c) => c.visible))]), l("div", {
1954
+ style: Me.value
1955
+ }, [N(J.value.leftColumns.filter((c) => c.visible))]), l("div", {
1945
1956
  class: "fv-grid-merge-date",
1946
- style: Ae.value
1947
- }, [j(q.value.leftColumns.filter((c) => c.visible))])]);
1957
+ style: Re.value
1958
+ }, [Z(J.value.leftColumns.filter((c) => c.visible))])]);
1948
1959
  }
1949
- function ee() {
1960
+ function ue() {
1950
1961
  return l("div", {
1951
1962
  ref: n,
1952
1963
  class: "fv-grid-content-primary"
1953
1964
  }, [l("div", {
1954
1965
  class: "fv-grid-data",
1955
1966
  style: Le.value
1956
- }, [m(q.value.primaryColumns.filter((c) => c.visible))]), l("div", {
1967
+ }, [N(J.value.primaryColumns.filter((c) => c.visible))]), l("div", {
1957
1968
  class: "fv-grid-merge-date",
1958
- style: ke.value
1959
- }, [j(q.value.primaryColumns.filter((c) => c.visible))])]);
1969
+ style: Ae.value
1970
+ }, [Z(J.value.primaryColumns.filter((c) => c.visible))])]);
1960
1971
  }
1961
- function le() {
1972
+ function nt() {
1962
1973
  return l("div", {
1963
1974
  ref: o,
1964
- class: Me
1975
+ class: ye
1965
1976
  }, [l("div", {
1966
1977
  class: "fv-grid-data",
1967
1978
  style: We.value
1968
- }, [m(q.value.rightColumns.filter((c) => c.visible))]), l("div", {
1979
+ }, [N(J.value.rightColumns.filter((c) => c.visible))]), l("div", {
1969
1980
  class: "fv-grid-merge-date",
1970
- style: we.value
1971
- }, [j(q.value.rightColumns.filter((c) => c.visible))])]);
1981
+ style: De.value
1982
+ }, [Z(J.value.rightColumns.filter((c) => c.visible))])]);
1972
1983
  }
1973
- function nt() {
1984
+ function at() {
1974
1985
  const c = [];
1975
- return oe.value && c.push(Q()), c.push(ee()), re.value && c.push(le()), c;
1986
+ return ae.value && c.push(Q()), c.push(ue()), pe.value && c.push(nt()), c;
1976
1987
  }
1977
1988
  return {
1978
- renderDataArea: nt
1989
+ renderDataArea: at
1979
1990
  };
1980
1991
  }
1981
- function oo(e) {
1982
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Tt(e);
1992
+ function so(e) {
1993
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Mt(e);
1983
1994
  }
1984
- const Rt = /* @__PURE__ */ Se({
1995
+ const Dt = /* @__PURE__ */ Se({
1985
1996
  name: "FDataGrid",
1986
- props: no,
1987
- emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow"],
1997
+ props: lo,
1998
+ emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate", "endEditRow", "fieldsEvent"],
1988
1999
  setup(e, t) {
1989
- var mt, ht;
2000
+ var ht, gt;
1990
2001
  const {
1991
2002
  isMobilePhone: n
1992
- } = $n();
1993
- r();
1994
- const a = 0, o = ((mt = e.rowOption) == null ? void 0 : mt.height) || 28, s = r(20), i = r(e.columns), u = Un(e), v = r(), f = r(), p = r(), w = r(), T = r(), h = r([]), g = r(!1), F = r(((ht = e.rowOption) == null ? void 0 : ht.wrapContent) || !1), E = Kn(e, u), P = _n(e, t), C = Yn(e), {
1995
- showLoading: N,
1996
- renderLoading: U
1997
- } = qn(e, v), B = Xn(e, /* @__PURE__ */ new Map(), P, C, u), L = Jn(e, B), {
1998
- shouldRenderPagination: b
1999
- } = L, k = Zn(e, B, u, h, t), {
2000
- showSelectAll: W,
2001
- showSelection: K,
2002
- selectedValues: O,
2003
- updateSelectAllStatus: G
2004
- } = k, se = y(() => e.disabled), X = y(() => e.virtualized ? Math.min(B.dataView.value.length, s.value) : B.dataView.value.length);
2005
- y(() => e.loadingConfig.message);
2003
+ } = Kn();
2004
+ i();
2005
+ const a = 0, o = i(((ht = e.rowOption) == null ? void 0 : ht.height) || 28), u = p(() => e.displayType === "Card"), r = i(20), s = i(e.columns), f = Yn(e), g = i(), m = i(), C = i(), S = i(), b = i(), v = i([]), k = i(!1), P = i(((gt = e.rowOption) == null ? void 0 : gt.wrapContent) || !1), E = qn(e, f), y = Xn(e, t), L = Jn(e), {
2006
+ showLoading: _,
2007
+ renderLoading: H
2008
+ } = Zn(e, g), F = Qn(e, /* @__PURE__ */ new Map(), y, L, f), w = ea(e, F), {
2009
+ shouldRenderPagination: D
2010
+ } = w, V = ta(e, F, f, v, t), {
2011
+ showSelectAll: Y,
2012
+ showSelection: T,
2013
+ selectedValues: G,
2014
+ updateSelectAllStatus: se
2015
+ } = V, te = p(() => e.disabled), oe = p(() => e.virtualized ? Math.min(F.dataView.value.length, r.value) : F.dataView.value.length);
2016
+ p(() => e.loadingConfig.message);
2006
2017
  const {
2007
- containerStyleObject: ue
2008
- } = Qn(e), z = ea(e), {
2009
- applyCommands: M
2010
- } = z;
2011
- M(i);
2018
+ containerStyleObject: W
2019
+ } = na(e), M = aa(e), {
2020
+ applyCommands: d
2021
+ } = M;
2022
+ d(s);
2012
2023
  const {
2013
- applyColumnSetting: d,
2014
- removeColumnSetting: x
2015
- } = ta(e);
2016
- e.showSetting && d(i);
2017
- const R = na(e, t), D = aa(e), {
2018
- applyColumnSorter: A,
2019
- columnContext: q,
2020
- updateColumnRenderContext: oe
2021
- } = R;
2022
- A(B, D);
2023
- const re = oa(e, q), de = la(e, t, k, u), te = sa(e, t, u, de, h), Te = ua(e), fe = ia(e, te, Te), ye = ra(e, B, te, C, u, Te, fe), Me = ca(e, u, fe, ye), Le = da(e, u, fe, ye), ke = fa(e, i, B, X, a, ye, Me, Le), {
2024
- getVisualData: De
2025
- } = ke, Ae = va(q), We = ma(e, q), we = ha(e, k), {
2024
+ applyColumnSetting: B,
2025
+ removeColumnSetting: j
2026
+ } = oa(e);
2027
+ e.showSetting && B(s);
2028
+ const I = la(e, t), A = ua(e), {
2029
+ applyColumnSorter: J,
2030
+ columnContext: ae,
2031
+ updateColumnRenderContext: pe
2032
+ } = I;
2033
+ J(F, A);
2034
+ const Te = sa(e, ae), fe = ia(e, t, V, f), ee = ra(e, t, f, fe, v), we = ca(e, F, o), re = da(e, ee, we), ye = fa(e, F, ee, L, f, we, re, o), Le = va(e, f, re, ye), Ae = ma(e, f, re, ye), Me = ha(e, s, F, oe, a, ye, Le, Ae), {
2035
+ getVisualData: Re
2036
+ } = Me, We = ga(ae), De = pa(e, ae, o, u), ke = ya(e, V), {
2026
2037
  sidebarWidth: Ge,
2027
- showSidebarCheckBox: $e
2028
- } = we, _ = ga(e, B, h, q, ke, X, a, Ge, te), {
2029
- onWheel: Oe,
2038
+ showSidebarCheckBox: Fe
2039
+ } = ke, K = Ca(e, F, v, ae, Me, oe, a, Ge, o, u, ee), {
2040
+ onWheel: $e,
2030
2041
  dataGridWidth: He,
2031
2042
  viewPortHeight: je,
2032
2043
  viewPortWidth: xe,
2033
2044
  resetScroll: ve,
2034
2045
  updateVisibleRowsOnLatestVisibleScope: Ue
2035
- } = _, Fe = pa(e, q, f, xe, re), {
2036
- calculateColumnsSize: Ie
2037
- } = Fe, m = ya(), j = ba(f, T, B, m, _), Q = Ca(e, t, R, B, re, E, _), ee = y(() => {
2038
- const S = {
2046
+ } = K, Oe = ba(e, ae, m, xe, Te), {
2047
+ calculateColumnsSize: h
2048
+ } = Oe, N = wa(), Z = xa(m, b, F, N, K), Q = Ba(e, t, I, F, Te, E, K), ue = p(() => {
2049
+ const x = {
2039
2050
  "fv-grid": !0,
2040
2051
  "fv-grid-bordered": e.showBorder,
2041
2052
  "fv-grid-horizontal-bordered": e.showHorizontalLines,
2042
2053
  "fv-datagrid-strip": e.showStripe
2043
2054
  };
2044
- return Vn(S, e.customClass);
2045
- }), le = y(() => ({
2055
+ return Ln(x, e.customClass);
2056
+ }), nt = p(() => ({
2046
2057
  "fv-grid-content": !0,
2047
- "fv-grid-content-hover": g.value,
2048
- "fv-grid-wrap-content": F.value
2049
- })), nt = y(() => {
2050
- const S = {};
2051
- return _.shouldShowHorizontalScrollbar.value && (S.paddingBottom = "10px"), _.shouldShowVirticalScrollbar.value && (S.paddingRight = "10px"), S;
2058
+ "fv-grid-content-hover": k.value,
2059
+ "fv-grid-wrap-content": P.value
2060
+ })), at = p(() => {
2061
+ const x = {};
2062
+ return K.shouldShowHorizontalScrollbar.value && (x.paddingBottom = "10px"), K.shouldShowVirticalScrollbar.value && (x.paddingRight = "10px"), x;
2052
2063
  }), {
2053
2064
  renderGridHeader: c,
2054
- renderGridColumnResizeOverlay: V,
2065
+ renderGridColumnResizeOverlay: z,
2055
2066
  shouldShowHeader: $
2056
- } = wa(e, t, f, w, T, R, B, Q, j, P, m, Fe, re, k, we, D, _, xe, h), {
2057
- renderDataGridPagination: I
2058
- } = xa(e, t, B, _, L, k), {
2059
- renderDataGridSidebar: J
2060
- } = Ba(e, de, k, we, _), {
2067
+ } = Sa(e, t, m, S, b, I, F, Q, Z, y, N, Oe, Te, V, ke, A, K, xe, v), {
2068
+ renderDataGridPagination: O
2069
+ } = Ta(e, t, F, K, w, V), {
2070
+ renderDataGridSidebar: q
2071
+ } = Ma(e, fe, V, ke, K), {
2061
2072
  renderDisableMask: Ve
2062
- } = Sa(), {
2073
+ } = ka(), {
2063
2074
  renderDataGridSummary: Je
2064
- } = Ta(e, B, R), {
2065
- renderHorizontalScrollbar: Ke
2066
- } = Ma(e, f, _), {
2067
- renderVerticalScrollbar: jt
2068
- } = ka(e, f, _), {
2069
- renderFilterPanel: Vt
2070
- } = Oa(e, R, B, P, _), {
2071
- renderGroupPanel: Nt
2072
- } = Fa(e, B, Q, E, _);
2073
- function zt() {
2074
- var H, Y;
2075
- const S = Math.ceil(f.value.clientHeight / o);
2076
- S > s.value && (s.value = S, Ue()), je.value = ((H = p.value) == null ? void 0 : H.clientHeight) || 0, He.value = ((Y = f.value) == null ? void 0 : Y.clientWidth) || 0, Ie();
2075
+ } = Fa(e, F, I), {
2076
+ renderHorizontalScrollbar: _e
2077
+ } = Oa(e, m, K), {
2078
+ renderVerticalScrollbar: Vt
2079
+ } = Ia(e, m, K), {
2080
+ renderFilterPanel: Nt
2081
+ } = Ea(e, I, F, y, K), {
2082
+ renderGroupPanel: zt
2083
+ } = Pa(e, F, Q, E, K);
2084
+ function Lt() {
2085
+ var R, U;
2086
+ const x = Math.ceil(m.value.clientHeight / o.value);
2087
+ x > r.value && (r.value = x, Ue()), je.value = ((R = C.value) == null ? void 0 : R.clientHeight) || 0, He.value = ((U = m.value) == null ? void 0 : U.clientWidth) || 0, h();
2077
2088
  }
2078
2089
  ze(() => {
2079
- f.value && (s.value = Math.max(Math.ceil(f.value.clientHeight / o), s.value), h.value = De(0, X.value + a - 1), Wn(f.value, zt), Ie(), Ne(() => {
2080
- f.value && (He.value = f.value.clientWidth), p.value && (xe.value = p.value.clientWidth, je.value = p.value.clientHeight);
2081
- })), N.value && U();
2090
+ m.value && (r.value = Math.max(Math.ceil(m.value.clientHeight / o.value), r.value), v.value = Re(0, oe.value + a - 1), Un(m.value, Lt), h(), Ne(() => {
2091
+ var x;
2092
+ m.value && (He.value = m.value.clientWidth), C.value && (xe.value = C.value.clientWidth, je.value = C.value.clientHeight), (x = e.rowOption) != null && x.wrapContent && v.value.forEach((R) => {
2093
+ var U;
2094
+ R.height = ((U = R.ref) == null ? void 0 : U.getBoundingClientRect().height) || 0, R.raw.__fv_data_height__ = R.height, we.updateRowPosition(R, R.raw);
2095
+ });
2096
+ })), _.value && H();
2082
2097
  }), Xe(() => {
2083
- }), Z(xe, () => {
2098
+ }), X(xe, () => {
2084
2099
  });
2085
- function Lt() {
2086
- B.insertNewDataItem(), ve();
2087
- }
2088
2100
  function At() {
2089
- B.insertNewDataItem(h.value.length), ve();
2101
+ const x = F.insertNewDataItem();
2102
+ return ve(), x;
2103
+ }
2104
+ function Wt() {
2105
+ const x = F.insertNewDataItem(v.value.length);
2106
+ return ve(), x;
2090
2107
  }
2091
- function Wt(S) {
2092
- te.onEditingRow(S);
2108
+ function Gt(x) {
2109
+ ee.onEditingRow(x);
2093
2110
  }
2094
- function Gt(S) {
2095
- B.removeDataItem(S), ve();
2111
+ function $t(x) {
2112
+ F.removeDataItem(x), ve();
2096
2113
  }
2097
- function $t(S) {
2098
- B.removeDataItemById(S), ve();
2114
+ function Ut(x) {
2115
+ F.removeDataItemById(x), ve();
2099
2116
  }
2100
- function Ut(S) {
2101
- te.acceptEditingRow(S);
2117
+ function _t(x) {
2118
+ ee.acceptEditingRow(x);
2102
2119
  }
2103
- function Kt(S) {
2104
- te.cancelEditingRow(S);
2120
+ function Kt(x) {
2121
+ ee.cancelEditingRow(x);
2105
2122
  }
2106
- function _t(S) {
2107
- h.value.forEach((H, Y) => {
2108
- const ae = B.visibleDataItems.value.findIndex((ie) => ie === H.raw), ce = h.value[Y - 1];
2109
- S.forEach((ie) => {
2110
- H.data[ie.field] ? fe.updateCellByColumn(H.data[ie.field], ie, ce, H.raw) : H.data[ie.field] = fe.createCellByColumn(ie, ae, H.raw, H, ce);
2123
+ function Yt(x) {
2124
+ v.value.forEach((R, U) => {
2125
+ const le = F.visibleDataItems.value.findIndex((ie) => ie === R.raw), ce = v.value[U - 1];
2126
+ x.forEach((ie) => {
2127
+ R.data[ie.field] ? re.updateCellByColumn(R.data[ie.field], ie, ce, R.raw) : R.data[ie.field] = re.createCellByColumn(ie, le, R.raw, R, ce);
2111
2128
  });
2112
2129
  });
2113
2130
  }
2114
- function at(S) {
2115
- S && (i.value = S, _t(i.value), M(i), e.showSetting && d(i), oe(i.value), A(B, D), Ie());
2131
+ function ot(x) {
2132
+ x && (s.value = x, Yt(s.value), d(s), e.showSetting && B(s), pe(s.value), J(F, A), h());
2116
2133
  }
2117
- function Yt() {
2118
- k.emptyCurrentRowId();
2134
+ function qt() {
2135
+ V.emptyCurrentRowId();
2119
2136
  }
2120
- Z(() => e.showSetting, (S, H) => {
2121
- S !== H && at(i.value);
2137
+ X(() => e.showSetting, (x, R) => {
2138
+ x !== R && ot(s.value);
2122
2139
  });
2123
- function dt(S) {
2124
- L.updatePagination(S);
2140
+ function ft(x) {
2141
+ w.updatePagination(x);
2125
2142
  }
2126
- function qt(S, H) {
2127
- S && (B.load(S), h.value = De(0, X.value + a - 1), H != null && H.keepScrollTop ? _.scrollTo(_.offsetY.value) : ve(), h.value.length || (O.value = []), $e.value && W.value && G()), te.clear();
2143
+ function Xt(x, R) {
2144
+ x && (F.load(x), v.value = Re(0, oe.value + a - 1), R != null && R.keepScrollTop ? K.scrollTo(K.offsetY.value) : ve(), v.value.length || (G.value = []), Fe.value && Y.value && se()), ee.clear();
2128
2145
  }
2129
- Z(B.shouldGroupingData, (S, H) => {
2130
- S !== H && (B.updateDataView(), ve());
2131
- }), Z(() => e.columns, (S) => {
2132
- at(S);
2146
+ X(F.shouldGroupingData, (x, R) => {
2147
+ x !== R && (F.updateDataView(), ve());
2148
+ }), X(() => e.columns, (x) => {
2149
+ ot(x);
2133
2150
  });
2134
- function ot(S) {
2135
- de.activeRowById(S);
2151
+ function lt(x) {
2152
+ fe.activeRowById(x);
2136
2153
  }
2137
- function Xt(S, H = {
2154
+ function Jt(x, R = {
2138
2155
  isCurrent: !0
2139
2156
  }) {
2140
- H != null && H.isCurrent && ot(S), k.selectItemById(S);
2157
+ R != null && R.isCurrent && lt(x), V.selectItemById(x);
2141
2158
  }
2142
- function Jt(S) {
2143
- const H = u.idField.value, Y = h.value.find((ae) => ae.raw[H] === S);
2144
- Y && de.clickRowItem(Y);
2159
+ function Zt(x) {
2160
+ const R = f.idField.value, U = v.value.find((le) => le.raw[R] === x);
2161
+ U && fe.clickRowItem(U);
2145
2162
  }
2146
- function Zt(S) {
2147
- const H = u.idField.value, Y = h.value.find((ae) => ae.raw[H] === S);
2148
- Y && de.changeRow(Y);
2163
+ function Qt(x) {
2164
+ const R = f.idField.value, U = v.value.find((le) => le.raw[R] === x);
2165
+ U && fe.changeRow(U);
2149
2166
  }
2150
- function Qt(S) {
2151
- k.selectItemByIds(S);
2167
+ function en(x) {
2168
+ V.selectItemByIds(x);
2152
2169
  }
2153
- function en() {
2154
- return h.value;
2170
+ function tn() {
2171
+ return v.value;
2155
2172
  }
2156
- function tn(S) {
2157
- return h.value.filter((H) => S.includes(H.raw[e.idField]));
2158
- }
2159
- function nn() {
2160
- return k.getSelectedItems();
2173
+ function nn(x) {
2174
+ return v.value.filter((R) => x.includes(R.raw[e.idField]));
2161
2175
  }
2162
2176
  function an() {
2163
- return k.getSelectionRow();
2177
+ return V.getSelectedItems();
2164
2178
  }
2165
2179
  function on() {
2166
- te.endEditCell();
2180
+ return V.getSelectionRow();
2181
+ }
2182
+ function ln() {
2183
+ ee.endEditCell();
2167
2184
  }
2168
- function ln(S, H = {
2185
+ function un(x, R = {
2169
2186
  clearCurrent: !0
2170
2187
  }) {
2171
- H != null && H.clearCurrent && ot(""), k.unSelectItemByIds(S);
2188
+ R != null && R.clearCurrent && lt(""), V.unSelectItemByIds(x);
2172
2189
  }
2173
- function ft() {
2174
- k.clearSelection();
2190
+ function vt() {
2191
+ V.clearSelection();
2175
2192
  }
2176
2193
  function sn() {
2177
- return k.currentSelectedDataId.value;
2194
+ return V.currentSelectedDataId.value;
2178
2195
  }
2179
- function un() {
2180
- _.scrollToBottom();
2196
+ function rn() {
2197
+ K.scrollToBottom();
2181
2198
  }
2182
- function rn(S) {
2183
- _.scrollToRowByIndex(S);
2199
+ function cn(x) {
2200
+ K.scrollToRowByIndex(x);
2184
2201
  }
2185
- function cn() {
2186
- k.keepSelectingOnPaging.value || ft(), B.updateVisibleDataSummary(h.value), dt({
2187
- total: B.dataView.value.length,
2202
+ function dn() {
2203
+ V.keepSelectingOnPaging.value || vt(), F.updateVisibleDataSummary(v.value), ft({
2204
+ total: F.dataView.value.length,
2188
2205
  index: 1
2189
2206
  });
2190
2207
  }
2191
- const vt = {
2192
- activeRowById: ot,
2193
- selectRowById: Zt,
2194
- addNewDataItem: Lt,
2195
- addNewDataItemAtLast: At,
2196
- removeDataItem: Gt,
2197
- removeDataItemById: $t,
2198
- editDataItem: Wt,
2199
- acceptDataItem: Ut,
2208
+ function fn(x) {
2209
+ V.updateSelectedValues(x);
2210
+ }
2211
+ function vn(x) {
2212
+ V.removeSelectedValues(x);
2213
+ }
2214
+ const mt = {
2215
+ activeRowById: lt,
2216
+ selectRowById: Qt,
2217
+ addNewDataItem: At,
2218
+ addNewDataItemAtLast: Wt,
2219
+ removeDataItem: $t,
2220
+ removeDataItemById: Ut,
2221
+ editDataItem: Gt,
2222
+ acceptDataItem: _t,
2200
2223
  cancelDataItem: Kt,
2201
- selectItemById: Xt,
2202
- selectItemByIds: Qt,
2203
- updateColumns: at,
2204
- updateDataSource: qt,
2205
- updatePagination: dt,
2206
- getVisibleData: en,
2207
- getVisibleDataByIds: tn,
2208
- getSelectedItems: nn,
2209
- getSelectionRow: an,
2224
+ selectItemById: Jt,
2225
+ selectItemByIds: en,
2226
+ updateColumns: ot,
2227
+ updateDataSource: Xt,
2228
+ updatePagination: ft,
2229
+ getVisibleData: tn,
2230
+ getVisibleDataByIds: nn,
2231
+ getSelectedItems: an,
2232
+ getSelectionRow: on,
2210
2233
  getCurrentRowId: sn,
2211
- endEditCell: on,
2212
- clickRowItemById: Jt,
2213
- clearSelection: ft,
2214
- unSelectItemByIds: ln,
2215
- scrollToBottom: un,
2216
- scrollToRowByIndex: rn,
2217
- updateDerivedData: cn,
2218
- emptyCurrentRowId: Yt
2234
+ endEditCell: ln,
2235
+ clickRowItemById: Zt,
2236
+ clearSelection: vt,
2237
+ unSelectItemByIds: un,
2238
+ scrollToBottom: rn,
2239
+ scrollToRowByIndex: cn,
2240
+ updateDerivedData: dn,
2241
+ emptyCurrentRowId: qt,
2242
+ updateSelectedValues: fn,
2243
+ removeSelectedValues: vn
2219
2244
  };
2220
- t.expose(vt);
2221
- const dn = Ia(e, t, vt, R, te, h), {
2222
- renderDataArea: fn
2223
- } = ao(e, t, p, w, T, Ae, We, R, te, E, dn, de, ke, _, h, B), vn = y(() => !h.value || !h.value.length), {
2224
- renderEmpty: mn
2225
- } = Ea(e, t), hn = y(() => ({
2245
+ t.expose(mt);
2246
+ const mn = Ra(e, t, mt, I, ee, v), {
2247
+ renderDataArea: hn
2248
+ } = uo(e, t, C, S, b, We, De, I, ee, E, mn, fe, Me, K, v, F), gn = p(() => !v.value || !v.value.length), {
2249
+ renderEmpty: pn
2250
+ } = Da(e, t), yn = p(() => ({
2226
2251
  "d-flex": !0,
2227
- "justify-content-between": b.value && K.value,
2228
- "justify-content-end": b.value && !K.value,
2252
+ "justify-content-between": D.value && T.value,
2253
+ "justify-content-end": D.value && !T.value,
2229
2254
  "position-relative": !0,
2230
2255
  "fv-datagrid-pagination": !0
2231
- })), gn = y(() => ({
2256
+ })), Cn = p(() => ({
2232
2257
  "flex-direction": "row"
2233
- })), pn = y(() => ({
2258
+ })), bn = p(() => ({
2234
2259
  "d-flex": !0,
2235
2260
  "align-items-center": !0
2236
2261
  }));
2237
- Rn("dataGridContext", {
2238
- useColumnComposition: R,
2239
- dataView: B,
2240
- useFilterComposition: P,
2241
- useFitColumnComposition: Fe,
2242
- useSortComposition: D,
2243
- useVirtualScrollComposition: _
2262
+ jn("dataGridContext", {
2263
+ useColumnComposition: I,
2264
+ dataView: F,
2265
+ useFilterComposition: y,
2266
+ useFitColumnComposition: Oe,
2267
+ useSortComposition: A,
2268
+ useVirtualScrollComposition: K
2244
2269
  });
2245
- function yn(S) {
2246
- let H;
2247
- return l(Ra, {
2270
+ function wn(x) {
2271
+ let R;
2272
+ return l(ja, {
2248
2273
  class: "f-form-layout farris-form farris-form-controls-inline col-12 col-md-6 col-xl-3 col-el-2"
2249
- }, oo(H = Object.keys(S.data).filter((Y) => {
2250
- var ae, ce;
2251
- return ((ae = S.data[Y].column) == null ? void 0 : ae.dataType) !== Ct && ((ce = S.data[Y].column) == null ? void 0 : ce.dataType) !== wt;
2252
- }).map((Y) => {
2274
+ }, so(R = Object.keys(x.data).filter((U) => {
2275
+ var le, ce;
2276
+ return ((le = x.data[U].column) == null ? void 0 : le.dataType) !== wt && ((ce = x.data[U].column) == null ? void 0 : ce.dataType) !== xt;
2277
+ }).map((U) => {
2253
2278
  var ce, ie;
2254
- const ae = S.data[Y];
2279
+ const le = x.data[U];
2255
2280
  return l("div", {
2256
2281
  class: "farris-group-wrap w-100"
2257
2282
  }, [l("div", {
2258
2283
  class: "form-group farris-form-group common-group"
2259
- }, [l(Da, {
2260
- text: (ce = ae.column) == null ? void 0 : ce.title,
2261
- title: (ie = ae.column) == null ? void 0 : ie.title
2284
+ }, [l(Va, {
2285
+ text: (ce = le.column) == null ? void 0 : ce.title,
2286
+ title: (ie = le.column) == null ? void 0 : ie.title
2262
2287
  }, null), l("div", {
2263
2288
  class: "farris-input-wrap"
2264
- }, [ae.getEditor(ae)])])]);
2265
- })) ? H : {
2266
- default: () => [H]
2289
+ }, [le.getEditor(le)])])]);
2290
+ })) ? R : {
2291
+ default: () => [R]
2267
2292
  });
2268
2293
  }
2269
- function bn(S, H) {
2270
- const Y = {}, ae = {}, ce = [], ie = [], gt = {};
2271
- Object.keys(H.data).filter((Ee) => {
2272
- var be, _e;
2273
- return ((be = H.data[Ee].column) == null ? void 0 : be.dataType) !== Ct && ((_e = H.data[Ee].column) == null ? void 0 : _e.dataType) !== wt;
2274
- }).forEach((Ee) => {
2275
- var _e, pt, yt;
2276
- const be = H.data[Ee];
2277
- Y[Ee] = be.data, te.endEditByCell(be), ae[Ee] = be.data, ce.push(be.column), ie.push(be), gt[Ee] = (yt = (pt = (_e = be.column) == null ? void 0 : _e.editor) == null ? void 0 : pt.context) == null ? void 0 : yt.editor;
2294
+ function xn(x, R) {
2295
+ const U = {}, le = {}, ce = [], ie = [], pt = {};
2296
+ Object.keys(R.data).filter((Ie) => {
2297
+ var Ce, Ke;
2298
+ return ((Ce = R.data[Ie].column) == null ? void 0 : Ce.dataType) !== wt && ((Ke = R.data[Ie].column) == null ? void 0 : Ke.dataType) !== xt;
2299
+ }).forEach((Ie) => {
2300
+ var Ke, yt, Ct;
2301
+ const Ce = R.data[Ie];
2302
+ U[Ie] = Ce.data, ee.endEditByCell(Ce), le[Ie] = Ce.data, ce.push(Ce.column), ie.push(Ce), pt[Ie] = (Ct = (yt = (Ke = Ce.column) == null ? void 0 : Ke.editor) == null ? void 0 : yt.context) == null ? void 0 : Ct.editor;
2278
2303
  }), t.emit("endEditRow", {
2279
- row: H,
2304
+ row: R,
2280
2305
  cells: ie,
2281
2306
  columns: ce,
2282
- oldValues: Y,
2283
- newValues: ae,
2284
- editors: gt
2285
- }), te.showRowEditPanel.value = !1;
2286
- }
2287
- function Cn() {
2288
- const S = k.currentSelectedDataId.value, H = h.value.find((Y) => Y.raw[e.idField] === S);
2289
- return H ? l(Pa, {
2307
+ oldValues: U,
2308
+ newValues: le,
2309
+ editors: pt
2310
+ }), ee.showRowEditPanel.value = !1;
2311
+ }
2312
+ function Bn() {
2313
+ const x = V.currentSelectedDataId.value, R = v.value.find((U) => U.raw[e.idField] === x);
2314
+ return R ? l(Ha, {
2290
2315
  showHeader: !1,
2291
- modelValue: te.showRowEditPanel.value,
2292
- "onUpdate:modelValue": (Y) => te.showRowEditPanel.value = Y,
2316
+ modelValue: ee.showRowEditPanel.value,
2317
+ "onUpdate:modelValue": (U) => ee.showRowEditPanel.value = U,
2293
2318
  width: 600
2294
2319
  }, {
2295
- default: () => yn(H),
2296
- footerTemplate: () => l(pe, null, [l(xt, {
2320
+ default: () => wn(R),
2321
+ footerTemplate: () => l(de, null, [l(Bt, {
2297
2322
  class: "mr-3",
2298
2323
  type: "secondary",
2299
- onClick: (Y) => {
2300
- te.showRowEditPanel.value = !1;
2324
+ onClick: (U) => {
2325
+ ee.showRowEditPanel.value = !1;
2301
2326
  }
2302
2327
  }, {
2303
2328
  default: () => [Be("取消")]
2304
- }), l(xt, {
2305
- onClick: (Y) => {
2306
- bn(Y, H);
2329
+ }), l(Bt, {
2330
+ onClick: (U) => {
2331
+ xn(U, R);
2307
2332
  }
2308
2333
  }, {
2309
2334
  default: () => [Be("确定")]
2310
2335
  })])
2311
2336
  }) : null;
2312
2337
  }
2313
- return () => l(pe, null, [l("div", {
2314
- ref: v,
2315
- class: ee.value,
2316
- style: ue.value,
2317
- onWheel: Oe
2318
- }, [f.value && e.enableFilter && Vt(), f.value && Nt(), f.value && $.value && c(), l("div", {
2319
- ref: f,
2320
- class: le.value,
2321
- style: nt.value,
2322
- onTouchstart: (S) => {
2323
- S.stopPropagation(), g.value = !0, _.onTouchstartScrollThumb(S, f);
2338
+ return () => l(de, null, [l("div", {
2339
+ ref: g,
2340
+ class: ue.value,
2341
+ style: W.value,
2342
+ onWheel: $e
2343
+ }, [m.value && e.enableFilter && Nt(), m.value && zt(), m.value && $.value && c(), l("div", {
2344
+ ref: m,
2345
+ class: nt.value,
2346
+ style: at.value,
2347
+ onTouchstart: (x) => {
2348
+ x.stopPropagation(), k.value = !0, K.onTouchstartScrollThumb(x, m);
2324
2349
  },
2325
- onTouchend: (S) => {
2326
- g.value = !1;
2350
+ onTouchend: (x) => {
2351
+ k.value = !1;
2327
2352
  },
2328
- onMouseover: (S) => {
2329
- S.stopPropagation(), g.value = !0;
2353
+ onMouseover: (x) => {
2354
+ x.stopPropagation(), k.value = !0;
2330
2355
  },
2331
- onMouseleave: (S) => {
2332
- S.stopPropagation(), g.value = !1;
2356
+ onMouseleave: (x) => {
2357
+ x.stopPropagation(), k.value = !1;
2333
2358
  }
2334
- }, [f.value && J(h), f.value && fn(), f.value && vn.value && mn(), f.value && Ke(), f.value && jt()]), f.value && Je(), (b.value || K.value) && l("div", {
2335
- class: hn.value,
2336
- style: gn.value
2337
- }, [K.value && l("div", {
2338
- class: pn.value
2339
- }, [l("div", null, ["已选:" + O.value.length, Be(" 条")])]), b.value && I()]), V(), se.value && Ve()]), n() && Cn()]);
2359
+ }, [m.value && q(v), m.value && hn(), m.value && gn.value && pn(), m.value && _e(), m.value && Vt()]), m.value && Je(), (D.value || T.value) && l("div", {
2360
+ class: yn.value,
2361
+ style: Cn.value
2362
+ }, [T.value && l("div", {
2363
+ class: bn.value
2364
+ }, [l("div", null, ["已选:" + G.value.length, Be(" 条")])]), D.value && O()]), z(), te.value && Ve()]), n() && Bn()]);
2340
2365
  }
2341
2366
  });
2342
- Mt(Rt);
2343
- const lo = {
2367
+ kt(Dt);
2368
+ const io = {
2344
2369
  width: { Type: Number, default: 400 },
2345
2370
  type: { Type: String, default: "info" },
2346
2371
  title: { Type: String, default: "" },
@@ -2353,15 +2378,15 @@ const lo = {
2353
2378
  promptEditorType: { Type: String, default: "text-area" },
2354
2379
  buttons: { type: Object, default: [] }
2355
2380
  };
2356
- function ct() {
2381
+ function dt() {
2357
2382
  return new DOMException("The request is not allowed", "NotAllowedError");
2358
2383
  }
2359
- async function so(e) {
2384
+ async function ro(e) {
2360
2385
  if (!navigator.clipboard)
2361
- throw ct();
2386
+ throw dt();
2362
2387
  return navigator.clipboard.writeText(e);
2363
2388
  }
2364
- async function uo(e) {
2389
+ async function co(e) {
2365
2390
  const t = document.createElement("span");
2366
2391
  t.textContent = e, t.style.whiteSpace = "pre", t.style.webkitUserSelect = "auto", t.style.userSelect = "all", document.body.appendChild(t);
2367
2392
  const n = window.getSelection(), a = window.document.createRange();
@@ -2373,61 +2398,61 @@ async function uo(e) {
2373
2398
  n == null || n.removeAllRanges(), window.document.body.removeChild(t);
2374
2399
  }
2375
2400
  if (!o)
2376
- throw ct();
2401
+ throw dt();
2377
2402
  }
2378
- async function io(e) {
2403
+ async function fo(e) {
2379
2404
  try {
2380
- await so(e);
2405
+ await ro(e);
2381
2406
  } catch (t) {
2382
2407
  try {
2383
- await uo(e);
2408
+ await co(e);
2384
2409
  } catch (n) {
2385
- throw n || t || ct();
2410
+ throw n || t || dt();
2386
2411
  }
2387
2412
  }
2388
2413
  }
2389
- function ro() {
2414
+ function vo() {
2390
2415
  async function e(t) {
2391
- await io(t);
2416
+ await fo(t);
2392
2417
  }
2393
2418
  return { onCopy: e };
2394
2419
  }
2395
- function co(e, t, n, a) {
2396
- const o = r(14), s = r(140), i = r(""), u = r(a.value.length), v = y(() => a.value), f = y(() => ({
2420
+ function mo(e, t, n, a) {
2421
+ const o = i(14), u = i(140), r = i(""), s = i(a.value.length), f = p(() => a.value), g = p(() => ({
2397
2422
  "font-size": `${o.value}px`,
2398
2423
  height: "100%"
2399
2424
  }));
2400
- function p(w) {
2401
- if (w.currentTarget) {
2402
- const T = w.currentTarget.value || "";
2403
- u.value = T.length;
2425
+ function m(C) {
2426
+ if (C.currentTarget) {
2427
+ const S = C.currentTarget.value || "";
2428
+ s.value = S.length;
2404
2429
  }
2405
2430
  }
2406
- return () => l(pe, null, [l("textarea", {
2431
+ return () => l(de, null, [l("textarea", {
2407
2432
  title: "promptMessage",
2408
2433
  name: "promptMessage",
2409
2434
  class: "form-control",
2410
- style: f.value,
2435
+ style: g.value,
2411
2436
  rows: "4",
2412
- maxlength: s.value,
2413
- onInput: (w) => p(w)
2414
- }, [v.value]), l("span", {
2437
+ maxlength: u.value,
2438
+ onInput: (C) => m(C)
2439
+ }, [f.value]), l("span", {
2415
2440
  class: "textarea-wordcount",
2416
- title: i.value,
2441
+ title: r.value,
2417
2442
  style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
2418
- }, [u.value + " / " + s.value])]);
2443
+ }, [s.value + " / " + u.value])]);
2419
2444
  }
2420
- function fo(e, t, n, a) {
2421
- const o = co(e, t, n, a), s = /* @__PURE__ */ new Map([["text-area", o]]);
2422
- function i(u) {
2423
- return s.get(u) || null;
2445
+ function ho(e, t, n, a) {
2446
+ const o = mo(e, t, n, a), u = /* @__PURE__ */ new Map([["text-area", o]]);
2447
+ function r(s) {
2448
+ return u.get(s) || null;
2424
2449
  }
2425
- return { getEditorRender: i };
2450
+ return { getEditorRender: r };
2426
2451
  }
2427
- function vo() {
2428
- const e = r(!1), t = r("复制成功");
2452
+ function go() {
2453
+ const e = i(!1), t = i("复制成功");
2429
2454
  return {
2430
- feedbackStyle: y(() => {
2455
+ feedbackStyle: p(() => {
2431
2456
  const a = {
2432
2457
  position: "absolute",
2433
2458
  left: "50%",
@@ -2451,153 +2476,153 @@ function vo() {
2451
2476
  toShowFeedback: e
2452
2477
  };
2453
2478
  }
2454
- function mo(e, t) {
2479
+ function po(e, t) {
2455
2480
  const n = t.getEditorRender(e.promptEditorType);
2456
2481
  return () => n && n();
2457
2482
  }
2458
- function ho(e, t) {
2459
- function n(h) {
2460
- if (h == null)
2483
+ function yo(e, t) {
2484
+ function n(b) {
2485
+ if (b == null)
2461
2486
  return 0;
2462
- let g = 0;
2463
- for (let F = 0; F < h.length; F++) {
2464
- const E = h.charCodeAt(F);
2465
- E >= 0 && E <= 128 ? g++ : g = g + 2;
2466
- }
2467
- return g;
2468
- }
2469
- function a(h, g) {
2470
- if (h !== "" && h !== void 0 && h !== null) {
2471
- h = "" + h;
2472
- const F = h.length;
2473
- let E = "", P = 0;
2474
- for (let C = 0; C < F; C++) {
2475
- const N = h.charAt(C);
2476
- if (P++, encodeURI(N).length > 4 && P++, E = E.concat(N), P >= g)
2477
- return E = E.concat("..."), E;
2487
+ let v = 0;
2488
+ for (let k = 0; k < b.length; k++) {
2489
+ const P = b.charCodeAt(k);
2490
+ P >= 0 && P <= 128 ? v++ : v = v + 2;
2491
+ }
2492
+ return v;
2493
+ }
2494
+ function a(b, v) {
2495
+ if (b !== "" && b !== void 0 && b !== null) {
2496
+ b = "" + b;
2497
+ const k = b.length;
2498
+ let P = "", E = 0;
2499
+ for (let y = 0; y < k; y++) {
2500
+ const L = b.charAt(y);
2501
+ if (E++, encodeURI(L).length > 4 && E++, P = P.concat(L), E >= v)
2502
+ return P = P.concat("..."), P;
2478
2503
  }
2479
- if (P < g)
2480
- return h;
2504
+ if (E < v)
2505
+ return b;
2481
2506
  }
2482
2507
  return "";
2483
2508
  }
2484
- const o = y(() => !!e.value && !!e.value.date), s = y(() => {
2485
- const h = e.value && e.value.date || "";
2486
- return `${t.exception.happend} : ${h}`;
2487
- }), i = y(() => !!e.value && !!e.value.detail), u = y(() => e.value ? n(e.value.detail) > 160 : !1), v = r(!1), f = y(() => v.value ? t.exception.collapse : t.exception.expand), p = y(() => {
2488
- const h = t.exception.detail + " : " + (e.value && e.value.detail) || "";
2489
- return v.value ? h : a(h, 160);
2490
- }), w = y(() => ({
2491
- bottom: v.value ? 0 : "2px"
2509
+ const o = p(() => !!e.value && !!e.value.date), u = p(() => {
2510
+ const b = e.value && e.value.date || "";
2511
+ return `${t.exception.happend} : ${b}`;
2512
+ }), r = p(() => !!e.value && !!e.value.detail), s = p(() => e.value ? n(e.value.detail) > 160 : !1), f = i(!1), g = p(() => f.value ? t.exception.collapse : t.exception.expand), m = p(() => {
2513
+ const b = t.exception.detail + " : " + (e.value && e.value.detail) || "";
2514
+ return f.value ? b : a(b, 160);
2515
+ }), C = p(() => ({
2516
+ bottom: f.value ? 0 : "2px"
2492
2517
  }));
2493
- function T() {
2494
- v.value = !v.value;
2518
+ function S() {
2519
+ f.value = !f.value;
2495
2520
  }
2496
2521
  return () => l("div", {
2497
2522
  class: "toast-msg-detail",
2498
2523
  style: "max-height: calc(100vh - 200px);overflow: auto;"
2499
- }, [o.value && l("div", null, [s.value]), i.value && l("div", {
2524
+ }, [o.value && l("div", null, [u.value]), r.value && l("div", {
2500
2525
  class: "exception_wrap"
2501
2526
  }, [l("div", {
2502
2527
  class: "exception_error_msg"
2503
2528
  }, [l("div", {
2504
- innerHTML: p.value
2505
- }, null), u.value && l("span", {
2529
+ innerHTML: m.value
2530
+ }, null), s.value && l("span", {
2506
2531
  class: "exception_toggle_detail",
2507
- style: w.value,
2508
- onClick: T
2509
- }, [f.value])])])]);
2532
+ style: C.value,
2533
+ onClick: S
2534
+ }, [g.value])])])]);
2510
2535
  }
2511
- function go(e) {
2536
+ function Co(e) {
2512
2537
  return () => l("p", {
2513
2538
  class: "toast-msg-detail",
2514
2539
  innerHTML: e.value,
2515
2540
  style: "max-height: calc(100vh - 200px);overflow: auto;"
2516
2541
  }, null);
2517
2542
  }
2518
- function po(e, t, n, a, o) {
2519
- const s = r(e.exceptionInfo), i = y(() => {
2520
- const g = t.value === "question" ? "warning" : t.value, F = {
2543
+ function bo(e, t, n, a, o) {
2544
+ const u = i(e.exceptionInfo), r = p(() => {
2545
+ const v = t.value === "question" ? "warning" : t.value, k = {
2521
2546
  "f-icon": !0
2522
- }, E = `f-icon-${g}`;
2523
- return F[E] = !0, F;
2524
- }), u = y(() => n.value || s.value && s.value.message), v = y(() => a.value), f = y(() => !!a.value), p = y(() => !!s.value);
2525
- function w() {
2526
- return p.value ? ho(s, o) : f.value ? go(v) : () => null;
2547
+ }, P = `f-icon-${v}`;
2548
+ return k[P] = !0, k;
2549
+ }), s = p(() => n.value || u.value && u.value.message), f = p(() => a.value), g = p(() => !!a.value), m = p(() => !!u.value);
2550
+ function C() {
2551
+ return m.value ? yo(u, o) : g.value ? Co(f) : () => null;
2527
2552
  }
2528
- const T = w(), h = y(() => o.locale === "en" ? {
2553
+ const S = C(), b = p(() => o.locale === "en" ? {
2529
2554
  wordBreak: "keep-all",
2530
2555
  overflowWrap: "break-word"
2531
2556
  } : {});
2532
- return () => l(pe, null, [l("div", {
2557
+ return () => l(de, null, [l("div", {
2533
2558
  class: "float-left modal-tips-iconwrap"
2534
2559
  }, [l("span", {
2535
- class: i.value
2560
+ class: r.value
2536
2561
  }, null)]), l("div", {
2537
2562
  class: "modal-tips-content"
2538
2563
  }, [l("p", {
2539
2564
  class: "toast-msg-title",
2540
- innerHTML: u.value,
2541
- style: h.value
2542
- }, null), T()])]);
2565
+ innerHTML: s.value,
2566
+ style: b.value
2567
+ }, null), S()])]);
2543
2568
  }
2544
- function yo(e, t, n, a) {
2569
+ function wo(e, t, n, a) {
2545
2570
  const {
2546
2571
  onCopy: o
2547
2572
  } = t, {
2548
- toShowFeedback: s
2549
- } = n, i = r(a.exception.copySuccess || "复制成功"), u = r(a.exception.copy || "复制详细信息"), v = r(e.exceptionInfo || {
2573
+ toShowFeedback: u
2574
+ } = n, r = i(a.exception.copySuccess || "复制成功"), s = i(a.exception.copy || "复制详细信息"), f = i(e.exceptionInfo || {
2550
2575
  date: "",
2551
2576
  message: "",
2552
2577
  detail: ""
2553
- }), f = y(() => v.value && v.value.detail || "");
2554
- function p(w) {
2555
- o(f.value).catch((T) => {
2556
- i.value = a.exception.copyFailed || "复制失败";
2578
+ }), g = p(() => f.value && f.value.detail || "");
2579
+ function m(C) {
2580
+ o(g.value).catch((S) => {
2581
+ r.value = a.exception.copyFailed || "复制失败";
2557
2582
  }).finally(() => {
2558
- s.value = !0, setTimeout(() => {
2559
- s.value = !1;
2583
+ u.value = !0, setTimeout(() => {
2584
+ u.value = !1;
2560
2585
  }, 700);
2561
2586
  });
2562
2587
  }
2563
2588
  return () => l("span", {
2564
2589
  class: "copy-exception-info"
2565
2590
  }, [l("span", {
2566
- onClick: p,
2591
+ onClick: m,
2567
2592
  style: "cursor: pointer;"
2568
- }, [u.value])]);
2593
+ }, [s.value])]);
2569
2594
  }
2570
- function bo(e, t, n, a, o) {
2571
- const s = r(e.type), i = r(e.buttons), u = r(e.exceptionInfo), v = r(o.ok || e.okButtonText), f = r(o.cancel || e.cancelButtonText), p = r(e.showCancelButton), w = r(e.showOkButton), T = y(() => !!(i.value && i.value.length)), h = y(() => !!(u.value && u.value.detail)), g = y(() => !(i.value && i.value.length) && (w.value || p.value)), F = yo(e, n, a, o);
2572
- v.value === "关闭" ? v.value = o.close : v.value === "知道了" && (v.value = o.exception.roger);
2573
- function E(C) {
2574
- s.value === "question" && t.emit("reject"), t.emit("close");
2595
+ function xo(e, t, n, a, o) {
2596
+ const u = i(e.type), r = i(e.buttons), s = i(e.exceptionInfo), f = i(o.ok || e.okButtonText), g = i(o.cancel || e.cancelButtonText), m = i(e.showCancelButton), C = i(e.showOkButton), S = p(() => !!(r.value && r.value.length)), b = p(() => !!(s.value && s.value.detail)), v = p(() => !(r.value && r.value.length) && (C.value || m.value)), k = wo(e, n, a, o);
2597
+ f.value === "关闭" ? f.value = o.close : f.value === "知道了" && (f.value = o.exception.roger);
2598
+ function P(y) {
2599
+ u.value === "question" && t.emit("reject"), t.emit("close");
2575
2600
  }
2576
- function P(C) {
2577
- s.value === "question" && t.emit("accept"), t.emit("close");
2601
+ function E(y) {
2602
+ u.value === "question" && t.emit("accept"), t.emit("close");
2578
2603
  }
2579
2604
  return () => l("div", {
2580
2605
  class: "modal-footer"
2581
- }, [h.value && F(), g.value && p.value && l("button", {
2606
+ }, [b.value && k(), v.value && m.value && l("button", {
2582
2607
  type: "button",
2583
2608
  class: "btn btn-secondary btn-lg",
2584
- onClick: E
2585
- }, [f.value]), g.value && w.value && l("button", {
2609
+ onClick: P
2610
+ }, [g.value]), v.value && C.value && l("button", {
2586
2611
  type: "button",
2587
2612
  class: "btn btn-primary btn-lg",
2588
- onClick: P
2589
- }, [v.value]), T.value && i.value.length && i.value.map((C) => l("button", {
2613
+ onClick: E
2614
+ }, [f.value]), S.value && r.value.length && r.value.map((y) => l("button", {
2590
2615
  type: "button",
2591
- onClick: C.handle,
2592
- class: C.class
2593
- }, [C.iconClass && l("span", {
2594
- class: C.iconClass
2595
- }, null), C.text]))]);
2616
+ onClick: y.handle,
2617
+ class: y.class
2618
+ }, [y.iconClass && l("span", {
2619
+ class: y.iconClass
2620
+ }, null), y.text]))]);
2596
2621
  }
2597
- function Co(e) {
2598
- const { getLocaleValue: t } = Ce, n = Ce.getLocale();
2599
- function a(o, s, i) {
2600
- return s === i ? t(o) : s;
2622
+ function Bo(e) {
2623
+ const { getLocaleValue: t } = be, n = be.getLocale();
2624
+ function a(o, u, r) {
2625
+ return u === r ? t(o) : u;
2601
2626
  }
2602
2627
  return {
2603
2628
  yes: a("messageBox.yes") || "是",
@@ -2622,64 +2647,64 @@ function Co(e) {
2622
2647
  }
2623
2648
  const Qe = /* @__PURE__ */ Se({
2624
2649
  name: "FMessageBox",
2625
- props: lo,
2650
+ props: io,
2626
2651
  emits: ["accept", "reject", "close"],
2627
2652
  setup(e, t) {
2628
- const n = Co(e), a = r(e.type), o = r(e.title), s = r(e.detail), i = y(() => {
2629
- const P = {
2653
+ const n = Bo(e), a = i(e.type), o = i(e.title), u = i(e.detail), r = p(() => {
2654
+ const E = {
2630
2655
  "modal-tips": !0,
2631
2656
  "d-flex": !0,
2632
2657
  "flex-row": !0
2633
- }, C = `messager-type-${a.value}`;
2634
- return P[C] = !0, P;
2635
- }), u = y(() => {
2636
- const P = {
2658
+ }, y = `messager-type-${a.value}`;
2659
+ return E[y] = !0, E;
2660
+ }), s = p(() => {
2661
+ const E = {
2637
2662
  cursor: "default"
2638
2663
  };
2639
- return a.value === "prompt" ? P.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (P.padding = "0.5rem 1.5rem 1rem 1.5rem"), P;
2640
- }), v = ro(), f = fo(e, a, o, s), p = vo(), {
2641
- feedbackStyle: w,
2642
- feedbackMessage: T
2643
- } = p;
2644
- T.value = n.exception.copySuccess;
2645
- function h() {
2664
+ return a.value === "prompt" ? E.padding = "0.5rem 0.5rem 1rem 1.5rem" : a.value === "error" && (E.padding = "0.5rem 1.5rem 1rem 1.5rem"), E;
2665
+ }), f = vo(), g = ho(e, a, o, u), m = go(), {
2666
+ feedbackStyle: C,
2667
+ feedbackMessage: S
2668
+ } = m;
2669
+ S.value = n.exception.copySuccess;
2670
+ function b() {
2646
2671
  return l("div", {
2647
- style: w.value
2648
- }, [T.value]);
2672
+ style: C.value
2673
+ }, [S.value]);
2649
2674
  }
2650
- function g() {
2675
+ function v() {
2651
2676
  switch (a.value) {
2652
2677
  case "prompt":
2653
- return mo(e, f);
2678
+ return po(e, g);
2654
2679
  default:
2655
- return po(e, a, o, s, n);
2680
+ return bo(e, a, o, u, n);
2656
2681
  }
2657
2682
  }
2658
- const F = g(), E = bo(e, t, v, p, n);
2683
+ const k = v(), P = xo(e, t, f, m, n);
2659
2684
  return () => l("div", {
2660
2685
  class: "farris-messager"
2661
2686
  }, [!e.exceptionInfo && l("div", {
2662
2687
  style: "height: 30px;width: 100%;position: absolute;",
2663
2688
  class: "messager-draggable"
2664
2689
  }, null), l("section", {
2665
- class: i.value,
2666
- style: u.value
2667
- }, [F()]), E(), h()]);
2690
+ class: r.value,
2691
+ style: s.value
2692
+ }, [k()]), P(), b()]);
2668
2693
  }
2669
2694
  }), he = class he {
2670
2695
  static show(t) {
2671
2696
  const n = ge({
2672
2697
  ...t
2673
- }), a = !1, o = n.type === "error" || n.type === "prompt", s = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", i = n.acceptCallback || (() => {
2674
- }), u = n.rejectCallback || (() => {
2698
+ }), a = !1, o = n.type === "error" || n.type === "prompt", u = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", r = n.acceptCallback || (() => {
2699
+ }), s = n.rejectCallback || (() => {
2675
2700
  });
2676
- let v = null, f = new Ft(he.app);
2677
- const p = () => {
2678
- v && (v == null || v.destroy(), f = null);
2701
+ let f = null, g = new It(he.app);
2702
+ const m = () => {
2703
+ f && (f == null || f.destroy(), g = null);
2679
2704
  };
2680
- return v = f == null ? void 0 : f.open({
2705
+ return f = g == null ? void 0 : g.open({
2681
2706
  class: "modal-message modal-message-type-info",
2682
- title: s,
2707
+ title: u,
2683
2708
  showButtons: a,
2684
2709
  showHeader: o,
2685
2710
  width: n.width || 400,
@@ -2688,11 +2713,11 @@ const Qe = /* @__PURE__ */ Se({
2688
2713
  draggable: !0,
2689
2714
  dragHandle: ".messager-draggable",
2690
2715
  render: () => l(Qe, tt(n, {
2691
- onAccept: i,
2692
- onReject: u,
2693
- onClose: p
2716
+ onAccept: r,
2717
+ onReject: s,
2718
+ onClose: m
2694
2719
  }), null)
2695
- }), f == null ? void 0 : f.getCurrentModal();
2720
+ }), g == null ? void 0 : g.getCurrentModal();
2696
2721
  }
2697
2722
  static info(t, n) {
2698
2723
  const a = ge({
@@ -2749,7 +2774,7 @@ const Qe = /* @__PURE__ */ Se({
2749
2774
  he.show(a);
2750
2775
  }
2751
2776
  static question(t, n, a, o) {
2752
- const s = ge({
2777
+ const u = ge({
2753
2778
  type: "question",
2754
2779
  title: t,
2755
2780
  detail: n,
@@ -2758,7 +2783,7 @@ const Qe = /* @__PURE__ */ Se({
2758
2783
  acceptCallback: a,
2759
2784
  rejectCallback: o
2760
2785
  });
2761
- he.show(s);
2786
+ he.show(u);
2762
2787
  }
2763
2788
  };
2764
2789
  me(he, "app", null);
@@ -2766,7 +2791,7 @@ let qe = he;
2766
2791
  Qe.install = (e) => {
2767
2792
  e.component(Qe.name, Qe), qe.app = e, e.provide("FMessageBoxService", qe);
2768
2793
  };
2769
- const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-design.gitee.io/mapping-editor.schema.json", Bo = "mapping-editor", So = "A Farris Input Component", To = "object", Mo = {
2794
+ const So = "https://json-schema.org/draft/2020-12/schema", To = "https://farris-design.gitee.io/mapping-editor.schema.json", Mo = "mapping-editor", ko = "A Farris Input Component", Fo = "object", Oo = {
2770
2795
  fromData: {
2771
2796
  type: "object",
2772
2797
  default: null
@@ -2807,14 +2832,14 @@ const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-
2807
2832
  type: "object",
2808
2833
  default: null
2809
2834
  }
2810
- }, ko = {
2811
- $schema: wo,
2812
- $id: xo,
2813
- title: Bo,
2814
- description: So,
2815
- type: To,
2816
- properties: Mo
2817
- }, Dt = {
2835
+ }, Io = {
2836
+ $schema: So,
2837
+ $id: To,
2838
+ title: Mo,
2839
+ description: ko,
2840
+ type: Fo,
2841
+ properties: Oo
2842
+ }, Ht = {
2818
2843
  fromData: { type: Object, default: {} },
2819
2844
  toData: { type: Object, default: {} },
2820
2845
  disabled: { type: Boolean, default: !1 },
@@ -2826,7 +2851,7 @@ const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-
2826
2851
  editorParams: { type: Object, default: null },
2827
2852
  onMappingFieldsChanged: { type: Function, default: null },
2828
2853
  beforeOpen: { type: Function }
2829
- }, Oo = Ha(Dt, ko), Fo = {
2854
+ }, Eo = Na(Ht, Io), Po = {
2830
2855
  showCloseButton: { type: Boolean, default: !0 },
2831
2856
  position: { type: String, default: "top-center" },
2832
2857
  timeout: { type: Number, default: 3e3 },
@@ -2839,139 +2864,139 @@ const wo = "https://json-schema.org/draft/2020-12/schema", xo = "https://farris-
2839
2864
  animate: { type: String, default: "fadeIn" },
2840
2865
  options: { type: Object },
2841
2866
  safeHtml: { type: Boolean, default: !0 }
2842
- }, Io = {
2867
+ }, Ro = {
2843
2868
  showCloseButton: { type: Boolean, default: !0 },
2844
2869
  animate: { type: String, default: "fadeIn" },
2845
2870
  options: { type: Object }
2846
- }, ut = /* @__PURE__ */ Se({
2871
+ }, it = /* @__PURE__ */ Se({
2847
2872
  name: "Toast",
2848
- props: Io,
2873
+ props: Ro,
2849
2874
  emits: ["close", "click"],
2850
2875
  setup: (e, t) => {
2851
- const n = r(e.animate), a = "fadeOut", o = y(() => e.options), s = r(!1), i = y(() => o.value.title && o.value.message), u = y(() => !o.value.title && o.value.message), v = y(() => {
2852
- const C = {
2853
- animated: s.value,
2876
+ const n = i(e.animate), a = "fadeOut", o = p(() => e.options), u = i(!1), r = p(() => o.value.title && o.value.message), s = p(() => !o.value.title && o.value.message), f = p(() => {
2877
+ const y = {
2878
+ animated: u.value,
2854
2879
  toast: !0,
2855
- "toast--only-content": !i.value
2880
+ "toast--only-content": !r.value
2856
2881
  };
2857
- return C[e.animate] = !1, C[a] = s.value, C["toasty-type-" + o.value.type] = !0, o.value.theme && (C[o.value.theme] = !0), C;
2858
- }), f = y(() => {
2859
- const U = `f-icon-${o.value && o.value.type ? o.value.type.replace("toasty-type-", "") : "default"}`, B = {
2882
+ return y[e.animate] = !1, y[a] = u.value, y["toasty-type-" + o.value.type] = !0, o.value.theme && (y[o.value.theme] = !0), y;
2883
+ }), g = p(() => {
2884
+ const _ = `f-icon-${o.value && o.value.type ? o.value.type.replace("toasty-type-", "") : "default"}`, H = {
2860
2885
  "f-icon": !0
2861
2886
  };
2862
- return B[U] = !0, B;
2863
- }), p = y(() => o.value.title || o.value.message), w = y(() => e.showCloseButton), T = y(() => !!o.value.buttons || !!t.slots.default), h = y(() => Ce.getLocale() === "en" ? {
2887
+ return H[_] = !0, H;
2888
+ }), m = p(() => o.value.title || o.value.message), C = p(() => e.showCloseButton), S = p(() => !!o.value.buttons || !!t.slots.default), b = p(() => be.getLocale() === "en" ? {
2864
2889
  wordBreak: "keep-all",
2865
2890
  overflowWrap: "break-word"
2866
2891
  } : {});
2867
- function g(C) {
2868
- C.stopPropagation(), C.preventDefault(), s.value = !1, setTimeout(() => {
2892
+ function v(y) {
2893
+ y.stopPropagation(), y.preventDefault(), u.value = !1, setTimeout(() => {
2869
2894
  t.emit("close", o.value);
2870
2895
  }, 200);
2871
2896
  }
2872
- function F(C, N) {
2897
+ function k(y, L) {
2873
2898
  }
2874
- function E(C) {
2875
- return `f-preten-link ${C.customClass ? C.customClass : ""}`;
2899
+ function P(y) {
2900
+ return `f-preten-link ${y.customClass ? y.customClass : ""}`;
2876
2901
  }
2877
- Z(n, () => {
2902
+ X(n, () => {
2878
2903
  n.value;
2879
2904
  });
2880
- const P = () => {
2881
- var C;
2882
- return l(pe, null, [l("div", {
2905
+ const E = () => {
2906
+ var y;
2907
+ return l(de, null, [l("div", {
2883
2908
  class: "after-toast-msg text-right"
2884
- }, [!t.slots.default && ((C = o.value.buttons) == null ? void 0 : C.map((N) => l("span", {
2885
- class: E(N),
2886
- onClick: (U) => void 0
2887
- }, [N.text]))), t.slots.default && t.slots.default()])]);
2909
+ }, [!t.slots.default && ((y = o.value.buttons) == null ? void 0 : y.map((L) => l("span", {
2910
+ class: P(L),
2911
+ onClick: (_) => void 0
2912
+ }, [L.text]))), t.slots.default && t.slots.default()])]);
2888
2913
  };
2889
2914
  return () => l("div", {
2890
- class: v.value,
2915
+ class: f.value,
2891
2916
  style: "min-height:44px"
2892
- }, [w.value && l("button", {
2893
- title: Ce.getLocaleValue("messageBox.close"),
2917
+ }, [C.value && l("button", {
2918
+ title: be.getLocaleValue("messageBox.close"),
2894
2919
  class: "toast-close f-btn-icon f-bare",
2895
- onClick: g
2920
+ onClick: v
2896
2921
  }, [l("span", {
2897
2922
  class: "f-icon modal_close"
2898
- }, null)]), p.value && l("section", {
2923
+ }, null)]), m.value && l("section", {
2899
2924
  class: "modal-tips"
2900
- }, [!i.value && l("div", {
2925
+ }, [!r.value && l("div", {
2901
2926
  class: "float-left modal-tips-iconwrap"
2902
2927
  }, [l("span", {
2903
- class: f.value
2928
+ class: g.value
2904
2929
  }, null)]), l("div", {
2905
2930
  class: "modal-tips-content"
2906
- }, [i.value && l(pe, null, [l("h5", {
2931
+ }, [r.value && l(de, null, [l("h5", {
2907
2932
  class: "toast-title modal-tips-title",
2908
2933
  innerHTML: o.value.title
2909
2934
  }, null), l("p", {
2910
2935
  class: "toast-msg",
2911
2936
  innerHTML: o.value.message,
2912
- style: h.value
2913
- }, null), T.value && P()]), u.value && (o.value.buttons ? l("div", {
2937
+ style: b.value
2938
+ }, null), S.value && E()]), s.value && (o.value.buttons ? l("div", {
2914
2939
  class: "toast-title-btns-wrapper d-flex"
2915
2940
  }, [l("h5", {
2916
2941
  class: "toast-title modal-tips-title only-toast-msg",
2917
- style: h.value,
2942
+ style: b.value,
2918
2943
  innerHTML: o.value.message
2919
2944
  }, null), l("div", {
2920
2945
  class: "after-toast-title text-right ml-auto"
2921
- }, [P()])]) : l("h5", {
2946
+ }, [E()])]) : l("h5", {
2922
2947
  class: "toast-title modal-tips-title only-toast-msg",
2923
- style: h.value,
2948
+ style: b.value,
2924
2949
  innerHTML: o.value.message
2925
2950
  }, null))])])]);
2926
2951
  }
2927
2952
  }), et = /* @__PURE__ */ Se({
2928
2953
  name: "Notify",
2929
- props: Fo,
2954
+ props: Po,
2930
2955
  emits: ["close", "empty"],
2931
2956
  setup(e, t) {
2932
- const n = y(() => ({
2957
+ const n = p(() => ({
2933
2958
  "farris-notify": !0
2934
2959
  })), a = {
2935
2960
  left: 12,
2936
2961
  right: 12,
2937
2962
  top: 20,
2938
2963
  bottom: 12
2939
- }, o = r(), s = r(e.options), i = r(e.showCloseButton), u = y(() => e.position || "bottom-right"), v = y(() => e.timeout != null ? e.timeout : 3e3), f = y(() => {
2940
- const T = e.bottom ? e.bottom : a.bottom, h = e.top ? e.top : a.top, g = {
2964
+ }, o = i(), u = i(e.options), r = i(e.showCloseButton), s = p(() => e.position || "bottom-right"), f = p(() => e.timeout != null ? e.timeout : 3e3), g = p(() => {
2965
+ const S = e.bottom ? e.bottom : a.bottom, b = e.top ? e.top : a.top, v = {
2941
2966
  transition: "all 0.2s ease",
2942
- left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
2943
- right: u.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
2944
- top: u.value.indexOf("top") > -1 ? `${h}px` : "",
2945
- bottom: u.value.indexOf("bottom") > -1 ? `${T}px` : ""
2967
+ left: s.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
2968
+ right: s.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
2969
+ top: s.value.indexOf("top") > -1 ? `${b}px` : "",
2970
+ bottom: s.value.indexOf("bottom") > -1 ? `${S}px` : ""
2946
2971
  };
2947
- return u.value.indexOf("center") > -1 && (g.left = "50%", g.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (g.top = "50%", g.transform = "translate(-50%, -50%)")), g;
2972
+ return s.value.indexOf("center") > -1 && (v.left = "50%", v.marginLeft = "calc(-24rem / 2)", s.value === "center-center" && (v.top = "50%", v.transform = "translate(-50%, -50%)")), v;
2948
2973
  });
2949
- function p(T) {
2974
+ function m(S) {
2950
2975
  t.emit("close");
2951
2976
  }
2952
- v.value && setTimeout(() => {
2953
- p();
2954
- }, v.value), t.expose({
2955
- closeToast: p,
2977
+ f.value && setTimeout(() => {
2978
+ m();
2979
+ }, f.value), t.expose({
2980
+ closeToast: m,
2956
2981
  container: o,
2957
- notifyPosition: u
2982
+ notifyPosition: s
2958
2983
  });
2959
- function w(T, h) {
2960
- p();
2984
+ function C(S, b) {
2985
+ m();
2961
2986
  }
2962
2987
  return () => l("div", {
2963
2988
  class: n.value,
2964
- style: f.value,
2989
+ style: g.value,
2965
2990
  ref: o
2966
- }, [l(ut, {
2967
- options: s.value,
2968
- showCloseButton: i.value,
2991
+ }, [l(it, {
2992
+ options: u.value,
2993
+ showCloseButton: r.value,
2969
2994
  animate: e.animate,
2970
- onClose: (T) => w(T, s.value)
2995
+ onClose: (S) => C(S, u.value)
2971
2996
  }, null)]);
2972
2997
  }
2973
2998
  });
2974
- class Eo {
2999
+ class Do {
2975
3000
  constructor() {
2976
3001
  me(this, "notifyRefs", []);
2977
3002
  me(this, "globalConfig", ge({}));
@@ -2990,42 +3015,42 @@ class Eo {
2990
3015
  safeHtml: !0
2991
3016
  }, this.globalConfig, {
2992
3017
  ...t
2993
- }), s = document.createElement("div");
2994
- s.style.display = "contents";
2995
- const i = rt({
3018
+ }), u = document.createElement("div");
3019
+ u.style.display = "contents";
3020
+ const r = ct({
2996
3021
  setup() {
2997
- var f;
2998
- const u = r();
2999
- function v() {
3000
- u.value.container.style.transform = "scale(0)", setTimeout(() => {
3001
- n.updateNotifyPositionForClose(o, u), i.unmount();
3022
+ var g;
3023
+ const s = i();
3024
+ function f() {
3025
+ s.value.container.style.transform = "scale(0)", setTimeout(() => {
3026
+ n.updateNotifyPositionForClose(o, s), r.unmount();
3002
3027
  }, 220);
3003
3028
  }
3004
3029
  if (o.position.indexOf("top") > -1) {
3005
- const p = n.getNotifyInstances(o.position), w = p[p.length - 1];
3006
- if (w) {
3007
- const T = w.value.container.getBoundingClientRect();
3008
- o.top = T.bottom;
3030
+ const m = n.getNotifyInstances(o.position), C = m[m.length - 1];
3031
+ if (C) {
3032
+ const S = C.value.container.getBoundingClientRect();
3033
+ o.top = S.bottom;
3009
3034
  }
3010
3035
  }
3011
- return o.safeHtml && ((f = o.options) != null && f.message) && (o.options.message = n.escapeAllHtml(o.options.message)), Xe(() => {
3012
- document.body.removeChild(s);
3036
+ return o.safeHtml && ((g = o.options) != null && g.message) && (o.options.message = n.escapeAllHtml(o.options.message)), Xe(() => {
3037
+ document.body.removeChild(u);
3013
3038
  }), ze(() => {
3014
- n.updateNotifyPositionForCreate(o, u);
3015
- }), () => l(St, {
3039
+ n.updateNotifyPositionForCreate(o, s);
3040
+ }), () => l(Tt, {
3016
3041
  mode: "out-in",
3017
3042
  name: "fade",
3018
3043
  appear: !0
3019
3044
  }, {
3020
3045
  default: () => [l(et, tt({
3021
- ref: u
3046
+ ref: s
3022
3047
  }, o, {
3023
- onClose: v
3048
+ onClose: f
3024
3049
  }), null)]
3025
3050
  });
3026
3051
  }
3027
3052
  });
3028
- return i.provide("NotifyService", this), document.body.appendChild(s), i.use(Ce.i18n), i.mount(s), i;
3053
+ return r.provide("NotifyService", this), document.body.appendChild(u), r.use(be.i18n), r.mount(u), r;
3029
3054
  }
3030
3055
  getNotifyInstances(t) {
3031
3056
  return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
@@ -3034,8 +3059,8 @@ class Eo {
3034
3059
  if (this.notifyRefs && this.notifyRefs.length) {
3035
3060
  const a = window.innerHeight;
3036
3061
  t.position.indexOf("bottom") > -1 && this.getNotifyInstances(t.position).forEach((o) => {
3037
- const s = o.value.container.getBoundingClientRect();
3038
- o.value.container.style.bottom = s.height + a - s.bottom + "px";
3062
+ const u = o.value.container.getBoundingClientRect();
3063
+ o.value.container.style.bottom = u.height + a - u.bottom + "px";
3039
3064
  });
3040
3065
  }
3041
3066
  this.notifyRefs = [...this.notifyRefs, n];
@@ -3043,9 +3068,9 @@ class Eo {
3043
3068
  updateNotifyPositionForClose(t, n) {
3044
3069
  const a = this.notifyRefs.indexOf(n);
3045
3070
  if (t.position.indexOf("top") > -1) {
3046
- const o = this.getNotifyInstances(t.position), s = o.indexOf(n);
3047
- o.slice(s + 1).forEach((i) => {
3048
- i.value.container.style.top = i.value.container.offsetTop - i.value.container.offsetHeight + "px";
3071
+ const o = this.getNotifyInstances(t.position), u = o.indexOf(n);
3072
+ o.slice(u + 1).forEach((r) => {
3073
+ r.value.container.style.top = r.value.container.offsetTop - r.value.container.offsetHeight + "px";
3049
3074
  });
3050
3075
  }
3051
3076
  a > -1 && this.notifyRefs.splice(a, 1);
@@ -3054,16 +3079,16 @@ class Eo {
3054
3079
  return this.createNotifyInstance(t);
3055
3080
  }
3056
3081
  buildNotifyProps(t, n) {
3057
- let a = "", o = "", s, i, u;
3058
- typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", i = n.position || null, u = n.showCloseButton != null ? n.showCloseButton : null, s = n.timeout != null ? n.timeout : null);
3059
- const f = {
3082
+ let a = "", o = "", u, r, s;
3083
+ typeof n == "string" ? a = n : n && (a = n.message || "", o = n.title || "", r = n.position || null, s = n.showCloseButton != null ? n.showCloseButton : null, u = n.timeout != null ? n.timeout : null);
3084
+ const g = {
3060
3085
  options: {
3061
3086
  type: t,
3062
3087
  message: a,
3063
3088
  title: o
3064
3089
  }
3065
3090
  };
3066
- return i != null && (f.position = i), u != null && (f.showCloseButton = u), s != null && (f.timeout = s), f;
3091
+ return r != null && (g.position = r), s != null && (g.showCloseButton = s), u != null && (g.timeout = u), g;
3067
3092
  }
3068
3093
  info(t) {
3069
3094
  const n = this.buildNotifyProps("info", t);
@@ -3090,34 +3115,34 @@ class Eo {
3090
3115
  }), this.notifyRefs.length = 0;
3091
3116
  }
3092
3117
  }
3093
- const Ht = Symbol("NOTIFY_SERVICE_TOKEN");
3118
+ const jt = Symbol("NOTIFY_SERVICE_TOKEN");
3094
3119
  et.install = (e) => {
3095
- e.component(et.name, et), e.component(ut.name, ut);
3096
- const t = new Eo();
3097
- e.provide(Ht, t), e.provide("FNotifyService", t);
3120
+ e.component(et.name, et), e.component(it.name, it);
3121
+ const t = new Do();
3122
+ e.provide(jt, t), e.provide("FNotifyService", t);
3098
3123
  };
3099
- function it(e) {
3124
+ function rt(e) {
3100
3125
  return e.reduce((t, n) => {
3101
3126
  var a;
3102
- return t.push(n.data), (a = n.children) != null && a.length && t.push(...it(n.children)), t;
3127
+ return t.push(n.data), (a = n.children) != null && a.length && t.push(...rt(n.children)), t;
3103
3128
  }, []);
3104
3129
  }
3105
3130
  const st = /* @__PURE__ */ Se({
3106
3131
  name: "FMappingEditor",
3107
- props: Dt,
3132
+ props: Ht,
3108
3133
  emits: ["submitModal", "update:modelValue"],
3109
3134
  setup(e, t) {
3110
- const n = '<i class="f-icon f-icon-lookup"></i>', a = r(), o = r(e.modelValue || {}), s = r([]), i = r(e.fromData.dataSource || []), u = r([]), v = e.fromData.repositoryToken ? Ze(e.fromData.repositoryToken) : null, f = e.toData.repositoryToken ? Ze(e.toData.repositoryToken) : null, p = Ze(Ht), w = (M) => ((M.raw.$type !== "SimpleField" || M.raw.selectable === !1) && (M.disabled = !0), M), T = y(() => it(i.value)), h = y(() => it(u.value)), g = (M, d, x, R) => {
3111
- var q, oe;
3112
- const D = ((q = M.value.find((re) => re[R] === d)) == null ? void 0 : q[x || "name"]) || "", A = ((oe = M.value.find((re) => re[R] === d)) == null ? void 0 : oe[R || "code"]) || "";
3113
- return D && A ? `${D}[${A}]` : "";
3114
- }, F = [{
3135
+ const n = '<i class="f-icon f-icon-lookup"></i>', a = i(), o = i(e.modelValue || {}), u = i([]), r = i(e.fromData.dataSource || []), s = i([]), f = e.fromData.repositoryToken ? Ze(e.fromData.repositoryToken) : null, g = e.toData.repositoryToken ? Ze(e.toData.repositoryToken) : null, m = Ze(jt), C = (M) => ((M.raw.$type !== "SimpleField" || M.raw.selectable === !1) && (M.disabled = !0), M), S = p(() => rt(r.value)), b = p(() => rt(s.value)), v = (M, d, B, j) => {
3136
+ var J, ae;
3137
+ const I = ((J = M.value.find((pe) => pe[j] === d)) == null ? void 0 : J[B || "name"]) || "", A = ((ae = M.value.find((pe) => pe[j] === d)) == null ? void 0 : ae[j || "code"]) || "";
3138
+ return I && A ? `${I}[${A}]` : "";
3139
+ }, k = [{
3115
3140
  field: "sourceField",
3116
3141
  title: "数据源字段",
3117
3142
  dataType: "string",
3118
3143
  editor: {
3119
3144
  type: "combo-tree",
3120
- data: i.value,
3145
+ data: r.value,
3121
3146
  idField: e.fromData.idField || "id",
3122
3147
  textField: e.fromData.textField || "name",
3123
3148
  valueField: e.fromData.valueField || "id",
@@ -3125,17 +3150,17 @@ const st = /* @__PURE__ */ Se({
3125
3150
  editorParams: e.fromData.editorParams,
3126
3151
  editable: e.fromData.editable || !1,
3127
3152
  searchFields: e.fromData.searchFields || [],
3128
- customRowStatus: w,
3153
+ customRowStatus: C,
3129
3154
  displayFormatter: e.fromData.displayFormatter
3130
3155
  },
3131
- formatter: (M, d) => g(T, d.raw.sourceField, e.fromData.textField, e.fromData.valueField)
3156
+ formatter: (M, d) => v(S, d.raw.sourceField, e.fromData.textField, e.fromData.valueField)
3132
3157
  }, {
3133
3158
  field: "targetField",
3134
3159
  title: "目标字段",
3135
3160
  dataType: "string",
3136
3161
  editor: {
3137
3162
  type: "combo-tree",
3138
- data: u.value,
3163
+ data: s.value,
3139
3164
  idField: e.toData.idField || "id",
3140
3165
  textField: e.toData.textField || "name",
3141
3166
  valueField: e.toData.valueField || "id",
@@ -3145,70 +3170,70 @@ const st = /* @__PURE__ */ Se({
3145
3170
  enableSearch: !0,
3146
3171
  editable: !1,
3147
3172
  searchFields: e.toData.searchFields || [],
3148
- customRowStatus: w,
3173
+ customRowStatus: C,
3149
3174
  displayFormatter: e.toData.displayFormatter
3150
3175
  },
3151
- formatter: (M, d) => d.raw.targetField ? (d.raw.targetField.indexOf(",") > -1 ? d.raw.targetField.split(",") : [d.raw.targetField]).map((R) => g(h, R, e.toData.textField, e.toData.valueField)).join(",") : ""
3176
+ formatter: (M, d) => d.raw.targetField ? (d.raw.targetField.indexOf(",") > -1 ? d.raw.targetField.split(",") : [d.raw.targetField]).map((j) => v(b, j, e.toData.textField, e.toData.valueField)).join(",") : ""
3152
3177
  }];
3153
- function E() {
3178
+ function P() {
3154
3179
  return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
3155
3180
  }
3156
- function P() {
3181
+ function E() {
3157
3182
  let M = o.value || {};
3158
3183
  return typeof M == "string" && (M = JSON.parse(M)), Object.keys(M).map((d) => ({
3159
- id: E(),
3184
+ id: P(),
3160
3185
  sourceField: d,
3161
3186
  targetField: M[d]
3162
3187
  }));
3163
3188
  }
3164
- const C = r(P()), N = y(() => {
3189
+ const y = i(E()), L = p(() => {
3165
3190
  var M;
3166
- return `共 ${((M = C.value) == null ? void 0 : M.length) || 0} 项`;
3191
+ return `共 ${((M = y.value) == null ? void 0 : M.length) || 0} 项`;
3167
3192
  });
3168
- function U() {
3193
+ function _() {
3169
3194
  a.value.endEditCell(), a.value.addNewDataItemAtLast();
3170
3195
  }
3171
- function B() {
3196
+ function H() {
3172
3197
  return {
3173
3198
  sourceField: "",
3174
3199
  targetField: "",
3175
- id: E()
3200
+ id: P()
3176
3201
  };
3177
3202
  }
3178
- function L() {
3179
- if (!s.value.length) {
3180
- p.warning("请选择要删除的映射字段!");
3203
+ function F() {
3204
+ if (!u.value.length) {
3205
+ m.warning("请选择要删除的映射字段!");
3181
3206
  return;
3182
3207
  }
3183
3208
  a.value.endEditCell();
3184
- const M = C.value.findIndex((A) => A.id === s.value[0].id);
3209
+ const M = y.value.findIndex((A) => A.id === u.value[0].id);
3185
3210
  if (M === -1)
3186
3211
  return;
3187
- const d = s.value[0].id;
3188
- if (a.value.removeDataItemById(d), s.value = [], !C.value.length)
3212
+ const d = u.value[0].id;
3213
+ if (a.value.removeDataItemById(d), u.value = [], !y.value.length)
3189
3214
  return;
3190
- const x = Math.min(M, C.value.length - 1), R = C.value[x], D = R == null ? void 0 : R.id;
3191
- D && (a.value.selectItemById(D), s.value = [R]);
3215
+ const B = Math.min(M, y.value.length - 1), j = y.value[B], I = j == null ? void 0 : j.id;
3216
+ I && (a.value.selectItemById(I), u.value = [j]);
3192
3217
  }
3193
- function b() {
3218
+ function w() {
3194
3219
  qe.question("确定要清空所有映射字段吗?", "", () => {
3195
- s.value = [], o.value = {}, C.value = [], a.value.updateDataSource(C.value);
3220
+ u.value = [], o.value = {}, y.value = [], a.value.updateDataSource(y.value);
3196
3221
  }, () => {
3197
3222
  });
3198
3223
  }
3199
- function k() {
3224
+ function D() {
3200
3225
  const M = {};
3201
- return C.value.forEach((d) => {
3226
+ return y.value.forEach((d) => {
3202
3227
  d.sourceField && d.targetField && (M[d.sourceField] = d.targetField);
3203
3228
  }), M;
3204
3229
  }
3205
- Z(() => e.modelValue, (M) => {
3206
- o.value = M, C.value = P();
3230
+ X(() => e.modelValue, (M) => {
3231
+ o.value = M, y.value = E();
3207
3232
  });
3208
- function W() {
3209
- return C.value.filter((d) => !d.sourceField || !d.targetField).length;
3233
+ function V() {
3234
+ return y.value.filter((d) => !d.sourceField || !d.targetField).length;
3210
3235
  }
3211
- const K = {
3236
+ const Y = {
3212
3237
  title: e.title,
3213
3238
  fitContent: !1,
3214
3239
  height: e.modalHeight,
@@ -3226,62 +3251,62 @@ const st = /* @__PURE__ */ Se({
3226
3251
  text: "确定",
3227
3252
  class: "btn btn-primary",
3228
3253
  handle: (M) => {
3229
- if (a.value.endEditCell(), W())
3230
- return p.warning("请将映射字段填写完整!"), !1;
3231
- const d = k();
3254
+ if (a.value.endEditCell(), V())
3255
+ return m.warning("请将映射字段填写完整!"), !1;
3256
+ const d = D();
3232
3257
  return o.value = d, t.emit("submitModal", d), t.emit("update:modelValue", d), e.onMappingFieldsChanged && typeof e.onMappingFieldsChanged == "function" && e.onMappingFieldsChanged(JSON.stringify(d)), !0;
3233
3258
  }
3234
3259
  }],
3235
3260
  resizeable: !0,
3236
3261
  draggable: !0,
3237
3262
  closedCallback: (M, d) => {
3238
- (M.target.name === "cancel" || d === "icon" || d === "esc") && (o.value = e.modelValue, C.value = P(), s.value = []);
3263
+ (M.target.name === "cancel" || d === "icon" || d === "esc") && (o.value = e.modelValue, y.value = E(), u.value = []);
3239
3264
  }
3240
3265
  };
3241
- function O(M) {
3242
- s.value = M;
3266
+ function T(M) {
3267
+ u.value = M;
3243
3268
  }
3244
3269
  function G() {
3245
- var D, A;
3270
+ var I, A;
3246
3271
  if (e.beforeOpen && typeof e.beforeOpen == "function")
3247
3272
  return e.beforeOpen({
3248
- fromDataSource: i,
3249
- toDataSource: u,
3250
- gridColumns: F
3273
+ fromDataSource: r,
3274
+ toDataSource: s,
3275
+ gridColumns: k
3251
3276
  });
3252
- if (!((A = (D = e.editorParams) == null ? void 0 : D.propertyData) == null ? void 0 : A.helpId))
3253
- return p == null || p.warning({
3277
+ if (!((A = (I = e.editorParams) == null ? void 0 : I.propertyData) == null ? void 0 : A.helpId))
3278
+ return m == null || m.warning({
3254
3279
  message: "请先配置数据源!",
3255
3280
  position: "top-center"
3256
3281
  }), !1;
3257
- const d = [], x = v ? v.getData(e.editorParams) : Promise.resolve(i.value);
3258
- d.push(x), typeof e.toData.dataSource == "function" ? u.value = e.toData.dataSource() : u.value = e.toData.dataSource;
3259
- const R = f ? f.getData(e.editorParams) : Promise.resolve(u.value);
3260
- return d.push(R), Promise.all(d).then(([q, oe]) => (i.value = q, u.value = oe, F[0].editor.data = q, F[1].editor.data = oe, !0));
3282
+ const d = [], B = f ? f.getData(e.editorParams) : Promise.resolve(r.value);
3283
+ d.push(B), typeof e.toData.dataSource == "function" ? s.value = e.toData.dataSource() : s.value = e.toData.dataSource;
3284
+ const j = g ? g.getData(e.editorParams) : Promise.resolve(s.value);
3285
+ return d.push(j), Promise.all(d).then(([J, ae]) => (r.value = J, s.value = ae, k[0].editor.data = J, k[1].editor.data = ae, !0));
3261
3286
  }
3262
3287
  function se(M, d) {
3263
- M.forEach((x) => {
3264
- x.selectable = !d.includes(x.data.bindingPath), x.children && se(x.children, d);
3288
+ M.forEach((B) => {
3289
+ B.selectable = !d.includes(B.data.bindingPath), B.children && se(B.children, d);
3265
3290
  });
3266
3291
  }
3267
- function X(M) {
3292
+ function te(M) {
3268
3293
  const {
3269
3294
  column: d,
3270
- rawData: x
3295
+ rawData: B
3271
3296
  } = M, {
3272
- field: R,
3273
- editor: D
3297
+ field: j,
3298
+ editor: I
3274
3299
  } = d;
3275
- if (R === "sourceField" && D) {
3276
- const A = C.value.filter((q) => q.sourceField !== x.sourceField).map((q) => q.sourceField);
3277
- se(i.value, A), D.data = Ln(i.value);
3300
+ if (j === "sourceField" && I) {
3301
+ const A = y.value.filter((J) => J.sourceField !== B.sourceField).map((J) => J.sourceField);
3302
+ se(r.value, A), I.data = Gn(r.value);
3278
3303
  }
3279
3304
  return !0;
3280
3305
  }
3281
- const ue = y(() => s.value.length > 0), z = y(() => C.value.length > 0);
3282
- return () => l(Pt, {
3283
- modelValue: N.value,
3284
- "onUpdate:modelValue": (M) => N.value = M,
3306
+ const oe = p(() => u.value.length > 0), W = p(() => y.value.length > 0);
3307
+ return () => l(Rt, {
3308
+ modelValue: L.value,
3309
+ "onUpdate:modelValue": (M) => L.value = M,
3285
3310
  editable: !1,
3286
3311
  disabled: e.disabled,
3287
3312
  readonly: e.readonly,
@@ -3289,7 +3314,7 @@ const st = /* @__PURE__ */ Se({
3289
3314
  enableClear: !1,
3290
3315
  buttonContent: n,
3291
3316
  buttonBehavior: "Modal",
3292
- modalOptions: K,
3317
+ modalOptions: Y,
3293
3318
  beforeOpen: G
3294
3319
  }, {
3295
3320
  default: () => [l("div", {
@@ -3298,18 +3323,18 @@ const st = /* @__PURE__ */ Se({
3298
3323
  class: "px-2"
3299
3324
  }, [l("button", {
3300
3325
  class: "btn btn-primary",
3301
- onClick: U
3326
+ onClick: _
3302
3327
  }, [Be("新增")]), l("button", {
3303
3328
  class: "btn btn-secondary ml-2",
3304
- disabled: !ue.value,
3305
- onClick: L
3329
+ disabled: !oe.value,
3330
+ onClick: F
3306
3331
  }, [Be("删除")]), l("button", {
3307
3332
  class: "btn btn-secondary ml-3",
3308
- disabled: !z.value,
3309
- onClick: b
3333
+ disabled: !W.value,
3334
+ onClick: w
3310
3335
  }, [Be("清空")])]), l("div", {
3311
3336
  class: " f-utils-fill p-2"
3312
- }, [l(Rt, {
3337
+ }, [l(Dt, {
3313
3338
  ref: a,
3314
3339
  pagination: {
3315
3340
  enable: !1
@@ -3327,25 +3352,25 @@ const st = /* @__PURE__ */ Se({
3327
3352
  showBorder: !0,
3328
3353
  editable: "true",
3329
3354
  fit: !0,
3330
- columns: F,
3331
- data: C.value,
3332
- newDataItem: B,
3333
- onSelectionChange: O,
3334
- beforeEditCell: X
3355
+ columns: k,
3356
+ data: y.value,
3357
+ newDataItem: H,
3358
+ onSelectionChange: T,
3359
+ beforeEditCell: te
3335
3360
  }, null)])])]
3336
3361
  });
3337
3362
  }
3338
- }), Ko = {
3363
+ }), qo = {
3339
3364
  install(e) {
3340
3365
  e.component(st.name, st);
3341
3366
  },
3342
3367
  register(e, t, n, a) {
3343
- e["mapping-editor"] = st, t["mapping-editor"] = Oo;
3368
+ e["mapping-editor"] = st, t["mapping-editor"] = Eo;
3344
3369
  }
3345
3370
  };
3346
3371
  export {
3347
3372
  st as MappingEditor,
3348
- Ko as default,
3349
- Dt as mappingEditorProps,
3350
- Oo as propsResolver
3373
+ qo as default,
3374
+ Ht as mappingEditorProps,
3375
+ Eo as propsResolver
3351
3376
  };