cnhis-design-vue 3.2.5-beta.2 → 3.2.5-beta.22

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 (318) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/button-print/index.d.ts +22 -2
  7. package/es/components/button-print/src/ButtonPrint.vue.d.ts +22 -2
  8. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  9. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +4 -1
  10. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  11. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +1 -1
  12. package/es/components/callback/src/components/render/popupMaps.d.ts +1535 -1
  13. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  14. package/es/components/card-reader-sdk/src/types/index.d.ts +1 -0
  15. package/es/components/classification/src/index.vue.d.ts +3 -0
  16. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  17. package/es/components/default-page/src/index.vue2.js +1 -1
  18. package/es/components/default-page/style/index.css +1 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  20. package/es/components/field-set/src/FieldColor.vue.d.ts +3 -3
  21. package/es/components/field-set/src/FieldFilter.vue.d.ts +3 -3
  22. package/es/components/field-set/src/FieldSet.vue.d.ts +4 -4
  23. package/es/components/field-set/src/components/Row.vue.d.ts +3 -3
  24. package/es/components/form-config/index.d.ts +5 -0
  25. package/es/components/form-config/src/FormConfig.vue.d.ts +5 -0
  26. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -0
  27. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  28. package/es/components/form-config/src/types/index.d.ts +5 -0
  29. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  30. package/es/components/form-render/src/components/renderer/select.js +1 -1
  31. package/es/components/form-render/src/components/renderer/switch.d.ts +1 -1
  32. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  33. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  34. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  35. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  36. package/es/components/iho-table/index.d.ts +1535 -1
  37. package/es/components/iho-table/src/IhoTable.vue.d.ts +1536 -2
  38. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  39. package/es/components/iho-table/src/constants/index.d.ts +3 -1
  40. package/es/components/iho-table/src/constants/index.js +1 -1
  41. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -2
  42. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  43. package/es/components/iho-table/src/plugins/defaultConfigPlugin.js +1 -1
  44. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  45. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
  46. package/es/components/iho-table/src/plugins/index.js +1 -1
  47. package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +1 -1
  48. package/es/components/iho-table/src/plugins/pagerScrollPlugin/utils.d.ts +0 -1
  49. package/es/components/iho-table/src/plugins/pagerScrollPlugin/utils.js +1 -1
  50. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -1
  51. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  52. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  53. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -1
  54. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +1 -1
  55. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -1
  56. package/es/components/iho-table/src/plugins/stickyFixedPlugin.d.ts +1 -0
  57. package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -0
  58. package/es/components/iho-table/src/types/index.d.ts +10 -6
  59. package/es/components/iho-table/src/types/pluginType.d.ts +3 -1
  60. package/es/components/iho-table/src/utils/index.d.ts +5 -3
  61. package/es/components/iho-table/src/utils/index.js +1 -1
  62. package/es/components/iho-table/style/index.css +1 -1
  63. package/es/components/index.css +1 -1
  64. package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
  65. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  66. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  67. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  68. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
  69. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -1
  70. package/es/components/shortcut-setter/index.d.ts +1 -0
  71. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  72. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
  73. package/es/components/step-notice/src/StepNotice.vue2.js +1 -1
  74. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  75. package/es/components/table-filter/src/types/enums.d.ts +4 -0
  76. package/es/components/table-filter/src/types/enums.js +1 -1
  77. package/es/components/table-filter/src/types/index.d.ts +1 -0
  78. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  79. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  80. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  81. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  82. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  83. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  84. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  85. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  86. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  87. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  88. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  89. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  90. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  91. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  92. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  93. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  94. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  95. package/es/shared/assets/img/emoji/emotion_001.png.js +1 -1
  96. package/es/shared/assets/img/emoji/emotion_002.png.js +1 -1
  97. package/es/shared/assets/img/emoji/emotion_003.png.js +1 -1
  98. package/es/shared/assets/img/emoji/emotion_004.png.js +1 -1
  99. package/es/shared/assets/img/emoji/emotion_005.png.js +1 -1
  100. package/es/shared/assets/img/emoji/emotion_006.png.js +1 -1
  101. package/es/shared/assets/img/emoji/emotion_007.png.js +1 -1
  102. package/es/shared/assets/img/emoji/emotion_008.png.js +1 -1
  103. package/es/shared/assets/img/emoji/emotion_009.png.js +1 -1
  104. package/es/shared/assets/img/emoji/emotion_010.png.js +1 -1
  105. package/es/shared/assets/img/emoji/emotion_011.png.js +1 -1
  106. package/es/shared/assets/img/emoji/emotion_012.png.js +1 -1
  107. package/es/shared/assets/img/emoji/emotion_013.png.js +1 -1
  108. package/es/shared/assets/img/emoji/emotion_014.png.js +1 -1
  109. package/es/shared/assets/img/emoji/emotion_015.png.js +1 -1
  110. package/es/shared/assets/img/emoji/emotion_016.png.js +1 -1
  111. package/es/shared/assets/img/emoji/emotion_017.png.js +1 -1
  112. package/es/shared/assets/img/emoji/emotion_018.png.js +1 -1
  113. package/es/shared/assets/img/emoji/emotion_019.png.js +1 -1
  114. package/es/shared/assets/img/emoji/emotion_020.png.js +1 -1
  115. package/es/shared/assets/img/emoji/emotion_021.png.js +1 -1
  116. package/es/shared/assets/img/emoji/emotion_022.png.js +1 -1
  117. package/es/shared/assets/img/emoji/emotion_023.png.js +1 -1
  118. package/es/shared/assets/img/emoji/emotion_024.png.js +1 -1
  119. package/es/shared/assets/img/emoji/emotion_025.png.js +1 -1
  120. package/es/shared/assets/img/emoji/emotion_026.png.js +1 -1
  121. package/es/shared/assets/img/emoji/emotion_027.png.js +1 -1
  122. package/es/shared/assets/img/emoji/emotion_028.png.js +1 -1
  123. package/es/shared/assets/img/emoji/emotion_029.png.js +1 -1
  124. package/es/shared/assets/img/emoji/emotion_030.png.js +1 -1
  125. package/es/shared/assets/img/emoji/emotion_031.png.js +1 -1
  126. package/es/shared/assets/img/emoji/emotion_032.png.js +1 -1
  127. package/es/shared/assets/img/emoji/emotion_033.png.js +1 -1
  128. package/es/shared/assets/img/emoji/emotion_034.png.js +1 -1
  129. package/es/shared/assets/img/emoji/emotion_035.png.js +1 -1
  130. package/es/shared/assets/img/emoji/emotion_036.png.js +1 -1
  131. package/es/shared/assets/img/emoji/emotion_037.png.js +1 -1
  132. package/es/shared/assets/img/emoji/emotion_038.png.js +1 -1
  133. package/es/shared/assets/img/emoji/emotion_039.png.js +1 -1
  134. package/es/shared/assets/img/emoji/emotion_040.png.js +1 -1
  135. package/es/shared/assets/img/emoji/emotion_041.png.js +1 -1
  136. package/es/shared/assets/img/emoji/emotion_042.png.js +1 -1
  137. package/es/shared/assets/img/emoji/emotion_043.png.js +1 -1
  138. package/es/shared/assets/img/emoji/emotion_044.png.js +1 -1
  139. package/es/shared/assets/img/emoji/emotion_045.png.js +1 -1
  140. package/es/shared/assets/img/emoji/emotion_046.png.js +1 -1
  141. package/es/shared/assets/img/emoji/emotion_047.png.js +1 -1
  142. package/es/shared/assets/img/emoji/emotion_048.png.js +1 -1
  143. package/es/shared/assets/img/emoji/emotion_049.png.js +1 -1
  144. package/es/shared/assets/img/emoji/emotion_050.png.js +1 -1
  145. package/es/shared/assets/img/emoji/emotion_051.png.js +1 -1
  146. package/es/shared/assets/img/emoji/emotion_052.png.js +1 -1
  147. package/es/shared/assets/img/emoji/emotion_053.png.js +1 -1
  148. package/es/shared/assets/img/emoji/emotion_054.png.js +1 -1
  149. package/es/shared/assets/img/emoji/emotion_055.png.js +1 -1
  150. package/es/shared/assets/img/emoji/emotion_056.png.js +1 -1
  151. package/es/shared/assets/img/emoji/emotion_057.png.js +1 -1
  152. package/es/shared/assets/img/emoji/emotion_058.png.js +1 -1
  153. package/es/shared/assets/img/emoji/emotion_059.png.js +1 -1
  154. package/es/shared/assets/img/emoji/emotion_060.png.js +1 -1
  155. package/es/shared/assets/img/emoji/emotion_061.png.js +1 -1
  156. package/es/shared/assets/img/emoji/emotion_062.png.js +1 -1
  157. package/es/shared/assets/img/emoji/emotion_063.png.js +1 -1
  158. package/es/shared/assets/img/emoji/emotion_064.png.js +1 -1
  159. package/es/shared/assets/img/emoji/emotion_065.png.js +1 -1
  160. package/es/shared/assets/img/emoji/emotion_066.png.js +1 -1
  161. package/es/shared/assets/img/emoji/emotion_067.png.js +1 -1
  162. package/es/shared/assets/img/emoji/emotion_068.png.js +1 -1
  163. package/es/shared/assets/img/emoji/emotion_069.png.js +1 -1
  164. package/es/shared/assets/img/emoji/emotion_070.png.js +1 -1
  165. package/es/shared/assets/img/emoji/emotion_071.png.js +1 -1
  166. package/es/shared/assets/img/emoji/emotion_072.png.js +1 -1
  167. package/es/shared/assets/img/emoji/emotion_073.png.js +1 -1
  168. package/es/shared/assets/img/emoji/emotion_074.png.js +1 -1
  169. package/es/shared/assets/img/emoji/emotion_075.png.js +1 -1
  170. package/es/shared/assets/img/emoji/emotion_076.png.js +1 -1
  171. package/es/shared/assets/img/emoji/emotion_077.png.js +1 -1
  172. package/es/shared/assets/img/emoji/emotion_078.png.js +1 -1
  173. package/es/shared/assets/img/emoji/emotion_079.png.js +1 -1
  174. package/es/shared/assets/img/emoji/emotion_080.png.js +1 -1
  175. package/es/shared/assets/img/emoji/emotion_081.png.js +1 -1
  176. package/es/shared/assets/img/emoji/emotion_082.png.js +1 -1
  177. package/es/shared/assets/img/emoji/emotion_083.png.js +1 -1
  178. package/es/shared/assets/img/emoji/emotion_084.png.js +1 -1
  179. package/es/shared/assets/img/emoji/emotion_085.png.js +1 -1
  180. package/es/shared/assets/img/emoji/emotion_086.png.js +1 -1
  181. package/es/shared/assets/img/emoji/emotion_087.png.js +1 -1
  182. package/es/shared/assets/img/emoji/emotion_088.png.js +1 -1
  183. package/es/shared/assets/img/emoji/emotion_089.png.js +1 -1
  184. package/es/shared/assets/img/emoji/emotion_090.png.js +1 -1
  185. package/es/shared/assets/img/emoji/emotion_091.png.js +1 -1
  186. package/es/shared/assets/img/emoji/emotion_092.png.js +1 -1
  187. package/es/shared/assets/img/emoji/emotion_093.png.js +1 -1
  188. package/es/shared/assets/img/emoji/emotion_094.png.js +1 -1
  189. package/es/shared/assets/img/emoji/emotion_095.png.js +1 -1
  190. package/es/shared/assets/img/emoji/emotion_096.png.js +1 -1
  191. package/es/shared/assets/img/emoji/emotion_097.png.js +1 -1
  192. package/es/shared/assets/img/emoji/emotion_098.png.js +1 -1
  193. package/es/shared/assets/img/emoji/emotion_099.png.js +1 -1
  194. package/es/shared/assets/img/emoji/emotion_100.png.js +1 -1
  195. package/es/shared/assets/img/emoji/emotion_101.png.js +1 -1
  196. package/es/shared/assets/img/emoji/emotion_102.png.js +1 -1
  197. package/es/shared/assets/img/emoji/emotion_103.png.js +1 -1
  198. package/es/shared/assets/img/emoji/emotion_104.png.js +1 -1
  199. package/es/shared/assets/img/emoji/emotion_105.png.js +1 -1
  200. package/es/shared/assets/img/emoji/emotion_106.png.js +1 -1
  201. package/es/shared/assets/img/emoji/emotion_107.png.js +1 -1
  202. package/es/shared/assets/img/emoji/emotion_108.png.js +1 -1
  203. package/es/shared/assets/img/emoji/emotion_109.png.js +1 -1
  204. package/es/shared/assets/img/emoji/emotion_110.png.js +1 -1
  205. package/es/shared/assets/img/emoji/emotion_111.png.js +1 -1
  206. package/es/shared/assets/img/emoji/emotion_112.png.js +1 -1
  207. package/es/shared/assets/img/emoji/emotion_113.png.js +1 -1
  208. package/es/shared/assets/img/emoji/emotion_114.png.js +1 -1
  209. package/es/shared/assets/img/emoji/emotion_115.png.js +1 -1
  210. package/es/shared/assets/img/emoji/emotion_116.png.js +1 -1
  211. package/es/shared/assets/img/emoji/emotion_117.png.js +1 -1
  212. package/es/shared/assets/img/emoji/emotion_118.png.js +1 -1
  213. package/es/shared/assets/img/emoji/emotion_119.png.js +1 -1
  214. package/es/shared/assets/img/emoji/emotion_120.png.js +1 -1
  215. package/es/shared/assets/img/emoji/emotion_121.png.js +1 -1
  216. package/es/shared/assets/img/emoji/emotion_122.png.js +1 -1
  217. package/es/shared/assets/img/emoji/emotion_123.png.js +1 -1
  218. package/es/shared/assets/img/emoji/emotion_124.png.js +1 -1
  219. package/es/shared/assets/img/emoji/emotion_125.png.js +1 -1
  220. package/es/shared/assets/img/emoji/emotion_126.png.js +1 -1
  221. package/es/shared/assets/img/emoji/emotion_127.png.js +1 -1
  222. package/es/shared/assets/img/emoji/emotion_128.png.js +1 -1
  223. package/es/shared/assets/img/emoji/emotion_129.png.js +1 -1
  224. package/es/shared/assets/img/emoji/emotion_130.png.js +1 -1
  225. package/es/shared/assets/img/emoji/emotion_131.png.js +1 -1
  226. package/es/shared/assets/img/emoji/emotion_132.png.js +1 -1
  227. package/es/shared/assets/img/emoji/emotion_133.png.js +1 -1
  228. package/es/shared/assets/img/emoji/emotion_134.png.js +1 -1
  229. package/es/shared/assets/img/emoji/emotion_135.png.js +1 -1
  230. package/es/shared/assets/img/emoji/emotion_136.png.js +1 -1
  231. package/es/shared/assets/img/emoji/emotion_137.png.js +1 -1
  232. package/es/shared/assets/img/emoji/emotion_138.png.js +1 -1
  233. package/es/shared/assets/img/emoji/emotion_139.png.js +1 -1
  234. package/es/shared/assets/img/emoji/emotion_140.png.js +1 -1
  235. package/es/shared/assets/img/emoji/emotion_141.png.js +1 -1
  236. package/es/shared/assets/img/emoji/emotion_142.png.js +1 -1
  237. package/es/shared/assets/img/emoji/emotion_143.png.js +1 -1
  238. package/es/shared/assets/img/emoji/emotion_144.png.js +1 -1
  239. package/es/shared/assets/img/emoji/emotion_145.png.js +1 -1
  240. package/es/shared/assets/img/emoji/emotion_146.png.js +1 -1
  241. package/es/shared/assets/img/emoji/emotion_147.png.js +1 -1
  242. package/es/shared/assets/img/emoji/emotion_148.png.js +1 -1
  243. package/es/shared/assets/img/emoji/emotion_149.png.js +1 -1
  244. package/es/shared/assets/img/emoji/emotion_150.png.js +1 -1
  245. package/es/shared/assets/img/emoji/emotion_151.png.js +1 -1
  246. package/es/shared/assets/img/emoji/emotion_152.png.js +1 -1
  247. package/es/shared/assets/img/emoji/emotion_153.png.js +1 -1
  248. package/es/shared/assets/img/emoji/emotion_154.png.js +1 -1
  249. package/es/shared/assets/img/emoji/emotion_155.png.js +1 -1
  250. package/es/shared/assets/img/emoji/emotion_156.png.js +1 -1
  251. package/es/shared/assets/img/emoji/emotion_157.png.js +1 -1
  252. package/es/shared/assets/img/emoji/emotion_158.png.js +1 -1
  253. package/es/shared/assets/img/emoji/emotion_159.png.js +1 -1
  254. package/es/shared/assets/img/emoji/emotion_160.png.js +1 -1
  255. package/es/shared/assets/img/emoji/emotion_161.png.js +1 -1
  256. package/es/shared/assets/img/emoji/emotion_162.png.js +1 -1
  257. package/es/shared/assets/img/emoji/emotion_163.png.js +1 -1
  258. package/es/shared/assets/img/emoji/emotion_164.png.js +1 -1
  259. package/es/shared/assets/img/emoji/emotion_165.png.js +1 -1
  260. package/es/shared/assets/img/emoji/emotion_166.png.js +1 -1
  261. package/es/shared/assets/img/emoji/emotion_167.png.js +1 -1
  262. package/es/shared/assets/img/failure.png.js +1 -1
  263. package/es/shared/assets/img/no-permission.png.js +1 -1
  264. package/es/shared/assets/img/nodata.png.js +1 -1
  265. package/es/shared/assets/img/notfound.png.js +1 -1
  266. package/es/shared/assets/img/qr.png.js +1 -1
  267. package/es/shared/assets/img/success.png.js +1 -1
  268. package/es/shared/assets/img/table_style_2.png.js +1 -1
  269. package/es/shared/assets/img/tooth/l-b-1.png.js +1 -1
  270. package/es/shared/assets/img/tooth/l-b-2.png.js +1 -1
  271. package/es/shared/assets/img/tooth/l-b-3.png.js +1 -1
  272. package/es/shared/assets/img/tooth/l-b-4.png.js +1 -1
  273. package/es/shared/assets/img/tooth/l-b-5.png.js +1 -1
  274. package/es/shared/assets/img/tooth/l-b-6.png.js +1 -1
  275. package/es/shared/assets/img/tooth/l-b-7.png.js +1 -1
  276. package/es/shared/assets/img/tooth/l-b-8.png.js +1 -1
  277. package/es/shared/assets/img/tooth/l-t-1.png.js +1 -1
  278. package/es/shared/assets/img/tooth/l-t-2.png.js +1 -1
  279. package/es/shared/assets/img/tooth/l-t-3.png.js +1 -1
  280. package/es/shared/assets/img/tooth/l-t-4.png.js +1 -1
  281. package/es/shared/assets/img/tooth/l-t-5.png.js +1 -1
  282. package/es/shared/assets/img/tooth/l-t-6.png.js +1 -1
  283. package/es/shared/assets/img/tooth/l-t-7.png.js +1 -1
  284. package/es/shared/assets/img/tooth/l-t-8.png.js +1 -1
  285. package/es/shared/assets/img/tooth/r-b-1.png.js +1 -1
  286. package/es/shared/assets/img/tooth/r-b-2.png.js +1 -1
  287. package/es/shared/assets/img/tooth/r-b-3.png.js +1 -1
  288. package/es/shared/assets/img/tooth/r-b-4.png.js +1 -1
  289. package/es/shared/assets/img/tooth/r-b-5.png.js +1 -1
  290. package/es/shared/assets/img/tooth/r-b-6.png.js +1 -1
  291. package/es/shared/assets/img/tooth/r-b-7.png.js +1 -1
  292. package/es/shared/assets/img/tooth/r-b-8.png.js +1 -1
  293. package/es/shared/assets/img/tooth/r-t-1.png.js +1 -1
  294. package/es/shared/assets/img/tooth/r-t-2.png.js +1 -1
  295. package/es/shared/assets/img/tooth/r-t-3.png.js +1 -1
  296. package/es/shared/assets/img/tooth/r-t-4.png.js +1 -1
  297. package/es/shared/assets/img/tooth/r-t-5.png.js +1 -1
  298. package/es/shared/assets/img/tooth/r-t-6.png.js +1 -1
  299. package/es/shared/assets/img/tooth/r-t-7.png.js +1 -1
  300. package/es/shared/assets/img/tooth/r-t-8.png.js +1 -1
  301. package/es/shared/assets/img/video.png.js +1 -1
  302. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  303. package/es/shared/assets/img/xb_big.png.js +1 -1
  304. package/es/shared/assets/img/xb_small.png.js +1 -1
  305. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  306. package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -1
  307. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  308. package/es/shared/hooks/useFormRequest/index.js +1 -1
  309. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  310. package/es/shared/hooks/useTheme.js +1 -1
  311. package/es/shared/package.json.js +1 -1
  312. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  313. package/es/shared/utils/index.js +1 -1
  314. package/es/shared/utils/tapable/index.d.ts +139 -0
  315. package/package.json +2 -2
  316. package/es/components/iho-table/src/plugins/pagerScrollPlugin/pagerScroll.vue.d.ts +0 -26
  317. package/es/components/iho-table/src/plugins/pagerScrollPlugin/pagerScroll.vue.js +0 -1
  318. package/es/components/iho-table/src/plugins/pagerScrollPlugin/pagerScroll.vue2.js +0 -1
@@ -0,0 +1,86 @@
1
+ declare const draggableComponent: import('vue').DefineComponent<
2
+ {
3
+ list: {
4
+ type: ArrayConstructor;
5
+ required: boolean;
6
+ default: any;
7
+ };
8
+ modelValue: {
9
+ type: ArrayConstructor;
10
+ required: boolean;
11
+ default: any;
12
+ };
13
+ itemKey: {
14
+ type: (FunctionConstructor | StringConstructor)[];
15
+ required: boolean;
16
+ };
17
+ clone: {
18
+ type: FunctionConstructor;
19
+ default: (original: any) => any;
20
+ };
21
+ tag: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ move: {
26
+ type: FunctionConstructor;
27
+ default: any;
28
+ };
29
+ componentData: {
30
+ type: ObjectConstructor;
31
+ required: boolean;
32
+ default: any;
33
+ };
34
+ },
35
+ unknown,
36
+ {
37
+ error: boolean;
38
+ },
39
+ {
40
+ realList(): any;
41
+ getKey(): any;
42
+ },
43
+ {
44
+ getUnderlyingVm(domElement: any): any;
45
+ getUnderlyingPotencialDraggableComponent(htmElement: any): any;
46
+ emitChanges(evt: any): void;
47
+ alterList(onList: any): void;
48
+ spliceList(): void;
49
+ updatePosition(oldIndex: any, newIndex: any): void;
50
+ getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
51
+ getVmIndexFromDomIndex(domIndex: any): any;
52
+ onDragStart(evt: any): void;
53
+ onDragAdd(evt: any): void;
54
+ onDragRemove(evt: any): void;
55
+ onDragUpdate(evt: any): void;
56
+ computeFutureIndex(relatedContext: any, evt: any): any;
57
+ onDragMove(evt: any, originalEvent: any): any;
58
+ onDragEnd(): void;
59
+ },
60
+ import('vue').ComponentOptionsMixin,
61
+ import('vue').ComponentOptionsMixin,
62
+ any[],
63
+ any,
64
+ import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
65
+ Readonly<
66
+ {
67
+ move: Function;
68
+ tag: string;
69
+ clone: Function;
70
+ list: unknown[];
71
+ modelValue: unknown[];
72
+ componentData: Record<string, any>;
73
+ } & {
74
+ itemKey?: string | Function;
75
+ }
76
+ >,
77
+ {
78
+ move: Function;
79
+ tag: string;
80
+ clone: Function;
81
+ list: unknown[];
82
+ modelValue: unknown[];
83
+ componentData: Record<string, any>;
84
+ }
85
+ >;
86
+ export default draggableComponent;
@@ -1 +1 @@
1
- import{arrayed as e}from"../../utils/index.js";import"lodash-es";import"naive-ui";import{ref as o,computed as r,unref as t}from"vue";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import{useSearchContent as i}from"./useSearchContent.js";import"@vicons/ionicons5";function n(n,{labelKey:s,valueKey:u,searchKey:a,wordSplitFilter:l}){const{searchContent:p,optionSearchFilter:v}=i(),m=o(null),c=r((()=>{const o=e((null==a?void 0:a.value)||[]);return n.searchByValue&&o.push(u.value),m.value?v(m.value,s.value,o,!!t(l)):Array.isArray(n.options)?v(n.options,s.value,o,!!t(l)):[]})),h=r((()=>m.value||n.options||[]));return{searchContent:p,remoteOptions:m,filterOptions:c,fullOptions:h}}export{n as useOptionFiltered};
1
+ import{arrayed as e}from"../../utils/index.js";import"naive-ui";import{ref as o,computed as r,unref as t}from"vue";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import{useSearchContent as i}from"./useSearchContent.js";import"@vicons/ionicons5";function n(n,{labelKey:s,valueKey:u,searchKey:a,wordSplitFilter:l}){const{searchContent:p,optionSearchFilter:v}=i(),m=o(null),c=r((()=>{const o=e((null==a?void 0:a.value)||[]);return n.searchByValue&&o.push(u.value),m.value?v(m.value,s.value,o,!!t(l)):Array.isArray(n.options)?v(n.options,s.value,o,!!t(l)):[]})),h=r((()=>m.value||n.options||[]));return{searchContent:p,remoteOptions:m,filterOptions:c,fullOptions:h}}export{n as useOptionFiltered};
@@ -1 +1 @@
1
- import{ref as e,createVNode as t,createTextVNode as l}from"vue";import"../../utils/index.js";import{isString as n,isArray as r}from"lodash-es";import{NTooltip as o,NIcon as a,NButton as i,NTag as u}from"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import{searchContentMatcher as s}from"./useSearchContent.js";import{HelpCircleSharp as c}from"@vicons/ionicons5";function p(p,{labelKey:v,valueKey:m,showKey:d,searchContent:f,valueRef:y}){const h=e("");return{renderLabel:function(e){var l;const r=e[v.value];if(!r||!n(r))return"";const i=null!=(l=e.title)?l:r,u=f.value?s(f.value,r):null,p=u?t("section",{title:i},[u.map(((e,l)=>0!==l&&e?t("span",{style:{color:l%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):t("span",{title:i},[r]);return e.desc?t("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[p,e.desc?t(o,null,{trigger:()=>t(a,{component:c},null),default:()=>e.desc}):null]):p},renderSelectAll:function(e){return[t(i,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!0)},{default:()=>[l("全选")]}),t(i,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!1)},{default:()=>[l("清空")]})]},renderTag:function({option:e,handleClose:l}){var n;const o=null!=(n=d.value&&e[d.value])?n:e[v.value];if(!p.multiple)return h.value=o,o;h.value="";const a=r(y.value)?y.value.findIndex((t=>t===e[m.value])):-1;return p.deletable?t(u,{closable:!0,onClose:e=>{e.stopPropagation(),l()}},{default:()=>t("span",{title:o},[o])}):`${o} ${a>=0&&a===y.value.length-1?"":";"}`},titleRef:h}}export{p as useSelectRenders};
1
+ import{ref as e,createVNode as t,createTextVNode as l}from"vue";import"../../utils/index.js";import{NTooltip as n,NIcon as r,NButton as o,NTag as a}from"naive-ui";import"@vueuse/core";import"date-fns";import{isString as i,isArray as u}from"lodash-es";import"@vue/shared";import"@vueuse/shared";import{searchContentMatcher as s}from"./useSearchContent.js";import{HelpCircleSharp as c}from"@vicons/ionicons5";function p(p,{labelKey:v,valueKey:m,showKey:d,searchContent:f,valueRef:y}){const h=e("");return{renderLabel:function(e){var l;const o=e[v.value];if(!o||!i(o))return"";const a=null!=(l=e.title)?l:o,u=f.value?s(f.value,o):null,p=u?t("section",{title:a},[u.map(((e,l)=>0!==l&&e?t("span",{style:{color:l%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):t("span",{title:a},[o]);return e.desc?t("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[p,e.desc?t(n,null,{trigger:()=>t(r,{component:c},null),default:()=>e.desc}):null]):p},renderSelectAll:function(e){return[t(o,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!0)},{default:()=>[l("全选")]}),t(o,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!1)},{default:()=>[l("清空")]})]},renderTag:function({option:e,handleClose:l}){var n;const r=null!=(n=d.value&&e[d.value])?n:e[v.value];if(!p.multiple)return h.value=r,r;h.value="";const o=u(y.value)?y.value.findIndex((t=>t===e[m.value])):-1;return p.deletable?t(a,{closable:!0,onClose:e=>{e.stopPropagation(),l()}},{default:()=>t("span",{title:r},[r])}):`${r} ${o>=0&&o===y.value.length-1?"":";"}`},titleRef:h}}export{p as useSelectRenders};
@@ -1 +1 @@
1
- import{isObject as e,isPromise as t}from"@vue/shared";import{uuidGenerator as r}from"../../utils/index.js";import{unref as n}from"vue";import{cloneDeep as s,isFunction as o}from"lodash-es";import"naive-ui";import"@vueuse/core";import"date-fns";import{AsyncQueue as a}from"../useAsyncQueue/index.js";import"@vueuse/shared";import"../selectHooks/useSearchContent.js";import"@vicons/ionicons5";let u=null;const i={method:"post",url:"",primaryKeyUrl:"",mergeUrl:""},c={url:{get:"/fdp-api/fdp/aiRec/search",post:"/fdp-api/fdp/aiRec/sendBehaviorData",delete:"/fdp-api/fdp/aiRec/delete"},getRecommendIds:()=>({})};function l(){return{getHttpInstance:function(){return u},registGlobHttpInstance:function(e){u=e},registGlobRecommendInfo:function(e){Object.assign(c,e)},registGlobSearchInfo:function(e){Object.assign(i,e)},getSearchRequestInfo:function(){return{...i}},getRecommendRequestInfo:function(){return s(c)}}}function f(s,u){const{getHttpInstance:i}=l();let c=null;return{create:function(l=3,f){const m=new a({name:"FormRenderAsyncQueue",uniqueData:u.value,parallelism:l,async processor({key:r,mergeUrl:a,method:u="post",cache:p,params:d,url:h,payload:R},g,y){var w,b,q,v;const S=null!=(w=n(s))?w:i();if(!S)return console.log("before use http feature, you should regist http instance by useFormRequest.registGlobHttpInstance()"),g(),void y();try{let n;if(f&&o(f.beforeRequest)&&(d=null!=(b=f.beforeRequest(r,d,R))?b:{}),a){(!c||Object.keys(c.waitingRequestParams).length>=10)&&(c=function(e,t,r,n,s){const o=new Promise(((s,a)=>{n.parallelism=1e3,setTimeout((async()=>{try{s(await e[r](t,o.waitingRequestParams))}catch(e){a(e)}}),10)})).finally((()=>{c=null,n.parallelism=s}));return o.waitingRequestParams={},o}(S,a,u,m,l)),c.waitingRequestParams[r]=d;const t=await c;n=e(t)?{...t,map:null!=(v=null==(q=t.map)?void 0:q[r])?v:{rows:[]}}:{}}else n=await S[u](h,d);f&&o(f.afterRequest)&&(n=f.afterRequest(r,n,R),t(n)&&(n=await n)),g(void 0,Array.isArray(n)?n:[]),!p&&y()}catch(e){g(new Error(`Request error => ${e}`)),y()}},getKey:({url:e,method:t="post",cache:n,params:s})=>n?e+t+JSON.stringify(s||{}):r()});return m}}}function m(t){if(!e(t))throw t;return r=t,Reflect.has(r,"map")&&Reflect.has(r,"result")?function(e){const{result:t,map:r}=e;if("SUCCESS"!==t)throw e;return r.rows}(t):function(e){return Reflect.has(e,"result")&&Reflect.has(e,"obj")}(t)?function(t){const{obj:r,result:n}=t;if("SUCCESS"!==n||!e(r))throw t;return Object.entries(r).reduce(((e,[t,r])=>(r.forEach((r=>e.push({...r,type:t}))),e)),[])}(t):function(e){return Reflect.has(e,"data")&&Reflect.has(e,"success")}(t)?function(e){const{data:t,success:r}=e;if(!r)throw e;return t}(t):[];var r}export{m as presetRequestHandler,f as useFormAsyncQueue,l as useFormRequest};
1
+ import{isObject as e,isPromise as t}from"@vue/shared";import{uuidGenerator as r}from"../../utils/index.js";import{unref as n}from"vue";import"naive-ui";import"@vueuse/core";import"date-fns";import{AsyncQueue as s}from"../useAsyncQueue/index.js";import{cloneDeep as o,isFunction as a}from"lodash-es";import"@vueuse/shared";import"../selectHooks/useSearchContent.js";import"@vicons/ionicons5";let u=null;const i={method:"post",url:"",primaryKeyUrl:"",mergeUrl:""},c={url:{get:"/fdp-api/fdp/aiRec/search",post:"/fdp-api/fdp/aiRec/sendBehaviorData",delete:"/fdp-api/fdp/aiRec/delete"},getRecommendIds:()=>({})};function l(){return{getHttpInstance:function(){return u},registGlobHttpInstance:function(e){u=e},registGlobRecommendInfo:function(e){Object.assign(c,e)},registGlobSearchInfo:function(e){Object.assign(i,e)},getSearchRequestInfo:function(){return{...i}},getRecommendRequestInfo:function(){return o(c)}}}function f(o,u){const{getHttpInstance:i}=l();let c=null;return{create:function(l=3,f){const m=new s({name:"FormRenderAsyncQueue",uniqueData:u.value,parallelism:l,async processor({key:r,mergeUrl:s,method:u="post",cache:p,params:d,url:h,payload:R},g,y){var w,b,q,v;const S=null!=(w=n(o))?w:i();if(!S)return console.log("before use http feature, you should regist http instance by useFormRequest.registGlobHttpInstance()"),g(),void y();try{let n;if(f&&a(f.beforeRequest)&&(d=null!=(b=f.beforeRequest(r,d,R))?b:{}),s){(!c||Object.keys(c.waitingRequestParams).length>=10)&&(c=function(e,t,r,n,s){const o=new Promise(((s,a)=>{n.parallelism=1e3,setTimeout((async()=>{try{s(await e[r](t,o.waitingRequestParams))}catch(e){a(e)}}),10)})).finally((()=>{c=null,n.parallelism=s}));return o.waitingRequestParams={},o}(S,s,u,m,l)),c.waitingRequestParams[r]=d;const t=await c;n=e(t)?{...t,map:null!=(v=null==(q=t.map)?void 0:q[r])?v:{rows:[]}}:{}}else n=await S[u](h,d);f&&a(f.afterRequest)&&(n=f.afterRequest(r,n,R),t(n)&&(n=await n)),g(void 0,Array.isArray(n)?n:[]),!p&&y()}catch(e){g(new Error(`Request error => ${e}`)),y()}},getKey:({url:e,method:t="post",cache:n,params:s})=>n?e+t+JSON.stringify(s||{}):r()});return m}}}function m(t){if(!e(t))throw t;return r=t,Reflect.has(r,"map")&&Reflect.has(r,"result")?function(e){const{result:t,map:r}=e;if("SUCCESS"!==t)throw e;return r.rows}(t):function(e){return Reflect.has(e,"result")&&Reflect.has(e,"obj")}(t)?function(t){const{obj:r,result:n}=t;if("SUCCESS"!==n||!e(r))throw t;return Object.entries(r).reduce(((e,[t,r])=>(r.forEach((r=>e.push({...r,type:t}))),e)),[])}(t):function(e){return Reflect.has(e,"data")&&Reflect.has(e,"success")}(t)?function(e){const{data:t,success:r}=e;if(!r)throw e;return t}(t):[];var r}export{m as presetRequestHandler,f as useFormAsyncQueue,l as useFormRequest};
@@ -1 +1 @@
1
- import"../utils/index.js";import{isEqual as e,noop as t,isString as r,isNumber as n,isEmpty as i,isFunction as o,cloneDeep as a,omit as l,isArray as u}from"lodash-es";import"naive-ui";import{computed as s,ref as c,watch as d,unref as v}from"vue";import"@vueuse/core";import"date-fns";import{useFormRequest as p}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";function h(h,y,{asyncQueue:f,fieldKey:m,getRequestPayload:k=t}){const g=s({get:()=>h.value,set(t){e(t,h.value)||y("update:value",t)}}),w=c(!1),_=c([]),b=s((()=>{var e,t,r;return null!=(r=null==(t=null==(e=h.wordbook)?void 0:e.show_key)?void 0:t[0])?r:h.labelField})),O=s((()=>{var e,t;return null!=(t=null==(e=h.wordbook)?void 0:e.value_key)?t:h.valueField})),L=s((()=>{var e,t;return null==(t=null==(e=h.wordbook)?void 0:e.render_key)?void 0:t[0]})),j=s((()=>{var e;return(null==(e=h.wordbook)?void 0:e.level_num)||1/0})),C=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=a(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(l(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>u(t)&&!i(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(O,b,L),{getSearchRequestInfo:K}=p(),I=c(150),R=c();async function x(e,t,a=!0){var l,u;if(I.value=t&&(null==(l=R.value)?void 0:l.getWidth())||150,C.shouldInitOptionList(g.value,e,t)){const[e,t]=C.transformListToChildren(g.value),r=e[Math.max(0,e.length-2)];if(g.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1),r}if(null==(u=_.value)?void 0:u.length)return r}try{return C.isClickNodeCheckbox(e)?s(e):e?e.__keyword?async function(){var t;if(!r(e.id_link))return Promise.reject(`id_link isn't string "${e.id_link}"`);const o=C.parseLinkFromString2List(e.id_link);n(j.value)&&j.value!==1/0&&o.splice(j.value);const a=await async function(e){if(!K().primaryKeyUrl)return[];try{return await f.addAsync(t(h.wordbook,h.autograph,e,v(m)))}catch(e){r(e)&&console.error(e)}function t(e,t,r,n){const i=K();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:h.requestCache,payload:{field:{},labelKey:b.value,valueKey:O.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:l,options:u}=C.generateOptionWithIdList(a,o,j.value);if(u.length<j.value&&(await x(l),i(l.children)))return g.value=C.sortOptionWithIdList(a,o),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=u,null==(t=R.value)||t.setCursor(l),l}():async function(){const t=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));if(!t.length)return a?s(e):Promise.reject("childrenList is empty");e.children=t.map((t=>C.enrichChildOption(t,e,j.value)))}():async function(){var r;const n=await f.addAsync(c(h.wordbook,h.autograph,e,v(m)));_.value=n.map((e=>C.enrichKeywordOption(e,t))),t&&(null==(r=R.value)||r.setCursor(_.value[0]))}()}catch(e){r(e)&&console.error(e)}function s(e){return g.value=C.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function c(e,n,i,a){const l={autograph:()=>n,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(C.createConfigObject(e,t,i)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},u=Object.entries(l).reduce(((t,[n,i])=>(t[n]=r(i)?e[i]:o(i)?i():void 0,t)),{});return{...K(),params:u,key:a,cache:h.requestCache,payload:{...k(),labelKey:b.value,valueKey:O.value}}}}return d((()=>h.wordbook),((t,r)=>{e(t,r)||(_.value=[],t&&(g.value||!h.lazyRequest)&&x())}),{immediate:!0}),{valueRef:g,labelKey:b,valueKey:O,optionsRef:_,showRef:w,fetchData:x,menuWidth:I,searchCascaderRef:R}}export{h as useLevelSearchCascader};
1
+ import"../utils/index.js";import"naive-ui";import{computed as e,ref as t,watch as r,unref as n}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as i,noop as o,isString as a,isNumber as l,isEmpty as u,isFunction as s,cloneDeep as c,omit as d,isArray as v}from"lodash-es";import{useFormRequest as p}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";function h(h,y,{asyncQueue:f,fieldKey:m,getRequestPayload:k=o}){const g=e({get:()=>h.value,set(e){i(e,h.value)||y("update:value",e)}}),w=t(!1),_=t([]),b=e((()=>{var e,t,r;return null!=(r=null==(t=null==(e=h.wordbook)?void 0:e.show_key)?void 0:t[0])?r:h.labelField})),O=e((()=>{var e,t;return null!=(t=null==(e=h.wordbook)?void 0:e.value_key)?t:h.valueField})),L=e((()=>{var e,t;return null==(t=null==(e=h.wordbook)?void 0:e.render_key)?void 0:t[0]})),j=e((()=>{var e;return(null==(e=h.wordbook)?void 0:e.level_num)||1/0})),C=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=c(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(d(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>v(t)&&!u(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(O,b,L),{getSearchRequestInfo:K}=p(),I=t(150),R=t();async function x(e,t,r=!0){var i,o;if(I.value=t&&(null==(i=R.value)?void 0:i.getWidth())||150,C.shouldInitOptionList(g.value,e,t)){const[e,t]=C.transformListToChildren(g.value),r=e[Math.max(0,e.length-2)];if(g.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1),r}if(null==(o=_.value)?void 0:o.length)return r}try{return C.isClickNodeCheckbox(e)?c(e):e?e.__keyword?async function(){var t;if(!a(e.id_link))return Promise.reject(`id_link isn't string "${e.id_link}"`);const r=C.parseLinkFromString2List(e.id_link);l(j.value)&&j.value!==1/0&&r.splice(j.value);const i=await async function(e){if(!K().primaryKeyUrl)return[];try{return await f.addAsync(t(h.wordbook,h.autograph,e,n(m)))}catch(e){a(e)&&console.error(e)}function t(e,t,r,n){const i=K();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:h.requestCache,payload:{field:{},labelKey:b.value,valueKey:O.value}}}}(r);if(!i)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:o,options:s}=C.generateOptionWithIdList(i,r,j.value);if(s.length<j.value&&(await x(o),u(o.children)))return g.value=C.sortOptionWithIdList(i,r),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=s,null==(t=R.value)||t.setCursor(o),o}():async function(){const t=await f.addAsync(d(h.wordbook,h.autograph,e,n(m)));if(!t.length)return r?c(e):Promise.reject("childrenList is empty");e.children=t.map((t=>C.enrichChildOption(t,e,j.value)))}():async function(){var r;const i=await f.addAsync(d(h.wordbook,h.autograph,e,n(m)));_.value=i.map((e=>C.enrichKeywordOption(e,t))),t&&(null==(r=R.value)||r.setCursor(_.value[0]))}()}catch(e){a(e)&&console.error(e)}function c(e){return g.value=C.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function d(e,r,n,i){const o={autograph:()=>r,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(C.createConfigObject(e,t,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},l=Object.entries(o).reduce(((t,[r,n])=>(t[r]=a(n)?e[n]:s(n)?n():void 0,t)),{});return{...K(),params:l,key:i,cache:h.requestCache,payload:{...k(),labelKey:b.value,valueKey:O.value}}}}return r((()=>h.wordbook),((e,t)=>{i(e,t)||(_.value=[],e&&(g.value||!h.lazyRequest)&&x())}),{immediate:!0}),{valueRef:g,labelKey:b,valueKey:O,optionsRef:_,showRef:w,fetchData:x,menuWidth:I,searchCascaderRef:R}}export{h as useLevelSearchCascader};
@@ -1 +1 @@
1
- import{checkInSetupEnv as r,hex2rgba as o}from"../utils/index.js";import{isNumber as i}from"lodash-es";import{useThemeVars as t}from"naive-ui";import{inject as e,computed as n,unref as c}from"vue";function m(i,m){r();const l=t(),p=e("themeOverridesInjectRef",{});return n((()=>{var r;const t=m?c(p)[m]:null,e=null!=(r=l.value.primaryColor)?r:"#5585f5";return{...i,"--c-primary-color":e,"--c-primary-color-opacity1":a(...o(e),.1),"--c-primary-color-opacity2":a(...o(e),.2),...t}}))}function a(r,o,t,e,n=1){return`rgba(${r},${o},${t}, ${i(e)?(e*n).toFixed(2):n})`}export{a as createOpacityColor,m as useTheme};
1
+ import{checkInSetupEnv as r,hex2rgba as o}from"../utils/index.js";import{useThemeVars as t}from"naive-ui";import{inject as i,computed as e,unref as c}from"vue";function n(n,u){r();const a=t(),m=i("themeOverridesInjectRef",{});return e((()=>{var r;const t=u?c(m)[u]:null,i=null!=(r=a.value.primaryColor)?r:"#5585f5";return{...n,"--c-primary-color":i,"--c-primary-color-opacity1":l(...o(i),.1),"--c-primary-color-opacity2":l(...o(i),.2),...t}}))}function l(r,o,t,i,e=1){return`rgb(${Math.ceil(c(r))},${Math.ceil(c(o))},${Math.ceil(c(t))})`;function c(r){return r+(255-r)*(1-e)}}export{l as createOpacityColor,n as useTheme};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.5-beta.2",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.5-beta.2",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.2.5-beta.22",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.5-beta.22",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};