cnhis-design-vue 3.2.4-beta.2 → 3.2.4-beta.20

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 (333) hide show
  1. package/README.md +87 -87
  2. package/es/components/biunique-chat/index.d.ts +46 -15
  3. package/es/components/biunique-chat/src/Index.vue.d.ts +46 -15
  4. package/es/components/biunique-chat/src/Index.vue2.js +1 -1
  5. package/es/components/biunique-chat/src/api/index.d.ts +2 -0
  6. package/es/components/biunique-chat/src/api/index.js +1 -1
  7. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +38 -10
  8. package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
  9. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +4 -2
  10. package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
  11. package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +38 -8
  12. package/es/components/biunique-chat/src/components/ChatRecord.vue2.js +1 -1
  13. package/es/components/biunique-chat/src/components/ChatSearch.vue.d.ts +3 -1
  14. package/es/components/biunique-chat/src/components/ChatSearch.vue2.js +1 -1
  15. package/es/components/biunique-chat/src/components/ChatSet.vue.d.ts +1 -1
  16. package/es/components/biunique-chat/src/components/ChatSet.vue2.js +1 -1
  17. package/es/components/biunique-chat/src/components/MessageTemplate.vue2.js +1 -1
  18. package/es/components/biunique-chat/src/components/PersonProfile.vue.d.ts +1 -1
  19. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  20. package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
  21. package/es/components/biunique-chat/src/hooks/useSession.d.ts +1 -1
  22. package/es/components/biunique-chat/src/hooks/useSession.js +1 -1
  23. package/es/components/biunique-chat/src/utils/index.d.ts +1 -0
  24. package/es/components/biunique-chat/src/utils/index.js +1 -1
  25. package/es/components/biunique-chat/style/index.css +1 -1
  26. package/es/components/callback/src/components/render/popupMaps.d.ts +20 -0
  27. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  28. package/es/components/card-reader-sdk/src/constants/index.d.ts +92 -0
  29. package/es/components/card-reader-sdk/src/constants/index.js +1 -1
  30. package/es/components/classification/src/index.vue.d.ts +0 -3
  31. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  32. package/es/components/default-page/index.d.ts +0 -1
  33. package/es/components/default-page/src/constants/index.d.ts +4 -0
  34. package/es/components/default-page/src/constants/index.js +1 -1
  35. package/es/components/default-page/src/index.vue.d.ts +0 -1
  36. package/es/components/default-page/src/index.vue2.js +1 -1
  37. package/es/components/default-page/style/index.css +1 -1
  38. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  39. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
  40. package/es/components/form-config/index.d.ts +59 -0
  41. package/es/components/form-config/src/FormConfig.vue.d.ts +59 -0
  42. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +20 -0
  43. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -0
  44. package/es/components/form-render/index.d.ts +20 -0
  45. package/es/components/form-render/index.js +1 -1
  46. package/es/components/form-render/src/FormRender.vue.d.ts +20 -0
  47. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  48. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +20 -0
  49. package/es/components/form-render/src/components/renderer/formItem.d.ts +14 -0
  50. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  51. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -0
  52. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +2 -0
  53. package/es/components/form-render/src/constants/index.d.ts +2 -1
  54. package/es/components/form-render/src/constants/index.js +1 -1
  55. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  56. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  57. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
  58. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  59. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  60. package/es/components/form-render/src/types/index.d.ts +2 -0
  61. package/es/components/form-render/src/utils/dom.js +1 -1
  62. package/es/components/form-render/src/utils/schema.d.ts +1 -0
  63. package/es/components/form-render/src/utils/schema.js +1 -1
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  69. package/es/components/iho-table/src/plugins/rowDragPlugin.js +1 -1
  70. package/es/components/iho-table/src/types/index.d.ts +2 -0
  71. package/es/components/index.css +1 -1
  72. package/es/components/index.d.ts +2 -1
  73. package/es/components/index.js +1 -1
  74. package/es/components/info-header/index.d.ts +50 -0
  75. package/es/components/info-header/src/InfoHeader.vue.d.ts +50 -0
  76. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
  77. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
  78. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +22 -0
  79. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +20 -0
  80. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  81. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  82. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  83. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  84. package/es/components/shortcut-setter/index.d.ts +21 -0
  85. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +21 -0
  86. package/es/components/tooth-bitmap/index.d.ts +42 -0
  87. package/es/components/tooth-bitmap/index.js +1 -0
  88. package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +42 -0
  89. package/es/components/tooth-bitmap/src/ToothBitmap.vue.js +1 -0
  90. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -0
  91. package/es/components/tooth-bitmap/style/index.css +1 -0
  92. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  93. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  94. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  95. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -0
  96. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -0
  97. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -0
  98. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -0
  99. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  100. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  101. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  102. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  103. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  104. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  105. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  106. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  107. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  108. package/es/shared/assets/img/emoji/emotion_001.png.js +1 -1
  109. package/es/shared/assets/img/emoji/emotion_002.png.js +1 -1
  110. package/es/shared/assets/img/emoji/emotion_003.png.js +1 -1
  111. package/es/shared/assets/img/emoji/emotion_004.png.js +1 -1
  112. package/es/shared/assets/img/emoji/emotion_005.png.js +1 -1
  113. package/es/shared/assets/img/emoji/emotion_006.png.js +1 -1
  114. package/es/shared/assets/img/emoji/emotion_007.png.js +1 -1
  115. package/es/shared/assets/img/emoji/emotion_008.png.js +1 -1
  116. package/es/shared/assets/img/emoji/emotion_009.png.js +1 -1
  117. package/es/shared/assets/img/emoji/emotion_010.png.js +1 -1
  118. package/es/shared/assets/img/emoji/emotion_011.png.js +1 -1
  119. package/es/shared/assets/img/emoji/emotion_012.png.js +1 -1
  120. package/es/shared/assets/img/emoji/emotion_013.png.js +1 -1
  121. package/es/shared/assets/img/emoji/emotion_014.png.js +1 -1
  122. package/es/shared/assets/img/emoji/emotion_015.png.js +1 -1
  123. package/es/shared/assets/img/emoji/emotion_016.png.js +1 -1
  124. package/es/shared/assets/img/emoji/emotion_017.png.js +1 -1
  125. package/es/shared/assets/img/emoji/emotion_018.png.js +1 -1
  126. package/es/shared/assets/img/emoji/emotion_019.png.js +1 -1
  127. package/es/shared/assets/img/emoji/emotion_020.png.js +1 -1
  128. package/es/shared/assets/img/emoji/emotion_021.png.js +1 -1
  129. package/es/shared/assets/img/emoji/emotion_022.png.js +1 -1
  130. package/es/shared/assets/img/emoji/emotion_023.png.js +1 -1
  131. package/es/shared/assets/img/emoji/emotion_024.png.js +1 -1
  132. package/es/shared/assets/img/emoji/emotion_025.png.js +1 -1
  133. package/es/shared/assets/img/emoji/emotion_026.png.js +1 -1
  134. package/es/shared/assets/img/emoji/emotion_027.png.js +1 -1
  135. package/es/shared/assets/img/emoji/emotion_028.png.js +1 -1
  136. package/es/shared/assets/img/emoji/emotion_029.png.js +1 -1
  137. package/es/shared/assets/img/emoji/emotion_030.png.js +1 -1
  138. package/es/shared/assets/img/emoji/emotion_031.png.js +1 -1
  139. package/es/shared/assets/img/emoji/emotion_032.png.js +1 -1
  140. package/es/shared/assets/img/emoji/emotion_033.png.js +1 -1
  141. package/es/shared/assets/img/emoji/emotion_034.png.js +1 -1
  142. package/es/shared/assets/img/emoji/emotion_035.png.js +1 -1
  143. package/es/shared/assets/img/emoji/emotion_036.png.js +1 -1
  144. package/es/shared/assets/img/emoji/emotion_037.png.js +1 -1
  145. package/es/shared/assets/img/emoji/emotion_038.png.js +1 -1
  146. package/es/shared/assets/img/emoji/emotion_039.png.js +1 -1
  147. package/es/shared/assets/img/emoji/emotion_040.png.js +1 -1
  148. package/es/shared/assets/img/emoji/emotion_041.png.js +1 -1
  149. package/es/shared/assets/img/emoji/emotion_042.png.js +1 -1
  150. package/es/shared/assets/img/emoji/emotion_043.png.js +1 -1
  151. package/es/shared/assets/img/emoji/emotion_044.png.js +1 -1
  152. package/es/shared/assets/img/emoji/emotion_045.png.js +1 -1
  153. package/es/shared/assets/img/emoji/emotion_046.png.js +1 -1
  154. package/es/shared/assets/img/emoji/emotion_047.png.js +1 -1
  155. package/es/shared/assets/img/emoji/emotion_048.png.js +1 -1
  156. package/es/shared/assets/img/emoji/emotion_049.png.js +1 -1
  157. package/es/shared/assets/img/emoji/emotion_050.png.js +1 -1
  158. package/es/shared/assets/img/emoji/emotion_051.png.js +1 -1
  159. package/es/shared/assets/img/emoji/emotion_052.png.js +1 -1
  160. package/es/shared/assets/img/emoji/emotion_053.png.js +1 -1
  161. package/es/shared/assets/img/emoji/emotion_054.png.js +1 -1
  162. package/es/shared/assets/img/emoji/emotion_055.png.js +1 -1
  163. package/es/shared/assets/img/emoji/emotion_056.png.js +1 -1
  164. package/es/shared/assets/img/emoji/emotion_057.png.js +1 -1
  165. package/es/shared/assets/img/emoji/emotion_058.png.js +1 -1
  166. package/es/shared/assets/img/emoji/emotion_059.png.js +1 -1
  167. package/es/shared/assets/img/emoji/emotion_060.png.js +1 -1
  168. package/es/shared/assets/img/emoji/emotion_061.png.js +1 -1
  169. package/es/shared/assets/img/emoji/emotion_062.png.js +1 -1
  170. package/es/shared/assets/img/emoji/emotion_063.png.js +1 -1
  171. package/es/shared/assets/img/emoji/emotion_064.png.js +1 -1
  172. package/es/shared/assets/img/emoji/emotion_065.png.js +1 -1
  173. package/es/shared/assets/img/emoji/emotion_066.png.js +1 -1
  174. package/es/shared/assets/img/emoji/emotion_067.png.js +1 -1
  175. package/es/shared/assets/img/emoji/emotion_068.png.js +1 -1
  176. package/es/shared/assets/img/emoji/emotion_069.png.js +1 -1
  177. package/es/shared/assets/img/emoji/emotion_070.png.js +1 -1
  178. package/es/shared/assets/img/emoji/emotion_071.png.js +1 -1
  179. package/es/shared/assets/img/emoji/emotion_072.png.js +1 -1
  180. package/es/shared/assets/img/emoji/emotion_073.png.js +1 -1
  181. package/es/shared/assets/img/emoji/emotion_074.png.js +1 -1
  182. package/es/shared/assets/img/emoji/emotion_075.png.js +1 -1
  183. package/es/shared/assets/img/emoji/emotion_076.png.js +1 -1
  184. package/es/shared/assets/img/emoji/emotion_077.png.js +1 -1
  185. package/es/shared/assets/img/emoji/emotion_078.png.js +1 -1
  186. package/es/shared/assets/img/emoji/emotion_079.png.js +1 -1
  187. package/es/shared/assets/img/emoji/emotion_080.png.js +1 -1
  188. package/es/shared/assets/img/emoji/emotion_081.png.js +1 -1
  189. package/es/shared/assets/img/emoji/emotion_082.png.js +1 -1
  190. package/es/shared/assets/img/emoji/emotion_083.png.js +1 -1
  191. package/es/shared/assets/img/emoji/emotion_084.png.js +1 -1
  192. package/es/shared/assets/img/emoji/emotion_085.png.js +1 -1
  193. package/es/shared/assets/img/emoji/emotion_086.png.js +1 -1
  194. package/es/shared/assets/img/emoji/emotion_087.png.js +1 -1
  195. package/es/shared/assets/img/emoji/emotion_088.png.js +1 -1
  196. package/es/shared/assets/img/emoji/emotion_089.png.js +1 -1
  197. package/es/shared/assets/img/emoji/emotion_090.png.js +1 -1
  198. package/es/shared/assets/img/emoji/emotion_091.png.js +1 -1
  199. package/es/shared/assets/img/emoji/emotion_092.png.js +1 -1
  200. package/es/shared/assets/img/emoji/emotion_093.png.js +1 -1
  201. package/es/shared/assets/img/emoji/emotion_094.png.js +1 -1
  202. package/es/shared/assets/img/emoji/emotion_095.png.js +1 -1
  203. package/es/shared/assets/img/emoji/emotion_096.png.js +1 -1
  204. package/es/shared/assets/img/emoji/emotion_097.png.js +1 -1
  205. package/es/shared/assets/img/emoji/emotion_098.png.js +1 -1
  206. package/es/shared/assets/img/emoji/emotion_099.png.js +1 -1
  207. package/es/shared/assets/img/emoji/emotion_100.png.js +1 -1
  208. package/es/shared/assets/img/emoji/emotion_101.png.js +1 -1
  209. package/es/shared/assets/img/emoji/emotion_102.png.js +1 -1
  210. package/es/shared/assets/img/emoji/emotion_103.png.js +1 -1
  211. package/es/shared/assets/img/emoji/emotion_104.png.js +1 -1
  212. package/es/shared/assets/img/emoji/emotion_105.png.js +1 -1
  213. package/es/shared/assets/img/emoji/emotion_106.png.js +1 -1
  214. package/es/shared/assets/img/emoji/emotion_107.png.js +1 -1
  215. package/es/shared/assets/img/emoji/emotion_108.png.js +1 -1
  216. package/es/shared/assets/img/emoji/emotion_109.png.js +1 -1
  217. package/es/shared/assets/img/emoji/emotion_110.png.js +1 -1
  218. package/es/shared/assets/img/emoji/emotion_111.png.js +1 -1
  219. package/es/shared/assets/img/emoji/emotion_112.png.js +1 -1
  220. package/es/shared/assets/img/emoji/emotion_113.png.js +1 -1
  221. package/es/shared/assets/img/emoji/emotion_114.png.js +1 -1
  222. package/es/shared/assets/img/emoji/emotion_115.png.js +1 -1
  223. package/es/shared/assets/img/emoji/emotion_116.png.js +1 -1
  224. package/es/shared/assets/img/emoji/emotion_117.png.js +1 -1
  225. package/es/shared/assets/img/emoji/emotion_118.png.js +1 -1
  226. package/es/shared/assets/img/emoji/emotion_119.png.js +1 -1
  227. package/es/shared/assets/img/emoji/emotion_120.png.js +1 -1
  228. package/es/shared/assets/img/emoji/emotion_121.png.js +1 -1
  229. package/es/shared/assets/img/emoji/emotion_122.png.js +1 -1
  230. package/es/shared/assets/img/emoji/emotion_123.png.js +1 -1
  231. package/es/shared/assets/img/emoji/emotion_124.png.js +1 -1
  232. package/es/shared/assets/img/emoji/emotion_125.png.js +1 -1
  233. package/es/shared/assets/img/emoji/emotion_126.png.js +1 -1
  234. package/es/shared/assets/img/emoji/emotion_127.png.js +1 -1
  235. package/es/shared/assets/img/emoji/emotion_128.png.js +1 -1
  236. package/es/shared/assets/img/emoji/emotion_129.png.js +1 -1
  237. package/es/shared/assets/img/emoji/emotion_130.png.js +1 -1
  238. package/es/shared/assets/img/emoji/emotion_131.png.js +1 -1
  239. package/es/shared/assets/img/emoji/emotion_132.png.js +1 -1
  240. package/es/shared/assets/img/emoji/emotion_133.png.js +1 -1
  241. package/es/shared/assets/img/emoji/emotion_134.png.js +1 -1
  242. package/es/shared/assets/img/emoji/emotion_135.png.js +1 -1
  243. package/es/shared/assets/img/emoji/emotion_136.png.js +1 -1
  244. package/es/shared/assets/img/emoji/emotion_137.png.js +1 -1
  245. package/es/shared/assets/img/emoji/emotion_138.png.js +1 -1
  246. package/es/shared/assets/img/emoji/emotion_139.png.js +1 -1
  247. package/es/shared/assets/img/emoji/emotion_140.png.js +1 -1
  248. package/es/shared/assets/img/emoji/emotion_141.png.js +1 -1
  249. package/es/shared/assets/img/emoji/emotion_142.png.js +1 -1
  250. package/es/shared/assets/img/emoji/emotion_143.png.js +1 -1
  251. package/es/shared/assets/img/emoji/emotion_144.png.js +1 -1
  252. package/es/shared/assets/img/emoji/emotion_145.png.js +1 -1
  253. package/es/shared/assets/img/emoji/emotion_146.png.js +1 -1
  254. package/es/shared/assets/img/emoji/emotion_147.png.js +1 -1
  255. package/es/shared/assets/img/emoji/emotion_148.png.js +1 -1
  256. package/es/shared/assets/img/emoji/emotion_149.png.js +1 -1
  257. package/es/shared/assets/img/emoji/emotion_150.png.js +1 -1
  258. package/es/shared/assets/img/emoji/emotion_151.png.js +1 -1
  259. package/es/shared/assets/img/emoji/emotion_152.png.js +1 -1
  260. package/es/shared/assets/img/emoji/emotion_153.png.js +1 -1
  261. package/es/shared/assets/img/emoji/emotion_154.png.js +1 -1
  262. package/es/shared/assets/img/emoji/emotion_155.png.js +1 -1
  263. package/es/shared/assets/img/emoji/emotion_156.png.js +1 -1
  264. package/es/shared/assets/img/emoji/emotion_157.png.js +1 -1
  265. package/es/shared/assets/img/emoji/emotion_158.png.js +1 -1
  266. package/es/shared/assets/img/emoji/emotion_159.png.js +1 -1
  267. package/es/shared/assets/img/emoji/emotion_160.png.js +1 -1
  268. package/es/shared/assets/img/emoji/emotion_161.png.js +1 -1
  269. package/es/shared/assets/img/emoji/emotion_162.png.js +1 -1
  270. package/es/shared/assets/img/emoji/emotion_163.png.js +1 -1
  271. package/es/shared/assets/img/emoji/emotion_164.png.js +1 -1
  272. package/es/shared/assets/img/emoji/emotion_165.png.js +1 -1
  273. package/es/shared/assets/img/emoji/emotion_166.png.js +1 -1
  274. package/es/shared/assets/img/emoji/emotion_167.png.js +1 -1
  275. package/es/shared/assets/img/failure.png.js +1 -1
  276. package/es/shared/assets/img/no-permission.png.js +1 -1
  277. package/es/shared/assets/img/nodata.png.js +1 -1
  278. package/es/shared/assets/img/notfound.png.js +1 -1
  279. package/es/shared/assets/img/qr.png.js +1 -1
  280. package/es/shared/assets/img/success.png.js +1 -1
  281. package/es/shared/assets/img/table_style_2.png.js +1 -1
  282. package/es/shared/assets/img/tooth/l-b-1.png.js +1 -0
  283. package/es/shared/assets/img/tooth/l-b-2.png.js +1 -0
  284. package/es/shared/assets/img/tooth/l-b-3.png.js +1 -0
  285. package/es/shared/assets/img/tooth/l-b-4.png.js +1 -0
  286. package/es/shared/assets/img/tooth/l-b-5.png.js +1 -0
  287. package/es/shared/assets/img/tooth/l-b-6.png.js +1 -0
  288. package/es/shared/assets/img/tooth/l-b-7.png.js +1 -0
  289. package/es/shared/assets/img/tooth/l-b-8.png.js +1 -0
  290. package/es/shared/assets/img/tooth/l-t-1.png.js +1 -0
  291. package/es/shared/assets/img/tooth/l-t-2.png.js +1 -0
  292. package/es/shared/assets/img/tooth/l-t-3.png.js +1 -0
  293. package/es/shared/assets/img/tooth/l-t-4.png.js +1 -0
  294. package/es/shared/assets/img/tooth/l-t-5.png.js +1 -0
  295. package/es/shared/assets/img/tooth/l-t-6.png.js +1 -0
  296. package/es/shared/assets/img/tooth/l-t-7.png.js +1 -0
  297. package/es/shared/assets/img/tooth/l-t-8.png.js +1 -0
  298. package/es/shared/assets/img/tooth/r-b-1.png.js +1 -0
  299. package/es/shared/assets/img/tooth/r-b-2.png.js +1 -0
  300. package/es/shared/assets/img/tooth/r-b-3.png.js +1 -0
  301. package/es/shared/assets/img/tooth/r-b-4.png.js +1 -0
  302. package/es/shared/assets/img/tooth/r-b-5.png.js +1 -0
  303. package/es/shared/assets/img/tooth/r-b-6.png.js +1 -0
  304. package/es/shared/assets/img/tooth/r-b-7.png.js +1 -0
  305. package/es/shared/assets/img/tooth/r-b-8.png.js +1 -0
  306. package/es/shared/assets/img/tooth/r-t-1.png.js +1 -0
  307. package/es/shared/assets/img/tooth/r-t-2.png.js +1 -0
  308. package/es/shared/assets/img/tooth/r-t-3.png.js +1 -0
  309. package/es/shared/assets/img/tooth/r-t-4.png.js +1 -0
  310. package/es/shared/assets/img/tooth/r-t-5.png.js +1 -0
  311. package/es/shared/assets/img/tooth/r-t-6.png.js +1 -0
  312. package/es/shared/assets/img/tooth/r-t-7.png.js +1 -0
  313. package/es/shared/assets/img/tooth/r-t-8.png.js +1 -0
  314. package/es/shared/assets/img/video.png.js +1 -1
  315. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  316. package/es/shared/assets/img/xb_big.png.js +1 -1
  317. package/es/shared/assets/img/xb_small.png.js +1 -1
  318. package/es/shared/hooks/useAsyncQueue/index.d.ts +1 -1
  319. package/es/shared/hooks/useFormRequest/index.d.ts +1 -0
  320. package/es/shared/hooks/useFormRequest/index.js +1 -1
  321. package/es/shared/hooks/useFormRequest/types.d.ts +2 -0
  322. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  323. package/es/shared/package.json.js +1 -1
  324. package/es/shared/utils/index.d.ts +1 -0
  325. package/es/shared/utils/index.js +1 -1
  326. package/package.json +2 -2
  327. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  328. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  329. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  330. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  331. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  332. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  333. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- import{arrayed as e,traverse as t}from"../../../../shared/utils/index.js";import"../../../../shared/utils/tapable/SyncHook.js";import"../../../../shared/utils/tapable/SyncBailHook.js";import l from"../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{isString as o}from"lodash-es";import"../../index.js";import{FIELD_BUSINESS_TYPE as r}from"../constants/index.js";import{FieldListFilter as a,findItemByValCondition as s,parseEnhanceText as i}from"../utils/index.js";import{transformDateFormat as _}from"../utils/business.js";function p(){const p=new l(["fieldList","props"]),n=new l(["fieldItem","props"]);n.tap("__forceClearable",((e,t)=>(t.forceClearable&&(e.componentProps={...e.componentProps,clearable:!0}),e))),n.tap("__time",(e=>("DATE"===e.html_type&&"time"===_(e.date_format)&&(e.html_type="TIME"),e))),n.tap("__block",(e=>(["CHECKBOX_BLOCK","RADIO_BLOCK"].includes(e.html_type)&&(e.__vertical=!0),e))),n.tap("__age",(t=>("AGE"===t.html_type&&(t.html_type="INPUT_NUMBER",t.reactions=t.reactions?e(t.reactions):[],t.reactions.push({target:t.val_key_unit,fulfill:{state:{disabled:"{{$self.disabled}}"}}}),t.suffixConfig=[{validate:{obj_type:r.AGE_UNIT},val_key:t.val_key_unit,html_type:"SELECT",option:t.option,urlConfig:t.urlConfig}]),t))),n.tap("__multiple_select",(e=>{const{html_type:t,multi_select:l,__multiple:o}=e;return e.__multiple="SEARCH"!==t&&("SEARCH_MORE"===t||("SELECT"===t?"0"===l:o)),e}));const m=[[["SEARCH","PHONE_TYPE","IDCARD_TYPE","SEARCH_MORE"],"SELECT"],["DIGITAL","INPUT_NUMBER"],["CHECKBOX_BLOCK","CHECKBOX"],["RADIO_BLOCK","RADIO"],[["DATE-INPUT","DATETIME-INPUT"],"DATE"],["SWITCH_COMPONENT","SWITCH"],["SLIDER_COMPONENT","SLIDER"],["LEVEL_SEARCH_CASCADE","LEVEL_SEARCH_CASCADER"],["SEARCH_CASCADE","SEARCH_CASCADER"]];n.tap("__normalize",(e=>(m.some((([t,l])=>(Array.isArray(t)?t.includes(e.html_type):t===e.html_type)&&(e.html_type=l))),e)));const E=new Map([[["SELECT","SEARCH","SEARCH_MORE"],new Map([["H_TILE",e=>e.html_type=e.__multiple?"CHECKBOX":"RADIO"],["V_TILE",e=>{e.html_type=e.__multiple?"CHECKBOX":"RADIO",e.__vertical=!0}]])],["RADIO",new Map([["DROPDOWN",e=>e.html_type="SELECT"]])],["CHECKBOX",new Map([["DROPDOWN",e=>{e.__multiple=!0,e.html_type="SELECT"}]])]]);return n.tap({stage:9999,name:"__show_mode"},(t=>t.show_mode?([...E].some((([l,o])=>{if(!e(l).includes(t.html_type))return;const r=o.get(t.show_mode);return r&&r(t),!0})),t):t)),p.tap("__out_bordered",((e,{column:t,outBordered:l})=>e)),p.tap("__prefix/suffix",(e=>{const l=[];return t(e,(t=>{["prefix","suffix"].forEach((r=>{const a=t[r];if(!o(a))return;const i=a.match("#{(.+)}");if(!i)return;const _=o(i[1])&&s(e,(e=>e.val_key===i[1].trim()));_&&(Reflect.deleteProperty(t,r),t[`${r}Config`]=t[`${r}Config`]||[],t[`${r}Config`].push(_),l.push(_))}))}),["children","properties"]),l.length?a(e,(e=>l.includes(e))):e})),p.tap("__textEnhance",(e=>{const l=[];return t(e,(t=>{if("TEXT"!==t.html_type||!o(t.default_val))return;const r=i(t.default_val);t.__textEnhance=r,r.forEach((o=>{if("text"===o.type)return;const r=s(e,(e=>[e.name,e.val_key].includes(o.content)));r&&(Reflect.deleteProperty(t,"default_val"),l.push(r),o.content=r)}))}),["children","properties"]),a(e,(e=>l.includes(e)))})),{FieldNormalizeWaterfallHook:n,FieldListNormalizeWaterfallHook:p}}export{p as useFieldNormalize};
1
+ import{arrayed as e,traverse as t}from"../../../../shared/utils/index.js";import"../../../../shared/utils/tapable/SyncHook.js";import"../../../../shared/utils/tapable/SyncBailHook.js";import l from"../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{format as a}from"date-fns";import{isString as r}from"lodash-es";import"../../index.js";import{FIELD_BUSINESS_TYPE as o}from"../constants/index.js";import{FieldListFilter as _,findItemByValCondition as i,parseEnhanceText as s}from"../utils/index.js";import{transformDateFormat as n}from"../utils/business.js";function p(){const p=new l(["fieldList","props"]),u=new l(["fieldItem","props"]);u.tap("__forceClearable",((e,t)=>(t.forceClearable&&(e.componentProps={...e.componentProps,clearable:!0}),e))),u.tap({name:"__fieldAlias",before:"__labelPlacementOverwrite"},(e=>("BOTTOM"===e.inputBorder&&(e.bordered="underline"),e.title_h_layout&&(e.decoratorProps={...e.decoratorProps},"0"===e.title_h_layout?e.decoratorProps.labelPlacement="top":"1"===e.title_h_layout&&(e.decoratorProps.labelPlacement="left")),r(e.lineBarLayoutDirection)&&(e.linebarDirection=e.lineBarLayoutDirection.toLowerCase()),e))),u.tap("__labelPlacementOverwrite",((e,t)=>(t.labelPlacementOverwrite&&(e.decoratorProps={...e.decoratorProps,labelPlacement:void 0}),e))),u.tap("__time",(e=>("DATE"===e.html_type&&"time"===n(e.date_format)&&(e.html_type="TIME"),e))),u.tap("__block",(e=>(["CHECKBOX_BLOCK","RADIO_BLOCK"].includes(e.html_type)&&(e.__vertical=!0),e))),u.tap("__age",(t=>("AGE"===t.html_type&&(t.html_type="INPUT_NUMBER",t.reactions=t.reactions?e(t.reactions):[],t.reactions.push({target:t.val_key_unit,fulfill:{state:{disabled:"{{$self.disabled}}"}}}),t.suffixConfig=[{validate:{obj_type:o.AGE_UNIT},val_key:t.val_key_unit,html_type:"SELECT",option:t.option,urlConfig:t.urlConfig}]),t))),u.tap({name:"__multiple_select",before:"__defaultValue"},(e=>{const{html_type:t,multi_select:l,__multiple:a}=e;return e.__multiple="SEARCH"!==t&&("SEARCH_MORE"===t||("SELECT"===t?"0"===l:a)),e})),u.tap("__defaultValue",(e=>{switch(e.html_type){case"TIME":"current"===e.default_val&&(e.default_val=a(new Date,e.date_format||"HH:mm:ss"));break;case"DATE":"current"===e.default_val&&(e.default_val=a(new Date,e.date_format||"yyyy-MM-dd"));break;case"CHECKBOX":case"CHECKBOX_BLOCK":r(e.default_val)&&e.default_val&&(e.default_val=e.default_val.split(","));break;case"SELECT":case"SEARCH":case"SEARCH_MORE":r(e.default_val)&&e.default_val&&(e.default_val=e.__multiple?e.default_val.split(","):e.default_val)}return e}));const c=[[["SEARCH","PHONE_TYPE","IDCARD_TYPE","SEARCH_MORE"],"SELECT"],["DIGITAL","INPUT_NUMBER"],["CHECKBOX_BLOCK","CHECKBOX"],["RADIO_BLOCK","RADIO"],[["DATE-INPUT","DATETIME-INPUT"],"DATE"],["SWITCH_COMPONENT","SWITCH"],["SLIDER_COMPONENT","SLIDER"],["LEVEL_SEARCH_CASCADE","LEVEL_SEARCH_CASCADER"],["SEARCH_CASCADE","SEARCH_CASCADER"]];u.tap("__normalize",(e=>(c.some((([t,l])=>(Array.isArray(t)?t.includes(e.html_type):t===e.html_type)&&(e.html_type=l))),e)));const m=new Map([[["SELECT","SEARCH","SEARCH_MORE"],new Map([["H_TILE",e=>e.html_type=e.__multiple?"CHECKBOX":"RADIO"],["V_TILE",e=>{e.html_type=e.__multiple?"CHECKBOX":"RADIO",e.__vertical=!0}]])],["RADIO",new Map([["DROPDOWN",e=>e.html_type="SELECT"]])],["CHECKBOX",new Map([["DROPDOWN",e=>{e.__multiple=!0,e.html_type="SELECT"}]])]]);return u.tap({stage:9999,name:"__show_mode"},(t=>t.show_mode?([...m].some((([l,a])=>{if(!e(l).includes(t.html_type))return;const r=a.get(t.show_mode);return r&&r(t),!0})),t):t)),p.tap("__out_bordered",((e,{column:t,outBordered:l})=>e)),p.tap("__prefix/suffix",(e=>{const l=[];return t(e,(t=>{["prefix","suffix"].forEach((a=>{const o=t[a];if(!r(o))return;const _=o.match("#{(.+)}");if(!_)return;const s=r(_[1])&&i(e,(e=>e.val_key===_[1].trim()));s&&(Reflect.deleteProperty(t,a),t[`${a}Config`]=t[`${a}Config`]||[],t[`${a}Config`].push(s),l.push(s))}))}),["children","properties"]),l.length?_(e,(e=>l.includes(e))):e})),p.tap("__textEnhance",(e=>{const l=[];return t(e,(t=>{if("TEXT"!==t.html_type||!r(t.default_val))return;const a=s(t.default_val);t.__textEnhance=a,a.forEach((a=>{if("text"===a.type)return;const r=i(e,(e=>[e.name,e.val_key].includes(a.content)));r&&(Reflect.deleteProperty(t,"default_val"),l.push(r),a.content=r)}))}),["children","properties"]),_(e,(e=>l.includes(e)))})),{FieldNormalizeWaterfallHook:u,FieldListNormalizeWaterfallHook:p}}export{p as useFieldNormalize};
@@ -132,6 +132,7 @@ export declare type FieldItem = {
132
132
  linebarWidth: string;
133
133
  linebarDirection: 'horizontal' | 'vertical';
134
134
  linebarTextDirection: 'horizontal' | 'vertical';
135
+ labelColor: string;
135
136
  fieldType: SchemaTypes;
136
137
  content: string | FormRenderer | Record<string, FormRenderer>;
137
138
  lazyRequest: boolean;
@@ -147,6 +147,7 @@ export declare type FormRenderProps = Partial<{
147
147
  autoExpand: boolean;
148
148
  lowCodeReactions: LowCodeTypes.reactionConfig[];
149
149
  linebarAutoHidden: boolean;
150
+ labelPlacementOverwrite: boolean;
150
151
  bordered: boolean | string;
151
152
  uniqueCacheData: boolean;
152
153
  operationalForm: LowCodeTypes.operationalConfig[];
@@ -158,6 +159,7 @@ export declare type FormRenderProps = Partial<{
158
159
  linebarWidth: number | string;
159
160
  linebarDirection: 'vertical' | 'horizontal';
160
161
  linebarTextDirection: 'vertical' | 'horizontal';
162
+ autoWidth: boolean | number;
161
163
  }>;
162
164
  export declare type FormBusinessFormatter = (payload: {
163
165
  fieldKey: string;
@@ -1 +1 @@
1
- import{dotEscape as e}from"./schema.js";function t(t,r,n){return r.querySelector(`[uuid=${n}][field-key=${e(t)}]`)}function r(t,r,n){return r.querySelector(`[uuid=${n}][field-address=${e(t)}]`)}function n(e){var t;return{widgetElement:null==e?void 0:e.querySelector("input"),widgetElementList:Array.from(null!=(t=null==e?void 0:e.querySelectorAll("input"))?t:[])}}function i(e,t,r){const n=d(e[t],r);if(n)return{widget:n,field:u(e[t])};let i=null,l=null;return e.slice(t+1).some((e=>{const t=i=d(e);return t&&(l=u(e)),t})),{widget:i,field:l};function u(e){return e&&e.getAttribute("field-key")}function d(e,t){const r=Array.from(e.querySelectorAll("textarea,input,[tabindex]")),n=t?r.findIndex((e=>e===t)):-1;return r.slice(n+1).find((e=>!Reflect.get(e,"disabled")&&!Array.from(e.classList).some((e=>e.endsWith("--disabled")))))}}export{i as findNextWidget,r as queryDecoratorByAddress,t as queryDecoratorByFieldKey,n as queryInput};
1
+ import{dotEscape as e,createFieldAddressId as t}from"./schema.js";function r(t,r,n){return r.querySelector(`[uuid=${n}][field-key=${e(t)}]`)}function n(e,r,n){return r.querySelector(`[uuid=${n}][field-address=${t(e)}]`)}function i(e){var t;return{widgetElement:null==e?void 0:e.querySelector("input"),widgetElementList:Array.from(null!=(t=null==e?void 0:e.querySelectorAll("input"))?t:[])}}function l(e,t,r){const n=d(e[t],r);if(n)return{widget:n,field:u(e[t])};let i=null,l=null;return e.slice(t+1).some((e=>{const t=i=d(e);return t&&(l=u(e)),t})),{widget:i,field:l};function u(e){return e&&e.getAttribute("field-key")}function d(e,t){const r=Array.from(e.querySelectorAll("textarea,input,[tabindex]")),n=t?r.findIndex((e=>e===t)):-1;return r.slice(n+1).find((e=>!Reflect.get(e,"disabled")&&!Array.from(e.classList).some((e=>e.endsWith("--disabled")))))}}export{l as findNextWidget,n as queryDecoratorByAddress,r as queryDecoratorByFieldKey,i as queryInput};
@@ -6,6 +6,7 @@ import { DependKeyType, FieldItem, ObjectDependKey } from '../../../../component
6
6
  export declare function traverseSchema(schema: ISchema, handler: (_s: ISchema) => void): void;
7
7
  export declare function fieldKeyEscape(fieldList: FieldItem[]): string;
8
8
  export declare function dotEscape(id: string): string;
9
+ export declare function createFieldAddressId(id: string): string;
9
10
  export declare function createLinebarId(id: string): string;
10
11
  export declare function traverseDependKey(dependKeys: DependKeyType, handler: {
11
12
  (dependKey: string, valueKey: string, dependKeyConfig?: ObjectDependKey): void;
@@ -1 +1 @@
1
- import{isField as e}from"@formily/core";import{isObject as t,isPromise as r}from"@vue/shared";import{isString as n,isArray as o,isFunction as u,noop as a}from"lodash-es";function i(e,r){r(e),t(e.properties)&&Object.values(e.properties).forEach((e=>{i(e,r)}))}function c(e){return l(e.map((e=>e.val_key)).join("-"))}function l(e){return e.replace(/[.]/g,"-")}function f(e){return l(`id-${e}`)}function s(e,r){e&&function(){const r=new Map;o(e)?e.forEach((e=>{var n;t(e)?r.set(e.paramName,{key:null!=(n=e.paramValue)?n:e.paramName,dependKey:e}):r.set(e,e)})):t(e)?Object.entries(e).forEach((([e,t])=>{r.set(e,t)})):n(e)&&r.set(e,e);return r}().forEach(((e,t)=>{if(n(e))return r(t,e);r(t,e.key,e.dependKey)}))}function p(e,t){let r=null;for(const o of t){if(o.val_key===e){n(o)&&(r=null);break}n(o)&&(r=o.val_key)}return r;function n(e){return"LINEBAR"===e.html_type}}function v(t,n){const o={...t};return e(n)&&Object.assign(o,{"onUpdate:value"(e){var t;const o=null==(t=n.decoratorProps)?void 0:t.beforeSetValue;if(u(o)){const t=o(n.path.toString(),e,{field:n,oldValue:n.value});return r(t)?t.then((e=>n.setValue(e)),a):n.setValue(t)}n.setValue(e)}}),o}function d(t,r){const n={...t};return e(r)&&(n.key=void 0===n.value?0:1),n}function m(t,r){const n={...t};return e(r)&&(n.onClear=()=>r.visited=!0),n}function y(e){return{type:"object",properties:e}}function h(t,r){return(...n)=>(e(t.value)&&(t.value.visited=!0),u(r)?r(...n):void 0)}export{m as assignClearBindVisited,v as assignUpdateValue,d as assignValueBindKey,f as createLinebarId,y as createObjSchema,h as createVisitedSetter,l as dotEscape,c as fieldKeyEscape,p as getParentLinebar,s as traverseDependKey,i as traverseSchema};
1
+ import{isField as e}from"@formily/core";import{isObject as t,isPromise as r}from"@vue/shared";import{isString as n,isArray as o,isFunction as u,noop as a}from"lodash-es";function i(e,r){r(e),t(e.properties)&&Object.values(e.properties).forEach((e=>{i(e,r)}))}function c(e){return l(e.map((e=>e.val_key)).join("-"))}function l(e){return e.replace(/[.]/g,"-")}function f(e){return l(`address-${e}`)}function s(e){return l(`id-${e}`)}function p(e,r){e&&function(){const r=new Map;o(e)?e.forEach((e=>{var n;t(e)?r.set(e.paramName,{key:null!=(n=e.paramValue)?n:e.paramName,dependKey:e}):r.set(e,e)})):t(e)?Object.entries(e).forEach((([e,t])=>{r.set(e,t)})):n(e)&&r.set(e,e);return r}().forEach(((e,t)=>{if(n(e))return r(t,e);r(t,e.key,e.dependKey)}))}function d(e,t){let r=null;for(const o of t){if(o.val_key===e){n(o)&&(r=null);break}n(o)&&(r=o.val_key)}return r;function n(e){return"LINEBAR"===e.html_type}}function v(t,n){const o={...t};return e(n)&&Object.assign(o,{"onUpdate:value"(e){var t;const o=null==(t=n.decoratorProps)?void 0:t.beforeSetValue;if(u(o)){const t=o(n.path.toString(),e,{field:n,oldValue:n.value});return r(t)?t.then((e=>n.setValue(e)),a):n.setValue(t)}n.setValue(e)}}),o}function m(t,r){const n={...t};return e(r)&&(n.key=void 0===n.value?0:1),n}function y(t,r){const n={...t};return e(r)&&(n.onClear=()=>r.visited=!0),n}function h(e){return{type:"object",properties:e}}function k(t,r){return(...n)=>(e(t.value)&&(t.value.visited=!0),u(r)?r(...n):void 0)}export{y as assignClearBindVisited,v as assignUpdateValue,m as assignValueBindKey,f as createFieldAddressId,s as createLinebarId,h as createObjSchema,k as createVisitedSetter,l as dotEscape,c as fieldKeyEscape,d as getParentLinebar,p as traverseDependKey,i as traverseSchema};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,inject as i,ref as n,computed as r,openBlock as l,createBlock as a,unref as o,mergeProps as s,isRef as u}from"vue";import{generateTimeFormat as d}from"../../../../../../../shared/utils/index.js";import{isFunction as c}from"lodash-es";import{useIhoTableFormEvent as m}from"../../../../utils/index.js";import D from"../../../../../../date-picker/index.js";var f=e({__name:"editDate",props:{value:{type:String,default:null},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},isStartDate:{type:Boolean,default:!1},isEndDate:{type:Boolean,default:!1},connectField:{type:String,default:"-_-"},isDateDisabled:{type:Function},isTimeDisabled:{type:Function}},emits:["update:value"],setup(e,{emit:f}){const p=e,v=t(),w=i("$xetable"),{emitFormChangeWithParams:b}=m({...p,$table:w}),F=n(),g=r({get:()=>p.value?p.value:null,set(e){const t=p.value;if(t===e)return;const{isDateDisabled:i,isTimeDisabled:n}=y.value;if(e){const t=Date.parse(e);if(i(t))return;const{isHourDisabled:r,isMinuteDisabled:l,isSecondDisabled:a}=(null==n?void 0:n(t))||{},{h:o,m:s,s:u}=h(new Date(e)),d=null==r?void 0:r(o),c=null==l?void 0:l(s,o),m=null==a?void 0:a(u,s,o);if(d||c||m)return}f("update:value",e),b({oldValue:t})}}),y=r((()=>{const{valueFormat:e,format:t,type:i="datetime"}=v;return{type:i,clearable:!0,allowedInvalidValue:"-",...v,timePickerProps:{format:d(e||t)},isDateDisabled:e=>{var t;return(null==(t=p.isDateDisabled)?void 0:t.call(p,e,p.row))||function(e){return!!p.row[p.connectField]&&T(e,p.isEndDate?new Date(`${p.row[p.connectField].split(" ")[0]} 00:00:00`).getTime():new Date(p.row[p.connectField]).getTime())}(e)},isTimeDisabled:(null==i?void 0:i.includes("time"))?S(p.isTimeDisabled)||$:void 0}}));function T(e,t){return p.isStartDate&&p.connectField?e>t:!(!p.isEndDate||!p.connectField)&&e<t}function $(e){const t=new Date(p.row[p.connectField]),i=new Date(e),{h:n,m:r,s:l}=h(t),a=(e,t,i,n)=>!(p.isEndDate&&i>n)&&(!(p.isStartDate&&i<n)&&T(e,t));return{isHourDisabled:t=>{if(!p.row[p.connectField])return!1;const r=new Date(`${p.row[p.connectField].split(" ")[0]} 00:00:00`).getTime(),{m:l,s:o}=h(i);return a(t,n,e-60*t*60*1e3-60*l*1e3-1e3*o,r)},isMinuteDisabled:t=>{if(!p.row[p.connectField])return!1;const l=new Date(`${p.row[p.connectField].split(" ")[0]} ${n}:00:00`).getTime(),{s:o}=h(i);return a(t,r,e-60*t*1e3-1e3*o,l)},isSecondDisabled:t=>{if(!p.row[p.connectField])return!1;const i=new Date(`${p.row[p.connectField].split(" ")[0]} ${n}:${r}:00`).getTime();return a(t,l,e-1e3*t,i)}}}function S(e){return c(e)?t=>e(t,p.row):null}function h(e){return{h:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}return(e,t)=>(l(),a(o(D),s({ref_key:"formRef",ref:F},o(y),{"formatted-value":o(g),"onUpdate:formatted-value":t[0]||(t[0]=e=>u(g)?g.value=e:null)}),null,16,["formatted-value"]))}});export{f as default};
1
+ import{defineComponent as e,useAttrs as t,inject as i,ref as n,computed as r,openBlock as l,createBlock as a,unref as o,mergeProps as s,isRef as u}from"vue";import{generateTimeFormat as d}from"../../../../../../../shared/utils/index.js";import{isFunction as c}from"lodash-es";import{useIhoTableFormEvent as m}from"../../../../utils/index.js";import D from"../../../../../../date-picker/index.js";var f=e({__name:"editDate",props:{value:{type:String,default:null},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},isStartDate:{type:Boolean,default:!1},isEndDate:{type:Boolean,default:!1},connectField:{type:String,default:"-_-"},isDateDisabled:{type:Function},isTimeDisabled:{type:Function}},emits:["update:value"],setup(e,{emit:f}){const p=e,v=t(),w=i("$xetable"),{emitFormChangeWithParams:b}=m({...p,$table:w}),F=n(),g=r({get:()=>p.value?p.value:null,set(e){const t=p.value;if(t===e)return;const{isDateDisabled:i,isTimeDisabled:n}=y.value;if(e){const[t,r]=e.split(" "),l=Date.parse(r?e:t+" 00:00:00");if(i(l))return;const{isHourDisabled:a,isMinuteDisabled:o,isSecondDisabled:s}=(null==n?void 0:n(l))||{},{h:u,m:d,s:c}=h(new Date(e)),m=null==a?void 0:a(u),D=null==o?void 0:o(d,u),f=null==s?void 0:s(c,d,u);if(m||D||f)return}f("update:value",e),b({oldValue:t})}}),y=r((()=>{const{valueFormat:e,format:t,type:i="datetime"}=v;return{type:i,clearable:!0,allowedInvalidValue:"-",...v,timePickerProps:{format:d(e||t)},isDateDisabled:e=>{var t;return(null==(t=p.isDateDisabled)?void 0:t.call(p,e,p.row))||function(e){return!!p.row[p.connectField]&&T(e,p.isEndDate?new Date(`${p.row[p.connectField].split(" ")[0]} 00:00:00`).getTime():new Date(p.row[p.connectField]).getTime())}(e)},isTimeDisabled:(null==i?void 0:i.includes("time"))?S(p.isTimeDisabled)||$:void 0}}));function T(e,t){return p.isStartDate&&p.connectField?e>t:!(!p.isEndDate||!p.connectField)&&e<t}function $(e){const t=new Date(p.row[p.connectField]),i=new Date(e),{h:n,m:r,s:l}=h(t),a=(e,t,i,n)=>!(p.isEndDate&&i>n)&&(!(p.isStartDate&&i<n)&&T(e,t));return{isHourDisabled:t=>{if(!p.row[p.connectField])return!1;const r=new Date(`${p.row[p.connectField].split(" ")[0]} 00:00:00`).getTime(),{m:l,s:o}=h(i);return a(t,n,e-60*t*60*1e3-60*l*1e3-1e3*o,r)},isMinuteDisabled:t=>{if(!p.row[p.connectField])return!1;const l=new Date(`${p.row[p.connectField].split(" ")[0]} ${n}:00:00`).getTime(),{s:o}=h(i);return a(t,r,e-60*t*1e3-1e3*o,l)},isSecondDisabled:t=>{if(!p.row[p.connectField])return!1;const i=new Date(`${p.row[p.connectField].split(" ")[0]} ${n}:${r}:00`).getTime();return a(t,l,e-1e3*t,i)}}}function S(e){return c(e)?t=>e(t,p.row):null}function h(e){return{h:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}return(e,t)=>(l(),a(o(D),s({ref_key:"formRef",ref:F},o(y),{"formatted-value":o(g),"onUpdate:formatted-value":t[0]||(t[0]=e=>u(g)?g.value=e:null)}),null,16,["formatted-value"]))}});export{f as default};
@@ -1 +1 @@
1
- import{reactive as e,inject as o,createVNode as l,mergeProps as t,onBeforeUnmount as n}from"vue";import{arrayed as i}from"../../../../../../../shared/utils/index.js";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r,InjectionIhoTableUUID as u}from"../../../../constants/index.js";import{useAutoFocus as s}from"../hooks/useAutoFocus.js";import{getTitle as d,IhoTableRenderHelper as c,IhoTableUtils as a}from"../../../../utils/index.js";import p from"./editSelect.js";import{getDefaultValue as f,isConnectField as m,getArray as v}from"./selectUtils.js";import{getSelectOptions as w,selectOptionsMap as C}from"../hooks/useSelectOption.js";import{cloneDeep as g,isFunction as h,isEqual as y}from"lodash-es";import{defineTablePlugin as b}from"../../../../hooks/useTablePlugin.js";function x(){const x="selectRendererPlugin",E=e(new Map);function k(e){return!0===e||"1"===e}return b({name:x,vxe(e){e.renderer.add(r.SELECT,{renderCell({props:e},{row:t,column:n,$table:r}){var s,c;const a=o(u),p=w(a,n.field,t,r),m=f(t,e,p),v=i(m).join(","),C=e&&(null==(s=e.componentProps)?void 0:s.multiple)&&(k(e.variableHeight)||(null==(c=e.componentProps)?void 0:c.indexedText));return[l("span",{title:d(n,v),class:"iho-table__colorAndIcon"},[C?i(m).reduce(((e,o)=>(null!=o&&e.push([o,";",l("br",null,null)]),e)),[]):v])]},renderEdit:c.createRenderEdit((({fieldItem:e,emitFormClick:n,row:i,column:r,$rowIndex:s,$table:d})=>{var c,a,f,m;const v=o(u),C=w(v,r.field,i,d),g=k(null!=(a=null==(c=e.componentProps)?void 0:c.allowModify)?a:e.allowModify),h=k(null!=(m=null==(f=e.componentProps)?void 0:f.allowCreate)?m:e.allowCreate)||g;return[l(p,t({queryOptions:e.queryOptions},e.componentProps,{options:C,column:r,row:i,"row-index":s,value:i[r.field],"onUpdate:value":e=>i[r.field]=e,allowModify:g,allowCreate:h,onClick:n}),null)]}))})},apply(e){async function o(e,o={}){var l,t,n;const i=null==(l=e.editRender)?void 0:l.props;if(!i)return[];let r=v(i.options)||v(null==(t=i.componentProps)?void 0:t.options)||[];if(i.queryOptions)try{const l={column:e,isFullData:!0,...o};r=await(null==(n=i.queryOptions)?void 0:n.call(i,l))}catch(e){console.log(`获取${i.field}_options错误`)}return r}function l(e){return e&&a.getCellType(e)===r.SELECT}s(e).bindAutoFocusConfig(x,r.SELECT,".n-base-selection-input,.n-base-selection-tags"),e.fieldHooks.fieldList.tap(x,((e,{uuid:t})=>{if(t){C.get(t)||C.set(t,{}),E.set(t,g(e));const n=C.get(t);e.forEach((async t=>{var i;const r=null==(i=t.editRender)?void 0:i.props;if(t.field&&r&&l(r)&&!m(e,t.field)){if(h(r.queryOptions)&&n[t.field])return;n[t.field]=[],n[t.field]=await o(t)}}))}return e})),e.dataHooks.data.tap(x,((e,{uuid:t},n)=>{if(!t)return;const i=E.get(t);if(!i||!i.length)return;const r=C.get(t);i.forEach((async t=>{var n;const u=null==(n=t.editRender)?void 0:n.props;if(t.field&&u&&l(u)&&(null==u?void 0:u.connectField)){const l=u.connectField.split(","),n=e[u.columnName];l.forEach((async l=>{const s=null==i?void 0:i.find((e=>e.field===l));if(!s)return;const d=n?`${l}__${u.columnName}-${n}`:l;r[d]||(r[d]=[],r[d]=await o(s,{row:e,connectColumn:t}))}))}}))})),e.setupHooks.setup.tap(x,(e=>{n((()=>{var o;const l=null==(o=e.value)?void 0:o.uuid;l&&(C.delete(l),E.delete(l))}))})),e.eventHooks.onCellDblclick.tap(x,((e,o,{emits:t})=>{var n,i,r;const{$table:u,row:s,column:d}=e,c=Reflect.get(e,"verticalState");let{column:a,row:p}=u.reactData.editStore.actived;if(!(a&&p||(c&&(a=null==(n=c.editCell)?void 0:n.column,p=null==(i=c.editCell)?void 0:i.row),a&&p)))return;c&&(a=d,p=s);const f=null==(r=a.editRender)?void 0:r.props,{cellDblclickSelectable:m=!1,multiple:v=!1,valueField:C="value"}=f.componentProps||{};if(!m||!l(f))return;const g=o.uuid&&w(o.uuid,a.field,p,u);if(1!==(null==g?void 0:g.length))return;const h=v?[g[0][C]]:g[0][C],b=p[a.field];u.clearEdit(),y(h,b)||(p[a.field]=h,t("formChange",{column:a,row:p,oldValue:b,value:h,index:u.getRowIndex(p),$table:u,option:g[0]}),c&&(c.editCell=null))}))}})}export{x as selectRendererPlugin};
1
+ import{reactive as e,inject as l,createVNode as o,mergeProps as n,onBeforeUnmount as t}from"vue";import{arrayed as i}from"../../../../../../../shared/utils/index.js";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r,InjectionIhoTableUUID as d}from"../../../../constants/index.js";import{useAutoFocus as u}from"../hooks/useAutoFocus.js";import{getTitle as s,IhoTableRenderHelper as a,IhoTableUtils as c}from"../../../../utils/index.js";import p from"./editSelect.js";import{getDefaultValue as f,isConnectField as m,getArray as v}from"./selectUtils.js";import{getSelectOptions as w,selectOptionsMap as C}from"../hooks/useSelectOption.js";import{cloneDeep as y,isFunction as b,isEqual as g}from"lodash-es";import{defineTablePlugin as h}from"../../../../hooks/useTablePlugin.js";function P(){const P="selectRendererPlugin",x=e(new Map);function E(e){return!0===e||"1"===e}return h({name:P,vxe(e){e.renderer.add(r.SELECT,{renderCell({props:e},{row:n,column:t,$table:r}){var u,a,c,p,m,v;const C=l(d),y=w(C,t.field,n,r);if(e&&e.labelToValue&&y.length){const l=E(null!=(a=null==(u=e.componentProps)?void 0:u.allowModify)?a:e.allowModify),o=E(null!=(p=null==(c=e.componentProps)?void 0:c.allowCreate)?p:e.allowCreate)||l,i=n[t.field];if(!l&&!o&&null!=i&&""!==i){const{aliasField:l="",labelField:o="label",valueField:r="value"}=e.componentProps||{};if(!y.find((e=>e[r]===i))){const e=y.find((e=>e[o]===i||e[l]===i));e?n[t.field]=e[r]:Reflect.deleteProperty(n,t.field)}}}const b=f(n,e,y),g=i(b).join(","),h=e&&(null==(m=e.componentProps)?void 0:m.multiple)&&(E(e.variableHeight)||(null==(v=e.componentProps)?void 0:v.indexedText));return[o("span",{title:s(t,g),class:"iho-table__colorAndIcon"},[h?i(b).reduce(((e,l)=>(null!=l&&e.push([l,";",o("br",null,null)]),e)),[]):g])]},renderEdit:a.createRenderEdit((({fieldItem:e,emitFormClick:t,row:i,column:r,$rowIndex:u,$table:s})=>{var a,c,f,m;const v=l(d),C=w(v,r.field,i,s),y=E(null!=(c=null==(a=e.componentProps)?void 0:a.allowModify)?c:e.allowModify),b=E(null!=(m=null==(f=e.componentProps)?void 0:f.allowCreate)?m:e.allowCreate)||y;return[o(p,n({queryOptions:e.queryOptions},e.componentProps,{options:C,column:r,row:i,"row-index":u,value:i[r.field],"onUpdate:value":e=>i[r.field]=e,allowModify:y,allowCreate:b,onClick:t}),null)]}))})},apply(e){async function l(e,l={}){var o,n,t;const i=null==(o=e.editRender)?void 0:o.props;if(!i)return[];let r=v(i.options)||v(null==(n=i.componentProps)?void 0:n.options)||[];if(i.queryOptions)try{const o={column:e,isFullData:!0,...l};r=await(null==(t=i.queryOptions)?void 0:t.call(i,o))}catch(e){console.log(`获取${i.field}_options错误`)}return r}function o(e){return e&&c.getCellType(e)===r.SELECT}u(e).bindAutoFocusConfig(P,r.SELECT,".n-base-selection-input,.n-base-selection-tags"),e.fieldHooks.fieldList.tap(P,((e,{uuid:n})=>{if(n){C.get(n)||C.set(n,{}),x.set(n,y(e));const t=C.get(n);e.forEach((async n=>{var i;const r=null==(i=n.editRender)?void 0:i.props;if(n.field&&r&&o(r)&&!m(e,n.field)){if(b(r.queryOptions)&&t[n.field])return;t[n.field]=[],t[n.field]=await l(n)}}))}return e})),e.dataHooks.data.tap(P,((e,{uuid:n},t)=>{if(!n)return;const i=x.get(n);if(!i||!i.length)return;const r=C.get(n);i.forEach((async n=>{var t;const d=null==(t=n.editRender)?void 0:t.props;if(n.field&&d&&o(d)&&(null==d?void 0:d.connectField)){const o=d.connectField.split(","),t=e[d.columnName];o.forEach((async o=>{const u=null==i?void 0:i.find((e=>e.field===o));if(!u)return;const s=t?`${o}__${d.columnName}-${t}`:o;r[s]||(r[s]=[],r[s]=await l(u,{row:e,connectColumn:n}))}))}}))})),e.setupHooks.setup.tap(P,(e=>{t((()=>{var l;const o=null==(l=e.value)?void 0:l.uuid;o&&(C.delete(o),x.delete(o))}))})),e.eventHooks.onCellDblclick.tap(P,((e,l,{emits:n})=>{var t,i,r;const{$table:d,row:u,column:s}=e,a=Reflect.get(e,"verticalState");let{column:c,row:p}=d.reactData.editStore.actived;if(!(c&&p||(a&&(c=null==(t=a.editCell)?void 0:t.column,p=null==(i=a.editCell)?void 0:i.row),c&&p)))return;a&&(c=s,p=u);const f=null==(r=c.editRender)?void 0:r.props,{cellDblclickSelectable:m=!1,multiple:v=!1,valueField:C="value"}=f.componentProps||{};if(!m||!o(f))return;const y=l.uuid&&w(l.uuid,c.field,p,d);if(1!==(null==y?void 0:y.length))return;const b=v?[y[0][C]]:y[0][C],h=p[c.field];d.clearEdit(),g(b,h)||(p[c.field]=b,n("formChange",{column:c,row:p,oldValue:h,value:b,index:d.getRowIndex(p),$table:d,option:y[0]}),a&&(a.editCell=null))}))}})}export{P as selectRendererPlugin};
@@ -1 +1 @@
1
- import{reactive as e,inject as t,createVNode as a,toRaw as o,h as r,onBeforeUnmount as n}from"vue";import{traverse as i,arrayed as u}from"../../../../../../../shared/utils/index.js";import{isFunction as l,isObject as s,isArray as d,compact as p,range as f,uniq as c,flatten as _}from"lodash-es";import{NInput as m}from"naive-ui";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as E,InjectionIhoTableUUID as h,InjectionIhoTableHandler as A}from"../../../../constants/index.js";import{useAutoFocus as v}from"../hooks/useAutoFocus.js";import{getLowCodeFieldFromField as R,IhoTableRenderHelper as g,getRowHeight as D,getColumnRenderWidth as T,parseMergeField as w}from"../../../../utils/index.js";import b from"./editSeparate.vue.js";import{contentSeparate as $,getLengthDiffArray as P,getColumnInfoMaxLength as x,generateSeparateRowData as C,isSeparateColumn as S}from"./separateUtils.js";import{getSeparateInfo as k,setSeparateInfo as H,deleteSeparateInfo as j}from"../../../../utils/separateMap.js";import{defineTablePlugin as M}from"../../../../hooks/useTablePlugin.js";function O(){const O="separateRendererPlugins",F=e(new Map);return M({name:O,vxe(e){e.renderer.add(E.SEPARATE,{renderCell(e,{column:o,row:r}){var n,i;const u=t(h),l=null!=(i=null==(n=k(u,r))?void 0:n.separateData)?i:{},s=R(o),d=(null==s?void 0:s.separateFormatter)?s.separateFormatter(l[o.field]):l[o.field];return a("section",{class:"iho-table__ellipsis iho-table__colorAndIcon",title:d},[d])},renderEdit:g.createRenderEdit((({fieldItem:e,column:n,row:i,emitFormClick:u})=>{var d,p;const f=t(h),c=k(f,i),_=D(),E={};let v=null!=(p=null==(d=e.componentProps)?void 0:d.separateSlot)?p:e.separateSlot;return v&&(v=o(v),E.menu=l(v)?v:s(v)?e=>r(v,e):void 0),e.separateRowEdit?function(){var e;if(!c)return[];if(c.ihoTableHandler=t(A),c.separateData["__"+n.field]=null!=(e=c.separateData["__"+n.field])?e:c.separateData[n.field],E.menu){const e=E.menu;return a(e,{column:n,col:n,row:i,value:c.separateData["__"+n.field],"onUpdate:value":e=>c.separateData["__"+n.field]=e},null)}return a(m,{value:c.separateData["__"+n.field],"onUpdate:value":e=>c.separateData["__"+n.field]=e},null)}():function(){var t;const o=null==(t=null==c?void 0:c.separateData)?void 0:t[n.field],r=l(e.separateFormatter)?e.separateFormatter(o):o;return[a(b,{value:i[n.field],"onUpdate:value":e=>i[n.field]=e,"row-index":null==c?void 0:c.index,height:_,column:n,row:i,"display-content":r,onClick:u},E)]}()}))})},apply(e){function t(e){return(...t)=>{var a;return!(null==(a=t[0].row)?void 0:a.$__SEPARATE)&&(!l(e)||e(...t))}}v(e).bindAutoFocusConfig(O,E.SEPARATE,".iho-table__separateText"),e.eventHooks.onEditClosed.tap(O,(({row:e,column:t,$table:a},o,{emits:r})=>{if(!e.$__uuid)return;const n=R(t);if(!n||!n.separateRowEdit)return;const i=k(e.$__uuid,e);if(!i)return;const{separateData:u,originalData:l,ihoTableHandler:s,index:p}=i,{field:f}=t;if(null!==u["__"+f]&&u["__"+f]!==u[f]&&d(l.$__SEPARATE_DATA)){const e=l.$__SEPARATE_DATA.map((e=>{var t;return null!=(t=e["__"+f])?t:e[f]})),o=l[f];l[f]=d(l[f])?e:e.join(""),r("formChange",{value:l[f],oldValue:o,row:l,column:t,index:p,$table:a}),null==s||s.updateTableDataRef()}})),e.fieldHooks.fieldList.tap(O,((e,{uuid:t})=>(t&&F.set(t,e.reduce(((e,t)=>(i(t,(t=>{S(t)&&(e.push(o(t)),t.showOverflow="ellipsis")})),e)),[])),e))),e.dataHooks.data.tapPromise(O,(async(e,t,{insertAfter:a,index:o,$table:r})=>{var n;if(!t.uuid)return;const i=F.get(t.uuid);if(!i||!i.length)return;const l=[];for(const t of i){if(!t.field)continue;const a=await T(t,e,o,r),i={field:t.field,column:t,data:$(w(e,t),t,a,null==(n=R(t))?void 0:n.separateDeep)};l.push(i)}function s(e){return l.find((t=>t.field===e))}l.forEach((e=>{const{column:t}=e,a=R(t);if(!a)return;if(!a.separateDeep||!a.separateBinder)return;const o=p(u(a.separateBinder).map(s));if(!o.length)return;const r=o.concat(e),n=Math.max(...r.map((e=>e.data.length)));f(n).forEach((e=>{const t=r.map((t=>({item:t.data[e],data:t.data}))),a=t.map((({item:e})=>n(e)));if(1===c(a).length)return;const o=Math.max(...a);function n(e){return d(e)?e.length:1}t.forEach((({item:t,data:a})=>{const r=n(t);r!==o&&(d(t)?t.push(...P(o,r)):a[e]=f(o).map(((e,a)=>0===a?t:"")))}))}))})),l.forEach((e=>{e.data=_(e.data)})),f(x(l)).forEach(((r,n,i)=>{var u;const s=C(l,n),d={index:o,originalData:e,separateData:s,separateIndex:n,separateLength:i.length,isOriginRow:0===n,isLastRow:n===i.length-1};if(0===n)return e.$__SEPARATE_DATA=[s],e.$__SEPARATE_ROW_CACHE=e.$__SEPARATE_ROW_CACHE||[],e.$__uuid=t.uuid,void H(t.uuid,e,d);const p=null!=(u=e.$__SEPARATE_ROW_CACHE[n-1])?u:e.$__SEPARATE_ROW_CACHE[n-1]={$__SEPARATE:!0,$__uuid:t.uuid,$__SEPARATE_INDEX:n};p.$__ORIGIN_INDEX=o,H(t.uuid,p,d),e.$__SEPARATE_DATA.push(s),a(p)}))})),e.eventHooks.onResizableChange.tap(O,(async(e,t,a)=>{a.updateTableDataRef()})),e.configHooks.editConfig.tap(O,((e={},t)=>{const a=e.beforeEditMethod;return e.beforeEditMethod=(...e)=>{var o;if(!t.uuid)return f();const r=F.get(t.uuid);if(!r||!r.length)return f();const{row:n,column:i}=e[0],u=k(t.uuid,n);if(!u)return f();const s=null==(o=i.editRender)?void 0:o.props;if(!s||s.separateRowEdit)return f();const{isOriginRow:d,isLastRow:p}=u;return("bottom"===s.separatePlacement?p:d)&&f();function f(){return!l(a)||a(...e)}},e})),e.configHooks.checkboxConfig.tap(O,((e={},a)=>(e.checkMethod=t(e.checkMethod),e.visibleMethod=t(e.visibleMethod),e))),e.setupHooks.setup.tap(O,(e=>{n((()=>{e.value.uuid&&(F.delete(e.value.uuid),j(e.value.uuid))}))}))}})}export{O as separateRendererPlugins};
1
+ import{reactive as e,inject as t,createVNode as a,toRaw as r,h as o,onBeforeUnmount as n}from"vue";import{widthAppend as i,getCharWidth as u,traverse as l,arrayed as s}from"../../../../../../../shared/utils/index.js";import{isFunction as d,isObject as p,isArray as f,compact as c,range as _,uniq as m,flatten as E}from"lodash-es";import{NInput as h}from"naive-ui";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as A,InjectionIhoTableUUID as v,InjectionIhoTableHandler as R}from"../../../../constants/index.js";import{useAutoFocus as g}from"../hooks/useAutoFocus.js";import{getLowCodeFieldFromField as D,IhoTableRenderHelper as T,getRowHeight as w,getColumnRenderWidth as b,parseMergeField as $}from"../../../../utils/index.js";import x from"./editSeparate.vue.js";import{contentSeparate as C,getLengthDiffArray as P,getColumnInfoMaxLength as S,generateSeparateRowData as k,isSeparateColumn as H}from"./separateUtils.js";import{getSeparateInfo as I,setSeparateInfo as j,deleteSeparateInfo as M}from"../../../../utils/separateMap.js";import{defineTablePlugin as O}from"../../../../hooks/useTablePlugin.js";function F(){const F="separateRendererPlugins",y=e(new Map);return O({name:F,vxe(e){e.renderer.add(A.SEPARATE,{renderCell(e,{column:r,row:o}){const n=t(v),{separateData:l={},isOriginRow:s}=I(n,o)||{},d=D(r),p=(null==d?void 0:d.separateFormatter)?d.separateFormatter(l[r.field]):l[r.field];return a("section",{class:"iho-table__ellipsis iho-table__colorAndIcon",title:p,style:{textIndent:s&&(null==d?void 0:d.separateIndent)?i(u("一")*d.separateIndent):0}},[p])},renderEdit:T.createRenderEdit((({fieldItem:e,column:n,row:i,emitFormClick:u})=>{var l,s;const f=t(v),c=I(f,i),_=w(),m={};let E=null!=(s=null==(l=e.componentProps)?void 0:l.separateSlot)?s:e.separateSlot;return E&&(E=r(E),m.menu=d(E)?E:p(E)?e=>o(E,e):void 0),e.separateRowEdit?function(){var e;if(!c)return[];if(c.ihoTableHandler=t(R),c.separateData["__"+n.field]=null!=(e=c.separateData["__"+n.field])?e:c.separateData[n.field],m.menu){const e=m.menu;return a(e,{column:n,col:n,row:i,value:c.separateData["__"+n.field],"onUpdate:value":e=>c.separateData["__"+n.field]=e},null)}return a(h,{value:c.separateData["__"+n.field],"onUpdate:value":e=>c.separateData["__"+n.field]=e},null)}():function(){var t;const r=null==(t=null==c?void 0:c.separateData)?void 0:t[n.field],o=d(e.separateFormatter)?e.separateFormatter(r):r;return[a(x,{value:i[n.field],"onUpdate:value":e=>i[n.field]=e,rowIndex:c.index,height:_,column:n,row:i,displayContent:o,onClick:u},m)]}()}))})},apply(e){function t(e){return(...t)=>{var a;return!(null==(a=t[0].row)?void 0:a.$__SEPARATE)&&(!d(e)||e(...t))}}g(e).bindAutoFocusConfig(F,A.SEPARATE,".iho-table__separateText"),e.eventHooks.onEditClosed.tap(F,(({row:e,column:t,$table:a},r,{emits:o})=>{if(!e.$__uuid)return;const n=D(t);if(!n||!n.separateRowEdit)return;const i=I(e.$__uuid,e);if(!i)return;const{separateData:u,originalData:l,ihoTableHandler:s,index:d}=i,{field:p}=t;if(null!==u["__"+p]&&u["__"+p]!==u[p]&&f(l.$__SEPARATE_DATA)){const e=l.$__SEPARATE_DATA.map((e=>{var t;return null!=(t=e["__"+p])?t:e[p]})),r=l[p];l[p]=f(l[p])?e:e.join(""),o("formChange",{value:l[p],oldValue:r,row:l,column:t,index:d,$table:a}),null==s||s.updateTableDataRef()}})),e.fieldHooks.fieldList.tap(F,((e,{uuid:t})=>(t&&y.set(t,e.reduce(((e,t)=>(l(t,(t=>{H(t)&&(e.push(r(t)),t.showOverflow="ellipsis")})),e)),[])),e))),e.dataHooks.data.tapPromise(F,(async(e,t,{insertAfter:a,index:r,$table:o})=>{var n;if(!t.uuid)return;const i=y.get(t.uuid);if(!i||!i.length)return;const u=[];for(const t of i){if(!t.field)continue;const a=await b(t,e,r,o),i={field:t.field,column:t,data:C($(e,t),t,a,null==(n=D(t))?void 0:n.separateDeep)};u.push(i)}function l(e){return u.find((t=>t.field===e))}u.forEach((e=>{const{column:t}=e,a=D(t);if(!a)return;if(!a.separateDeep||!a.separateBinder)return;const r=c(s(a.separateBinder).map(l));if(!r.length)return;const o=r.concat(e),n=Math.max(...o.map((e=>e.data.length)));_(n).forEach((e=>{const t=o.map((t=>({item:t.data[e],data:t.data}))),a=t.map((({item:e})=>n(e)));if(1===m(a).length)return;const r=Math.max(...a);function n(e){return f(e)?e.length:1}t.forEach((({item:t,data:a})=>{const o=n(t);o!==r&&(f(t)?t.push(...P(r,o)):a[e]=_(r).map(((e,a)=>0===a?t:"")))}))}))})),u.forEach((e=>{e.data=E(e.data)})),_(S(u)).forEach(((o,n,i)=>{var l;const s=k(u,n),d={index:r,originalData:e,separateData:s,separateIndex:n,separateLength:i.length,isOriginRow:0===n,isLastRow:n===i.length-1};if(0===n)return e.$__SEPARATE_DATA=[s],e.$__SEPARATE_ROW_CACHE=e.$__SEPARATE_ROW_CACHE||[],e.$__uuid=t.uuid,void j(t.uuid,e,d);const p=null!=(l=e.$__SEPARATE_ROW_CACHE[n-1])?l:e.$__SEPARATE_ROW_CACHE[n-1]={$__SEPARATE:!0,$__uuid:t.uuid,$__SEPARATE_INDEX:n};p.$__ORIGIN_INDEX=r,j(t.uuid,p,d),e.$__SEPARATE_DATA.push(s),a(p)}))})),e.eventHooks.onResizableChange.tap(F,(async(e,t,a)=>{a.updateTableDataRef()})),e.configHooks.editConfig.tap(F,((e={},t)=>{const a=e.beforeEditMethod;return e.beforeEditMethod=(...e)=>{var r;if(!t.uuid)return f();const o=y.get(t.uuid);if(!o||!o.length)return f();const{row:n,column:i}=e[0],u=I(t.uuid,n);if(!u)return f();const l=null==(r=i.editRender)?void 0:r.props;if(!l||l.separateRowEdit)return f();const{isOriginRow:s,isLastRow:p}=u;return("bottom"===l.separatePlacement?p:s)&&f();function f(){return!d(a)||a(...e)}},e})),e.configHooks.checkboxConfig.tap(F,((e={},a)=>(e.checkMethod=t(e.checkMethod),e.visibleMethod=t(e.visibleMethod),e))),e.setupHooks.setup.tap(F,(e=>{n((()=>{e.value.uuid&&(y.delete(e.value.uuid),M(e.value.uuid))}))}))}})}export{F as separateRendererPlugins};
@@ -1 +1 @@
1
- import{getStringWidth as r}from"../../../../../../../shared/utils/index.js";import{isArray as t,isString as n,isNumber as e}from"lodash-es";import{EDITABLE_WIDGET_TYPE as o}from"../../../../constants/index.js";import{getLowCodeFieldFromField as i}from"../../../../utils/index.js";function a(r){return Math.max(...r.map((r=>r.data.length)),1)}function u(r,t){return r.reduce(((r,n)=>(r[n.field]=n.data[t],r)),{})}function s(o,a,u,d=!1){var f;if(t(o)){if(d){const r=null==(f=i(a))?void 0:f.separateFormatter;return o.map((t=>s(r?r(t):t,a,u)))}return o}if(!n(o)||!e(u))return[o];u-=24;const m=[...o].reduce(((t,n)=>{const e=t[t.length-1];return r(e+n)>u?t.push(n):t[t.length-1]=e+n,t}),[""]);return d?[m]:m}function d(r){var t;return r.field&&(null==(t=r.editRender)?void 0:t.name)===o.SEPARATE}function f(r,t,n=""){const e=Math.abs(r-t);return Array.from({length:e}).map((()=>n))}export{s as contentSeparate,u as generateSeparateRowData,a as getColumnInfoMaxLength,f as getLengthDiffArray,d as isSeparateColumn};
1
+ import{getCharWidth as t,getStringWidth as n}from"../../../../../../../shared/utils/index.js";import{isArray as r,isString as e,isNumber as o}from"lodash-es";import{EDITABLE_WIDGET_TYPE as a}from"../../../../constants/index.js";import{getLowCodeFieldFromField as i}from"../../../../utils/index.js";function u(t){return Math.max(...t.map((t=>t.data.length)),1)}function s(t,n){return t.reduce(((t,r)=>(t[r.field]=r.data[n],t)),{})}function d(a,u,s,l=!1){var f,m;const c=(null==(f=i(u))?void 0:f.separateIndent)||0;if(r(a)){if(l){const t=null==(m=i(u))?void 0:m.separateFormatter;return a.map((n=>d(t?t(n):n,u,s)))}return a}if(!e(a)||!o(s))return[a];s-=24;const p=[...a].reduce(((r,e)=>{const o=r[r.length-1],a=1===r.length?s-c*t("一"):s;return n(o+e)>a?r.push(e):r[r.length-1]=o+e,r}),[""]);return l?[p]:p}function l(t){var n;return t.field&&(null==(n=t.editRender)?void 0:n.name)===a.SEPARATE}function f(t,n,r=""){const e=Math.abs(t-n);return Array.from({length:e}).map((()=>r))}export{d as contentSeparate,s as generateSeparateRowData,u as getColumnInfoMaxLength,f as getLengthDiffArray,l as isSeparateColumn};
@@ -1 +1 @@
1
- import{inject as o,createVNode as n}from"vue";import{SettingsSharp as e}from"@vicons/ionicons5";import{isFunction as i}from"lodash-es";import{NIcon as t}from"naive-ui";import"../../../../index.js";import{InjectionIhoTableEmits as l}from"../../../constants/index.js";import{IhoTableStatusHelper as s}from"../../../utils/index.js";import{defineTablePlugin as r}from"../../../hooks/useTablePlugin.js";function f(){const f="seqRendererPlugin";return r({name:f,apply(r){r.fieldHooks.field.tap({name:f,before:"checkRendererPlugin"},((r,{index:u,insertBefore:m},c)=>{var d,a,p,g,v;if(0===u&&c.showSeq){const r={align:"center",fixed:"left",width:50,type:"seq",field:f,annotation:!1,...null==(d=c.columnConfig)?void 0:d.seqConfig,slots:{header(){if(s.isPositive(c.hideSettingBtn))return[];const i=o(l);return[n(t,{style:{cursor:"pointer"},size:"14",color:"#777",component:e,onClick:function(){i&&i("settingClick")}},null)]},...null==(p=null==(a=c.columnConfig)?void 0:a.seqConfig)?void 0:p.slots}};i(null==(g=c.columnConfig)?void 0:g.seqSlotFn)&&(r.slots||(r.slots={}),r.slots.default=c.columnConfig.seqSlotFn),(null==(v=c.sortableConfig)?void 0:v.enable)&&(r.className="col--drag"),m(r)}return r}))}})}export{f as seqRendererPlugin};
1
+ import{inject as o,createVNode as n}from"vue";import{SettingsSharp as e}from"@vicons/ionicons5";import{isFunction as i}from"lodash-es";import{NIcon as t}from"naive-ui";import"../../../../index.js";import{InjectionIhoTableEmits as l}from"../../../constants/index.js";import{IhoTableStatusHelper as s}from"../../../utils/index.js";import{defineTablePlugin as r}from"../../../hooks/useTablePlugin.js";function f(){const f="seqRendererPlugin";return r({name:f,apply(r){r.fieldHooks.field.tap({name:f,before:"checkRendererPlugin"},((r,{index:u,insertBefore:d},m)=>{var c,a,p,g,v;if(0===u&&m.showSeq){const r={align:"center",fixed:"left",width:50,type:"seq",field:f,annotation:!1,...null==(c=m.columnConfig)?void 0:c.seqConfig,slots:{header(){if(s.isPositive(m.hideSettingBtn))return[];const i=o(l);return[n(t,{style:{cursor:"pointer"},size:"14",color:"#777",component:e,onClick:function(){i&&i("settingClick")}},null)]},...null==(p=null==(a=m.columnConfig)?void 0:a.seqConfig)?void 0:p.slots}};i(null==(g=m.columnConfig)?void 0:g.seqSlotFn)&&(r.slots||(r.slots={}),r.slots.default=m.columnConfig.seqSlotFn),(null==(v=m.sortableConfig)?void 0:v.enable)&&(r.className="col--drag",r.fixed=void 0),d(r)}return r}))}})}export{f as seqRendererPlugin};
@@ -1 +1 @@
1
- import{promiseTimeout as e}from"@vueuse/shared";import{isFunction as l,cloneDeep as n}from"lodash-es";import{nextTick as o,onBeforeUnmount as t}from"vue";import"../../index.js";import i from"sortablejs";import d from"xe-utils";import{defineTablePlugin as r}from"../hooks/useTablePlugin.js";function a(){const n="rowDragPlugin",d=new Map;return r({name:n,apply(r){r.fieldHooks.fieldEnd.tapPromise(n,(async(n,{$table:t,emits:r})=>{const{uuid:a}=n,s=n.sortableConfig||{};a&&s.enable&&!d.get(a)&&(await o(),async function n(o=0){if(o>2)return;const c=function(){var e,l,n,o,i,d,r,a,u,s;const c=null==(o=null==(n=null==(l=null==(e=t.value)?void 0:e.$el)?void 0:l.querySelector)?void 0:n.call(l,".vxe-table--body"))?void 0:o.scrollWidth,v=(null==(r=null==(d=null==(i=t.value)?void 0:i.$el)?void 0:d.querySelector)?void 0:r.call(d,".vxe-table.is--scroll-x"))?".fixed-left--wrapper>.vxe-table--body tbody":".body--wrapper>.vxe-table--body tbody";return c?null==(s=null==(u=null==(a=t.value)?void 0:a.$el)?void 0:u.querySelector)?void 0:s.call(u,v):null}();if(c){const e=i.create(c,{handle:".col--seq",...s,onEnd:e=>{var n,o,i,d,a,c,v;const{oldIndex:f=0,newIndex:x=0}=e,p={oldIndex:f,newIndex:x},{virtualY:b}=(null==(n=t.value)?void 0:n.getScroll())||{};if(b){const e=(null==(d=null==(i=null==(o=t.value)?void 0:o.getTableData())?void 0:i.tableData)?void 0:d[f])||{},l=null!=(v=null!=(c=e.__currentIndex)?c:null==(a=t.value)?void 0:a.getVTRowIndex(e))?v:0,n=l+(x-f);e.__currentIndex=n,p.oldIndex=l,p.newIndex=n}const y={...e,...p,...u(e,p,t.value)};r("rowDrag",y),l(s.onEnd)&&s.onEnd(y)}});return d.set(a,e)}await e(100),n(++o)}())})),r.setupHooks.setup.tap(n,(e=>{t((()=>{var l,n;const o=null==(l=e.value)?void 0:l.uuid;o&&d.has(o)&&(null==(n=d.get(o))||n.destroy(),d.delete(o))}))}))}})}function u(e,l,o){var t;const i=null==(t=null==o?void 0:o.getTableData())?void 0:t.fullData,r=o.treeConfig&&o.treeConfig.transform?function(e,l){var o,t,i,r,a;const{oldIndex:u=0,newIndex:s=0}=e,c={children:"childrenList"},{fullData:v,tableData:f}=l.getTableData(),x=null==f?void 0:f[u],p=null==f?void 0:f[s-1],b=n(v),y=d.findTree(b,(e=>e.__id===x.__id),c);if(p){const e=null==(t=null==(o=l.$el)?void 0:o.querySelector)?void 0:t.call(o,".body--wrapper>.vxe-table--body tbody"),n=null==(r=null==(i=l.$el)?void 0:i.querySelector)?void 0:r.call(i,".fixed-left--wrapper>.vxe-table--body tbody"),v=d.findTree(b,(e=>e.__id===p.__id),c);if(d.findTree(x[c.children],(e=>e.__id===p.__id),c)){const l=e.children[u],o=e.children[s];return e.insertBefore(o,l),null==(a=null==n?void 0:n.insertBefore)||a.call(n,n.children[s],n.children[u]),console.log("不允许自己给自己拖动"),b}const f=y.items.splice(y.index,1)[0];l.isTreeExpandByRow(p)?p[c.children].splice(0,0,f):v.items.splice(v.index+(y.index<v.index?0:1),0,f)}else{const e=y.items.splice(y.index,1)[0];b.unshift(e)}return b}(e,o):function(e,l){var o;const{oldIndex:t=0,newIndex:i=0}=e,d=n((null==(o=null==l?void 0:l.getTableData())?void 0:o.fullData)||[]),r=d.splice(t,1)[0];return d.splice(i,0,r),d}(l,o);return{oldData:i,newData:r}}export{a as rowDragPlugin};
1
+ import{promiseTimeout as e}from"@vueuse/shared";import{isFunction as l,cloneDeep as n}from"lodash-es";import{nextTick as o,onBeforeUnmount as t}from"vue";import"../../index.js";import i from"sortablejs";import d from"xe-utils";import{defineTablePlugin as r}from"../hooks/useTablePlugin.js";function a(){const n="rowDragPlugin",d=new Map;return r({name:n,apply(r){r.fieldHooks.fieldEnd.tapPromise(n,(async(n,{$table:t,emits:r})=>{const{uuid:a}=n,s=n.sortableConfig||{};a&&s.enable&&!d.get(a)&&(await o(),async function n(o=0){if(o>2)return;const c=function(){var e,l,n,o,i,d,r;const a=null==(o=null==(n=null==(l=null==(e=t.value)?void 0:e.$el)?void 0:l.querySelector)?void 0:n.call(l,".vxe-table--body"))?void 0:o.scrollWidth,u=".body--wrapper>.vxe-table--body tbody";return a?null==(r=null==(d=null==(i=t.value)?void 0:i.$el)?void 0:d.querySelector)?void 0:r.call(d,u):null}();if(c){const e=i.create(c,{handle:".col--seq",...s,onEnd:e=>{var n,o,i,d,a,c,v;const{oldIndex:f=0,newIndex:p=0}=e,x={oldIndex:f,newIndex:p},{virtualY:b}=(null==(n=t.value)?void 0:n.getScroll())||{};if(b){const e=(null==(d=null==(i=null==(o=t.value)?void 0:o.getTableData())?void 0:i.tableData)?void 0:d[f])||{},l=null!=(v=null!=(c=e.__currentIndex)?c:null==(a=t.value)?void 0:a.getVTRowIndex(e))?v:0,n=l+(p-f);e.__currentIndex=n,x.oldIndex=l,x.newIndex=n}const m={...e,...x,...u(e,x,t.value)};r("rowDrag",m),l(s.onEnd)&&s.onEnd(m)}});return d.set(a,e)}await e(100),n(++o)}())})),r.setupHooks.setup.tap(n,(e=>{t((()=>{var l,n;const o=null==(l=e.value)?void 0:l.uuid;o&&d.has(o)&&(null==(n=d.get(o))||n.destroy(),d.delete(o))}))}))}})}function u(e,l,o){var t;const i=null==(t=null==o?void 0:o.getTableData())?void 0:t.fullData,r=o.treeConfig&&o.treeConfig.transform?function(e,l){var o,t,i,r,a;const{oldIndex:u=0,newIndex:s=0}=e,c={children:"childrenList"},{fullData:v,tableData:f}=l.getTableData(),p=null==f?void 0:f[u],x=null==f?void 0:f[s-1],b=n(v),m=d.findTree(b,(e=>e.__id===p.__id),c);if(x){const e=null==(t=null==(o=l.$el)?void 0:o.querySelector)?void 0:t.call(o,".body--wrapper>.vxe-table--body tbody"),n=null==(r=null==(i=l.$el)?void 0:i.querySelector)?void 0:r.call(i,".fixed-left--wrapper>.vxe-table--body tbody"),v=d.findTree(b,(e=>e.__id===x.__id),c);if(d.findTree(p[c.children],(e=>e.__id===x.__id),c)){const l=e.children[u],o=e.children[s];return e.insertBefore(o,l),null==(a=null==n?void 0:n.insertBefore)||a.call(n,n.children[s],n.children[u]),console.log("不允许自己给自己拖动"),b}const f=m.items.splice(m.index,1)[0];l.isTreeExpandByRow(x)?x[c.children].splice(0,0,f):v.items.splice(v.index+(m.index<v.index?0:1),0,f)}else{const e=m.items.splice(m.index,1)[0];b.unshift(e)}return b}(e,o):function(e,l){var o;const{oldIndex:t=0,newIndex:i=0}=e,d=n((null==(o=null==l?void 0:l.getTableData())?void 0:o.fullData)||[]),r=d.splice(t,1)[0];return d.splice(i,0,r),d}(l,o);return{oldData:i,newData:r}}export{a as rowDragPlugin};
@@ -185,6 +185,7 @@ export declare type LowCodeTableFieldItem = {
185
185
  separateBinder: ArrayAble<string>;
186
186
  separateRowEdit: boolean;
187
187
  separatePlacement: 'bottom';
188
+ separateIndent: number;
188
189
  separateWidth: ((payload: {
189
190
  column: VxeTableDefines.ColumnInfo;
190
191
  row: AnyObject;
@@ -210,6 +211,7 @@ export declare type LowCodeTableFieldItem = {
210
211
  close: LowCodeTypes.switchProperty;
211
212
  show_mode: LowCodeTypes.showModeType;
212
213
  lazyRequest: boolean;
214
+ labelToValue: boolean;
213
215
  }> & Partial<VxeTableDefines.ColumnInfo>;
214
216
  export declare type IhoTableFormChangePayload = {
215
217
  column: IhoTableFieldItem;