cnhis-design-vue 3.1.55-release.1 → 3.1.56-beta.7

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 (374) hide show
  1. package/es/components/annotation-edit/index.d.ts +19 -1
  2. package/es/components/annotation-edit/src/AnnotationEdit.d.ts +19 -1
  3. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  4. package/es/components/annotation-edit/src/type.d.ts +4 -0
  5. package/es/components/audio-sdk/src/audioSDK.d.ts +21 -7
  6. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  7. package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
  8. package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
  9. package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
  10. package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
  11. package/es/components/audio-sdk/style/index.css +1 -1
  12. package/es/components/base-search/index.d.ts +15 -1
  13. package/es/components/base-search/src/index.vue.d.ts +18 -4
  14. package/es/components/base-search/src/index.vue2.js +1 -1
  15. package/es/components/base-search/style/index.css +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/biunique-chat/index.d.ts +14 -14
  28. package/es/components/biunique-chat/src/BiuniqueChat.vue.d.ts +1 -1
  29. package/es/components/biunique-chat/src/api/index.d.ts +1 -1
  30. package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +1 -1
  31. package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +1 -1
  32. package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +1 -1
  33. package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +1 -1
  34. package/es/components/biunique-chat/src/utils/chatSock.d.ts +1 -1
  35. package/es/components/body-select/index.d.ts +5 -5
  36. package/es/components/body-select/src/hooks/renderCanvas.d.ts +2 -2
  37. package/es/components/body-select/src/index.vue.d.ts +1 -1
  38. package/es/components/bpmn-workflow/index.d.ts +1 -1
  39. package/es/components/button-print/index.d.ts +21 -21
  40. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  41. package/es/components/button-print/src/api.d.ts +1 -1
  42. package/es/components/button-print/src/components/EditFormat.vue.d.ts +1 -1
  43. package/es/components/button-print/src/utils/dialog.d.ts +1 -1
  44. package/es/components/button-print/src/utils/print.d.ts +5 -2
  45. package/es/components/button-print/src/utils/print.js +1 -1
  46. package/es/components/callback/index.d.ts +1 -1
  47. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +1 -1
  48. package/es/components/callback/src/components/dialog/modal.vue.d.ts +1 -1
  49. package/es/components/callback/src/components/render/popupMaps.d.ts +74 -166
  50. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -1
  51. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +1 -1
  52. package/es/components/card-reader-sdk/src/constants/index.d.ts +1 -1
  53. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -1
  54. package/es/components/card-reader-sdk/src/types/index.d.ts +2 -2
  55. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +1 -1
  56. package/es/components/classification/index.d.ts +40 -42
  57. package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
  58. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  59. package/es/components/classification/src/components/set-classification/index.vue.d.ts +33 -35
  60. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
  61. package/es/components/classification/src/components/table-modal/index.vue.d.ts +10 -21
  62. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  63. package/es/components/classification/src/index.vue.d.ts +33 -35
  64. package/es/components/classification/src/index.vue2.js +1 -1
  65. package/es/components/config-provider/index.d.ts +1 -1
  66. package/es/components/date-picker/index.d.ts +2 -2
  67. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  68. package/es/components/editor/index.d.ts +1 -1
  69. package/es/components/expand-field/index.d.ts +29 -29
  70. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +2 -2
  71. package/es/components/expand-field/src/components/form.vue.d.ts +2 -2
  72. package/es/components/expand-field/src/constants/index.d.ts +1 -1
  73. package/es/components/expand-field/src/index.vue.d.ts +2 -2
  74. package/es/components/fabric-chart/index.d.ts +10 -8
  75. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -3
  76. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  77. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
  78. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +3 -3
  79. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  80. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +3 -3
  81. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  82. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +2 -2
  83. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
  84. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  85. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +4 -4
  86. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  87. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.d.ts +2 -2
  88. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  89. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -3
  90. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  91. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.d.ts +3 -3
  92. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +3 -3
  93. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  94. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +3 -3
  95. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  96. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +3 -3
  97. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +2 -2
  98. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +3 -3
  99. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  100. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -2
  101. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +2 -2
  102. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +2 -2
  103. package/es/components/fabric-chart/src/hooks/temperature/useShadow.d.ts +1 -1
  104. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +3 -3
  105. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  106. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +2 -2
  107. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  108. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -2
  109. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +1 -1
  110. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +2 -2
  111. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  112. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  113. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +2 -2
  114. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  115. package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
  116. package/es/components/field-set/index.d.ts +15 -15
  117. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  118. package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
  119. package/es/components/field-set/src/types/index.d.ts +1 -1
  120. package/es/components/field-set/src/utils/index.d.ts +3 -3
  121. package/es/components/form-config/index.d.ts +322 -475
  122. package/es/components/form-config/src/FormConfig.vue.d.ts +448 -601
  123. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +40 -132
  124. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
  125. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +214 -291
  126. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +2 -2
  127. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -1
  128. package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +1 -1
  129. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -2
  130. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -2
  131. package/es/components/form-config/src/constants/index.d.ts +2 -2
  132. package/es/components/form-config/src/hooks/useConfigurationField.d.ts +3 -3
  133. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  134. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +1 -1
  135. package/es/components/form-config/src/types/index.d.ts +2 -2
  136. package/es/components/form-config/src/utils/index.d.ts +3 -3
  137. package/es/components/form-render/index.d.ts +69 -161
  138. package/es/components/form-render/src/FormRender.vue.d.ts +39 -131
  139. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  140. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +92 -184
  141. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  142. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  143. package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +1 -1
  144. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  145. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +2 -2
  146. package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
  147. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  148. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
  149. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +1 -1
  150. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  151. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
  152. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  153. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +2 -2
  154. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +2 -2
  155. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  156. package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +1 -1
  157. package/es/components/form-render/src/constants/index.d.ts +6 -5
  158. package/es/components/form-render/src/constants/index.js +1 -1
  159. package/es/components/form-render/src/hooks/useAnchor.d.ts +2 -2
  160. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  161. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -1
  162. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +3 -3
  163. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  164. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
  165. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +27 -19
  166. package/es/components/form-render/src/hooks/useFormContext.d.ts +6 -6
  167. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  168. package/es/components/form-render/src/hooks/useFormEvent.d.ts +4 -25
  169. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  170. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  171. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
  172. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +8 -8
  173. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -4
  174. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  175. package/es/components/form-render/src/hooks/useFormValidator.d.ts +1 -1
  176. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  177. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  178. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +2 -2
  179. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  180. package/es/components/form-render/src/types/index.d.ts +18 -16
  181. package/es/components/form-render/src/utils/business.d.ts +2 -2
  182. package/es/components/form-render/src/utils/dom.d.ts +1 -1
  183. package/es/components/form-render/src/utils/index.d.ts +1 -1
  184. package/es/components/form-render/src/utils/schema.d.ts +3 -3
  185. package/es/components/form-render/src/utils/schema.js +1 -1
  186. package/es/components/grid/index.d.ts +1 -1
  187. package/es/components/guide/src/renderer.d.ts +1 -1
  188. package/es/components/guide/src/types/index.d.ts +1 -1
  189. package/es/components/guide/src/useGuide.d.ts +1 -1
  190. package/es/components/guide/src/utils/index.d.ts +1 -1
  191. package/es/components/iho-table/index.d.ts +39 -39
  192. package/es/components/iho-table/src/IhoTable.vue.d.ts +27 -27
  193. package/es/components/iho-table/src/constants/index.d.ts +5 -5
  194. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +9 -9
  195. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +21 -21
  196. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +10 -10
  197. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +4 -4
  198. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +65 -65
  199. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +4 -4
  200. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +7 -7
  201. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +3 -3
  202. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +1 -1
  203. package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +2 -2
  204. package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +1 -1
  205. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +1 -1
  206. package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.d.ts +1 -1
  207. package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +1 -1
  208. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -1
  209. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +1 -1
  210. package/es/components/iho-table/src/plugins/defaultValuePlugin.d.ts +1 -1
  211. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  212. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -2
  213. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -1
  214. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -1
  215. package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.d.ts +1 -1
  216. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -1
  217. package/es/components/iho-table/src/plugins/headerPlugin.d.ts +1 -1
  218. package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
  219. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -1
  220. package/es/components/iho-table/src/plugins/index.d.ts +1 -1
  221. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -1
  222. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +1 -1
  223. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -1
  224. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -1
  225. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  226. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -1
  227. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +1 -1
  228. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +1 -1
  229. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -1
  230. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -1
  231. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +7 -7
  232. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +1 -1
  233. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  234. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.d.ts +1 -1
  235. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +8 -2
  236. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  237. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -1
  238. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  239. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -2
  240. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  241. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +1 -1
  242. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -2
  243. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -2
  244. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -1
  245. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +1 -1
  246. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +1 -1
  247. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +1 -1
  248. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.d.ts +1 -1
  249. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +1 -1
  250. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +1 -1
  251. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +1 -1
  252. package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +1 -1
  253. package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -1
  254. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +1 -1
  255. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +2 -2
  256. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -1
  257. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -1
  258. package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +1 -1
  259. package/es/components/iho-table/src/types/index.d.ts +3 -3
  260. package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
  261. package/es/components/iho-table/src/utils/index.d.ts +3 -3
  262. package/es/components/iho-table/src/utils/separateMap.d.ts +2 -2
  263. package/es/components/index.css +1 -1
  264. package/es/components/index.d.ts +3 -3
  265. package/es/components/info-header/index.d.ts +213 -377
  266. package/es/components/info-header/src/InfoHeader.vue.d.ts +242 -406
  267. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +11 -7
  268. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +13 -9
  269. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +119 -207
  270. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +41 -133
  271. package/es/components/info-header/src/constants/index.d.ts +1 -1
  272. package/es/components/info-header/src/types/index.d.ts +1 -1
  273. package/es/components/keyboard/index.d.ts +1 -1
  274. package/es/components/map/index.d.ts +1 -1
  275. package/es/components/map/src/Map.vue.d.ts +1 -1
  276. package/es/components/picture-clipper/index.d.ts +1 -1
  277. package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +1 -1
  278. package/es/components/quick-search/index.d.ts +1 -1
  279. package/es/components/quick-search/src/index.vue.d.ts +4 -4
  280. package/es/components/recommend-search/index.d.ts +33 -33
  281. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -15
  282. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  283. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +6 -6
  284. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +5 -5
  285. package/es/components/scale-view/index.d.ts +1 -1
  286. package/es/components/scale-view/src/hooks/use-component.d.ts +33 -33
  287. package/es/components/scale-view/src/types/index.d.ts +1 -1
  288. package/es/components/search-cascader/index.d.ts +34 -34
  289. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
  290. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  291. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  292. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  293. package/es/components/select-label/index.d.ts +1 -1
  294. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  295. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  296. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts +3 -3
  297. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts +3 -3
  298. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.d.ts +1 -1
  299. package/es/components/select-label/src/index.vue.d.ts +19 -19
  300. package/es/components/select-person/index.d.ts +22 -22
  301. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  302. package/es/components/shortcut-provider/index.d.ts +1 -1
  303. package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -2
  304. package/es/components/shortcut-provider/src/constants/index.d.ts +1 -1
  305. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -1
  306. package/es/components/shortcut-provider/src/types/index.d.ts +1 -1
  307. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  308. package/es/components/shortcut-setter/index.d.ts +85 -176
  309. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +118 -209
  310. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +2 -2
  311. package/es/components/shortcut-setter/src/types/index.d.ts +1 -1
  312. package/es/components/slider-tree/index.d.ts +1 -1
  313. package/es/components/steps-wheel/index.d.ts +1 -1
  314. package/es/components/table-export-field/index.d.ts +3 -3
  315. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -1
  316. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +1 -1
  317. package/es/components/table-export-field/src/constants/index.d.ts +1 -1
  318. package/es/components/table-export-field/src/index.vue.d.ts +1 -1
  319. package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +1 -1
  320. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +2 -2
  321. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
  322. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
  323. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
  324. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  325. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -1
  326. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -2
  327. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  328. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
  329. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +2 -2
  330. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  331. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
  332. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +2 -2
  333. package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.d.ts +1 -1
  334. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +2 -2
  335. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +1 -1
  336. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +19 -0
  337. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  338. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +15 -1
  339. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  340. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +19 -0
  341. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +1 -1
  342. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -9
  343. package/es/components/table-filter/src/constants/index.d.ts +1 -1
  344. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  345. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
  346. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +1 -1
  347. package/es/components/table-filter/src/tool/transformData.d.ts +1 -1
  348. package/es/components/table-filter/src/types/index.d.ts +1 -0
  349. package/es/components/time-line/index.d.ts +1 -1
  350. package/es/components/time-picker/index.d.ts +2 -2
  351. package/es/components/time-picker/src/TimePicker.vue.d.ts +1 -1
  352. package/es/components/vod-chunk-upload/index.d.ts +1 -1
  353. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +5 -3
  354. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  355. package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1
  356. package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
  357. package/es/shared/hooks/selectHooks/useOptionFiltered.d.ts +1 -1
  358. package/es/shared/hooks/selectHooks/useSearchContent.d.ts +1 -1
  359. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  360. package/es/shared/hooks/selectHooks/useSelectAllowModify.d.ts +1 -1
  361. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +2 -2
  362. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  363. package/es/shared/hooks/useAsyncQueue/types.d.ts +1 -1
  364. package/es/shared/hooks/useDateTime.d.ts +1 -1
  365. package/es/shared/hooks/useFormRequest/index.d.ts +2 -2
  366. package/es/shared/hooks/useFormRequest/types.d.ts +2 -2
  367. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  368. package/es/shared/hooks/useTheme.d.ts +1 -1
  369. package/es/shared/package.json.js +1 -1
  370. package/es/shared/types/business.d.ts +1 -1
  371. package/es/shared/utils/business.d.ts +1 -1
  372. package/es/shared/utils/business.js +1 -1
  373. package/es/shared/utils/index.d.ts +1 -1
  374. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { IClassifyListType } from '../../../../../../es/components/table-filter/src/types';
1
+ import { IClassifyListType } from '../../../../../components/table-filter/src/types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  visibleIn: {
4
4
  type: BooleanConstructor;
@@ -27,6 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  };
28
28
  type: {
29
29
  type: StringConstructor;
30
+ default: string;
30
31
  };
31
32
  transitionName: {
32
33
  type: StringConstructor;
@@ -36,12 +37,6 @@ declare const _default: import("vue").DefineComponent<{
36
37
  default: () => HTMLElement;
37
38
  };
38
39
  }, {
39
- instance: import("axios").AxiosInstance;
40
- attrs: {
41
- [x: string]: unknown;
42
- };
43
- $message: import("naive-ui").MessageApi;
44
- $dialog: import("naive-ui").DialogApi;
45
40
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
46
41
  visibleIn: {
47
42
  type: BooleanConstructor;
@@ -70,6 +65,7 @@ declare const _default: import("vue").DefineComponent<{
70
65
  };
71
66
  type: {
72
67
  type: StringConstructor;
68
+ default: string;
73
69
  };
74
70
  transitionName: {
75
71
  type: StringConstructor;
@@ -81,12 +77,10 @@ declare const _default: import("vue").DefineComponent<{
81
77
  }>> & {
82
78
  onClose?: ((...args: any[]) => any) | undefined;
83
79
  onHandleOk?: ((...args: any[]) => any) | undefined;
84
- onChangeData?: ((...args: any[]) => any) | undefined;
85
80
  onResetPopconfirm?: ((...args: any[]) => any) | undefined;
86
81
  onFinishSubmit?: ((...args: any[]) => any) | undefined;
87
82
  }>>;
88
- emits: (event: "close" | "handleOk" | "changeData" | "resetPopconfirm" | "finishSubmit", ...args: any[]) => void;
89
- isAdmin: import("vue").ComputedRef<unknown>;
83
+ emits: (event: "close" | "handleOk" | "resetPopconfirm" | "finishSubmit", ...args: any[]) => void;
90
84
  homeList: any;
91
85
  visible: import("vue").Ref<boolean>;
92
86
  isChangeWindow: import("vue").Ref<boolean>;
@@ -94,24 +88,15 @@ declare const _default: import("vue").DefineComponent<{
94
88
  modalHeight: import("vue").Ref<string>;
95
89
  isShowResetButton: boolean;
96
90
  handleOk: () => void;
97
- rinkTo: () => void;
98
91
  close: () => void;
99
92
  resetChangeWindow: () => void;
100
- dragEnd: () => void;
101
93
  clickli: (item: IClassifyListType) => void;
102
94
  clickChecked: (item: IClassifyListType) => void;
103
95
  changeSwitch: (item: IClassifyListType) => void;
104
- changecommonSwitch: (item: IClassifyListType) => void;
105
96
  formatParams: (type: string) => {
106
97
  id: string;
107
98
  tableId: string;
108
99
  setting: string;
109
- type?: undefined;
110
- } | {
111
- type: string;
112
- tableId: string;
113
- setting: string;
114
- id?: undefined;
115
100
  } | undefined;
116
101
  changeModalWindow: () => void;
117
102
  popconfirm: (e: any) => void;
@@ -190,6 +175,9 @@ declare const _default: import("vue").DefineComponent<{
190
175
  modelValue: unknown[];
191
176
  componentData: Record<string, any>;
192
177
  } & {
178
+ /**
179
+ * 改变弹窗大小
180
+ */
193
181
  itemKey?: string | Function | undefined;
194
182
  }>, {
195
183
  move: Function;
@@ -199,7 +187,7 @@ declare const _default: import("vue").DefineComponent<{
199
187
  modelValue: unknown[];
200
188
  componentData: Record<string, any>;
201
189
  }>;
202
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "handleOk" | "changeData" | "resetPopconfirm" | "finishSubmit")[], "close" | "handleOk" | "changeData" | "resetPopconfirm" | "finishSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
190
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "handleOk" | "resetPopconfirm" | "finishSubmit")[], "close" | "handleOk" | "resetPopconfirm" | "finishSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
203
191
  visibleIn: {
204
192
  type: BooleanConstructor;
205
193
  };
@@ -227,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
227
215
  };
228
216
  type: {
229
217
  type: StringConstructor;
218
+ default: string;
230
219
  };
231
220
  transitionName: {
232
221
  type: StringConstructor;
@@ -238,11 +227,11 @@ declare const _default: import("vue").DefineComponent<{
238
227
  }>> & {
239
228
  onClose?: ((...args: any[]) => any) | undefined;
240
229
  onHandleOk?: ((...args: any[]) => any) | undefined;
241
- onChangeData?: ((...args: any[]) => any) | undefined;
242
230
  onResetPopconfirm?: ((...args: any[]) => any) | undefined;
243
231
  onFinishSubmit?: ((...args: any[]) => any) | undefined;
244
232
  }, {
245
233
  loading: boolean;
234
+ type: string;
246
235
  dataSource: unknown[];
247
236
  visibleIn: boolean;
248
237
  getContainer: Function;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as n,watch as a,openBlock as o,createBlock as s,unref as r,normalizeClass as c,withCtx as u,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as z,NModal as S,NCard as _,NTooltip as D,NIcon as E,NSwitch as M,NPopconfirm as P,NButton as I}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import B from"axios";const A={class:"svg-wrap"},H={class:"flex_between"},R={key:0},$={class:"table-modal-list"},j={class:"list-title"},J=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),T=v("span",{class:"list-title-item"}," 名称 ",-1),Y=v("span",{class:"list-title-item"}," 父类名称 ",-1),q=v("span",{class:"list-title-item"}," 是否显示 ",-1),G=v("span",{class:"list-title-item"}," 设置为默认 ",-1),K={class:"list-title-item"},L=v("span",{class:"list-title-item"}," 操作 ",-1),Q=["onClick"],W={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},X=["title"],Z=["title"],ee={class:"list-content-item list-content-switch"},te={class:"list-content-item list-content-radio"},ie={class:"list-content-item"},le={class:"list-content-item"},ne={key:0},ae=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),oe={key:1},se=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var re=e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:re}){const ce=e,ue=B.create({}),de=t(),pe=b(),me=z(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ce.dataSource),fe=l(ce.visibleIn),ge=l(!1),ye=l("other"==ce.type?"100%":"860px"),Ce=l("654px"),we=n(F);function ke(){ce.type&&(ze(),re("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ce.type)))}function xe(){be()}function be(){fe.value=!1,ze(),re("close")}function ze(){ye.value="860px",Ce.value="654px",ge.value=!1}function Se(){re("changeData",he.value)}function _e(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){re("resetPopconfirm",e)}function Ee(e,t,i){const l=ce[e];l&&l(t,i)}return a((()=>ce.visibleIn),(e=>{fe.value=e})),a((()=>ce.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(S),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:c(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:u((()=>[d(r(_),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":u((()=>[v("div",A,[v("i",{onClick:_e,class:c(["iconfont-table-filter",ge.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),v("i",{onClick:be,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:u((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",R,[v("span",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",$,[v("div",j,[J,T,Y,q,G,g(v("span",K," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),L]),d(r(O),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:Se,animation:"300"},{item:u((({element:t})=>[g(v("li",{class:c({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void re("changeData",he.value,i);var i}},[v("span",W,[d(r(D),{mouseEnterDelay:1},{trigger:u((()=>[d(r(E),{component:r(U),size:"24"},null,8,["component"])])),default:u((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,X),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,Z),v("span",ee,[d(r(M),{"onUpdate:value":e=>{return i=t,void he.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",te,[d(r(M),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",ie,[d(r(M),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ue({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,re("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>({})})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",le,["mananger"==e.type&&r(ve)?(o(),h("span",ne,[d(r(P),{onPositiveClick:e=>Ee("confirm",t)},{trigger:u((()=>[d(r(E),null,{default:u((()=>[ae])),_:1})])),default:u((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:u((()=>[d(r(E),{component:r(N),onClick:k((e=>Ee("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:u((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:u((()=>[d(r(E),{component:r(V),onClick:k((e=>Ee("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:u((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",oe,[d(r(P),{onPositiveClick:e=>Ee("delItem",t,"删除")},{trigger:u((()=>[d(r(E),null,{default:u((()=>[se])),_:1})])),default:u((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,Q),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:u((()=>[v("div",H,[v("div",null,[r(we)?(o(),s(r(P),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{trigger:u((()=>[d(r(I),null,{default:u((()=>[C("恢复默认设置")])),_:1})])),default:u((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),v("div",null,[d(r(I),{onClick:be},{default:u((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(I),{type:"info",onClick:ke},{default:u((()=>[C("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}});export{re as default};
1
+ import{defineComponent as e,ref as t,inject as i,watch as l,openBlock as a,createBlock as n,unref as o,normalizeClass as s,withCtx as c,createVNode as r,normalizeStyle as u,createSlots as d,createElementVNode as p,withDirectives as v,createTextVNode as m,toDisplayString as h,createCommentVNode as f,withModifiers as y,vShow as g,createElementBlock as w,renderSlot as k}from"vue";import{NModal as x,NCard as b,NTooltip as C,NIcon as z,NSwitch as S,NPopconfirm as _,NButton as D}from"naive-ui";import{ReorderTwo as I,Brush as E,DocumentOutline as N}from"@vicons/ionicons5";import P from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as F}from"../../const/index.js";import{cloneDeep as M}from"lodash-es";const U={class:"svg-wrap"},V={class:"flex_between"},B={class:"table-modal-list"},O=p("div",{class:"list-title"},[p("span",{class:"list-title-item",style:{width:"6%"}}),p("span",{class:"list-title-item"}," 名称 "),p("span",{class:"list-title-item"}," 父类名称 "),p("span",{class:"list-title-item"}," 是否显示 "),p("span",{class:"list-title-item"}," 设置为默认 "),p("span",{class:"list-title-item"}," 操作 ")],-1),j=["onClick"],Y={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},$=["title"],A=["title"],H={class:"list-content-item list-content-switch"},J={class:"list-content-item list-content-radio"},q={class:"list-content-item"},G={key:0},K=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var L=e({__name:"index",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>({})},copy:{type:Function,defdault:()=>({})},delItem:{type:Function,defdault:()=>({})},dataSource:{type:Array,default:()=>[]},type:{type:String,default:"search"},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","resetPopconfirm","finishSubmit"],setup(e,{emit:L}){const Q=e,R=t([]),T=t(Q.visibleIn),W=t(!1),X=t("other"==Q.type?"100%":"860px"),Z=t("654px"),ee=i(F);function te(){var e;Q.type&&(le(),L("handleOk","search"==(e=Q.type)||"other"==e?{id:"",tableId:"",setting:JSON.stringify(R.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))}:void 0))}function ie(){T.value=!1,le(),L("close")}function le(){X.value="860px",Z.value="654px",W.value=!1}function ae(){W.value=!W.value;let e=document.body.clientHeight;X.value="860px"===X.value?"100%":"860px",Z.value="654px"===Z.value?`${e}px`:"654px"}function ne(e){L("resetPopconfirm",e)}function oe(e,t,i){const l=Q[e];l&&l(t,i)}return l((()=>Q.visibleIn),(e=>{T.value=e})),l((()=>Q.dataSource),(e=>{R.value=M(e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),n(o(x),{show:T.value,bodyStyle:{height:Z.value,overflowY:"auto"},width:X.value,maskClosable:!1,class:s(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":W.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:te,onNegativeClick:ie},{default:c((()=>[r(o(b),{style:u({width:X.value,height:Z.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},d({"header-extra":c((()=>[p("div",U,[p("i",{onClick:ae,class:s(["iconfont-table-filter",W.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:ie,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),default:c((()=>[p("div",B,[O,r(o(P),{class:"list-content",tag:"ul",list:R.value,"item-key":"sid",animation:"300"},{item:c((({element:t})=>[v(p("li",{class:s({checked:t.checked}),onClick:e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1}));var i}},[p("span",Y,[r(o(C),{mouseEnterDelay:1},{trigger:c((()=>[r(o(z),{component:o(I),size:"24"},null,8,["component"])])),default:c((()=>[m(" 拖拽调整顺序 ")])),_:1})]),p("span",{title:t.displayCategory,class:"list-content-item"},h(t.name),9,$),p("span",{title:t.name,class:"list-content-item"},h(t.displayCategory),9,A),p("span",H,[r(o(S),{"onUpdate:value":e=>{return i=t,void R.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),p("span",J,[r(o(S),{"onUpdate:value":e=>{var i;(i=t).isShow&&R.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),p("span",q,[f(" 编辑 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(E),onClick:y((e=>oe("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 编辑 ")])),_:2},1024)],512),[[g,"other"==e.type||"search"==e.type&&t.isEdit]]),f(" 复制 "),v(p("span",null,[r(o(C),null,{trigger:c((()=>[r(o(z),{component:o(N),onClick:y((e=>oe("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[m(" 复制 ")])),_:2},1024)],512),[[g,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(a(),w("span",G,[r(o(_),{onPositiveClick:e=>oe("delItem",t,"删除")},{trigger:c((()=>[r(o(z),null,{default:c((()=>[K])),_:1})])),default:c((()=>[m(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,j),[[g,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[p("div",V,[p("div",null,[o(ee)?(a(),n(o(_),{key:0,placement:"top-start","positive-text":"确认","negative-text":"取消",onPositiveClick:ne},{trigger:c((()=>[r(o(D),null,{default:c((()=>[m("恢复默认设置")])),_:1})])),default:c((()=>[m(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0)]),p("div",null,[r(o(D),{onClick:ie},{default:c((()=>[m("取消")])),_:1}),k(t.$slots,"add"),r(o(D),{type:"info",onClick:te},{default:c((()=>[m("保存")])),_:1})])])])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}});export{L as default};
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IClassifyListType, ITreeDataType, IConditionMapType, IClassifyItemType } from '../../../../es/components/table-filter/src/types';
2
+ import { IClassifyListType, ITreeDataType, IConditionMapType, IClassifyItemType } from '../../../components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  tableId: {
5
5
  type: StringConstructor;
@@ -259,7 +259,6 @@ declare const _default: import("vue").DefineComponent<{
259
259
  $message: import("naive-ui").MessageApi;
260
260
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
261
261
  conditionList: import("vue").Ref<unknown[]>;
262
- checkedItem: import("vue").Ref<any>;
263
262
  addVisible: import("vue").Ref<boolean>;
264
263
  actionList_prop: import("vue").Ref<{}>;
265
264
  newSearchFieldList: any;
@@ -276,7 +275,6 @@ declare const _default: import("vue").DefineComponent<{
276
275
  copy: (item: IClassifyListType) => void;
277
276
  saveAdd: (params: any) => Promise<void>;
278
277
  cancelSaveAdd: () => void;
279
- changeData: (data: any, checkedItemVal: any) => void;
280
278
  delItem: (checkedItemVal: any) => Promise<void>;
281
279
  setOneVisible: (flag: boolean) => void;
282
280
  resetPopconfirm: () => Promise<void>;
@@ -310,6 +308,7 @@ declare const _default: import("vue").DefineComponent<{
310
308
  };
311
309
  type: {
312
310
  type: StringConstructor;
311
+ default: string;
313
312
  };
314
313
  transitionName: {
315
314
  type: StringConstructor;
@@ -319,12 +318,6 @@ declare const _default: import("vue").DefineComponent<{
319
318
  default: () => HTMLElement;
320
319
  };
321
320
  }, {
322
- instance: import("axios").AxiosInstance;
323
- attrs: {
324
- [x: string]: unknown;
325
- };
326
- $message: import("naive-ui").MessageApi;
327
- $dialog: import("naive-ui").DialogApi;
328
321
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
329
322
  visibleIn: {
330
323
  type: BooleanConstructor;
@@ -353,6 +346,7 @@ declare const _default: import("vue").DefineComponent<{
353
346
  };
354
347
  type: {
355
348
  type: StringConstructor;
349
+ default: string;
356
350
  };
357
351
  transitionName: {
358
352
  type: StringConstructor;
@@ -364,12 +358,10 @@ declare const _default: import("vue").DefineComponent<{
364
358
  }>> & {
365
359
  onClose?: ((...args: any[]) => any) | undefined;
366
360
  onHandleOk?: ((...args: any[]) => any) | undefined;
367
- onChangeData?: ((...args: any[]) => any) | undefined;
368
361
  onResetPopconfirm?: ((...args: any[]) => any) | undefined;
369
362
  onFinishSubmit?: ((...args: any[]) => any) | undefined;
370
363
  }>>;
371
- emits: (event: "close" | "handleOk" | "changeData" | "resetPopconfirm" | "finishSubmit", ...args: any[]) => void;
372
- isAdmin: import("vue").ComputedRef<unknown>;
364
+ emits: (event: "close" | "handleOk" | "resetPopconfirm" | "finishSubmit", ...args: any[]) => void;
373
365
  homeList: any;
374
366
  visible: import("vue").Ref<boolean>;
375
367
  isChangeWindow: import("vue").Ref<boolean>;
@@ -377,24 +369,15 @@ declare const _default: import("vue").DefineComponent<{
377
369
  modalHeight: import("vue").Ref<string>;
378
370
  isShowResetButton: boolean;
379
371
  handleOk: () => void;
380
- rinkTo: () => void;
381
372
  close: () => void;
382
373
  resetChangeWindow: () => void;
383
- dragEnd: () => void;
384
374
  clickli: (item: IClassifyListType) => void;
385
375
  clickChecked: (item: IClassifyListType) => void;
386
376
  changeSwitch: (item: IClassifyListType) => void;
387
- changecommonSwitch: (item: IClassifyListType) => void;
388
377
  formatParams: (type: string) => {
389
378
  id: string;
390
379
  tableId: string;
391
380
  setting: string;
392
- type?: undefined;
393
- } | {
394
- type: string;
395
- tableId: string;
396
- setting: string;
397
- id?: undefined;
398
381
  } | undefined;
399
382
  changeModalWindow: () => void;
400
383
  popconfirm: (e: any) => void;
@@ -482,7 +465,7 @@ declare const _default: import("vue").DefineComponent<{
482
465
  modelValue: unknown[];
483
466
  componentData: Record<string, any>;
484
467
  }>;
485
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "handleOk" | "changeData" | "resetPopconfirm" | "finishSubmit")[], "close" | "handleOk" | "changeData" | "resetPopconfirm" | "finishSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
468
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "handleOk" | "resetPopconfirm" | "finishSubmit")[], "close" | "handleOk" | "resetPopconfirm" | "finishSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
486
469
  visibleIn: {
487
470
  type: BooleanConstructor;
488
471
  };
@@ -510,6 +493,7 @@ declare const _default: import("vue").DefineComponent<{
510
493
  };
511
494
  type: {
512
495
  type: StringConstructor;
496
+ default: string;
513
497
  };
514
498
  transitionName: {
515
499
  type: StringConstructor;
@@ -521,11 +505,11 @@ declare const _default: import("vue").DefineComponent<{
521
505
  }>> & {
522
506
  onClose?: ((...args: any[]) => any) | undefined;
523
507
  onHandleOk?: ((...args: any[]) => any) | undefined;
524
- onChangeData?: ((...args: any[]) => any) | undefined;
525
508
  onResetPopconfirm?: ((...args: any[]) => any) | undefined;
526
509
  onFinishSubmit?: ((...args: any[]) => any) | undefined;
527
510
  }, {
528
511
  loading: boolean;
512
+ type: string;
529
513
  dataSource: unknown[];
530
514
  visibleIn: boolean;
531
515
  getContainer: Function;
@@ -678,9 +662,9 @@ declare const _default: import("vue").DefineComponent<{
678
662
  showAdd: boolean;
679
663
  };
680
664
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
681
- editDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
682
- handleDisplayCategorySelect: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
683
- handleDisplayCategoryRemove: (index: number, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
665
+ editDisplayCategory: (item: import("../../../components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
666
+ handleDisplayCategorySelect: (item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
667
+ handleDisplayCategoryRemove: (index: number, item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
684
668
  handleDisplayCategoryAdd: (cb?: any) => void;
685
669
  handlerBlur: () => void;
686
670
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
@@ -691,12 +675,12 @@ declare const _default: import("vue").DefineComponent<{
691
675
  updateKey: (index: number, val: any) => void;
692
676
  updateCondition: (index: number, val: any) => void;
693
677
  getParamCfg: (key: string) => any;
694
- initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
678
+ initFilterConditions: (tableId: string, rawConditions: import("../../../components/table-filter/src/types").ISearchConfigType) => Promise<void>;
695
679
  getRawFilterConditions: () => any[];
696
- handleEditDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
680
+ handleEditDisplayCategory: (item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
697
681
  handleDisplayCategoryAddState: () => void;
698
682
  findConditionByDisplayCategory: (sid: string) => unknown;
699
- handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
683
+ handleDisplayCategorySelectProxy: (item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
700
684
  clearFormData: () => void;
701
685
  handleInitConditions: () => Promise<void>;
702
686
  validate: () => Promise<unknown>;
@@ -1175,6 +1159,10 @@ declare const _default: import("vue").DefineComponent<{
1175
1159
  type: BooleanConstructor;
1176
1160
  default: boolean;
1177
1161
  };
1162
+ loading: {
1163
+ type: BooleanConstructor;
1164
+ default: boolean;
1165
+ };
1178
1166
  }, {
1179
1167
  selectMinWidth: number;
1180
1168
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -1206,6 +1194,10 @@ declare const _default: import("vue").DefineComponent<{
1206
1194
  type: BooleanConstructor;
1207
1195
  default: boolean;
1208
1196
  };
1197
+ loading: {
1198
+ type: BooleanConstructor;
1199
+ default: boolean;
1200
+ };
1209
1201
  }>> & {
1210
1202
  onUpdateSelect?: ((...args: any[]) => any) | undefined;
1211
1203
  onUpdatePage?: ((...args: any[]) => any) | undefined;
@@ -1214,6 +1206,7 @@ declare const _default: import("vue").DefineComponent<{
1214
1206
  dragEndWidth: import("vue").Ref<number>;
1215
1207
  showKeys: import("vue").ComputedRef<any>;
1216
1208
  titleList: import("vue").ComputedRef<string[]>;
1209
+ isOptionsNull: import("vue").ComputedRef<boolean>;
1217
1210
  handleSelect: (option: any) => void;
1218
1211
  searchByPage: (onePage: number) => void;
1219
1212
  changeWidth: ({ distance }: any) => void;
@@ -1289,10 +1282,15 @@ declare const _default: import("vue").DefineComponent<{
1289
1282
  type: BooleanConstructor;
1290
1283
  default: boolean;
1291
1284
  };
1285
+ loading: {
1286
+ type: BooleanConstructor;
1287
+ default: boolean;
1288
+ };
1292
1289
  }>> & {
1293
1290
  onUpdateSelect?: ((...args: any[]) => any) | undefined;
1294
1291
  onUpdatePage?: ((...args: any[]) => any) | undefined;
1295
1292
  }, {
1293
+ loading: boolean;
1296
1294
  dynamicOptionInfo: import("../..").AnyObject;
1297
1295
  fieldTitleList: import("../..").AnyObject[];
1298
1296
  optionList: import("../..").AnyObject[];
@@ -1778,9 +1776,9 @@ declare const _default: import("vue").DefineComponent<{
1778
1776
  showAdd: boolean;
1779
1777
  };
1780
1778
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
1781
- editDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
1782
- handleDisplayCategorySelect: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1783
- handleDisplayCategoryRemove: (index: number, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1779
+ editDisplayCategory: (item: import("../../../components/table-filter/src/types").ICategoryItemType, cb?: any) => void;
1780
+ handleDisplayCategorySelect: (item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
1781
+ handleDisplayCategoryRemove: (index: number, item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
1784
1782
  handleDisplayCategoryAdd: (cb?: any) => void;
1785
1783
  handlerBlur: () => void;
1786
1784
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
@@ -1791,13 +1789,13 @@ declare const _default: import("vue").DefineComponent<{
1791
1789
  updateKey: (index: number, val: any) => void;
1792
1790
  updateCondition: (index: number, val: any) => void;
1793
1791
  getParamCfg: (key: string) => any;
1794
- initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType[]) => Promise<void>;
1792
+ initFilterConditions: (tableId: string, rawConditions: import("../../../components/table-filter/src/types").ISearchConfigType[]) => Promise<void>;
1795
1793
  getRawFilterConditions: () => any;
1796
1794
  isShowValueCfg: (con: string) => boolean;
1797
- handleEditDisplayCategory: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1795
+ handleEditDisplayCategory: (item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
1798
1796
  handleDisplayCategoryAddState: () => void;
1799
1797
  findConditionByDisplayCategory: (sid: string) => unknown;
1800
- handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
1798
+ handleDisplayCategorySelectProxy: (item: import("../../../components/table-filter/src/types").ICategoryItemType) => void;
1801
1799
  clearFormData: () => void;
1802
1800
  handleInitConditions: () => Promise<void>;
1803
1801
  validate: () => Promise<unknown>;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as s,watch as o,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as y,Fragment as C,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as w,SettingsOutline as I,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import{vFlexibleResize as J}from"../../../shared/directive/flexibleResize.js";import{InjectionFilterApiConfig as M,InjectionClassifyfilterType as A}from"../../table-filter/src/constants/index.js";import{root_isShowResetButton as T}from"./const/index.js";import E from"../../table-filter/src/hooks/useMixins.js";import F from"../../table-filter/src/hooks/useAdvanced.js";const R={key:0,class:"header"},W={class:"tree"},q=["onClick"],G=["onClick"],Q=["onClick"],$={class:"child-item-name"},D={key:1,class:"tree-type-footer"},V={class:"selected-num"},H=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),K={key:0,class:"tile-type classify-1"},U={key:0,class:"header"},X={class:"right-setting"},Y=["onClick"],Z={class:"parent ellips"},ee={class:"children"},ie=["onClick"],ne={key:1,class:"selected-list"},le={class:"selected-num"},te=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),ae={class:"name"},se={class:"name"},oe={key:0,class:"main-wrapper"},de=["onClick"],ce={class:"tree-footer"},re=["onClick"],he=["onClick"],ue={key:0,class:"select-type-footer"},fe={class:"selected-num"},pe=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var me=e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>({})},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})},filterType:{type:String,default:"1"}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:me}){const ge=e,{handleGetConfigApi:ve}=E(),{transformClassifyChild:ye}=F(),Ce=i(),ke=x(),Se=n(null);let be=n(150),xe=n(!1),Oe=n([]),_e=n([]),we=n([]),Ie=n(2),Le=n({name:"全部数据",sid:"all_data"}),Ne=n([]),ze=n(""),je=n(!1),Be=n("全部数据");l(T,ge.isShowResetButton),l(M,ge.filterApiConfig),l(A,ge.filterType);let Pe=t((()=>0===Ie.value?{marginRight:"8px"}:2===Ie.value?{display:"inline-block"}:{})),Je=t((()=>{let e=_e.value.filter((e=>-1!==ge.conditionSid.indexOf(e.sid)));if(-1!==ge.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Me=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Xe(n,l)+i}));function Ae(e){e.open?e.open=!1:e.open=!0}function Te(e,i,n){Be.value=e.name;let l=function(e){let i=[];return Oe.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,ge.conditionSid));qe(!1);const t=ye(null==e?void 0:e.conObj,ge.searchFieldList);me("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ee(){let e="";if(2===Ie.value)e=0;else{let i=Ie.value;e=++i}be.value=150,Fe(e)}async function Fe(e,i){let n={tableId:ge.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ve(n,"requestSaveListPersonaSetting",{},ge.filterApiConfig)&&me("setClassificationIndex",e)}catch(e){console.log(e)}}function Re(){je.value=!0,qe(!1)}function We(e){je.value=e}function qe(e){xe.value=void 0===e?!xe.value:e}function Ge(){if(!ge.tableId)return ke.warning("请传入tableId");Oe.value=[];let{displayCategoryList:e=[],conditionList:i=[]}=ge.conditionMap;Ne.value=JSON.parse(JSON.stringify(e))||[],we.value=JSON.parse(JSON.stringify(i)),_e.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i]));let n=[];var l;0===Ne.value.length&&(Ne.value=["未分类"]),Ne.value.forEach((e=>{let i={name:e,children:[]};_e.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==ge.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=ye(null==n?void 0:n.conObj,ge.searchFieldList);me("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&n.push(i)})),n.unshift({name:"全部数据",sid:"all_data"}),Oe.value=n,0===Ie.value&&(l=!0,Oe.value.forEach((e=>{e.children&&e.children.length&&(e.open=l)})))}function Qe({distance:e}){const i=be.value+e;be.value=Math.min(Math.max(i,50),650)}function $e(){Fe(Ie.value,be.value)}async function De(){await Ue(ge.tableId),He()}async function Ve(e){await Ue(ge.tableId),Ke()}function He(e){Ke(e).then((e=>({})))}function Ke(e,i={}){if(!ge.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(ge.conditionMap));return new Promise(((i,l)=>{var t,a,s,o,d,c,r;if(Object.keys(n).length>0){we.value=n.conditionList||[],Ne.value=n.displayCategoryList||[];let l={conditionList:we.value,displayCategoryList:Ne.value};me("getQuickSearchListObj",l),ze.value=null!=(t=n.settingId)?t:"";const h=we.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(s=null==(a=Ce.tableOptions)?void 0:a.filterCondition)?void 0:s.displayCategory)&&e&&i({name:null==(d=null==(o=Ce.tableOptions)?void 0:o.filterCondition)?void 0:d.name,sid:null==(r=null==(c=Ce.tableOptions)?void 0:c.filterCondition)?void 0:r.displayCategory}),i(h)}else i({})}))}async function Ue(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ve(i,"requestTableCondiTionList",{},ge.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Xe(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{s((()=>{let i=e.composedPath&&e.composedPath();Se.value&&i.includes(Se.value)||qe(!1)}))}))})),o((()=>ge.tableId),(e=>{e&&He(!0)}),{immediate:!0,deep:!0}),o((()=>ge.curClassificationIndex),(e=>{void 0!==e&&(Ie.value=e,Ge())}),{immediate:!0,deep:!0}),o((()=>ge.curClassificationWidth),(e=>{e&&(be.value=Number(e)||150)}),{immediate:!0}),o((()=>ge.conditionMap),(e=>{!async function(){try{await Ge()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(Ie)]),style:u(h(Pe))},[0===h(Ie)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(be)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),y("ul",W,[(d(!0),c(C,null,k(h(Oe),((i,n)=>(d(),c(C,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(C,{key:1},[y("span",{class:r(["parent",{open:i.open}]),onClick:e=>Ae(i)},[y("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,G),i.open?(d(!0),c(C,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Te(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[y("span",{class:r(["child-item",{selected:e.selected}])},[y("span",$,g(Xe(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[y("span",null,g(h(Me)(e)),1)])),_:2},1024)):v("v-if",!0)],8,Q)))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Te(i)},g(i.name),11,q))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",D,[y("div",V,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),y("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[H,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:Qe,onEnd:$e}]]):v("v-if",!0),1===h(Ie)?(d(),c(C,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(we).filter((e=>e.isShow)).length>0?(d(),c("div",K,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",U,[y("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[m(" 全部数据 "),h(Le).digital||0===h(Le).digital?(d(),c(C,{key:0},[m(" ("+g(h(Le).digital||0)+") ",1)],64)):v("v-if",!0)],2),y("div",X,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),y("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(C,null,k(h(Oe).slice(1),((e,i)=>(d(),c(C,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(C,{key:1},[y("span",Z,g(e.name),1),y("div",ee,[(d(!0),c(C,null,k(e.children,((i,n)=>(d(),c(C,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Te(i,0,e)},g(Xe(i.name,null==i?void 0:i.isPublic)),11,ie)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Te(e)},g(e.name)+" "+g(e.digital),11,Y))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ne,[y("div",le,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(C,null,k(h(Oe).slice(1),(e=>(d(),c(C,null,[e.children&&0!==e.children.length?(d(!0),c(C,{key:1},k(e.children,((i,n)=>(d(),c(C,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Te(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Te(e)},null,8,["component","onClick"])]))],64)))),256)),y("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[te,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(Ie)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:Se},[y("span",{class:"title",onClick:n[3]||(n[3]=()=>qe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[y("span",ae,g(h(Je)),1)])),default:b((()=>[y("span",se,g(h(Je)),1)])),_:1}),p(h(O),{component:h(xe)?h(B):h(L)},null,8,["component"])]),h(xe)?(d(),c("div",oe,[y("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(C,null,k(h(Oe),((i,n)=>(d(),c(C,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(C,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Ae(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,re)):v("v-if",!0),i.open?(d(!0),c(C,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Te(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[y("span",{class:r(["child-item",{selected:e.selected}])},[y("span",null,g(Xe(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[y("span",null,g(h(Me)(e)),1)])),_:2},1024)):v("v-if",!0)],8,he)))),128)):v("v-if",!0)],64)):(d(),c(C,{key:0},[y("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Te(i)},g(i.name),11,de),y("div",ce,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ee},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Re},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ue,[y("div",fe,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),y("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[pe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(we),displayCategoryList:h(Ne),settingId:h(ze),tableId:e.tableId,classifyModal:h(je),onSaveGetTableCondiTionList:Ve,onCondiTionListInit:De,onSetClassifyModal:We},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal"])],6))}});export{me as default};
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onMounted as a,nextTick as s,watch as o,openBlock as d,createElementBlock as c,normalizeClass as r,unref as h,normalizeStyle as u,withDirectives as f,createVNode as p,createTextVNode as m,toDisplayString as g,createCommentVNode as v,createElementVNode as y,Fragment as C,renderList as k,createBlock as S,withCtx as b}from"vue";import{useMessage as x,NIcon as O,NTooltip as _}from"naive-ui";import{Repeat as I,SettingsOutline as w,ChevronDown as L,ChevronForward as N,Checkmark as z,Close as j,ChevronUp as B}from"@vicons/ionicons5";import P from"./components/set-classification/index.vue.js";import{vFlexibleResize as J}from"../../../shared/directive/flexibleResize.js";import{InjectionFilterApiConfig as M,InjectionClassifyfilterType as A}from"../../table-filter/src/constants/index.js";import{root_isShowResetButton as T}from"./const/index.js";import E from"../../table-filter/src/hooks/useMixins.js";import F from"../../table-filter/src/hooks/useAdvanced.js";const R={key:0,class:"header"},W={class:"tree"},q=["onClick"],G=["onClick"],Q=["onClick"],$={class:"child-item-name"},D={key:1,class:"tree-type-footer"},V={class:"selected-num"},H=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),K={key:0,class:"tile-type classify-1"},U={key:0,class:"header"},X={class:"right-setting"},Y=["onClick"],Z={class:"parent ellips"},ee={class:"children"},ie=["onClick"],ne={key:1,class:"selected-list"},le={class:"selected-num"},te=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),ae={class:"name"},se={class:"name"},oe={key:0,class:"main-wrapper"},de=["onClick"],ce={class:"tree-footer"},re=["onClick"],he=["onClick"],ue={key:0,class:"select-type-footer"},fe={class:"selected-num"},pe=y("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var me=e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>({})},conditionSid:{type:Array,default:()=>["all_data"]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})},filterType:{type:String,default:"1"}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:me}){const ge=e,{handleGetConfigApi:ve}=E(),{transformClassifyChild:ye}=F(),Ce=i(),ke=x(),Se=n(null);let be=n(150),xe=n(!1),Oe=n([]),_e=n([]),Ie=n([]),we=n(2),Le=n({name:"全部数据",sid:"all_data"}),Ne=n([]),ze=n(""),je=n(!1),Be=n("全部数据");l(T,ge.isShowResetButton),l(M,ge.filterApiConfig),l(A,ge.filterType);let Pe=t((()=>0===we.value?{marginRight:"8px"}:2===we.value?{display:"inline-block"}:{})),Je=t((()=>{let e=_e.value.filter((e=>-1!==ge.conditionSid.indexOf(e.sid)));if(-1!==ge.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Me=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Xe(n,l)+i}));function Ae(e){e.open?e.open=!1:e.open=!0}function Te(e,i,n){Be.value=e.name;let l=function(e){let i=[];return Oe.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,ge.conditionSid));qe(!1);const t=ye(null==e?void 0:e.conObj,ge.searchFieldList);me("changeSearch",Boolean("all_data"===e.sid),e,t,n,l)}function Ee(){let e="";if(2===we.value)e=0;else{let i=we.value;e=++i}be.value=150,Fe(e)}async function Fe(e,i){let n={tableId:ge.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ve(n,"requestSaveListPersonaSetting",{},ge.filterApiConfig)&&me("setClassificationIndex",e)}catch(e){console.log(e)}}function Re(){je.value=!0,qe(!1)}function We(e){je.value=e}function qe(e){xe.value=void 0===e?!xe.value:e}function Ge(){if(!ge.tableId)return ke.warning("请传入tableId");Oe.value=[];let{displayCategoryList:e=[],conditionList:i=[],settingId:n=""}=ge.conditionMap;Ne.value=JSON.parse(JSON.stringify(e))||[],Ie.value=JSON.parse(JSON.stringify(i)),_e.value=JSON.parse(JSON.stringify([{name:"全部数据",sid:"all_data"},...i])),ze.value=n;let l=[];var t;0===Ne.value.length&&(Ne.value=["未分类"]),Ne.value.forEach((e=>{let i={name:e,children:[]};_e.value.forEach((n=>{if(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid){if(-1!==ge.conditionSid.indexOf(n.sid)){n.selected=!0,i.open=!0;const e=ye(null==n?void 0:n.conObj,ge.searchFieldList);me("changeSearch",!1,n,e)}n.isShow&&i.children.push(n)}})),i.children.length>0&&l.push(i)})),l.unshift({name:"全部数据",sid:"all_data"}),Oe.value=l,0===we.value&&(t=!0,Oe.value.forEach((e=>{e.children&&e.children.length&&(e.open=t)})))}function Qe({distance:e}){const i=be.value+e;be.value=Math.min(Math.max(i,50),650)}function $e(){Fe(we.value,be.value)}async function De(){await Ue(ge.tableId),He()}async function Ve(e){await Ue(ge.tableId),Ke()}function He(e){Ke(e).then((e=>({})))}function Ke(e,i={}){if(!ge.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:JSON.parse(JSON.stringify(ge.conditionMap));return new Promise(((i,l)=>{var t,a,s,o,d,c,r;if(Object.keys(n).length>0){Ie.value=n.conditionList||[],Ne.value=n.displayCategoryList||[];let l={conditionList:Ie.value,displayCategoryList:Ne.value};me("getQuickSearchListObj",l),ze.value=null!=(t=n.settingId)?t:"";const h=Ie.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(s=null==(a=Ce.tableOptions)?void 0:a.filterCondition)?void 0:s.displayCategory)&&e&&i({name:null==(d=null==(o=Ce.tableOptions)?void 0:o.filterCondition)?void 0:d.name,sid:null==(r=null==(c=Ce.tableOptions)?void 0:c.filterCondition)?void 0:r.displayCategory}),i(h)}else i({})}))}async function Ue(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ve(i,"requestTableCondiTionList",{},ge.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Xe(e,i){return i&&e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{document.addEventListener("click",(e=>{s((()=>{let i=e.composedPath&&e.composedPath();Se.value&&i.includes(Se.value)||qe(!1)}))}))})),o((()=>ge.tableId),(e=>{e&&He(!0)}),{immediate:!0}),o((()=>ge.curClassificationIndex),(e=>{void 0!==e&&(we.value=e,Ge())}),{immediate:!0}),o((()=>ge.curClassificationWidth),(e=>{e&&(be.value=Number(e)||150)}),{immediate:!0}),o((()=>ge.conditionMap),(e=>{!async function(){try{await Ge()}catch(e){console.log(e)}}()}),{immediate:!0,deep:!0}),(i,n)=>(d(),c("div",{class:r(["classification-block","classificationIndex-"+h(we)]),style:u(h(Pe))},[0===h(we)?f((d(),c("div",{key:0,class:"tree-type classify-0",style:u({width:h(be)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",R,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"header-1",onClick:Ee},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"header-1",onClick:Re},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])):v("v-if",!0),y("ul",W,[(d(!0),c(C,null,k(h(Oe),((i,n)=>(d(),c(C,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(C,{key:1},[y("span",{class:r(["parent",{open:i.open}]),onClick:e=>Ae(i)},[y("span",null,g(i.name),1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,G),i.open?(d(!0),c(C,{key:0},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Te(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,trigger:"hover",placement:"right"},{trigger:b((()=>[y("span",{class:r(["child-item",{selected:e.selected}])},[y("span",$,g(Xe(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[y("span",null,g(h(Me)(e)),1)])),_:2},1024)):v("v-if",!0)],8,Q)))),128)):v("v-if",!0)],64)):(d(),c("span",{key:0,class:r(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Te(i)},g(i.name),11,q))],2)):v("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(d(),c("div",D,[y("div",V,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),y("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[H,m(" 清空筛选 ")])])):v("v-if",!0)],4)),[[h(J),{mode:"VR",onMove:Qe,onEnd:$e}]]):v("v-if",!0),1===h(we)?(d(),c(C,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||h(Ie).filter((e=>e.isShow)).length>0?(d(),c("div",K,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(d(),c("div",U,[y("span",{class:r(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[m(" 全部数据 "),h(Le).digital||0===h(Le).digital?(d(),c(C,{key:0},[m(" ("+g(h(Le).digital||0)+") ",1)],64)):v("v-if",!0)],2),y("div",X,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"setting-1",onClick:Re},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])])):v("v-if",!0),y("ul",{class:"tile",style:u({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(d(!0),c(C,null,k(h(Oe).slice(1),((e,i)=>(d(),c(C,null,[e.children&&e.children.length>0?(d(),c("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(d(),c(C,{key:1},[y("span",Z,g(e.name),1),y("div",ee,[(d(!0),c(C,null,k(e.children,((i,n)=>(d(),c(C,null,[i.isShow?(d(),c("span",{key:n,class:r(["child-item",{selected:i.selected}]),onClick:n=>Te(i,0,e)},g(Xe(i.name,null==i?void 0:i.isPublic)),11,ie)):v("v-if",!0)],64)))),256))])],64)):(d(),c("span",{key:0,class:r(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Te(e)},g(e.name)+" "+g(e.digital),11,Y))])):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ne,[y("div",le,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(d(!0),c(C,null,k(h(Oe).slice(1),(e=>(d(),c(C,null,[e.children&&0!==e.children.length?(d(!0),c(C,{key:1},k(e.children,((i,n)=>(d(),c(C,null,[i.selected?(d(),c("div",{class:"selected-item",key:i.sid},[m(g(i.name)+" ",1),p(h(O),{component:h(j),onClick:n=>Te(i,0,e)},null,8,["component","onClick"])])):v("v-if",!0)],64)))),256)):(d(),c("div",{class:"selected-item",key:e.sid},[m(g(e.name)+" ",1),p(h(O),{component:h(j),onClick:i=>Te(e)},null,8,["component","onClick"])]))],64)))),256)),y("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[te,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],64)):v("v-if",!0),2===h(we)?(d(),c("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:Se},[y("span",{class:"title",onClick:n[3]||(n[3]=()=>qe())},[p(h(_),{trigger:"hover",placement:"top"},{trigger:b((()=>[y("span",ae,g(h(Je)),1)])),default:b((()=>[y("span",se,g(h(Je)),1)])),_:1}),p(h(O),{component:h(xe)?h(B):h(L)},null,8,["component"])]),h(xe)?(d(),c("div",oe,[y("ul",{class:"tree",style:u({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(d(!0),c(C,null,k(h(Oe),((i,n)=>(d(),c(C,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(d(),c("li",{key:n,class:r(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(d(),c(C,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(d(),c("span",{key:0,class:r(["parent",{open:i.open}]),onClick:e=>Ae(i)},[m(g(i.name)+g(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),p(h(O),{component:i.open?h(L):h(N)},null,8,["component"])],10,re)):v("v-if",!0),i.open?(d(!0),c(C,{key:1},k(i.children.filter((e=>e.isShow)),((e,n)=>(d(),c("div",{key:n,class:"children",onClick:n=>Te(e,0,i)},[e.isShow?(d(),S(h(_),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:b((()=>[y("span",{class:r(["child-item",{selected:e.selected}])},[y("span",null,g(Xe(e.name,null==e?void 0:e.isPublic)),1),e.selected?(d(),S(h(O),{key:0,component:h(z),size:"20"},null,8,["component"])):v("v-if",!0)],2)])),default:b((()=>[y("span",null,g(h(Me)(e)),1)])),_:2},1024)):v("v-if",!0)],8,he)))),128)):v("v-if",!0)],64)):(d(),c(C,{key:0},[y("span",{class:r(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Te(i)},g(i.name),11,de),y("div",ce,[1!=e.hideConditionChangeBtn?(d(),c("span",{key:0,class:"tree-footer-icon",onClick:Ee},[p(h(O),{component:h(I),size:"16"},null,8,["component"]),m(" "+g("切换"))])):v("v-if",!0),1!=e.hideConditionChangeSetting?(d(),c("span",{key:1,class:"tree-footer-icon",onClick:Re},[p(h(O),{component:h(w),size:"16"},null,8,["component"]),m(" "+g("设置"))])):v("v-if",!0)])],64))],2)):v("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(d(),c("div",ue,[y("div",fe,"已选择"+g(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),y("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Te({sid:"all_data",name:"全部数据",digital:h(Le).digital}))},[pe,m(" 清空筛选 ")])])):v("v-if",!0)])):v("v-if",!0)],512)):v("v-if",!0),v(" 弹出弹窗 "),p(P,{ref:"search",searchFieldList:e.searchFieldList,conditionList:h(Ie),displayCategoryList:h(Ne),settingId:h(ze),tableId:e.tableId,classifyModal:h(je),onSaveGetTableCondiTionList:Ve,onCondiTionListInit:De,onSetClassifyModal:We},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal"])],6))}});export{me as default};
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  export * from './src/interface';
3
3
  declare const ConfigProvider: SFCWithInstall<import("vue").DefineComponent<{
4
4
  themeOverrides: {
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
3
3
  updateUnchangedValue: {
4
4
  type: BooleanConstructor;
@@ -39,7 +39,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
39
39
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
40
40
  }>>;
41
41
  emit: (event: "update:formatted-value", ...args: any[]) => void;
42
- datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
42
+ datePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
43
43
  panelInstRef: import("vue").Ref<null>;
44
44
  placeholderRef: import("vue").Ref<any>;
45
45
  currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
@@ -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 type FormattedValue = string | [string, string];
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  updateUnchangedValue: {
@@ -1,4 +1,4 @@
1
- import { SFCWithInstall } from '../../../es/shared/types';
1
+ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const Editor: SFCWithInstall<import("vue").DefineComponent<{
3
3
  editorConfig: {
4
4
  type: ObjectConstructor;