@farris/ui-vue 1.7.0-beta.4 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/components/accordion/index.esm.js +61 -312
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +56 -1481
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +8 -752
  6. package/components/binding-selector/index.umd.cjs +1 -1
  7. package/components/button-edit/index.esm.js +358 -351
  8. package/components/button-edit/index.umd.cjs +1 -1
  9. package/components/button-group/index.esm.js +110 -266
  10. package/components/button-group/index.umd.cjs +1 -1
  11. package/components/calendar/index.esm.js +1371 -1284
  12. package/components/calendar/index.umd.cjs +30 -30
  13. package/components/code-editor/index.esm.js +169 -237
  14. package/components/code-editor/index.umd.cjs +3 -3
  15. package/components/collection-property-editor/index.esm.js +382 -351
  16. package/components/collection-property-editor/index.umd.cjs +2 -2
  17. package/components/color-picker/index.esm.js +502 -812
  18. package/components/color-picker/index.umd.cjs +1 -1
  19. package/components/combo-list/index.esm.js +197 -183
  20. package/components/combo-list/index.umd.cjs +1 -1
  21. package/components/combo-tree/index.esm.js +199 -364
  22. package/components/combo-tree/index.umd.cjs +1 -1
  23. package/components/comment/index.esm.js +1501 -1465
  24. package/components/comment/index.umd.cjs +6 -6
  25. package/components/common/index.esm.js +136 -100
  26. package/components/common/index.umd.cjs +1 -1
  27. package/components/component/index.css +1 -1
  28. package/components/component/index.esm.js +2662 -3647
  29. package/components/component/index.umd.cjs +1 -8
  30. package/components/condition/index.esm.js +492 -2449
  31. package/components/condition/index.umd.cjs +1 -8
  32. package/components/content-container/index.esm.js +252 -241
  33. package/components/content-container/index.umd.cjs +1 -1
  34. package/components/data-grid/index.esm.js +505 -409
  35. package/components/data-grid/index.umd.cjs +1 -1
  36. package/components/data-view/index.esm.js +3326 -3258
  37. package/components/data-view/index.umd.cjs +1 -1
  38. package/components/date-picker/index.esm.js +1709 -1634
  39. package/components/date-picker/index.umd.cjs +1 -1
  40. package/components/designer-canvas/index.css +1 -1
  41. package/components/designer-canvas/index.esm.js +2693 -3021
  42. package/components/designer-canvas/index.umd.cjs +1 -1
  43. package/components/designer-outline/index.esm.js +102 -98
  44. package/components/designer-outline/index.umd.cjs +1 -1
  45. package/components/drawer/index.esm.js +409 -358
  46. package/components/drawer/index.umd.cjs +2 -2
  47. package/components/dropdown/index.esm.js +124 -373
  48. package/components/dropdown/index.umd.cjs +2 -2
  49. package/components/dynamic-form/index.esm.js +760 -573
  50. package/components/dynamic-form/index.umd.cjs +1 -1
  51. package/components/dynamic-resolver/index.esm.js +354 -327
  52. package/components/dynamic-resolver/index.umd.cjs +2 -2
  53. package/components/dynamic-view/index.esm.js +413 -359
  54. package/components/dynamic-view/index.umd.cjs +1 -1
  55. package/components/event-parameter/index.esm.js +1 -1
  56. package/components/event-parameter/index.umd.cjs +1 -1
  57. package/components/events-editor/index.css +1 -1
  58. package/components/events-editor/index.esm.js +1535 -1941
  59. package/components/events-editor/index.umd.cjs +3 -3
  60. package/components/expression-editor/index.css +1 -1
  61. package/components/expression-editor/index.esm.js +2 -7317
  62. package/components/expression-editor/index.umd.cjs +1 -427
  63. package/components/field-selector/index.esm.js +13 -13
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/fieldset/index.esm.js +140 -123
  66. package/components/fieldset/index.umd.cjs +1 -1
  67. package/components/filter-bar/index.esm.js +1021 -1012
  68. package/components/filter-bar/index.umd.cjs +2 -2
  69. package/components/filter-condition-editor/index.css +1 -1
  70. package/components/filter-condition-editor/index.esm.js +448 -9000
  71. package/components/filter-condition-editor/index.umd.cjs +1 -427
  72. package/components/html-template/index.esm.js +167 -147
  73. package/components/html-template/index.umd.cjs +1 -1
  74. package/components/image/index.esm.js +372 -352
  75. package/components/image/index.umd.cjs +2 -2
  76. package/components/image-cropper/index.esm.js +361 -615
  77. package/components/image-cropper/index.umd.cjs +1 -1
  78. package/components/json-editor/index.esm.js +247 -325
  79. package/components/json-editor/index.umd.cjs +1 -1
  80. package/components/language-textbox/index.esm.js +835 -421
  81. package/components/language-textbox/index.umd.cjs +2 -2
  82. package/components/layout/index.esm.js +163 -549
  83. package/components/layout/index.umd.cjs +1 -1
  84. package/components/list-nav/index.esm.js +39 -836
  85. package/components/list-nav/index.umd.cjs +1 -1
  86. package/components/list-view/index.esm.js +690 -474
  87. package/components/list-view/index.umd.cjs +6 -8
  88. package/components/loading/index.esm.js +128 -97
  89. package/components/loading/index.umd.cjs +2 -2
  90. package/components/locale/index.esm.js +361 -340
  91. package/components/locale/index.umd.cjs +5 -5
  92. package/components/lookup/index.css +1 -1
  93. package/components/lookup/index.esm.js +3396 -3368
  94. package/components/lookup/index.umd.cjs +1 -1
  95. package/components/mapping-editor/index.css +1 -1
  96. package/components/mapping-editor/index.esm.js +1684 -1584
  97. package/components/mapping-editor/index.umd.cjs +1 -1
  98. package/components/menu-lookup/index.esm.js +586 -609
  99. package/components/menu-lookup/index.umd.cjs +6 -6
  100. package/components/message-box/index.css +1 -1
  101. package/components/message-box/index.esm.js +357 -353
  102. package/components/message-box/index.umd.cjs +1 -1
  103. package/components/modal/index.esm.js +325 -318
  104. package/components/modal/index.umd.cjs +1 -1
  105. package/components/nav/index.esm.js +31 -311
  106. package/components/nav/index.umd.cjs +1 -1
  107. package/components/number-range/index.esm.js +189 -1633
  108. package/components/number-range/index.umd.cjs +1 -1
  109. package/components/number-spinner/index.esm.js +195 -175
  110. package/components/number-spinner/index.umd.cjs +1 -1
  111. package/components/order/index.esm.js +761 -1057
  112. package/components/order/index.umd.cjs +7 -9
  113. package/components/page-footer/index.esm.js +48 -331
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +92 -73
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +195 -472
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/popover/index.esm.js +77 -76
  120. package/components/popover/index.umd.cjs +1 -1
  121. package/components/progress/index.esm.js +148 -353
  122. package/components/progress/index.umd.cjs +3 -3
  123. package/components/property-editor/index.esm.js +74 -68
  124. package/components/property-editor/index.umd.cjs +1 -1
  125. package/components/property-panel/index.esm.js +872 -1800
  126. package/components/property-panel/index.umd.cjs +5 -12
  127. package/components/query-solution/index.css +1 -1
  128. package/components/query-solution/index.esm.js +4223 -6205
  129. package/components/query-solution/index.umd.cjs +6 -13
  130. package/components/response-layout/index.esm.js +206 -170
  131. package/components/response-layout/index.umd.cjs +1 -1
  132. package/components/response-layout-editor/index.esm.js +1 -1
  133. package/components/response-layout-editor/index.umd.cjs +1 -1
  134. package/components/response-toolbar/index.esm.js +378 -359
  135. package/components/response-toolbar/index.umd.cjs +1 -1
  136. package/components/schema-selector/index.esm.js +2491 -2653
  137. package/components/schema-selector/index.umd.cjs +8 -10
  138. package/components/search-box/index.esm.js +79 -240
  139. package/components/search-box/index.umd.cjs +1 -1
  140. package/components/section/index.esm.js +304 -289
  141. package/components/section/index.umd.cjs +2 -2
  142. package/components/smoke-detector/index.esm.js +8 -179
  143. package/components/smoke-detector/index.umd.cjs +1 -1
  144. package/components/sort-condition-editor/index.esm.js +4 -9421
  145. package/components/sort-condition-editor/index.umd.cjs +1 -427
  146. package/components/splitter/index.esm.js +142 -1171
  147. package/components/splitter/index.umd.cjs +1 -1
  148. package/components/step/index.esm.js +48 -47
  149. package/components/step/index.umd.cjs +1 -1
  150. package/components/tabs/index.esm.js +460 -513
  151. package/components/tabs/index.umd.cjs +1 -1
  152. package/components/text/index.esm.js +73 -217
  153. package/components/text/index.umd.cjs +1 -1
  154. package/components/time-picker/index.esm.js +380 -375
  155. package/components/time-picker/index.umd.cjs +1 -1
  156. package/components/tooltip/index.esm.js +40 -40
  157. package/components/tooltip/index.umd.cjs +1 -1
  158. package/components/transfer/index.esm.js +551 -771
  159. package/components/transfer/index.umd.cjs +6 -8
  160. package/components/tree-grid/index.esm.js +250 -235
  161. package/components/tree-grid/index.umd.cjs +1 -1
  162. package/components/tree-view/index.esm.js +157 -314
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +634 -1125
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +106 -359
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +89 -222
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +199 -290
  171. package/components/weather/index.umd.cjs +1 -1
  172. package/designer/accordion/index.esm.js +257 -0
  173. package/designer/accordion/index.umd.cjs +1 -0
  174. package/designer/avatar/index.esm.js +227 -0
  175. package/designer/avatar/index.umd.cjs +1 -0
  176. package/designer/binding-selector/index.esm.js +792 -0
  177. package/designer/binding-selector/index.umd.cjs +1 -0
  178. package/designer/button-edit/index.esm.js +210 -203
  179. package/designer/button-edit/index.umd.cjs +1 -1
  180. package/designer/button-group/index.esm.js +282 -0
  181. package/designer/button-group/index.umd.cjs +1 -0
  182. package/designer/checkbox/index.esm.js +51 -45
  183. package/designer/checkbox/index.umd.cjs +1 -1
  184. package/designer/checkbox-group/index.esm.js +89 -83
  185. package/designer/checkbox-group/index.umd.cjs +1 -1
  186. package/designer/code-editor/index.esm.js +75 -0
  187. package/designer/code-editor/index.umd.cjs +1 -0
  188. package/designer/color-picker/index.esm.js +1096 -0
  189. package/designer/color-picker/index.umd.cjs +1 -0
  190. package/designer/combo-list/index.esm.js +1095 -0
  191. package/designer/combo-list/index.umd.cjs +1 -0
  192. package/designer/combo-tree/index.esm.js +186 -0
  193. package/designer/combo-tree/index.umd.cjs +1 -0
  194. package/designer/component/index.css +1 -0
  195. package/designer/component/index.esm.js +5002 -0
  196. package/designer/component/index.umd.cjs +1 -0
  197. package/designer/condition/index.esm.js +1899 -0
  198. package/designer/condition/index.umd.cjs +1 -0
  199. package/designer/data-grid/index.esm.js +5580 -6213
  200. package/designer/data-grid/index.umd.cjs +10 -17
  201. package/designer/data-view/index.esm.js +212 -191
  202. package/designer/data-view/index.umd.cjs +2 -2
  203. package/designer/date-picker/index.esm.js +621 -607
  204. package/designer/date-picker/index.umd.cjs +1 -1
  205. package/designer/drawer/index.css +1 -1
  206. package/designer/drawer/index.esm.js +869 -620
  207. package/designer/drawer/index.umd.cjs +2 -2
  208. package/designer/dropdown/index.esm.js +261 -0
  209. package/designer/dropdown/index.umd.cjs +1 -0
  210. package/designer/dynamic-form/index.esm.js +1166 -1384
  211. package/designer/dynamic-form/index.umd.cjs +1 -8
  212. package/designer/expression-editor/index.css +1 -0
  213. package/designer/expression-editor/index.esm.js +7006 -0
  214. package/designer/expression-editor/index.umd.cjs +427 -0
  215. package/designer/farris-designer.all.esm.js +10309 -10617
  216. package/designer/farris-designer.all.umd.cjs +17 -19
  217. package/designer/filter-condition-editor/index.css +1 -0
  218. package/designer/filter-condition-editor/index.esm.js +4795 -0
  219. package/designer/filter-condition-editor/index.umd.cjs +1 -0
  220. package/designer/html-template/index.esm.js +718 -0
  221. package/designer/html-template/index.umd.cjs +1 -0
  222. package/designer/image-cropper/index.esm.js +765 -0
  223. package/designer/image-cropper/index.umd.cjs +1 -0
  224. package/designer/index.css +1 -1
  225. package/designer/input-group/index.esm.js +72 -66
  226. package/designer/input-group/index.umd.cjs +1 -1
  227. package/designer/json-editor/index.esm.js +83 -0
  228. package/designer/json-editor/index.umd.cjs +1 -0
  229. package/designer/language-textbox/index.esm.js +783 -0
  230. package/designer/language-textbox/index.umd.cjs +8 -0
  231. package/designer/layout/index.esm.js +430 -0
  232. package/designer/layout/index.umd.cjs +1 -0
  233. package/designer/list-nav/index.esm.js +802 -0
  234. package/designer/list-nav/index.umd.cjs +1 -0
  235. package/designer/list-view/index.esm.js +864 -844
  236. package/designer/list-view/index.umd.cjs +7 -9
  237. package/designer/lookup/index.esm.js +2083 -0
  238. package/designer/lookup/index.umd.cjs +1 -0
  239. package/designer/menu-lookup/index.esm.js +46 -0
  240. package/designer/menu-lookup/index.umd.cjs +1 -0
  241. package/designer/modal/index.esm.js +137 -29
  242. package/designer/modal/index.umd.cjs +1 -1
  243. package/designer/nav/index.esm.js +284 -0
  244. package/designer/nav/index.umd.cjs +1 -0
  245. package/designer/number-range/index.esm.js +1616 -0
  246. package/designer/number-range/index.umd.cjs +1 -0
  247. package/designer/number-spinner/index.esm.js +19 -17
  248. package/designer/number-spinner/index.umd.cjs +1 -1
  249. package/designer/order/index.css +1 -0
  250. package/designer/order/index.esm.js +2196 -0
  251. package/designer/order/index.umd.cjs +18 -0
  252. package/designer/page-footer/index.esm.js +290 -0
  253. package/designer/page-footer/index.umd.cjs +1 -0
  254. package/designer/page-header/index.esm.js +1003 -0
  255. package/designer/page-header/index.umd.cjs +1 -0
  256. package/designer/pagination/index.esm.js +591 -0
  257. package/designer/pagination/index.umd.cjs +1 -0
  258. package/designer/progress/index.esm.js +213 -0
  259. package/designer/progress/index.umd.cjs +1 -0
  260. package/designer/radio-group/index.esm.js +978 -949
  261. package/designer/radio-group/index.umd.cjs +1 -1
  262. package/designer/response-layout-editor/index.esm.js +1 -1
  263. package/designer/response-layout-editor/index.umd.cjs +1 -1
  264. package/designer/response-toolbar/index.esm.js +1471 -1416
  265. package/designer/response-toolbar/index.umd.cjs +1 -1
  266. package/designer/search-box/index.esm.js +245 -0
  267. package/designer/search-box/index.umd.cjs +1 -0
  268. package/designer/section/index.esm.js +83 -78
  269. package/designer/section/index.umd.cjs +1 -1
  270. package/designer/smoke-detector/index.css +1 -0
  271. package/designer/smoke-detector/index.esm.js +178 -0
  272. package/designer/smoke-detector/index.umd.cjs +1 -0
  273. package/designer/sort-condition-editor/index.esm.js +138 -0
  274. package/designer/sort-condition-editor/index.umd.cjs +1 -0
  275. package/designer/splitter/index.esm.js +1120 -0
  276. package/designer/splitter/index.umd.cjs +1 -0
  277. package/designer/step/index.esm.js +226 -0
  278. package/designer/step/index.umd.cjs +1 -0
  279. package/designer/switch/index.esm.js +10 -10
  280. package/designer/switch/index.umd.cjs +1 -1
  281. package/designer/tabs/index.css +1 -1
  282. package/designer/tabs/index.esm.js +2447 -2698
  283. package/designer/tabs/index.umd.cjs +2 -2
  284. package/designer/text/index.esm.js +147 -0
  285. package/designer/text/index.umd.cjs +1 -0
  286. package/designer/time-picker/index.esm.js +101 -100
  287. package/designer/time-picker/index.umd.cjs +1 -1
  288. package/designer/transfer/index.esm.js +254 -0
  289. package/designer/transfer/index.umd.cjs +1 -0
  290. package/designer/tree-grid/index.esm.js +473 -810
  291. package/designer/tree-grid/index.umd.cjs +1 -1
  292. package/designer/tree-view/index.esm.js +313 -0
  293. package/designer/tree-view/index.umd.cjs +1 -0
  294. package/designer/uploader/index.esm.js +1190 -0
  295. package/designer/uploader/index.umd.cjs +2 -0
  296. package/designer/verify-detail/index.esm.js +258 -0
  297. package/designer/verify-detail/index.umd.cjs +1 -0
  298. package/designer/video/index.esm.js +136 -0
  299. package/designer/video/index.umd.cjs +1 -0
  300. package/designer/weather/index.css +1 -0
  301. package/designer/weather/index.esm.js +6244 -0
  302. package/designer/weather/index.umd.cjs +14 -0
  303. package/farris.all.esm.js +69941 -70514
  304. package/farris.all.umd.cjs +117 -117
  305. package/index.css +1 -1
  306. package/locales/filter-bar/ui/en.json +2 -1
  307. package/locales/filter-bar/ui/zh-CHS.json +2 -1
  308. package/locales/filter-bar/ui/zh-CHT.json +2 -1
  309. package/locales/query-solution/ui/en.json +1 -1
  310. package/locales/query-solution/ui/zh-CHS.json +1 -1
  311. package/locales/query-solution/ui/zh-CHT.json +1 -1
  312. package/locales/ui/en.json +3 -2
  313. package/locales/ui/zh-CHS.json +3 -2
  314. package/locales/ui/zh-CHT.json +3 -2
  315. package/package.json +1 -1
  316. package/types/accordion/designer.d.ts +44 -0
  317. package/types/accordion/src/accordion.props.d.ts +0 -1
  318. package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
  319. package/types/avatar/designer.d.ts +29 -0
  320. package/types/avatar/src/avatar.props.d.ts +0 -1
  321. package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
  322. package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
  323. package/types/binding-selector/index.d.ts +0 -54
  324. package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
  325. package/types/button-group/designer.d.ts +29 -0
  326. package/types/button-group/index.d.ts +15 -0
  327. package/types/button-group/src/button-group.props.d.ts +0 -1
  328. package/types/calendar/src/calendar.props.d.ts +1 -0
  329. package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
  330. package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
  331. package/types/calendar/src/composition/use-locales.d.ts +1 -0
  332. package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
  333. package/types/capsule/src/capsule-item.component.d.ts +6 -6
  334. package/types/checkbox/designer.d.ts +2 -0
  335. package/types/checkbox-group/designer.d.ts +2 -0
  336. package/types/code-editor/designer.d.ts +5 -0
  337. package/types/code-editor/index.d.ts +0 -1
  338. package/types/code-editor/src/code-textbox.component.d.ts +6 -6
  339. package/types/code-editor/src/code-textbox.props.d.ts +0 -2
  340. package/types/color-picker/designer.d.ts +29 -0
  341. package/types/color-picker/index.d.ts +0 -15
  342. package/types/color-picker/src/color-picker.props.d.ts +0 -1
  343. package/types/combo-list/designer.d.ts +29 -0
  344. package/types/combo-list/src/combo-list.props.d.ts +1 -0
  345. package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
  346. package/types/combo-tree/designer.d.ts +5 -0
  347. package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
  348. package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
  349. package/types/comment/src/comment.props.d.ts +4 -0
  350. package/types/comment/src/designer/comment.design.props.d.ts +4 -0
  351. package/types/common/index.d.ts +1 -0
  352. package/types/common/utils/use-mobile.d.ts +1 -0
  353. package/types/component/designer.d.ts +35 -0
  354. package/types/component/index.d.ts +0 -2
  355. package/types/component/src/component.props.d.ts +0 -8
  356. package/types/component/src/composition/field-tree-builder.d.ts +1 -0
  357. package/types/components.d.ts +2 -6
  358. package/types/condition/designer.d.ts +56 -0
  359. package/types/condition/index.d.ts +0 -55
  360. package/types/content-container/index.d.ts +3 -2
  361. package/types/content-container/src/content-container.props.d.ts +1 -0
  362. package/types/data-grid/designer.d.ts +2 -0
  363. package/types/data-grid/index.d.ts +5 -2
  364. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  365. package/types/data-grid/src/designer/grid-field-editor.props.d.ts +1 -0
  366. package/types/data-view/composition/types.d.ts +7 -1
  367. package/types/data-view/composition/use-mobile.d.ts +3 -0
  368. package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
  369. package/types/data-view/index.d.ts +1 -0
  370. package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
  371. package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
  372. package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
  373. package/types/designer-outline/src/types.d.ts +5 -1
  374. package/types/drawer/designer.d.ts +12 -0
  375. package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
  376. package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
  377. package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
  378. package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
  379. package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
  380. package/types/dropdown/designer.d.ts +6 -0
  381. package/types/dropdown/index.d.ts +27 -6
  382. package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
  383. package/types/dropdown/src/dropdown.props.d.ts +0 -1
  384. package/types/dynamic-form/designer.d.ts +3 -1
  385. package/types/dynamic-form/index.d.ts +4 -3
  386. package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
  387. package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
  388. package/types/dynamic-resolver/index.d.ts +3 -0
  389. package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
  390. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
  391. package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
  392. package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
  393. package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
  394. package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
  395. package/types/dynamic-view/src/components/maps.d.ts +883 -1
  396. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  397. package/types/dynamic-view/src/types.d.ts +4 -0
  398. package/types/expression-editor/designer.d.ts +9 -0
  399. package/types/field-selector/index.d.ts +2 -1
  400. package/types/fieldset/index.d.ts +3 -2
  401. package/types/fieldset/src/fieldset.props.d.ts +1 -0
  402. package/types/filter-bar/src/composition/types.d.ts +1 -1
  403. package/types/filter-bar/src/composition/use-size.d.ts +2 -2
  404. package/types/filter-bar/src/locale/locale.d.ts +1 -0
  405. package/types/filter-condition-editor/designer.d.ts +10 -0
  406. package/types/filter-condition-editor/index.d.ts +0 -9
  407. package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
  408. package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
  409. package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +0 -1
  410. package/types/html-template/designer.d.ts +31 -0
  411. package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
  412. package/types/html-template/src/html-template.props.d.ts +2 -0
  413. package/types/image-cropper/designer.d.ts +4 -0
  414. package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
  415. package/types/index.d.ts +0 -1
  416. package/types/input-group/designer.d.ts +2 -0
  417. package/types/json-editor/designer.d.ts +5 -0
  418. package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
  419. package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
  420. package/types/json-editor/src/json-editor.props.d.ts +0 -1
  421. package/types/language-textbox/index.d.ts +6 -6
  422. package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
  423. package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
  424. package/types/layout/index.d.ts +1 -0
  425. package/types/layout/src/components/layout-pane.props.d.ts +0 -1
  426. package/types/layout/src/layout.props.d.ts +0 -1
  427. package/types/list-nav/index.d.ts +24 -5
  428. package/types/list-nav/src/list-nav.props.d.ts +0 -1
  429. package/types/list-view/index.d.ts +1 -0
  430. package/types/list-view/src/composition/use-draggable.d.ts +1 -1
  431. package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
  432. package/types/list-view/src/list-view-table.props.d.ts +1 -0
  433. package/types/loading/index.d.ts +6 -6
  434. package/types/loading/src/loading.component.d.ts +3 -3
  435. package/types/lookup/index.d.ts +1 -1
  436. package/types/lookup/src/components/popup-container.component.d.ts +6 -6
  437. package/types/lookup/src/lookup.props.d.ts +1 -0
  438. package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
  439. package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
  440. package/types/menu-lookup/designer.d.ts +5 -0
  441. package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
  442. package/types/message-box/index.d.ts +6 -6
  443. package/types/message-box/src/message-box.component.d.ts +3 -3
  444. package/types/modal/designer.d.ts +2 -0
  445. package/types/modal/index.d.ts +30 -24
  446. package/types/modal/src/modal.component.d.ts +15 -12
  447. package/types/modal/src/modal.props.d.ts +4 -0
  448. package/types/nav/designer.d.ts +6 -0
  449. package/types/nav/index.d.ts +24 -20
  450. package/types/nav/src/nav.props.d.ts +0 -1
  451. package/types/notify/index.d.ts +3 -3
  452. package/types/notify/src/notify.component.d.ts +2 -2
  453. package/types/number-range/designer.d.ts +29 -0
  454. package/types/number-range/src/number-range.props.d.ts +0 -1
  455. package/types/number-spinner/src/composition/types.d.ts +1 -0
  456. package/types/order/designer.d.ts +6 -0
  457. package/types/order/index.d.ts +36 -5
  458. package/types/order/src/designer/order.design.component.d.ts +1 -1
  459. package/types/order/src/order.props.d.ts +0 -1
  460. package/types/page-footer/designer.d.ts +6 -0
  461. package/types/page-footer/index.d.ts +0 -2
  462. package/types/page-footer/src/page-footer.props.d.ts +0 -1
  463. package/types/page-header/index.d.ts +3 -2
  464. package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
  465. package/types/page-header/src/page-header.props.d.ts +2 -0
  466. package/types/pagination/designer.d.ts +29 -0
  467. package/types/pagination/index.d.ts +15 -0
  468. package/types/pagination/src/pagination.props.d.ts +0 -1
  469. package/types/popover/index.d.ts +3 -3
  470. package/types/popover/src/composition/use-resize.d.ts +1 -1
  471. package/types/popover/src/popover.component.d.ts +2 -2
  472. package/types/progress/designer.d.ts +29 -0
  473. package/types/progress/src/progress.props.d.ts +0 -1
  474. package/types/property-panel/src/property-panel.component.d.ts +3 -3
  475. package/types/query-solution/index.d.ts +4 -4
  476. package/types/query-solution/src/composition/types.d.ts +8 -2
  477. package/types/query-solution/src/composition/use-header.d.ts +2 -2
  478. package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
  479. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
  480. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
  481. package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
  482. package/types/query-solution/src/query-solution.props.d.ts +1 -0
  483. package/types/radio-group/designer.d.ts +4 -1
  484. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
  485. package/types/response-layout/index.d.ts +3 -2
  486. package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
  487. package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
  488. package/types/response-layout/src/response-layout.props.d.ts +1 -0
  489. package/types/response-toolbar/designer.d.ts +2 -1
  490. package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
  491. package/types/search-box/designer.d.ts +52 -0
  492. package/types/search-box/index.d.ts +1 -17
  493. package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
  494. package/types/search-box/src/search-box.props.d.ts +0 -1
  495. package/types/section/designer.d.ts +1 -0
  496. package/types/smoke-detector/designer.d.ts +6 -0
  497. package/types/smoke-detector/index.d.ts +0 -2
  498. package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
  499. package/types/sort-condition-editor/designer.d.ts +9 -0
  500. package/types/sort-condition-editor/index.d.ts +2 -7
  501. package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
  502. package/types/splitter/designer.d.ts +32 -0
  503. package/types/splitter/index.d.ts +1 -0
  504. package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
  505. package/types/splitter/src/splitter.props.d.ts +0 -1
  506. package/types/step/designer.d.ts +6 -0
  507. package/types/tabs/designer.d.ts +1 -0
  508. package/types/tabs/index.d.ts +0 -1
  509. package/types/tabs/src/composition/types.d.ts +1 -0
  510. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
  511. package/types/tags/index.d.ts +3 -3
  512. package/types/tags/src/tags.component.d.ts +1 -1
  513. package/types/text/designer.d.ts +6 -0
  514. package/types/text/index.d.ts +24 -20
  515. package/types/text/src/text.props.d.ts +0 -1
  516. package/types/time-picker/src/components/time.component.d.ts +3 -3
  517. package/types/transfer/designer.d.ts +35 -0
  518. package/types/transfer/src/transfer.props.d.ts +0 -1
  519. package/types/tree-view/designer.d.ts +29 -0
  520. package/types/tree-view/src/tree-view.props.d.ts +0 -1
  521. package/types/uploader/designer.d.ts +141 -0
  522. package/types/uploader/index.d.ts +6 -6
  523. package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
  524. package/types/uploader/src/uploader.component.d.ts +3 -3
  525. package/types/uploader/src/uploader.props.d.ts +0 -1
  526. package/types/verify-detail/designer.d.ts +6 -0
  527. package/types/verify-detail/index.d.ts +58 -5
  528. package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
  529. package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
  530. package/types/video/designer.d.ts +6 -0
  531. package/types/video/index.d.ts +24 -20
  532. package/types/video/src/video.props.d.ts +0 -1
  533. package/components/sort-condition-editor/index.css +0 -1
  534. package/package.zip +0 -0
  535. package/types/designer-toolbox/index.d.ts +0 -3
  536. package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
  537. package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
  538. package/types/designer-toolbox/src/types.d.ts +0 -21
  539. package/types/designer.d.ts +0 -13
  540. package/types/flow-canvas/index.d.ts +0 -3
  541. package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
  542. package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
  543. package/types/flow-canvas/src/composition/types.d.ts +0 -42
  544. package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
  545. package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
  546. package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
  547. package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
  548. package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
  549. package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
  550. package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
  551. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
  552. package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
  553. package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
  554. package/types/layout/src/designer/layout.design.component.d.ts +0 -8
  555. package/types/layout/src/schema/schema-mapper.d.ts +0 -2
  556. package/types/layout/src/schema/schema-resolver.d.ts +0 -2
  557. package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
  558. package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
  559. package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
  560. package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
  561. /package/{components → designer}/condition/index.css +0 -0
  562. /package/{components → designer}/uploader/index.css +0 -0
  563. /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
@@ -1,20 +1,20 @@
1
- var at = Object.defineProperty;
2
- var st = (n, t, e) => t in n ? at(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var P = (n, t, e) => st(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { radioCheckboxCommonProps as rt, FormSchemaEntityField$Type as Ee, FormSchemaEntityFieldType$Type as Fe, getMaxZIndex as ut, useGuid as Ce, withInstall as dt } from "../../components/common/index.esm.js";
5
- import { resolveAppearance as ct, createPropsResolver as Be } from "../../components/dynamic-resolver/index.esm.js";
6
- import ft, { radioGroupProps as mt } from "../../components/radio-group/index.esm.js";
7
- import { computed as k, nextTick as oe, defineComponent as Y, ref as p, inject as de, onMounted as J, createVNode as h, Teleport as ke, createApp as we, onUnmounted as me, Fragment as ae, watch as j, onBeforeMount as pt, Transition as Se, shallowRef as ht, render as ge, h as vt, cloneVNode as gt, mergeProps as xe, withDirectives as ye, vShow as yt, onUpdated as bt, onBeforeUnmount as Ct, createTextVNode as Q, reactive as wt, vModelText as Ie } from "vue";
8
- import { DgControl as C, canvasChanged as se, refreshCanvas as xt, useDesignerComponent as Mt } from "../../components/designer-canvas/index.esm.js";
9
- import { cloneDeep as Te, debounce as Et } from "lodash-es";
10
- import { LocaleService as te } from "../../components/locale/index.esm.js";
1
+ var vt = Object.defineProperty;
2
+ var gt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var T = (n, t, e) => gt(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { radioCheckboxCommonProps as yt, FormSchemaEntityField$Type as Be, FormSchemaEntityFieldType$Type as Te, isMobilePhone as bt, getMaxZIndex as Se, useGuid as Ce, withInstall as Ct } from "../../components/common/index.esm.js";
5
+ import { resolveAppearance as wt, createPropsResolver as Pe, getPropsResolverGenerator as Ve } from "../../components/dynamic-resolver/index.esm.js";
6
+ import xt, { radioGroupProps as Oe } from "../../components/radio-group/index.esm.js";
7
+ import { computed as S, nextTick as oe, defineComponent as J, ref as h, inject as ce, onMounted as Z, createVNode as v, Teleport as Re, createApp as we, onUnmounted as pe, Fragment as ae, watch as D, onBeforeMount as Mt, watchEffect as It, Transition as Ne, shallowRef as Et, render as ge, h as Ft, cloneVNode as Bt, mergeProps as xe, withDirectives as ye, vShow as St, onUpdated as kt, onBeforeUnmount as Tt, createTextVNode as ee, reactive as Pt, vModelText as ke } from "vue";
8
+ import { DgControl as b, canvasChanged as re, refreshCanvas as Vt, useDesignerComponent as Ot } from "../../components/designer-canvas/index.esm.js";
9
+ import { cloneDeep as Le, debounce as Rt } from "lodash-es";
10
+ import { LocaleService as ne } from "../../components/locale/index.esm.js";
11
11
  import "../../components/property-panel/index.esm.js";
12
- import It from "../../components/tags/index.esm.js";
13
- import Ft from "../../components/popover/index.esm.js";
14
- import Bt from "../../components/data-grid/index.esm.js";
15
- import { FNotifyService as kt } from "../../components/notify/index.esm.js";
16
- const St = {
17
- ...rt,
12
+ import Nt from "../../components/tags/index.esm.js";
13
+ import Lt from "../../components/popover/index.esm.js";
14
+ import zt from "../../components/data-grid/index.esm.js";
15
+ import { FNotifyService as Ht } from "../../components/notify/index.esm.js";
16
+ const At = {
17
+ ...yt,
18
18
  /**
19
19
  * 组件标识
20
20
  */
@@ -60,8 +60,8 @@ const St = {
60
60
  */
61
61
  valueField: { type: String, default: "value" }
62
62
  };
63
- function Tt(n, t, e) {
64
- const o = k(() => !n.disabled), i = k(() => n.data || n.enumData || n.options || []);
63
+ function $t(n, t, e) {
64
+ const o = S(() => !n.disabled), i = S(() => n.data || n.enumData || n.options || []);
65
65
  function l(r) {
66
66
  return r[n.valueField];
67
67
  }
@@ -82,7 +82,7 @@ function Tt(n, t, e) {
82
82
  onClickRadio: s
83
83
  };
84
84
  }
85
- function Pt(n) {
85
+ function Ut(n) {
86
86
  const { formSchemaUtils: t, formStateMachineUtils: e } = n;
87
87
  function o(r, d = "") {
88
88
  return {
@@ -92,7 +92,8 @@ function Pt(n) {
92
92
  };
93
93
  }
94
94
  function i(r, d = "") {
95
- return t.getViewModelById(r).states.map((u) => o(u, d));
95
+ const c = t.getViewModelById(r);
96
+ return c ? c.states.map((u) => o(u, d)) : [];
96
97
  }
97
98
  function l(r) {
98
99
  const d = t.getRootViewModelId(), c = i(r);
@@ -109,9 +110,9 @@ function Pt(n) {
109
110
  }
110
111
  return { getVariables: l, getControlName: a, getStateMachines: s };
111
112
  }
112
- class Pe {
113
+ class ze {
113
114
  constructor(t) {
114
- P(this, "sessionVariables", [
115
+ T(this, "sessionVariables", [
115
116
  {
116
117
  key: "CurrentSysOrgName",
117
118
  name: "当前组织Name",
@@ -148,7 +149,7 @@ class Pe {
148
149
  description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
149
150
  }
150
151
  ]);
151
- P(this, "expressionNames", {
152
+ T(this, "expressionNames", {
152
153
  compute: "计算表达式",
153
154
  dependency: "依赖表达式",
154
155
  validate: "验证表达式",
@@ -157,7 +158,7 @@ class Pe {
157
158
  readonly: "只读表达式",
158
159
  required: "必填表达式"
159
160
  });
160
- P(this, "getExpressionConverter", (t, e) => ({
161
+ T(this, "getExpressionConverter", (t, e) => ({
161
162
  convertFrom: (o, i, l, a) => {
162
163
  const s = l.getExpressionRuleValue(t, e || i);
163
164
  return s && s.value || "";
@@ -337,8 +338,8 @@ class Pe {
337
338
  onSubmitModal: (c) => {
338
339
  const u = this.updateExpression(t, e, c, a);
339
340
  if (i) {
340
- const v = this.buildRule(s, c, a);
341
- i(v);
341
+ const g = this.buildRule(s, c, a);
342
+ i(g);
342
343
  }
343
344
  return u;
344
345
  }
@@ -376,21 +377,21 @@ class Pe {
376
377
  };
377
378
  }
378
379
  }
379
- class Vt {
380
+ class Wt {
380
381
  constructor(t, e) {
381
- P(this, "componentId");
382
- P(this, "viewModelId");
383
- P(this, "eventsEditorUtils");
384
- P(this, "formSchemaUtils");
385
- P(this, "formMetadataConverter");
386
- P(this, "designViewModelUtils");
387
- P(this, "designViewModelField");
388
- P(this, "controlCreatorUtils");
389
- P(this, "designerHostService");
390
- P(this, "designerContext");
391
- P(this, "schemaService", null);
392
- P(this, "metadataService", null);
393
- P(this, "propertyConfig", {
382
+ T(this, "componentId");
383
+ T(this, "viewModelId");
384
+ T(this, "eventsEditorUtils");
385
+ T(this, "formSchemaUtils");
386
+ T(this, "formMetadataConverter");
387
+ T(this, "designViewModelUtils");
388
+ T(this, "designViewModelField");
389
+ T(this, "controlCreatorUtils");
390
+ T(this, "designerHostService");
391
+ T(this, "designerContext");
392
+ T(this, "schemaService", null);
393
+ T(this, "metadataService", null);
394
+ T(this, "propertyConfig", {
394
395
  type: "object",
395
396
  categories: {}
396
397
  });
@@ -437,7 +438,7 @@ class Vt {
437
438
  valueField: "value",
438
439
  idField: "value",
439
440
  editable: !1,
440
- data: [{ value: t.type, name: C[t.type] && C[t.type].name }]
441
+ data: [{ value: t.type, name: b[t.type] && b[t.type].name }]
441
442
  }
442
443
  }
443
444
  }
@@ -473,7 +474,7 @@ class Vt {
473
474
  switch (a && a.propertyID) {
474
475
  case "class":
475
476
  case "style": {
476
- se.value++;
477
+ re.value++;
477
478
  break;
478
479
  }
479
480
  }
@@ -493,26 +494,26 @@ class Vt {
493
494
  * @returns
494
495
  */
495
496
  getPropertyEditorParams(t, e = [], o = "visible", i = {}, l = {}, a = "") {
496
- const { getVariables: s, getControlName: r, getStateMachines: d } = Pt(this.designerHostService), c = this.getRealTargetType(t), u = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], v = {
497
+ const { getVariables: s, getControlName: r, getStateMachines: d } = Ut(this.designerHostService), c = this.getRealTargetType(t), u = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], g = {
497
498
  type: "property-editor",
498
499
  propertyTypes: u
499
500
  };
500
501
  return u.map((m) => {
501
502
  switch (m) {
502
503
  case "Const":
503
- Object.assign(v, {
504
+ Object.assign(g, {
504
505
  constType: "enum",
505
506
  constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
506
507
  }, i);
507
508
  break;
508
509
  case "Expression":
509
- v.expressionConfig = this.getExpressionOptions(t, c, a || o);
510
+ g.expressionConfig = this.getExpressionOptions(t, c, a || o);
510
511
  break;
511
512
  case "StateMachine":
512
- v.stateMachines = d();
513
+ g.stateMachines = d();
513
514
  break;
514
515
  case "Variable":
515
- Object.assign(v, {
516
+ Object.assign(g, {
516
517
  controlName: r(t),
517
518
  newVariablePrefix: "is",
518
519
  newVariableType: "Boolean",
@@ -521,10 +522,10 @@ class Vt {
521
522
  onBeforeOpenVariables: (f) => {
522
523
  f.value = s(this.viewModelId);
523
524
  }
524
- }, l), this.designerContext.designerMode === "PC_RTC" && (v.newVariablePrefix = "ext_" + v.newVariablePrefix);
525
+ }, l), this.designerContext.designerMode === "PC_RTC" && (g.newVariablePrefix = "ext_" + g.newVariablePrefix);
525
526
  break;
526
527
  }
527
- }), v;
528
+ }), g;
528
529
  }
529
530
  getVisibleProperty(t, e = "") {
530
531
  var l;
@@ -587,8 +588,8 @@ class Vt {
587
588
  const o = e && e.parent && e.parent.schema;
588
589
  if (!o)
589
590
  return;
590
- const i = o.contents.findIndex((a) => a.id === t), l = Te(o.contents[i]);
591
- o.contents.splice(i, 1), o.contents.splice(i, 0, l), xt();
591
+ const i = o.contents.findIndex((a) => a.id === t), l = Le(o.contents[i]);
592
+ o.contents.splice(i, 1), o.contents.splice(i, 0, l), Vt();
592
593
  }
593
594
  /**
594
595
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -618,14 +619,14 @@ class Vt {
618
619
  const e = t.propertyValue;
619
620
  if (!((e && e.type) === "Expression" && e.expressionInfo))
620
621
  return;
621
- const { expressionId: l, expressionInfo: a } = e, { targetId: s, targetType: r, expressionType: d, value: c, message: u } = a, v = this.formSchemaUtils.getModule();
622
- v.expressions = v.expressions || [];
623
- const { expressions: m } = v;
622
+ const { expressionId: l, expressionInfo: a } = e, { targetId: s, targetType: r, expressionType: d, value: c, message: u } = a, g = this.formSchemaUtils.getModule();
623
+ g.expressions = g.expressions || [];
624
+ const { expressions: m } = g;
624
625
  let f = m.find((E) => E.target === s);
625
626
  f || (f = { target: s, rules: [], targetType: r }, m.push(f));
626
- const b = f.rules.find((E) => E.type === d);
627
- if (b)
628
- b.value = c, b.message = u;
627
+ const C = f.rules.find((E) => E.type === d);
628
+ if (C)
629
+ C.value = c, C.message = u;
629
630
  else {
630
631
  const E = { id: l, type: d, value: c, message: u };
631
632
  f.rules.push(E);
@@ -646,10 +647,10 @@ class Vt {
646
647
  !r || !r.rules || (r.rules = r.rules.filter((d) => d.type !== l));
647
648
  }
648
649
  getExpressionOptions(t, e, o) {
649
- return new Pe(this.formSchemaUtils).getExpressionOptions(t, e, o);
650
+ return new ze(this.formSchemaUtils).getExpressionOptions(t, e, o);
650
651
  }
651
652
  getRealTargetType(t) {
652
- return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
653
+ return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(t.type) > -1 ? "Button" : t.binding && t.binding.field ? "Field" : "Container";
653
654
  }
654
655
  createBaseEventProperty(t) {
655
656
  const e = {};
@@ -671,10 +672,10 @@ const ie = class ie {
671
672
  */
672
673
  static getEditorTypesByMDataType(t, e = !1, o = "") {
673
674
  if (e)
674
- return [{ key: C["language-textbox"].type, value: C["language-textbox"].name }];
675
+ return [{ key: b["language-textbox"].type, value: b["language-textbox"].name }];
675
676
  let i = ie.fieldControlTypeMapping[t];
676
677
  if (o === "data-grid-column" && (i != null && i.length)) {
677
- const l = [C["check-group"].type, C["radio-group"].type, C.image.type];
678
+ const l = [b["check-group"].type, b["radio-group"].type, b.image.type, b["rich-text-editor"].type];
678
679
  i = i.filter((a) => !l.includes(a.key));
679
680
  }
680
681
  return i;
@@ -697,139 +698,139 @@ const ie = class ie {
697
698
  static mappingDomPropAndSchemaProp(t, e) {
698
699
  var l;
699
700
  const o = (l = t.editor) == null ? void 0 : l.type, i = [];
700
- return (t.type === C["data-grid-column"].type || t.type === C["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === C["input-group"].type || o === C.textarea.type || o === C["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === C["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === C["data-grid-column"].type || t.type === C["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === C["combo-list"].type || o === C["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === C["data-grid-column"].type || t.type === C["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === C["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === C["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === C.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === C["data-grid-column"].type || t.type === C["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
701
+ return (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && e && e.categoryId && e.categoryId.indexOf("gridFieldEditor") < 0 && i.push({ domField: "title", schemaField: "name" }), i.push({ domField: "label", schemaField: "name" }), i.push({ domField: "editor.required", schemaField: "require" }), i.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === b["input-group"].type || o === b.textarea.type || o === b["number-spinner"].type) && i.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === b["number-spinner"].type && i.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && i.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === b["combo-list"].type || o === b["radio-group"].type) && i.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && i.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === b["date-picker"].type && (i.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), i.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === b["number-spinner"].type && (i.push({ domField: "editor.max", schemaField: "editor.maxValue" }), i.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === b.lookup.type && (i.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), i.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), i.push({ domField: "editor.textField", schemaField: "editor.textField" }), i.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), i.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), i.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), i.push({ domField: "path", schemaField: "bindingPath" }), i.push({ domField: "binding.path", schemaField: "bindingField" }), i.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === b["data-grid-column"].type || t.type === b["tree-grid-column"].type) && i.push({ domField: "field", schemaField: "bindingPath" }), i;
701
702
  }
702
703
  };
703
704
  /**
704
705
  * <字段类型,可配置的控件类型列表>的映射
705
706
  */
706
- P(ie, "fieldControlTypeMapping", {
707
+ T(ie, "fieldControlTypeMapping", {
707
708
  String: [
708
- { key: C["input-group"].type, value: C["input-group"].name },
709
- { key: C.lookup.type, value: C.lookup.name },
710
- { key: C.image.type, value: C.image.name },
711
- { key: C["date-picker"].type, value: C["date-picker"].name },
712
- { key: C.switch.type, value: C.switch.name },
713
- { key: C["check-box"].type, value: C["check-box"].name },
714
- { key: C["check-group"].type, value: C["check-group"].name },
715
- { key: C["radio-group"].type, value: C["radio-group"].name },
716
- { key: C["combo-list"].type, value: C["combo-list"].name },
717
- { key: C.textarea.type, value: C.textarea.name },
718
- { key: C["time-picker"].type, value: C["time-picker"].name }
709
+ { key: b["input-group"].type, value: b["input-group"].name },
710
+ { key: b.lookup.type, value: b.lookup.name },
711
+ { key: b.image.type, value: b.image.name },
712
+ { key: b["date-picker"].type, value: b["date-picker"].name },
713
+ { key: b.switch.type, value: b.switch.name },
714
+ { key: b["check-box"].type, value: b["check-box"].name },
715
+ { key: b["check-group"].type, value: b["check-group"].name },
716
+ { key: b["radio-group"].type, value: b["radio-group"].name },
717
+ { key: b["combo-list"].type, value: b["combo-list"].name },
718
+ { key: b.textarea.type, value: b.textarea.name },
719
+ { key: b["time-picker"].type, value: b["time-picker"].name }
719
720
  ],
720
721
  Text: [
721
- { key: C.textarea.type, value: C.textarea.name },
722
- { key: C.lookup.type, value: C.lookup.name },
723
- { key: C.image.type, value: C.image.name },
724
- { key: C["rich-text-editor"].type, value: C["rich-text-editor"].name }
722
+ { key: b.textarea.type, value: b.textarea.name },
723
+ { key: b.lookup.type, value: b.lookup.name },
724
+ { key: b.image.type, value: b.image.name },
725
+ { key: b["rich-text-editor"].type, value: b["rich-text-editor"].name }
725
726
  ],
726
727
  Decimal: [
727
- { key: C["number-spinner"].type, value: C["number-spinner"].name }
728
+ { key: b["number-spinner"].type, value: b["number-spinner"].name }
728
729
  ],
729
730
  Integer: [
730
- { key: C["number-spinner"].type, value: C["number-spinner"].name }
731
+ { key: b["number-spinner"].type, value: b["number-spinner"].name }
731
732
  ],
732
733
  Number: [
733
- { key: C["number-spinner"].type, value: C["number-spinner"].name },
734
- { key: C.switch.type, value: C.switch.name },
735
- { key: C["check-box"].type, value: C["check-box"].name }
734
+ { key: b["number-spinner"].type, value: b["number-spinner"].name },
735
+ { key: b.switch.type, value: b.switch.name },
736
+ { key: b["check-box"].type, value: b["check-box"].name }
736
737
  ],
737
738
  BigNumber: [
738
- { key: C["number-spinner"].type, value: C["number-spinner"].name }
739
+ { key: b["number-spinner"].type, value: b["number-spinner"].name }
739
740
  ],
740
741
  Date: [
741
- { key: C["date-picker"].type, value: C["date-picker"].name }
742
+ { key: b["date-picker"].type, value: b["date-picker"].name }
742
743
  ],
743
744
  DateTime: [
744
- { key: C["date-picker"].type, value: C["date-picker"].name }
745
+ { key: b["date-picker"].type, value: b["date-picker"].name }
745
746
  ],
746
747
  Boolean: [
747
- { key: C.switch.type, value: C.switch.name },
748
- { key: C["check-box"].type, value: C["check-box"].name }
748
+ { key: b.switch.type, value: b.switch.name },
749
+ { key: b["check-box"].type, value: b["check-box"].name }
749
750
  ],
750
751
  Enum: [
751
- { key: C["combo-list"].type, value: C["combo-list"].name },
752
- { key: C["radio-group"].type, value: C["radio-group"].name }
752
+ { key: b["combo-list"].type, value: b["combo-list"].name },
753
+ { key: b["radio-group"].type, value: b["radio-group"].name }
753
754
  ],
754
755
  Object: [
755
- { key: C.lookup.type, value: C.lookup.name },
756
- { key: C["combo-list"].type, value: C["combo-list"].name },
757
- { key: C["radio-group"].type, value: C["radio-group"].name }
756
+ { key: b.lookup.type, value: b.lookup.name },
757
+ { key: b["combo-list"].type, value: b["combo-list"].name },
758
+ { key: b["radio-group"].type, value: b["radio-group"].name }
758
759
  ]
759
760
  });
760
- let ce = ie;
761
- var re = /* @__PURE__ */ ((n) => (n.Form = "Form", n.Variable = "Variable", n))(re || {});
762
- class Ot {
761
+ let fe = ie;
762
+ var ue = /* @__PURE__ */ ((n) => (n.Form = "Form", n.Variable = "Variable", n))(ue || {});
763
+ class jt {
763
764
  constructor() {
764
765
  /** 控件标题 */
765
- P(this, "label", "");
766
+ T(this, "label", "");
766
767
  /** 控件id */
767
- P(this, "id", "");
768
+ T(this, "id", "");
768
769
  /** 每个控件占用的栅格数 */
769
- P(this, "columnInSM", 12);
770
- P(this, "columnInMD", 6);
771
- P(this, "columnInLG", 3);
772
- P(this, "columnInEL", 2);
770
+ T(this, "columnInSM", 12);
771
+ T(this, "columnInMD", 6);
772
+ T(this, "columnInLG", 3);
773
+ T(this, "columnInEL", 2);
773
774
  /** 每个控件占用的列数 */
774
- P(this, "displayWidthInSM", 1);
775
- P(this, "displayWidthInMD", 1);
776
- P(this, "displayWidthInLG", 1);
777
- P(this, "displayWidthInEL", 1);
775
+ T(this, "displayWidthInSM", 1);
776
+ T(this, "displayWidthInMD", 1);
777
+ T(this, "displayWidthInLG", 1);
778
+ T(this, "displayWidthInEL", 1);
778
779
  /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
779
- P(this, "displayColumnCountAtBreakPoint", "md");
780
+ T(this, "displayColumnCountAtBreakPoint", "md");
780
781
  /** 控件所在行,传0即可-----编辑器内部使用 */
781
- P(this, "tagRow", 0);
782
+ T(this, "tagRow", 0);
782
783
  /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
783
- P(this, "showTopBorder", 0);
784
+ T(this, "showTopBorder", 0);
784
785
  /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
785
- P(this, "group", 1);
786
+ T(this, "group", 1);
786
787
  /** 控件是否符合标准的class配置(设计器用的) */
787
- P(this, "isSupportedClass", !0);
788
+ T(this, "isSupportedClass", !0);
788
789
  /** 控件所在分组id(设计器用的) */
789
- P(this, "fieldSetId", "");
790
+ T(this, "fieldSetId", "");
790
791
  }
791
792
  }
792
- function Rt(n) {
793
+ function qt(n) {
793
794
  let t, e;
794
795
  const o = /* @__PURE__ */ new Map();
795
796
  let i = [];
796
797
  function l(c, u) {
797
- const m = c.split(" ").filter((M) => M.startsWith("col-"));
798
+ const m = c.split(" ").filter((x) => x.startsWith("col-"));
798
799
  if (m.length === 0) {
799
800
  u.isSupportedClass = !1;
800
801
  return;
801
802
  }
802
- let f = m.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), b = m.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), E = m.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), B = m.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
803
- f = f || "col-12", u.columnInSM = parseInt(f.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), b = b || "col-md-" + u.columnInSM, u.columnInMD = parseInt(b.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), E = E || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(E.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), B = B || "col-el-" + u.columnInLG, u.columnInEL = parseInt(B.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
803
+ let f = m.find((x) => /^col-([1-9]|10|11|12)$/.test(x)), C = m.find((x) => /^col-md-([1-9]|10|11|12)$/.test(x)), E = m.find((x) => /^col-xl-([1-9]|10|11|12)$/.test(x)), B = m.find((x) => /^col-el-([1-9]|10|11|12)$/.test(x));
804
+ f = f || "col-12", u.columnInSM = parseInt(f.replace("col-", ""), 10), u.displayWidthInSM = u.columnInSM / 12, u.displayWidthInSM !== 1 && (u.isSupportedClass = !1), C = C || "col-md-" + u.columnInSM, u.columnInMD = parseInt(C.replace("col-md-", ""), 10), u.displayWidthInMD = u.columnInMD / 6, [1, 2].includes(u.displayWidthInMD) || (u.isSupportedClass = !1), E = E || "col-xl-" + u.columnInMD, u.columnInLG = parseInt(E.replace("col-xl-", ""), 10), u.displayWidthInLG = u.columnInLG / 3, [1, 2, 3, 4].includes(u.displayWidthInLG) || (u.isSupportedClass = !1), B = B || "col-el-" + u.columnInLG, u.columnInEL = parseInt(B.replace("col-el-", ""), 10), u.displayWidthInEL = u.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(u.displayWidthInEL) || (u.isSupportedClass = !1);
804
805
  }
805
- function a(c, u, v, m = !1) {
806
+ function a(c, u, g, m = !1) {
806
807
  let f = !1;
807
- c.contents.forEach((b) => {
808
- if (b.type === "fieldset") {
809
- v += 1, a(b, u, v, !0), f = !0;
808
+ c.contents.forEach((C) => {
809
+ if (C.type === "fieldset") {
810
+ g += 1, a(C, u, g, !0), f = !0;
810
811
  return;
811
812
  }
812
- f && (v += 1, f = !1);
813
- const E = b.appearance && b.appearance.class, B = new Ot();
814
- E ? l(E, B) : B.isSupportedClass = !1, B.label = b.label || b.id, B.id = b.id, B.group = v, m && (B.fieldSetId = c.id), e === b.id && (t = v), o.set(b.id, b), u.push(B);
813
+ f && (g += 1, f = !1);
814
+ const E = C.appearance && C.appearance.class, B = new jt();
815
+ E ? l(E, B) : B.isSupportedClass = !1, B.label = C.label || C.id, B.id = C.id, B.group = g, m && (B.fieldSetId = c.id), e === C.id && (t = g), o.set(C.id, C), u.push(B);
815
816
  });
816
817
  }
817
818
  function s(c) {
818
819
  const u = n.getComponentById(c);
819
820
  if (!u || !u.componentType || !u.componentType.startsWith("form"))
820
821
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
821
- const v = n.selectNode(u, (m) => m.type === C["response-form"].type);
822
- return !v || !v.contents || v.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: v };
822
+ const g = n.selectNode(u, (m) => m.type === b["response-form"].type);
823
+ return !g || !g.contents || g.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: g };
823
824
  }
824
825
  function r(c, u) {
825
826
  u = u || c.id;
826
- const { result: v, message: m, formNode: f } = s(u);
827
- if (!v)
828
- return { result: v, message: m };
827
+ const { result: g, message: m, formNode: f } = s(u);
828
+ if (!g)
829
+ return { result: g, message: m };
829
830
  e = c.id, i = [], o.clear();
830
- const b = f.contents[0].type === C.fieldset.type ? 0 : 1;
831
- a(f, i, b);
832
- const E = i.find((M) => !M.isSupportedClass);
831
+ const C = f.contents[0].type === b.fieldset.type ? 0 : 1;
832
+ a(f, i, C);
833
+ const E = i.find((x) => !x.isSupportedClass);
833
834
  return {
834
835
  defaultState: {
835
836
  defaultGroupNumber: t || 1,
@@ -840,20 +841,20 @@ function Rt(n) {
840
841
  }
841
842
  function d(c, u) {
842
843
  u = u;
843
- const { result: v, formNode: m } = s(u);
844
- if (!v)
844
+ const { result: g, formNode: m } = s(u);
845
+ if (!g)
845
846
  return "";
846
847
  const f = [];
847
- return c.forEach((b) => {
848
- var M;
849
- const E = o.get(b.id), B = E.appearance && E.appearance.class;
848
+ return c.forEach((C) => {
849
+ var x;
850
+ const E = o.get(C.id), B = E.appearance && E.appearance.class;
850
851
  if (B) {
851
- const A = B.split(" ").filter((U) => !U.startsWith("col-")), T = "col-" + b.columnInSM, F = "col-md-" + b.columnInMD, g = "col-xl-" + b.columnInLG, S = "col-el-" + b.columnInEL, N = [T, F, g, S].concat(A);
852
- E.appearance.class = N.join(" ");
852
+ const $ = B.split(" ").filter((z) => !z.startsWith("col-")), k = "col-" + C.columnInSM, H = "col-md-" + C.columnInMD, p = "col-xl-" + C.columnInLG, M = "col-el-" + C.columnInEL, R = [k, H, p, M].concat($);
853
+ E.appearance.class = R.join(" ");
853
854
  }
854
- if (b.fieldSetId) {
855
- const V = m.contents.find((T) => T.id === b.fieldSetId), A = f.find((T) => T.id === b.fieldSetId);
856
- A ? (M = A.contents) == null || M.push(E) : (f.push(V), V.contents = [E]);
855
+ if (C.fieldSetId) {
856
+ const P = m.contents.find((k) => k.id === C.fieldSetId), $ = f.find((k) => k.id === C.fieldSetId);
857
+ $ ? (x = $.contents) == null || x.push(E) : (f.push(P), P.contents = [E]);
857
858
  } else
858
859
  f.push(E);
859
860
  }), m.contents = f, m.id;
@@ -865,19 +866,19 @@ function Rt(n) {
865
866
  getResonseFormLayoutConfig: a
866
867
  };
867
868
  }
868
- class Nt extends Vt {
869
+ class Gt extends Wt {
869
870
  constructor(e, o) {
870
871
  super(e, o);
871
- P(this, "responseLayoutEditorFunction");
872
+ T(this, "responseLayoutEditorFunction");
872
873
  /** 控件绑定的变量 */
873
- P(this, "bindingVarible");
874
- P(this, "numberEditorOptions", {
874
+ T(this, "bindingVarible");
875
+ T(this, "numberEditorOptions", {
875
876
  type: "number-spinner",
876
877
  useThousands: !1,
877
878
  keyboard: !1,
878
879
  showButton: !1
879
880
  });
880
- this.responseLayoutEditorFunction = Rt(this.formSchemaUtils);
881
+ this.responseLayoutEditorFunction = qt(this.formSchemaUtils);
881
882
  }
882
883
  getCommonPropertyConfig(e, o, i = "Card") {
883
884
  this.propertyConfig.categories.basic = this.getBasicProperties(e, o, i), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, o), this.propertyConfig.categories.behavior = this.getBehaviorConfig(e, "form-group");
@@ -951,7 +952,7 @@ class Nt extends Vt {
951
952
  readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !e.isRtcControl
952
953
  }
953
954
  },
954
- setPropertyRelates(c, u, v) {
955
+ setPropertyRelates(c, u, g) {
955
956
  if (c)
956
957
  switch (c && c.propertyID) {
957
958
  case "type": {
@@ -963,7 +964,7 @@ class Nt extends Vt {
963
964
  break;
964
965
  }
965
966
  case "binding": {
966
- l.changeBindingField(e, c, v);
967
+ l.changeBindingField(e, c, g);
967
968
  break;
968
969
  }
969
970
  }
@@ -981,7 +982,7 @@ class Nt extends Vt {
981
982
  if (e.binding.type === "Variable") {
982
983
  if (this.bindingVarible = this.formSchemaUtils.getVariableById(e.binding.field), !this.bindingVarible)
983
984
  return !1;
984
- } else if (!this.designViewModelField || this.designViewModelField.$type !== Ee.SimpleField)
985
+ } else if (!this.designViewModelField || this.designViewModelField.$type !== Be.SimpleField)
985
986
  return !1;
986
987
  return !0;
987
988
  }
@@ -996,11 +997,11 @@ class Nt extends Vt {
996
997
  canChangeControlType: !1,
997
998
  editorTypeList: [{
998
999
  key: e.editor.type,
999
- value: ((l = C[e.editor.type]) == null ? void 0 : l.name) || e.editor.type
1000
+ value: ((l = b[e.editor.type]) == null ? void 0 : l.name) || e.editor.type
1000
1001
  }]
1001
1002
  };
1002
1003
  let i = [];
1003
- return this.designViewModelField && this.designViewModelField.$type === Ee.SimpleField ? i = ce.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = ce.getEditorTypesByMDataType(this.bindingVarible.type, this.designViewModelField.multiLanguage)), { canChangeControlType: o, editorTypeList: i };
1004
+ return this.designViewModelField && this.designViewModelField.$type === Be.SimpleField ? i = fe.getEditorTypesByMDataType(this.designViewModelField.type.name, this.designViewModelField.multiLanguage) : this.bindingVarible && (i = fe.getEditorTypesByMDataType(this.bindingVarible.type, this.designViewModelField.multiLanguage)), { canChangeControlType: o, editorTypeList: i };
1004
1005
  }
1005
1006
  changeBindingField(e, o, i) {
1006
1007
  o.needRefreshEntityTree = !0;
@@ -1051,10 +1052,10 @@ class Nt extends Vt {
1051
1052
  i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, i.componentId || e.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(e.id, o), delete e.responseLayout;
1052
1053
  break;
1053
1054
  case "class":
1054
- i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), se.value++;
1055
+ i.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), re.value++;
1055
1056
  break;
1056
1057
  case "style": {
1057
- se.value++;
1058
+ re.value++;
1058
1059
  break;
1059
1060
  }
1060
1061
  }
@@ -1079,8 +1080,8 @@ class Nt extends Vt {
1079
1080
  const r = a.contents[s];
1080
1081
  let d;
1081
1082
  if (this.designViewModelField) {
1082
- const v = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
1083
- v.editor || (v.editor = {}), v.editor.$type = l, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, v, !1), d = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l);
1083
+ const g = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((f) => f.id === this.designViewModelField.id).fieldSchema || {};
1084
+ g.editor || (g.editor = {}), g.editor.$type = l, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, g, !1), d = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l);
1084
1085
  }
1085
1086
  d || (d = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(d, {
1086
1087
  id: r.id,
@@ -1094,19 +1095,19 @@ class Nt extends Vt {
1094
1095
  (c) => c.classList.remove("dgComponentSelected")
1095
1096
  ), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
1096
1097
  (c) => c.classList.remove("dgComponentFocused")
1097
- ), se.value++, oe(() => {
1098
+ ), re.value++, oe(() => {
1098
1099
  this.getFormDesignerInstance().reloadPropertyPanel();
1099
1100
  });
1100
1101
  }
1101
1102
  getComponentConfig(e, o = {}, i = {}, l) {
1102
- var v, m;
1103
+ var g, m;
1103
1104
  const a = Object.assign({
1104
1105
  description: "编辑器",
1105
1106
  title: "编辑器",
1106
1107
  type: "input-group",
1107
1108
  $converter: "/converter/property-editor.converter",
1108
1109
  parentPropertyID: "editor"
1109
- }, o), s = (v = e.binding) != null && v.field ? [] : ["Const", "Variable", "StateMachine"], r = this.getPropertyEditorParams(e, s, "readonly"), d = this.getPropertyEditorParams(e, s, "required"), c = {
1110
+ }, o), s = (g = e.binding) != null && g.field ? [] : ["Const", "Variable", "StateMachine"], r = this.getPropertyEditorParams(e, s, "readonly"), d = this.getPropertyEditorParams(e, s, "required"), c = {
1110
1111
  readonly: {
1111
1112
  description: "",
1112
1113
  title: "只读",
@@ -1131,7 +1132,7 @@ class Nt extends Vt {
1131
1132
  return {
1132
1133
  ...a,
1133
1134
  properties: { ...c },
1134
- setPropertyRelates(f, b) {
1135
+ setPropertyRelates(f, C) {
1135
1136
  if (f) {
1136
1137
  switch (f.propertyID) {
1137
1138
  case "readonly":
@@ -1139,7 +1140,7 @@ class Nt extends Vt {
1139
1140
  u.afterMutilEditorChanged(e, f);
1140
1141
  break;
1141
1142
  }
1142
- l && l.bind(u)(f, e, b);
1143
+ l && l.bind(u)(f, e, C);
1143
1144
  }
1144
1145
  }
1145
1146
  };
@@ -1174,14 +1175,14 @@ class Nt extends Vt {
1174
1175
  return;
1175
1176
  const l = [];
1176
1177
  if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(i, l, 1), o) {
1177
- const f = l.find((b) => b.id === o.id);
1178
+ const f = l.find((C) => C.id === o.id);
1178
1179
  Object.assign(f || {}, o);
1179
1180
  }
1180
- const a = l.map((f) => f.columnInSM), s = l.map((f) => f.columnInMD), r = l.map((f) => f.columnInLG), d = l.map((f) => f.columnInEL), c = this.checkIsUniqueColumn(a) ? a[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, v = this.checkIsUniqueColumn(r) ? r[0] : null, m = this.checkIsUniqueColumn(d) ? d[0] : null;
1181
+ const a = l.map((f) => f.columnInSM), s = l.map((f) => f.columnInMD), r = l.map((f) => f.columnInLG), d = l.map((f) => f.columnInEL), c = this.checkIsUniqueColumn(a) ? a[0] : null, u = this.checkIsUniqueColumn(s) ? s[0] : null, g = this.checkIsUniqueColumn(r) ? r[0] : null, m = this.checkIsUniqueColumn(d) ? d[0] : null;
1181
1182
  Object.assign(i.unifiedLayout, {
1182
1183
  uniqueColClassInSM: c,
1183
1184
  uniqueColClassInMD: u,
1184
- uniqueColClassInLG: v,
1185
+ uniqueColClassInLG: g,
1185
1186
  uniqueColClassInEL: m
1186
1187
  });
1187
1188
  }
@@ -1223,22 +1224,22 @@ class Nt extends Vt {
1223
1224
  * @param propertyData 下拉框控件属性值
1224
1225
  */
1225
1226
  checkEnumDataReadonly(e) {
1226
- return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Fe.EnumType);
1227
+ return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === Te.EnumType);
1227
1228
  }
1228
1229
  /**
1229
1230
  * 将字段值变化前事件、变化后事件追加到交互面板
1230
1231
  * 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
1231
1232
  */
1232
1233
  appendFieldValueChangeEvents(e, o) {
1233
- e.binding && e.binding.type === re.Form && e.binding.field ? (o.find((i) => i.label === "fieldValueChanging"), o.find((i) => i.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : o = o.filter((i) => i.label !== "fieldValueChanging" && i.label !== "fieldValueChanged");
1234
+ e.binding && e.binding.type === ue.Form && e.binding.field ? (o.find((i) => i.label === "fieldValueChanging"), o.find((i) => i.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : o = o.filter((i) => i.label !== "fieldValueChanging" && i.label !== "fieldValueChanged");
1234
1235
  }
1235
1236
  getControlMethodType(e) {
1236
1237
  if (!e.binding)
1237
1238
  return e.type;
1238
1239
  switch (e.binding.type) {
1239
- case re.Form:
1240
+ case ue.Form:
1240
1241
  return e.binding.path || e.type;
1241
- case re.Variable:
1242
+ case ue.Variable:
1242
1243
  return e.binding.fullPath || e.type;
1243
1244
  }
1244
1245
  return e.type;
@@ -1270,16 +1271,16 @@ class Nt extends Vt {
1270
1271
  properties: a.createBaseEventProperty(r),
1271
1272
  tabId: "commands",
1272
1273
  tabName: "交互",
1273
- setPropertyRelates(u, v) {
1274
+ setPropertyRelates(u, g) {
1274
1275
  const m = u.propertyValue;
1275
- delete e[a.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, m.controlInfo = { type: a.getControlMethodType(e), name: e.title }, a.eventsEditorUtils.saveRelatedParameters(e, a.viewModelId, m.events, m)), l && l(u, v, m);
1276
+ delete e[a.viewModelId], m && (m.setPropertyRelates = this.setPropertyRelates, m.controlInfo = { type: a.getControlMethodType(e), name: e.title }, a.eventsEditorUtils.saveRelatedParameters(e, a.viewModelId, m.events, m)), l && l(u, g, m);
1276
1277
  const f = a.designViewModelUtils.getDgViewModel(a.viewModelId);
1277
1278
  f && a.designViewModelField && f.changeField(a.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
1278
1279
  }
1279
1280
  };
1280
1281
  }
1281
1282
  getExpressionConfig(e, o, i = ["compute", "dependency", "validate"], l) {
1282
- return new Pe(this.formSchemaUtils).getExpressionConfig(
1283
+ return new ze(this.formSchemaUtils).getExpressionConfig(
1283
1284
  e,
1284
1285
  o,
1285
1286
  i,
@@ -1311,7 +1312,7 @@ class Nt extends Vt {
1311
1312
  };
1312
1313
  }
1313
1314
  }
1314
- class Lt extends Nt {
1315
+ class Dt extends Gt {
1315
1316
  constructor(t, e) {
1316
1317
  super(t, e);
1317
1318
  }
@@ -1397,32 +1398,32 @@ class Lt extends Nt {
1397
1398
  var l;
1398
1399
  super.changeBindingField(t, e);
1399
1400
  const i = o;
1400
- t.editor && ((l = i == null ? void 0 : i.type) == null ? void 0 : l.$type) === Fe.EnumType && (t.editor.data = i.type.enumValues || []);
1401
+ t.editor && ((l = i == null ? void 0 : i.type) == null ? void 0 : l.$type) === Te.EnumType && (t.editor.data = i.type.enumValues || []);
1401
1402
  }
1402
1403
  }
1403
- function zt(n, t) {
1404
+ function Kt(n, t) {
1404
1405
  const e = n.schema;
1405
1406
  function o(i, l) {
1406
- return new Lt(i, t).getPropertyConfig(e, l);
1407
+ return new Dt(i, t).getPropertyConfig(e, l);
1407
1408
  }
1408
1409
  return { getPropsConfig: o };
1409
1410
  }
1410
- const fe = /* @__PURE__ */ Y({
1411
+ const me = /* @__PURE__ */ J({
1411
1412
  name: "FRadioGroupDesign",
1412
- props: St,
1413
+ props: At,
1413
1414
  emits: ["changeValue", "update:modelValue"],
1414
1415
  setup(n, t) {
1415
- const e = p(n.modelValue), {
1416
+ const e = h(n.modelValue), {
1416
1417
  enumData: o,
1417
1418
  getValue: i,
1418
1419
  getText: l
1419
- } = Tt(n, t, e), a = k(() => ({
1420
+ } = $t(n, t, e), a = S(() => ({
1420
1421
  "farris-checkradio-hor": n.direction === "horizontal"
1421
- })), s = p(), r = de("designer-host-service"), d = de("design-item-context"), c = zt(d, r), u = Mt(s, d, c);
1422
- J(() => {
1422
+ })), s = h(), r = ce("designer-host-service"), d = ce("design-item-context"), c = Kt(d, r), u = Ot(s, d, c);
1423
+ Z(() => {
1423
1424
  s.value.componentInstance = u;
1424
1425
  });
1425
- const v = k(() => {
1426
+ const g = S(() => {
1426
1427
  if (!o.value || o.value.length === 0) {
1427
1428
  const m = [];
1428
1429
  return [{
@@ -1432,33 +1433,33 @@ const fe = /* @__PURE__ */ Y({
1432
1433
  value: "example2",
1433
1434
  name: "示例二"
1434
1435
  }].map((f) => {
1435
- const b = {};
1436
- b[n.valueField] = f.value, b[n.textField] = f.name, m.push(b);
1436
+ const C = {};
1437
+ C[n.valueField] = f.value, C[n.textField] = f.name, m.push(C);
1437
1438
  }), m;
1438
1439
  }
1439
1440
  return o.value;
1440
1441
  });
1441
- return t.expose(u.value), () => h("div", {
1442
+ return t.expose(u.value), () => v("div", {
1442
1443
  class: ["farris-input-wrap", a.value],
1443
1444
  ref: s
1444
- }, [v.value.map((m, f) => {
1445
- const b = "radio_" + n.name + f;
1446
- return h("div", {
1445
+ }, [g.value.map((m, f) => {
1446
+ const C = "radio_" + n.name + f;
1447
+ return v("div", {
1447
1448
  class: "custom-control custom-radio"
1448
- }, [h("input", {
1449
+ }, [v("input", {
1449
1450
  type: "radio",
1450
1451
  class: "custom-control-input",
1451
1452
  name: n.name,
1452
- id: b,
1453
+ id: C,
1453
1454
  value: i(m),
1454
1455
  disabled: !0
1455
- }, null), h("label", {
1456
+ }, null), v("label", {
1456
1457
  class: "custom-control-label",
1457
- for: b
1458
+ for: C
1458
1459
  }, [l(m)])]);
1459
1460
  })]);
1460
1461
  }
1461
- }), Ht = {
1462
+ }), Xt = {
1462
1463
  /**
1463
1464
  * 组件标识
1464
1465
  */
@@ -1578,23 +1579,23 @@ const fe = /* @__PURE__ */ Y({
1578
1579
  */
1579
1580
  limitContentBySpace: { type: Boolean, default: !1 },
1580
1581
  beforeClosePopup: { type: Function, default: null }
1581
- }, At = {
1582
+ }, _t = {
1582
1583
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
1583
1584
  host: { type: Object },
1584
1585
  backgroundColor: { type: String, default: "" }
1585
- }, Ut = /* @__PURE__ */ Y({
1586
+ }, Yt = /* @__PURE__ */ J({
1586
1587
  name: "FOverlay",
1587
- props: At,
1588
+ props: _t,
1588
1589
  emits: ["click"],
1589
1590
  setup(n, t) {
1590
- const e = p(n.popupContentPosition), o = p(n.host), i = k(() => ({
1591
+ const e = h(n.popupContentPosition), o = h(n.host), i = S(() => ({
1591
1592
  backgroundColor: n.backgroundColor || "",
1592
1593
  pointerEvents: "auto"
1593
1594
  }));
1594
1595
  function l(s) {
1595
1596
  t.emit("click"), s.preventDefault(), s.stopPropagation();
1596
1597
  }
1597
- k(() => {
1598
+ S(() => {
1598
1599
  const s = o.value;
1599
1600
  if (s) {
1600
1601
  const r = s.getBoundingClientRect(), {
@@ -1609,34 +1610,34 @@ const fe = /* @__PURE__ */ Y({
1609
1610
  }
1610
1611
  return e.value;
1611
1612
  });
1612
- const a = k(() => ({
1613
+ const a = S(() => ({
1613
1614
  // position: 'relative',
1614
1615
  // left: `${position.value.left}px`,
1615
1616
  // top: `${position.value.top}px`
1616
1617
  }));
1617
- return () => h(ke, {
1618
+ return () => v(Re, {
1618
1619
  to: "body"
1619
1620
  }, {
1620
1621
  default: () => {
1621
1622
  var s, r;
1622
- return [h("div", {
1623
+ return [v("div", {
1623
1624
  class: "overlay-container",
1624
1625
  onClick: (d) => l(d),
1625
1626
  style: i.value
1626
- }, [h("div", {
1627
+ }, [v("div", {
1627
1628
  style: a.value
1628
1629
  }, [(r = (s = t.slots).default) == null ? void 0 : r.call(s)])])];
1629
1630
  }
1630
1631
  });
1631
1632
  }
1632
1633
  });
1633
- function $t(n) {
1634
+ function Jt(n) {
1634
1635
  if (n.content && n.content.render)
1635
1636
  return n.content.render;
1636
1637
  if (n.render && typeof n.render == "function")
1637
1638
  return n.render;
1638
1639
  }
1639
- function Wt(n) {
1640
+ function Zt(n) {
1640
1641
  const t = document.createElement("div");
1641
1642
  t.style.display = "contents";
1642
1643
  let e;
@@ -1646,11 +1647,11 @@ function Wt(n) {
1646
1647
  };
1647
1648
  return e = we({
1648
1649
  setup() {
1649
- me(() => {
1650
+ pe(() => {
1650
1651
  document.body.removeChild(t);
1651
1652
  });
1652
- const l = $t(n);
1653
- return () => h(Ut, {
1653
+ const l = Jt(n);
1654
+ return () => v(Yt, {
1654
1655
  "popup-content-position": n.popupPosition,
1655
1656
  host: n.host,
1656
1657
  onClick: i,
@@ -1661,12 +1662,12 @@ function Wt(n) {
1661
1662
  }
1662
1663
  }), document.body.appendChild(t), e.mount(t), e;
1663
1664
  }
1664
- class jt {
1665
+ class Qt {
1665
1666
  static show(t) {
1666
- return Wt(t);
1667
+ return Zt(t);
1667
1668
  }
1668
1669
  }
1669
- const qt = {
1670
+ const en = {
1670
1671
  /**
1671
1672
  * 允许点击遮罩关闭对话框
1672
1673
  */
@@ -1745,9 +1746,10 @@ const qt = {
1745
1746
  dialogType: { type: String, default: "" },
1746
1747
  src: { type: String, default: "" },
1747
1748
  footerHeight: { type: Number, default: 60 },
1748
- host: { type: Object, default: "body" }
1749
+ host: { type: Object, default: "body" },
1750
+ isMessager: { type: Boolean, default: !1 }
1749
1751
  };
1750
- class $ {
1752
+ class j {
1751
1753
  constructor(t, e) {
1752
1754
  this.x = t, this.y = e;
1753
1755
  }
@@ -1761,12 +1763,12 @@ class $ {
1761
1763
  }
1762
1764
  static fromEvent(t, e = null) {
1763
1765
  if (this.isMouseEvent(t))
1764
- return new $(t.clientX, t.clientY);
1766
+ return new j(t.clientX, t.clientY);
1765
1767
  if (e === null || t.changedTouches.length === 1)
1766
- return new $(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
1768
+ return new j(t.changedTouches[0].clientX, t.changedTouches[0].clientY);
1767
1769
  for (let o = 0; o < t.changedTouches.length; o++)
1768
1770
  if (t.changedTouches[o].target === e)
1769
- return new $(t.changedTouches[o].clientX, t.changedTouches[o].clientY);
1771
+ return new j(t.changedTouches[o].clientX, t.changedTouches[o].clientY);
1770
1772
  }
1771
1773
  static isMouseEvent(t) {
1772
1774
  return Object.prototype.toString.apply(t).indexOf("MouseEvent") === 8;
@@ -1775,7 +1777,7 @@ class $ {
1775
1777
  return !!t && "x" in t && "y" in t;
1776
1778
  }
1777
1779
  static getCurrent(t) {
1778
- const e = new $(0, 0);
1780
+ const e = new j(0, 0);
1779
1781
  if (window) {
1780
1782
  const o = window.getComputedStyle(t);
1781
1783
  if (o) {
@@ -1787,7 +1789,7 @@ class $ {
1787
1789
  return null;
1788
1790
  }
1789
1791
  static copy(t) {
1790
- return new $(0, 0).set(t);
1792
+ return new j(0, 0).set(t);
1791
1793
  }
1792
1794
  get value() {
1793
1795
  return { x: this.x, y: this.y };
@@ -1811,12 +1813,12 @@ class $ {
1811
1813
  return this.x = t.x, this.y = t.y, this;
1812
1814
  }
1813
1815
  }
1814
- class ee {
1816
+ class te {
1815
1817
  constructor(t, e) {
1816
1818
  this.width = t, this.height = e;
1817
1819
  }
1818
1820
  static getCurrent(t) {
1819
- const e = new ee(0, 0);
1821
+ const e = new te(0, 0);
1820
1822
  if (window) {
1821
1823
  const o = window.getComputedStyle(t);
1822
1824
  return o && (e.width = parseInt(o.getPropertyValue("width"), 10), e.height = parseInt(o.getPropertyValue("height"), 10)), e;
@@ -1824,280 +1826,280 @@ class ee {
1824
1826
  return null;
1825
1827
  }
1826
1828
  static copy(t) {
1827
- return new ee(0, 0).set(t);
1829
+ return new te(0, 0).set(t);
1828
1830
  }
1829
1831
  set(t) {
1830
1832
  return this.width = t.width, this.height = t.height, this;
1831
1833
  }
1832
1834
  }
1833
- function Gt(n, t) {
1834
- const e = p(), o = p(), i = p(), l = p(), a = p(), s = p(), r = p(), d = p(), c = p(), u = p(), v = p(), m = p(n.resizeable), f = p(), b = p(n.draggable), E = p(!1);
1835
+ function tn(n, t) {
1836
+ const e = h(), o = h(), i = h(), l = h(), a = h(), s = h(), r = h(), d = h(), c = h(), u = h(), g = h(), m = h(n.resizeable), f = h(), C = h(n.draggable), E = h(!1);
1835
1837
  function B() {
1836
- const w = o.value || document.body, I = window.getComputedStyle(w);
1837
- if (!I || !e.value)
1838
+ const w = o.value || document.body, F = window.getComputedStyle(w);
1839
+ if (!F || !e.value)
1838
1840
  return;
1839
- const H = $.getTransformInfo(e.value), L = {};
1841
+ const A = j.getTransformInfo(e.value), L = {};
1840
1842
  r.value && (L.deltaL = e.value.offsetLeft - r.value.x, L.deltaT = e.value.offsetTop - r.value.y);
1841
- const W = I.getPropertyValue("position");
1842
- L.width = w.clientWidth, L.height = w.clientHeight, L.pr = parseInt(I.getPropertyValue("padding-right"), 10), L.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), L.position = I.getPropertyValue("position"), W === "static" && (w.style.position = "relative"), L.translateX = H.x, L.translateY = H.y, u.value = L;
1843
+ const G = F.getPropertyValue("position");
1844
+ L.width = w.clientWidth, L.height = w.clientHeight, L.pr = parseInt(F.getPropertyValue("padding-right"), 10), L.pb = parseInt(F.getPropertyValue("padding-bottom"), 10), L.position = F.getPropertyValue("position"), G === "static" && (w.style.position = "relative"), L.translateX = A.x, L.translateY = A.y, u.value = L;
1843
1845
  }
1844
- function M(w) {
1846
+ function x(w) {
1845
1847
  if (e.value) {
1846
- l.value = ee.getCurrent(e.value), a.value = $.getCurrent(e.value), s.value = l.value ? ee.copy(l.value) : null, r.value = a.value ? $.copy(a.value) : null, B();
1847
- const I = w.target.getAttribute("type") || "";
1848
+ l.value = te.getCurrent(e.value), a.value = j.getCurrent(e.value), s.value = l.value ? te.copy(l.value) : null, r.value = a.value ? j.copy(a.value) : null, B();
1849
+ const F = w.target.getAttribute("type") || "";
1848
1850
  d.value = {
1849
- n: !!I.match(/n/),
1850
- s: !!I.match(/s/),
1851
- w: !!I.match(/w/),
1852
- e: !!I.match(/e/)
1851
+ n: !!F.match(/n/),
1852
+ s: !!F.match(/s/),
1853
+ w: !!F.match(/w/),
1854
+ e: !!F.match(/e/)
1853
1855
  };
1854
1856
  }
1855
1857
  }
1856
- function V() {
1857
- var w, I, H, L;
1858
+ function P() {
1859
+ var w, F, A, L;
1858
1860
  if (e.value) {
1859
- const W = e.value;
1860
- d.value && ((d.value.n || d.value.s) && ((w = s.value) != null && w.height) && (W.style.height = s.value.height + "px"), (d.value.w || d.value.e) && ((I = s.value) != null && I.width) && (W.style.width = s.value.width + "px"), r.value && ((H = r.value) != null && H.x && (W.style.left = r.value.x + "px"), (L = r.value) != null && L.y && (W.style.top = r.value.y + "px")));
1861
+ const G = e.value;
1862
+ d.value && ((d.value.n || d.value.s) && ((w = s.value) != null && w.height) && (G.style.height = s.value.height + "px"), (d.value.w || d.value.e) && ((F = s.value) != null && F.width) && (G.style.width = s.value.width + "px"), r.value && ((A = r.value) != null && A.x && (G.style.left = r.value.x + "px"), (L = r.value) != null && L.y && (G.style.top = r.value.y + "px")));
1861
1863
  }
1862
1864
  }
1863
- function A() {
1864
- const w = n.minHeight ? n.minHeight : 1, I = n.minWidth ? n.minWidth : 1;
1865
- s.value && r.value && d.value && l.value && (s.value.height < w && (s.value.height = w, d.value.n && a.value && (r.value.y = a.value.y + (l.value.height - w))), s.value.width < I && (s.value.width = I, d.value.w && a.value && (r.value.x = a.value.x + (l.value.width - I))), n.maxHeight && s.value.height > n.maxHeight && (s.value.height = n.maxHeight, a.value && d.value.n && (r.value.y = a.value.y + (l.value.height - n.maxHeight))), n.maxWidth && s.value.width > n.maxWidth && (s.value.width = n.maxWidth, d.value.w && a.value && (r.value.x = a.value.x + (l.value.width - n.maxWidth))));
1865
+ function $() {
1866
+ const w = n.minHeight ? n.minHeight : 1, F = n.minWidth ? n.minWidth : 1;
1867
+ s.value && r.value && d.value && l.value && (s.value.height < w && (s.value.height = w, d.value.n && a.value && (r.value.y = a.value.y + (l.value.height - w))), s.value.width < F && (s.value.width = F, d.value.w && a.value && (r.value.x = a.value.x + (l.value.width - F))), n.maxHeight && s.value.height > n.maxHeight && (s.value.height = n.maxHeight, a.value && d.value.n && (r.value.y = a.value.y + (l.value.height - n.maxHeight))), n.maxWidth && s.value.width > n.maxWidth && (s.value.width = n.maxWidth, d.value.w && a.value && (r.value.x = a.value.x + (l.value.width - n.maxWidth))));
1866
1868
  }
1867
- function T() {
1869
+ function k() {
1868
1870
  if (o.value) {
1869
1871
  const w = u.value;
1870
1872
  if (r.value && s.value && d.value && l.value) {
1871
- const I = w.width - w.pr - w.deltaL - w.translateX - r.value.x, H = w.height - w.pb - w.deltaT - w.translateY - r.value.y;
1872
- d.value.n && r.value.y + w.translateY < 0 && a.value && (r.value.y = -w.translateY, s.value.height = l.value.height + a.value.y + w.translateY), d.value.w && r.value.x + w.translateX < 0 && a.value && (r.value.x = -w.translateX, s.value.width = l.value.width + a.value.x + w.translateX), s.value.width > I && (s.value.width = I), s.value.height > H && (s.value.height = H);
1873
+ const F = w.width - w.pr - w.deltaL - w.translateX - r.value.x, A = w.height - w.pb - w.deltaT - w.translateY - r.value.y;
1874
+ d.value.n && r.value.y + w.translateY < 0 && a.value && (r.value.y = -w.translateY, s.value.height = l.value.height + a.value.y + w.translateY), d.value.w && r.value.x + w.translateX < 0 && a.value && (r.value.x = -w.translateX, s.value.width = l.value.width + a.value.x + w.translateX), s.value.width > F && (s.value.width = F), s.value.height > A && (s.value.height = A);
1873
1875
  }
1874
1876
  }
1875
1877
  }
1876
- function F(w) {
1878
+ function H(w) {
1877
1879
  if (!i.value || !l.value || !a.value || !d.value)
1878
1880
  return;
1879
1881
  w.subtract(i.value);
1880
- const I = w.x, H = w.y;
1881
- d.value.n ? (r.value.y = a.value.y + H, s.value.height = l.value.height - H) : d.value.s && (s.value.height = l.value.height + H), d.value.e ? s.value.width = l.value.width + I : d.value.w && (s.value.width = l.value.width - I, r.value.x = a.value.x + I), T(), A(), V();
1882
+ const F = w.x, A = w.y;
1883
+ d.value.n ? (r.value.y = a.value.y + A, s.value.height = l.value.height - A) : d.value.s && (s.value.height = l.value.height + A), d.value.e ? s.value.width = l.value.width + F : d.value.w && (s.value.width = l.value.width - F, r.value.x = a.value.x + F), k(), $(), P();
1882
1884
  }
1883
- function g(w) {
1885
+ function p(w) {
1884
1886
  if (!c.value)
1885
1887
  return;
1886
- const I = $.fromEvent(w);
1887
- I && F(I);
1888
+ const F = j.fromEvent(w);
1889
+ F && H(F);
1888
1890
  }
1889
- function S() {
1891
+ function M() {
1890
1892
  if (e.value) {
1891
1893
  const {
1892
1894
  width: w,
1893
- height: I,
1894
- x: H,
1895
+ height: F,
1896
+ x: A,
1895
1897
  y: L
1896
- } = e.value.getBoundingClientRect(), W = $.getTransformInfo(e.value);
1898
+ } = e.value.getBoundingClientRect(), G = j.getTransformInfo(e.value);
1897
1899
  return {
1898
1900
  size: {
1899
1901
  width: w,
1900
- height: I
1902
+ height: F
1901
1903
  },
1902
1904
  position: {
1903
- x: H - W.x,
1904
- y: L - W.y
1905
+ x: A - G.x,
1906
+ y: L - G.y
1905
1907
  }
1906
1908
  };
1907
1909
  }
1908
1910
  return null;
1909
1911
  }
1910
- function N(w) {
1912
+ function R(w) {
1911
1913
  if (e.value) {
1912
- const I = S();
1913
- v.value = I;
1914
+ const F = M();
1915
+ g.value = F;
1914
1916
  }
1915
- i.value = void 0, l.value = null, a.value = null, s.value = null, r.value = null, d.value = null, c.value = null, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", N);
1917
+ i.value = void 0, l.value = null, a.value = null, s.value = null, r.value = null, d.value = null, c.value = null, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", R);
1916
1918
  }
1917
- function U() {
1918
- document.addEventListener("mousemove", g), document.addEventListener("mouseup", N);
1919
+ function z() {
1920
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", R);
1919
1921
  }
1920
- function x(w) {
1921
- w instanceof MouseEvent && w.button === 2 || b.value && (document.body.click(), w.stopPropagation(), w.preventDefault(), i.value = $.fromEvent(w), c.value = w.target, M(w), U());
1922
+ function I(w) {
1923
+ w instanceof MouseEvent && w.button === 2 || C.value && (document.body.click(), w.stopPropagation(), w.preventDefault(), i.value = j.fromEvent(w), c.value = w.target, x(w), z());
1922
1924
  }
1923
- function O(w) {
1924
- return e.value = w, m.value && h(ae, null, [h("div", {
1925
+ function V(w) {
1926
+ return e.value = w, m.value && v(ae, null, [v("div", {
1925
1927
  class: "fv-resizable-handle fv-resizable-n",
1926
1928
  type: "n",
1927
- onMousedown: (I) => x(I)
1928
- }, null), h("div", {
1929
+ onMousedown: (F) => I(F)
1930
+ }, null), v("div", {
1929
1931
  class: "fv-resizable-handle fv-resizable-e",
1930
1932
  type: "e",
1931
- onMousedown: (I) => x(I)
1932
- }, null), h("div", {
1933
+ onMousedown: (F) => I(F)
1934
+ }, null), v("div", {
1933
1935
  class: "fv-resizable-handle fv-resizable-s",
1934
1936
  type: "s",
1935
- onMousedown: (I) => x(I)
1936
- }, null), h("div", {
1937
+ onMousedown: (F) => I(F)
1938
+ }, null), v("div", {
1937
1939
  class: "fv-resizable-handle fv-resizable-w",
1938
1940
  type: "w",
1939
- onMousedown: (I) => x(I)
1940
- }, null), h("div", {
1941
+ onMousedown: (F) => I(F)
1942
+ }, null), v("div", {
1941
1943
  class: "fv-resizable-handle fv-resizable-ne",
1942
1944
  type: "ne",
1943
- onMousedown: (I) => x(I)
1944
- }, null), h("div", {
1945
+ onMousedown: (F) => I(F)
1946
+ }, null), v("div", {
1945
1947
  class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
1946
1948
  type: "se",
1947
- onMousedown: (I) => x(I)
1948
- }, null), h("div", {
1949
+ onMousedown: (F) => I(F)
1950
+ }, null), v("div", {
1949
1951
  class: "fv-resizable-handle fv-resizable-sw",
1950
1952
  type: "sw",
1951
- onMousedown: (I) => x(I)
1952
- }, null), h("div", {
1953
+ onMousedown: (F) => I(F)
1954
+ }, null), v("div", {
1953
1955
  class: "fv-resizable-handle fv-resizable-nw",
1954
1956
  type: "nw",
1955
- onMousedown: (I) => x(I)
1957
+ onMousedown: (F) => I(F)
1956
1958
  }, null)]);
1957
1959
  }
1958
- function D(w = !0) {
1960
+ function U(w = !0) {
1959
1961
  document.body.click();
1960
- const I = o.value || document.body, H = ee.getCurrent(I), L = e.value;
1961
- w && L && (f.value = S(), f.value.transform = L.style.transform), H && L && (s.value = H, s.value.height -= 14, s.value.width -= 14, L.style.height = s.value.height + "px", L.style.width = s.value.width + "px", L.style.left = "7px", L.style.top = "7px", L.style.transform = "", v.value = {
1962
+ const F = o.value || document.body, A = te.getCurrent(F), L = e.value;
1963
+ w && L && (f.value = M(), f.value.transform = L.style.transform), A && L && (s.value = A, s.value.height -= 14, s.value.width -= 14, L.style.height = s.value.height + "px", L.style.width = s.value.width + "px", L.style.left = "7px", L.style.top = "7px", L.style.transform = "", g.value = {
1962
1964
  size: s.value,
1963
1965
  position: {
1964
1966
  x: 0,
1965
1967
  y: 0
1966
1968
  }
1967
- }, b.value = !1, E.value = !0);
1969
+ }, C.value = !1, E.value = !0);
1968
1970
  }
1969
- function X() {
1970
- var w, I;
1971
+ function W() {
1972
+ var w, F;
1971
1973
  if (document.body.click(), f.value) {
1972
- const H = {
1974
+ const A = {
1973
1975
  width: f.value.size.width || 0,
1974
1976
  height: f.value.size.height || 0
1975
1977
  }, L = {
1976
- x: (window.innerWidth - H.width) / 2,
1977
- y: (window.innerHeight - H.height) / 2
1978
+ x: (window.innerWidth - A.width) / 2,
1979
+ y: (window.innerHeight - A.height) / 2
1978
1980
  };
1979
- (w = s.value) == null || w.set(H), (I = r.value) == null || I.set(L);
1980
- const W = e.value;
1981
- W.style.height = H.height + "px", W.style.width = H.width + "px", W.style.left = `${L.x}px`, W.style.top = `${L.y}px`, W.style.transform = "", v.value = {
1982
- size: H,
1981
+ (w = s.value) == null || w.set(A), (F = r.value) == null || F.set(L);
1982
+ const G = e.value;
1983
+ G.style.height = A.height + "px", G.style.width = A.width + "px", G.style.left = `${L.x}px`, G.style.top = `${L.y}px`, G.style.transform = "", g.value = {
1984
+ size: A,
1983
1985
  position: L
1984
- }, b.value = n.draggable, E.value = !1;
1986
+ }, C.value = n.draggable, E.value = !1;
1985
1987
  }
1986
1988
  }
1987
1989
  function _() {
1988
1990
  if (e.value) {
1989
- const w = ee.getCurrent(e.value);
1991
+ const w = te.getCurrent(e.value);
1990
1992
  if (w) {
1991
1993
  const {
1992
- width: I,
1993
- height: H
1994
+ width: F,
1995
+ height: A
1994
1996
  } = w;
1995
- e.value.style.left = `${(window.innerWidth - I) / 2}px`, e.value.style.top = `${(window.innerHeight - H) / 2}px`, e.value.style.transform = "";
1997
+ e.value.style.left = `${(window.innerWidth - F) / 2}px`, e.value.style.top = `${(window.innerHeight - A) / 2}px`, e.value.style.transform = "";
1996
1998
  }
1997
1999
  }
1998
2000
  }
1999
- function z() {
2001
+ function N() {
2000
2002
  const w = () => {
2001
- E.value ? D(!1) : _(), document.body.click();
2003
+ E.value ? U(!1) : _(), document.body.click();
2002
2004
  };
2003
2005
  return window.addEventListener("resize", w), () => {
2004
2006
  window.removeEventListener("resize", w);
2005
2007
  };
2006
2008
  }
2007
- const q = z();
2009
+ const q = N();
2008
2010
  return {
2009
- renderResizeBar: O,
2011
+ renderResizeBar: V,
2010
2012
  boundingElement: o,
2011
- resizedEventParam: v,
2012
- maximize: D,
2013
- restore: X,
2014
- allowDrag: b,
2013
+ resizedEventParam: g,
2014
+ maximize: U,
2015
+ restore: W,
2016
+ allowDrag: C,
2015
2017
  isMaximized: E,
2016
2018
  unWindowResizeHandle: q,
2017
2019
  moveToCenter: _
2018
2020
  };
2019
2021
  }
2020
- function Dt(n, t, e) {
2021
- const o = p(), i = p(n.draggable), l = p(n.lockAxis), a = p(), s = p(), r = p(!1), d = p(new $(0, 0)), c = p(new $(0, 0)), u = p(new $(0, 0)), v = p(new $(0, 0));
2022
- j(() => e.value, (g) => {
2023
- a.value.style.cursor = g ? "move" : "default";
2022
+ function nn(n, t, e) {
2023
+ const o = h(), i = h(n.draggable), l = h(n.lockAxis), a = h(), s = h(), r = h(!1), d = h(new j(0, 0)), c = h(new j(0, 0)), u = h(new j(0, 0)), g = h(new j(0, 0));
2024
+ D(() => e.value, (p) => {
2025
+ a.value.style.cursor = p ? "move" : "default";
2024
2026
  });
2025
- function m(g, S) {
2026
- if (S.tagName === "BUTTON")
2027
+ function m(p, M) {
2028
+ if (M.tagName === "BUTTON")
2027
2029
  return !1;
2028
- if (S === g)
2030
+ if (M === p)
2029
2031
  return !0;
2030
- for (const N in S.children)
2031
- if (Object.prototype.hasOwnProperty.call(S.children, N) && m(g, S.children[N]))
2032
+ for (const R in M.children)
2033
+ if (Object.prototype.hasOwnProperty.call(M.children, R) && m(p, M.children[R]))
2032
2034
  return !0;
2033
2035
  return !1;
2034
2036
  }
2035
2037
  function f() {
2036
- var U, x;
2037
- let g = u.value.x + c.value.x, S = u.value.y + c.value.y;
2038
- l.value === "x" ? (g = ((U = d.value) == null ? void 0 : U.x) || 0, u.value.x = 0) : l.value === "y" && (S = ((x = d.value) == null ? void 0 : x.y) || 0, u.value.y = 0);
2039
- const N = `translate3d(${Math.round(g)}px, ${Math.round(S)}px, 0px)`;
2040
- o.value && (o.value.style.transform = N), v.value.x = g, v.value.y = S;
2038
+ var z, I;
2039
+ let p = u.value.x + c.value.x, M = u.value.y + c.value.y;
2040
+ l.value === "x" ? (p = ((z = d.value) == null ? void 0 : z.x) || 0, u.value.x = 0) : l.value === "y" && (M = ((I = d.value) == null ? void 0 : I.y) || 0, u.value.y = 0);
2041
+ const R = `translate3d(${Math.round(p)}px, ${Math.round(M)}px, 0px)`;
2042
+ o.value && (o.value.style.transform = R), g.value.x = p, g.value.y = M;
2041
2043
  }
2042
- function b() {
2044
+ function C() {
2043
2045
  if (!s.value || !o.value)
2044
2046
  return null;
2045
- const g = s.value.getBoundingClientRect(), S = o.value.getBoundingClientRect(), N = {
2046
- top: g.top < S.top,
2047
- right: g.right > S.right,
2048
- bottom: g.bottom > S.bottom,
2049
- left: g.left < S.left
2047
+ const p = s.value.getBoundingClientRect(), M = o.value.getBoundingClientRect(), R = {
2048
+ top: p.top < M.top,
2049
+ right: p.right > M.right,
2050
+ bottom: p.bottom > M.bottom,
2051
+ left: p.left < M.left
2050
2052
  };
2051
- return N.top || (u.value.y -= S.top - g.top), N.bottom || (u.value.y -= S.bottom - g.bottom), N.right || (u.value.x -= S.right - g.right), N.left || (u.value.x -= S.left - g.left), f(), N;
2053
+ return R.top || (u.value.y -= M.top - p.top), R.bottom || (u.value.y -= M.bottom - p.bottom), R.right || (u.value.x -= M.right - p.right), R.left || (u.value.x -= M.left - p.left), f(), R;
2052
2054
  }
2053
- function E(g) {
2054
- g && (d.value && g.subtract(d.value), u.value.set(g), f(), b());
2055
+ function E(p) {
2056
+ p && (d.value && p.subtract(d.value), u.value.set(p), f(), C());
2055
2057
  }
2056
- function B(g) {
2057
- r.value && i.value && (g.stopPropagation(), g.preventDefault(), E($.fromEvent(g, a.value)));
2058
+ function B(p) {
2059
+ r.value && i.value && (p.stopPropagation(), p.preventDefault(), E(j.fromEvent(p, a.value)));
2058
2060
  }
2059
- function M() {
2060
- var g;
2061
- r.value && (r.value = !1, c.value.add(u.value), u.value.reset(), (g = o.value) == null || g.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", M));
2061
+ function x() {
2062
+ var p;
2063
+ r.value && (r.value = !1, c.value.add(u.value), u.value.reset(), (p = o.value) == null || p.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", x));
2062
2064
  }
2063
- function V() {
2064
- !r.value && a.value && (r.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", B), document.addEventListener("mouseup", M));
2065
+ function P() {
2066
+ !r.value && a.value && (r.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", B), document.addEventListener("mouseup", x));
2065
2067
  }
2066
- function A() {
2068
+ function $() {
2067
2069
  if (o.value) {
2068
- const g = $.getTransformInfo(o.value);
2069
- c.value.set(g);
2070
+ const p = j.getTransformInfo(o.value);
2071
+ c.value.set(p);
2070
2072
  return;
2071
2073
  }
2072
2074
  c.value.reset();
2073
2075
  }
2074
- function T(g) {
2075
- if (!e.value || g instanceof MouseEvent && g.button === 2)
2076
+ function k(p) {
2077
+ if (!e.value || p instanceof MouseEvent && p.button === 2)
2076
2078
  return;
2077
- const S = g.target || g.srcElement;
2078
- a.value !== void 0 && S && !m(S, a.value) || i.value !== !1 && (document.body.click(), g.stopPropagation(), g.preventDefault(), d.value = $.fromEvent(g, o.value), A(), V());
2079
+ const M = p.target || p.srcElement;
2080
+ a.value !== void 0 && M && !m(M, a.value) || i.value !== !1 && (document.body.click(), p.stopPropagation(), p.preventDefault(), d.value = j.fromEvent(p, o.value), $(), P());
2079
2081
  }
2080
- function F(g, S, N) {
2081
- if (i.value && S) {
2082
- if (g)
2083
- a.value = g;
2082
+ function H(p, M, R) {
2083
+ if (i.value && M) {
2084
+ if (p)
2085
+ a.value = p;
2084
2086
  else if (n.dragHandle) {
2085
2087
  if (n.dragHandle instanceof HTMLElement)
2086
2088
  a.value = n.dragHandle;
2087
2089
  else if (typeof n.dragHandle == "string") {
2088
- const U = S.querySelector(n.dragHandle);
2089
- U && (a.value = U);
2090
+ const z = M.querySelector(n.dragHandle);
2091
+ z && (a.value = z);
2090
2092
  }
2091
2093
  }
2092
- o.value = S, s.value = N, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", T)) : i.value = !1;
2094
+ o.value = M, s.value = R, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", k)) : i.value = !1;
2093
2095
  }
2094
2096
  }
2095
2097
  return {
2096
- registerDraggle: F,
2097
- resetTranslate: A
2098
+ registerDraggle: H,
2099
+ resetTranslate: $
2098
2100
  };
2099
2101
  }
2100
- function Ve(n, t) {
2102
+ function He(n, t) {
2101
2103
  if (n) {
2102
2104
  const e = (o) => {
2103
2105
  o.key.toLowerCase() === n.toLowerCase() && t({ event: o, key: n });
@@ -2107,315 +2109,320 @@ function Ve(n, t) {
2107
2109
  };
2108
2110
  }
2109
2111
  }
2110
- function Kt(n, t) {
2111
- const e = p(n.enableEsc);
2112
+ function on(n, t) {
2113
+ const e = h(n.enableEsc);
2112
2114
  let o = null;
2113
- return e.value ? (o = Ve("Escape", (i) => {
2115
+ return e.value ? (o = He("Escape", (i) => {
2114
2116
  t.emit("esc", { event: i.event, type: "esc" });
2115
2117
  }), {
2116
2118
  remove: o
2117
2119
  }) : null;
2118
2120
  }
2119
- function Xt(n, t) {
2120
- const e = p(n.enableEnter);
2121
+ function ln(n, t) {
2122
+ const e = h(n.enableEnter);
2121
2123
  let o = null;
2122
- return e.value ? (o = Ve("Enter", (i) => {
2124
+ return e.value ? (o = He("Enter", (i) => {
2123
2125
  t.emit("enter", { event: i.event, type: "enter" });
2124
2126
  }), {
2125
2127
  remove: o
2126
2128
  }) : null;
2127
2129
  }
2128
- const le = /* @__PURE__ */ Y({
2130
+ const le = /* @__PURE__ */ J({
2129
2131
  name: "FModal",
2130
- props: qt,
2132
+ props: en,
2131
2133
  emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
2132
2134
  setup(n, t) {
2133
- const e = p(n.width || 300), o = p(n.height || 200), i = p(n.modelValue), l = p(""), a = p(n.class), s = p(n.fitContent), r = p(n.showHeader), d = p(""), c = p(n.showCloseButton), u = p(n.showMaxButton), v = p(!1), m = p(n.dialogType), f = p(n.src), b = p(""), E = p(n.showButtons), B = p(n.title), M = p(n.containment || null), V = p();
2134
- B.value === "错误提示" && (B.value = te.getLocaleValue("messageBox.errorTitle"));
2135
- const A = p(!1);
2136
- function T(y, R) {
2137
- const K = R ? "accept" : "cancel";
2135
+ const e = h(n.width || 300), o = h(n.height || 200), i = h(n.modelValue), l = h(""), a = h(n.class), s = h(n.fitContent), r = h(n.showHeader), d = h(""), c = h(n.showCloseButton), u = h(n.showMaxButton), g = h(!1), m = h(n.dialogType), f = h(n.src), C = h(""), E = h(n.showButtons), B = h(n.title), x = h(n.containment || null), P = h();
2136
+ B.value === "错误提示" && (B.value = ne.getLocaleValue("messageBox.errorTitle"));
2137
+ const $ = h(!1);
2138
+ function k(y, O) {
2139
+ const X = O ? "accept" : "cancel";
2138
2140
  Promise.resolve().then(() => {
2139
- var G;
2140
- return (G = n.beforeClose) == null ? void 0 : G.call(n, {
2141
- closeType: K
2141
+ var K;
2142
+ return (K = n.beforeClose) == null ? void 0 : K.call(n, {
2143
+ closeType: X
2142
2144
  });
2143
- }).then((G) => {
2144
- G && (i.value = !1, t.emit("update:modelValue", !1), R != null && t.emit(R ? "accept" : "cancel"), t.emit("closed", y));
2145
+ }).then((K) => {
2146
+ K && (i.value = !1, t.emit("update:modelValue", !1), O != null && t.emit(O ? "accept" : "cancel"), t.emit("closed", y));
2145
2147
  });
2146
2148
  }
2147
- const F = [{
2149
+ const H = [{
2148
2150
  name: "cancel",
2149
- text: te.getLocaleValue("messageBox.cancel") || "取消",
2151
+ text: ne.getLocaleValue("messageBox.cancel") || "取消",
2150
2152
  class: "btn btn-secondary",
2151
2153
  handle: (y) => {
2152
- T(y, !1);
2154
+ k(y, !1);
2153
2155
  }
2154
2156
  }, {
2155
2157
  name: "accept",
2156
- text: te.getLocaleValue("messageBox.ok") || "确定",
2158
+ text: ne.getLocaleValue("messageBox.ok") || "确定",
2157
2159
  class: "btn btn-primary",
2158
2160
  handle: (y) => {
2159
- T(y, !0);
2161
+ k(y, !0);
2160
2162
  }
2161
- }], g = p(n.buttons && n.buttons.length ? n.buttons : F), S = k(() => !!d.value), N = k(() => !!E.value && !!g.value), U = p(), x = p(), O = p(!1), {
2162
- renderResizeBar: D,
2163
- maximize: X,
2163
+ }], p = h(n.buttons && n.buttons.length ? n.buttons : H), M = S(() => !!d.value), R = S(() => !!E.value && !!p.value), z = h(), I = h(), V = h(!1), {
2164
+ renderResizeBar: U,
2165
+ maximize: W,
2164
2166
  restore: _,
2165
- boundingElement: z,
2167
+ boundingElement: N,
2166
2168
  resizedEventParam: q,
2167
2169
  allowDrag: w,
2168
- unWindowResizeHandle: I,
2169
- moveToCenter: H
2170
- } = Gt(n), {
2170
+ unWindowResizeHandle: F,
2171
+ moveToCenter: A
2172
+ } = tn(n), {
2171
2173
  registerDraggle: L
2172
- } = Dt(n, t, w);
2173
- function W() {
2174
+ } = nn(n, t, w);
2175
+ function G() {
2174
2176
  return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
2175
2177
  }
2176
- function Ae() {
2178
+ function Ye() {
2177
2179
  const y = document.querySelectorAll(".farris-modal").length;
2178
- (!y || y - 1 <= 0) && document.body.classList.remove("modal-open"), V.value && V.value.classList.remove("show");
2179
- }
2180
- j(() => n.title, (y, R) => {
2181
- y !== R && (B.value = y);
2182
- }), j(() => n.modelValue, (y, R) => {
2183
- y !== R && (i.value = y, i.value && n.draggable && oe(() => {
2184
- x.value && !M.value && (M.value = x.value.parentElement, z.value = M.value, L(U.value, x.value, z.value), H());
2185
- }), y || (M.value && (M.value = null), Ae())), i.value ? A.value = W() : (O.value = !1, w.value = n.draggable);
2186
- }), j(() => n.showHeader, (y, R) => {
2187
- y !== R && (r.value = y);
2188
- }), j(() => n.showButtons, (y, R) => {
2189
- y !== R && (E.value = y);
2190
- }), j(() => q.value, (y, R) => {
2191
- const K = y || {}, G = R || {};
2192
- JSON.stringify(K) !== JSON.stringify(G) && t.emit("resize", {
2180
+ (!y || y - 1 <= 0) && document.body.classList.remove("modal-open"), P.value && P.value.classList.remove("show");
2181
+ }
2182
+ D(() => n.title, (y, O) => {
2183
+ y !== O && (B.value = y);
2184
+ }), D(() => n.modelValue, (y, O) => {
2185
+ y !== O && (i.value = y, i.value && n.draggable && oe(() => {
2186
+ I.value && !x.value && (x.value = I.value.parentElement, N.value = x.value, L(z.value, I.value, N.value), A());
2187
+ }), y || (x.value && (x.value = null), Ye())), i.value ? $.value = G() : (V.value = !1, w.value = n.draggable);
2188
+ }), D(() => n.showHeader, (y, O) => {
2189
+ y !== O && (r.value = y);
2190
+ }), D(() => n.showButtons, (y, O) => {
2191
+ y !== O && (E.value = y);
2192
+ }), D(() => q.value, (y, O) => {
2193
+ const X = y || {}, K = O || {};
2194
+ JSON.stringify(X) !== JSON.stringify(K) && t.emit("resize", {
2193
2195
  newSize: y,
2194
- oldSize: R,
2195
- isMaximized: O.value
2196
+ oldSize: O,
2197
+ isMaximized: V.value
2196
2198
  });
2197
- }), j([() => n.width, () => n.height], (y, R) => {
2198
- (y[0] !== R[0] || y[1] !== R[1]) && (e.value = y[0] || 500, o.value = y[1] || 600);
2199
+ }), D([() => n.width, () => n.height], (y, O) => {
2200
+ (y[0] !== O[0] || y[1] !== O[1]) && (e.value = y[0] || 500, o.value = y[1] || 600);
2201
+ }), D(() => n.class, (y, O) => {
2202
+ a.value = y;
2199
2203
  });
2200
- const pe = k(() => (i.value && document.body.classList.add("modal-open"), i.value)), Ue = k(() => {
2201
- var K;
2204
+ const se = S(() => (i.value && document.body.classList.add("modal-open"), i.value)), Je = S(() => {
2205
+ var X;
2202
2206
  const y = {
2203
2207
  modal: !0,
2204
2208
  "farris-modal": !0,
2205
2209
  fade: !0
2206
2210
  };
2207
- y["f-modal-fitContent"] = !!s.value, y.show = !!pe.value;
2208
- const R = (K = n.maskClass) == null ? void 0 : K.split(" ");
2209
- return R == null || R.reduce((G, ne) => (G[ne] = !0, G), y), y;
2210
- }), $e = k(() => {
2211
- var K;
2211
+ y["f-modal-fitContent"] = !!s.value, y.show = !!se.value;
2212
+ const O = (X = n.maskClass) == null ? void 0 : X.split(" ");
2213
+ return O == null || O.reduce((K, Y) => (K[Y] = !0, K), y), y;
2214
+ }), Ze = S(() => {
2215
+ var X;
2212
2216
  const y = {
2213
2217
  "modal-dialog": !0
2214
- }, R = (K = a.value) == null ? void 0 : K.split(" ");
2215
- return R == null || R.reduce((G, ne) => (G[ne] = !0, G), y), y;
2216
- }), We = k(() => {
2217
- const y = document.documentElement.clientWidth, R = document.documentElement.clientHeight, K = Math.min(e.value, y), G = s.value ? "auto" : `${Math.min(o.value, R - 10)}px`, ne = {
2218
+ }, O = (X = a.value) == null ? void 0 : X.split(" ");
2219
+ return O == null || O.reduce((K, Y) => (K[Y] = !0, K), y), y;
2220
+ }), Ie = () => bt() && !n.isMessager, Qe = S(() => {
2221
+ const y = document.documentElement.clientWidth, O = document.documentElement.clientHeight, X = Math.min(e.value, y), K = s.value ? "auto" : `${Math.min(o.value, O - 10)}px`, Y = {
2218
2222
  position: "absolute",
2219
- top: `${(window.innerHeight - parseInt(G === "auto" ? "0" : G)) / 2}px`,
2220
- left: `${(window.innerWidth - K) / 2}px`,
2221
- width: `${K}px`,
2222
- height: G
2223
+ top: `${(window.innerHeight - parseInt(K === "auto" ? "0" : K)) / 2}px`,
2224
+ left: `${(window.innerWidth - X) / 2}px`,
2225
+ width: `${X}px`,
2226
+ height: K
2223
2227
  };
2224
- return n.mask || (ne.pointerEvents = "auto"), ne;
2225
- }), je = () => ut() || 1040, qe = k(() => {
2228
+ return Ie() && (Y.top = "0px", Y.left = "0px", Y.width = `${window.innerWidth}px`, Y.height = `${window.innerHeight}px`), n.mask || (Y.pointerEvents = "auto"), Y;
2229
+ }), Ee = h(Se() || 1050), et = S(() => {
2226
2230
  const y = {
2227
2231
  display: "block",
2228
- zIndex: je()
2232
+ overflow: "hidden"
2229
2233
  };
2230
- return n.mask || (y.pointerEvents = "none", y.backgroundColor = "transparent"), A.value && (y.backgroundColor = "transparent"), y;
2231
- }), Ge = k(() => ({
2234
+ return n.mask || (y.pointerEvents = "none", y.backgroundColor = "transparent"), $.value && (y.backgroundColor = "transparent"), y.zIndex = Ee.value, y;
2235
+ }), tt = S(() => ({
2232
2236
  "modal-content": !0,
2233
- "modal-content-has-header": r.value
2234
- })), De = k(() => {
2237
+ "modal-content-has-header": r.value,
2238
+ "is-mobile": Ie()
2239
+ })), nt = S(() => {
2235
2240
  const y = {
2236
2241
  display: r.value ? "" : "none"
2237
2242
  };
2238
2243
  return y["pointer-events"] = w.value ? "auto" : "none", y;
2239
- }), Ke = k(() => ({
2244
+ }), it = S(() => ({
2240
2245
  "f-icon": !0,
2241
2246
  modal_maximize: !0,
2242
- modalrevert: O.value
2243
- })), Xe = k(() => ({
2247
+ modalrevert: V.value
2248
+ })), ot = S(() => ({
2244
2249
  "modal-body": !0,
2245
2250
  "f-utils-flex-column": m.value === "iframe",
2246
2251
  "f-utils-fill": !0
2247
2252
  }));
2248
- function _e() {
2253
+ function lt() {
2249
2254
  return {
2250
2255
  height: `${n.footerHeight || 60}px`
2251
2256
  };
2252
2257
  }
2253
- const Ye = k(() => {
2258
+ const at = S(() => {
2254
2259
  const y = {
2255
- textAlgin: b.value
2256
- }, R = _e();
2257
- return Object.assign(y, R);
2260
+ textAlgin: C.value
2261
+ }, O = lt();
2262
+ return Object.assign(y, O);
2258
2263
  });
2259
- function Me(y) {
2260
- if (y == null || y.stopPropagation(), O.value) {
2261
- O.value = !1, _();
2264
+ function Fe(y) {
2265
+ if (y == null || y.stopPropagation(), V.value) {
2266
+ V.value = !1, _();
2262
2267
  return;
2263
2268
  }
2264
- X(), O.value = !0;
2269
+ W(), V.value = !0;
2265
2270
  }
2266
- async function Je(y, R) {
2267
- y.handle && await y.handle(R, y) && t.emit("closed", R);
2271
+ async function st(y, O) {
2272
+ y.handle && await y.handle(O, y) && t.emit("closed", O);
2268
2273
  }
2269
- function Ze(y) {
2270
- y.width && (e.value = y.width), y.height && (o.value = y.height), y.buttons && (g.value = y.buttons), y.title && (B.value = y.title);
2274
+ function rt(y) {
2275
+ y.width && (e.value = y.width), y.height && (o.value = y.height), y.buttons && (p.value = y.buttons), y.title && (B.value = y.title);
2271
2276
  }
2272
2277
  let he = null, ve = null;
2273
- pt(() => {
2274
- A.value = W();
2275
- }), J(() => {
2276
- x.value && !M.value && (M.value = x.value.parentElement, z.value = M.value, L(U.value, x.value, z.value)), pe.value && document.body.classList.add("modal-open"), he = Kt(n, t), ve = Xt(n, t);
2277
- }), me(() => {
2278
- I && I(), he && he.remove(), ve && ve.remove();
2278
+ Mt(() => {
2279
+ $.value = G();
2280
+ }), Z(() => {
2281
+ I.value && !x.value && (x.value = I.value.parentElement, N.value = x.value, L(z.value, I.value, N.value)), se.value && document.body.classList.add("modal-open"), he = on(n, t), ve = ln(n, t);
2282
+ }), pe(() => {
2283
+ F && F(), he && he.remove(), ve && ve.remove();
2279
2284
  }), t.expose({
2280
- modalElementRef: x,
2281
- updateModalOptions: Ze,
2282
- close: T,
2283
- maxDialog: Me,
2284
- isMaximized: O
2285
+ modalElementRef: I,
2286
+ updateModalOptions: rt,
2287
+ close: k,
2288
+ maxDialog: Fe,
2289
+ isMaximized: V
2285
2290
  });
2286
- function Qe() {
2287
- return h("ul", null, [v.value && h("li", {
2291
+ function ut() {
2292
+ return v("ul", null, [g.value && v("li", {
2288
2293
  class: "f-btn-icon f-bare"
2289
- }, [h("span", {
2294
+ }, [v("span", {
2290
2295
  class: "f-icon modal_minimize"
2291
- }, null)]), u.value && h("li", {
2292
- onClick: Me,
2296
+ }, null)]), u.value && v("li", {
2297
+ onClick: Fe,
2293
2298
  class: "f-btn-icon f-bare",
2294
2299
  style: "pointer-events: auto;"
2295
- }, [h("span", {
2296
- class: Ke.value
2297
- }, null)]), c.value && h("li", {
2300
+ }, [v("span", {
2301
+ class: it.value
2302
+ }, null)]), c.value && v("li", {
2298
2303
  class: "f-btn-icon f-bare",
2299
- onClick: (y) => T(y, !1),
2304
+ onClick: (y) => k(y, !1),
2300
2305
  style: "pointer-events: auto;"
2301
- }, [h("span", {
2306
+ }, [v("span", {
2302
2307
  class: "f-icon modal_close"
2303
2308
  }, null)])]);
2304
2309
  }
2305
- function et() {
2306
- return h("div", {
2310
+ function dt() {
2311
+ return v("div", {
2307
2312
  class: "modal-footer",
2308
- style: Ye.value
2309
- }, [g.value && g.value.map((y) => {
2310
- const R = p(y.disabled);
2311
- return h("button", {
2313
+ style: at.value
2314
+ }, [p.value && p.value.map((y) => {
2315
+ const O = h(y.disabled);
2316
+ return v("button", {
2312
2317
  name: y.name,
2313
2318
  type: "button",
2314
- disabled: R.value,
2319
+ disabled: O.value,
2315
2320
  class: y.class + (y.iconClass ? " btn-icontext" : ""),
2316
- onClick: (K) => {
2317
- Je(y, K);
2321
+ onClick: (X) => {
2322
+ st(y, X);
2318
2323
  }
2319
- }, [!!y.iconClass && h("i", {
2324
+ }, [!!y.iconClass && v("i", {
2320
2325
  class: y.iconClass
2321
2326
  }, null), y.text]);
2322
2327
  })]);
2323
2328
  }
2324
- function tt() {
2325
- return h("div", {
2326
- ref: U,
2329
+ function ct() {
2330
+ return v("div", {
2331
+ ref: z,
2327
2332
  class: "modal-header",
2328
- style: De.value
2329
- }, [t.slots.headerTemplate ? t.slots.headerTemplate() : h("div", {
2333
+ style: nt.value
2334
+ }, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
2330
2335
  class: "modal-title"
2331
- }, [S.value && h("span", {
2336
+ }, [M.value && v("span", {
2332
2337
  class: d.value,
2333
2338
  style: "margin-right: 8px"
2334
- }, null), h("span", {
2339
+ }, null), v("span", {
2335
2340
  class: "modal-title-label"
2336
- }, [B.value])]), h("div", {
2341
+ }, [B.value])]), v("div", {
2337
2342
  class: "actions"
2338
- }, [Qe()])]);
2343
+ }, [ut()])]);
2339
2344
  }
2340
- function nt() {
2341
- return t.slots.footerTemplate ? t.slots.footerTemplate() : N.value && et();
2345
+ function ft() {
2346
+ return t.slots.footerTemplate ? t.slots.footerTemplate() : R.value && dt();
2342
2347
  }
2343
- function it(y) {
2348
+ function mt(y) {
2344
2349
  if (y.stopPropagation(), n.allowClickMaskToClose) {
2345
- if (y.target !== V.value)
2350
+ if (y.target !== P.value)
2346
2351
  return;
2347
- T(y, !1);
2352
+ k(y, !1);
2348
2353
  }
2349
2354
  }
2350
- function ot() {
2351
- var y, R;
2352
- return h("div", {
2355
+ function pt() {
2356
+ var y, O;
2357
+ return v("div", {
2353
2358
  id: l.value,
2354
- class: $e.value,
2355
- style: We.value,
2356
- ref: x
2357
- }, [h("div", {
2358
- class: Ge.value
2359
- }, [r.value && tt(), h("div", {
2360
- class: Xe.value
2361
- }, [(R = (y = t.slots).default) == null ? void 0 : R.call(y), m.value === "iframe" && h("iframe", {
2359
+ class: Ze.value,
2360
+ style: Qe.value,
2361
+ ref: I
2362
+ }, [v("div", {
2363
+ class: tt.value
2364
+ }, [r.value && ct(), v("div", {
2365
+ class: ot.value
2366
+ }, [(O = (y = t.slots).default) == null ? void 0 : O.call(y), m.value === "iframe" && v("iframe", {
2362
2367
  title: l.value,
2363
2368
  class: "f-utils-fill",
2364
2369
  width: "100%",
2365
2370
  frameborder: "0",
2366
2371
  src: f.value
2367
- }, null)]), nt()]), !s.value && x.value && !O.value && D(x.value)]);
2372
+ }, null)]), ft()]), !s.value && I.value && !V.value && U(I.value)]);
2368
2373
  }
2369
- function lt(y) {
2374
+ function ht(y) {
2370
2375
  return y || "body";
2371
2376
  }
2372
- return () => h(ke, {
2373
- to: lt(n.host)
2377
+ return It(() => {
2378
+ se.value && (Ee.value = Se() || 1050);
2379
+ }), () => v(Re, {
2380
+ to: ht(n.host)
2374
2381
  }, {
2375
- default: () => [pe.value && h(Se, {
2382
+ default: () => [se.value && v(Ne, {
2376
2383
  name: "fade",
2377
2384
  appear: !0
2378
2385
  }, {
2379
- default: () => [h("div", {
2380
- ref: V,
2381
- class: Ue.value,
2382
- style: qe.value,
2383
- onClick: it
2384
- }, [ot()])]
2386
+ default: () => [v("div", {
2387
+ ref: P,
2388
+ class: Je.value,
2389
+ style: et.value,
2390
+ onClick: mt
2391
+ }, [pt()])]
2385
2392
  })]
2386
2393
  });
2387
2394
  }
2388
2395
  });
2389
- function Oe(n) {
2396
+ function Ae(n) {
2390
2397
  if (n.content && n.content.render)
2391
2398
  return n.content.render;
2392
2399
  if (n.render && typeof n.render == "function")
2393
2400
  return n.render;
2394
2401
  }
2395
- function _t(n) {
2402
+ function an(n) {
2396
2403
  const t = document.createElement("div");
2397
2404
  t.style.display = "contents";
2398
2405
  const e = we({
2399
2406
  setup(o, i) {
2400
- me(() => {
2407
+ pe(() => {
2401
2408
  document.body.removeChild(t);
2402
2409
  });
2403
- const l = p(), a = p(n.class || ""), s = p(!!n.showButtons), r = p(!!n.showHeader), d = p(n.showCloseButton == null ? !0 : n.showCloseButton), c = p(!0), u = p(n.title || ""), v = n.acceptCallback || (() => {
2410
+ const l = h(), a = h(n.class || ""), s = h(!!n.showButtons), r = h(!!n.showHeader), d = h(n.showCloseButton == null ? !0 : n.showCloseButton), c = h(!0), u = h(n.title || ""), g = n.acceptCallback || (() => {
2404
2411
  }), m = n.rejectCallback || (() => {
2405
- }), f = n.closedCallback || ((V) => {
2406
- }), b = n.resizeHandle || ((V) => {
2407
- }), E = n.stopMoveHandle || ((V) => {
2408
- }), B = Oe(n), M = (V) => {
2409
- c.value = !1, e.unmount(), f(V);
2412
+ }), f = n.closedCallback || ((P) => {
2413
+ }), C = n.resizeHandle || ((P) => {
2414
+ }), E = n.stopMoveHandle || ((P) => {
2415
+ }), B = Ae(n), x = (P) => {
2416
+ c.value = !1, e.unmount(), f(P);
2410
2417
  };
2411
- return J(() => {
2418
+ return Z(() => {
2412
2419
  }), i.expose({
2413
2420
  modalRef: l
2414
- }), () => h(le, {
2421
+ }), () => v(le, {
2415
2422
  ref: l,
2416
2423
  class: a.value,
2417
2424
  modelValue: c.value,
2418
- "onUpdate:modelValue": (V) => c.value = V,
2425
+ "onUpdate:modelValue": (P) => c.value = P,
2419
2426
  title: u.value,
2420
2427
  width: n.width,
2421
2428
  height: n.height,
@@ -2424,27 +2431,27 @@ function _t(n) {
2424
2431
  "show-buttons": s.value,
2425
2432
  "show-close-button": d.value,
2426
2433
  "show-max-button": !1,
2427
- onAccept: v,
2434
+ onAccept: g,
2428
2435
  onCancel: m,
2429
2436
  fitContent: n.fitContent == null ? !0 : n.fitContent,
2430
- onClosed: M,
2431
- onResize: b,
2437
+ onClosed: x,
2438
+ onResize: C,
2432
2439
  onStopMove: E
2433
2440
  }, {
2434
2441
  default: () => [B && B(e)]
2435
2442
  });
2436
2443
  }
2437
2444
  });
2438
- return document.body.appendChild(t), e.use(te.i18n), e.mount(t), e;
2445
+ return document.body.appendChild(t), e.use(ne.i18n), e.mount(t), e;
2439
2446
  }
2440
- class Yt {
2447
+ class sn {
2441
2448
  constructor(t) {
2442
- P(this, "appContext", null);
2443
- P(this, "modalRef", p());
2444
- P(this, "activeModalIndex", p(0));
2445
- P(this, "modalRefs", {});
2446
- P(this, "isUseEscCloseModal", p(!1));
2447
- P(this, "activeModalInstance", k(() => this.modalRefs[this.activeModalIndex.value]));
2449
+ T(this, "appContext", null);
2450
+ T(this, "modalRef", h());
2451
+ T(this, "activeModalIndex", h(0));
2452
+ T(this, "modalRefs", {});
2453
+ T(this, "isUseEscCloseModal", h(!1));
2454
+ T(this, "activeModalInstance", S(() => this.modalRefs[this.activeModalIndex.value]));
2448
2455
  this.app = t, this.appContext = t ? t._context : null;
2449
2456
  }
2450
2457
  getCurrentModal() {
@@ -2469,7 +2476,7 @@ class Yt {
2469
2476
  showButtons: !0,
2470
2477
  showHeader: !0
2471
2478
  }, t);
2472
- return _t(e);
2479
+ return an(e);
2473
2480
  }
2474
2481
  close(t) {
2475
2482
  var e, o;
@@ -2478,43 +2485,44 @@ class Yt {
2478
2485
  open(t) {
2479
2486
  const e = document.createDocumentFragment();
2480
2487
  t.showMaxButton && t.fitContent && (t.showMaxButton = !1);
2481
- const o = ht(Object.assign({
2488
+ const o = Et(Object.assign({
2482
2489
  title: "",
2483
2490
  showButtons: !0,
2484
2491
  showHeader: !0
2485
- }, t)), i = p(!0), l = o.value.acceptCallback || (() => {
2492
+ }, t)), i = h(!0), l = o.value.acceptCallback || (() => {
2486
2493
  }), a = o.value.rejectCallback || (() => {
2487
- }), s = o.value.closedCallback || ((T, F) => {
2488
- }), r = o.value.resizeHandle || ((T) => {
2489
- }), d = t.stopMoveHandle || ((T) => {
2494
+ }), s = o.value.closedCallback || ((k, H) => {
2495
+ }), r = o.value.resizeHandle || ((k) => {
2496
+ }), d = t.stopMoveHandle || ((k) => {
2490
2497
  });
2491
2498
  let c;
2492
- const u = Oe(o.value), v = (T) => {
2493
- var g;
2499
+ const u = Ae(o.value), g = (k) => {
2500
+ var p;
2494
2501
  i.value = !1;
2495
- const F = (g = T == null ? void 0 : T.target) == null ? void 0 : g.classList.contains("modal_close");
2496
- s(T, this.isUseEscCloseModal.value ? "esc" : F ? "icon" : "button");
2497
- }, m = (T) => {
2498
- v(T), c && oe(() => {
2502
+ const H = (p = k == null ? void 0 : k.target) == null ? void 0 : p.classList.contains("modal_close");
2503
+ s(k, this.isUseEscCloseModal.value ? "esc" : H ? "icon" : "button");
2504
+ }, m = (k) => {
2505
+ g(k), c && oe(() => {
2499
2506
  if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], ge(null, e), c = null, this.modalRef.value = null, this.modalRefs) {
2500
- const F = Object.keys(this.modalRefs).map((g) => Number(g));
2501
- F.length > 0 ? this.activeModalIndex.value = Math.max(...F) : this.activeModalIndex.value = 0;
2507
+ const H = Object.keys(this.modalRefs).map((p) => Number(p));
2508
+ H.length > 0 ? this.activeModalIndex.value = Math.max(...H) : this.activeModalIndex.value = 0;
2502
2509
  }
2503
2510
  this.isUseEscCloseModal.value = !1;
2504
2511
  });
2505
- }, f = (T) => {
2506
- var F;
2507
- this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((F = this.activeModalInstance.value) == null || F.close(T == null ? void 0 : T.event));
2512
+ }, f = (k) => {
2513
+ var H;
2514
+ this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((H = this.activeModalInstance.value) == null || H.close(k == null ? void 0 : k.event));
2508
2515
  }, {
2509
- width: b,
2516
+ width: C,
2510
2517
  height: E
2511
- } = o.value, B = this.adaptToWindow(b || 500, E || 320);
2518
+ } = o.value, B = this.adaptToWindow(C || 500, E || 320);
2512
2519
  Object.assign(o.value, B);
2513
- const M = () => h(le, xe({
2520
+ const x = () => v(le, xe({
2514
2521
  ref: this.modalRef,
2515
2522
  modelValue: i.value,
2516
- "onUpdate:modelValue": (T) => i.value = T
2523
+ "onUpdate:modelValue": (k) => i.value = k
2517
2524
  }, o.value, {
2525
+ isMessager: o.value.class && o.value.class.indexOf("modal-message") > -1,
2518
2526
  onAccept: l,
2519
2527
  onCancel: a,
2520
2528
  onClosed: m,
@@ -2524,18 +2532,18 @@ class Yt {
2524
2532
  }), {
2525
2533
  default: () => [u && u(this.app)]
2526
2534
  });
2527
- return c = ((T) => {
2528
- const F = vt(M, T);
2529
- return F.appContext = this.appContext, ge(F, e), F;
2535
+ return c = ((k) => {
2536
+ const H = Ft(x, k);
2537
+ return H.appContext = this.appContext, ge(H, e), H;
2530
2538
  })({
2531
2539
  ...o.value
2532
2540
  // 'onUpdate:modelValue': onUpdateModelValue,
2533
2541
  }), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
2534
- update: (T) => {
2542
+ update: (k) => {
2535
2543
  o.value = {
2536
2544
  ...o.value,
2537
- ...T
2538
- }, c && ge(gt(c, {
2545
+ ...k
2546
+ }, c && ge(Bt(c, {
2539
2547
  ...o
2540
2548
  }), e);
2541
2549
  },
@@ -2545,13 +2553,13 @@ class Yt {
2545
2553
  };
2546
2554
  }
2547
2555
  }
2548
- const Re = Symbol("FModalService");
2556
+ const $e = Symbol("FModalService");
2549
2557
  le.install = (n) => {
2550
2558
  n.component(le.name, le);
2551
- const t = new Yt(n);
2552
- n.provide(Re, t), n.provide("FModalService", t);
2559
+ const t = new sn(n);
2560
+ n.provide($e, t), n.provide("FModalService", t);
2553
2561
  };
2554
- function Ne(n, t) {
2562
+ function Ue(n, t) {
2555
2563
  function e() {
2556
2564
  const o = n.beforeOpen || n.beforeClickButton || null;
2557
2565
  let i = Promise.resolve(!0);
@@ -2565,56 +2573,56 @@ function Ne(n, t) {
2565
2573
  }
2566
2574
  return { judgeCanOpen: e };
2567
2575
  }
2568
- function Jt(n, t, e, o, i) {
2569
- const l = p(n.buttonBehavior), a = p(n.popupOnInput), s = k(() => ({
2576
+ function rn(n, t, e, o, i) {
2577
+ const l = h(n.buttonBehavior), a = h(n.popupOnInput), s = S(() => ({
2570
2578
  "input-group-append": !0,
2571
2579
  "append-force-show": n.showButtonWhenDisabled && (n.readonly || n.disable)
2572
- })), { judgeCanOpen: r } = Ne(n, i), d = k(() => n.showButtonWhenDisabled || (!n.editable || !n.readonly) && !n.disable), c = de(Re, null), u = p();
2573
- async function v(b) {
2580
+ })), { judgeCanOpen: r } = Ue(n, i), d = S(() => n.showButtonWhenDisabled || (!n.editable || !n.readonly) && !n.disable), c = ce($e, null), u = h();
2581
+ async function g(C) {
2574
2582
  if (await r() && d.value) {
2575
2583
  const E = !!t.slots.default;
2576
2584
  if (l.value === "Modal") {
2577
- const B = n.modalOptions, M = c == null ? void 0 : c.open({
2585
+ const B = n.modalOptions, x = c == null ? void 0 : c.open({
2578
2586
  ...B,
2579
2587
  render: () => t.slots.default && t.slots.default()
2580
2588
  });
2581
- u.value = M == null ? void 0 : M.modalRef;
2589
+ u.value = x == null ? void 0 : x.modalRef;
2582
2590
  }
2583
- l.value === "Overlay" && jt.show({
2591
+ l.value === "Overlay" && Qt.show({
2584
2592
  // host: buttonEditRef.value,
2585
2593
  host: document.body,
2586
2594
  backgroundColor: "rgba(0,0,0,.15)",
2587
2595
  render: () => t.slots.default && t.slots.default()
2588
- }), E && l.value === "Popup" && o.togglePopup(!0), E && a.value && o.hidePopup(), t.emit("clickButton", { origin: b, value: n.modelValue });
2596
+ }), E && l.value === "Popup" && o.togglePopup(!0), E && a.value && o.hidePopup(), t.emit("clickButton", { origin: C, value: n.modelValue });
2589
2597
  }
2590
2598
  }
2591
- function m(b) {
2592
- t.emit("mouseEnterIcon", b);
2599
+ function m(C) {
2600
+ t.emit("mouseEnterIcon", C);
2593
2601
  }
2594
- function f(b) {
2595
- t.emit("mouseLeaveIcon", b);
2602
+ function f(C) {
2603
+ t.emit("mouseLeaveIcon", C);
2596
2604
  }
2597
2605
  return {
2598
2606
  buttonGroupClass: s,
2599
- onClickButton: v,
2607
+ onClickButton: g,
2600
2608
  onMouseEnterButton: m,
2601
2609
  onMouseLeaveButton: f,
2602
2610
  modalRef: u
2603
2611
  };
2604
2612
  }
2605
- function Zt(n, t, e, o, i, l) {
2606
- const a = p(!1), s = k(() => n.enableClear && !n.readonly && !n.disable), { changeTextBoxValue: r, hasClearClass: d } = l;
2613
+ function un(n, t, e, o, i, l) {
2614
+ const a = h(!1), s = S(() => n.enableClear && !n.readonly && !n.disable), { changeTextBoxValue: r, hasClearClass: d } = l;
2607
2615
  function c(f) {
2608
2616
  a.value = f, d.value = f;
2609
2617
  }
2610
- j(i, () => {
2618
+ D(i, () => {
2611
2619
  c(!!i.value);
2612
2620
  });
2613
2621
  function u(f) {
2614
- const b = !n.readonly && !n.disable && n.editable, E = !n.editable;
2615
- f.stopPropagation(), (b || E) && (r(""), i.value = "", c(!a.value), t.emit("clear"));
2622
+ const C = !n.readonly && !n.disable && n.editable, E = !n.editable;
2623
+ f.stopPropagation(), (C || E) && (r(""), i.value = "", c(!a.value), t.emit("clear"));
2616
2624
  }
2617
- function v(f) {
2625
+ function g(f) {
2618
2626
  if (s.value) {
2619
2627
  if (!e.value) {
2620
2628
  c(!1);
@@ -2630,18 +2638,18 @@ function Zt(n, t, e, o, i, l) {
2630
2638
  enableClearButton: s,
2631
2639
  showClearButton: a,
2632
2640
  onClearValue: u,
2633
- onMouseEnterTextBox: v,
2641
+ onMouseEnterTextBox: g,
2634
2642
  onMouseLeaveTextBox: m
2635
2643
  };
2636
2644
  }
2637
- function Qt(n, t, e, o, i) {
2638
- const l = k(() => n.popupOnInput), a = k(() => n.popupOnFocus), { shouldPopupContent: s, closeAllPopover: r } = i, d = p(!1), c = k(() => n.enableTitle ? e.value : ""), u = k(() => (n.disable || n.readonly) && !n.forcePlaceholder ? "" : n.placeholder), v = k(() => n.readonly || !n.editable), m = p(!1), f = k(() => !n.disable && m.value), b = k(() => ({
2645
+ function dn(n, t, e, o, i) {
2646
+ const l = S(() => n.popupOnInput), a = S(() => n.popupOnFocus), { shouldPopupContent: s, closeAllPopover: r } = i, d = h(!1), c = S(() => n.enableTitle ? e.value : ""), u = S(() => (n.disable || n.readonly) && !n.forcePlaceholder ? "" : n.placeholder), g = S(() => n.readonly || !n.editable), m = h(!1), f = S(() => !n.disable && m.value), C = S(() => ({
2639
2647
  "text-left": n.textAlign === "left",
2640
2648
  "text-center": n.textAlign === "center",
2641
2649
  "text-right": n.textAlign === "right",
2642
2650
  "form-control": !0,
2643
2651
  "f-utils-fill": !0
2644
- })), E = k(() => ({
2652
+ })), E = S(() => ({
2645
2653
  "input-group": !0,
2646
2654
  "f-state-disabled": n.disable,
2647
2655
  "f-state-editable": n.editable && !n.disable && !n.readonly,
@@ -2649,77 +2657,77 @@ function Qt(n, t, e, o, i) {
2649
2657
  "f-state-focus": f.value,
2650
2658
  "input-group--has-clear": n.enableClear && d.value
2651
2659
  }));
2652
- function B(x, O = !0) {
2653
- e.value = x, O && (t.emit("change", x), t.emit("update:modelValue", x));
2660
+ function B(I, V = !0) {
2661
+ e.value = I, V && (t.emit("change", I), t.emit("update:modelValue", I));
2654
2662
  }
2655
- function M(x) {
2656
- s.value = !1, B(x, !0);
2663
+ function x(I) {
2664
+ s.value = !1, B(I, !0);
2657
2665
  }
2658
- j(
2666
+ D(
2659
2667
  () => n.modelValue,
2660
- (x) => {
2661
- e.value = x;
2668
+ (I) => {
2669
+ e.value = I;
2662
2670
  }
2663
2671
  );
2664
- function V(x) {
2665
- m.value = !1, t.emit("blur", x), x.stopPropagation();
2672
+ function P(I) {
2673
+ m.value = !1, t.emit("blur", I), I.stopPropagation();
2666
2674
  }
2667
- function A(x) {
2668
- t.emit("click", x), r(), t.slots.default && !n.disable && !n.readonly && n.popupOnClick && i.togglePopup();
2675
+ function $(I) {
2676
+ t.emit("click", I), r(), t.slots.default && !n.disable && !n.readonly && n.popupOnClick && i.togglePopup();
2669
2677
  }
2670
- function T(x) {
2671
- !n.disable && !n.readonly && (m.value = !0, v.value || (t.emit("focus", x), a.value && !s.value && i.popup()));
2678
+ function k(I) {
2679
+ !n.disable && !n.readonly && (m.value = !0, g.value || (t.emit("focus", I), a.value && !s.value && i.popup()));
2672
2680
  }
2673
- function F(x) {
2674
- t.emit("input", x);
2675
- const O = x.target.value;
2676
- o.value = O, e.value !== O && B(O, n.updateOn === "change"), l.value && !s.value && i.popup();
2681
+ function H(I) {
2682
+ t.emit("input", I);
2683
+ const V = I.target.value;
2684
+ o.value = V, e.value !== V && B(V, n.updateOn === "change"), l.value && !s.value && i.popup();
2677
2685
  }
2678
- function g(x) {
2679
- x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
2686
+ function p(I) {
2687
+ I.target.tagName !== "INPUT" && I.preventDefault(), I.stopPropagation();
2680
2688
  }
2681
- function S(x) {
2682
- t.emit("keydown", x);
2689
+ function M(I) {
2690
+ t.emit("keydown", I);
2683
2691
  }
2684
- function N(x) {
2685
- x.key === "Enter" && (l.value || a.value) && i.hidePopup(), t.emit("keyup", x);
2692
+ function R(I) {
2693
+ I.key === "Enter" && (l.value || a.value) && i.hidePopup(), t.emit("keyup", I);
2686
2694
  }
2687
- function U(x) {
2688
- const O = x.target.value;
2689
- x.stopPropagation(), B(O);
2695
+ function z(I) {
2696
+ const V = I.target.value;
2697
+ I.stopPropagation(), B(V);
2690
2698
  }
2691
2699
  return {
2692
2700
  hasFocusedTextBox: f,
2693
- isTextBoxReadonly: v,
2694
- textBoxClass: b,
2701
+ isTextBoxReadonly: g,
2702
+ textBoxClass: C,
2695
2703
  textBoxPlaceholder: u,
2696
2704
  textBoxTitle: c,
2697
2705
  inputGroupClass: E,
2698
2706
  hasClearClass: d,
2699
2707
  changeTextBoxValue: B,
2700
- commitValue: M,
2701
- onBlurTextBox: V,
2702
- onClickTextBox: A,
2703
- onFocusTextBox: T,
2704
- onInput: F,
2705
- onKeyDownTextBox: S,
2706
- onKeyUpTextBox: N,
2707
- onMouseDownTextBox: g,
2708
- onTextBoxValueChange: U
2708
+ commitValue: x,
2709
+ onBlurTextBox: P,
2710
+ onClickTextBox: $,
2711
+ onFocusTextBox: k,
2712
+ onInput: H,
2713
+ onKeyDownTextBox: M,
2714
+ onKeyUpTextBox: R,
2715
+ onMouseDownTextBox: p,
2716
+ onTextBoxValueChange: z
2709
2717
  };
2710
2718
  }
2711
- const Z = "FarrisVue_PopoverInstancesKey";
2712
- function en(n, t, e, o) {
2713
- const i = p(), l = p(!1), { judgeCanOpen: a } = Ne(n, o);
2714
- j(() => i.value, (m, f) => {
2715
- window[Z] = window[Z] || /* @__PURE__ */ new WeakMap(), m ? window[Z].set(e.value, m) : window[Z].delete(e.value);
2719
+ const Q = "FarrisVue_PopoverInstancesKey";
2720
+ function cn(n, t, e, o) {
2721
+ const i = h(), l = h(!1), { judgeCanOpen: a } = Ue(n, o);
2722
+ D(() => i.value, (m, f) => {
2723
+ window[Q] = window[Q] || /* @__PURE__ */ new WeakMap(), m ? window[Q].set(e.value, m) : window[Q].delete(e.value);
2716
2724
  });
2717
2725
  function s() {
2718
- if (window[Z]) {
2719
- const m = window[Z];
2726
+ if (window[Q]) {
2727
+ const m = window[Q];
2720
2728
  document.querySelectorAll(".f-button-edit,.v-popover").forEach((f) => {
2721
- const b = m.get(f);
2722
- b && f !== e.value && !e.value.closest(".popover-fitcontent") && b.hide();
2729
+ const C = m.get(f);
2730
+ C && f !== e.value && !e.value.closest(".popover-fitcontent") && C.hide();
2723
2731
  });
2724
2732
  }
2725
2733
  }
@@ -2744,15 +2752,15 @@ function en(n, t, e, o) {
2744
2752
  function u() {
2745
2753
  l.value = !1;
2746
2754
  }
2747
- function v() {
2755
+ function g() {
2748
2756
  l.value = !0, oe(() => {
2749
2757
  r();
2750
2758
  });
2751
2759
  }
2752
- return { hidePopup: u, showPopup: v, popup: c, shouldPopupContent: l, togglePopup: d, popoverRef: i, closeAllPopover: s };
2760
+ return { hidePopup: u, showPopup: g, popup: c, shouldPopupContent: l, togglePopup: d, popoverRef: i, closeAllPopover: s };
2753
2761
  }
2754
- function tn(n, t, e) {
2755
- const o = p(), {
2762
+ function fn(n, t, e) {
2763
+ const o = h(), {
2756
2764
  isTextBoxReadonly: i,
2757
2765
  textBoxClass: l,
2758
2766
  textBoxPlaceholder: a,
@@ -2761,37 +2769,37 @@ function tn(n, t, e) {
2761
2769
  onClickTextBox: d,
2762
2770
  onFocusTextBox: c,
2763
2771
  onInput: u,
2764
- onKeyDownTextBox: v,
2772
+ onKeyDownTextBox: g,
2765
2773
  onKeyUpTextBox: m,
2766
2774
  onMouseDownTextBox: f,
2767
- onTextBoxValueChange: b
2768
- } = e, E = p(n.id), {
2775
+ onTextBoxValueChange: C
2776
+ } = e, E = h(n.id), {
2769
2777
  uuid: B
2770
- } = Ce(), M = k(() => ({
2778
+ } = Ce(), x = S(() => ({
2771
2779
  // 'border-top-right-radius': '6px',
2772
2780
  // 'border-bottom-right-radius': '6px'
2773
2781
  }));
2774
- J(() => {
2775
- var g, S;
2776
- n.selectOnCreated && ((g = o.value) == null || g.select()), n.focusOnCreated && ((S = o.value) == null || S.focus({
2782
+ Z(() => {
2783
+ var p, M;
2784
+ n.selectOnCreated && ((p = o.value) == null || p.select()), n.focusOnCreated && ((M = o.value) == null || M.focus({
2777
2785
  preventScroll: !0
2778
2786
  })), E.value || (E.value = "button-edit_" + B(8)), E.value = E.value + "-textbox";
2779
2787
  });
2780
- const V = p(!1), A = (g) => {
2781
- g.preventDefault(), V.value = !0;
2782
- }, T = (g) => {
2783
- g.preventDefault(), V.value = !1, u(g);
2788
+ const P = h(!1), $ = (p) => {
2789
+ p.preventDefault(), P.value = !0;
2790
+ }, k = (p) => {
2791
+ p.preventDefault(), P.value = !1, u(p);
2784
2792
  };
2785
- function F(g) {
2786
- V.value || u(g);
2793
+ function H(p) {
2794
+ P.value || u(p);
2787
2795
  }
2788
- return () => h("input", {
2796
+ return () => v("input", {
2789
2797
  id: n.id ? n.id + "-textbox" : void 0,
2790
2798
  ref: o,
2791
2799
  name: "input-group-value",
2792
2800
  autocomplete: n.autoComplete ? "on" : "off",
2793
2801
  class: l.value,
2794
- style: M.value,
2802
+ style: x.value,
2795
2803
  disabled: n.disable,
2796
2804
  maxlength: n.maxLength,
2797
2805
  minlength: n.minLength,
@@ -2802,42 +2810,42 @@ function tn(n, t, e) {
2802
2810
  type: n.inputType,
2803
2811
  value: t.value,
2804
2812
  onBlur: r,
2805
- onChange: b,
2813
+ onChange: C,
2806
2814
  onClick: d,
2807
2815
  onFocus: c,
2808
- onInput: F,
2809
- onKeydown: v,
2816
+ onInput: H,
2817
+ onKeydown: g,
2810
2818
  onKeyup: m,
2811
2819
  onMousedown: f,
2812
- onCompositionend: T,
2813
- onCompositionstart: A
2820
+ onCompositionend: k,
2821
+ onCompositionstart: $
2814
2822
  }, null);
2815
2823
  }
2816
- function nn(n, t, e) {
2817
- const o = p(n.separator), i = k(() => n.readonly || n.disable), {
2824
+ function mn(n, t, e) {
2825
+ const o = h(n.separator), i = S(() => n.readonly || n.disable), {
2818
2826
  changeTextBoxValue: l,
2819
2827
  onFocusTextBox: a,
2820
2828
  onBlurTextBox: s,
2821
2829
  onClickTextBox: r,
2822
2830
  textBoxPlaceholder: d
2823
- } = e, c = k(() => t.value ? t.value.split(o.value).map((f) => ({
2831
+ } = e, c = S(() => t.value ? t.value.split(o.value).map((f) => ({
2824
2832
  name: f,
2825
2833
  selectable: !0
2826
2834
  })) : []);
2827
2835
  function u(f) {
2828
- l(f.map((b) => b.name).join(o.value), !0);
2836
+ l(f.map((C) => C.name).join(o.value), !0);
2829
2837
  }
2830
- j(() => n.separator, (f) => {
2838
+ D(() => n.separator, (f) => {
2831
2839
  o.value = f;
2832
2840
  });
2833
- const v = p(!n.disable && !n.readonly);
2834
- j([() => n.disable, () => n.readonly], ([f, b], [E, B]) => {
2835
- v.value = !f && !b;
2841
+ const g = h(!n.disable && !n.readonly);
2842
+ D([() => n.disable, () => n.readonly], ([f, C], [E, B]) => {
2843
+ g.value = !f && !C;
2836
2844
  });
2837
2845
  function m(f) {
2838
2846
  r(f);
2839
2847
  }
2840
- return () => h(It, {
2848
+ return () => v(Nt, {
2841
2849
  tabindex: n.tabIndex,
2842
2850
  onFocus: a,
2843
2851
  onBlur: s,
@@ -2852,7 +2860,7 @@ function nn(n, t, e) {
2852
2860
  onClick: m
2853
2861
  }, null);
2854
2862
  }
2855
- function on(n, t, e, o) {
2863
+ function pn(n, t, e, o) {
2856
2864
  const {
2857
2865
  buttonGroupClass: i,
2858
2866
  onClickButton: l,
@@ -2862,45 +2870,45 @@ function on(n, t, e, o) {
2862
2870
  enableClearButton: r,
2863
2871
  showClearButton: d,
2864
2872
  onClearValue: c
2865
- } = o, u = p(), v = Et((f) => {
2873
+ } = o, u = h(), g = Rt((f) => {
2866
2874
  l(f);
2867
2875
  }, n.buttonBehavior === "Modal" ? 0 : 200), m = () => {
2868
2876
  t.emit("beforeClearValue");
2869
2877
  };
2870
2878
  return {
2871
- renderButtonGroup: () => h("div", {
2879
+ renderButtonGroup: () => v("div", {
2872
2880
  id: n.id ? `${n.id}-button-group` : void 0,
2873
2881
  class: i.value
2874
- }, [r.value && ye(h("span", {
2882
+ }, [r.value && ye(v("span", {
2875
2883
  class: "input-group-text input-group-clear",
2876
2884
  onClick: c,
2877
2885
  onMousedown: m
2878
- }, [h("i", {
2886
+ }, [v("i", {
2879
2887
  class: "f-icon modal_close"
2880
- }, null)]), [[yt, d.value]]), t.slots.buttonContent ? h("span", {
2888
+ }, null)]), [[St, d.value]]), t.slots.buttonContent ? v("span", {
2881
2889
  class: "input-group-text input-group-append-button",
2882
- onClick: v,
2890
+ onClick: g,
2883
2891
  onMouseenter: a,
2884
2892
  onMouseleave: s
2885
- }, [t.slots.buttonContent()]) : n.buttonContent ? h("span", {
2893
+ }, [t.slots.buttonContent()]) : n.buttonContent ? v("span", {
2886
2894
  class: "input-group-text input-group-append-button",
2887
2895
  innerHTML: n.buttonContent,
2888
2896
  ref: u,
2889
- onClick: (f) => v(f),
2897
+ onClick: (f) => g(f),
2890
2898
  onMouseenter: a,
2891
2899
  onMouseleave: s
2892
2900
  }, null) : null]),
2893
2901
  buttonHandleElement: u
2894
2902
  };
2895
2903
  }
2896
- function ln(n, t, e) {
2897
- const o = p(n.popupMinWidth), {
2904
+ function hn(n, t, e) {
2905
+ const o = h(n.popupMinWidth), {
2898
2906
  hidePopup: i,
2899
2907
  popoverRef: l
2900
2908
  } = e, a = () => {
2901
2909
  t.emit("shown");
2902
2910
  };
2903
- return () => h(Ft, {
2911
+ return () => v(Lt, {
2904
2912
  id: `${n.id}-popover`,
2905
2913
  ref: l,
2906
2914
  placement: n.placement,
@@ -2922,63 +2930,63 @@ function ln(n, t, e) {
2922
2930
  }
2923
2931
  });
2924
2932
  }
2925
- const an = /* @__PURE__ */ Y({
2933
+ const vn = /* @__PURE__ */ J({
2926
2934
  name: "FButtonEdit",
2927
- props: Ht,
2935
+ props: Xt,
2928
2936
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
2929
2937
  setup(n, t) {
2930
- const e = p(), o = p(n.customClass), i = p(n.modelValue), l = en(n, t, e, i), {
2938
+ const e = h(), o = h(n.customClass), i = h(n.modelValue), l = cn(n, t, e, i), {
2931
2939
  shouldPopupContent: a,
2932
2940
  hidePopup: s,
2933
2941
  showPopup: r,
2934
2942
  togglePopup: d
2935
- } = l, c = Jt(n, t, e, l, i), u = p(""), v = Qt(n, t, i, u, l), {
2943
+ } = l, c = rn(n, t, e, l, i), u = h(""), g = dn(n, t, i, u, l), {
2936
2944
  hasFocusedTextBox: m,
2937
2945
  commitValue: f,
2938
- inputGroupClass: b
2939
- } = v, E = Zt(n, t, i, m, u, v), {
2946
+ inputGroupClass: C
2947
+ } = g, E = un(n, t, i, m, u, g), {
2940
2948
  onMouseEnterTextBox: B,
2941
- onMouseLeaveTextBox: M
2942
- } = E, V = p(!1), A = k(() => {
2943
- const z = {
2949
+ onMouseLeaveTextBox: x
2950
+ } = E, P = h(!1), $ = S(() => {
2951
+ const N = {
2944
2952
  "f-button-edit": !0,
2945
2953
  "f-cmp-inputgroup": !0,
2946
2954
  "f-button-edit-nowrap": !n.wrapText
2947
2955
  };
2948
- return o.value && o.value.split(" ").reduce((q, w) => (q[w] = !0, q), z), z;
2949
- }), T = k(() => ({
2956
+ return o.value && o.value.split(" ").reduce((q, w) => (q[w] = !0, q), N), N;
2957
+ }), k = S(() => ({
2950
2958
  overflow: n.wrapText ? "hidden" : ""
2951
- })), F = k(() => ({
2959
+ })), H = S(() => ({
2952
2960
  // paddingLeft: '3px',
2953
2961
  // backgroundColor: '#fff'
2954
2962
  }));
2955
- function g() {
2963
+ function p() {
2956
2964
  if (!n.multiSelect || n.inputType !== "tag" || !e.value)
2957
2965
  return 0;
2958
- let z = 0;
2966
+ let N = 0;
2959
2967
  const q = Array.from(e.value.querySelectorAll(".farris-tag-item"));
2960
- return q && q.length && (z = q.map((w) => w.offsetTop).filter((w) => w > 20).length), z;
2968
+ return q && q.length && (N = q.map((w) => w.offsetTop).filter((w) => w > 20).length), N;
2961
2969
  }
2962
- const S = p(g());
2963
- bt(() => {
2964
- S.value = g();
2970
+ const M = h(p());
2971
+ kt(() => {
2972
+ M.value = p();
2965
2973
  });
2966
- function N() {
2967
- return n.multiSelect && n.inputType === "tag" ? () => h(ae, null, [nn(n, i, v)(), !!S.value && h("div", {
2974
+ function R() {
2975
+ return n.multiSelect && n.inputType === "tag" ? () => v(ae, null, [mn(n, i, g)(), !!M.value && v("div", {
2968
2976
  class: "d-flex flex-row mr-2 more-tags",
2969
2977
  "more-tags": !0
2970
- }, [h("span", {
2978
+ }, [v("span", {
2971
2979
  class: "multi--more-text"
2972
- }, [Q("+"), S.value])])]) : tn(n, i, v);
2980
+ }, [ee("+"), M.value])])]) : fn(n, i, g);
2973
2981
  }
2974
- let U = N();
2975
- j([() => n.multiSelect, () => n.inputType], () => {
2976
- U = N();
2982
+ let z = R();
2983
+ D([() => n.multiSelect, () => n.inputType], () => {
2984
+ z = R();
2977
2985
  });
2978
2986
  const {
2979
- renderButtonGroup: x,
2980
- buttonHandleElement: O
2981
- } = on(n, t, c, E), D = ln(n, t, l), X = p(a.value), _ = {
2987
+ renderButtonGroup: I,
2988
+ buttonHandleElement: V
2989
+ } = pn(n, t, c, E), U = hn(n, t, l), W = h(a.value), _ = {
2982
2990
  displayText: u,
2983
2991
  commitValue: f,
2984
2992
  elementRef: e,
@@ -2988,68 +2996,68 @@ const an = /* @__PURE__ */ Y({
2988
2996
  shouldPopupContent: a,
2989
2997
  togglePopup: d,
2990
2998
  openDialog: () => {
2991
- O.value && n.buttonBehavior === "Modal" && O.value.click();
2999
+ V.value && n.buttonBehavior === "Modal" && V.value.click();
2992
3000
  },
2993
3001
  getModal: () => {
2994
- var z;
2995
- return n.buttonBehavior === "Modal" ? (z = c.modalRef.value) == null ? void 0 : z.value : null;
3002
+ var N;
3003
+ return n.buttonBehavior === "Modal" ? (N = c.modalRef.value) == null ? void 0 : N.value : null;
2996
3004
  },
2997
3005
  getTextbox: () => {
2998
- var z;
2999
- return (z = e.value) == null ? void 0 : z.querySelector("input");
3006
+ var N;
3007
+ return (N = e.value) == null ? void 0 : N.querySelector("input");
3000
3008
  },
3001
3009
  forceClosePopup: () => {
3002
- X.value = !1, V.value = !0, a.value = !1;
3010
+ W.value = !1, P.value = !0, a.value = !1;
3003
3011
  }
3004
3012
  };
3005
- return J(() => {
3013
+ return Z(() => {
3006
3014
  e.value.componentInstance = _, window.onresize = () => {
3007
3015
  document.body.click();
3008
3016
  };
3009
- }), Ct(() => {
3010
- var z;
3011
- window.onresize = null, (z = window[Z]) == null || z.delete(e.value);
3012
- }), t.expose(_), j(() => a.value, async (z, q) => {
3013
- if (V.value) {
3014
- X.value = z, V.value = !1;
3017
+ }), Tt(() => {
3018
+ var N;
3019
+ window.onresize = null, (N = window[Q]) == null || N.delete(e.value);
3020
+ }), t.expose(_), D(() => a.value, async (N, q) => {
3021
+ if (P.value) {
3022
+ W.value = N, P.value = !1;
3015
3023
  return;
3016
3024
  }
3017
- if (!z && n.beforeClosePopup && typeof n.beforeClosePopup == "function") {
3025
+ if (!N && n.beforeClosePopup && typeof n.beforeClosePopup == "function") {
3018
3026
  try {
3019
3027
  const w = await n.beforeClosePopup();
3020
- X.value = !w, (!w || n.readonly) && (a.value = !0);
3028
+ W.value = !w, (!w || n.readonly) && (a.value = !0);
3021
3029
  } catch (w) {
3022
- console.error("Error in beforeClosePopup:", w), X.value = q, a.value = q;
3030
+ console.error("Error in beforeClosePopup:", w), W.value = q, a.value = q;
3023
3031
  }
3024
3032
  return;
3025
3033
  }
3026
- X.value = z;
3034
+ W.value = N;
3027
3035
  }), () => {
3028
- var z, q;
3029
- return h(ae, null, [h("div", xe(t.attrs, {
3036
+ var N, q;
3037
+ return v(ae, null, [v("div", xe(t.attrs, {
3030
3038
  ref: e,
3031
- class: A.value,
3039
+ class: $.value,
3032
3040
  id: n.id ? n.id : void 0,
3033
- style: T.value
3034
- }), [h("div", {
3041
+ style: k.value
3042
+ }), [v("div", {
3035
3043
  id: n.id ? `${n.id}-input-group` : void 0,
3036
- class: b.value,
3037
- style: F.value,
3044
+ class: C.value,
3045
+ style: H.value,
3038
3046
  onMouseenter: B,
3039
- onMouseleave: M
3040
- }, [(q = (z = t.slots).precontent) == null ? void 0 : q.call(z), U(), x()])]), X.value && D()]);
3047
+ onMouseleave: x
3048
+ }, [(q = (N = t.slots).precontent) == null ? void 0 : q.call(N), z(), I()])]), W.value && U()]);
3041
3049
  };
3042
3050
  }
3043
3051
  });
3044
- function sn(n, t, e) {
3052
+ function We(n, t, e) {
3045
3053
  return t;
3046
3054
  }
3047
- function rn(n, t, e) {
3055
+ function je(n, t, e) {
3048
3056
  return t;
3049
3057
  }
3050
- const un = /* @__PURE__ */ new Map([
3051
- ["appearance", ct]
3052
- ]), dn = /* @__PURE__ */ new Map([]), cn = "https://json-schema.org/draft/2020-12/schema", fn = "https://farris-design.gitee.io/radio-group.schema.json", mn = "item-collection-editor", pn = "A Farris Input Component", hn = "object", vn = {
3058
+ const qe = /* @__PURE__ */ new Map([
3059
+ ["appearance", wt]
3060
+ ]), Ge = /* @__PURE__ */ new Map([]), gn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/radio-group.schema.json", bn = "item-collection-editor", Cn = "A Farris Input Component", wn = "object", xn = {
3053
3061
  id: {
3054
3062
  description: "The unique identifier for a item-collection-editor",
3055
3063
  type: "string"
@@ -3133,19 +3141,19 @@ const un = /* @__PURE__ */ new Map([
3133
3141
  type: "number",
3134
3142
  default: 600
3135
3143
  }
3136
- }, gn = [
3144
+ }, Mn = [
3137
3145
  "id",
3138
3146
  "type"
3139
- ], yn = [], bn = {
3140
- $schema: cn,
3141
- $id: fn,
3142
- title: mn,
3143
- description: pn,
3144
- type: hn,
3145
- properties: vn,
3146
- required: gn,
3147
- ignore: yn
3148
- }, Le = {
3147
+ ], In = [], De = {
3148
+ $schema: gn,
3149
+ $id: yn,
3150
+ title: bn,
3151
+ description: Cn,
3152
+ type: wn,
3153
+ properties: xn,
3154
+ required: Mn,
3155
+ ignore: In
3156
+ }, Me = {
3149
3157
  /**
3150
3158
  * 必填的列
3151
3159
  */
@@ -3201,7 +3209,14 @@ const un = /* @__PURE__ */ new Map([
3201
3209
  * 模态框高度
3202
3210
  */
3203
3211
  modalHeight: { type: Number, default: 600 }
3204
- }, Cn = Be(Le, bn, dn, rn), wn = {
3212
+ };
3213
+ Pe(Me, De, Ge, je);
3214
+ const En = Ve(
3215
+ Me,
3216
+ De,
3217
+ Ge,
3218
+ je
3219
+ ), Fn = {
3205
3220
  /**
3206
3221
  * 必填的列
3207
3222
  */
@@ -3236,88 +3251,88 @@ const un = /* @__PURE__ */ new Map([
3236
3251
  */
3237
3252
  readonly: { type: Boolean, default: !1 },
3238
3253
  commandOption: { type: Object, default: { enable: !1 } }
3239
- }, xn = /* @__PURE__ */ Y({
3254
+ }, Bn = /* @__PURE__ */ J({
3240
3255
  name: "FItemCollectionEditorInner",
3241
- props: wn,
3256
+ props: Fn,
3242
3257
  emits: ["change"],
3243
3258
  setup(n, t) {
3244
3259
  let e = "";
3245
3260
  const {
3246
3261
  guid: o
3247
- } = Ce(), i = new kt(), l = p(n.valueField), a = p(n.nameField), s = {
3262
+ } = Ce(), i = new Ht(), l = h(n.valueField), a = h(n.nameField), s = {
3248
3263
  editMode: "cell"
3249
3264
  }, r = {
3250
3265
  fitColumns: !0
3251
- }, d = p(), c = n.columns;
3266
+ }, d = h(), c = n.columns;
3252
3267
  let u = n.datas;
3253
- j(() => [n.datas], () => {
3268
+ D(() => [n.datas], () => {
3254
3269
  u = n.datas, d.value.updateDataSource(u);
3255
3270
  });
3256
- function v() {
3257
- const F = {};
3258
- return c.forEach((g) => {
3259
- g.editor && (g.editor.type === "checkbox" || g.editor.type === "switch") ? F[g.field] = !1 : F[g.field] = "";
3260
- }), F;
3271
+ function g() {
3272
+ const p = {};
3273
+ return c.forEach((M) => {
3274
+ M.editor && (M.editor.type === "checkbox" || M.editor.type === "switch") ? p[M.field] = !1 : p[M.field] = "";
3275
+ }), p;
3261
3276
  }
3262
3277
  function m() {
3263
3278
  if (n.dynamicMappingKeys) {
3264
- const F = "请先填写XXX", g = l.value.trim() ? a.value.trim() ? "" : "枚举名称字段" : "枚举值字段";
3279
+ const p = "请先填写XXX", M = l.value.trim() ? a.value.trim() ? "" : "枚举名称字段" : "枚举值字段";
3265
3280
  return i.warning({
3266
3281
  position: "top-center",
3267
- message: F.replace("XXX", g)
3282
+ message: p.replace("XXX", M)
3268
3283
  }), !1;
3269
3284
  }
3270
3285
  return !0;
3271
3286
  }
3272
- function f(F) {
3273
- const g = "不允许重复。";
3287
+ function f(p) {
3288
+ const M = "不允许重复。";
3274
3289
  if (!m())
3275
3290
  return !1;
3276
- if (!F || F.length === 0)
3291
+ if (!p || p.length === 0)
3277
3292
  return n.canEmpty ? !0 : (i.warning({
3278
3293
  position: "top-center",
3279
- message: "请添加值"
3294
+ message: "请添加值。"
3280
3295
  }), !1);
3281
- const S = n.requiredFields || [], N = "不允许为空";
3282
- for (const x of F)
3283
- for (const O of Object.keys(x)) {
3284
- const D = c.find((X) => X.field === O);
3285
- if (D && D.editor && (D.editor.type === "checkbox" || D.editor.type === "switch")) {
3286
- if (S.includes(O) && (x[O] === null || x[O] === void 0))
3296
+ const R = n.requiredFields || [], z = "不允许为空。";
3297
+ for (const V of p)
3298
+ for (const U of Object.keys(V)) {
3299
+ const W = c.find((_) => _.field === U);
3300
+ if (W && W.editor && (W.editor.type === "checkbox" || W.editor.type === "switch")) {
3301
+ if (R.includes(U) && (V[U] === null || V[U] === void 0))
3287
3302
  return i.warning({
3288
3303
  position: "top-center",
3289
- message: D.title + N
3304
+ message: W.title + z
3290
3305
  }), !1;
3291
- } else if (S.includes(O) && (x[O] === void 0 || x[O] === "" || x[O] === null))
3306
+ } else if (R.includes(U) && (V[U] === void 0 || V[U] === "" || V[U] === null))
3292
3307
  return i.warning({
3293
3308
  position: "top-center",
3294
- message: D.title + N
3309
+ message: W.title + z
3295
3310
  }), !1;
3296
3311
  }
3297
- const U = n.uniqueFields || [];
3298
- for (const x of U) {
3299
- const O = F.map((_) => _[x]), D = new Set(O), X = Array.from(D);
3300
- if (O.length !== X.length) {
3301
- const _ = c.find((z) => z.field === x);
3312
+ const I = n.uniqueFields || [];
3313
+ for (const V of I) {
3314
+ const U = p.map((N) => N[V]), W = new Set(U), _ = Array.from(W);
3315
+ if (U.length !== _.length) {
3316
+ const N = c.find((q) => q.field === V);
3302
3317
  return i.warning({
3303
3318
  position: "top-center",
3304
- message: _.title + g
3319
+ message: N.title + M
3305
3320
  }), !1;
3306
3321
  }
3307
3322
  }
3308
3323
  return !0;
3309
3324
  }
3310
- function b() {
3325
+ function C() {
3311
3326
  if (n.readonly || !m())
3312
3327
  return;
3313
- const F = v(), g = o();
3328
+ const p = g(), M = o();
3314
3329
  u.push({
3315
- hId: g,
3316
- ...F
3317
- }), d.value.updateDataSource(u), d.value.selectRowById(g);
3330
+ hId: M,
3331
+ ...p
3332
+ }), d.value.updateDataSource(u), d.value.selectRowById(M);
3318
3333
  }
3319
- function E() {
3320
- u && u.length > 0 && d.value.selectRowById(u[0].hId);
3334
+ function E(p) {
3335
+ u && u.length > 0 ? (p || (p = u[0].hId), d.value.selectRowById(p)) : e = "";
3321
3336
  }
3322
3337
  function B() {
3323
3338
  if (!e) {
@@ -3327,65 +3342,72 @@ const un = /* @__PURE__ */ new Map([
3327
3342
  });
3328
3343
  return;
3329
3344
  }
3330
- u = [...u.filter((g) => g.hId !== e)], d.value.updateDataSource(u), E();
3331
- }
3332
- function M(F) {
3333
- if (!F || F.length === 0)
3334
- return F;
3335
- const g = [];
3336
- return F.forEach((S) => {
3345
+ const p = u.findIndex((z) => z.hId === e);
3346
+ u = [...u.filter((z) => z.hId !== e)], d.value.updateDataSource(u);
3347
+ let R = "";
3348
+ p < u.length && u.length > 0 && (R = u[p].hId), E(R);
3349
+ }
3350
+ function x(p) {
3351
+ if (!p || p.length === 0)
3352
+ return p;
3353
+ const M = [];
3354
+ return p.forEach((R) => {
3337
3355
  const {
3338
- value: N,
3339
- name: U,
3340
- ...x
3341
- } = S, O = Object.assign({}, x);
3342
- O[l.value.trim()] = N, O[a.value.trim()] = U, g.push(O);
3343
- }), g;
3344
- }
3345
- function V() {
3356
+ value: z,
3357
+ name: I,
3358
+ ...V
3359
+ } = R, U = Object.assign({}, V);
3360
+ U[l.value.trim()] = z, U[a.value.trim()] = I, M.push(U);
3361
+ }), M;
3362
+ }
3363
+ function P() {
3346
3364
  d.value.endEditCell();
3347
- const F = [];
3348
- return u.forEach((g) => {
3365
+ const p = [];
3366
+ return u.forEach((M) => {
3349
3367
  const {
3350
- hId: S,
3351
- ...N
3352
- } = g, U = {};
3353
- for (const x in N)
3354
- x.startsWith("_") || (U[x] = N[x]);
3355
- F.push(U);
3356
- }), F;
3357
- }
3358
- function A() {
3359
- let F = V();
3360
- return f(F) ? (n.dynamicMappingKeys ? (F = M(F), t.emit("change", F, void 0, {
3368
+ hId: R,
3369
+ ...z
3370
+ } = M, I = {};
3371
+ for (const V in z)
3372
+ V.startsWith("_") || (I[V] = z[V]);
3373
+ p.push(I);
3374
+ }), p;
3375
+ }
3376
+ function $() {
3377
+ let p = P();
3378
+ return f(p) ? (n.dynamicMappingKeys ? (p = x(p), t.emit("change", p, void 0, {
3361
3379
  valueField: l.value.trim(),
3362
3380
  nameField: a.value.trim()
3363
- })) : t.emit("change", F, void 0, null), !0) : !1;
3381
+ })) : t.emit("change", p, void 0, null), !0) : !1;
3382
+ }
3383
+ function k() {
3384
+ return u;
3364
3385
  }
3365
3386
  t.expose({
3366
- clickConfirm: A,
3367
- getItems: V
3368
- }), J(() => {
3387
+ clickConfirm: $,
3388
+ getItems: P,
3389
+ getDataGridDatas: k
3390
+ }), Z(() => {
3369
3391
  E();
3370
3392
  });
3371
- function T(F) {
3372
- var g;
3373
- e = (g = F[0]) == null ? void 0 : g.hId;
3393
+ function H(p) {
3394
+ var M;
3395
+ e = (M = p[0]) == null ? void 0 : M.hId;
3374
3396
  }
3375
- return () => h("div", {
3397
+ return () => v("div", {
3376
3398
  class: "f-utils-fill-flex-column h-100"
3377
- }, [!n.readonly && h("div", {
3399
+ }, [!n.readonly && v("div", {
3378
3400
  class: "mb-1 py-1 ml-1"
3379
- }, [h("button", {
3401
+ }, [v("button", {
3380
3402
  class: "btn f-rt-btn f-btn-ml btn-primary",
3381
- onClick: () => b()
3382
- }, [Q("新增")]), h("button", {
3403
+ onClick: () => C()
3404
+ }, [ee("新增")]), v("button", {
3383
3405
  class: "btn f-rt-btn f-btn-ml btn-secondary",
3384
3406
  onClick: () => B()
3385
- }, [Q("删除")])]), h("div", {
3407
+ }, [ee("删除")])]), v("div", {
3386
3408
  class: "f-utils-fill border",
3387
3409
  style: "margin:0 8px;border-radius:12px;"
3388
- }, [h(Bt, {
3410
+ }, [v(zt, {
3389
3411
  ref: d,
3390
3412
  showBorder: !0,
3391
3413
  idField: "hId",
@@ -3396,10 +3418,10 @@ const un = /* @__PURE__ */ new Map([
3396
3418
  columnOption: r,
3397
3419
  commandOption: n.commandOption,
3398
3420
  fit: !0,
3399
- onSelectionChange: T
3421
+ onSelectionChange: H
3400
3422
  }, null)])]);
3401
3423
  }
3402
- }), Mn = {
3424
+ }), Sn = {
3403
3425
  showCloseButton: { type: Boolean, default: !0 },
3404
3426
  position: { type: String, default: "top-center" },
3405
3427
  timeout: { type: Number, default: 3e3 },
@@ -3412,114 +3434,114 @@ const un = /* @__PURE__ */ new Map([
3412
3434
  animate: { type: String, default: "fadeIn" },
3413
3435
  options: { type: Object },
3414
3436
  safeHtml: { type: Boolean, default: !0 }
3415
- }, En = {
3437
+ }, kn = {
3416
3438
  showCloseButton: { type: Boolean, default: !0 },
3417
3439
  animate: { type: String, default: "fadeIn" },
3418
3440
  options: { type: Object }
3419
- }, be = /* @__PURE__ */ Y({
3441
+ }, be = /* @__PURE__ */ J({
3420
3442
  name: "Toast",
3421
- props: En,
3443
+ props: kn,
3422
3444
  emits: ["close", "click"],
3423
3445
  setup: (n, t) => {
3424
- const e = p(n.animate), o = "fadeOut", i = k(() => n.options), l = p(!1), a = k(() => i.value.title && i.value.message), s = k(() => !i.value.title && i.value.message), r = k(() => {
3425
- const M = {
3446
+ const e = h(n.animate), o = "fadeOut", i = S(() => n.options), l = h(!1), a = S(() => i.value.title && i.value.message), s = S(() => !i.value.title && i.value.message), r = S(() => {
3447
+ const x = {
3426
3448
  animated: l.value,
3427
3449
  toast: !0,
3428
3450
  "toast--only-content": !a.value
3429
3451
  };
3430
- return M[n.animate] = !1, M[o] = l.value, M["toasty-type-" + i.value.type] = !0, i.value.theme && (M[i.value.theme] = !0), M;
3431
- }), d = k(() => {
3432
- const A = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, T = {
3452
+ return x[n.animate] = !1, x[o] = l.value, x["toasty-type-" + i.value.type] = !0, i.value.theme && (x[i.value.theme] = !0), x;
3453
+ }), d = S(() => {
3454
+ const $ = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, k = {
3433
3455
  "f-icon": !0
3434
3456
  };
3435
- return T[A] = !0, T;
3436
- }), c = k(() => i.value.title || i.value.message), u = k(() => n.showCloseButton), v = k(() => !!i.value.buttons || !!t.slots.default), m = k(() => te.getLocale() === "en" ? {
3457
+ return k[$] = !0, k;
3458
+ }), c = S(() => i.value.title || i.value.message), u = S(() => n.showCloseButton), g = S(() => !!i.value.buttons || !!t.slots.default), m = S(() => ne.getLocale() === "en" ? {
3437
3459
  wordBreak: "keep-all",
3438
3460
  overflowWrap: "break-word"
3439
3461
  } : {});
3440
- function f(M) {
3441
- M.stopPropagation(), M.preventDefault(), l.value = !1, setTimeout(() => {
3462
+ function f(x) {
3463
+ x.stopPropagation(), x.preventDefault(), l.value = !1, setTimeout(() => {
3442
3464
  t.emit("close", i.value);
3443
3465
  }, 200);
3444
3466
  }
3445
- function b(M, V) {
3467
+ function C(x, P) {
3446
3468
  }
3447
- function E(M) {
3448
- return `f-preten-link ${M.customClass ? M.customClass : ""}`;
3469
+ function E(x) {
3470
+ return `f-preten-link ${x.customClass ? x.customClass : ""}`;
3449
3471
  }
3450
- j(e, () => {
3472
+ D(e, () => {
3451
3473
  e.value;
3452
3474
  });
3453
3475
  const B = () => {
3454
- var M;
3455
- return h(ae, null, [h("div", {
3476
+ var x;
3477
+ return v(ae, null, [v("div", {
3456
3478
  class: "after-toast-msg text-right"
3457
- }, [!t.slots.default && ((M = i.value.buttons) == null ? void 0 : M.map((V) => h("span", {
3458
- class: E(V),
3459
- onClick: (A) => void 0
3460
- }, [V.text]))), t.slots.default && t.slots.default()])]);
3479
+ }, [!t.slots.default && ((x = i.value.buttons) == null ? void 0 : x.map((P) => v("span", {
3480
+ class: E(P),
3481
+ onClick: ($) => void 0
3482
+ }, [P.text]))), t.slots.default && t.slots.default()])]);
3461
3483
  };
3462
- return () => h("div", {
3484
+ return () => v("div", {
3463
3485
  class: r.value,
3464
3486
  style: "min-height:44px"
3465
- }, [u.value && h("button", {
3466
- title: te.getLocaleValue("messageBox.close"),
3487
+ }, [u.value && v("button", {
3488
+ title: ne.getLocaleValue("messageBox.close"),
3467
3489
  class: "toast-close f-btn-icon f-bare",
3468
3490
  onClick: f
3469
- }, [h("span", {
3491
+ }, [v("span", {
3470
3492
  class: "f-icon modal_close"
3471
- }, null)]), c.value && h("section", {
3493
+ }, null)]), c.value && v("section", {
3472
3494
  class: "modal-tips"
3473
- }, [!a.value && h("div", {
3495
+ }, [!a.value && v("div", {
3474
3496
  class: "float-left modal-tips-iconwrap"
3475
- }, [h("span", {
3497
+ }, [v("span", {
3476
3498
  class: d.value
3477
- }, null)]), h("div", {
3499
+ }, null)]), v("div", {
3478
3500
  class: "modal-tips-content"
3479
- }, [a.value && h(ae, null, [h("h5", {
3501
+ }, [a.value && v(ae, null, [v("h5", {
3480
3502
  class: "toast-title modal-tips-title",
3481
3503
  innerHTML: i.value.title
3482
- }, null), h("p", {
3504
+ }, null), v("p", {
3483
3505
  class: "toast-msg",
3484
3506
  innerHTML: i.value.message,
3485
3507
  style: m.value
3486
- }, null), v.value && B()]), s.value && (i.value.buttons ? h("div", {
3508
+ }, null), g.value && B()]), s.value && (i.value.buttons ? v("div", {
3487
3509
  class: "toast-title-btns-wrapper d-flex"
3488
- }, [h("h5", {
3510
+ }, [v("h5", {
3489
3511
  class: "toast-title modal-tips-title only-toast-msg",
3490
3512
  style: m.value,
3491
3513
  innerHTML: i.value.message
3492
- }, null), h("div", {
3514
+ }, null), v("div", {
3493
3515
  class: "after-toast-title text-right ml-auto"
3494
- }, [B()])]) : h("h5", {
3516
+ }, [B()])]) : v("h5", {
3495
3517
  class: "toast-title modal-tips-title only-toast-msg",
3496
3518
  style: m.value,
3497
3519
  innerHTML: i.value.message
3498
3520
  }, null))])])]);
3499
3521
  }
3500
- }), ue = /* @__PURE__ */ Y({
3522
+ }), de = /* @__PURE__ */ J({
3501
3523
  name: "Notify",
3502
- props: Mn,
3524
+ props: Sn,
3503
3525
  emits: ["close", "empty"],
3504
3526
  setup(n, t) {
3505
- const e = k(() => ({
3527
+ const e = S(() => ({
3506
3528
  "farris-notify": !0
3507
3529
  })), o = {
3508
3530
  left: 12,
3509
3531
  right: 12,
3510
3532
  top: 20,
3511
3533
  bottom: 12
3512
- }, i = p(), l = p(n.options), a = p(n.showCloseButton), s = k(() => n.position || "bottom-right"), r = k(() => n.timeout != null ? n.timeout : 3e3), d = k(() => {
3513
- const v = n.bottom ? n.bottom : o.bottom, m = n.top ? n.top : o.top, f = {
3534
+ }, i = h(), l = h(n.options), a = h(n.showCloseButton), s = S(() => n.position || "bottom-right"), r = S(() => n.timeout != null ? n.timeout : 3e3), d = S(() => {
3535
+ const g = n.bottom ? n.bottom : o.bottom, m = n.top ? n.top : o.top, f = {
3514
3536
  transition: "all 0.2s ease",
3515
3537
  left: s.value.indexOf("left") > -1 ? `${n.left ? n.left : o.left}px` : "",
3516
3538
  right: s.value.indexOf("right") > -1 ? `${n.right ? n.right : o.right}px` : "",
3517
3539
  top: s.value.indexOf("top") > -1 ? `${m}px` : "",
3518
- bottom: s.value.indexOf("bottom") > -1 ? `${v}px` : ""
3540
+ bottom: s.value.indexOf("bottom") > -1 ? `${g}px` : ""
3519
3541
  };
3520
3542
  return s.value.indexOf("center") > -1 && (f.left = "50%", f.marginLeft = "calc(-24rem / 2)", s.value === "center-center" && (f.top = "50%", f.transform = "translate(-50%, -50%)")), f;
3521
3543
  });
3522
- function c(v) {
3544
+ function c(g) {
3523
3545
  t.emit("close");
3524
3546
  }
3525
3547
  r.value && setTimeout(() => {
@@ -3529,25 +3551,25 @@ const un = /* @__PURE__ */ new Map([
3529
3551
  container: i,
3530
3552
  notifyPosition: s
3531
3553
  });
3532
- function u(v, m) {
3554
+ function u(g, m) {
3533
3555
  c();
3534
3556
  }
3535
- return () => h("div", {
3557
+ return () => v("div", {
3536
3558
  class: e.value,
3537
3559
  style: d.value,
3538
3560
  ref: i
3539
- }, [h(be, {
3561
+ }, [v(be, {
3540
3562
  options: l.value,
3541
3563
  showCloseButton: a.value,
3542
3564
  animate: n.animate,
3543
- onClose: (v) => u(v, l.value)
3565
+ onClose: (g) => u(g, l.value)
3544
3566
  }, null)]);
3545
3567
  }
3546
3568
  });
3547
- class In {
3569
+ class Tn {
3548
3570
  constructor() {
3549
- P(this, "notifyRefs", []);
3550
- P(this, "globalConfig", wt({}));
3571
+ T(this, "notifyRefs", []);
3572
+ T(this, "globalConfig", Pt({}));
3551
3573
  }
3552
3574
  escapeAllHtml(t) {
3553
3575
  if (typeof t != "string" || !t)
@@ -3568,7 +3590,7 @@ class In {
3568
3590
  const a = we({
3569
3591
  setup() {
3570
3592
  var d;
3571
- const s = p();
3593
+ const s = h();
3572
3594
  function r() {
3573
3595
  s.value.container.style.transform = "scale(0)", setTimeout(() => {
3574
3596
  e.updateNotifyPositionForClose(i, s), a.unmount();
@@ -3577,20 +3599,20 @@ class In {
3577
3599
  if (i.position.indexOf("top") > -1) {
3578
3600
  const c = e.getNotifyInstances(i.position), u = c[c.length - 1];
3579
3601
  if (u) {
3580
- const v = u.value.container.getBoundingClientRect();
3581
- i.top = v.bottom;
3602
+ const g = u.value.container.getBoundingClientRect();
3603
+ i.top = g.bottom;
3582
3604
  }
3583
3605
  }
3584
- return i.safeHtml && ((d = i.options) != null && d.message) && (i.options.message = e.escapeAllHtml(i.options.message)), me(() => {
3606
+ return i.safeHtml && ((d = i.options) != null && d.message) && (i.options.message = e.escapeAllHtml(i.options.message)), pe(() => {
3585
3607
  document.body.removeChild(l);
3586
- }), J(() => {
3608
+ }), Z(() => {
3587
3609
  e.updateNotifyPositionForCreate(i, s);
3588
- }), () => h(Se, {
3610
+ }), () => v(Ne, {
3589
3611
  mode: "out-in",
3590
3612
  name: "fade",
3591
3613
  appear: !0
3592
3614
  }, {
3593
- default: () => [h(ue, xe({
3615
+ default: () => [v(de, xe({
3594
3616
  ref: s
3595
3617
  }, i, {
3596
3618
  onClose: r
@@ -3598,7 +3620,7 @@ class In {
3598
3620
  });
3599
3621
  }
3600
3622
  });
3601
- return a.provide("NotifyService", this), document.body.appendChild(l), a.use(te.i18n), a.mount(l), a;
3623
+ return a.provide("NotifyService", this), document.body.appendChild(l), a.use(ne.i18n), a.mount(l), a;
3602
3624
  }
3603
3625
  getNotifyInstances(t) {
3604
3626
  return this.notifyRefs.filter((e) => e.value.notifyPosition === t);
@@ -3663,33 +3685,33 @@ class In {
3663
3685
  }), this.notifyRefs.length = 0;
3664
3686
  }
3665
3687
  }
3666
- const ze = Symbol("NOTIFY_SERVICE_TOKEN");
3667
- ue.install = (n) => {
3668
- n.component(ue.name, ue), n.component(be.name, be);
3669
- const t = new In();
3670
- n.provide(ze, t), n.provide("FNotifyService", t);
3688
+ const Ke = Symbol("NOTIFY_SERVICE_TOKEN");
3689
+ de.install = (n) => {
3690
+ n.component(de.name, de), n.component(be.name, be);
3691
+ const t = new Tn();
3692
+ n.provide(Ke, t), n.provide("FNotifyService", t);
3671
3693
  };
3672
- const Fn = /* @__PURE__ */ Y({
3694
+ const Pn = /* @__PURE__ */ J({
3673
3695
  name: "FItemCollectionEditor",
3674
- props: Le,
3696
+ props: Me,
3675
3697
  components: {},
3676
3698
  emits: ["change"],
3677
3699
  setup(n, t) {
3678
- const e = de(ze), {
3700
+ const e = ce(Ke), {
3679
3701
  guid: o
3680
- } = Ce(), i = p(`共 ${(n.modelValue || []).length} 项`), l = p(n.valueField), a = p(n.nameField), s = p();
3702
+ } = Ce(), i = h(`共 ${(n.modelValue || []).length} 项`), l = h(n.valueField), a = h(n.nameField), s = h();
3681
3703
  function r() {
3682
3704
  let m = [];
3683
3705
  return n.dynamicMappingKeys ? (m = [], l.value = l.value.trim(), a.value = a.value.trim(), (n.modelValue || []).forEach((f) => {
3684
3706
  if (l.value && a.value) {
3685
3707
  const {
3686
- [l.value]: b,
3708
+ [l.value]: C,
3687
3709
  [a.value]: E,
3688
3710
  ...B
3689
- } = f, M = B || {};
3690
- M.value = b, M.name = E, M.hId = o(), m.push(M);
3711
+ } = f, x = B || {};
3712
+ x.value = C, x.name = E, x.hId = o(), m.push(x);
3691
3713
  }
3692
- })) : (m = Te(n.modelValue || []), m.forEach((f) => {
3714
+ })) : (m = Le(n.modelValue || []), m.forEach((f) => {
3693
3715
  f.hId = o();
3694
3716
  })), m;
3695
3717
  }
@@ -3727,10 +3749,10 @@ const Fn = /* @__PURE__ */ Y({
3727
3749
  class: "btn btn-primary",
3728
3750
  handle: async (m) => {
3729
3751
  if (n.beforeSubmit && typeof n.beforeSubmit == "function") {
3730
- const b = s.value.getItems();
3752
+ const C = s.value.getItems();
3731
3753
  if (!await n.beforeSubmit({
3732
3754
  notifyService: e,
3733
- data: b
3755
+ data: C
3734
3756
  }))
3735
3757
  return !1;
3736
3758
  }
@@ -3738,13 +3760,13 @@ const Fn = /* @__PURE__ */ Y({
3738
3760
  }
3739
3761
  }]
3740
3762
  };
3741
- function v(m, f, b) {
3742
- i.value = `共 ${m.length} 项`, t.emit("change", m, f, b);
3763
+ function g(m, f, C) {
3764
+ i.value = `共 ${m.length} 项`, t.emit("change", m, f, C);
3743
3765
  }
3744
- return j(() => n.modelValue, (m) => {
3766
+ return D(() => n.modelValue, (m) => {
3745
3767
  i.value = `共 ${(n.modelValue || []).length} 项`;
3746
- }), J(() => {
3747
- }), () => h(an, {
3768
+ }), Z(() => {
3769
+ }), () => v(vn, {
3748
3770
  "button-behavior": "Modal",
3749
3771
  "modal-options": u,
3750
3772
  modelValue: i.value,
@@ -3752,45 +3774,45 @@ const Fn = /* @__PURE__ */ Y({
3752
3774
  editable: !1,
3753
3775
  beforeOpen: c
3754
3776
  }, {
3755
- default: () => [h("div", {
3777
+ default: () => [v("div", {
3756
3778
  class: "f-utils-absolute-all f-utils-flex-column"
3757
- }, [n.dynamicMappingKeys && h("div", {
3779
+ }, [n.dynamicMappingKeys && v("div", {
3758
3780
  class: "farris-form-controls-inline p-2 f-form-layout farris-form f-form-lable-auto"
3759
- }, [h("div", {
3781
+ }, [v("div", {
3760
3782
  class: "farris-group-wrap mr-3"
3761
- }, [h("div", {
3783
+ }, [v("div", {
3762
3784
  class: "form-group farris-form-group"
3763
- }, [h("label", {
3785
+ }, [v("label", {
3764
3786
  class: "col-form-label"
3765
- }, [h("span", {
3787
+ }, [v("span", {
3766
3788
  class: "farris-label-info text-danger"
3767
- }, [Q("*")]), h("span", {
3789
+ }, [ee("*")]), v("span", {
3768
3790
  class: "farris-label-text"
3769
- }, [Q("枚举值字段")])]), h("div", {
3791
+ }, [ee("枚举值字段")])]), v("div", {
3770
3792
  class: "farris-input-wrap"
3771
- }, [ye(h("input", {
3793
+ }, [ye(v("input", {
3772
3794
  type: "input",
3773
3795
  class: "form-control",
3774
3796
  "onUpdate:modelValue": (m) => l.value = m,
3775
3797
  readonly: n.readonly
3776
- }, null), [[Ie, l.value]])])])]), h("div", {
3798
+ }, null), [[ke, l.value]])])])]), v("div", {
3777
3799
  class: "farris-group-wrap"
3778
- }, [h("div", {
3800
+ }, [v("div", {
3779
3801
  class: "form-group farris-form-group"
3780
- }, [h("label", {
3802
+ }, [v("label", {
3781
3803
  class: "col-form-label"
3782
- }, [h("span", {
3804
+ }, [v("span", {
3783
3805
  class: "farris-label-info text-danger"
3784
- }, [Q("*")]), h("span", {
3806
+ }, [ee("*")]), v("span", {
3785
3807
  class: "farris-label-text"
3786
- }, [Q("枚举名称字段")])]), h("div", {
3808
+ }, [ee("枚举名称字段")])]), v("div", {
3787
3809
  class: "farris-input-wrap"
3788
- }, [ye(h("input", {
3810
+ }, [ye(v("input", {
3789
3811
  type: "input",
3790
3812
  class: "form-control",
3791
3813
  "onUpdate:modelValue": (m) => a.value = m,
3792
3814
  readonly: n.readonly
3793
- }, null), [[Ie, a.value]])])])])]), h(xn, {
3815
+ }, null), [[ke, a.value]])])])])]), v(Bn, {
3794
3816
  ref: s,
3795
3817
  valueField: l.value,
3796
3818
  nameField: a.value,
@@ -3801,11 +3823,11 @@ const Fn = /* @__PURE__ */ Y({
3801
3823
  canEmpty: n.canEmpty,
3802
3824
  datas: r(),
3803
3825
  columns: d(),
3804
- onChange: (m, f, b) => v(m, f, b)
3826
+ onChange: (m, f, C) => g(m, f, C)
3805
3827
  }, null)])]
3806
3828
  });
3807
3829
  }
3808
- }), Bn = "https://json-schema.org/draft/2020-12/schema", kn = "https://farris-design.gitee.io/radio-group.schema.json", Sn = "radio-group", Tn = "A Farris Input Component", Pn = "object", Vn = {
3830
+ }), Vn = "https://json-schema.org/draft/2020-12/schema", On = "https://farris-design.gitee.io/radio-group.schema.json", Rn = "radio-group", Nn = "A Farris Input Component", Ln = "object", zn = {
3809
3831
  id: {
3810
3832
  description: "The unique identifier for a radio-group",
3811
3833
  type: "string"
@@ -3890,32 +3912,39 @@ const Fn = /* @__PURE__ */ Y({
3890
3912
  description: "值变化事件",
3891
3913
  type: "string"
3892
3914
  }
3893
- }, On = [
3915
+ }, Hn = [
3894
3916
  "type"
3895
- ], Rn = [
3917
+ ], An = [
3896
3918
  "id",
3897
3919
  "appearance",
3898
3920
  "binding",
3899
3921
  "visible"
3900
- ], Nn = {
3901
- $schema: Bn,
3902
- $id: kn,
3903
- title: Sn,
3904
- description: Tn,
3905
- type: Pn,
3906
- properties: Vn,
3907
- required: On,
3908
- ignore: Rn
3909
- }, He = Be(mt, Nn, un, sn);
3910
- fe.register = (n, t, e, o) => {
3911
- n["radio-group"] = ft, t["radio-group"] = He, n["item-collection-editor"] = Fn, t["item-collection-editor"] = Cn;
3922
+ ], Xe = {
3923
+ $schema: Vn,
3924
+ $id: On,
3925
+ title: Rn,
3926
+ description: Nn,
3927
+ type: Ln,
3928
+ properties: zn,
3929
+ required: Hn,
3930
+ ignore: An
3931
+ }, Qn = Pe(Oe, Xe, qe, We), _e = Ve(
3932
+ Oe,
3933
+ Xe,
3934
+ qe,
3935
+ We
3936
+ );
3937
+ me.register = (n, t, e, o, i) => {
3938
+ n["radio-group"] = xt, t["radio-group"] = _e(i), n["item-collection-editor"] = Pn, t["item-collection-editor"] = En(i);
3912
3939
  };
3913
- fe.registerDesigner = (n, t, e) => {
3914
- n["radio-group"] = fe, t["radio-group"] = He;
3940
+ me.registerDesigner = (n, t, e, o) => {
3941
+ n["radio-group"] = me, t["radio-group"] = _e(o);
3915
3942
  };
3916
- const _n = dt(fe);
3943
+ const ei = Ct(me);
3917
3944
  export {
3918
- fe as FRadioGroupDesign,
3919
- _n as default,
3920
- He as propsResolver
3945
+ Pn as FItemCollectionEditor,
3946
+ me as FRadioGroupDesign,
3947
+ ei as default,
3948
+ Qn as propsResolver,
3949
+ _e as propsResolverGenerator
3921
3950
  };