cnhis-design-vue 3.1.55-release.0 → 3.1.55-release.2

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 (436) hide show
  1. package/es/components/annotation-edit/index.d.ts +1 -1
  2. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +1 -1
  3. package/es/components/audio-sdk/index.d.ts +2 -0
  4. package/es/components/audio-sdk/index.js +1 -0
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +28 -0
  6. package/es/components/audio-sdk/src/audioSDK.js +1 -0
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +27 -0
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue.js +1 -0
  9. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -0
  10. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +8 -0
  11. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -0
  12. package/es/components/audio-sdk/style/index.css +1 -0
  13. package/es/components/base-search/index.d.ts +1 -1
  14. package/es/components/base-search/src/index.vue.d.ts +4 -4
  15. package/es/components/base-search/src/index.vue2.js +1 -1
  16. package/es/components/big-table/index.d.ts +22 -22
  17. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  18. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  19. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +5 -5
  20. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +1 -1
  21. package/es/components/big-table/src/components/separate.vue.d.ts +1 -1
  22. package/es/components/big-table/src/constants/index.d.ts +1 -1
  23. package/es/components/big-table/src/hooks/useAnnotation.d.ts +1 -1
  24. package/es/components/big-table/src/hooks/useFormat.d.ts +1 -1
  25. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +1 -1
  26. package/es/components/big-table/src/utils.d.ts +1 -1
  27. package/es/components/{multi-chat → biunique-chat}/index.d.ts +16 -16
  28. package/es/components/biunique-chat/index.js +1 -0
  29. package/es/components/{multi-chat/src/MultiChat.vue.d.ts → biunique-chat/src/BiuniqueChat.vue.d.ts} +1 -1
  30. package/es/components/biunique-chat/src/BiuniqueChat.vue.js +1 -0
  31. package/es/components/biunique-chat/src/BiuniqueChat.vue2.js +1 -0
  32. package/es/components/{multi-chat → biunique-chat}/src/api/index.d.ts +1 -1
  33. package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.d.ts +1 -1
  34. package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.d.ts +1 -1
  35. package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.d.ts +1 -1
  36. package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.d.ts +1 -1
  37. package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.d.ts +1 -1
  38. package/es/components/body-select/index.d.ts +5 -5
  39. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  40. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  41. package/es/components/body-select/src/index.vue.d.ts +1 -1
  42. package/es/components/body-select/src/index.vue2.js +1 -1
  43. package/es/components/bpmn-workflow/index.d.ts +1 -1
  44. package/es/components/button-print/index.d.ts +34 -21
  45. package/es/components/button-print/src/ButtonPrint.vue.d.ts +14 -1
  46. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  47. package/es/components/button-print/src/api.d.ts +1 -1
  48. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  49. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  50. package/es/components/button-print/src/utils/print.d.ts +2 -2
  51. package/es/components/callback/index.d.ts +1 -1
  52. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  53. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  54. package/es/components/callback/src/components/render/popupMaps.d.ts +65 -159
  55. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  56. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  57. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  58. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  59. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  60. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  61. package/es/components/classification/index.d.ts +505 -20
  62. package/es/components/classification/src/components/search-filter/index.vue.d.ts +473 -1
  63. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  64. package/es/components/classification/src/components/set-classification/index.vue.d.ts +480 -8
  65. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  66. package/es/components/classification/src/index.vue.d.ts +493 -8
  67. package/es/components/classification/src/index.vue2.js +1 -1
  68. package/es/components/classification/style/index.css +1 -1
  69. package/es/components/config-provider/index.d.ts +1 -1
  70. package/es/components/date-picker/index.d.ts +2 -2
  71. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  72. package/es/components/editor/index.d.ts +1 -1
  73. package/es/components/expand-field/index.d.ts +29 -29
  74. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  75. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  76. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  77. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  78. package/es/components/fabric-chart/index.d.ts +7 -6
  79. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -1
  80. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  81. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  82. package/es/components/fabric-chart/src/constants/index.d.ts +4 -0
  83. package/es/components/fabric-chart/src/constants/index.js +1 -1
  84. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  85. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  86. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  90. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -3
  92. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  93. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  97. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  98. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  99. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  100. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  101. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -4
  102. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +3 -3
  103. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  104. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  105. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  107. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  109. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  110. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +4 -4
  111. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  112. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  113. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  114. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  115. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  116. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  117. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  118. package/es/components/field-set/index.d.ts +15 -15
  119. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  120. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  121. package/es/components/field-set/src/types/index.d.ts +1 -1
  122. package/es/components/field-set/src/utils/index.d.ts +3 -3
  123. package/es/components/form-config/index.d.ts +342 -516
  124. package/es/components/form-config/src/FormConfig.vue.d.ts +466 -640
  125. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +31 -125
  126. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  127. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +215 -303
  128. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -7
  129. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  130. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  131. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  132. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  133. package/es/components/form-config/src/constants/index.d.ts +2 -2
  134. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  135. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  136. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  137. package/es/components/form-config/src/types/index.d.ts +2 -2
  138. package/es/components/form-config/src/utils/index.d.ts +3 -3
  139. package/es/components/form-render/index.d.ts +65 -159
  140. package/es/components/form-render/index.js +1 -1
  141. package/es/components/form-render/src/FormRender.vue.d.ts +30 -125
  142. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  143. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +88 -182
  144. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  145. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  146. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  147. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  148. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  149. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  150. package/es/components/form-render/src/components/renderer/date.js +1 -1
  151. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  152. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  153. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  154. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  155. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -2
  156. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  157. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  158. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  159. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  160. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  161. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  162. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  163. package/es/components/form-render/src/components/renderer/select.js +1 -1
  164. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  165. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  166. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  167. package/es/components/form-render/src/constants/index.d.ts +5 -6
  168. package/es/components/form-render/src/constants/index.js +1 -1
  169. package/es/components/form-render/src/hooks/index.d.ts +20 -9
  170. package/es/components/form-render/src/hooks/index.js +1 -1
  171. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  172. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  173. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +2 -2
  174. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  175. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  176. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -2
  177. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  178. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +19 -19
  179. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
  180. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  181. package/es/components/form-render/src/hooks/useFormEvent.d.ts +8 -18
  182. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  183. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +6 -6
  184. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  185. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  186. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +15 -14
  187. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  188. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  189. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  190. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  191. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +4 -3
  192. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  193. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  194. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +14 -5
  195. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
  196. package/es/components/form-render/src/types/fieldItem.d.ts +4 -3
  197. package/es/components/form-render/src/types/index.d.ts +25 -20
  198. package/es/components/form-render/src/utils/business.d.ts +2 -2
  199. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  200. package/es/components/form-render/src/utils/index.d.ts +4 -17
  201. package/es/components/form-render/src/utils/index.js +1 -1
  202. package/es/components/form-render/src/utils/schema.d.ts +3 -3
  203. package/es/components/form-render/src/utils/schema.js +1 -1
  204. package/es/components/grid/index.d.ts +1 -1
  205. package/es/components/guide/src/renderer.d.ts +1 -1
  206. package/es/components/guide/src/types/index.d.ts +1 -1
  207. package/es/components/guide/src/useGuide.d.ts +1 -1
  208. package/es/components/guide/src/utils/index.d.ts +1 -1
  209. package/es/components/iho-table/index.d.ts +39 -39
  210. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  211. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  212. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  213. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  214. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  215. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  216. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  217. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  218. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  219. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  220. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  221. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  222. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
  226. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -0
  227. package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +1 -0
  228. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  232. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  234. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  235. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  236. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  237. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  239. package/es/components/iho-table/src/plugins/index.js +1 -1
  240. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  241. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  243. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  244. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
  245. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  246. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  252. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  253. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  255. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  256. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  257. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  258. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  259. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  260. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  261. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  262. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  263. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  264. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  265. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +9 -5
  266. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  267. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  268. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  269. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  270. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  271. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  272. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  273. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -1
  274. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  275. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
  276. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  277. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  278. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  279. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  280. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  281. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  282. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  283. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  284. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  285. package/es/components/iho-table/src/types/index.d.ts +5 -3
  286. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  287. package/es/components/iho-table/src/utils/index.d.ts +4 -4
  288. package/es/components/iho-table/src/utils/index.js +1 -1
  289. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  290. package/es/components/iho-table/style/index.css +1 -1
  291. package/es/components/index.css +1 -1
  292. package/es/components/index.d.ts +6 -5
  293. package/es/components/index.js +1 -1
  294. package/es/components/info-header/index.d.ts +185 -373
  295. package/es/components/info-header/src/InfoHeader.vue.d.ts +199 -387
  296. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +6 -6
  297. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +9 -9
  298. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +111 -205
  299. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +32 -126
  300. package/es/components/info-header/src/constants/index.d.ts +1 -1
  301. package/es/components/info-header/src/types/index.d.ts +1 -1
  302. package/es/components/keyboard/index.d.ts +1 -1
  303. package/es/components/map/index.d.ts +1 -1
  304. package/es/components/map/src/Map.vue.d.ts +1 -1
  305. package/es/components/picture-clipper/index.d.ts +1 -1
  306. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  307. package/es/components/quick-search/index.d.ts +1 -1
  308. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  309. package/es/components/quick-search/style/index.css +1 -1
  310. package/es/components/recommend-search/index.d.ts +25 -25
  311. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -7
  312. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
  313. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -2
  314. package/es/components/scale-view/index.d.ts +1 -1
  315. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  316. package/es/components/scale-view/src/types/index.d.ts +1 -1
  317. package/es/components/search-cascader/index.d.ts +34 -34
  318. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  319. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  320. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  321. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  322. package/es/components/select-label/index.d.ts +1 -1
  323. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  324. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  325. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  326. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  327. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  328. package/es/components/select-label/src/index.vue.d.ts +19 -19
  329. package/es/components/select-person/index.d.ts +22 -22
  330. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  331. package/es/components/shortcut-provider/index.d.ts +1 -1
  332. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  333. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  334. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  335. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  336. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  337. package/es/components/shortcut-setter/index.d.ts +87 -179
  338. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +119 -211
  339. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  340. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  341. package/es/components/slider-tree/index.d.ts +1 -1
  342. package/es/components/steps-wheel/index.d.ts +1 -1
  343. package/es/components/table-export-field/index.d.ts +3 -3
  344. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
  345. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  346. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  347. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  348. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +320 -0
  349. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +1 -0
  350. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -0
  351. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +127 -0
  352. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +1 -0
  353. package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +1 -0
  354. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +41 -0
  355. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +1 -0
  356. package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +1 -0
  357. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +28 -0
  358. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +1 -0
  359. package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +1 -0
  360. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +51 -0
  361. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +1 -0
  362. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +1 -0
  363. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +244 -0
  364. package/es/components/table-filter/src/components/bi-filter/components/index.js +1 -0
  365. package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +14 -0
  366. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -0
  367. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +13 -0
  368. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -0
  369. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +474 -0
  370. package/es/components/table-filter/src/components/bi-filter/index.vue.js +1 -0
  371. package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -0
  372. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  373. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  374. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  375. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  376. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  377. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  378. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  379. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  380. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  381. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  382. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  383. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  384. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -0
  385. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  386. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
  387. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -0
  388. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  389. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +13 -9
  390. package/es/components/table-filter/src/constants/index.d.ts +2 -1
  391. package/es/components/table-filter/src/constants/index.js +1 -1
  392. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  393. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  394. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  395. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  396. package/es/components/table-filter/src/types/index.d.ts +1 -0
  397. package/es/components/time-line/index.d.ts +1 -1
  398. package/es/components/time-picker/index.d.ts +2 -2
  399. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  400. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  401. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  402. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  403. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  404. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  405. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  406. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  407. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  408. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  409. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  410. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  411. package/es/shared/hooks/useDateTime.d.ts +1 -1
  412. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  413. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  414. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  415. package/es/shared/hooks/useTheme.d.ts +1 -1
  416. package/es/shared/package.json.js +1 -1
  417. package/es/shared/types/business.d.ts +1 -1
  418. package/es/shared/utils/business.d.ts +2 -1
  419. package/es/shared/utils/business.js +1 -1
  420. package/es/shared/utils/index.d.ts +1 -1
  421. package/es/shared/utils/index.js +1 -1
  422. package/package.json +3 -2
  423. package/es/components/multi-chat/index.js +0 -1
  424. package/es/components/multi-chat/src/MultiChat.vue.js +0 -1
  425. package/es/components/multi-chat/src/MultiChat.vue2.js +0 -1
  426. /package/es/components/{multi-chat → biunique-chat}/src/api/index.js +0 -0
  427. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue.js +0 -0
  428. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatFooter.vue2.js +0 -0
  429. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue.js +0 -0
  430. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatHeader.vue2.js +0 -0
  431. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue.js +0 -0
  432. /package/es/components/{multi-chat → biunique-chat}/src/components/ChatMain.vue2.js +0 -0
  433. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue.js +0 -0
  434. /package/es/components/{multi-chat → biunique-chat}/src/components/SiderList.vue2.js +0 -0
  435. /package/es/components/{multi-chat → biunique-chat}/src/utils/chatSock.js +0 -0
  436. /package/es/components/{multi-chat → biunique-chat}/style/index.css +0 -0
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as n,nextTick as u,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as c,withCtx as v,createVNode as p,h as f}from"vue";import{useMessage as m,NSelect as d,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as O}from"../helpers/selectExtraMap.js";import{WidgetValEnums as S}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import C from"./SelectDynamicOption/index.vue.js";import{isEqual as N,cloneDeep as A}from"lodash-es";var L=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:L}){const P=e,k=m(),{getDynamicSelectData:x}=h(),D=a(),J=l(!1),E=t(b),I=t(j),K=l(1),$=l(),T=l([JSON.parse(JSON.stringify(O))]),U=l([]),W=l(),M=l(0),_={class:"select-dynamic-popover"},F=n((()=>D.multiple)),H=n((()=>{const{widgetCfg:e}=P.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),V=n((()=>{const{widgetCfg:e}=P.componentCfg,{showWholeOption:a=!1}=e;return a&&1===K.value})),q=n((()=>M.value>0&&K.value>=M.value)),z=n((()=>{var e;if(Array.isArray(P.value)&&P.value.length>0){const e=P.value;if(G(e),!F.value&&1==e.length){const a=T.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=T.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return G([]),null!=(e=P.value)?e:null})),B=n((()=>{if(Object.keys(H.value).length>0){const{defaultParams:e=[]}=H.value;return w(e)&&!P.value}return!1}));function G(e){T.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Q(e){const{widgetCfg:a}=P.componentCfg,{linkageFieldKeys:l=[]}=a;N(P.value,e)||(l.forEach((e=>{const a=I.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),L("update:value",e))}async function R(e){K.value=e,await X(W.value,K.value)}async function X(e,a){try{if(Object.keys(H.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:n,filterKeys:u,defaultParams:o=[],showKeys:i,valueKey:s}=H.value;let r={wordbookId:t,autograph:l,wordbookType:n,fieldKeys:u,page:a};u.length>0&&(r[u[0]]=e),J.value=!0;if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=I.value.find((a=>a.columnName===e));a&&a.value&&a.value!==S.WHOLE&&(r[e]=a.value)}))}let c=await x(r,E);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),n=A(t);V.value&&t.unshift(JSON.parse(JSON.stringify(O))),$.value=null!=e?e:[],T.value=null!=t?t:[],U.value=n,M.value=l}}}catch(e){k.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{J.value=!1}}const Y=g((async e=>{await async function(e){W.value=e.trim(),K.value=1,await X(W.value,K.value)}(e)}),300);async function Z(){Object.keys(H.value).length>0&&E&&await X("",K.value)}async function ee(){L("update:value",null),await Z()}function ae(e){e&&Z()}function le({option:e,handleClose:a}){if(F.value){const l=e.value;return f(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(P.value)&&P.value.length>0){const e=P.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);L("update:value",l.length>0?l:null)}}}},{default:()=>f("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return f("div",l.label)}return u((()=>{B.value||Z()})),(e,a)=>(o(),i(s(d),r(s(D),{value:s(z),"onUpdate:value":a[0]||(a[0]=e=>c(z)?z.value=e:null),remote:"",loading:J.value,"render-tag":le,"menu-props":_,onSearch:s(Y),onClear:ee,"onUpdate:show":ae}),{empty:v((()=>[p(C,r(s(D),{dynamicOptionInfo:s(H),fieldTitleList:$.value,optionList:T.value,isMultiple:s(F),curPage:K.value,isLastPage:s(q),isShowWhole:s(V),onUpdateSelect:Q,onUpdatePage:R}),null,16,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{L as default};
1
+ import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as n,nextTick as u,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as c,withCtx as v,createVNode as p,h as f}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as S}from"../helpers/selectExtraMap.js";import{WidgetValEnums as O}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import C from"./SelectDynamicOption/index.vue.js";import{isEqual as k,cloneDeep as A}from"lodash-es";var L=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:L}){const N=e,P=d(),D="SQL",x="API",{getDynamicSelectData:I}=h(),J=a(),E=l(!1),K=t(b),T=t(j),$=l(1),U=l(),W=l([JSON.parse(JSON.stringify(S))]),M=l([]),_=l(),F=l(0),H={class:"select-dynamic-popover"},Q=n((()=>J.multiple)),V=n((()=>{const{widgetCfg:e}=N.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=n((()=>{const{widgetCfg:e}=N.componentCfg,{showWholeOption:a=!1}=e;return a&&1===$.value})),z=n((()=>F.value>0&&$.value>=F.value)),B=n((()=>{var e;if(Array.isArray(N.value)&&N.value.length>0){const e=N.value;if(R(e),!Q.value&&1==e.length){const a=W.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=W.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return R([]),null!=(e=N.value)?e:null})),G=n((()=>{if(Object.keys(V.value).length>0){const{defaultParams:e=[]}=V.value;return w(e)&&!N.value}return!1}));function R(e){W.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function X(e){const{widgetCfg:a}=N.componentCfg,{linkageFieldKeys:l=[]}=a;k(N.value,e)||(l.forEach((e=>{const a=T.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),L("update:value",e))}async function Y(e){$.value=e,await Z(_.value,$.value)}async function Z(e,a){try{if(Object.keys(V.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:n,filterKeys:u,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=V.value;let c={wordbookId:t,autograph:l,wordbookType:n,fieldKeys:u,page:a};switch(r){case D:c.keyword=e;break;case x:u.length>0&&(c[u[0]]=e)}E.value=!0;if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=T.value.find((a=>a.columnName===e));a&&a.value&&a.value!==O.WHOLE&&(c[e]=a.value)}))}let v=await I(c,K);if(v){const{fieldList:e=[],rows:a=[],total:l=0}=v.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),n=A(t);q.value&&t.unshift(JSON.parse(JSON.stringify(S))),U.value=null!=e?e:[],W.value=null!=t?t:[],M.value=n,F.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{E.value=!1}}const ee=g((async e=>{await async function(e){_.value=e.trim(),$.value=1,await Z(_.value,$.value)}(e)}),300);async function ae(){Object.keys(V.value).length>0&&K&&await Z("",$.value)}async function le(){L("update:value",null),await ae()}function te(e){e&&ae()}function ne({option:e,handleClose:a}){if(Q.value){const l=e.value;return f(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(N.value)&&N.value.length>0){const e=N.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);L("update:value",l.length>0?l:null)}}}},{default:()=>f("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return f("div",l.label)}return u((()=>{G.value||ae()})),(e,a)=>(o(),i(s(m),r(s(J),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>c(B)?B.value=e:null),remote:"",loading:E.value,"render-tag":ne,"menu-props":H,onSearch:s(ee),onClear:le,"onUpdate:show":te}),{empty:v((()=>[p(C,r(s(J),{dynamicOptionInfo:s(V),fieldTitleList:U.value,optionList:W.value,isMultiple:s(Q),curPage:$.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:X,onUpdatePage:Y}),null,16,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{L as default};
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { AnyObject } from '../../../../../../../../es/shared/types';
2
+ import { AnyObject } from '../../../../../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  dynamicOptionInfo: {
5
5
  type: PropType<AnyObject>;
@@ -1216,6 +1216,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1216
1216
  };
1217
1217
  }, {
1218
1218
  message: import("naive-ui").MessageApi;
1219
+ tableType: {
1220
+ SQL: string;
1221
+ API: string;
1222
+ };
1219
1223
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1220
1224
  value: {
1221
1225
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
@@ -1,4 +1,4 @@
1
- import { ISearchType } from '../../../../../../../es/components/table-filter/src/types';
1
+ import { ISearchType } from '../../../../../../components/table-filter/src/types';
2
2
  export declare const judgmentVariable: (defaultParams: any[]) => boolean;
3
3
  export declare const setSelectDynamicValue: (cfg: ISearchType) => Promise<any[] | null>;
4
4
  export declare const selectDynamicDefaultValue: (defValueUnit: string, options: any[]) => any[];
@@ -1,4 +1,4 @@
1
- import { funcVoid } from '../../../../../../es/components/table-filter/src/types';
1
+ import { funcVoid } from '../../../../../components/table-filter/src/types';
2
2
  export declare const WidgetCfgMaps: Map<string, {
3
3
  component: any;
4
4
  props: {
@@ -154,6 +154,10 @@ export declare const WidgetCfgMaps: Map<string, {
154
154
  };
155
155
  }, {
156
156
  message: import("naive-ui").MessageApi;
157
+ tableType: {
158
+ SQL: string;
159
+ API: string;
160
+ };
157
161
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
158
162
  value: {
159
163
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
@@ -1344,7 +1348,7 @@ export declare const WidgetCfgMaps: Map<string, {
1344
1348
  } | {
1345
1349
  component: import("vue").DefineComponent<{
1346
1350
  options: {
1347
- type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ICheckboxType[]>;
1351
+ type: import("vue").PropType<import("../../../../../components/table-filter/src/types").ICheckboxType[]>;
1348
1352
  };
1349
1353
  value: {
1350
1354
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
@@ -1357,7 +1361,7 @@ export declare const WidgetCfgMaps: Map<string, {
1357
1361
  }, {
1358
1362
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1359
1363
  options: {
1360
- type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ICheckboxType[]>;
1364
+ type: import("vue").PropType<import("../../../../../components/table-filter/src/types").ICheckboxType[]>;
1361
1365
  };
1362
1366
  value: {
1363
1367
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
@@ -1427,7 +1431,7 @@ export declare const WidgetCfgMaps: Map<string, {
1427
1431
  NCheckbox: any;
1428
1432
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1429
1433
  options: {
1430
- type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ICheckboxType[]>;
1434
+ type: import("vue").PropType<import("../../../../../components/table-filter/src/types").ICheckboxType[]>;
1431
1435
  };
1432
1436
  value: {
1433
1437
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
@@ -1486,17 +1490,17 @@ export declare const WidgetCfgMaps: Map<string, {
1486
1490
  selectedList: import("vue").Ref<string[]>;
1487
1491
  tagList: import("vue").Ref<never[]>;
1488
1492
  filterApiConfig: import("../../../..").AnyObject;
1489
- categoryList: import("vue").ComputedRef<import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType[]>;
1490
- onResize: (el: HTMLElement, categoryItem: import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
1491
- handleLabelUpfold: (categoryItem: import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
1492
- formatStyle: (item: import("../../../../../../es/components/table-filter/src/types").IhoFilterTabLabelItemType) => {
1493
+ categoryList: import("vue").ComputedRef<import("../../../../../components/table-filter/src/types").IFilterCategoryLabelItemType[]>;
1494
+ onResize: (el: HTMLElement, categoryItem: import("../../../../../components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
1495
+ handleLabelUpfold: (categoryItem: import("../../../../../components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
1496
+ formatStyle: (item: import("../../../../../components/table-filter/src/types").IhoFilterTabLabelItemType) => {
1493
1497
  background: string;
1494
1498
  borderColor: string;
1495
1499
  } | {
1496
1500
  background?: undefined;
1497
1501
  borderColor?: undefined;
1498
1502
  };
1499
- handleLabelChange: (isSelect: boolean, item: import("../../../../../../es/components/table-filter/src/types").IhoFilterTabLabelItemType) => void;
1503
+ handleLabelChange: (isSelect: boolean, item: import("../../../../../components/table-filter/src/types").IhoFilterTabLabelItemType) => void;
1500
1504
  initTagList: () => Promise<void>;
1501
1505
  NTag: any;
1502
1506
  NTooltip: any;
@@ -1,5 +1,6 @@
1
- import { AnyObject } from '../../../../../es/shared/types';
1
+ import { AnyObject } from '../../../../shared/types';
2
2
  import { InjectionKey, Ref } from 'vue';
3
3
  export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
4
4
  export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
5
5
  export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
6
+ export declare const InjectionClassifyfilterType: InjectionKey<String>;
@@ -1 +1 @@
1
- const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),n=Symbol("InjectionClassifyFilterList");export{n as InjectionClassifyFilterList,i as InjectionFilterApiConfig,o as InjectionFilterSearchConfig};
1
+ const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),e=Symbol("InjectionClassifyFilterList"),n=Symbol("InjectionClassifyfilterType");export{e as InjectionClassifyFilterList,n as InjectionClassifyfilterType,i as InjectionFilterApiConfig,o as InjectionFilterSearchConfig};
@@ -1,4 +1,4 @@
1
- import { IApiServerType, ISearchType, IExtendConfigurationType } from '../../../../../es/components/table-filter/src/types';
1
+ import { IApiServerType, ISearchType, IExtendConfigurationType } from '../../../../components/table-filter/src/types';
2
2
  export default function useAdvanced(): {
3
3
  transformData: (advancedFilterData: IApiServerType[], extendData: IExtendConfigurationType) => {
4
4
  fieldType: string;
@@ -19,7 +19,7 @@ export default function useAdvanced(): {
19
19
  multiple: boolean;
20
20
  manualMapping: boolean | null | undefined;
21
21
  showWholeOption: boolean | undefined;
22
- dynamicOptionInfo: import("../../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
22
+ dynamicOptionInfo: import("../../../../components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
23
23
  classifyStr: string | undefined;
24
24
  linkageFieldKeys: string[];
25
25
  };
@@ -1,4 +1,4 @@
1
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
1
+ import { ISearchType } from '../../../../components/table-filter/src/types';
2
2
  export default function (): {
3
3
  filterApiConfig: import("vue").Ref<{}>;
4
4
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
@@ -1,4 +1,4 @@
1
- import { ISearchType, ISearchConfigType } from '../../../../../es/components/table-filter/src/types';
1
+ import { ISearchType, ISearchConfigType } from '../../../../components/table-filter/src/types';
2
2
  export default function (): {
3
3
  isRender: (cfg: ISearchType) => any;
4
4
  getDefValByRenderWidget: (cfg: ISearchType) => Promise<any>;
@@ -1,4 +1,4 @@
1
- import { IFilterConditionType } from '../../../../../es/components/table-filter/src/types';
1
+ import { IFilterConditionType } from '../../../../components/table-filter/src/types';
2
2
  /**
3
3
  * 高级筛选数据转换
4
4
  */
@@ -148,6 +148,7 @@ export declare type dynamicOptionInfoType = {
148
148
  dataSourceId: string;
149
149
  dataSourceType: string;
150
150
  autograph: string;
151
+ tableDataType: string;
151
152
  };
152
153
  export declare type ICategoryItemType = {
153
154
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const TimeLine: SFCWithInstall<import("vue").DefineComponent<{
3
3
  items: {
4
4
  type: import("vue").PropType<{
@@ -1,9 +1,9 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
3
3
  attrs: {
4
4
  [x: string]: unknown;
5
5
  };
6
- timePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
6
+ timePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
7
7
  formatRef: import("vue").ComputedRef<string>;
8
8
  focus: () => any;
9
9
  blur: () => any;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  declare const _default: import("vue").DefineComponent<{}, {
3
3
  attrs: {
4
4
  [x: string]: unknown;
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  import 'vue-simple-uploader/dist/style.css';
3
3
  declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
4
4
  formData: {
@@ -1,4 +1,4 @@
1
- import { AnyObject, AnyFn } from '../../../../es/shared/types';
1
+ import { AnyObject, AnyFn } from '../../../shared/types';
2
2
  import { PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  value: {
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  type: StringConstructor;
31
31
  default: string;
32
32
  };
33
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
34
  value: {
35
35
  type: (NumberConstructor | StringConstructor)[];
36
36
  };
@@ -60,7 +60,9 @@ declare const _default: import("vue").DefineComponent<{
60
60
  type: StringConstructor;
61
61
  default: string;
62
62
  };
63
- }>>, {
63
+ }>> & {
64
+ onSelect?: ((...args: any[]) => any) | undefined;
65
+ }, {
64
66
  onChange: AnyFn<any[], any>;
65
67
  slashSymbol: string;
66
68
  }>;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as l,ref as t,watch as u,createVNode as n,mergeProps as o}from"vue";import{findAncestor as a}from"../../utils/index.js";import{isArray as s,isString as i,isNumber as r,isObject as v}from"lodash-es";import{NInput as p,NDropdown as c}from"naive-ui";import"../../../components/form-render/index.js";import{createInputSlot as m}from"../../../components/form-render/src/utils/index.js";var f=e({props:{value:{type:[Number,String]},onChange:{type:Function,default:()=>({})},prefix:{type:[String,Function,Object]},suffix:{type:[String,Function,Object]},precision:{type:Number},whiteList:{type:Array},inputProps:{type:Object},popperProps:{type:Object},slashSymbol:{type:String,default:"/"}},setup(e){const f=m(e),d=l((()=>s(e.whiteList)?e.whiteList.reduce(((e,l)=>(i(l)&&e.push({label:l,value:l}),e)),[]):[]));const h=t(),b=l({get:()=>h.value,set:l=>r(l)?h.value=l+"":i(l)?l.endsWith(e.slashSymbol)?h.value=e.slashSymbol:void(h.value=d.value.some((e=>e.label!==l&&e.label.includes(l)))?"":l):void 0});function g(e=-1){const l=r(+e)&&e>=0?+e:null;return new RegExp(`^-?(0|[1-9][0-9]*)?${0===l?"":`(\\.[0-9]${r(l)?`{0,${l}}`:"*"})?`}$`)}u((()=>e.value),(e=>b.value=e),{immediate:!0});const y=g();function S(){if(b.value===e.slashSymbol||function(e,l=!1){return d.value.length&&d.value.some((({value:t})=>l?t.includes(e):t===e))}(b.value))e.onChange(b.value);else if(i(b.value)&&"-"!==b.value)if(y.test(b.value)){const l=b.value.endsWith(".")?b.value.slice(0,-1):b.value;e.onChange(b.value=l)}else b.value=e.value;else b.value=e.value}const j=t(!1),w=t();function x(){j.value=!0}function $(e){var l;if(!e.target)return;const t=e.target;(null==(l=w.value)?void 0:l.$el)&&a(t,(e=>e===w.value.$el))||(j.value=!1)}function C(e,l){var t,u;v(l)&&(b.value=l.value,null==(u=null==(t=w.value)?void 0:t.focus)||u.call(t))}const F=l((()=>g(e.precision)));function O(l){return!(null!=l&&""!==l&&l!==e.slashSymbol&&i(l)&&!l.endsWith(e.slashSymbol))||(!(!d.value.length||!d.value.some((e=>e.label.includes(l))))||F.value.test(l)&&"-."!==l&&!l.startsWith("."))}return()=>{const l=n(p,o({ref:w,value:b.value,"onUpdate:value":e=>b.value=e,"allow-input":O,onBlur:S,onClick:x,onFocus:x},e.inputProps),f.value);return d.value.length?n(c,o({onSelect:C,options:d.value,show:j.value,width:"trigger",onClickoutside:$},e.popperProps),{default:()=>l}):l}}});export{f as default};
1
+ import{defineComponent as e,computed as l,ref as t,watch as u,createVNode as n,mergeProps as o}from"vue";import{findAncestor as a}from"../../utils/index.js";import{isArray as s,isString as i,isNumber as r,isObject as v}from"lodash-es";import{NInput as c,NDropdown as p}from"naive-ui";import"../../../components/form-render/index.js";import{createInputSlot as m}from"../../../components/form-render/src/utils/index.js";var f=e({props:{value:{type:[Number,String]},onChange:{type:Function,default:()=>({})},prefix:{type:[String,Function,Object]},suffix:{type:[String,Function,Object]},precision:{type:Number},whiteList:{type:Array},inputProps:{type:Object},popperProps:{type:Object},slashSymbol:{type:String,default:"/"}},emits:["select"],setup(e,{emit:f}){const d=m(e),h=l((()=>s(e.whiteList)?e.whiteList.reduce(((e,l)=>(i(l)&&e.push({label:l,value:l}),e)),[]):[]));const b=t(),g=l({get:()=>b.value,set:l=>r(l)?b.value=l+"":i(l)?l.endsWith(e.slashSymbol)?b.value=e.slashSymbol:void(b.value=h.value.some((e=>e.label!==l&&e.label.includes(l)))?"":l):void 0});function y(e=-1){const l=r(+e)&&e>=0?+e:null;return new RegExp(`^-?(0|[1-9][0-9]*)?${0===l?"":`(\\.[0-9]${r(l)?`{0,${l}}`:"*"})?`}$`)}u((()=>e.value),(e=>g.value=e),{immediate:!0});const S=y();function j(){if(g.value===e.slashSymbol||function(e,l=!1){return h.value.length&&h.value.some((({value:t})=>l?t.includes(e):t===e))}(g.value))e.onChange(g.value);else if(i(g.value)&&"-"!==g.value)if(S.test(g.value)){const l=g.value.endsWith(".")?g.value.slice(0,-1):g.value;e.onChange(g.value=l)}else g.value=e.value;else g.value=e.value}const w=t(!1),x=t();function $(){w.value=!0}function C(e){var l;if(!e.target)return;const t=e.target;(null==(l=x.value)?void 0:l.$el)&&a(t,(e=>e===x.value.$el))||(w.value=!1)}function F(e,l){var t,u;v(l)&&(g.value=l.value,null==(u=null==(t=x.value)?void 0:t.focus)||u.call(t),f("select",l))}const O=l((()=>y(e.precision)));function P(l){return!(null!=l&&""!==l&&l!==e.slashSymbol&&i(l)&&!l.endsWith(e.slashSymbol))||(!(!h.value.length||!h.value.some((e=>e.label.includes(l))))||O.value.test(l)&&"-."!==l&&!l.startsWith("."))}return()=>{const l=n(c,o({ref:x,value:g.value,"onUpdate:value":e=>g.value=e,"allow-input":P,onBlur:j,onClick:$,onFocus:$},e.inputProps),d.value);return h.value.length?n(p,o({onSelect:F,options:h.value,show:w.value,width:"trigger",onClickoutside:C},e.popperProps),{default:()=>l}):l}}});export{f as default};
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  import { PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  searchPageConfig: {
@@ -1,4 +1,4 @@
1
- import { AnyFn } from '../../../../es/shared/types';
1
+ import { AnyFn } from '../../../shared/types';
2
2
  import { Component, PropType } from 'vue';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  renderer: {
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  import { Ref } from 'vue';
3
3
  export declare function useOptionFiltered(props: Partial<{
4
4
  options: AnyObject[];
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  export declare const searchContentMatcher: (searchContent: string, label: string) => RegExpMatchArray | null;
3
3
  export declare function useSearchContent(): {
4
4
  searchContent: import("vue").Ref<string | undefined>;
@@ -1 +1 @@
1
- import{keywordMatcher as e}from"../../utils/index.js";import{useMemoize as t}from"@vueuse/core";import{identity as r,isArray as n,isString as o}from"lodash-es";import{ref as u}from"vue";const i=(()=>{const e=t((e=>new RegExp(`(.*)${e.split("").map((e=>`(${function(e){return e.match(/[()\[\]{}$^\/]/)?"\\"+e:e}(e)})`)).join("(.*)")}(.*)`)),{getKey:r});return(t,r)=>r.match(e(t))})();function c(){const t=u();return{searchContent:t,optionSearchFilter:function(r,u,c){if(!t.value)return r;const s=n(c)?c.filter((e=>e&&o(e))):[];return r.filter((r=>function(r,n,u){if(!t.value)return!0;const c=r?r[n]:"";return!!o(c)&&(!!i(t.value,c)||!!e(t.value,r.keyword)||!!u.length&&u.some((e=>o(r[e])&&r[e].includes(t.value))))}(r,u,s)))}}}export{i as searchContentMatcher,c as useSearchContent};
1
+ import{keywordMatcher as t}from"../../utils/index.js";import{useMemoize as e}from"@vueuse/core";import{identity as r,isArray as n,isString as o,overSome as u,isNumber as i}from"lodash-es";import{ref as c}from"vue";const s=(()=>{const t=e((t=>new RegExp(`(.*)${t.split("").map((t=>`(${function(t){return t.match(/[()\[\]{}$^\/]/)?"\\"+t:t}(t)})`)).join("(.*)")}(.*)`)),{getKey:r});return(e,r)=>r.match(t(e))})();function l(){const e=c();return{searchContent:e,optionSearchFilter:function(r,c,l){if(!e.value)return r;const f=n(l)?l.filter((t=>t&&o(t))):[];return r.filter((r=>function(r,n,c){if(!e.value)return!0;const l=r?r[n]:"";return!!o(l)&&(!!s(e.value,l)||!!t(e.value,r.keyword)||!!c.length&&c.some((t=>u([i,o])(r[t])&&String(r[t]).includes(e.value))))}(r,c,f)))}}}export{s as searchContentMatcher,l as useSearchContent};
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble } from '../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble } from '../../../shared/types';
2
2
  import { Ref } from 'vue';
3
3
  export declare function useSelectAllowModify(props: Partial<{
4
4
  allowCreate: boolean;
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject } from '../../../shared/types';
2
2
  import { SelectOption } from 'naive-ui';
3
3
  import { Ref } from 'vue';
4
4
  export declare function useSelectRenders(props: {
@@ -1,4 +1,4 @@
1
- import { AnyObject, UndefinedAble } from '../../../../es/shared/types';
1
+ import { AnyObject, UndefinedAble } from '../../../shared/types';
2
2
  export declare namespace AsyncQueueDefine {
3
3
  interface EntryCallback {
4
4
  (err?: any, result?: any): void;
@@ -1,5 +1,5 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
- import { AnyObject, AnyFn } from '../../../es/shared/types';
2
+ import { AnyObject, AnyFn } from '../../shared/types';
3
3
  export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, { formatRef, attrs, emit, allowedInvalidValue, isPanel }: {
4
4
  formatRef: ComputedRef<string | [string, string]>;
5
5
  attrs: AnyObject;
@@ -1,7 +1,7 @@
1
1
  import { FormRequestDefine } from './types';
2
2
  import { ComputedRef } from 'vue';
3
- import { AsyncQueue, AsyncQueueDefine } from '../../../../es/shared/hooks';
4
- import { AnyObject, Nullable, UndefinedAble } from '../../../../es/shared/types';
3
+ import { AsyncQueue, AsyncQueueDefine } from '../../../shared/hooks';
4
+ import { AnyObject, Nullable, UndefinedAble } from '../../../shared/types';
5
5
  export * from './types';
6
6
  export declare function useFormRequest(): {
7
7
  getHttpInstance: () => Nullable<FormRequestDefine.RequestInstance>;
@@ -1,5 +1,5 @@
1
- import { AsyncQueue } from '../../../../es/shared/hooks';
2
- import { AnyObject, AnyFn } from '../../../../es/shared/types';
1
+ import { AsyncQueue } from '../../../shared/hooks';
2
+ import { AnyObject, AnyFn } from '../../../shared/types';
3
3
  export declare namespace FormRequestDefine {
4
4
  type RequestType = 'post' | 'get' | 'patch' | 'delete' | 'put';
5
5
  interface AsyncQueueItem {
@@ -1,5 +1,5 @@
1
- import { FormRequestDefine } from '../../../es/shared/hooks';
2
- import { AnyObject, AnyFn, LowCodeTypes } from '../../../es/shared/types';
1
+ import { FormRequestDefine } from '../../shared/hooks';
2
+ import { AnyObject, AnyFn, LowCodeTypes } from '../../shared/types';
3
3
  import { MaybeRef } from '@vueuse/core';
4
4
  import { Ref } from 'vue';
5
5
  export declare function useLevelSearchCascader(props: Partial<{
@@ -1,3 +1,3 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { CComponentThemeOverrides } from '../../../es/components/config-provider';
2
+ import { CComponentThemeOverrides } from '../../components/config-provider';
3
3
  export declare function useTheme(defaultCssVars?: CSSProperties, componentKey?: keyof CComponentThemeOverrides): import("vue").ComputedRef<CSSProperties>;
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.1.55-release.0",i="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.1.55-release.0",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
1
+ var e="@cnhis-design-vue/shared",s="3.1.55-release.2",i="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.1.55-release.2",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
@@ -1,4 +1,4 @@
1
- import { AnyObject } from '../../../es/shared/types/index';
1
+ import { AnyObject } from '../../shared/types/index';
2
2
  export declare type IFlexibleType = {
3
3
  el: HTMLBaseElement;
4
4
  mode: string;
@@ -1,9 +1,10 @@
1
- import { AnyObject, LowCodeTypes } from '../../../es/shared/types';
1
+ import { AnyObject, LowCodeTypes } from '../../shared/types';
2
2
  import { MaybeRef } from '@vueuse/core';
3
3
  export declare function isMatchLowCodeCondition(value: unknown, condition: {
4
4
  con: LowCodeTypes.VALUE_RELATION;
5
5
  value: unknown;
6
6
  }, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
7
+ export declare function isConditionsMatchSqlExpression(conditions: boolean[], sqlExpression?: string): any;
7
8
  export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
8
9
  declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
9
10
  setter: (key: string, value: unknown) => void;
@@ -1 +1 @@
1
- import{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,gt as o,gte as i,isNumber as l,lt as c,lte as f,noop as u,isObject as s}from"lodash-es";import{unref as d}from"vue";import{add as p,differenceInMilliseconds as m}from"date-fns";function F(e){return null==e||""==e}const D={EQ:(e,n)=>`${e}`===n,NEQ:(e,n)=>`${e}`!==n,CL:(e,a)=>!(!n(e)&&!t(e))&&r(e,a),NC:(e,a)=>!n(e)&&!t(e)||!r(e,a),NULL:F,NOT_NULL:a(F),BIG:o,BIGEQ:i,LESS:(e,n)=>!!(l(e)||t(e)&&e)&&c(e,n),LESSEQ:(e,n)=>!!(l(e)||t(e)&&e)&&f(e,n)};function E(e,n,t={}){return(t[n.con]||D[n.con]||(()=>!1))(e,`${n.value}`)}function g(r,a){if(!n(a.conObj))return!1;if(!a.sqlExpression||!t(a.sqlExpression))return a.conObj.every((n=>E(e.getIn(r,n.field_key),n,a.compareMap)));const o=a.conObj.map((n=>E(e.getIn(r,n.field_key),n,a.compareMap)));try{return new Function("return "+a.sqlExpression.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(e=>o[+e-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",a.sqlExpression),!1}}const h=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!s(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!t(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?n(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&E(n(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:u,IS_SHOW_FIELD:u,SQLSAVE:u,API:u});function A(e){return h[e]||u}function N(e,r,a){function o(e){return n(e)&&!!e.length}function i(e,n=!0){e.forEach((e=>{if(!e.operationalResult||!n&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,n)=>(e[n=n.replace(/^table\./,"")]=+r(n),e)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${i}`)(o);t(c)&&(c=+c),c=l(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(n){if(!o(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&i(t)},triggerAllOperationalFormHandler:function(){o(d(e))&&i(d(e),!1)}}}function _(e,t,r){function a(e){return n(e)&&!!e.length}function o(e,n=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(n||null==t(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:n,diffValField:a,diffValUnit:o,precision:i="0"}){const l=t(e),c=t(n);if(l&&c){const e=m(new Date(c),new Date(l))/1e3/60,n=e/60,t=n/24;let f="";switch(o){case"DAY":f=t.toFixed(+i);break;case"HOUR":f=n.toFixed(+i);break;case"MIN":f=e.toFixed(+i);break;case"DHM":f=`${Math.floor(t)}天${Math.floor(n%24)}小时${Math.floor(e%60)}分钟`;break}r(a,f)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const n=+e.diffValField;if(!l(n)||Number.isNaN(n))return;const a=t(e.startDateField);if(a){const t=p(new Date(a),{days:"DAY"===e.diffValUnit?n:0,hours:"HOUR"===e.diffValUnit?n:0,minutes:"MIN"===e.diffValUnit?n:0});r(e.endDateField,t)}else r(e.endDateField,null)}(e))}))}return{dateOperationalFormHandler:function(n){if(!a(d(e)))return;const t=d(e).filter((e=>"DIFF"===e.scene?e.startDateField===n||e.endDateField===n:e.startDateField===n));t.length&&o(t)},triggerAllDateOperationalFormHandler:function(){a(d(e))&&o(d(e),!1)}}}export{A as getBindEventSettingTrigger,_ as getDateOperationalFormHandler,N as getOperationalFormHandler,E as isMatchLowCodeCondition,g as isMatchLowCodeConditionsWithSqlExpression};
1
+ import{Path as e}from"@formily/path";import{isArray as t,isString as n,includes as r,negate as a,gt as o,gte as i,isNumber as l,lt as c,lte as f,identity as u,noop as s,isObject as d}from"lodash-es";import{unref as p}from"vue";import{add as m,differenceInMilliseconds as F}from"date-fns";function D(e){return null==e||""==e}const h={EQ:(e,t)=>`${e}`===t,NEQ:(e,t)=>`${e}`!==t,CL:(e,a)=>!(!t(e)&&!n(e))&&r(e,a),NC:(e,a)=>!t(e)&&!n(e)||!r(e,a),NULL:D,NOT_NULL:a(D),BIG:o,BIGEQ:i,LESS:(e,t)=>!!(l(e)||n(e)&&e)&&c(e,t),LESSEQ:(e,t)=>!!(l(e)||n(e)&&e)&&f(e,t)};function E(e,t,n={}){return(n[t.con]||h[t.con]||(()=>!1))(e,`${t.value}`)}function g(e,t){if(!t||!n(t))return e.every(u);try{return new Function("return "+t.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(t=>e[+t-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",t),!1}}function A(n,r){if(!t(r.conObj))return!1;return g(r.conObj.map((t=>E(e.getIn(n,t.field_key),t,r.compareMap))),r.sqlExpression)}const N=Object.freeze({SET_VALUE:function(e,{getter:t,setter:r}){if(!d(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!n(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?t(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&E(t(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:s,IS_SHOW_FIELD:s,SQLSAVE:s,API:s});function L(e){return N[e]||s}function V(e,r,a){function o(e){return t(e)&&!!e.length}function i(e,t=!0){e.forEach((e=>{if(!e.operationalResult||!t&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,t)=>(e[t=t.replace(/^table\./,"")]=+r(t),e)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${i}`)(o);n(c)&&(c=+c),c=l(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(t){if(!o(p(e)))return;const n=p(e).filter((e=>e.operationFormParam.includes(`table.${t}`)));n.length&&i(n)},triggerAllOperationalFormHandler:function(){o(p(e))&&i(p(e),!1)}}}function $(e,n,r){function a(e){return t(e)&&!!e.length}function o(e,t=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(t||null==n(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:t,diffValField:a,diffValUnit:o,precision:i="0"}){const l=n(e),c=n(t);if(l&&c){const e=F(new Date(c),new Date(l))/1e3/60,t=e/60,n=t/24;let f="";switch(o){case"DAY":f=n.toFixed(+i);break;case"HOUR":f=t.toFixed(+i);break;case"MIN":f=e.toFixed(+i);break;case"DHM":f=`${Math.floor(n)}天${Math.floor(t%24)}小时${Math.floor(e%60)}分钟`;break}r(a,f)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const t=+e.diffValField;if(!l(t)||Number.isNaN(t))return;const a=n(e.endDateField);if(a){const n=m(new Date(a),{days:"DAY"===e.diffValUnit?t:0,hours:"HOUR"===e.diffValUnit?t:0,minutes:"MIN"===e.diffValUnit?t:0});r(e.startDateField,n)}else r(e.startDateField,null)}(e))}))}return{dateOperationalFormHandler:function(t){if(!a(p(e)))return;const n=p(e).filter((e=>"DIFF"===e.scene&&e.startDateField===t||e.endDateField===t));n.length&&o(n)},triggerAllDateOperationalFormHandler:function(){a(p(e))&&o(p(e),!1)}}}export{L as getBindEventSettingTrigger,$ as getDateOperationalFormHandler,V as getOperationalFormHandler,g as isConditionsMatchSqlExpression,E as isMatchLowCodeCondition,A as isMatchLowCodeConditionsWithSqlExpression};
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble } from '../../../es/shared/types';
1
+ import { AnyObject, ArrayAble } from '../../shared/types';
2
2
  import { App, Component, ComponentInternalInstance } from 'vue';
3
3
  export * from './business';
4
4
  export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T, stop: () => void, parent?: typeof item) => void, keys?: ArrayAble<string>, parent?: T): void;
@@ -1 +1 @@
1
- import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as u,isNumber as s,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&u(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return u(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(u(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(s(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!u(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,u]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const c=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(s(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
1
+ import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,s]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.55-release.0",
3
+ "version": "3.1.55-release.2",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -42,6 +42,7 @@
42
42
  "min-dom": "^3.2.1",
43
43
  "moment": "^2.29.1",
44
44
  "naive-ui": "^2.30.0",
45
+ "recorder-core": "^1.2.23070100",
45
46
  "sockjs-client": "^1.6.1",
46
47
  "sortablejs": "^1.15.0",
47
48
  "spark-md5": "^3.0.2",
@@ -63,5 +64,5 @@
63
64
  "iOS 7",
64
65
  "last 3 iOS versions"
65
66
  ],
66
- "gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
67
+ "gitHead": "65d7a9007de8e7aa426476cfc289c8ff750b2336"
67
68
  }
@@ -1 +0,0 @@
1
- import{COMPONENT_NAMESPACE as t}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import a from"./src/MultiChat.vue.js";const i=a;i.install=function(a){r(a,i,t+"MultiChat")};export{i as default};
@@ -1 +0,0 @@
1
- import t from"./MultiChat.vue2.js";import e from"../../../_virtual/_plugin-vue_export-helper.js";var r=e(t,[["__file","MultiChat.vue"]]);export{r as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as s,reactive as t,provide as n,openBlock as o,createBlock as r,unref as i,withCtx as a,createVNode as c}from"vue";import{NSpin as u,NLayout as d,NLayoutSider as m,NLayoutContent as l}from"naive-ui";import f from"./components/SiderList.vue.js";import p from"./components/ChatHeader.vue.js";import g from"./components/ChatMain.vue.js";import S from"./components/ChatFooter.vue.js";import{promiseTimeout as I}from"@vueuse/shared";import{ChatSock as h}from"./utils/chatSock.js";import{accessApi as b,readMessageApi as y}from"./api/index.js";import{format as v}from"date-fns";var C=e({__name:"MultiChat",props:{data:{type:Object,default:()=>({})},baseURL:{type:String,defalut:"/"}},setup(e){const C=e,_=s(!1),M=s(!1);let w;const L=t({reConnention:0,currentSessionItem:{},currentSessionId:"",userInfo:{},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1});function j(){const e={heartbeatFn:()=>{try{null==w||w.send("test")}catch(e){null==w||w.disconnect(),j()}},connectCb:()=>{console.log("连接成功"),L.reConnention>0&&(L.reConnention=0),w.subscribe(`/user/${L.userInfo.username}/message`,(e=>{try{const s=JSON.parse(e.body),{body:t,from:n,id:o,fromName:r,readStatus:i,createdTime:a,sessionId:c}=s;if(c!==L.currentSessionId)return;N({createdTime:a,readStatus:i,content:t,fromId:n,id:o,fromName:r,senderFlag:1}),O(!0),async function(){await y({sessionId:L.currentSessionId,from:L.userInfo.username,id:L.currentMsg.id})}()}catch(e){console.log(e)}})),w.subscribe(`/user/${L.userInfo.username}/sessionList`,(e=>{var s;try{const t=JSON.parse(e.body),n={__time:v(new Date(t.sendTime),"MM/dd HH:mm"),__lastContent:(null==(s=t.lastContent)?void 0:s.content)||"",id:t.sessionId};if(0==t.opt){const e=t.name||t.fromName||t.toName;U([{...t,name:e,__name:e.slice(-2),...n},...L.sessionList])}else 1==t.opt&&(L.updateSessionItem={...t,...n},k(!0))}catch(e){console.log(e)}})),w.subscribe(`/user/${L.userInfo.username}/msgReadStatus`,(e=>{try{if(!L.currentSessionId)return;const s=JSON.parse(e.body);if(s.sessionId!==L.currentSessionId)return;const t=(null==s?void 0:s.readStatus)||{};if(Object.keys(t).length<1)return}catch(e){console.log(e)}}))},errorCb:(e,s)=>{L.reConnention=s,console.log("断线了,正在重连...")}};w=new h(`${C.baseURL}/stomp`,e)}function N(e){L.currentMsg=e}function O(e){L.isAppendMsg=e}function U(e){L.sessionList=e}function k(e){L.isUpdateSession=e}async function H(e){e||await I(300),_.value=e}return n("state",L),n("setCurrentSessionItem",(function(e){if(Object.assign(L.currentSessionItem,e),L.currentSessionId===L.currentSessionItem.id)return;L.currentSessionId=L.currentSessionItem.id,L.msgList=[]})),n("setMsgList",(function(e=[]){L.msgList=e.map((e=>{var s;return{...e,__time:v(new Date(e.createdTime),"MM/dd HH:mm"),__content:null==(s=e.content)?void 0:s.content,__left:1==e.senderFlag}}))})),n("setCurrentMsg",N),n("setIsAppendMsg",O),n("setSessionList",U),n("setIsChangeSession",(function(e){L.isChangeSession=e})),n("setIsUpdateSession",k),async function(){await async function(){if(Object.values(C.data).some((e=>!String(e))))return console.log("缺少参数");try{M.value=!0;const e=await b(C.data);L.userInfo=e}catch(e){console.log(e)}finally{M.value=!1}}(),j()}(),(e,s)=>M.value?(o(),r(i(u),{key:0,stroke:"#5585f5"})):(o(),r(i(d),{key:1,class:"c-multi-chat","has-sider":""},{default:a((()=>[c(i(m),{"collapse-mode":"width","collapsed-width":100,width:300,"show-trigger":"arrow-circle","content-style":"padding: 20px;",bordered:"","onUpdate:collapsed":H},{default:a((()=>[c(f,{collapsed:_.value},null,8,["collapsed"])])),_:1}),c(i(l),{class:"chat-wrapper"},{default:a((()=>[c(p),c(g),c(S)])),_:1})])),_:1}))}});export{C as default};