@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,324 +1,327 @@
1
- var me = Object.defineProperty;
2
- var pe = (o, e, t) => e in o ? me(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var B = (o, e, t) => pe(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { getCustomStyle as X, getCustomClass as Y, excludeProperties as fe, withInstall as ge } from "../../components/common/index.esm.js";
5
- import ve, { listViewProps as he, FListViewTable as we } from "../../components/list-view/index.esm.js";
6
- import { resolveAppearance as ye, createPropsResolver as Z, createCollectionBindingResolver as Ce } from "../../components/dynamic-resolver/index.esm.js";
7
- import { ref as C, computed as U, createVNode as a, Fragment as j, watch as be, withModifiers as Ie, withDirectives as Ve, vModelText as Se, createTextVNode as O, defineComponent as ee, inject as W, onMounted as te } from "vue";
8
- import { DgControl as _, canvasChanged as Me, refreshCanvas as ke, useDesignerComponent as ne } from "../../components/designer-canvas/index.esm.js";
9
- import { useFilter as xe, useIdentify as Ee, useHierarchy as Te, useGroupData as Pe, useDataView as Fe, useSelection as Re, useRow as Ne, useEdit as Be, useVisualDataBound as Ue, useVisualDataCell as $e, useVisualDataRow as De, useVisualGroupRow as Oe, useVisualSummaryRow as Ae, useVisualData as Le } from "../../components/data-view/index.esm.js";
10
- import { LocaleService as _e } from "../../components/locale/index.esm.js";
11
- import { FCheckbox as z } from "../../components/checkbox/index.esm.js";
12
- import { cloneDeep as je } from "lodash-es";
13
- function Ge(o, e) {
14
- function t(s) {
15
- const i = [];
16
- let c = s.nextNode();
1
+ var ge = Object.defineProperty;
2
+ var ve = (o, e, t) => e in o ? ge(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var $ = (o, e, t) => ve(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { getCustomStyle as Q, getCustomClass as Z, excludeProperties as he, withInstall as we } from "../../components/common/index.esm.js";
5
+ import ye, { listViewProps as Ce, listViewTableProps as be, FListViewTable as Ie } from "../../components/list-view/index.esm.js";
6
+ import { resolveAppearance as Ve, createPropsResolver as ne, getPropsResolverGenerator as se, createCollectionBindingResolver as Se } from "../../components/dynamic-resolver/index.esm.js";
7
+ import { ref as b, computed as U, createVNode as l, Fragment as j, watch as Me, withModifiers as ke, withDirectives as xe, vModelText as Ee, createTextVNode as O, defineComponent as ie, inject as K, onMounted as oe } from "vue";
8
+ import { DgControl as A, canvasChanged as Te, refreshCanvas as Pe, useDesignerComponent as ae } from "../../components/designer-canvas/index.esm.js";
9
+ import { useFilter as Fe, useIdentify as Re, useHierarchy as Ne, useGroupData as Be, useDataView as $e, useSelection as Ue, useRow as De, useEdit as Oe, useVisualDataBound as Ae, useVisualDataCell as Le, useVisualDataRow as _e, useVisualGroupRow as je, useVisualSummaryRow as Ge, useVisualData as qe } from "../../components/data-view/index.esm.js";
10
+ import { LocaleService as He } from "../../components/locale/index.esm.js";
11
+ import { FCheckbox as X } from "../../components/checkbox/index.esm.js";
12
+ import { cloneDeep as We } from "lodash-es";
13
+ function ze(o, e) {
14
+ function t(i) {
15
+ const s = [];
16
+ let c = i.nextNode();
17
17
  for (; c; )
18
- i.push(c), c = s.nextNode();
19
- return i;
20
- }
21
- function n(s, i) {
22
- const c = document.createTreeWalker(s, NodeFilter.SHOW_TEXT);
23
- return t(c).map((m) => ({ textNode: m, text: (m.textContent || "").toLocaleLowerCase() })).map(({ textNode: m, text: p }) => {
24
- const v = [];
25
- let y = 0;
26
- for (; y < p.length; ) {
27
- const I = p.indexOf(i, y);
28
- if (I === -1)
18
+ s.push(c), c = i.nextNode();
19
+ return s;
20
+ }
21
+ function n(i, s) {
22
+ const c = document.createTreeWalker(i, NodeFilter.SHOW_TEXT);
23
+ return t(c).map((p) => ({ textNode: p, text: (p.textContent || "").toLocaleLowerCase() })).map(({ textNode: p, text: f }) => {
24
+ const g = [];
25
+ let w = 0;
26
+ for (; w < f.length; ) {
27
+ const y = f.indexOf(s, w);
28
+ if (y === -1)
29
29
  break;
30
- v.push(I), y = I + i.length;
30
+ g.push(y), w = y + s.length;
31
31
  }
32
- return v.map((I) => {
33
- const w = new Range();
34
- return w.setStart(m, I), w.setEnd(m, I + i.length), w;
32
+ return g.map((y) => {
33
+ const h = new Range();
34
+ return h.setStart(p, y), h.setEnd(p, y + s.length), h;
35
35
  });
36
36
  }).flat();
37
37
  }
38
- function l(s) {
39
- if (!CSS.highlights || (CSS.highlights.clear(), !s || !e))
38
+ function a(i) {
39
+ if (!CSS.highlights || (CSS.highlights.clear(), !i || !e))
40
40
  return;
41
- const i = n(e.value, s.toLocaleLowerCase()), c = new Highlight(...i);
41
+ const s = n(e.value, i.toLocaleLowerCase()), c = new Highlight(...s);
42
42
  CSS.highlights.set("search-result", c);
43
43
  }
44
- return { search: l };
44
+ return { search: a };
45
45
  }
46
- function J(o, e, t, n, l, s, i, c, r, d) {
47
- const u = C(o.size), m = C(o.textField), p = C(o.titleField), v = C(o.disableField), y = U(() => {
48
- var f, S;
49
- return ((f = o.selection) == null ? void 0 : f.multiSelect) && ((S = o.selection) == null ? void 0 : S.showCheckbox);
46
+ function ee(o, e, t, n, a, i, s, c, r, u) {
47
+ const d = b(o.size), p = b(o.textField), f = b(o.titleField), g = b(o.disableField), w = U(() => {
48
+ var m, T;
49
+ return ((m = o.selection) == null ? void 0 : m.multiSelect) && ((T = o.selection) == null ? void 0 : T.showCheckbox);
50
50
  }), {
51
- onMouseenterItem: I,
52
- onMouseoverItem: w,
53
- onMouseoutItem: x
54
- } = s, {
51
+ onMouseenterItem: y,
52
+ onMouseoverItem: h,
53
+ onMouseoutItem: S
54
+ } = i, {
55
55
  getKey: k,
56
- listViewItemClass: E,
56
+ listViewItemClass: x,
57
57
  listViewItemStyle: F,
58
- onCheckItem: N,
59
- onClickItem: g
60
- } = i, h = U(() => {
61
- const f = {
58
+ onCheckItem: B,
59
+ onClickItem: v
60
+ } = s, M = U(() => {
61
+ const m = {
62
62
  "text-overflow": "ellipsis",
63
63
  overflow: "hidden",
64
64
  "white-space": "nowrap"
65
65
  };
66
- return o.itemClass ? f : {
67
- margin: u.value === "small" ? "0.25rem 0" : "8px 0",
68
- ...f
66
+ return o.itemClass ? m : {
67
+ margin: d.value === "small" ? "0.25rem 0" : "8px 0",
68
+ ...m
69
69
  };
70
70
  });
71
- function b(f, S, D) {
72
- return f.checked = c.findIndexInSelectedItems(f) > -1, a("li", {
73
- class: E(f, S),
74
- id: k(f, S),
75
- key: k(f, S),
76
- style: F(f, S),
77
- onClick: (R) => g(f, S, R),
78
- onMouseenter: (R) => I(R, f, S),
79
- onMouseover: (R) => w(R, f, S),
80
- onMouseout: (R) => x(R, f, S)
81
- }, [y.value && a("div", {
71
+ function C(m, T, R) {
72
+ return m.checked = c.findIndexInSelectedItems(m) > -1, l("li", {
73
+ class: x(m, T),
74
+ id: k(m, T),
75
+ key: k(m, T),
76
+ style: F(m, T),
77
+ onClick: (N) => v(m, T, N),
78
+ onMouseenter: (N) => y(N, m, T),
79
+ onMouseover: (N) => h(N, m, T),
80
+ onMouseout: (N) => S(N, m, T)
81
+ }, [w.value && l("div", {
82
82
  class: "f-list-select",
83
- onClick: (R) => R.stopPropagation()
84
- }, [a(z, {
85
- id: "list-" + k(f, S),
83
+ onClick: (N) => N.stopPropagation()
84
+ }, [l(X, {
85
+ id: "list-" + k(m, T),
86
86
  customClass: "listview-checkbox float-left",
87
- disabled: f[v.value],
88
- checked: f.checked,
89
- "onUpdate:checked": (R) => f.checked = R,
90
- onChange: (R) => {
91
- N(f, S, !R.checked);
87
+ disabled: m[g.value],
88
+ checked: m.checked,
89
+ "onUpdate:checked": (N) => m.checked = N,
90
+ onChange: (N) => {
91
+ B(m, T, !N.checked);
92
92
  }
93
- }, null)]), a("div", {
93
+ }, null)]), l("div", {
94
94
  class: "f-list-content"
95
- }, [a("div", {
95
+ }, [l("div", {
96
96
  class: o.itemContentClass,
97
- style: h.value,
98
- title: f.raw[p.value] || f.raw[m.value]
99
- }, [f.raw[m.value]])])]);
97
+ style: M.value,
98
+ title: m.raw[f.value] || m.raw[p.value]
99
+ }, [m.raw[p.value]])])]);
100
100
  }
101
101
  return {
102
- renderItem: b
102
+ renderItem: C
103
103
  };
104
104
  }
105
- function qe(o, e, t, n, l, s, i, c, r, d) {
106
- const u = C(o.multiSelect), m = C(o.disableField), p = C(o.textField), {
107
- onMouseenterItem: v,
108
- onMouseoverItem: y,
109
- onMouseoutItem: I
110
- } = s, {
111
- getKey: w,
112
- listViewItemClass: x,
105
+ function Ke(o, e, t, n, a, i, s, c, r, u) {
106
+ const d = b(o.multiSelect), p = b(o.disableField), f = b(o.textField), {
107
+ onMouseenterItem: g,
108
+ onMouseoverItem: w,
109
+ onMouseoutItem: y
110
+ } = i, {
111
+ getKey: h,
112
+ listViewItemClass: S,
113
113
  listViewItemStyle: k,
114
- onCheckItem: E,
115
- onClickItem: F
116
- } = i;
117
- function N(h, b, f) {
118
- return o.contentTemplate ? a(j, null, [o.contentTemplate({
119
- item: h.raw,
120
- index: b,
121
- selectedItem: f
122
- })]) : e.slots.content ? a(j, null, [e.slots.content && e.slots.content({
123
- item: h.raw,
124
- index: b,
125
- selectedItem: f
126
- })]) : a("div", {
114
+ onCheckItem: x,
115
+ onClickItem: F,
116
+ updateSelectedItems: B
117
+ } = s;
118
+ function v(C, m, T) {
119
+ return o.contentTemplate ? l(j, null, [o.contentTemplate({
120
+ item: C.raw,
121
+ index: m,
122
+ selectedItem: T
123
+ })]) : e.slots.content ? l(j, null, [e.slots.content && e.slots.content({
124
+ item: C.raw,
125
+ index: m,
126
+ selectedItem: T
127
+ })]) : l("div", {
127
128
  style: "margin: 10px 0;"
128
- }, [h.raw[p.value || "name"]]);
129
- }
130
- function g(h, b, f) {
131
- return a("li", {
132
- class: x(h, b),
133
- id: w(h, b),
134
- key: w(h, b),
135
- style: k(h, b),
136
- onClick: (S) => F(h, b, S),
137
- onMouseenter: (S) => v(S, h, b),
138
- onMouseover: (S) => y(S, h, b),
139
- onMouseout: (S) => I(S, h, b)
140
- }, [u.value && a("div", {
129
+ }, [C.raw[f.value || "name"]]);
130
+ }
131
+ function M(C, m, T) {
132
+ return l("li", {
133
+ class: S(C, m),
134
+ id: h(C, m),
135
+ key: h(C, m),
136
+ style: k(C, m),
137
+ onClick: (R) => F(C, m, R),
138
+ onMouseenter: (R) => g(R, C, m),
139
+ onMouseover: (R) => w(R, C, m),
140
+ onMouseout: (R) => y(R, C, m)
141
+ }, [d.value && l("div", {
141
142
  class: "f-list-select",
142
- onClick: (S) => S.stopPropagation()
143
- }, [a(z, {
144
- id: "list-" + w(h, b),
143
+ onClick: (R) => R.stopPropagation()
144
+ }, [l(X, {
145
+ id: "list-" + h(C, m),
145
146
  customClass: "listview-checkbox",
146
- disabled: h[m.value],
147
- checked: h.checked,
148
- "onUpdate:checked": (S) => h.checked = S,
149
- onChange: (S) => E(h, b, !S.checked)
150
- }, null)]), a("div", {
147
+ disabled: C[p.value],
148
+ checked: C.checked,
149
+ "onUpdate:checked": (R) => C.checked = R,
150
+ onChange: (R) => {
151
+ x(C, m, !R.checked), B();
152
+ }
153
+ }, null)]), l("div", {
151
154
  class: "f-list-content"
152
- }, [N(h, b, f)])]);
155
+ }, [v(C, m, T)])]);
153
156
  }
154
157
  return {
155
- renderItem: g
158
+ renderItem: M
156
159
  };
157
160
  }
158
- function He(o, e, t, n, l, s, i, c, r, d) {
159
- const u = C(o.multiSelect), m = C(o.disableField), p = C(o.textField), {
160
- onMouseenterItem: v,
161
- onMouseoverItem: y,
162
- onMouseoutItem: I
163
- } = s, {
164
- getKey: w,
165
- listViewItemClass: x,
166
- onCheckItem: k,
167
- onClickItem: E
161
+ function Xe(o, e, t, n, a, i, s, c, r, u) {
162
+ const d = b(o.multiSelect), p = b(o.disableField), f = b(o.textField), {
163
+ onMouseenterItem: g,
164
+ onMouseoverItem: w,
165
+ onMouseoutItem: y
168
166
  } = i, {
167
+ getKey: h,
168
+ listViewItemClass: S,
169
+ onCheckItem: k,
170
+ onClickItem: x
171
+ } = s, {
169
172
  dragstart: F,
170
- dragenter: N,
171
- dragover: g,
172
- dragend: h
173
+ dragenter: B,
174
+ dragover: v,
175
+ dragend: M
173
176
  } = n, {
174
- removeItem: b
175
- } = r, f = U(() => ({
176
- margin: u.value ? "10px 0" : "10px 0px 10px 14px"
177
+ removeItem: C
178
+ } = r, m = U(() => ({
179
+ margin: d.value ? "10px 0" : "10px 0px 10px 14px"
177
180
  }));
178
- function S(M, V = "") {
179
- const $ = M.target;
180
- $.title = $.scrollWidth > $.clientWidth ? V : "";
181
- }
182
- function D(M) {
183
- return a("div", {
184
- style: f.value,
185
- onMouseenter: (V) => S(V, M.raw[p.value || "name"])
186
- }, [M.raw[p.value || "name"]]);
187
- }
188
- function R() {
189
- return e.slots.itemContent ? e.slots.itemContent : D;
190
- }
191
- const A = R();
192
- function T(M, V, $) {
193
- return a("li", {
194
- class: x(M, V),
195
- id: w(M, V),
196
- key: w(M, V),
197
- onClick: (P) => E(M, V, P),
198
- onMouseenter: (P) => v(P, M, V),
199
- onMouseover: (P) => y(P, M, V),
200
- onMouseout: (P) => I(P, M, V),
181
+ function T(V, I = "") {
182
+ const D = V.target;
183
+ D.title = D.scrollWidth > D.clientWidth ? I : "";
184
+ }
185
+ function R(V) {
186
+ return l("div", {
187
+ style: m.value,
188
+ onMouseenter: (I) => T(I, V.raw[f.value || "name"])
189
+ }, [V.raw[f.value || "name"]]);
190
+ }
191
+ function N() {
192
+ return e.slots.itemContent ? e.slots.itemContent : R;
193
+ }
194
+ const L = N();
195
+ function E(V, I, D) {
196
+ return l("li", {
197
+ class: S(V, I),
198
+ id: h(V, I),
199
+ key: h(V, I),
200
+ onClick: (P) => x(V, I, P),
201
+ onMouseenter: (P) => g(P, V, I),
202
+ onMouseover: (P) => w(P, V, I),
203
+ onMouseout: (P) => y(P, V, I),
201
204
  draggable: "true",
202
- onDragstart: (P) => F(P, M, V),
203
- onDragenter: (P) => N(P, V),
204
- onDragend: (P) => h(P, M),
205
- onDragover: (P) => g(P)
206
- }, [u.value && a("div", {
205
+ onDragstart: (P) => F(P, V, I),
206
+ onDragenter: (P) => B(P, I),
207
+ onDragend: (P) => M(P, V),
208
+ onDragover: (P) => v(P)
209
+ }, [d.value && l("div", {
207
210
  class: "f-list-select",
208
211
  onClick: (P) => P.stopPropagation()
209
- }, [a(z, {
210
- id: "list-" + w(M, V),
212
+ }, [l(X, {
213
+ id: "list-" + h(V, I),
211
214
  customClass: "listview-checkbox",
212
- disabled: M[m.value] || !M.checked,
213
- checked: M.checked,
214
- "onUpdate:checked": (P) => M.checked = P,
215
- onChange: (P) => k(M, V, !P.checked)
216
- }, null)]), a("div", {
215
+ disabled: V[p.value] || !V.checked,
216
+ checked: V.checked,
217
+ "onUpdate:checked": (P) => V.checked = P,
218
+ onChange: (P) => k(V, I, !P.checked)
219
+ }, null)]), l("div", {
217
220
  class: "f-list-content"
218
- }, [A(M)]), a("div", {
221
+ }, [L(V)]), l("div", {
219
222
  class: "f-list-remove",
220
223
  onClick: (P) => {
221
- P.stopPropagation(), b(V);
224
+ P.stopPropagation(), C(I);
222
225
  }
223
- }, [a("div", {
226
+ }, [l("div", {
224
227
  class: "f-list-remove-icon"
225
- }, [a("i", {
228
+ }, [l("i", {
226
229
  class: "f-icon f-icon-remove_face"
227
- }, null)])]), a("div", {
230
+ }, null)])]), l("div", {
228
231
  class: "f-list-handle"
229
- }, [a("div", null, [a("i", {
232
+ }, [l("div", null, [l("i", {
230
233
  class: "f-icon f-icon-drag-vertical"
231
234
  }, null)])])]);
232
235
  }
233
236
  return {
234
- renderItem: T
237
+ renderItem: E
235
238
  };
236
239
  }
237
- function We(o, e, t, n, l, s, i, c, r, d) {
238
- var w;
239
- const u = C(((w = o.group) == null ? void 0 : w.groupFields) || []), {
240
- collpaseGroupIconClass: m
241
- } = l, {
242
- toggleGroupRow: p
243
- } = d;
244
- function v(x, k) {
245
- k.collapse = !k.collapse, t.value = p(k.collapse ? "collapse" : "expand", k, t.value);
246
- }
247
- function y(x, k, E) {
248
- return e.slots.group ? a(j, null, [e.slots.content && e.slots.group({
249
- item: x.raw,
240
+ function Ye(o, e, t, n, a, i, s, c, r, u) {
241
+ var h;
242
+ const d = b(((h = o.group) == null ? void 0 : h.groupFields) || []), {
243
+ collpaseGroupIconClass: p
244
+ } = a, {
245
+ toggleGroupRow: f
246
+ } = u;
247
+ function g(S, k) {
248
+ k.collapse = !k.collapse, t.value = f(k.collapse ? "collapse" : "expand", k, t.value);
249
+ }
250
+ function w(S, k, x) {
251
+ return e.slots.group ? l(j, null, [e.slots.content && e.slots.group({
252
+ item: S.raw,
250
253
  index: k,
251
- selectedItem: E
252
- })]) : a("div", {
254
+ selectedItem: x
255
+ })]) : l("div", {
253
256
  class: "f-navlookup-recentHeader",
254
- onClick: (F) => v(F, x)
255
- }, [a("div", {
257
+ onClick: (F) => g(F, S)
258
+ }, [l("div", {
256
259
  class: "fv-grid-group-row-icon"
257
- }, [a("span", {
258
- class: m(x)
259
- }, null)]), a("div", {
260
+ }, [l("span", {
261
+ class: p(S)
262
+ }, null)]), l("div", {
260
263
  class: "f-navlookup-recommandLabel"
261
- }, [x.raw[u.value[x.layer]]])]);
264
+ }, [S.raw[d.value[S.layer]]])]);
262
265
  }
263
- function I(x, k, E) {
264
- return x.layer > -1 && y(x, k, E);
266
+ function y(S, k, x) {
267
+ return S.layer > -1 && w(S, k, x);
265
268
  }
266
269
  return {
267
- renderItem: I
270
+ renderItem: y
268
271
  };
269
272
  }
270
- function ze(o, e, t, n) {
271
- const { dataView: l } = t, { updateSelectedItems: s } = n;
272
- function i(c) {
273
- if (c > -1 && c < l.value.length) {
274
- if (o != null && o.checkBeforeRemoveItem && !o.checkBeforeRemoveItem(l.value[c]))
273
+ function Je(o, e, t, n) {
274
+ const { dataView: a } = t, { updateSelectedItems: i } = n;
275
+ function s(c) {
276
+ if (c > -1 && c < a.value.length) {
277
+ if (o != null && o.checkBeforeRemoveItem && !o.checkBeforeRemoveItem(a.value[c]))
275
278
  return;
276
- const r = l.value.splice(c, 1);
277
- s(), e.emit("removeItem", r[0]);
279
+ const r = a.value.splice(c, 1);
280
+ i(), e.emit("removeItem", r[0]);
278
281
  }
279
282
  }
280
- return { removeItem: i };
283
+ return { removeItem: s };
281
284
  }
282
- function Ke(o, e, t, n, l, s, i, c, r, d) {
283
- const u = C(o.view), m = C(o.view === "CardView"), p = C({}), v = ze(o, e, n, r), y = U(() => ({
285
+ function Qe(o, e, t, n, a, i, s, c, r, u) {
286
+ const d = b(o.view), p = b(o.view === "CardView"), f = b({}), g = Je(o, e, n, r), w = U(() => ({
284
287
  "f-list-view-group": !0,
285
288
  "f-list-view-group-multiselect": o.multiSelect,
286
- "d-flex": m.value,
287
- "flex-wrap": m.value
288
- })), I = U(() => !!t.value && t.value.length > 0), w = U(() => t.value.length === 0);
289
- U(() => w.value && !e.slots.empty);
290
- function x() {
291
- return u.value === "SingleView" ? J : u.value === "DraggableView" ? He : (u.value === "ContentView" || u.value === "CardView") && (o.contentTemplate || e.slots.content) ? qe : J;
292
- }
293
- const k = x(), {
294
- renderItem: E
295
- } = k(o, e, t, d, l, s, r, i, v, c), {
289
+ "d-flex": p.value,
290
+ "flex-wrap": p.value
291
+ })), y = U(() => !!t.value && t.value.length > 0), h = U(() => t.value.length === 0);
292
+ U(() => h.value && !e.slots.empty);
293
+ function S() {
294
+ return d.value === "SingleView" ? ee : d.value === "DraggableView" ? Xe : (d.value === "ContentView" || d.value === "CardView") && (o.contentTemplate || e.slots.content) ? Ke : ee;
295
+ }
296
+ const k = S(), {
297
+ renderItem: x
298
+ } = k(o, e, t, u, a, i, r, s, g, c), {
296
299
  renderItem: F
297
- } = We(o, e, t, d, l, s, r, i, v, c), N = [E, F];
298
- function g() {
299
- return t.value.filter((f) => f.visible !== !1).map((f, S) => N[f.type](f, S, p));
300
+ } = Ye(o, e, t, u, a, i, r, s, g, c), B = [x, F];
301
+ function v() {
302
+ return t.value.filter((m) => m.visible !== !1).map((m, T) => B[m.type](m, T, f));
300
303
  }
301
- function h() {
302
- return a("div", {
304
+ function M() {
305
+ return l("div", {
303
306
  class: "f-list-view-emptydata",
304
307
  style: "margin: 0 auto;"
305
- }, [a("p", {
308
+ }, [l("p", {
306
309
  class: "f-empty-title"
307
- }, [o.emptyTemplate ? o.emptyTemplate() : e.slots.empty ? e.slots.empty() : _e.getLocaleValue("listView.emptyMessage")])]);
310
+ }, [o.emptyTemplate ? o.emptyTemplate() : e.slots.empty ? e.slots.empty() : He.getLocaleValue("listView.emptyMessage")])]);
308
311
  }
309
- function b() {
310
- return a("ul", {
311
- class: y.value,
312
+ function C() {
313
+ return l("ul", {
314
+ class: w.value,
312
315
  style: "list-style: none;"
313
- }, [I.value && g(), w.value && h()]);
316
+ }, [y.value && v(), h.value && M()]);
314
317
  }
315
318
  return {
316
- renderListArea: b
319
+ renderListArea: C
317
320
  };
318
321
  }
319
- function Xe(o, e, t) {
322
+ function Ze(o, e, t) {
320
323
  function n() {
321
- return e.slots.header && a("div", {
324
+ return e.slots.header && l("div", {
322
325
  class: "f-list-view-header"
323
326
  }, [e.slots.header()]);
324
327
  }
@@ -326,324 +329,327 @@ function Xe(o, e, t) {
326
329
  renderHeader: n
327
330
  };
328
331
  }
329
- function Q(o, e, t) {
330
- const n = C(o.headerClass), l = C(o.placeholder), s = C(""), i = U(() => !s.value), c = U(() => !!s.value);
331
- function r(p) {
332
- s.value = "";
332
+ function te(o, e, t) {
333
+ const n = b(o.headerClass), a = b(o.placeholder), i = b(""), s = U(() => !i.value), c = U(() => !!i.value);
334
+ function r(f) {
335
+ i.value = "";
333
336
  }
334
- be(s, (p) => {
335
- o.enableHighlightSearch && t.search(p), e.emit("afterSearch", p);
337
+ Me(i, (f) => {
338
+ o.enableHighlightSearch && t.search(f), e.emit("afterSearch", f);
336
339
  });
337
- const d = U(() => {
338
- const p = {
340
+ const u = U(() => {
341
+ const f = {
339
342
  "form-group": !0,
340
343
  "farris-form-group": !0
341
344
  };
342
- return n.value && n.value.split(" ").reduce((y, I) => (y[I] = !0, y), p), p;
345
+ return n.value && n.value.split(" ").reduce((w, y) => (w[y] = !0, w), f), f;
343
346
  });
344
- function u(p) {
347
+ function d(f) {
345
348
  }
346
- function m() {
347
- return a("div", {
349
+ function p() {
350
+ return l("div", {
348
351
  class: "f-list-view-header",
349
- onClick: Ie(() => u, ["prevent", "stop"])
350
- }, [a("div", {
351
- class: d.value
352
- }, [a("div", {
352
+ onClick: ke(() => d, ["prevent", "stop"])
353
+ }, [l("div", {
354
+ class: u.value
355
+ }, [l("div", {
353
356
  class: "farris-input-wrap"
354
- }, [a("div", {
357
+ }, [l("div", {
355
358
  class: "f-cmp-inputgroup"
356
- }, [a("div", {
359
+ }, [l("div", {
357
360
  class: "input-group f-state-editable"
358
- }, [Ve(a("input", {
361
+ }, [xe(l("input", {
359
362
  class: "form-control f-utils-fill text-left",
360
- "onUpdate:modelValue": (p) => s.value = p,
363
+ "onUpdate:modelValue": (f) => i.value = f,
361
364
  name: "input-group-value",
362
365
  type: "text",
363
- placeholder: l.value,
366
+ placeholder: a.value,
364
367
  autocomplete: "off"
365
- }, null), [[Se, s.value]]), a("div", {
368
+ }, null), [[Ee, i.value]]), l("div", {
366
369
  class: "input-group-append"
367
- }, [c.value && a("span", {
370
+ }, [c.value && l("span", {
368
371
  class: "input-group-text input-group-clear",
369
- onClick: (p) => r()
370
- }, [a("i", {
372
+ onClick: (f) => r()
373
+ }, [l("i", {
371
374
  class: "f-icon f-icon-close-circle"
372
- }, null)]), i.value && a("span", {
375
+ }, null)]), s.value && l("span", {
373
376
  class: "input-group-text"
374
- }, [a("span", {
377
+ }, [l("span", {
375
378
  class: "f-icon f-icon-search"
376
379
  }, null)])])])])])])]);
377
380
  }
378
381
  return {
379
- renderHeader: m
382
+ renderHeader: p
380
383
  };
381
384
  }
382
- function Ye() {
383
- const o = C(""), e = C(-1), t = C(""), n = C(-1), l = C(!1);
384
- function s(m, p, v) {
385
- n.value = v;
385
+ function et() {
386
+ const o = b(""), e = b(-1), t = b(""), n = b(-1), a = b(!1);
387
+ function i(p, f, g) {
388
+ n.value = g;
386
389
  }
387
- function i(m, p, v) {
388
- l.value || (n.value = v);
390
+ function s(p, f, g) {
391
+ a.value || (n.value = g);
389
392
  }
390
- function c(m, p, v) {
393
+ function c(p, f, g) {
391
394
  n.value = -1;
392
395
  }
393
396
  function r() {
394
- l.value = !0;
395
- }
396
- function d() {
397
- l.value = !1;
397
+ a.value = !0;
398
398
  }
399
399
  function u() {
400
+ a.value = !1;
401
+ }
402
+ function d() {
400
403
  e.value = -1, o.value = "";
401
404
  }
402
405
  return {
403
406
  activeIndex: e,
404
407
  focusedItemId: t,
405
408
  hoverIndex: n,
406
- clearActiveItem: u,
407
- onMouseenterItem: s,
408
- onMouseoverItem: i,
409
+ clearActiveItem: d,
410
+ onMouseenterItem: i,
411
+ onMouseoverItem: s,
409
412
  onMouseoutItem: c,
410
- resumeHover: d,
413
+ resumeHover: u,
411
414
  suspendHover: r
412
415
  };
413
416
  }
414
- function Je(o, e, t, n) {
415
- const l = C(o.idField), { dataView: s } = t, i = C(-1), c = C(!1), { activeIndex: r, focusedItemId: d, hoverIndex: u, resumeHover: m, suspendHover: p } = n;
416
- let v, y = 0, I = 0;
417
- function w(g, h) {
418
- const b = g - y, f = h - I;
419
- v.style.left = parseInt(v.style.left) + b + "px", v.style.top = parseInt(v.style.top) + f + "px", y = g, I = h;
420
- }
421
- function x(g) {
422
- const { left: h, top: b } = g.getBoundingClientRect(), f = g.cloneNode(!0);
423
- return f.style.cssText = `
417
+ function tt(o, e, t, n) {
418
+ const a = b(o.idField), { dataView: i } = t, s = b(-1), c = b(!1), { activeIndex: r, focusedItemId: u, hoverIndex: d, resumeHover: p, suspendHover: f } = n;
419
+ let g, w = 0, y = 0;
420
+ function h(v, M) {
421
+ const C = v - w, m = M - y;
422
+ g.style.left = parseInt(g.style.left) + C + "px", g.style.top = parseInt(g.style.top) + m + "px", w = v, y = M;
423
+ }
424
+ function S(v) {
425
+ const { left: M, top: C } = v.getBoundingClientRect(), m = v.cloneNode(!0);
426
+ return m.className = m.className + " f-listview-drag-moving", m.style.cssText = `
424
427
  position:absolute;
425
- left:${h}px;
426
- top:${document.documentElement.scrollTop ? b + document.documentElement.scrollTop : b}px;
428
+ left:${M}px;
429
+ top:${document.documentElement.scrollTop ? C + document.documentElement.scrollTop : C}px;
427
430
  z-index: 999999;
428
- border: 1px solid #e2e3e5;
429
431
  pointer-events: none;
430
- background-color: #edf5ff;
431
432
  border-radius: 10px;
432
433
  margin: 4px 2px;
433
434
  display: flex;
434
435
  align-items: center;
435
436
  float: none;
436
437
  text-align: initial;
437
- width:${getComputedStyle(g).width};
438
- height:${getComputedStyle(g).height};
439
- `, f.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", f.children[0].children[0].style.cssText = `
438
+ width:${getComputedStyle(v).width};
439
+ height:${getComputedStyle(v).height};
440
+ `, m.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", m.children[0].children[0].style.cssText = `
440
441
  margin: 10px 0px 10px 14px;
441
442
  overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
442
- `, f.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", f.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(f), f;
443
+ `, m.children[1].style.cssText = "width: 30px;padding: 0 14px 0 0", m.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(m), m;
443
444
  }
444
- function k(g, h, b) {
445
- if (g.stopPropagation(), p(), h) {
446
- if (v = x(g.target), g.dataTransfer) {
447
- const f = new Image();
448
- f.src = "", g.dataTransfer.setDragImage(f, 0, 0);
445
+ function k(v, M, C) {
446
+ if (v.stopPropagation(), f(), M) {
447
+ if (g = S(v.target), v.dataTransfer) {
448
+ const m = new Image();
449
+ m.src = "", v.dataTransfer.setDragImage(m, 0, 0);
449
450
  }
450
- y = g.pageX, I = g.pageY, setTimeout(() => {
451
- i.value = b, c.value = !0, h.moving = !0;
451
+ w = v.pageX, y = v.pageY, setTimeout(() => {
452
+ s.value = C, c.value = !0, M.moving = !0;
452
453
  });
453
454
  }
454
455
  }
455
- function E(g, h) {
456
- if (g.preventDefault(), i.value !== h) {
457
- const b = s.value[i.value], f = s.value;
458
- f.splice(i.value, 1), f.splice(h, 0, b), i.value = h, w(g.pageX, g.pageY);
456
+ function x(v, M) {
457
+ if (v.preventDefault(), s.value !== M) {
458
+ const C = i.value[s.value], m = i.value;
459
+ m.splice(s.value, 1), m.splice(M, 0, C), s.value = M, h(v.pageX, v.pageY);
459
460
  }
460
461
  }
461
- function F(g) {
462
- g.preventDefault(), g.dataTransfer && (g.dataTransfer.dropEffect = "move"), w(g.pageX, g.pageY);
462
+ function F(v) {
463
+ v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), h(v.pageX, v.pageY);
463
464
  }
464
- function N(g, h) {
465
- h && (h.moving = !1, v && (document.body.removeChild(v), v = null)), s.value.forEach((b, f) => {
466
- b.__fv_index__ = f;
467
- }), c.value = !1, m(), u.value = h.raw.__fv_index__, r.value = h.raw.__fv_index__, d.value = h.raw[l.value], e.emit("change", s.value), e.emit("activeChange", [h.raw]);
465
+ function B(v, M) {
466
+ M && (M.moving = !1, g && (document.body.removeChild(g), g = null)), i.value.forEach((C, m) => {
467
+ C.__fv_index__ = m;
468
+ }), c.value = !1, p(), d.value = M.raw.__fv_index__, r.value = M.raw.__fv_index__, u.value = M.raw[a.value], e.emit("change", i.value), e.emit("activeChange", [M.raw]);
468
469
  }
469
470
  return {
470
471
  dragstart: k,
471
- dragenter: E,
472
+ dragenter: x,
472
473
  dragover: F,
473
- dragend: N,
474
+ dragend: B,
474
475
  isDragging: c
475
476
  };
476
477
  }
477
- function Qe(o, e, t, n, l, s) {
478
- const i = C(o.idField), c = C(o.disableField), r = C(o.draggable);
479
- C(o.itemClass);
480
- const d = C(o.selection.multiSelect ?? !1), u = C(o.selection.multiSelectMode), { isDragging: m } = n, { activeIndex: p, focusedItemId: v, hoverIndex: y } = l, { clearSelection: I, getSelectedItems: w, toggleSelectItem: x, currentSelectedDataId: k } = s, E = C(w()), F = (T) => E.value.length === 0 ? !1 : E.value.some((M) => {
481
- let V = "";
482
- return M.data ? V = M.data[i.value] : V = M[i.value], V === T;
478
+ function nt(o, e, t, n, a, i) {
479
+ const s = b(o.idField), c = b(o.disableField), r = b(o.draggable);
480
+ b(o.itemClass);
481
+ const u = b(o.selection.multiSelect ?? !1), d = b(o.selection.multiSelectMode), { isDragging: p } = n, { activeIndex: f, focusedItemId: g, hoverIndex: w } = a, { clearSelection: y, getSelectedItems: h, toggleSelectItem: S, currentSelectedDataId: k } = i, x = b(h()), F = (E) => x.value.length === 0 ? !1 : x.value.some((V) => {
482
+ let I = "";
483
+ return V.data ? I = V.data[s.value] : I = V[s.value], I === E;
483
484
  });
484
- function N() {
485
- E.value = w();
485
+ function B() {
486
+ x.value = h();
486
487
  }
487
- function g(T, M) {
488
- return T.raw[i.value] != null ? T.raw[i.value] : "";
488
+ function v(E, V) {
489
+ return E.raw[s.value] != null ? E.raw[s.value] : "";
489
490
  }
490
- function h(T, M) {
491
- const V = {
491
+ function M(E, V) {
492
+ const I = {
492
493
  "f-list-view-group-item": !0,
493
494
  "f-list-view-draggable-item": r.value,
494
- "f-un-click": !T.checked,
495
- "f-un-select": !!T.raw[c.value],
495
+ "f-un-click": !E.checked,
496
+ "f-un-select": !!E.raw[c.value],
496
497
  "f-listview-active": (
497
498
  // 多选
498
- d.value && F(g(T)) || // 单选
499
- !d.value && T.raw[i.value] === k.value
499
+ u.value && F(v(E)) || // 单选
500
+ !u.value && E.raw[s.value] === k.value
500
501
  ),
501
- "f-listview-hover": !m.value && M === y.value,
502
- moving: !!T.moving
502
+ "f-listview-hover": !p.value && V === w.value,
503
+ moving: !!E.moving
503
504
  };
504
505
  if (typeof o.itemClass == "string")
505
- return Y(V, o.itemClass);
506
+ return Z(I, o.itemClass);
506
507
  if (typeof o.itemClass == "function") {
507
- const $ = o.itemClass(T);
508
- return Y(V, $);
508
+ const D = o.itemClass(E);
509
+ return Z(I, D);
509
510
  }
510
- return V;
511
- }
512
- function b(T, M) {
513
- const V = (
514
- // 多选
515
- d.value && F(g(T)) || // 单选
516
- !d.value && T.raw[i.value] === k.value
517
- ), $ = {};
518
- if (V && ($.backgroundColor = "#dae9ff"), typeof o.itemStyle == "string")
519
- return X($, o.itemStyle);
511
+ return I;
512
+ }
513
+ function C(E, V) {
514
+ const I = {};
515
+ if (typeof o.itemStyle == "string")
516
+ return Q(I, o.itemStyle);
520
517
  if (typeof o.itemStyle == "function") {
521
- const P = o.itemStyle(T);
522
- return X($, P);
518
+ const D = o.itemStyle(E);
519
+ return Q(I, D);
523
520
  }
524
- return $;
521
+ return I;
525
522
  }
526
- const f = U(() => !d.value);
527
- function S(T, M, V) {
528
- T.checked = V, !T.raw[c.value] && (f.value && (v.value = T.raw[i.value]), x(T));
523
+ const m = U(() => !u.value);
524
+ function T(E, V, I) {
525
+ E.checked = I, !E.raw[c.value] && (m.value && (g.value = E.raw[s.value]), S(E));
529
526
  }
530
- const D = U(() => d.value && u.value === "OnCheckClearByClick"), R = U(() => !d.value || d.value && (u.value === "OnCheckAndClick" || u.value === "OnClick"));
531
- function A(T, M, V) {
532
- if (T.raw[c.value]) {
533
- V == null || V.preventDefault(), V == null || V.stopPropagation();
527
+ const R = U(() => u.value && d.value === "OnCheckClearByClick"), N = U(() => !u.value || u.value && (d.value === "OnCheckAndClick" || d.value === "OnClick"));
528
+ function L(E, V, I) {
529
+ if (E.raw[c.value]) {
530
+ I == null || I.preventDefault(), I == null || I.stopPropagation();
534
531
  return;
535
532
  }
536
- v.value = T.raw[i.value], p.value = M, D.value && I(), R.value && (x(T), N()), e.emit("clickItem", { data: E.value, index: M, dataItem: T.raw }), e.emit("activeChange", E.value);
533
+ k.value = E.raw[s.value], g.value = E.raw[s.value], f.value = V, R.value && y(), N.value && (S(E), B()), e.emit("clickItem", { data: x.value, index: V, dataItem: E.raw }), e.emit("activeChange", x.value);
537
534
  }
538
535
  return {
539
- getKey: g,
540
- selectedItems: E,
541
- listViewItemClass: h,
542
- listViewItemStyle: b,
543
- updateSelectedItems: N,
544
- onCheckItem: S,
545
- onClickItem: A
536
+ getKey: v,
537
+ selectedItems: x,
538
+ listViewItemClass: M,
539
+ listViewItemStyle: C,
540
+ updateSelectedItems: B,
541
+ onCheckItem: T,
542
+ onClickItem: L
546
543
  };
547
544
  }
548
- const ie = /* @__PURE__ */ new Map([
549
- ["appearance", ye]
550
- ]), Ze = "root-viewmodel";
551
- function et(o, e) {
545
+ const q = /* @__PURE__ */ new Map([
546
+ ["appearance", Ve]
547
+ ]), st = "root-viewmodel";
548
+ function it(o, e) {
552
549
  const {
553
550
  formSchemaUtils: t,
554
551
  designViewModelUtils: n
555
552
  } = e;
556
- function l(u) {
553
+ function a(d) {
557
554
  return {
558
- id: `${u.componentId}-component-viewmodel`,
559
- code: `${u.componentId}-component-viewmodel`,
560
- name: u.componentName,
561
- bindTo: u.bindTo,
562
- parent: Ze,
555
+ id: `${d.componentId}-component-viewmodel`,
556
+ code: `${d.componentId}-component-viewmodel`,
557
+ name: d.componentName,
558
+ bindTo: d.bindTo,
559
+ parent: st,
563
560
  fields: [],
564
561
  commands: [],
565
562
  states: [],
566
563
  enableValidation: !0
567
564
  };
568
565
  }
569
- function s(u) {
570
- const m = o.getSchemaByType("component-ref");
571
- return Object.assign(m, {
572
- id: `${u.componentId}-component-ref`,
573
- component: `${u.componentId}-component`
574
- }), m;
575
- }
576
- function i(u, m, p) {
577
- var w, x, k, E;
578
- const v = (x = (w = m == null ? void 0 : m.parentComponentInstance) == null ? void 0 : w.schema) == null ? void 0 : x.type, y = (E = (k = t.getFormSchema()) == null ? void 0 : k.module) == null ? void 0 : E.templateId;
579
- if (["double-list-template", "tree-list-template", "list-template"].includes(y))
580
- return u;
581
- const I = [_["content-container"].type, _["response-layout-item"].type, _["splitter-pane"].type];
582
- if (v && I.includes(v)) {
566
+ function i(d) {
567
+ const p = o.getSchemaByType("component-ref");
568
+ return Object.assign(p, {
569
+ id: `${d.componentId}-component-ref`,
570
+ component: `${d.componentId}-component`
571
+ }), p;
572
+ }
573
+ function s(d, p, f) {
574
+ var h, S, k, x;
575
+ const g = (S = (h = p == null ? void 0 : p.parentComponentInstance) == null ? void 0 : h.schema) == null ? void 0 : S.type, w = (x = (k = t.getFormSchema()) == null ? void 0 : k.module) == null ? void 0 : x.templateId;
576
+ if (["double-list-template", "tree-list-template", "list-template"].includes(w))
577
+ return d;
578
+ const y = [A["content-container"].type, A["response-layout-item"].type, A["splitter-pane"].type, A.drawer.type];
579
+ if (g && y.includes(g)) {
583
580
  const F = o.getSchemaByType(
584
581
  "section",
585
582
  {
586
- parentComponentInstance: m.parentComponentInstance,
587
- mainTitle: m.componentName
583
+ parentComponentInstance: p.parentComponentInstance,
584
+ mainTitle: p.componentName
588
585
  },
589
586
  e
590
587
  );
591
588
  if (F && F.contents && F.contents.length) {
592
- const N = F.contents[0];
593
- return N.contents = [u], F;
589
+ const B = F.contents[0];
590
+ return B.contents = [d], F;
594
591
  }
595
592
  }
596
- return u;
597
- }
598
- function c(u) {
599
- const m = o.getSchemaByType("list-view");
600
- return Object.assign(m, {
601
- id: u.componentId + "-listView",
593
+ return d;
594
+ }
595
+ function c(d) {
596
+ var w, y, h;
597
+ const p = o.getSchemaByType("list-view");
598
+ let f = !1;
599
+ const g = (h = (y = (w = d.parentComponentInstance) == null ? void 0 : w.schema) == null ? void 0 : y.appearance) == null ? void 0 : h.class;
600
+ return g && g.includes("f-page-main") && (f = !0), Object.assign(p, {
601
+ id: d.componentId + "-listView",
602
602
  appearance: {
603
- class: "f-grid-is-sub"
603
+ class: f ? "" : "f-grid-is-sub"
604
604
  },
605
605
  type: "list-view",
606
- dataSource: u.dataSource || "",
606
+ dataSource: d.dataSource || "",
607
607
  pagination: {
608
608
  enable: !1
609
609
  }
610
- }), [m];
611
- }
612
- function r(u) {
613
- const m = o.getSchemaByType("component"), p = c(u);
614
- return Object.assign(m, {
615
- id: `${u.componentId}-component`,
616
- viewModel: `${u.componentId}-component-viewmodel`,
617
- componentType: u.componentType,
618
- contents: p
619
- }), m;
620
- }
621
- function d(u) {
622
- const m = s(u), p = r(u), v = l(u), y = t.getFormSchema();
623
- return y.module.viewmodels.push(v), y.module.components.push(p), n.assembleDesignViewModel(), i(m, u);
624
- }
625
- return { createComponent: d };
610
+ }), [p];
611
+ }
612
+ function r(d) {
613
+ var y, h, S;
614
+ const p = o.getSchemaByType("component"), f = c(d);
615
+ let g = !1;
616
+ const w = (S = (h = (y = d.parentComponentInstance) == null ? void 0 : y.schema) == null ? void 0 : h.appearance) == null ? void 0 : S.class;
617
+ return w && w.includes("f-page-main") && (g = !0), Object.assign(p, {
618
+ id: `${d.componentId}-component`,
619
+ viewModel: `${d.componentId}-component-viewmodel`,
620
+ componentType: d.componentType,
621
+ contents: f,
622
+ appearance: {
623
+ class: g ? "f-struct-wrapper f-utils-fill-flex-column" : ""
624
+ }
625
+ }), p;
626
+ }
627
+ function u(d) {
628
+ const p = i(d), f = r(d), g = a(d), w = t.getFormSchema();
629
+ return w.module.viewmodels.push(g), w.module.components.push(f), n.assembleDesignViewModel(), s(p, d);
630
+ }
631
+ return { createComponent: u };
626
632
  }
627
- function se(o, e, t, n) {
628
- var s, i, c, r, d, u;
629
- const l = t.parentComponentInstance;
630
- if (l && n) {
631
- const m = Math.random().toString(36).slice(2, 6), p = {
632
- componentId: `list-view-${m}`,
633
- componentName: ((s = t.bindingSourceContext) == null ? void 0 : s.entityTitle) || ((c = (i = t.bindingSourceContext) == null ? void 0 : i.bindingEntity) == null ? void 0 : c.name) || `列表-${m}`,
633
+ function H(o, e, t, n) {
634
+ var i, s, c, r, u, d;
635
+ const a = t.parentComponentInstance;
636
+ if (a && n) {
637
+ const p = Math.random().toString(36).slice(2, 6), f = {
638
+ componentId: `list-view-${p}`,
639
+ componentName: ((i = t.bindingSourceContext) == null ? void 0 : i.entityTitle) || ((c = (s = t.bindingSourceContext) == null ? void 0 : s.bindingEntity) == null ? void 0 : c.name) || `列表-${p}`,
634
640
  componentType: "list-view",
635
- parentContainerId: l.schema.id,
636
- parentComponentInstance: l,
641
+ parentContainerId: a.schema.id,
642
+ parentComponentInstance: a,
637
643
  // editable: true,
638
644
  bindTo: ((r = t.bindingSourceContext) == null ? void 0 : r.bindTo) || "",
639
- dataSource: (u = (d = t.bindingSourceContext) == null ? void 0 : d.bindingEntity) == null ? void 0 : u.label
645
+ dataSource: (d = (u = t.bindingSourceContext) == null ? void 0 : u.bindingEntity) == null ? void 0 : d.label
640
646
  // selectedFields: context.bindingSourceContext?.bindingEntityFields
641
- }, { createComponent: v } = et(o, n);
642
- return v(p);
647
+ }, { createComponent: g } = it(o, n);
648
+ return g(f);
643
649
  } else
644
650
  return e;
645
651
  }
646
- const tt = "https://json-schema.org/draft/2020-12/schema", nt = "https://farris-design.gitee.io/list-view.schema.json", it = "list-view", st = "A Farris Component", ot = "object", lt = {
652
+ const ot = "https://json-schema.org/draft/2020-12/schema", at = "https://farris-design.gitee.io/list-view.schema.json", lt = "list-view", rt = "A Farris Component", ct = "object", dt = {
647
653
  id: {
648
654
  description: "The unique identifier for list-view",
649
655
  type: "string"
@@ -735,55 +741,61 @@ const tt = "https://json-schema.org/draft/2020-12/schema", nt = "https://farris-
735
741
  type: "string",
736
742
  default: ""
737
743
  }
738
- }, at = [
744
+ }, ut = [
739
745
  "id",
740
746
  "type"
741
- ], rt = {
747
+ ], pt = {
742
748
  onClickItem: "行点击事件"
743
- }, ct = {
744
- $schema: tt,
745
- $id: nt,
746
- title: it,
747
- description: st,
748
- type: ot,
749
- properties: lt,
750
- required: at,
751
- events: rt
752
- }, oe = fe(he, "headerTemplate"), le = Z(oe, ct, ie, se), H = {
749
+ }, le = {
750
+ $schema: ot,
751
+ $id: at,
752
+ title: lt,
753
+ description: rt,
754
+ type: ct,
755
+ properties: dt,
756
+ required: ut,
757
+ events: pt
758
+ }, Y = he(Ce, "headerTemplate"), _t = ne(Y, le, q, H), re = se(
759
+ Y,
760
+ le,
761
+ q,
762
+ H
763
+ ), z = {
753
764
  "tab-page": { type: "tab-page" },
754
765
  section: { type: "section" },
755
766
  "list-view": { name: "列表" }
756
767
  };
757
- function dt(o) {
768
+ function mt(o) {
758
769
  const { formSchemaUtils: e, formStateMachineUtils: t } = o;
759
- function n(r, d = "") {
770
+ function n(r, u = "") {
760
771
  return {
761
- path: d + r.code,
772
+ path: u + r.code,
762
773
  field: r.id,
763
774
  fullPath: r.code
764
775
  };
765
776
  }
766
- function l(r, d = "") {
767
- return e.getViewModelById(r).states.map((m) => n(m, d));
768
- }
769
- function s(r) {
770
- const d = e.getRootViewModelId(), u = l(r);
771
- if (r === d)
772
- return u;
773
- const m = l(d, "root-component.");
774
- return [...u, ...m];
777
+ function a(r, u = "") {
778
+ const d = e.getViewModelById(r);
779
+ return d ? d.states.map((p) => n(p, u)) : [];
775
780
  }
776
781
  function i(r) {
782
+ const u = e.getRootViewModelId(), d = a(r);
783
+ if (r === u)
784
+ return d;
785
+ const p = a(u, "root-component.");
786
+ return [...d, ...p];
787
+ }
788
+ function s(r) {
777
789
  return r.binding && r.binding.path || r.id || "";
778
790
  }
779
791
  function c() {
780
792
  return t && t.getRenderStates() || [];
781
793
  }
782
- return { getVariables: s, getControlName: i, getStateMachines: c };
794
+ return { getVariables: i, getControlName: s, getStateMachines: c };
783
795
  }
784
- class ut {
796
+ class ft {
785
797
  constructor(e) {
786
- B(this, "sessionVariables", [
798
+ $(this, "sessionVariables", [
787
799
  {
788
800
  key: "CurrentSysOrgName",
789
801
  name: "当前组织Name",
@@ -820,7 +832,7 @@ class ut {
820
832
  description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
821
833
  }
822
834
  ]);
823
- B(this, "expressionNames", {
835
+ $(this, "expressionNames", {
824
836
  compute: "计算表达式",
825
837
  dependency: "依赖表达式",
826
838
  validate: "验证表达式",
@@ -829,20 +841,20 @@ class ut {
829
841
  readonly: "只读表达式",
830
842
  required: "必填表达式"
831
843
  });
832
- B(this, "getExpressionConverter", (e, t) => ({
833
- convertFrom: (n, l, s, i) => {
834
- const c = s.getExpressionRuleValue(e, t || l);
844
+ $(this, "getExpressionConverter", (e, t) => ({
845
+ convertFrom: (n, a, i, s) => {
846
+ const c = i.getExpressionRuleValue(e, t || a);
835
847
  return c && c.value || "";
836
848
  },
837
- convertTo: (n, l, s, i, c) => {
849
+ convertTo: (n, a, i, s, c) => {
838
850
  var r;
839
- if (l === "dataPicking" && (s != null && s.target)) {
840
- const d = `${s.target}_dataPicking`;
841
- ((r = s.rules) == null ? void 0 : r.some(
842
- (m) => m.id === d && m.value
843
- )) ? n.dictPickingExpressionId = d : delete n.dictPickingExpressionId;
851
+ if (a === "dataPicking" && (i != null && i.target)) {
852
+ const u = `${i.target}_dataPicking`;
853
+ ((r = i.rules) == null ? void 0 : r.some(
854
+ (p) => p.id === u && p.value
855
+ )) ? n.dictPickingExpressionId = u : delete n.dictPickingExpressionId;
844
856
  }
845
- i.updateExpression(s);
857
+ s.updateExpression(i);
846
858
  }
847
859
  }));
848
860
  this.formSchemaService = e;
@@ -851,11 +863,11 @@ class ut {
851
863
  const n = this.formSchemaService.getExpressions();
852
864
  if (!n)
853
865
  return "";
854
- const l = n.find((i) => i.target === e);
855
- if (!l)
866
+ const a = n.find((s) => s.target === e);
867
+ if (!a)
856
868
  return "";
857
- const s = l.rules.find((i) => i.type === t);
858
- return s || "";
869
+ const i = a.rules.find((s) => s.type === t);
870
+ return i || "";
859
871
  }
860
872
  // 获取上下文表单变量
861
873
  getContextFormVariables() {
@@ -865,15 +877,15 @@ class ut {
865
877
  const t = this.formSchemaService.getRootViewModelId(), n = this.formSchemaService.getViewModelById(t);
866
878
  if (!n || !n.states || n.states.length === 0)
867
879
  return [];
868
- const l = [];
869
- return n.states.filter((s) => s.category === "remote").forEach((s) => {
870
- l.push({
871
- key: s.code,
872
- name: s.name,
873
- description: s.name,
874
- category: s.category
880
+ const a = [];
881
+ return n.states.filter((i) => i.category === "remote").forEach((i) => {
882
+ a.push({
883
+ key: i.code,
884
+ name: i.name,
885
+ description: i.name,
886
+ category: i.category
875
887
  });
876
- }), l;
888
+ }), a;
877
889
  }
878
890
  createTreeNode(e, t, n = "label") {
879
891
  return {
@@ -886,27 +898,27 @@ class ut {
886
898
  }
887
899
  buildEntityFieldsTreeData(e = null, t) {
888
900
  const n = [];
889
- return e == null || e.forEach((l) => {
901
+ return e == null || e.forEach((a) => {
890
902
  var c;
891
- const s = this.createTreeNode(l, t);
892
- let i = [];
893
- (c = l.type) != null && c.fields && (i = this.buildEntityFieldsTreeData(l.type.fields, [...t, l.label])), n.push({
894
- data: s,
895
- children: i,
903
+ const i = this.createTreeNode(a, t);
904
+ let s = [];
905
+ (c = a.type) != null && c.fields && (s = this.buildEntityFieldsTreeData(a.type.fields, [...t, a.label])), n.push({
906
+ data: i,
907
+ children: s,
896
908
  expanded: !0
897
909
  });
898
910
  }), n;
899
911
  }
900
912
  buildChildEntityTreeData(e = null, t) {
901
913
  const n = [];
902
- return e == null || e.forEach((l) => {
903
- var r, d;
904
- const s = this.createTreeNode(l, t);
905
- s.type = "entity";
906
- const i = this.buildEntityFieldsTreeData((r = l.type) == null ? void 0 : r.fields, [...t, l.label]), c = this.buildChildEntityTreeData((d = l.type) == null ? void 0 : d.entities, [...t, l.label]);
907
- c != null && c.length && (i == null || i.push(...c)), n.push({
908
- data: s,
909
- children: i || [],
914
+ return e == null || e.forEach((a) => {
915
+ var r, u;
916
+ const i = this.createTreeNode(a, t);
917
+ i.type = "entity";
918
+ const s = this.buildEntityFieldsTreeData((r = a.type) == null ? void 0 : r.fields, [...t, a.label]), c = this.buildChildEntityTreeData((u = a.type) == null ? void 0 : u.entities, [...t, a.label]);
919
+ c != null && c.length && (s == null || s.push(...c)), n.push({
920
+ data: i,
921
+ children: s || [],
910
922
  // 空值回退
911
923
  expanded: !0
912
924
  });
@@ -919,8 +931,8 @@ class ut {
919
931
  const t = e[0];
920
932
  if (!(t != null && t.type))
921
933
  return [];
922
- const n = this.buildEntityFieldsTreeData(t.type.fields, [t.code]), l = this.buildChildEntityTreeData(t.type.entities, [t.code]);
923
- return l != null && l.length && (n == null || n.push(...l)), {
934
+ const n = this.buildEntityFieldsTreeData(t.type.fields, [t.code]), a = this.buildChildEntityTreeData(t.type.entities, [t.code]);
935
+ return a != null && a.length && (n == null || n.push(...a)), {
924
936
  entityCode: t.code,
925
937
  fields: [{
926
938
  data: this.createTreeNode(t, [], "code"),
@@ -946,123 +958,123 @@ class ut {
946
958
  };
947
959
  }
948
960
  onBeforeOpenExpression(e, t, n) {
949
- const l = n === "Field" ? e.binding.field : e.id, s = this.getExpressionRule(l, t), i = this.getEntitiesAndVariables(), c = {
950
- message: ["validate", "required", "dataPicking"].includes(t) && s ? s.message : "",
951
- ...i
961
+ const a = n === "Field" ? e.binding.field : e.id, i = this.getExpressionRule(a, t), s = this.getEntitiesAndVariables(), c = {
962
+ message: ["validate", "required", "dataPicking"].includes(t) && i ? i.message : "",
963
+ ...s
952
964
  };
953
- return s.messageType != null && (c.messageType = s.messageType), c;
965
+ return i.messageType != null && (c.messageType = i.messageType), c;
954
966
  }
955
- buildRule(e, t, n, l) {
956
- const { expression: s, message: i, messageType: c } = t, r = {
967
+ buildRule(e, t, n, a) {
968
+ const { expression: i, message: s, messageType: c } = t, r = {
957
969
  id: `${e}_${n}`,
958
970
  type: n,
959
- value: s
971
+ value: i
960
972
  };
961
- return (n === "validate" || n === "dataPicking" || n === "required") && (r.message = i), n === "dataPicking" && (r.messageType = c), n === "validate" && l && (r.elementId = l), r;
973
+ return (n === "validate" || n === "dataPicking" || n === "required") && (r.message = s), n === "dataPicking" && (r.messageType = c), n === "validate" && a && (r.elementId = a), r;
962
974
  }
963
975
  getExpressionData() {
964
976
  const { expressions: e } = this.formSchemaService.getFormSchema().module;
965
977
  return e || [];
966
978
  }
967
- updateExpression(e, t, n, l) {
968
- const s = t === "Field" ? e.binding.field : e.id, i = this.buildRule(s, n, l, e.type === "form-group" ? e.id : "");
969
- let r = this.getExpressionData().find((u) => u.targetType === t && u.target === s);
970
- const d = (u) => u.value.trim() === "";
979
+ updateExpression(e, t, n, a) {
980
+ const i = t === "Field" ? e.binding.field : e.id, s = this.buildRule(i, n, a, e.type === "form-group" ? e.id : "");
981
+ let r = this.getExpressionData().find((d) => d.targetType === t && d.target === i);
982
+ const u = (d) => d.value.trim() === "";
971
983
  if (r) {
972
- const u = r.rules.find((m) => m.id === i.id);
973
- if (u)
974
- d(i) ? r.rules = r.rules.filter((m) => m.id !== i.id) : (Object.assign(u, i), l === "validate" && e.type === "form-group" && (u.elementId = e.id));
984
+ const d = r.rules.find((p) => p.id === s.id);
985
+ if (d)
986
+ u(s) ? r.rules = r.rules.filter((p) => p.id !== s.id) : (Object.assign(d, s), a === "validate" && e.type === "form-group" && (d.elementId = e.id));
975
987
  else {
976
- if (d(i))
988
+ if (u(s))
977
989
  return null;
978
- r.rules = r.rules || [], r.rules.push(i);
990
+ r.rules = r.rules || [], r.rules.push(s);
979
991
  }
980
992
  } else {
981
- if (d(i))
993
+ if (u(s))
982
994
  return null;
983
995
  r = {
984
- target: `${s}`,
985
- rules: [i],
996
+ target: `${i}`,
997
+ rules: [s],
986
998
  targetType: t
987
999
  };
988
1000
  }
989
1001
  return r;
990
1002
  }
991
- getExpressionEditorOptions(e, t, n, l) {
992
- return n.reduce((s, i) => {
993
- var r, d;
1003
+ getExpressionEditorOptions(e, t, n, a) {
1004
+ return n.reduce((i, s) => {
1005
+ var r, u;
994
1006
  const c = t === "Field" ? (r = e == null ? void 0 : e.binding) == null ? void 0 : r.field : e.id;
995
- return s[i] = {
996
- hide: t === "Field" ? !!((d = e == null ? void 0 : e.binding) != null && d.field) : !1,
1007
+ return i[s] = {
1008
+ hide: t === "Field" ? !!((u = e == null ? void 0 : e.binding) != null && u.field) : !1,
997
1009
  description: "",
998
- title: this.expressionNames[i],
1010
+ title: this.expressionNames[s],
999
1011
  type: "string",
1000
1012
  $converter: this.getExpressionConverter(c),
1001
1013
  refreshPanelAfterChanged: !0,
1002
1014
  editor: {
1003
1015
  type: "expression-editor",
1004
1016
  singleExpand: !1,
1005
- dialogTitle: `${this.expressionNames[i]}编辑器`,
1006
- showMessage: i === "validate" || i === "dataPicking" || i === "required",
1007
- showMessageType: i === "dataPicking",
1008
- beforeOpen: () => this.onBeforeOpenExpression(e, i, t),
1009
- onSubmitModal: (u) => {
1010
- const m = this.updateExpression(e, t, u, i);
1011
- if (l) {
1012
- const p = this.buildRule(c, u, i);
1013
- l(p);
1017
+ dialogTitle: `${this.expressionNames[s]}编辑器`,
1018
+ showMessage: s === "validate" || s === "dataPicking" || s === "required",
1019
+ showMessageType: s === "dataPicking",
1020
+ beforeOpen: () => this.onBeforeOpenExpression(e, s, t),
1021
+ onSubmitModal: (d) => {
1022
+ const p = this.updateExpression(e, t, d, s);
1023
+ if (a) {
1024
+ const f = this.buildRule(c, d, s);
1025
+ a(f);
1014
1026
  }
1015
- return m;
1027
+ return p;
1016
1028
  }
1017
1029
  }
1018
- }, s;
1030
+ }, i;
1019
1031
  }, {});
1020
1032
  }
1021
1033
  getExpressionInfo(e, t, n) {
1022
- const l = t === "Field" ? e.binding.field : e.id, s = this.getExpressionRule(l, n), i = {
1023
- value: s && s.value,
1024
- targetId: l,
1034
+ const a = t === "Field" ? e.binding.field : e.id, i = this.getExpressionRule(a, n), s = {
1035
+ value: i && i.value,
1036
+ targetId: a,
1025
1037
  targetType: t,
1026
1038
  expressionType: n
1027
1039
  };
1028
- return s && s.message && (i.message = s.message), i;
1040
+ return i && i.message && (s.message = i.message), s;
1029
1041
  }
1030
- getExpressionConfig(e, t, n = ["compute", "dependency", "validate"], l) {
1042
+ getExpressionConfig(e, t, n = ["compute", "dependency", "validate"], a) {
1031
1043
  return {
1032
1044
  description: "表达式",
1033
1045
  title: "表达式",
1034
1046
  hide: !e.binding,
1035
1047
  properties: {
1036
- ...this.getExpressionEditorOptions(e, t, n, l)
1048
+ ...this.getExpressionEditorOptions(e, t, n, a)
1037
1049
  }
1038
1050
  };
1039
1051
  }
1040
1052
  getExpressionOptions(e, t, n) {
1041
- const l = this.getExpressionInfo(e, t, n);
1053
+ const a = this.getExpressionInfo(e, t, n);
1042
1054
  return {
1043
1055
  dialogTitle: `${this.expressionNames[n]}编辑器`,
1044
1056
  singleExpand: !1,
1045
1057
  showMessage: n === "required",
1046
1058
  beforeOpen: () => this.onBeforeOpenExpression(e, n, t),
1047
- expressionInfo: l
1059
+ expressionInfo: a
1048
1060
  };
1049
1061
  }
1050
1062
  }
1051
- class mt {
1063
+ class gt {
1052
1064
  constructor(e, t) {
1053
- B(this, "componentId");
1054
- B(this, "viewModelId");
1055
- B(this, "eventsEditorUtils");
1056
- B(this, "formSchemaUtils");
1057
- B(this, "formMetadataConverter");
1058
- B(this, "designViewModelUtils");
1059
- B(this, "designViewModelField");
1060
- B(this, "controlCreatorUtils");
1061
- B(this, "designerHostService");
1062
- B(this, "designerContext");
1063
- B(this, "schemaService", null);
1064
- B(this, "metadataService", null);
1065
- B(this, "propertyConfig", {
1065
+ $(this, "componentId");
1066
+ $(this, "viewModelId");
1067
+ $(this, "eventsEditorUtils");
1068
+ $(this, "formSchemaUtils");
1069
+ $(this, "formMetadataConverter");
1070
+ $(this, "designViewModelUtils");
1071
+ $(this, "designViewModelField");
1072
+ $(this, "controlCreatorUtils");
1073
+ $(this, "designerHostService");
1074
+ $(this, "designerContext");
1075
+ $(this, "schemaService", null);
1076
+ $(this, "metadataService", null);
1077
+ $(this, "propertyConfig", {
1066
1078
  type: "object",
1067
1079
  categories: {}
1068
1080
  });
@@ -1082,8 +1094,8 @@ class mt {
1082
1094
  const t = e.binding && e.binding.type === "Form" && e.binding.field;
1083
1095
  if (t) {
1084
1096
  if (!this.designViewModelField) {
1085
- const l = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1086
- this.designViewModelField = l.fields.find((s) => s.id === t);
1097
+ const a = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1098
+ this.designViewModelField = a.fields.find((i) => i.id === t);
1087
1099
  }
1088
1100
  e.updateOn = (n = this.designViewModelField) == null ? void 0 : n.updateOn;
1089
1101
  }
@@ -1109,17 +1121,17 @@ class mt {
1109
1121
  valueField: "value",
1110
1122
  idField: "value",
1111
1123
  editable: !1,
1112
- data: [{ value: e.type, name: _[e.type] && _[e.type].name }]
1124
+ data: [{ value: e.type, name: A[e.type] && A[e.type].name }]
1113
1125
  }
1114
1126
  }
1115
1127
  }
1116
1128
  };
1117
1129
  }
1118
1130
  getAppearanceConfig(e = null, t = {}, n) {
1119
- const l = {
1131
+ const a = {
1120
1132
  title: "外观",
1121
1133
  description: "Appearance"
1122
- }, s = {
1134
+ }, i = {
1123
1135
  class: {
1124
1136
  title: "class样式",
1125
1137
  type: "string",
@@ -1135,21 +1147,21 @@ class mt {
1135
1147
  parentPropertyID: "appearance"
1136
1148
  }
1137
1149
  };
1138
- for (const i in t)
1139
- s[i] = Object.assign(s[i] || {}, t[i]);
1150
+ for (const s in t)
1151
+ i[s] = Object.assign(i[s] || {}, t[s]);
1140
1152
  return {
1141
- ...l,
1142
- properties: { ...s },
1143
- setPropertyRelates(i, c) {
1144
- if (i) {
1145
- switch (i && i.propertyID) {
1153
+ ...a,
1154
+ properties: { ...i },
1155
+ setPropertyRelates(s, c) {
1156
+ if (s) {
1157
+ switch (s && s.propertyID) {
1146
1158
  case "class":
1147
1159
  case "style": {
1148
- Me.value++;
1160
+ Te.value++;
1149
1161
  break;
1150
1162
  }
1151
1163
  }
1152
- n && n(i, e, c);
1164
+ n && n(s, e, c);
1153
1165
  }
1154
1166
  }
1155
1167
  };
@@ -1164,44 +1176,44 @@ class mt {
1164
1176
  * @param expressionType 指定表达式类型,存在属性和表达式类型不一致的情况
1165
1177
  * @returns
1166
1178
  */
1167
- getPropertyEditorParams(e, t = [], n = "visible", l = {}, s = {}, i = "") {
1168
- const { getVariables: c, getControlName: r, getStateMachines: d } = dt(this.designerHostService), u = this.getRealTargetType(e), m = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], p = {
1179
+ getPropertyEditorParams(e, t = [], n = "visible", a = {}, i = {}, s = "") {
1180
+ const { getVariables: c, getControlName: r, getStateMachines: u } = mt(this.designerHostService), d = this.getRealTargetType(e), p = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], f = {
1169
1181
  type: "property-editor",
1170
- propertyTypes: m
1182
+ propertyTypes: p
1171
1183
  };
1172
- return m.map((v) => {
1173
- switch (v) {
1184
+ return p.map((g) => {
1185
+ switch (g) {
1174
1186
  case "Const":
1175
- Object.assign(p, {
1187
+ Object.assign(f, {
1176
1188
  constType: "enum",
1177
1189
  constEnums: [{ id: !0, name: "是" }, { id: !1, name: "否" }]
1178
- }, l);
1190
+ }, a);
1179
1191
  break;
1180
1192
  case "Expression":
1181
- p.expressionConfig = this.getExpressionOptions(e, u, i || n);
1193
+ f.expressionConfig = this.getExpressionOptions(e, d, s || n);
1182
1194
  break;
1183
1195
  case "StateMachine":
1184
- p.stateMachines = d();
1196
+ f.stateMachines = u();
1185
1197
  break;
1186
1198
  case "Variable":
1187
- Object.assign(p, {
1199
+ Object.assign(f, {
1188
1200
  controlName: r(e),
1189
1201
  newVariablePrefix: "is",
1190
1202
  newVariableType: "Boolean",
1191
1203
  variables: c(this.viewModelId),
1192
1204
  parentComponentId: this.componentId === "root-component" ? "" : "root-component",
1193
- onBeforeOpenVariables: (y) => {
1194
- y.value = c(this.viewModelId);
1205
+ onBeforeOpenVariables: (w) => {
1206
+ w.value = c(this.viewModelId);
1195
1207
  }
1196
- }, s), this.designerContext.designerMode === "PC_RTC" && (p.newVariablePrefix = "ext_" + p.newVariablePrefix);
1208
+ }, i), this.designerContext.designerMode === "PC_RTC" && (f.newVariablePrefix = "ext_" + f.newVariablePrefix);
1197
1209
  break;
1198
1210
  }
1199
- }), p;
1211
+ }), f;
1200
1212
  }
1201
1213
  getVisibleProperty(e, t = "") {
1202
- var s;
1214
+ var i;
1203
1215
  let n = ["Const", "Variable", "StateMachine", "Expression"];
1204
- return t === "gridFieldEditor" ? n = ["Const", "Expression"] : t === "form-group" && !((s = e.binding) != null && s.field) && (n = ["Const", "Variable", "StateMachine"]), {
1216
+ return t === "gridFieldEditor" ? n = ["Const", "Expression"] : t === "form-group" && !((i = e.binding) != null && i.field) && (n = ["Const", "Variable", "StateMachine"]), {
1205
1217
  visible: {
1206
1218
  title: "是否可见",
1207
1219
  type: "boolean",
@@ -1216,18 +1228,18 @@ class mt {
1216
1228
  * @param viewModelId
1217
1229
  * @returns
1218
1230
  */
1219
- getBehaviorConfig(e, t = "", n = {}, l) {
1220
- const s = {
1231
+ getBehaviorConfig(e, t = "", n = {}, a) {
1232
+ const i = {
1221
1233
  title: "行为",
1222
1234
  description: ""
1223
- }, i = this.getVisibleProperty(e, t);
1235
+ }, s = this.getVisibleProperty(e, t);
1224
1236
  for (const r in n)
1225
- i[r] = Object.assign(i[r] || {}, n[r]);
1237
+ s[r] = Object.assign(s[r] || {}, n[r]);
1226
1238
  const c = this;
1227
1239
  return {
1228
- ...s,
1229
- properties: { ...i },
1230
- setPropertyRelates(r, d) {
1240
+ ...i,
1241
+ properties: { ...s },
1242
+ setPropertyRelates(r, u) {
1231
1243
  if (r) {
1232
1244
  switch (r.propertyID) {
1233
1245
  case "disabled":
@@ -1236,7 +1248,7 @@ class mt {
1236
1248
  c.afterMutilEditorChanged(e, r);
1237
1249
  break;
1238
1250
  }
1239
- l && l(r, d);
1251
+ a && a(r, u);
1240
1252
  }
1241
1253
  }
1242
1254
  };
@@ -1259,8 +1271,8 @@ class mt {
1259
1271
  const n = t && t.parent && t.parent.schema;
1260
1272
  if (!n)
1261
1273
  return;
1262
- const l = n.contents.findIndex((i) => i.id === e), s = je(n.contents[l]);
1263
- n.contents.splice(l, 1), n.contents.splice(l, 0, s), ke();
1274
+ const a = n.contents.findIndex((s) => s.id === e), i = We(n.contents[a]);
1275
+ n.contents.splice(a, 1), n.contents.splice(a, 0, i), Pe();
1264
1276
  }
1265
1277
  /**
1266
1278
  * 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
@@ -1272,7 +1284,7 @@ class mt {
1272
1284
  const n = e.propertyValue;
1273
1285
  if (!(n && typeof n == "object") || !(n.type === "Variable" && n.isNewVariable))
1274
1286
  return;
1275
- const i = {
1287
+ const s = {
1276
1288
  id: n.field,
1277
1289
  category: "locale",
1278
1290
  code: n.fullPath,
@@ -1280,7 +1292,7 @@ class mt {
1280
1292
  type: n.newVariableType || "String",
1281
1293
  isRtcVariable: this.designerContext.designerMode === "PC_RTC" ? !0 : void 0
1282
1294
  };
1283
- delete n.newVariableType, delete n.isNewVariable, this.formSchemaUtils.getVariableByCode(i.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(i);
1295
+ delete n.newVariableType, delete n.isNewVariable, this.formSchemaUtils.getVariableByCode(s.code) || this.formSchemaUtils.getViewModelById("root-viewmodel").states.push(s);
1284
1296
  }
1285
1297
  /**
1286
1298
  * 更新表达式到expressions节点
@@ -1290,17 +1302,17 @@ class mt {
1290
1302
  const t = e.propertyValue;
1291
1303
  if (!((t && t.type) === "Expression" && t.expressionInfo))
1292
1304
  return;
1293
- const { expressionId: s, expressionInfo: i } = t, { targetId: c, targetType: r, expressionType: d, value: u, message: m } = i, p = this.formSchemaUtils.getModule();
1294
- p.expressions = p.expressions || [];
1295
- const { expressions: v } = p;
1296
- let y = v.find((w) => w.target === c);
1297
- y || (y = { target: c, rules: [], targetType: r }, v.push(y));
1298
- const I = y.rules.find((w) => w.type === d);
1299
- if (I)
1300
- I.value = u, I.message = m;
1305
+ const { expressionId: i, expressionInfo: s } = t, { targetId: c, targetType: r, expressionType: u, value: d, message: p } = s, f = this.formSchemaUtils.getModule();
1306
+ f.expressions = f.expressions || [];
1307
+ const { expressions: g } = f;
1308
+ let w = g.find((h) => h.target === c);
1309
+ w || (w = { target: c, rules: [], targetType: r }, g.push(w));
1310
+ const y = w.rules.find((h) => h.type === u);
1311
+ if (y)
1312
+ y.value = d, y.message = p;
1301
1313
  else {
1302
- const w = { id: s, type: d, value: u, message: m };
1303
- y.rules.push(w);
1314
+ const h = { id: i, type: u, value: d, message: p };
1315
+ w.rules.push(h);
1304
1316
  }
1305
1317
  delete t.expressionInfo;
1306
1318
  }
@@ -1314,14 +1326,14 @@ class mt {
1314
1326
  const n = e.propertyValue;
1315
1327
  if (n && n.type === "Expression")
1316
1328
  return;
1317
- const s = e.propertyID, i = this.formSchemaUtils.getExpressions(), c = t.binding ? t.binding.field : t.id, r = i.find((d) => d.target === c);
1318
- !r || !r.rules || (r.rules = r.rules.filter((d) => d.type !== s));
1329
+ const i = e.propertyID, s = this.formSchemaUtils.getExpressions(), c = t.binding ? t.binding.field : t.id, r = s.find((u) => u.target === c);
1330
+ !r || !r.rules || (r.rules = r.rules.filter((u) => u.type !== i));
1319
1331
  }
1320
1332
  getExpressionOptions(e, t, n) {
1321
- return new ut(this.formSchemaUtils).getExpressionOptions(e, t, n);
1333
+ return new ft(this.formSchemaUtils).getExpressionOptions(e, t, n);
1322
1334
  }
1323
1335
  getRealTargetType(e) {
1324
- return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item"].indexOf(e.type) > -1 ? "Button" : e.binding && e.binding.field ? "Field" : "Container";
1336
+ return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(e.type) > -1 ? "Button" : e.binding && e.binding.field ? "Field" : "Container";
1325
1337
  }
1326
1338
  createBaseEventProperty(e) {
1327
1339
  const t = {};
@@ -1330,14 +1342,14 @@ class mt {
1330
1342
  editor: {
1331
1343
  initialData: e,
1332
1344
  viewSourceHandle: (n) => {
1333
- var l;
1334
- ((l = n.controller) == null ? void 0 : l.label.indexOf(this.formSchemaUtils.getModule().code)) > -1 && this.eventsEditorUtils.jumpToMethod(n);
1345
+ var a;
1346
+ ((a = n.controller) == null ? void 0 : a.label.indexOf(this.formSchemaUtils.getModule().code)) > -1 && this.eventsEditorUtils.jumpToMethod(n);
1335
1347
  }
1336
1348
  }
1337
1349
  }, t;
1338
1350
  }
1339
1351
  }
1340
- class pt extends mt {
1352
+ class vt extends gt {
1341
1353
  constructor(e, t) {
1342
1354
  super(e, t);
1343
1355
  }
@@ -1345,13 +1357,13 @@ class pt extends mt {
1345
1357
  return this.getBasicPropConfig(e), this.getAppearanceProperties(e), this.getEventPropConfig(e), this.propertyConfig;
1346
1358
  }
1347
1359
  getBasicPropConfig(e) {
1348
- var i, c, r;
1349
- const t = (r = (c = (i = this.formSchemaUtils.getFormSchema()) == null ? void 0 : i.module) == null ? void 0 : c.entity[0]) == null ? void 0 : r.entities[0], n = this.assembleSchemaEntityToTree(t, 0), l = this, s = super.getBasicPropConfig(e);
1360
+ var s, c, r;
1361
+ const t = (r = (c = (s = this.formSchemaUtils.getFormSchema()) == null ? void 0 : s.module) == null ? void 0 : c.entity[0]) == null ? void 0 : r.entities[0], n = this.assembleSchemaEntityToTree(t, 0), a = this, i = super.getBasicPropConfig(e);
1350
1362
  this.propertyConfig.categories.basic = {
1351
1363
  description: "Basic Information",
1352
1364
  title: "基本信息",
1353
1365
  properties: {
1354
- ...s.properties,
1366
+ ...i.properties,
1355
1367
  dataSource: {
1356
1368
  description: "绑定数据源",
1357
1369
  title: "绑定数据源",
@@ -1365,15 +1377,15 @@ class pt extends mt {
1365
1377
  readonly: !0
1366
1378
  }
1367
1379
  },
1368
- setPropertyRelates(d, u) {
1369
- switch (d && d.propertyID) {
1380
+ setPropertyRelates(u, d) {
1381
+ switch (u && u.propertyID) {
1370
1382
  case "dataSource": {
1371
- const m = l.formSchemaUtils.getViewModelById(l.viewModelId);
1372
- if (m) {
1373
- const p = n.find((v) => v.label === d.propertyValue);
1374
- m.bindTo = p.bindTo;
1383
+ const p = a.formSchemaUtils.getViewModelById(a.viewModelId);
1384
+ if (p) {
1385
+ const f = n.find((g) => g.label === u.propertyValue);
1386
+ p.bindTo = f.bindTo;
1375
1387
  }
1376
- l.designViewModelUtils.assembleDesignViewModel();
1388
+ a.designViewModelUtils.assembleDesignViewModel();
1377
1389
  break;
1378
1390
  }
1379
1391
  }
@@ -1383,16 +1395,16 @@ class pt extends mt {
1383
1395
  /**
1384
1396
  * 将schema实体表组装成树
1385
1397
  */
1386
- assembleSchemaEntityToTree(e, t, n, l = "", s = []) {
1387
- const i = l ? `${l}/${e.label}` : "/";
1388
- return s.push({
1398
+ assembleSchemaEntityToTree(e, t, n, a = "", i = []) {
1399
+ const s = a ? `${a}/${e.label}` : "/";
1400
+ return i.push({
1389
1401
  id: e.id,
1390
1402
  name: e.name,
1391
1403
  label: e.label,
1392
1404
  layer: t,
1393
1405
  parent: n && n.id,
1394
- bindTo: i.replace("//", "/")
1395
- }), e.type.entities && e.type.entities.length && e.type.entities.map((c) => this.assembleSchemaEntityToTree(c, t + 1, e, i, s)), s;
1406
+ bindTo: s.replace("//", "/")
1407
+ }), e.type.entities && e.type.entities.length && e.type.entities.map((c) => this.assembleSchemaEntityToTree(c, t + 1, e, s, i)), i;
1396
1408
  }
1397
1409
  getAppearanceProperties(e) {
1398
1410
  this.propertyConfig.categories.appearance = {
@@ -1410,7 +1422,7 @@ class pt extends mt {
1410
1422
  editor: {
1411
1423
  type: "code-editor",
1412
1424
  language: "javascript",
1413
- leftTemplate: () => a(j, null, [a("h5", null, [O("示例代码")]), a("pre", null, [`
1425
+ leftTemplate: () => l(j, null, [l("h5", null, [O("示例代码")]), l("pre", null, [`
1414
1426
  (dataItem) => {
1415
1427
  if(dataItem.code === '0001') {
1416
1428
  return 'bg-danger text-center';
@@ -1430,7 +1442,7 @@ class pt extends mt {
1430
1442
  editor: {
1431
1443
  type: "code-editor",
1432
1444
  language: "javascript",
1433
- leftTemplate: () => a(j, null, [a("h5", null, [O("示例代码")]), a("pre", null, [`
1445
+ leftTemplate: () => l(j, null, [l("h5", null, [O("示例代码")]), l("pre", null, [`
1434
1446
  (dataItem) => {
1435
1447
  if(dataItem.code === '0001') {
1436
1448
  return 'textAlign:center;color:green';
@@ -1487,24 +1499,24 @@ class pt extends mt {
1487
1499
  };
1488
1500
  }
1489
1501
  getEventPropConfig(e) {
1490
- var i;
1502
+ var s;
1491
1503
  const t = [{
1492
1504
  label: "onClickItem",
1493
1505
  name: "行点击事件"
1494
1506
  }];
1495
- (i = e.pagination) == null || i.enable;
1496
- const n = this, l = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), s = n.createBaseEventProperty(l);
1507
+ (s = e.pagination) == null || s.enable;
1508
+ const n = this, a = n.eventsEditorUtils.formProperties(e, n.viewModelId, t), i = n.createBaseEventProperty(a);
1497
1509
  this.propertyConfig.categories.eventsEditor = {
1498
1510
  title: "事件",
1499
1511
  hideTitle: !0,
1500
- properties: s,
1512
+ properties: i,
1501
1513
  // 这个属性,标记当属性变更得时候触发重新更新属性
1502
1514
  refreshPanelAfterChanged: !0,
1503
1515
  tabId: "commands",
1504
1516
  tabName: "交互",
1505
1517
  setPropertyRelates(c, r) {
1506
- const d = c.propertyValue;
1507
- delete e[n.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, d.events, d)), e.remoteSort = !!e.columnSorted, e.command && (e.command.onClickEditCommand = e.onClickEditCommand, e.command.onClickDeleteCommand = e.onClickDeleteCommand);
1518
+ const u = c.propertyValue;
1519
+ delete e[n.viewModelId], u && (u.setPropertyRelates = this.setPropertyRelates, n.eventsEditorUtils.saveRelatedParameters(e, n.viewModelId, u.events, u)), e.remoteSort = !!e.columnSorted, e.command && (e.command.onClickEditCommand = e.onClickEditCommand, e.command.onClickDeleteCommand = e.onClickDeleteCommand);
1508
1520
  }
1509
1521
  };
1510
1522
  }
@@ -1513,12 +1525,12 @@ class pt extends mt {
1513
1525
  return e && e.bindTo ? e.bindTo.trim() !== "/" : !1;
1514
1526
  }
1515
1527
  }
1516
- function ft(o, e) {
1517
- const t = o.schema, n = C(!0), l = C(!0);
1518
- function s(m) {
1528
+ function ht(o, e) {
1529
+ const t = o.schema, n = b(!0), a = b(!0);
1530
+ function i(p) {
1519
1531
  return !1;
1520
1532
  }
1521
- function i() {
1533
+ function s() {
1522
1534
  return !1;
1523
1535
  }
1524
1536
  function c() {
@@ -1527,143 +1539,41 @@ function ft(o, e) {
1527
1539
  function r() {
1528
1540
  return !0;
1529
1541
  }
1530
- function d(m) {
1531
- return new pt(m, e).getPropertyConfig(t);
1542
+ function u(p) {
1543
+ return new vt(p, e).getPropertyConfig(t);
1532
1544
  }
1533
- function u() {
1534
- var m, p, v, y;
1545
+ function d() {
1546
+ var p, f, g, w;
1535
1547
  if (o && e) {
1536
- const I = (m = o == null ? void 0 : o.componentInstance) == null ? void 0 : m.value.belongedComponentId;
1537
- let w = "", x = "";
1548
+ const y = (p = o == null ? void 0 : o.componentInstance) == null ? void 0 : p.value.belongedComponentId;
1549
+ let h = "", S = "";
1538
1550
  const { formSchemaUtils: k } = e;
1539
- if (I) {
1540
- const F = k.getRootViewModelId(), N = k.getComponentByViewModelId(F), g = k.selectNode(N, (h) => h.contents && h.contents.find((b) => b.component === I));
1541
- (g == null ? void 0 : g.type) === ((p = H["tab-page"]) == null ? void 0 : p.type) && ((v = g == null ? void 0 : g.contents) != null && v.length) && (w = g.title || ""), (g == null ? void 0 : g.type) === ((y = H.section) == null ? void 0 : y.type) && (g == null ? void 0 : g.showHeader) !== !1 && (w = g.mainTitle || ""), w = w ? `${w} > ` : "", x = w ? g.id : "";
1551
+ if (y) {
1552
+ const F = k.getRootViewModelId(), B = k.getComponentByViewModelId(F), v = k.selectNode(B, (M) => M.contents && M.contents.find((C) => C.component === y));
1553
+ (v == null ? void 0 : v.type) === ((f = z["tab-page"]) == null ? void 0 : f.type) && ((g = v == null ? void 0 : v.contents) != null && g.length) && (h = v.title || ""), (v == null ? void 0 : v.type) === ((w = z.section) == null ? void 0 : w.type) && (v == null ? void 0 : v.showHeader) !== !1 && (h = v.mainTitle || ""), h = h ? `${h} > ` : "", S = h ? v.id : "";
1542
1554
  }
1543
- const E = H["list-view"].name;
1555
+ const x = z["list-view"].name;
1544
1556
  e == null || e.formSchemaUtils.getControlBasicInfoMap().set(o.schema.id, {
1545
- componentTitle: E,
1546
- parentPathName: `${w}${E}`,
1547
- reliedComponentId: x
1557
+ componentTitle: x,
1558
+ parentPathName: `${h}${x}`,
1559
+ reliedComponentId: S
1548
1560
  });
1549
1561
  }
1550
1562
  }
1551
1563
  return {
1552
- canAccepts: s,
1553
- checkCanDeleteComponent: i,
1564
+ canAccepts: i,
1565
+ checkCanDeleteComponent: s,
1554
1566
  checkCanMoveComponent: c,
1555
1567
  hideNestedPaddingInDesginerView: r,
1556
1568
  triggerBelongedComponentToMoveWhenMoved: n,
1557
- triggerBelongedComponentToDeleteWhenDeleted: l,
1558
- getPropsConfig: d,
1559
- setComponentBasicInfoMap: u
1569
+ triggerBelongedComponentToDeleteWhenDeleted: a,
1570
+ getPropsConfig: u,
1571
+ setComponentBasicInfoMap: d
1560
1572
  };
1561
1573
  }
1562
- const gt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/list-view-table.schema.json", ht = "list-view-table", wt = "A Farris Component", yt = "object", Ct = {
1563
- id: {
1564
- description: "The unique identifier for list-view-table",
1565
- type: "string"
1566
- },
1567
- type: {
1568
- description: "The type string of list-view-table",
1569
- type: "string",
1570
- default: "list-view-table"
1571
- },
1572
- appearance: {
1573
- description: "",
1574
- type: "object",
1575
- properties: {
1576
- class: {
1577
- type: "string"
1578
- },
1579
- style: {
1580
- type: "string"
1581
- }
1582
- },
1583
- default: {}
1584
- },
1585
- binding: {
1586
- description: "",
1587
- type: "object",
1588
- default: {}
1589
- },
1590
- disable: {
1591
- type: "string",
1592
- default: !1
1593
- },
1594
- editable: {
1595
- description: "",
1596
- type: "boolean",
1597
- default: !0
1598
- },
1599
- placeholder: {
1600
- description: "",
1601
- type: "string",
1602
- default: ""
1603
- },
1604
- readonly: {
1605
- description: "",
1606
- type: "boolean",
1607
- default: !1
1608
- },
1609
- require: {
1610
- description: "",
1611
- type: "boolean",
1612
- default: !1
1613
- },
1614
- tabindex: {
1615
- description: "",
1616
- type: "number",
1617
- default: -1
1618
- },
1619
- visible: {
1620
- description: "",
1621
- type: "boolean",
1622
- default: !0
1623
- }
1624
- }, bt = [
1625
- "id",
1626
- "type"
1627
- ], It = {
1628
- $schema: gt,
1629
- $id: vt,
1630
- title: ht,
1631
- description: wt,
1632
- type: yt,
1633
- properties: Ct,
1634
- required: bt
1635
- }, Vt = "list-view-table", St = "A Farris Component", Mt = "object", kt = {
1636
- basic: {
1637
- description: "Basic Infomation",
1638
- title: "基本信息",
1639
- properties: {
1640
- id: {
1641
- description: "组件标识",
1642
- title: "标识",
1643
- type: "string",
1644
- readonly: !0
1645
- },
1646
- type: {
1647
- description: "组件类型",
1648
- title: "控件类型",
1649
- type: "select",
1650
- editor: {
1651
- type: "waiting for modification",
1652
- enum: []
1653
- }
1654
- }
1655
- }
1656
- }
1657
- }, xt = {
1658
- title: Vt,
1659
- description: St,
1660
- type: Mt,
1661
- categories: kt
1662
- }, ae = {
1663
- data: { type: Array, default: [] }
1664
- }, re = Z(ae, It, ie, se, xt), ce = /* @__PURE__ */ ee({
1574
+ const ce = /* @__PURE__ */ ie({
1665
1575
  name: "FListViewTableDesign",
1666
- props: ae,
1576
+ props: be,
1667
1577
  emits: ["outputValue", "currentEvent", "selectionChanged"],
1668
1578
  setup(o, e) {
1669
1579
  const t = [{
@@ -1717,158 +1627,268 @@ const gt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-
1717
1627
  avatar: "./assets/avatar7.png"
1718
1628
  }];
1719
1629
  U(() => o.data.length > 0 ? o.data : t);
1720
- const n = C(), l = W("design-item-context"), s = ne(n, l);
1721
- return te(() => {
1722
- n.value.componentInstance = s;
1723
- }), e.expose(s.value), () => a("div", {
1630
+ const n = b(), a = K("design-item-context"), i = ae(n, a);
1631
+ return oe(() => {
1632
+ n.value.componentInstance = i;
1633
+ }), e.expose(i.value), () => l("div", {
1724
1634
  ref: n
1725
- }, [a("div", {
1635
+ }, [l("div", {
1726
1636
  class: "ide-list-view h-100"
1727
- }, [a("div", {
1637
+ }, [l("div", {
1728
1638
  class: "f-list-view"
1729
- }, [a("div", {
1639
+ }, [l("div", {
1730
1640
  class: "f-list-view-content"
1731
- }, [a("ul", {
1641
+ }, [l("ul", {
1732
1642
  class: "f-list-view-group"
1733
- }, [a("li", {
1643
+ }, [l("li", {
1734
1644
  class: "ide-list-view-group-item"
1735
- }, [a("div", {
1645
+ }, [l("div", {
1736
1646
  class: "ide-list-content"
1737
- }, [a("div", {
1647
+ }, [l("div", {
1738
1648
  class: "f-template-common-row d-flex"
1739
- }, [a("div", {
1649
+ }, [l("div", {
1740
1650
  class: "item-action-primary"
1741
- }, [a("img", {
1651
+ }, [l("img", {
1742
1652
  class: "ap-img",
1743
1653
  src: "./assets/avatar1.png",
1744
1654
  title: "img1"
1745
- }, null)]), a("div", {
1655
+ }, null)]), l("div", {
1746
1656
  class: "listview-item-content d-flex k-align-items-center"
1747
- }, [a("div", {
1657
+ }, [l("div", {
1748
1658
  class: "listview-item-main"
1749
- }, [a("h4", {
1659
+ }, [l("h4", {
1750
1660
  class: "listview-item-title"
1751
- }, null), a("h5", {
1661
+ }, null), l("h5", {
1752
1662
  class: "listview-item-subtitle"
1753
- }, null)]), a("div", {
1663
+ }, null)]), l("div", {
1754
1664
  class: "listview-item-btns"
1755
- }, [a("button", {
1665
+ }, [l("button", {
1756
1666
  class: "btn btn-link"
1757
- }, [O(" "), "编辑"]), a("button", {
1667
+ }, [O(" "), "编辑"]), l("button", {
1758
1668
  class: "btn btn-link"
1759
- }, [O(" "), "删除"])])])])])]), a("li", {
1669
+ }, [O(" "), "删除"])])])])])]), l("li", {
1760
1670
  class: "ide-list-view-group-item"
1761
- }, [a("div", {
1671
+ }, [l("div", {
1762
1672
  class: "ide-list-content"
1763
- }, [a("div", {
1673
+ }, [l("div", {
1764
1674
  class: "f-template-common-row d-flex"
1765
- }, [a("div", {
1675
+ }, [l("div", {
1766
1676
  class: "item-action-primary"
1767
- }, [a("img", {
1677
+ }, [l("img", {
1768
1678
  class: "ap-img",
1769
1679
  src: "./assets/avatar2.png",
1770
1680
  title: "img2"
1771
- }, null)]), a("div", {
1681
+ }, null)]), l("div", {
1772
1682
  class: "listview-item-content d-flex k-align-items-center"
1773
- }, [a("div", {
1683
+ }, [l("div", {
1774
1684
  class: "listview-item-main"
1775
- }, [a("h4", {
1685
+ }, [l("h4", {
1776
1686
  class: "listview-item-title"
1777
- }, null), a("h5", {
1687
+ }, null), l("h5", {
1778
1688
  class: "listview-item-subtitle"
1779
- }, null)]), a("div", {
1689
+ }, null)]), l("div", {
1780
1690
  class: "listview-item-btns"
1781
- }, [a("button", {
1691
+ }, [l("button", {
1782
1692
  class: "btn btn-link"
1783
- }, [O(" "), "编辑"]), a("button", {
1693
+ }, [O(" "), "编辑"]), l("button", {
1784
1694
  class: "btn btn-link"
1785
- }, ["删除"])])])])])]), a("li", {
1695
+ }, ["删除"])])])])])]), l("li", {
1786
1696
  class: "ide-list-view-group-item"
1787
- }, [a("div", {
1697
+ }, [l("div", {
1788
1698
  class: "ide-list-content"
1789
- }, [a("div", {
1699
+ }, [l("div", {
1790
1700
  class: "f-template-common-row d-flex"
1791
- }, [a("div", {
1701
+ }, [l("div", {
1792
1702
  class: "item-action-primary"
1793
- }, [a("img", {
1703
+ }, [l("img", {
1794
1704
  class: "ap-img",
1795
1705
  src: "./assets/avatar3.png",
1796
1706
  title: "img3"
1797
- }, null)]), a("div", {
1707
+ }, null)]), l("div", {
1798
1708
  class: "listview-item-content d-flex k-align-items-center"
1799
- }, [a("div", {
1709
+ }, [l("div", {
1800
1710
  class: "listview-item-main"
1801
- }, [a("h4", {
1711
+ }, [l("h4", {
1802
1712
  class: "listview-item-title"
1803
- }, null), a("h5", {
1713
+ }, null), l("h5", {
1804
1714
  class: "listview-item-subtitle"
1805
- }, null)]), a("div", {
1715
+ }, null)]), l("div", {
1806
1716
  class: "listview-item-btns"
1807
- }, [a("button", {
1717
+ }, [l("button", {
1808
1718
  class: "btn btn-link"
1809
- }, [O(" "), "编辑"]), a("button", {
1719
+ }, [O(" "), "编辑"]), l("button", {
1810
1720
  class: "btn btn-link"
1811
1721
  }, ["删除"])])])])])])])])])])]);
1812
1722
  }
1813
- }), G = /* @__PURE__ */ ee({
1723
+ }), G = /* @__PURE__ */ ie({
1814
1724
  name: "FListViewDesign",
1815
- props: oe,
1725
+ props: Y,
1816
1726
  emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change"],
1817
1727
  setup(o, e) {
1818
- const t = C(), n = C(!0), l = C(!1), s = C([]), i = 0, c = C(o.columns), r = xe(o, e), d = Ee(o), u = Te(o), m = Pe(o, d), p = Fe(o, /* @__PURE__ */ new Map(), r, u, d), v = Re(o, p, d, s, e), y = Ge(o, t), I = C(), w = W("designer-host-service"), x = W("design-item-context"), k = ft(x, w), E = ne(I, x, k), F = U(() => p.dataView.value.length), N = Ne(o, e, v, d), g = Be(o, e, d, N, s), h = Ue(o), b = $e(o, {}, h), f = De(o, p, g, u, d, h, b), S = Oe(o, d, b, f), D = Ae(o, d, b, f), R = Le(o, c, p, F, i, f, S, D), {
1819
- getVisualData: A
1820
- } = R;
1821
- s.value = A(0, F.value + i - 1), te(() => {
1822
- I.value.componentInstance = E;
1823
- }), e.expose(E.value);
1824
- const T = U(() => {
1825
- const L = {
1728
+ const t = b(), n = b(!0), a = b(!1), i = b([]), s = 0, c = b(o.columns), r = Fe(o, e), u = Re(o), d = Ne(o), p = Be(o, u), f = $e(o, /* @__PURE__ */ new Map(), r, d, u), g = Ue(o, f, u, i, e), w = ze(o, t), y = b(), h = K("designer-host-service"), S = K("design-item-context"), k = ht(S, h), x = ae(y, S, k), F = U(() => f.dataView.value.length), B = De(o, e, g, u), v = Oe(o, e, u, B, i), M = Ae(o), C = Le(o, {}, M), m = _e(o, f, v, d, u, M, C), T = je(o, u, C, m), R = Ge(o, u, C, m), N = qe(o, c, f, F, s, m, T, R), {
1729
+ getVisualData: L
1730
+ } = N;
1731
+ i.value = L(0, F.value + s - 1), oe(() => {
1732
+ y.value.componentInstance = x;
1733
+ }), e.expose(x.value);
1734
+ const E = U(() => {
1735
+ const _ = {
1826
1736
  "f-list-view": !0,
1827
1737
  "f-list-view-multiple": o.multiSelect,
1828
1738
  "w-100": !0,
1829
1739
  "h-100": !0
1830
1740
  };
1831
- return o.size !== "default" && (L[`${o.size}-item`] = !0), L;
1832
- }), M = U(() => !!e.slots.footer || n.value);
1833
- function V() {
1834
- return o.header === "SearchBar" ? Q : o.header === "ContentHeader" ? Xe : Q;
1741
+ return o.size !== "default" && (_[`${o.size}-item`] = !0), _;
1742
+ }), V = U(() => !!e.slots.footer || n.value);
1743
+ function I() {
1744
+ return o.header === "SearchBar" ? te : o.header === "ContentHeader" ? Ze : te;
1835
1745
  }
1836
- const $ = V(), {
1746
+ const D = I(), {
1837
1747
  renderHeader: P
1838
- } = $(o, e, y), q = Ye(), K = Je(o, e, p, q), de = Qe(o, e, s, K, q, v);
1839
- Ke(o, e, s, p, m, q, v, R, de, K);
1840
- function ue(L) {
1841
- o.multiSelect && (L.preventDefault(), L.stopPropagation());
1748
+ } = D(o, e, w), W = et(), J = tt(o, e, f, W), me = nt(o, e, i, J, W, g);
1749
+ Qe(o, e, i, f, p, W, g, N, me, J);
1750
+ function fe(_) {
1751
+ o.multiSelect && (_.preventDefault(), _.stopPropagation());
1842
1752
  }
1843
- return () => a("div", {
1844
- ref: I,
1845
- class: T.value,
1846
- onClick: ue
1847
- }, [P(), a("div", {
1753
+ return () => l("div", {
1754
+ ref: y,
1755
+ class: E.value,
1756
+ onClick: fe
1757
+ }, [P(), l("div", {
1848
1758
  ref: t,
1849
1759
  class: "f-list-view-content",
1850
1760
  onMouseover: () => {
1851
- l.value = !0;
1761
+ a.value = !0;
1852
1762
  },
1853
1763
  onMouseleave: () => {
1854
- l.value = !1;
1764
+ a.value = !1;
1855
1765
  }
1856
- }, [a(ce, null, null)]), M.value && a("div", {
1766
+ }, [l(ce, null, null)]), V.value && l("div", {
1857
1767
  class: "f-list-view-footer"
1858
1768
  }, [e.slots.footer && e.slots.footer()])]);
1859
1769
  }
1860
- }), Et = Ce();
1861
- G.register = (o, e, t, n) => {
1862
- o["list-view"] = ve, e["list-view"] = le, o["list-view-table"] = we, e["list-view-table"] = re, n["list-view"] = { bindingResolver: Et };
1770
+ }), wt = "https://json-schema.org/draft/2020-12/schema", yt = "https://farris-design.gitee.io/list-view-table.schema.json", Ct = "list-view-table", bt = "A Farris Component", It = "object", Vt = {
1771
+ id: {
1772
+ description: "The unique identifier for list-view-table",
1773
+ type: "string"
1774
+ },
1775
+ type: {
1776
+ description: "The type string of list-view-table",
1777
+ type: "string",
1778
+ default: "list-view-table"
1779
+ },
1780
+ appearance: {
1781
+ description: "",
1782
+ type: "object",
1783
+ properties: {
1784
+ class: {
1785
+ type: "string"
1786
+ },
1787
+ style: {
1788
+ type: "string"
1789
+ }
1790
+ },
1791
+ default: {}
1792
+ },
1793
+ binding: {
1794
+ description: "",
1795
+ type: "object",
1796
+ default: {}
1797
+ },
1798
+ disable: {
1799
+ type: "string",
1800
+ default: !1
1801
+ },
1802
+ editable: {
1803
+ description: "",
1804
+ type: "boolean",
1805
+ default: !0
1806
+ },
1807
+ placeholder: {
1808
+ description: "",
1809
+ type: "string",
1810
+ default: ""
1811
+ },
1812
+ readonly: {
1813
+ description: "",
1814
+ type: "boolean",
1815
+ default: !1
1816
+ },
1817
+ require: {
1818
+ description: "",
1819
+ type: "boolean",
1820
+ default: !1
1821
+ },
1822
+ tabindex: {
1823
+ description: "",
1824
+ type: "number",
1825
+ default: -1
1826
+ },
1827
+ visible: {
1828
+ description: "",
1829
+ type: "boolean",
1830
+ default: !0
1831
+ }
1832
+ }, St = [
1833
+ "id",
1834
+ "type"
1835
+ ], de = {
1836
+ $schema: wt,
1837
+ $id: yt,
1838
+ title: Ct,
1839
+ description: bt,
1840
+ type: It,
1841
+ properties: Vt,
1842
+ required: St
1843
+ }, Mt = "list-view-table", kt = "A Farris Component", xt = "object", Et = {
1844
+ basic: {
1845
+ description: "Basic Infomation",
1846
+ title: "基本信息",
1847
+ properties: {
1848
+ id: {
1849
+ description: "组件标识",
1850
+ title: "标识",
1851
+ type: "string",
1852
+ readonly: !0
1853
+ },
1854
+ type: {
1855
+ description: "组件类型",
1856
+ title: "控件类型",
1857
+ type: "select",
1858
+ editor: {
1859
+ type: "waiting for modification",
1860
+ enum: []
1861
+ }
1862
+ }
1863
+ }
1864
+ }
1865
+ }, Tt = {
1866
+ title: Mt,
1867
+ description: kt,
1868
+ type: xt,
1869
+ categories: Et
1870
+ }, ue = {
1871
+ data: { type: Array, default: [] }
1872
+ };
1873
+ ne(ue, de, q, H, Tt);
1874
+ const pe = se(
1875
+ ue,
1876
+ de,
1877
+ q,
1878
+ H
1879
+ ), Pt = Se();
1880
+ G.register = (o, e, t, n, a) => {
1881
+ o["list-view"] = ye, e["list-view"] = re(a), o["list-view-table"] = Ie, e["list-view-table"] = pe(a), n["list-view"] = { bindingResolver: Pt };
1863
1882
  };
1864
- G.registerDesigner = (o, e, t) => {
1865
- o["list-view"] = G, e["list-view"] = le, o["list-view-table"] = ce, e["list-view-table"] = re;
1883
+ G.registerDesigner = (o, e, t, n) => {
1884
+ o["list-view"] = G, e["list-view"] = re(n), o["list-view-table"] = ce, e["list-view-table"] = pe(n);
1866
1885
  };
1867
- const At = ge(G);
1886
+ const jt = we(G);
1868
1887
  export {
1869
1888
  G as FListViewDesign,
1870
- Et as bindingResolver,
1871
- At as default,
1872
- oe as listViewDesignProps,
1873
- le as propsResolver
1889
+ Pt as bindingResolver,
1890
+ jt as default,
1891
+ Y as listViewDesignProps,
1892
+ _t as propsResolver,
1893
+ re as propsResolverGenerator
1874
1894
  };