cnhis-design-vue 3.1.24-beta.7 → 3.1.24-beta.8

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 (673) hide show
  1. package/es/_virtual/plugin-vue_export-helper.js +9 -0
  2. package/es/components/annotation-edit/index.d.ts +17 -0
  3. package/es/components/annotation-edit/index.js +10 -0
  4. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +16 -0
  5. package/es/components/annotation-edit/src/AnnotationEdit.js +123 -0
  6. package/es/components/annotation-edit/style/index.css +1 -0
  7. package/es/components/big-table/index.d.ts +1185 -0
  8. package/es/components/big-table/index.js +16 -0
  9. package/es/components/big-table/src/BigTable.js +6 -0
  10. package/es/components/big-table/src/BigTable.vue.d.ts +1183 -0
  11. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +2421 -0
  12. package/es/components/big-table/src/bigTableEmits.d.ts +2 -0
  13. package/es/components/big-table/src/bigTableEmits.js +53 -0
  14. package/es/components/big-table/src/bigTableProps.d.ts +207 -0
  15. package/es/components/big-table/src/bigTableProps.js +119 -0
  16. package/es/components/big-table/src/bigTableState.d.ts +58 -0
  17. package/es/components/big-table/src/bigTableState.js +62 -0
  18. package/es/components/big-table/src/components/NoData.js +74 -0
  19. package/es/components/big-table/src/components/NoData.vue.d.ts +49 -0
  20. package/es/components/big-table/src/components/edit-form/edit-date.d.ts +34 -0
  21. package/es/components/big-table/src/components/edit-form/edit-date.js +214 -0
  22. package/es/components/big-table/src/components/edit-form/edit-input.d.ts +43 -0
  23. package/es/components/big-table/src/components/edit-form/edit-input.js +89 -0
  24. package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +35 -0
  25. package/es/components/big-table/src/components/edit-form/edit-select.d.ts +35 -0
  26. package/es/components/big-table/src/components/edit-form/edit-select.js +102 -0
  27. package/es/components/big-table/src/components/edit-form/edit-separate.js +103 -0
  28. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +130 -0
  29. package/es/components/big-table/src/components/edit-form/edit-time.d.ts +43 -0
  30. package/es/components/big-table/src/components/edit-form/edit-time.js +62 -0
  31. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
  32. package/es/components/big-table/src/components/edit-form/useCommon.js +19 -0
  33. package/es/components/big-table/src/components/input-button.js +34 -0
  34. package/es/components/big-table/src/components/input-button.vue.d.ts +6 -0
  35. package/es/components/big-table/src/components/separate.js +30 -0
  36. package/es/components/big-table/src/components/separate.vue.d.ts +40 -0
  37. package/es/components/big-table/src/constants/index.d.ts +3 -0
  38. package/es/components/big-table/src/constants/index.js +3 -0
  39. package/es/components/big-table/src/hooks/export.d.ts +1 -0
  40. package/es/components/big-table/src/hooks/export.js +1 -0
  41. package/es/components/big-table/src/hooks/index.d.ts +9 -0
  42. package/es/components/big-table/src/hooks/index.js +9 -0
  43. package/es/components/big-table/src/hooks/useAnchor.d.ts +7 -0
  44. package/es/components/big-table/src/hooks/useAnchor.js +49 -0
  45. package/es/components/big-table/src/hooks/useAnnotation.d.ts +4 -0
  46. package/es/components/big-table/src/hooks/useAnnotation.js +21 -0
  47. package/es/components/big-table/src/hooks/useBatchEditing.d.ts +17 -0
  48. package/es/components/big-table/src/hooks/useBatchEditing.js +301 -0
  49. package/es/components/big-table/src/hooks/useColumnConfigAdaptor.d.ts +11 -0
  50. package/es/components/big-table/src/hooks/useColumnConfigAdaptor.js +158 -0
  51. package/es/components/big-table/src/hooks/useEdit.d.ts +335 -0
  52. package/es/components/big-table/src/hooks/useEdit.js +135 -0
  53. package/es/components/big-table/src/hooks/useEvent.d.ts +6 -0
  54. package/es/components/big-table/src/hooks/useEvent.js +81 -0
  55. package/es/components/big-table/src/hooks/useFormat.d.ts +30 -0
  56. package/es/components/big-table/src/hooks/useFormat.js +507 -0
  57. package/es/components/big-table/src/hooks/useNestTable.d.ts +8 -0
  58. package/es/components/big-table/src/hooks/useNestTable.js +86 -0
  59. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +30 -0
  60. package/es/components/big-table/src/hooks/useSeparateRow.js +132 -0
  61. package/es/components/big-table/src/hooks/useTableParse.d.ts +6 -0
  62. package/es/components/big-table/src/hooks/useTableParse.js +142 -0
  63. package/es/components/big-table/src/utils.d.ts +59 -0
  64. package/es/components/big-table/src/utils.js +608 -0
  65. package/es/components/big-table/style/index.css +1 -0
  66. package/es/components/bpmn-workflow/index.d.ts +72 -0
  67. package/es/components/bpmn-workflow/index.js +10 -0
  68. package/es/components/bpmn-workflow/src/BpmnWorkflow.js +258 -0
  69. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +75 -0
  70. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +75 -0
  71. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1452 -0
  72. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +24 -0
  73. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +19 -0
  74. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.d.ts +70 -0
  75. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +99 -0
  76. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +21 -0
  77. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +114 -0
  78. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +12 -0
  79. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +40 -0
  80. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +16 -0
  81. package/es/components/bpmn-workflow/src/custom/customModeler/index.d.ts +6 -0
  82. package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +5 -0
  83. package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +12 -0
  84. package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +14 -0
  85. package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +5 -0
  86. package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +10 -0
  87. package/es/components/bpmn-workflow/src/custom/customRules/no-task.d.ts +4 -0
  88. package/es/components/bpmn-workflow/src/custom/customTranslate/customTranslate.d.ts +1 -0
  89. package/es/components/bpmn-workflow/src/custom/customTranslate/zh.d.ts +226 -0
  90. package/es/components/bpmn-workflow/style/index.css +1 -0
  91. package/es/components/button-print/index.d.ts +613 -0
  92. package/es/components/button-print/index.js +11 -0
  93. package/es/components/button-print/src/ButtonPrint.js +6 -0
  94. package/es/components/button-print/src/ButtonPrint.vue.d.ts +620 -0
  95. package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +481 -0
  96. package/es/components/button-print/src/components/IdentityVerification.js +139 -0
  97. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +367 -0
  98. package/es/components/button-print/src/utils/dialog.d.ts +8 -0
  99. package/es/components/button-print/src/utils/dialog.js +77 -0
  100. package/es/components/button-print/src/utils/index.d.ts +1 -0
  101. package/es/components/button-print/src/utils/index.js +1 -0
  102. package/es/components/button-print/src/utils/print.d.ts +52 -0
  103. package/es/components/button-print/src/utils/print.js +357 -0
  104. package/es/components/button-print/style/index.css +1 -0
  105. package/es/components/chunk-upload/index.d.ts +305 -0
  106. package/es/components/chunk-upload/index.js +14 -0
  107. package/es/components/chunk-upload/src/chunk-upload-new.js +480 -0
  108. package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +196 -0
  109. package/es/components/chunk-upload/src/hooks/upload-computed.d.ts +11 -0
  110. package/es/components/chunk-upload/src/hooks/upload-computed.js +70 -0
  111. package/es/components/chunk-upload/src/hooks/upload-data.d.ts +63 -0
  112. package/es/components/chunk-upload/src/hooks/upload-data.js +96 -0
  113. package/es/components/chunk-upload/src/hooks/vod-computed.d.ts +10 -0
  114. package/es/components/chunk-upload/src/hooks/vod-computed.js +79 -0
  115. package/es/components/chunk-upload/src/hooks/vod-data.d.ts +23 -0
  116. package/es/components/chunk-upload/src/hooks/vod-data.js +28 -0
  117. package/es/components/chunk-upload/src/vod-chunk-upload/index.d.ts +2 -0
  118. package/es/components/chunk-upload/src/vod-chunk-upload/index.js +2 -0
  119. package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +332 -0
  120. package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +303 -0
  121. package/es/components/chunk-upload/src/vod-upload-modal.d.ts +25 -0
  122. package/es/components/chunk-upload/src/vod-upload-modal.js +94 -0
  123. package/es/components/chunk-upload/style/index.css +1 -0
  124. package/es/components/drag-layout/index.d.ts +606 -0
  125. package/es/components/drag-layout/index.js +11 -0
  126. package/es/components/drag-layout/src/DragFormLeftItem.js +122 -0
  127. package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +21 -0
  128. package/es/components/drag-layout/src/DragFormRightItem.js +267 -0
  129. package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +125 -0
  130. package/es/components/drag-layout/src/DragLayout.js +662 -0
  131. package/es/components/drag-layout/src/DragLayout.vue.d.ts +606 -0
  132. package/es/components/drag-layout/style/index.css +1 -0
  133. package/es/components/editor/index.d.ts +30 -0
  134. package/es/components/editor/index.js +10 -0
  135. package/es/components/editor/src/Editor.d.ts +30 -0
  136. package/es/components/editor/src/Editor.js +77 -0
  137. package/es/components/editor/style/index.css +0 -0
  138. package/es/components/fabric-chart/index.d.ts +205 -0
  139. package/es/components/fabric-chart/index.js +10 -0
  140. package/es/components/fabric-chart/src/FabricChart.js +353 -0
  141. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +206 -0
  142. package/es/components/fabric-chart/src/components/PopupMenu.d.ts +46 -0
  143. package/es/components/fabric-chart/src/components/PopupMenu.js +118 -0
  144. package/es/components/fabric-chart/src/components/PopupTip.js +34 -0
  145. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +63 -0
  146. package/es/components/fabric-chart/src/components/useStyle.d.ts +7 -0
  147. package/es/components/fabric-chart/src/components/useStyle.js +36 -0
  148. package/es/components/fabric-chart/src/hooks/constant.d.ts +54 -0
  149. package/es/components/fabric-chart/src/hooks/constant.js +78 -0
  150. package/es/components/fabric-chart/src/hooks/index.d.ts +9 -0
  151. package/es/components/fabric-chart/src/hooks/index.js +9 -0
  152. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +4 -0
  153. package/es/components/fabric-chart/src/hooks/useBottom.js +97 -0
  154. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +30 -0
  155. package/es/components/fabric-chart/src/hooks/useCenter.js +588 -0
  156. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +7 -0
  157. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +60 -0
  158. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +44 -0
  159. package/es/components/fabric-chart/src/hooks/useDraw.js +182 -0
  160. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +7 -0
  161. package/es/components/fabric-chart/src/hooks/useEvent.js +161 -0
  162. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +4 -0
  163. package/es/components/fabric-chart/src/hooks/useGrid.js +50 -0
  164. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +6 -0
  165. package/es/components/fabric-chart/src/hooks/useLeft.js +331 -0
  166. package/es/components/fabric-chart/src/hooks/useOther.d.ts +4 -0
  167. package/es/components/fabric-chart/src/hooks/useOther.js +100 -0
  168. package/es/components/fabric-chart/src/hooks/useRight.d.ts +4 -0
  169. package/es/components/fabric-chart/src/hooks/useRight.js +27 -0
  170. package/es/components/fabric-chart/src/hooks/useShadow.d.ts +6 -0
  171. package/es/components/fabric-chart/src/hooks/useShadow.js +132 -0
  172. package/es/components/fabric-chart/src/hooks/useTop.d.ts +4 -0
  173. package/es/components/fabric-chart/src/hooks/useTop.js +160 -0
  174. package/es/components/fabric-chart/src/interface.d.ts +131 -0
  175. package/es/components/fabric-chart/src/interface.js +4 -0
  176. package/es/components/fabric-chart/src/utils/index.js +15625 -0
  177. package/es/components/fabric-chart/style/index.css +1 -0
  178. package/es/components/field-set/index.d.ts +243 -0
  179. package/es/components/field-set/index.js +10 -0
  180. package/es/components/field-set/src/FieldSet.js +448 -0
  181. package/es/components/field-set/src/FieldSet.vue.d.ts +197 -0
  182. package/es/components/field-set/style/index.css +1 -0
  183. package/es/components/form-config/index.d.ts +3200 -0
  184. package/es/components/form-config/index.js +10 -0
  185. package/es/components/form-config/src/FormConfig.js +120 -0
  186. package/es/components/form-config/src/FormConfig.vue.d.ts +3202 -0
  187. package/es/components/form-config/src/components/FormConfigCreator.js +99 -0
  188. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +633 -0
  189. package/es/components/form-config/src/components/FormConfigDragDisplay.js +43 -0
  190. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +106 -0
  191. package/es/components/form-config/src/components/FormConfigEdit.js +90 -0
  192. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2322 -0
  193. package/es/components/form-config/src/components/index.d.ts +5 -0
  194. package/es/components/form-config/src/components/index.js +6 -0
  195. package/es/components/form-config/src/components/renderer/CloseButton.js +45 -0
  196. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +27 -0
  197. package/es/components/form-config/src/components/renderer/ComplexNode.js +45 -0
  198. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +167 -0
  199. package/es/components/form-config/src/components/renderer/DefaultNode.js +59 -0
  200. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +71 -0
  201. package/es/components/form-config/src/components/renderer/index.d.ts +4 -0
  202. package/es/components/form-config/src/components/renderer/index.js +3 -0
  203. package/es/components/form-config/src/constants/index.d.ts +64 -0
  204. package/es/components/form-config/src/constants/index.js +60 -0
  205. package/es/components/form-config/src/hooks/index.d.ts +3 -0
  206. package/es/components/form-config/src/hooks/index.js +3 -0
  207. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +7 -0
  208. package/es/components/form-config/src/hooks/useConfigurationField.js +54 -0
  209. package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +4 -0
  210. package/es/components/form-config/src/hooks/usePresetRenderer.js +36 -0
  211. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +11 -0
  212. package/es/components/form-config/src/hooks/useSortalbeConfig.js +27 -0
  213. package/es/components/form-config/src/types/index.d.ts +37 -0
  214. package/es/components/form-config/src/types/index.js +1 -0
  215. package/es/components/form-config/src/utils/index.d.ts +7 -0
  216. package/es/components/form-config/src/utils/index.js +26 -0
  217. package/es/components/form-config/style/index.css +1 -0
  218. package/es/components/form-render/index.d.ts +614 -0
  219. package/es/components/form-render/index.js +24 -0
  220. package/es/components/form-render/src/FormRender.js +233 -0
  221. package/es/components/form-render/src/FormRender.vue.d.ts +614 -0
  222. package/es/components/form-render/src/components/renderer/checkbox.d.ts +26 -0
  223. package/es/components/form-render/src/components/renderer/checkbox.js +42 -0
  224. package/es/components/form-render/src/components/renderer/combination.d.ts +51 -0
  225. package/es/components/form-render/src/components/renderer/combination.js +104 -0
  226. package/es/components/form-render/src/components/renderer/complex.d.ts +34 -0
  227. package/es/components/form-render/src/components/renderer/complex.js +37 -0
  228. package/es/components/form-render/src/components/renderer/date.d.ts +52 -0
  229. package/es/components/form-render/src/components/renderer/date.js +171 -0
  230. package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
  231. package/es/components/form-render/src/components/renderer/formItem.js +89 -0
  232. package/es/components/form-render/src/components/renderer/index.d.ts +3 -0
  233. package/es/components/form-render/src/components/renderer/index.js +47 -0
  234. package/es/components/form-render/src/components/renderer/input.d.ts +23 -0
  235. package/es/components/form-render/src/components/renderer/input.js +52 -0
  236. package/es/components/form-render/src/components/renderer/inputGroup.d.ts +11 -0
  237. package/es/components/form-render/src/components/renderer/inputGroup.js +11 -0
  238. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +31 -0
  239. package/es/components/form-render/src/components/renderer/inputNumber.js +55 -0
  240. package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.d.ts +5 -0
  241. package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +35 -0
  242. package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +44 -0
  243. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +173 -0
  244. package/es/components/form-render/src/components/renderer/labelSelect.d.ts +1 -0
  245. package/es/components/form-render/src/components/renderer/labelSelect.js +18 -0
  246. package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +97 -0
  247. package/es/components/form-render/src/components/renderer/levelSearchCascade.js +279 -0
  248. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.js +57 -0
  249. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +54 -0
  250. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +53 -0
  251. package/es/components/form-render/src/components/renderer/lineBar/index.js +11 -0
  252. package/es/components/form-render/src/components/renderer/radio.d.ts +34 -0
  253. package/es/components/form-render/src/components/renderer/radio.js +67 -0
  254. package/es/components/form-render/src/components/renderer/search.d.ts +86 -0
  255. package/es/components/form-render/src/components/renderer/search.js +156 -0
  256. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +58 -0
  257. package/es/components/form-render/src/components/renderer/searchCascade.js +235 -0
  258. package/es/components/form-render/src/components/renderer/select.d.ts +56 -0
  259. package/es/components/form-render/src/components/renderer/select.js +175 -0
  260. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +18 -0
  261. package/es/components/form-render/src/components/renderer/simpleComponent.js +57 -0
  262. package/es/components/form-render/src/components/renderer/slider.d.ts +11 -0
  263. package/es/components/form-render/src/components/renderer/slider.js +38 -0
  264. package/es/components/form-render/src/components/renderer/switch.d.ts +23 -0
  265. package/es/components/form-render/src/components/renderer/switch.js +48 -0
  266. package/es/components/form-render/src/components/renderer/textarea.d.ts +11 -0
  267. package/es/components/form-render/src/components/renderer/textarea.js +36 -0
  268. package/es/components/form-render/src/constants/index.d.ts +41 -0
  269. package/es/components/form-render/src/constants/index.js +45 -0
  270. package/es/components/form-render/src/hooks/index.d.ts +13 -0
  271. package/es/components/form-render/src/hooks/index.js +13 -0
  272. package/es/components/form-render/src/hooks/useAnchor.d.ts +16 -0
  273. package/es/components/form-render/src/hooks/useAnchor.js +99 -0
  274. package/es/components/form-render/src/hooks/useAsyncQueue.d.ts +45 -0
  275. package/es/components/form-render/src/hooks/useAsyncQueue.js +151 -0
  276. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +26 -0
  277. package/es/components/form-render/src/hooks/useBusinessBinding.js +107 -0
  278. package/es/components/form-render/src/hooks/useChangeContext.d.ts +11 -0
  279. package/es/components/form-render/src/hooks/useChangeContext.js +20 -0
  280. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +7 -0
  281. package/es/components/form-render/src/hooks/useCommonInjection.js +36 -0
  282. package/es/components/form-render/src/hooks/useCommonLog.d.ts +3 -0
  283. package/es/components/form-render/src/hooks/useCommonLog.js +12 -0
  284. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +64 -0
  285. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +287 -0
  286. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +5 -0
  287. package/es/components/form-render/src/hooks/useFieldNormalize.js +67 -0
  288. package/es/components/form-render/src/hooks/useFieldVisitor.d.ts +4 -0
  289. package/es/components/form-render/src/hooks/useFieldVisitor.js +46 -0
  290. package/es/components/form-render/src/hooks/useFormContext.d.ts +11 -0
  291. package/es/components/form-render/src/hooks/useFormContext.js +68 -0
  292. package/es/components/form-render/src/hooks/useFormField.d.ts +5 -0
  293. package/es/components/form-render/src/hooks/useFormField.js +13 -0
  294. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +11 -0
  295. package/es/components/form-render/src/hooks/useFormItemDeps.js +31 -0
  296. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +13 -0
  297. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +10 -0
  298. package/es/components/form-render/src/hooks/useFormRequest.d.ts +19 -0
  299. package/es/components/form-render/src/hooks/useFormRequest.js +19 -0
  300. package/es/components/form-render/src/hooks/useFormValidator.d.ts +6 -0
  301. package/es/components/form-render/src/hooks/useFormValidator.js +84 -0
  302. package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +4 -0
  303. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +18 -0
  304. package/es/components/form-render/src/hooks/usePresetScope.d.ts +6 -0
  305. package/es/components/form-render/src/hooks/usePresetScope.js +22 -0
  306. package/es/components/form-render/src/types/fieldItem.d.ts +248 -0
  307. package/es/components/form-render/src/types/fieldItem.js +1 -0
  308. package/es/components/form-render/src/types/index.d.ts +80 -0
  309. package/es/components/form-render/src/types/index.js +1 -0
  310. package/es/components/form-render/src/utils/business.d.ts +13 -0
  311. package/es/components/form-render/src/utils/business.js +89 -0
  312. package/es/components/form-render/src/utils/dom.d.ts +6 -0
  313. package/es/components/form-render/src/utils/dom.js +14 -0
  314. package/es/components/form-render/src/utils/index.d.ts +19 -0
  315. package/es/components/form-render/src/utils/index.js +137 -0
  316. package/es/components/form-render/src/utils/schema.d.ts +83 -0
  317. package/es/components/form-render/src/utils/schema.js +105 -0
  318. package/es/components/form-render/style/index.css +1 -0
  319. package/es/components/grid/index.d.ts +3 -0
  320. package/es/components/grid/index.js +11 -0
  321. package/es/components/grid/src/Grid.d.ts +2 -0
  322. package/es/components/grid/src/Grid.js +28 -0
  323. package/es/components/grid/src/hooks.d.ts +1 -0
  324. package/es/components/grid/src/hooks.js +167 -0
  325. package/es/components/grid/style/index.css +1 -0
  326. package/es/components/iho-table/index.d.ts +4478 -0
  327. package/es/components/iho-table/index.js +34 -0
  328. package/es/components/iho-table/src/IhoTable.js +106 -0
  329. package/es/components/iho-table/src/IhoTable.vue.d.ts +4477 -0
  330. package/es/components/iho-table/src/components/IhoTableColumn.d.ts +14 -0
  331. package/es/components/iho-table/src/components/IhoTableColumn.js +37 -0
  332. package/es/components/iho-table/src/components/index.d.ts +1 -0
  333. package/es/components/iho-table/src/components/index.js +1 -0
  334. package/es/components/iho-table/src/constants/index.d.ts +52 -0
  335. package/es/components/iho-table/src/constants/index.js +123 -0
  336. package/es/components/iho-table/src/hooks/index.d.ts +2 -0
  337. package/es/components/iho-table/src/hooks/index.js +2 -0
  338. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +22 -0
  339. package/es/components/iho-table/src/hooks/tapHooks/index.js +140 -0
  340. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +27 -0
  341. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +67 -0
  342. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +16 -0
  343. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +26 -0
  344. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +185 -0
  345. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +252 -0
  346. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +13 -0
  347. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +33 -0
  348. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +10 -0
  349. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +27 -0
  350. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +8 -0
  351. package/es/components/iho-table/src/hooks/useTablePlugin.js +20 -0
  352. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -0
  353. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +33 -0
  354. package/es/components/iho-table/src/plugins/index.d.ts +3 -0
  355. package/es/components/iho-table/src/plugins/index.js +37 -0
  356. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -0
  357. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +37 -0
  358. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +31 -0
  359. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +205 -0
  360. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -0
  361. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +39 -0
  362. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.d.ts +4 -0
  363. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +17 -0
  364. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -0
  365. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +44 -0
  366. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +31 -0
  367. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +60 -0
  368. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -0
  369. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +40 -0
  370. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -0
  371. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +20 -0
  372. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.js +103 -0
  373. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +94 -0
  374. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -0
  375. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +162 -0
  376. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +14 -0
  377. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +57 -0
  378. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +31 -0
  379. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +60 -0
  380. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -0
  381. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +39 -0
  382. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -0
  383. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +30 -0
  384. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -0
  385. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +46 -0
  386. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -0
  387. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +62 -0
  388. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -0
  389. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +47 -0
  390. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
  391. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +92 -0
  392. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -0
  393. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +45 -0
  394. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -0
  395. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +30 -0
  396. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +11 -0
  397. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +50 -0
  398. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -0
  399. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +89 -0
  400. package/es/components/iho-table/src/types/index.d.ts +49 -0
  401. package/es/components/iho-table/src/types/index.js +1 -0
  402. package/es/components/iho-table/src/types/pluginType.d.ts +147 -0
  403. package/es/components/iho-table/src/types/pluginType.js +12 -0
  404. package/es/components/iho-table/src/utils/index.d.ts +5 -0
  405. package/es/components/iho-table/src/utils/index.js +23 -0
  406. package/es/components/iho-table/style/index.css +1 -0
  407. package/es/components/index.css +1 -0
  408. package/es/components/index.d.ts +35 -0
  409. package/es/components/index.js +99 -0
  410. package/es/components/info-header/index.d.ts +359 -0
  411. package/es/components/info-header/index.js +10 -0
  412. package/es/components/info-header/src/HiddenContent.js +70 -0
  413. package/es/components/info-header/src/HiddenContent.vue.d.ts +86 -0
  414. package/es/components/info-header/src/InfoEllipsis.js +43 -0
  415. package/es/components/info-header/src/InfoEllipsis.vue.d.ts +33 -0
  416. package/es/components/info-header/src/InfoHeader.js +236 -0
  417. package/es/components/info-header/src/InfoHeader.vue.d.ts +361 -0
  418. package/es/components/info-header/style/iconfont.ttf +0 -0
  419. package/es/components/info-header/style/index.css +1 -0
  420. package/es/components/map/index.d.ts +75 -0
  421. package/es/components/map/index.js +10 -0
  422. package/es/components/map/src/Map.js +336 -0
  423. package/es/components/map/src/Map.vue.d.ts +75 -0
  424. package/es/components/map/style/index.css +1 -0
  425. package/es/components/scale-view/index.d.ts +1400 -0
  426. package/es/components/scale-view/index.js +35 -0
  427. package/es/components/scale-view/src/ScaleView.js +428 -0
  428. package/es/components/scale-view/src/ScaleView.vue.d.ts +1225 -0
  429. package/es/components/scale-view/src/components/AnswerParse.js +80 -0
  430. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +70 -0
  431. package/es/components/scale-view/src/components/EvaluateCountdown.js +117 -0
  432. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +154 -0
  433. package/es/components/scale-view/src/components/EvaluatePage.js +141 -0
  434. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +110 -0
  435. package/es/components/scale-view/src/components/LoadingCom.js +19 -0
  436. package/es/components/scale-view/src/components/NoData.js +74 -0
  437. package/es/components/scale-view/src/components/NoData.vue.d.ts +49 -0
  438. package/es/components/scale-view/src/components/ScaleScore.d.ts +23 -0
  439. package/es/components/scale-view/src/components/ScaleScore.js +63 -0
  440. package/es/components/scale-view/src/components/composables/choose-common.d.ts +11 -0
  441. package/es/components/scale-view/src/components/composables/choose-common.js +83 -0
  442. package/es/components/scale-view/src/components/formitem/address.d.ts +3992 -0
  443. package/es/components/scale-view/src/components/formitem/address.js +3993 -0
  444. package/es/components/scale-view/src/components/formitem/r-address.d.ts +34 -0
  445. package/es/components/scale-view/src/components/formitem/r-address.js +226 -0
  446. package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +43 -0
  447. package/es/components/scale-view/src/components/formitem/r-cascader.js +133 -0
  448. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +43 -0
  449. package/es/components/scale-view/src/components/formitem/r-checkbox.js +281 -0
  450. package/es/components/scale-view/src/components/formitem/r-collection.d.ts +32 -0
  451. package/es/components/scale-view/src/components/formitem/r-collection.js +111 -0
  452. package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +34 -0
  453. package/es/components/scale-view/src/components/formitem/r-datetime.js +212 -0
  454. package/es/components/scale-view/src/components/formitem/r-input.d.ts +34 -0
  455. package/es/components/scale-view/src/components/formitem/r-input.js +86 -0
  456. package/es/components/scale-view/src/components/formitem/r-map.d.ts +52 -0
  457. package/es/components/scale-view/src/components/formitem/r-map.js +106 -0
  458. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +43 -0
  459. package/es/components/scale-view/src/components/formitem/r-radio.js +240 -0
  460. package/es/components/scale-view/src/components/formitem/r-select.d.ts +61 -0
  461. package/es/components/scale-view/src/components/formitem/r-select.js +202 -0
  462. package/es/components/scale-view/src/components/formitem/r-sign.d.ts +34 -0
  463. package/es/components/scale-view/src/components/formitem/r-sign.js +177 -0
  464. package/es/components/scale-view/src/components/formitem/r-upload.d.ts +52 -0
  465. package/es/components/scale-view/src/components/formitem/r-upload.js +215 -0
  466. package/es/components/scale-view/src/components/formitem/sign-com.d.ts +63 -0
  467. package/es/components/scale-view/src/components/formitem/sign-com.js +307 -0
  468. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +80 -0
  469. package/es/components/scale-view/src/components/formitem/standard-modal.js +129 -0
  470. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +87 -0
  471. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +43 -0
  472. package/es/components/scale-view/src/hooks/scaleview-computed.js +309 -0
  473. package/es/components/scale-view/src/hooks/scaleview-init.d.ts +3 -0
  474. package/es/components/scale-view/src/hooks/scaleview-init.js +437 -0
  475. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +115 -0
  476. package/es/components/scale-view/src/hooks/scaleview-props.js +81 -0
  477. package/es/components/scale-view/src/hooks/scaleview-state.d.ts +34 -0
  478. package/es/components/scale-view/src/hooks/scaleview-state.js +38 -0
  479. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +3 -0
  480. package/es/components/scale-view/src/hooks/scaleview-submit.js +154 -0
  481. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +3 -0
  482. package/es/components/scale-view/src/hooks/scaleview-validate.js +187 -0
  483. package/es/components/scale-view/src/hooks/use-component.d.ts +1887 -0
  484. package/es/components/scale-view/src/hooks/use-component.js +86 -0
  485. package/es/components/scale-view/src/hooks/use-evaluate.d.ts +21 -0
  486. package/es/components/scale-view/src/hooks/use-evaluate.js +150 -0
  487. package/es/components/scale-view/src/hooks/use-event.d.ts +4 -0
  488. package/es/components/scale-view/src/hooks/use-event.js +129 -0
  489. package/es/components/scale-view/src/hooks/use-noData.d.ts +9 -0
  490. package/es/components/scale-view/src/hooks/use-noData.js +41 -0
  491. package/es/components/scale-view/src/utils/judge-types.d.ts +5 -0
  492. package/es/components/scale-view/src/utils/judge-types.js +36 -0
  493. package/es/components/scale-view/style/index.css +1 -0
  494. package/es/components/search-cascader/index.d.ts +212 -0
  495. package/es/components/search-cascader/index.js +10 -0
  496. package/es/components/search-cascader/src/SearchCascader.js +188 -0
  497. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +214 -0
  498. package/es/components/search-cascader/src/components/SearchMenu.d.ts +45 -0
  499. package/es/components/search-cascader/src/components/SearchMenu.js +134 -0
  500. package/es/components/search-cascader/src/components/index.d.ts +1 -0
  501. package/es/components/search-cascader/src/components/index.js +1 -0
  502. package/es/components/search-cascader/src/constants/index.d.ts +3 -0
  503. package/es/components/search-cascader/src/constants/index.js +5 -0
  504. package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
  505. package/es/components/search-cascader/src/hooks/index.js +1 -0
  506. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
  507. package/es/components/search-cascader/src/hooks/useCssVariable.js +7 -0
  508. package/es/components/search-cascader/src/utils/index.d.ts +2 -0
  509. package/es/components/search-cascader/src/utils/index.js +11 -0
  510. package/es/components/search-cascader/style/index.css +1 -0
  511. package/es/components/select-label/index.d.ts +988 -0
  512. package/es/components/select-label/index.js +15 -0
  513. package/es/components/select-label/src/LabelFormContent.js +447 -0
  514. package/es/components/select-label/src/LabelFormContent.vue.d.ts +367 -0
  515. package/es/components/select-label/src/SelectLabel.js +6 -0
  516. package/es/components/select-label/src/SelectLabel.vue.d.ts +622 -0
  517. package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +451 -0
  518. package/es/components/select-label/src/components/label-classify.js +132 -0
  519. package/es/components/select-label/src/components/label-classify.vue.d.ts +122 -0
  520. package/es/components/select-label/style/index.css +1 -0
  521. package/es/components/select-person/index.d.ts +482 -0
  522. package/es/components/select-person/index.js +10 -0
  523. package/es/components/select-person/src/SearchTree.js +6 -0
  524. package/es/components/select-person/src/SearchTree.vue.d.ts +147 -0
  525. package/es/components/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.js +233 -0
  526. package/es/components/select-person/src/SelectPerson.js +6 -0
  527. package/es/components/select-person/src/SelectPerson.vue.d.ts +483 -0
  528. package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +970 -0
  529. package/es/components/select-person/src/utils/index.d.ts +12 -0
  530. package/es/components/select-person/src/utils/index.js +84 -0
  531. package/es/components/select-person/style/index.css +1 -0
  532. package/es/components/shortcut-provider/index.d.ts +21 -0
  533. package/es/components/shortcut-provider/index.js +12 -0
  534. package/es/components/shortcut-provider/src/ShortcutProvider.js +36 -0
  535. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +19 -0
  536. package/es/components/shortcut-provider/src/constants/index.d.ts +7 -0
  537. package/es/components/shortcut-provider/src/constants/index.js +8 -0
  538. package/es/components/shortcut-provider/src/hooks/index.d.ts +2 -0
  539. package/es/components/shortcut-provider/src/hooks/index.js +2 -0
  540. package/es/components/shortcut-provider/src/hooks/useShortcutSignature.d.ts +4 -0
  541. package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +12 -0
  542. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +33 -0
  543. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +185 -0
  544. package/es/components/shortcut-provider/src/types/index.d.ts +43 -0
  545. package/es/components/shortcut-provider/src/types/index.js +1 -0
  546. package/es/components/shortcut-provider/src/utils/index.d.ts +10 -0
  547. package/es/components/shortcut-provider/src/utils/index.js +59 -0
  548. package/es/components/shortcut-provider/style/index.css +1 -0
  549. package/es/components/shortcut-setter/index.d.ts +2337 -0
  550. package/es/components/shortcut-setter/index.js +10 -0
  551. package/es/components/shortcut-setter/src/ShortcutSetter.js +98 -0
  552. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2339 -0
  553. package/es/components/shortcut-setter/src/ShortcutSetterItem.js +73 -0
  554. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +99 -0
  555. package/es/components/shortcut-setter/src/types/index.d.ts +6 -0
  556. package/es/components/shortcut-setter/src/types/index.js +1 -0
  557. package/es/components/shortcut-setter/style/index.css +1 -0
  558. package/es/components/steps-wheel/index.d.ts +112 -0
  559. package/es/components/steps-wheel/index.js +10 -0
  560. package/es/components/steps-wheel/src/StepsWheel.js +318 -0
  561. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +111 -0
  562. package/es/components/steps-wheel/style/index.css +1 -0
  563. package/es/components/time-line/index.d.ts +81 -0
  564. package/es/components/time-line/index.js +10 -0
  565. package/es/components/time-line/src/TimeLine.js +70 -0
  566. package/es/components/time-line/src/TimeLine.vue.d.ts +84 -0
  567. package/es/components/time-line/style/index.css +1 -0
  568. package/es/env.d.ts +24 -0
  569. package/es/shared/assets/iconfont/iconfont.ttf +0 -0
  570. package/es/shared/assets/img/failure.d.ts +2 -0
  571. package/es/shared/assets/img/failure.js +3 -0
  572. package/es/shared/assets/img/icon-asc.d.ts +2 -0
  573. package/es/shared/assets/img/icon-asc.js +1 -0
  574. package/es/shared/assets/img/icon-desc.d.ts +2 -0
  575. package/es/shared/assets/img/icon-desc.js +1 -0
  576. package/es/shared/assets/img/no-permission.d.ts +2 -0
  577. package/es/shared/assets/img/no-permission.js +3 -0
  578. package/es/shared/assets/img/nodata.d.ts +2 -0
  579. package/es/shared/assets/img/nodata.js +3 -0
  580. package/es/shared/assets/img/notfound.d.ts +2 -0
  581. package/es/shared/assets/img/notfound.js +3 -0
  582. package/es/shared/assets/img/qr.d.ts +2 -0
  583. package/es/shared/assets/img/qr.js +3 -0
  584. package/es/shared/assets/img/success.d.ts +2 -0
  585. package/es/shared/assets/img/success.js +3 -0
  586. package/es/shared/assets/img/video.d.ts +2 -0
  587. package/es/shared/assets/img/video.js +3 -0
  588. package/es/shared/assets/img/video_default_cover.d.ts +2 -0
  589. package/es/shared/assets/img/video_default_cover.js +3 -0
  590. package/es/shared/assets/img/video_hover.d.ts +2 -0
  591. package/es/shared/assets/img/video_hover.js +1 -0
  592. package/es/shared/assets/img/video_play_hover.d.ts +2 -0
  593. package/es/shared/assets/img/video_play_hover.js +1 -0
  594. package/es/shared/assets/img/xb_big.d.ts +2 -0
  595. package/es/shared/assets/img/xb_big.js +3 -0
  596. package/es/shared/assets/img/xb_small.d.ts +2 -0
  597. package/es/shared/assets/img/xb_small.js +3 -0
  598. package/es/shared/components/SelectPage/SelectPage.js +61 -0
  599. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +51 -0
  600. package/es/shared/components/SelectPage/index.d.ts +2 -0
  601. package/es/shared/components/SelectPage/index.js +2 -0
  602. package/es/shared/components/SlotRender/SlotRender.d.ts +20 -0
  603. package/es/shared/components/SlotRender/SlotRender.js +35 -0
  604. package/es/shared/components/SlotRender/index.d.ts +2 -0
  605. package/es/shared/components/SlotRender/index.js +2 -0
  606. package/es/shared/components/SvgIcon/SvgIcon.js +36 -0
  607. package/es/shared/components/SvgIcon/SvgIcon.vue.d.ts +43 -0
  608. package/es/shared/components/SvgIcon/index.d.ts +2 -0
  609. package/es/shared/components/SvgIcon/index.js +2 -0
  610. package/es/shared/components/TextOverTooltip/TextOverTooltip.js +77 -0
  611. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +87 -0
  612. package/es/shared/components/TextOverTooltip/index.d.ts +2 -0
  613. package/es/shared/components/TextOverTooltip/index.js +2 -0
  614. package/es/shared/components/no-data/NoData.js +74 -0
  615. package/es/shared/components/no-data/NoData.vue.d.ts +49 -0
  616. package/es/shared/components/no-data/index.d.ts +2 -0
  617. package/es/shared/components/no-data/index.js +2 -0
  618. package/es/shared/components/player-vod/index.vue.d.ts +2 -0
  619. package/es/shared/components/player-vod/player.d.ts +17 -0
  620. package/es/shared/components/player-vod/player.js +121 -0
  621. package/es/shared/components/player-vod/video-list.d.ts +32 -0
  622. package/es/shared/components/player-vod/video-modal.d.ts +54 -0
  623. package/es/shared/components/player-vod/video-modal.js +91 -0
  624. package/es/shared/global/variable.d.ts +1 -0
  625. package/es/shared/global/variable.js +3 -0
  626. package/es/shared/index.d.ts +0 -0
  627. package/es/shared/index.js +1 -0
  628. package/es/shared/types/index.d.ts +11 -0
  629. package/es/shared/types/index.js +1 -0
  630. package/es/shared/utils/anime.d.ts +35 -0
  631. package/es/shared/utils/anime.js +129 -0
  632. package/es/shared/utils/clickoutside.d.ts +18 -0
  633. package/es/shared/utils/clickoutside.js +52 -0
  634. package/es/shared/utils/colorLog.d.ts +31 -0
  635. package/es/shared/utils/colorLog.js +53 -0
  636. package/es/shared/utils/crypto.d.ts +7 -0
  637. package/es/shared/utils/index.d.ts +11 -0
  638. package/es/shared/utils/index.js +120 -0
  639. package/es/shared/utils/loadViewer.d.ts +2 -0
  640. package/es/shared/utils/loadViewer.js +11 -0
  641. package/es/shared/utils/state.d.ts +29 -0
  642. package/es/shared/utils/state.js +44 -0
  643. package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +3 -0
  644. package/es/shared/utils/tapable/AsyncParallelBailHook.js +63 -0
  645. package/es/shared/utils/tapable/AsyncParallelHook.d.ts +3 -0
  646. package/es/shared/utils/tapable/AsyncParallelHook.js +27 -0
  647. package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +3 -0
  648. package/es/shared/utils/tapable/AsyncSeriesBailHook.js +18 -0
  649. package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +3 -0
  650. package/es/shared/utils/tapable/AsyncSeriesHook.js +27 -0
  651. package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +3 -0
  652. package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +12 -0
  653. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +3 -0
  654. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +23 -0
  655. package/es/shared/utils/tapable/Hook.d.ts +50 -0
  656. package/es/shared/utils/tapable/Hook.js +140 -0
  657. package/es/shared/utils/tapable/HookCodeFactory.d.ts +58 -0
  658. package/es/shared/utils/tapable/HookCodeFactory.js +459 -0
  659. package/es/shared/utils/tapable/HookMap.d.ts +11 -0
  660. package/es/shared/utils/tapable/MultiHook.d.ts +12 -0
  661. package/es/shared/utils/tapable/SyncBailHook.d.ts +3 -0
  662. package/es/shared/utils/tapable/SyncBailHook.js +19 -0
  663. package/es/shared/utils/tapable/SyncHook.d.ts +3 -0
  664. package/es/shared/utils/tapable/SyncHook.js +34 -0
  665. package/es/shared/utils/tapable/SyncLoopHook.d.ts +3 -0
  666. package/es/shared/utils/tapable/SyncLoopHook.js +13 -0
  667. package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +3 -0
  668. package/es/shared/utils/tapable/SyncWaterfallHook.js +48 -0
  669. package/es/shared/utils/utilExpand.d.ts +1 -0
  670. package/es/shared/utils/utilExpand.js +715 -0
  671. package/es/shared/utils/vexutils.d.ts +10 -0
  672. package/es/shared/utils/vexutils.js +59 -0
  673. package/package.json +2 -2
@@ -0,0 +1,970 @@
1
+ import { defineComponent, ref, reactive, computed, nextTick, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createCommentVNode, withKeys, createTextVNode, toDisplayString, createBlock, withDirectives, vShow, mergeProps, renderSlot, Fragment, renderList, normalizeClass } from 'vue';
2
+ import { useMessage, NSpin, NInputGroup, NInput, NButton, NCheckbox, NTree, NSpace, NIcon, NTooltip } from 'naive-ui';
3
+ import { CloseCircleSharp } from '@vicons/ionicons5';
4
+ import XEUtils from 'xe-utils';
5
+ import 'moment';
6
+ import SearchTree from './SearchTree.js';
7
+ import { filterTree } from './utils/index.js';
8
+
9
+ const _hoisted_1 = {
10
+ class: "personnel"
11
+ };
12
+ const _hoisted_2 = {
13
+ class: "people-tree"
14
+ };
15
+ const _hoisted_3 = {
16
+ class: "people-tree-item people-tree-left"
17
+ };
18
+ const _hoisted_4 = {
19
+ class: "people-tree-item"
20
+ };
21
+ const _hoisted_5 = {
22
+ key: 0
23
+ };
24
+ var _sfc_main = /* @__PURE__ */ defineComponent({
25
+ __name: "SelectPerson",
26
+ props: {
27
+ visible: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ isDetail: {
32
+ type: Boolean,
33
+ default: false
34
+ },
35
+ defaultList: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ data: {
40
+ type: Array,
41
+ default: () => []
42
+ },
43
+ searchPlaceholder: {
44
+ type: String,
45
+ default: "\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22"
46
+ },
47
+ searchButtonText: {
48
+ type: String,
49
+ default: "\u641C\u7D22"
50
+ },
51
+ wordbook: {
52
+ type: Object,
53
+ default: () => ({})
54
+ },
55
+ wordbookChild: {
56
+ type: Object,
57
+ default: () => ({})
58
+ },
59
+ SearchLoadMore: {
60
+ type: Boolean,
61
+ default: false
62
+ },
63
+ queryMainTreeData: {
64
+ type: Function
65
+ },
66
+ queryLoadChildData: {
67
+ type: Function
68
+ },
69
+ queryTreeSearch: {
70
+ type: Function
71
+ },
72
+ showCount: {
73
+ type: Boolean,
74
+ default: true
75
+ },
76
+ showClear: {
77
+ type: Boolean,
78
+ default: true
79
+ },
80
+ multiple: {
81
+ type: Boolean,
82
+ default: true
83
+ }
84
+ },
85
+ emits: ["check", "pubCheckedTreeItem", "handleOk", "change", "submitData", "update:visible"],
86
+ setup(__props, {
87
+ emit
88
+ }) {
89
+ const props = __props;
90
+ const $message = useMessage();
91
+ const FIXEDKEY = "8982eeb4-0439-4100-9805-8cdd12b2256c-front-end-fixed-key";
92
+ const searchTree = ref(null);
93
+ const state = reactive({
94
+ treeData: {
95
+ main: [],
96
+ search: []
97
+ },
98
+ expandedKeys: [],
99
+ autoExpandParent: true,
100
+ dataList: {
101
+ main: [],
102
+ other: []
103
+ },
104
+ checkedKeys: {
105
+ main: [],
106
+ other: []
107
+ },
108
+ search: {
109
+ defaultExpandedKeys: [],
110
+ status: 0,
111
+ dataListKeys: {
112
+ main: [],
113
+ other: []
114
+ },
115
+ records: 0
116
+ },
117
+ searchValue: "",
118
+ searchPage: 1,
119
+ searchNoMore: false,
120
+ title: "",
121
+ checkedLeafKeys: [],
122
+ spinning: false,
123
+ loadMorenLoadinng: false,
124
+ errorMsg: "",
125
+ defaultShowList: [],
126
+ checkedKeysMain: [],
127
+ cacheParentIdObj: {},
128
+ singleChecked: false,
129
+ indeterminate: false,
130
+ searchIndeterminate: false,
131
+ searchChecked: false
132
+ });
133
+ const searchTreeVisable = computed(() => state.search.status == 2);
134
+ const dataListMainKeys = computed(() => {
135
+ if (!state.dataList.main.length)
136
+ return [];
137
+ return state.dataList.main.map((i) => i.key);
138
+ });
139
+ const dataListOtherKeys = computed(() => {
140
+ if (!state.dataList.other.length)
141
+ return [];
142
+ return state.dataList.other.map((i) => i.key);
143
+ });
144
+ const checkedTreeItem = computed(() => {
145
+ let otherItems = state.dataList.other.filter((item) => {
146
+ return state.checkedKeys.other.includes(item.key);
147
+ });
148
+ let mainItems = state.dataList.main.filter((item) => {
149
+ let {
150
+ isLeaf,
151
+ key
152
+ } = item;
153
+ let parentId = getParentId(item);
154
+ let showKeys = [...state.checkedKeys.main, ...otherItems];
155
+ let checked = showKeys.includes(key);
156
+ if (isLeaf && parentId && state.checkedKeys.main.some((v) => v == parentId)) {
157
+ checked = false;
158
+ }
159
+ return checked;
160
+ });
161
+ let list = uniqArrObj([...mainItems, ...otherItems], "key");
162
+ return list;
163
+ });
164
+ const wordbookConfig = computed(() => {
165
+ const {
166
+ parent_id_obj,
167
+ parent_name_obj
168
+ } = props.wordbook || {};
169
+ const {
170
+ user_id_obj,
171
+ user_name_obj
172
+ } = props.wordbookChild || {};
173
+ return {
174
+ parent_id_obj,
175
+ parent_name_obj,
176
+ user_id_obj,
177
+ user_name_obj
178
+ };
179
+ });
180
+ const getLoadChildData = computed(() => {
181
+ if (typeof props.queryLoadChildData == "function") {
182
+ return onLoadData;
183
+ }
184
+ return null;
185
+ });
186
+ const renderLabel = ({
187
+ option
188
+ }) => {
189
+ if (option.isLeaf || !option.children) {
190
+ return createVNode(NTooltip, {
191
+ "trigger": "hover"
192
+ }, {
193
+ default: () => `${option.title} ${option.sub_title || ""}`,
194
+ trigger: () => createVNode("span", null, [createVNode("span", {
195
+ "class": "c-title"
196
+ }, [option.title || option.key, createTextVNode("\u2009 ")]), createVNode("span", {
197
+ "class": "c-sub-title"
198
+ }, [option.sub_title])])
199
+ });
200
+ } else {
201
+ return createVNode("span", {
202
+ "class": "p-title"
203
+ }, [createVNode("span", null, [option.title || option.key]), treeCount(option.count)]);
204
+ }
205
+ };
206
+ const initDefault = () => {
207
+ if (getLoadChildData.value) {
208
+ getDefaultList();
209
+ } else {
210
+ nextTick(() => {
211
+ state.checkedKeys.main = [...props.defaultList];
212
+ });
213
+ }
214
+ };
215
+ const getDefaultList = () => {
216
+ let copy = JSON.parse(JSON.stringify(props.defaultList));
217
+ if (Array.isArray(copy)) {
218
+ copy.forEach((v) => {
219
+ handleDefMapping(v);
220
+ getuniqKey(v);
221
+ let pId = getParentId(v);
222
+ state.cacheParentIdObj[pId] = pId;
223
+ });
224
+ state.defaultShowList = copy;
225
+ }
226
+ };
227
+ const handleDefMapping = (v) => {
228
+ const {
229
+ parent_id_obj,
230
+ parent_name_obj,
231
+ user_id_obj,
232
+ user_name_obj
233
+ } = wordbookConfig.value || {};
234
+ const {
235
+ parent_id_obj_key,
236
+ parent_name_obj_key
237
+ } = props.wordbook;
238
+ const {
239
+ user_id_obj_key,
240
+ user_name_obj_key
241
+ } = props.wordbookChild;
242
+ v[parent_id_obj] = v[parent_id_obj_key] || v.parent_id;
243
+ v[parent_name_obj] = v[parent_name_obj_key] || v.parent_name;
244
+ v[user_id_obj] = v[user_id_obj_key] || v.user_id;
245
+ v[user_name_obj] = v[user_name_obj_key] || v.user_name;
246
+ };
247
+ const staticDataInit = () => {
248
+ if (!Array.isArray(props.data) || props.data.length == 0)
249
+ return;
250
+ state.treeData.main = JSON.parse(JSON.stringify(props.data));
251
+ generateDataList(state.treeData.main, state.dataList.main);
252
+ generateDataList(state.treeData.main, state.dataList.other);
253
+ };
254
+ const getcheckedKeys = () => {
255
+ let checkedKeysMain = [], checkedKeysOther = [];
256
+ let copy = JSON.parse(JSON.stringify(props.defaultList));
257
+ if (Array.isArray(copy)) {
258
+ copy.forEach((v) => {
259
+ handleDefMapping(v);
260
+ let key = getuniqKey(v);
261
+ checkedKeysMain.push(key);
262
+ if (String(key).includes(FIXEDKEY)) {
263
+ checkedKeysOther.push(key);
264
+ }
265
+ });
266
+ }
267
+ return {
268
+ checkedKeysMain,
269
+ checkedKeysOther
270
+ };
271
+ };
272
+ const loadSelected = async () => {
273
+ try {
274
+ let list = await Promise.all(state.treeData.main.map(async (v) => {
275
+ const {
276
+ parent_id_obj
277
+ } = props.wordbook || {};
278
+ if ([v.key, v[parent_id_obj], String(v[parent_id_obj])].includes(state.cacheParentIdObj[v[parent_id_obj]])) {
279
+ await onLoadData(v);
280
+ return v;
281
+ }
282
+ }));
283
+ return list;
284
+ } catch (error) {
285
+ return Promise.resolve();
286
+ }
287
+ };
288
+ const onLoadData = (option) => {
289
+ return new Promise(async (resolve) => {
290
+ if (option.children) {
291
+ resolve();
292
+ return;
293
+ }
294
+ option.children = await handleLoadChildData(option.key, option);
295
+ hanldeFilterDefaultShowList(option.children);
296
+ nextTick(() => {
297
+ state.treeData.main = [...state.treeData.main];
298
+ });
299
+ addCheckedKeysChildrenMain(option);
300
+ generateDataList(option.children || [], state.dataList.main);
301
+ resolve();
302
+ });
303
+ };
304
+ const getUsers = async () => {
305
+ try {
306
+ if (typeof props.queryMainTreeData !== "function") {
307
+ return;
308
+ }
309
+ state.spinning = true;
310
+ const {
311
+ parent_id_obj
312
+ } = wordbookConfig.value || {};
313
+ let rows = await props.queryMainTreeData();
314
+ let list = uniqArrObj(rows || [], parent_id_obj);
315
+ state.treeData.main = list;
316
+ generateDataList(state.treeData.main, state.dataList.main);
317
+ await loadSelected();
318
+ let {
319
+ checkedKeysMain,
320
+ checkedKeysOther
321
+ } = getcheckedKeys();
322
+ state.checkedKeys.main.push(...checkedKeysMain);
323
+ state.checkedKeys.other = [...checkedKeysOther];
324
+ state.treeData.main.forEach((f) => {
325
+ if (f && f.children && f.children.length) {
326
+ let flag = f.children.every((c) => checkedKeysMain.includes(c.key));
327
+ if (flag && f.key) {
328
+ state.checkedKeys.main.push(f.key);
329
+ }
330
+ }
331
+ });
332
+ state.spinning = false;
333
+ } catch (error) {
334
+ state.spinning = false;
335
+ $message.error("\u67E5\u8BE2\u5F02\u5E38");
336
+ }
337
+ };
338
+ const loadMainChildData = (searchResultTreeData) => {
339
+ return new Promise(async (resolve) => {
340
+ let promises = searchResultTreeData.map(async (item) => {
341
+ if (item.users) {
342
+ let mainTreeItem = state.treeData.main.find((mainItem) => mainItem.key == item.key);
343
+ if (!mainTreeItem || mainTreeItem && !mainTreeItem.children) {
344
+ if (!mainTreeItem) {
345
+ mainTreeItem = {
346
+ ...item
347
+ };
348
+ }
349
+ mainTreeItem.children = await handleLoadChildData(item.key, mainTreeItem);
350
+ generateDataList(mainTreeItem.children, state.dataList.main);
351
+ addCheckedKeysChildrenMain(mainTreeItem);
352
+ }
353
+ }
354
+ });
355
+ await Promise.all(promises);
356
+ resolve();
357
+ });
358
+ };
359
+ const handleLoadChildData = async (key, option) => {
360
+ let rows = props.queryLoadChildData && await props.queryLoadChildData(key, option);
361
+ let list = rows;
362
+ return list;
363
+ };
364
+ const generateDataList = (data, dataList) => {
365
+ for (let i = 0; i < data.length; i++) {
366
+ const node = data[i];
367
+ if (node.children) {
368
+ generateDataList(node.children, dataList);
369
+ } else {
370
+ !node.disabled && dataList.push({
371
+ parentId: getParentId(node),
372
+ ...node
373
+ });
374
+ }
375
+ }
376
+ };
377
+ const addCheckedKeysChildrenMain = (item) => {
378
+ if (!item.key)
379
+ return;
380
+ if (!state.checkedKeys.main.includes(String(item.key)))
381
+ return false;
382
+ if (!Array.isArray(item.children))
383
+ return false;
384
+ item.children.forEach(({
385
+ key
386
+ }) => {
387
+ if (state.checkedKeys.main.includes(key) || !key)
388
+ return false;
389
+ state.checkedKeys.main.push(key);
390
+ });
391
+ };
392
+ const hanldeFilterDefaultShowList = (list) => {
393
+ state.defaultShowList = state.defaultShowList.filter((d) => list.findIndex((l) => getuniqKey(d) == getuniqKey(l)) == -1);
394
+ };
395
+ const searchFetch = async (data = {}, config = {}) => {
396
+ if (typeof props.queryTreeSearch !== "function") {
397
+ staticDataSearch();
398
+ state.spinning = false;
399
+ isSearchAllCheck();
400
+ return;
401
+ }
402
+ if (!state.searchValue) {
403
+ state.search.status = 0;
404
+ state.search.defaultExpandedKeys = [];
405
+ state.expandedKeys = [];
406
+ state.spinning = false;
407
+ state.searchNoMore = false;
408
+ return false;
409
+ }
410
+ if (!config.loadMoren) {
411
+ state.search.status = 1;
412
+ } else {
413
+ state.loadMorenLoadinng = true;
414
+ }
415
+ let rows = await props.queryTreeSearch(state.searchValue, data);
416
+ let searchResultTreeData = rows;
417
+ state.loadMorenLoadinng = false;
418
+ if (!searchResultTreeData || !searchResultTreeData.length) {
419
+ if (state.searchPage == 1) {
420
+ state.search.defaultExpandedKeys = [];
421
+ state.search.status = 3;
422
+ } else {
423
+ state.search.status = 2;
424
+ state.searchNoMore = true;
425
+ }
426
+ state.spinning = false;
427
+ isSearchAllCheck();
428
+ return false;
429
+ }
430
+ const {
431
+ parent_id_obj,
432
+ parent_name_obj,
433
+ user_count_obj
434
+ } = props.wordbook || {};
435
+ props.wordbookChild || {};
436
+ let pObj = {};
437
+ searchResultTreeData.forEach((item) => {
438
+ item[parent_id_obj] && (pObj[item[parent_id_obj]] = {
439
+ key: item[parent_id_obj],
440
+ users: []
441
+ });
442
+ if (item.users) {
443
+ insertSearchTreeData(item);
444
+ } else {
445
+ insertSearchTreeDataOther(item);
446
+ }
447
+ });
448
+ let pList = [];
449
+ Object.keys(pObj || {}).forEach((v) => {
450
+ if (v) {
451
+ pList.push({
452
+ ...pObj[v]
453
+ });
454
+ }
455
+ });
456
+ state.treeData.search.length || 0;
457
+ if (props.SearchLoadMore) {
458
+ state.searchNoMore = false;
459
+ } else {
460
+ state.searchNoMore = true;
461
+ }
462
+ await loadMainChildData(pList);
463
+ generateSearchDataListKeys(searchResultTreeData);
464
+ hanldeFilterDefaultShowList(searchResultTreeData);
465
+ refreshSearchTree();
466
+ state.search.status = 2;
467
+ state.spinning = false;
468
+ isSearchAllCheck();
469
+ };
470
+ const refreshSearchTree = () => {
471
+ if (!searchTreeVisable.value)
472
+ return false;
473
+ searchTree.value.setDefaultCheckedKeys();
474
+ nextTick(() => {
475
+ isSearchAllCheck();
476
+ });
477
+ };
478
+ const generateSearchDataListKeys = (searchResultTreeData) => {
479
+ searchResultTreeData.forEach((item) => {
480
+ if (!dataListMainKeys.value.includes(item.key)) {
481
+ state.search.dataListKeys.other.push(item.key);
482
+ item.children && item.children.forEach((childItem) => {
483
+ state.search.dataListKeys.other.push(childItem.key);
484
+ });
485
+ return;
486
+ }
487
+ state.search.dataListKeys.main.push(item.key);
488
+ item.children && item.children.forEach((childItem) => {
489
+ state.search.dataListKeys.main.push(childItem.key);
490
+ });
491
+ });
492
+ };
493
+ const insertSearchTreeData = (item) => {
494
+ const {
495
+ user_count_obj
496
+ } = props.wordbook || {};
497
+ state.search.defaultExpandedKeys.push(item.key);
498
+ hanldeFilterDefaultShowList(item.children || []);
499
+ if (item[user_count_obj] == item.children.length) {
500
+ item.disableCheckbox = false;
501
+ }
502
+ state.treeData.search.push(item);
503
+ };
504
+ const insertSearchTreeDataOther = (item) => {
505
+ let formatItem = Object.assign({}, item, {
506
+ isLeaf: true
507
+ });
508
+ state.treeData.search.push(formatItem);
509
+ if (dataListOtherKeys.value.includes(formatItem.key))
510
+ return false;
511
+ generateDataList([formatItem], state.dataList.other);
512
+ };
513
+ const isSearchAllCheck = () => {
514
+ nextTick(() => {
515
+ let skeyArr = state.treeData.search.map((item) => item.key);
516
+ let serchCheckedKeys = searchTree.value.checkedKeys;
517
+ state.searchIndeterminate = !!serchCheckedKeys.length && serchCheckedKeys.length < skeyArr.length;
518
+ state.searchChecked = serchCheckedKeys.length === skeyArr.length;
519
+ });
520
+ };
521
+ const staticDataSearch = () => {
522
+ state.expandedKeys = [];
523
+ if (!state.title) {
524
+ state.treeData.main = JSON.parse(JSON.stringify(props.data));
525
+ state.dataList.main = [];
526
+ generateDataList(state.treeData.main, state.dataList.main);
527
+ state.checkedKeys.main = state.checkedKeys.other.slice();
528
+ isAllCheck();
529
+ return;
530
+ }
531
+ let copyData = JSON.parse(JSON.stringify(props.data));
532
+ state.treeData.main = filterTree({
533
+ value: state.title,
534
+ data: copyData,
535
+ prop: "title",
536
+ filter: true,
537
+ callback: (child) => {
538
+ var _a;
539
+ child.visible && ((_a = child.children) == null ? void 0 : _a.length) && state.expandedKeys.push(child.key);
540
+ }
541
+ }) || [];
542
+ state.dataList.main = [];
543
+ generateDataList(state.treeData.main, state.dataList.main);
544
+ const currentKeys = state.checkedKeys.other.slice();
545
+ state.checkedKeys.main = [];
546
+ const setCheckedKeys = (data) => {
547
+ if (!(data == null ? void 0 : data.length))
548
+ return;
549
+ data.forEach((item) => {
550
+ var _a;
551
+ currentKeys.includes(item.key) && !item.disabled && state.checkedKeys.main.push(item.key);
552
+ ((_a = item.children) == null ? void 0 : _a.length) && setCheckedKeys(item.children);
553
+ });
554
+ };
555
+ setCheckedKeys(state.treeData.main);
556
+ state.checkedKeys.other = currentKeys;
557
+ };
558
+ const onExpand = (expandedKeys) => {
559
+ state.expandedKeys = expandedKeys;
560
+ state.autoExpandParent = false;
561
+ };
562
+ const searchClick = () => {
563
+ state.searchValue = state.title;
564
+ state.treeData.search = [];
565
+ state.search.dataListKeys.other = [];
566
+ state.search.dataListKeys.main = [];
567
+ state.search.defaultExpandedKeys = [];
568
+ state.spinning = true;
569
+ state.searchPage = 1;
570
+ searchFetch();
571
+ };
572
+ const isAllCheck = (checkedKeys = [], isTo = false) => {
573
+ if (!checkedKeys || checkedKeys.length == 0 && !isTo) {
574
+ state.indeterminate = false;
575
+ state.singleChecked = false;
576
+ } else {
577
+ const getAllKeys = (tree) => {
578
+ if (!(tree == null ? void 0 : tree.length))
579
+ return 0;
580
+ let n = 0;
581
+ tree.forEach((item) => {
582
+ var _a;
583
+ if (!((_a = item == null ? void 0 : item.children) == null ? void 0 : _a.length) && !item.disabled) {
584
+ n++;
585
+ } else {
586
+ n += getAllKeys(item.children);
587
+ }
588
+ });
589
+ return n;
590
+ };
591
+ let keys = getAllKeys(state.treeData.main);
592
+ state.indeterminate = !(keys == state.checkedKeys.main.length);
593
+ state.singleChecked = keys == state.checkedKeys.main.length;
594
+ if (typeof props.queryTreeSearch !== "function") {
595
+ state.checkedKeys.other = [...new Set(state.checkedKeys.other.concat(state.checkedKeys.main))];
596
+ state.checkedKeys.other = state.checkedKeys.other.filter((v) => {
597
+ return state.checkedKeys.main.includes(v) || !state.checkedKeys.main.includes(v) && state.dataList.main.findIndex((item) => item.key == v) == -1;
598
+ });
599
+ }
600
+ }
601
+ };
602
+ const addCheckedkeysMain = (keys) => {
603
+ let checkedKeys = state.checkedKeys.main;
604
+ let filterKey = (keys || {}).filter(Boolean);
605
+ filterKey.forEach((key) => {
606
+ var _a;
607
+ checkedKeys.push(key);
608
+ let _getParentKey = getParentKey(key, state.treeData.main);
609
+ if (!_getParentKey)
610
+ return;
611
+ let parent = state.treeData.main.filter((item) => {
612
+ return item.key == _getParentKey;
613
+ });
614
+ let allCheck = (((_a = parent[0]) == null ? void 0 : _a.children) || []).every((item) => {
615
+ return checkedKeys.includes(item.key);
616
+ });
617
+ allCheck && checkedKeys.push(_getParentKey);
618
+ });
619
+ };
620
+ const getParentKey = (key, tree) => {
621
+ let parentKey;
622
+ for (let i = 0; i < tree.length; i++) {
623
+ const node = tree[i];
624
+ if (node.key == key) {
625
+ parentKey = node.key;
626
+ return parentKey;
627
+ }
628
+ if (node.children) {
629
+ if (node.children.some((item) => item.key == key)) {
630
+ parentKey = node.key;
631
+ } else if (getParentKey(key, node.children)) {
632
+ parentKey = getParentKey(key, node.children);
633
+ }
634
+ }
635
+ }
636
+ return parentKey;
637
+ };
638
+ const radioChange = (checked) => {
639
+ if (searchTreeVisable.value) {
640
+ state.searchChecked = checked;
641
+ } else {
642
+ state.singleChecked = checked;
643
+ }
644
+ checkAll(checked ? 1 : 2);
645
+ };
646
+ const checkAll = (type) => {
647
+ if (checkAllSearchTree(type))
648
+ return false;
649
+ if (type == 1) {
650
+ state.expandedKeys = [];
651
+ state.dataList.main = [];
652
+ generateDataList(state.treeData.main, state.dataList.main);
653
+ state.checkedKeys.main = dataListMainKeys.value;
654
+ } else if (type == 2) {
655
+ state.checkedKeys.main = [];
656
+ state.autoExpandParent = true;
657
+ isAllCheck([], true);
658
+ }
659
+ };
660
+ const checkAllSearchTree = (type) => {
661
+ if (!searchTreeVisable.value)
662
+ return false;
663
+ if (type == 1) {
664
+ let allSearchkeysMain = state.search.dataListKeys.main.filter((key) => {
665
+ return !state.search.defaultExpandedKeys.includes(key);
666
+ });
667
+ let allSearchkeysOther = state.search.dataListKeys.other;
668
+ state.checkedKeys.main = XEUtils.uniq([...state.checkedKeys.main, ...allSearchkeysMain]);
669
+ state.checkedKeys.other = XEUtils.uniq([...state.checkedKeys.other, ...allSearchkeysOther]);
670
+ state.search.dataListKeys.main.forEach((key) => {
671
+ let parentKey = getParentKey(key, state.treeData.main);
672
+ let parent = state.treeData.main.filter((item) => {
673
+ return item.key == parentKey;
674
+ });
675
+ let allCheck = parent[0].children.every((item) => {
676
+ return state.checkedKeys.main.includes(item.key);
677
+ });
678
+ allCheck && state.checkedKeys.main.push(parentKey);
679
+ });
680
+ refreshSearchTree();
681
+ } else if (type == 2) {
682
+ searchTree.value.emptyCheckedKeys();
683
+ state.autoExpandParent = true;
684
+ }
685
+ isSearchAllCheck();
686
+ return true;
687
+ };
688
+ const removeCheckedkeysMain = (keys) => {
689
+ let checkedKeysMain = XEUtils.clone(state.checkedKeys.main, true);
690
+ keys.forEach((key) => {
691
+ let index = checkedKeysMain.findIndex((mainKey) => mainKey == key);
692
+ if (index !== -1) {
693
+ checkedKeysMain.splice(index, 1);
694
+ state.checkedKeys.main = [...checkedKeysMain];
695
+ }
696
+ let parentKey = getParentKey(key, state.treeData.main);
697
+ let parentIndex = checkedKeysMain.findIndex((mainKey) => mainKey == parentKey);
698
+ if (parentIndex !== -1) {
699
+ checkedKeysMain.splice(parentIndex, 1);
700
+ }
701
+ });
702
+ state.checkedKeys.main = [...checkedKeysMain];
703
+ };
704
+ const addCheckedkeysOther = (keys) => {
705
+ state.checkedKeys.other.push(...keys);
706
+ };
707
+ const removeCheckedkeysOther = (keys) => {
708
+ let checkedKeys = state.checkedKeys.other;
709
+ keys.forEach((key) => {
710
+ let index = checkedKeys.findIndex((otherKey) => otherKey == key);
711
+ checkedKeys.splice(index, 1);
712
+ handleDeldefaultShowList(key);
713
+ });
714
+ removeCheckedkeysMain(keys);
715
+ };
716
+ const handleDeldefaultShowList = (key) => {
717
+ var _a;
718
+ let len = ((_a = state == null ? void 0 : state.defaultShowList) == null ? void 0 : _a.length) || 0;
719
+ if (len > 0) {
720
+ for (let i = len - 1; i >= 0; i--) {
721
+ let d = state.defaultShowList[i];
722
+ if (`${d.parent_id}_${d.user_id}` == key) {
723
+ closeDefaultTag(d, i);
724
+ }
725
+ }
726
+ }
727
+ };
728
+ const closeDefaultTag = (tag, i) => {
729
+ state.defaultShowList.splice(i, 1);
730
+ closeTag({
731
+ parentId: getParentId(tag),
732
+ ...tag
733
+ });
734
+ };
735
+ const closeTag = (removedTag) => {
736
+ removedCheckedkeysMain(removedTag);
737
+ removedCheckedkeysOther(removedTag);
738
+ refreshSearchTree();
739
+ };
740
+ function clearAll() {
741
+ state.defaultShowList = [];
742
+ state.indeterminate = state.singleChecked = false;
743
+ checkedTreeItem.value.forEach((tag) => closeTag(tag));
744
+ }
745
+ const removeCheckedkeysIncludeChildren = (parentKey) => {
746
+ let needRemoveChildKeys = state.dataList.main.filter((i) => {
747
+ let parentId = getParentId(i);
748
+ return parentId == parentKey || i.key == parentKey;
749
+ }).map((i) => {
750
+ return i.key;
751
+ });
752
+ state.checkedKeys.main = state.checkedKeys.main.filter((i) => {
753
+ return !needRemoveChildKeys.includes(i);
754
+ });
755
+ };
756
+ const removedCheckedkeysMain = (tag) => {
757
+ let checkedKeys = state.checkedKeys.main;
758
+ let parentId = getParentId(tag);
759
+ for (let i = 0; i < checkedKeys.length; i++) {
760
+ if (tag.key == checkedKeys[i] && tag.key == parentId) {
761
+ removeCheckedkeysIncludeChildren(tag.key);
762
+ return false;
763
+ } else if (tag.key == checkedKeys[i]) {
764
+ checkedKeys.splice(i, 1);
765
+ return false;
766
+ }
767
+ }
768
+ };
769
+ const removedCheckedkeysOther = (tag) => {
770
+ let checkedKeys = state.checkedKeys.other;
771
+ if (checkedKeys.includes(tag.key)) {
772
+ for (let i = 0; i < checkedKeys.length; i++) {
773
+ if (tag.key == checkedKeys[i]) {
774
+ checkedKeys.splice(i, 1);
775
+ return false;
776
+ }
777
+ }
778
+ } else {
779
+ OtherRemoveCheckedkeysIncludeChildren(tag.key);
780
+ }
781
+ };
782
+ const OtherRemoveCheckedkeysIncludeChildren = (parentKey) => {
783
+ let needRemoveChildKeys = state.dataList.main.filter((i) => {
784
+ let parentId = getParentId(i);
785
+ return parentId == parentKey || i.key == parentKey;
786
+ }).map((i) => {
787
+ return i.key;
788
+ });
789
+ state.checkedKeys.other = state.checkedKeys.other.filter((i) => {
790
+ return !needRemoveChildKeys.includes(i);
791
+ });
792
+ };
793
+ const searchOnloadMore = () => {
794
+ state.searchPage = state.searchPage + 1;
795
+ searchFetch({
796
+ page: state.searchPage
797
+ }, {
798
+ loadMoren: true
799
+ });
800
+ };
801
+ const treeCount = (count) => {
802
+ if (!count)
803
+ return "";
804
+ return `(${count})`;
805
+ };
806
+ const getParentId = (v) => {
807
+ const {
808
+ parent_id_obj
809
+ } = wordbookConfig.value || {};
810
+ return `${v[parent_id_obj]}`;
811
+ };
812
+ const uniqArrObj = (arr, name) => {
813
+ let obj = {};
814
+ return arr.reduce((cur, next) => {
815
+ obj[next[name]] ? "" : obj[next[name]] = cur.push(next);
816
+ return cur;
817
+ }, []);
818
+ };
819
+ const getuniqKey = (v) => {
820
+ const {
821
+ user_id_obj
822
+ } = wordbookConfig.value || {};
823
+ return `${getParentId(v)}_${v[user_id_obj]}`;
824
+ };
825
+ watch(() => props.defaultList, (val) => {
826
+ if (!val)
827
+ return;
828
+ initDefault();
829
+ }, {
830
+ immediate: true
831
+ });
832
+ watch(() => state.checkedKeys.main, (val) => {
833
+ if (!searchTreeVisable.value) {
834
+ isAllCheck(val);
835
+ } else {
836
+ isSearchAllCheck();
837
+ }
838
+ const checkedKeys = [.../* @__PURE__ */ new Set([...state.checkedKeys.other, ...val])];
839
+ emit("check", checkedKeys);
840
+ }, {
841
+ immediate: true,
842
+ deep: true
843
+ });
844
+ watch(() => props.data, (val) => {
845
+ staticDataInit();
846
+ }, {
847
+ immediate: true
848
+ });
849
+ onMounted(() => {
850
+ getUsers();
851
+ });
852
+ return (_ctx, _cache) => {
853
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(NSpin), {
854
+ show: state.spinning
855
+ }, {
856
+ default: withCtx(() => [createElementVNode("div", _hoisted_2, [createCommentVNode(" \u6811\u4E3B\u4F53\u4E0E\u68C0\u7D22 "), createElementVNode("div", _hoisted_3, [createVNode(unref(NInputGroup), {
857
+ style: {
858
+ "margin-bottom": "12px"
859
+ }
860
+ }, {
861
+ default: withCtx(() => [createVNode(unref(NInput), {
862
+ style: {
863
+ "text-align": "left"
864
+ },
865
+ clearable: "",
866
+ value: state.title,
867
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => state.title = $event),
868
+ placeholder: __props.searchPlaceholder,
869
+ onKeyup: withKeys(searchClick, ["enter"])
870
+ }, null, 8, ["value", "placeholder", "onKeyup"]), createVNode(unref(NButton), {
871
+ type: "primary",
872
+ onClick: searchClick
873
+ }, {
874
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.searchButtonText), 1)]),
875
+ _: 1
876
+ })]),
877
+ _: 1
878
+ }), unref(searchTreeVisable) ? (openBlock(), createBlock(unref(NCheckbox), {
879
+ key: 0,
880
+ checked: state.searchChecked,
881
+ "onUpdate:checked": [_cache[1] || (_cache[1] = ($event) => state.searchChecked = $event), radioChange],
882
+ indeterminate: state.searchIndeterminate
883
+ }, {
884
+ default: withCtx(() => [createTextVNode(" \u5168\u9009 ")]),
885
+ _: 1
886
+ }, 8, ["checked", "indeterminate"])) : createCommentVNode("v-if", true), !unref(searchTreeVisable) && __props.multiple ? (openBlock(), createBlock(unref(NCheckbox), {
887
+ key: 1,
888
+ checked: state.singleChecked,
889
+ indeterminate: state.searchIndeterminate,
890
+ "onUpdate:checked": radioChange
891
+ }, {
892
+ default: withCtx(() => [createTextVNode(" \u5168\u9009 ")]),
893
+ _: 1
894
+ }, 8, ["checked", "indeterminate"])) : createCommentVNode("v-if", true), createCommentVNode(' <div v-show="state.search.status == 3 || (state.search.status == 0 && state.treeData.main && state.treeData.main.length == 0)" class="no-data-tips">\r\n \u67E5\u65E0\u7ED3\u679C\r\n </div> '), createCommentVNode(" main tree "), withDirectives(createVNode(unref(NTree), {
895
+ class: "main-tree-container",
896
+ "checked-keys": state.checkedKeys.main,
897
+ "onUpdate:checked-keys": _cache[2] || (_cache[2] = ($event) => state.checkedKeys.main = $event),
898
+ "expanded-keys": state.expandedKeys,
899
+ checkable: __props.multiple,
900
+ cascade: "",
901
+ "allow-checking-not-loaded": "",
902
+ selectable: !__props.multiple,
903
+ "selected-keys": state.checkedKeys.main,
904
+ "onUpdate:selected-keys": _cache[3] || (_cache[3] = ($event) => state.checkedKeys.main = $event),
905
+ data: state.treeData.main,
906
+ "check-strategy": __props.queryMainTreeData ? "all" : "child",
907
+ "onUpdate:expandedKeys": onExpand,
908
+ "on-load": onLoadData,
909
+ "render-label": renderLabel
910
+ }, null, 8, ["checked-keys", "expanded-keys", "checkable", "selectable", "selected-keys", "data", "check-strategy"]), [[vShow, state.search.status == 0]]), createCommentVNode(" search tree "), createVNode(SearchTree, mergeProps(_ctx.$attrs, {
911
+ ref_key: "searchTree",
912
+ ref: searchTree,
913
+ visible: unref(searchTreeVisable),
914
+ formatTreeData: state.treeData.search,
915
+ searchValue: state.searchValue,
916
+ allCheckedKeys: state.checkedKeys,
917
+ defaultExpandedKeys: state.search.defaultExpandedKeys,
918
+ dataListKeys: state.search.dataListKeys,
919
+ searchNoMore: state.searchNoMore,
920
+ loadMorenLoadinng: state.loadMorenLoadinng,
921
+ onAddCheckedkeysMain: addCheckedkeysMain,
922
+ onRemoveCheckedkeysMain: removeCheckedkeysMain,
923
+ onAddCheckedkeysOther: addCheckedkeysOther,
924
+ onRemoveCheckedkeysOther: removeCheckedkeysOther,
925
+ onSearchOnloadMore: searchOnloadMore
926
+ }), null, 16, ["visible", "formatTreeData", "searchValue", "allCheckedKeys", "defaultExpandedKeys", "dataListKeys", "searchNoMore", "loadMorenLoadinng"])]), createCommentVNode(" \u6811\u5DF2\u9009\u7684\u6570\u636E "), createElementVNode("div", _hoisted_4, [state.defaultShowList.length || unref(checkedTreeItem).length ? (openBlock(), createBlock(unref(NSpace), {
927
+ key: 0,
928
+ justify: "space-between",
929
+ style: {
930
+ "margin-bottom": "20px"
931
+ }
932
+ }, {
933
+ default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("div", _hoisted_5, "\u5DF2\u9009\u62E9\uFF1A" + toDisplayString(state.defaultShowList.length + unref(checkedTreeItem).length), 1)) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("div", {
934
+ key: 1,
935
+ class: "clear-btn",
936
+ onClick: clearAll
937
+ }, "\u6E05\u7A7A")) : createCommentVNode("v-if", true)]),
938
+ _: 1
939
+ })) : createCommentVNode("v-if", true), state.defaultShowList && state.defaultShowList.length ? renderSlot(_ctx.$slots, "default", {
940
+ key: 1
941
+ }, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(state.defaultShowList, (tag, i) => {
942
+ return openBlock(), createElementBlock("div", {
943
+ class: "tag-item def-item",
944
+ key: i
945
+ }, [createTextVNode(toDisplayString(tag.title || tag[__props.wordbookChild.user_name_obj]) + " ", 1), !__props.isDetail ? (openBlock(), createBlock(unref(NIcon), {
946
+ key: 0,
947
+ class: "tag-close",
948
+ component: unref(CloseCircleSharp),
949
+ onClick: ($event) => closeDefaultTag(tag, i)
950
+ }, null, 8, ["component", "onClick"])) : createCommentVNode("v-if", true)]);
951
+ }), 128))]) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(unref(checkedTreeItem), (tag) => {
952
+ return openBlock(), createElementBlock("div", {
953
+ class: normalizeClass(["tag-item", {
954
+ isRoot: !tag.isLeaf
955
+ }]),
956
+ key: tag.key
957
+ }, [createTextVNode(toDisplayString(tag.title || tag.key) + " " + toDisplayString(treeCount(tag.count)) + " ", 1), !__props.isDetail ? (openBlock(), createBlock(unref(NIcon), {
958
+ key: 0,
959
+ class: "tag-close",
960
+ component: unref(CloseCircleSharp),
961
+ onClick: ($event) => closeTag(tag)
962
+ }, null, 8, ["component", "onClick"])) : createCommentVNode("v-if", true)], 2);
963
+ }), 128))])])]),
964
+ _: 3
965
+ }, 8, ["show"])]);
966
+ };
967
+ }
968
+ });
969
+
970
+ export { _sfc_main as default };