cnhis-design-vue 3.1.44 → 3.1.45-beta.0

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 (268) hide show
  1. package/es/components/base-search/src/index.vue.js +1 -1
  2. package/es/components/big-table/src/BigTable.vue.js +1 -1
  3. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  4. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  5. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  6. package/es/components/big-table/src/components/separate.vue.js +1 -1
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  8. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  9. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  10. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  11. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  12. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  13. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  14. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  15. package/es/components/classification/src/index.vue.js +1 -1
  16. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  17. package/es/components/fabric-chart/index.d.ts +5 -41
  18. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -41
  19. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  20. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/{useBirthProcess.d.ts → birthProcess/useBirthProcess.d.ts} +2 -2
  22. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -0
  23. package/es/components/fabric-chart/src/hooks/{useBirthProcessChart.d.ts → birthProcess/useBirthProcessChart.d.ts} +3 -3
  24. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -0
  25. package/es/components/fabric-chart/src/hooks/index.d.ts +5 -7
  26. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +6 -0
  28. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -0
  29. package/es/components/fabric-chart/src/hooks/temperature/index.d.ts +6 -0
  30. package/es/components/fabric-chart/src/hooks/temperature/index.js +1 -0
  31. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +4 -0
  32. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
  33. package/es/components/fabric-chart/src/hooks/{useCenter.d.ts → temperature/useCenter.d.ts} +3 -3
  34. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -0
  35. package/es/components/fabric-chart/src/hooks/{useLeft.d.ts → temperature/useLeft.d.ts} +3 -3
  36. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -0
  37. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +4 -0
  38. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -0
  39. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +4 -0
  40. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -0
  41. package/es/components/fabric-chart/src/hooks/{useShadow.d.ts → temperature/useShadow.d.ts} +1 -1
  42. package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +1 -0
  43. package/es/components/fabric-chart/src/hooks/{useTemperatureChart.d.ts → temperature/useTemperatureChart.d.ts} +3 -3
  44. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -0
  45. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +4 -0
  46. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
  47. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  48. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  49. package/es/components/fabric-chart/src/interface.d.ts +1 -1
  50. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  51. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  52. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  53. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  54. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  55. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  56. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  57. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  58. package/es/components/form-render/src/FormRender.vue.js +1 -1
  59. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  60. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  61. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  62. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
  63. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  64. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  65. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  66. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  67. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  68. package/es/components/form-render/src/components/renderer/select.js +1 -1
  69. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  70. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  71. package/es/components/guide/src/renderer.js +1 -1
  72. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  73. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  74. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  75. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  76. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  77. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  78. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  79. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  87. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
  89. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  90. package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
  91. package/es/components/iho-table/src/utils/index.js +1 -1
  92. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  93. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  94. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  95. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  96. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  97. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  98. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  99. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  100. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  101. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  102. package/es/components/map/src/Map.vue.js +1 -1
  103. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -1
  104. package/es/components/quick-search/src/index.vue.js +1 -1
  105. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  106. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  107. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  108. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  109. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  110. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  111. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  112. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  113. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  114. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  115. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  116. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  117. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  118. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  119. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  120. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  121. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  122. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  123. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  124. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  125. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  126. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  127. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  128. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  129. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  130. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  131. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  132. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -1
  133. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -1
  134. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -1
  135. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -1
  136. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -1
  137. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -1
  138. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -1
  139. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -1
  140. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  141. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  142. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  143. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  144. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  145. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  146. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -1
  147. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -1
  148. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  149. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  150. package/es/components/table-filter/src/directive/resize.js +1 -1
  151. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  152. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  153. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  154. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  155. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  156. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  157. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  158. package/es/shared/components/no-data/NoData.vue.js +1 -1
  159. package/es/shared/package.json.js +1 -1
  160. package/package.json +2 -2
  161. package/es/components/base-search/src/index.vue2.js +0 -1
  162. package/es/components/big-table/src/components/NoData.vue2.js +0 -1
  163. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +0 -1
  164. package/es/components/big-table/src/components/input-button.vue2.js +0 -1
  165. package/es/components/big-table/src/components/separate.vue2.js +0 -1
  166. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +0 -1
  167. package/es/components/button-print/src/components/EditFormat.vue2.js +0 -1
  168. package/es/components/button-print/src/components/IdentityVerification.vue2.js +0 -1
  169. package/es/components/classification/src/components/search-filter/index.vue2.js +0 -1
  170. package/es/components/classification/src/components/set-classification/index.vue2.js +0 -1
  171. package/es/components/classification/src/components/table-modal/index.vue2.js +0 -1
  172. package/es/components/classification/src/index.vue2.js +0 -1
  173. package/es/components/date-picker/src/DatePicker.vue2.js +0 -1
  174. package/es/components/fabric-chart/src/FabricChart.vue2.js +0 -1
  175. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +0 -1
  176. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +0 -1
  177. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +0 -1
  178. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
  179. package/es/components/fabric-chart/src/hooks/useBottom.js +0 -1
  180. package/es/components/fabric-chart/src/hooks/useCenter.js +0 -1
  181. package/es/components/fabric-chart/src/hooks/useLeft.js +0 -1
  182. package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
  183. package/es/components/fabric-chart/src/hooks/useOther.js +0 -1
  184. package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
  185. package/es/components/fabric-chart/src/hooks/useRight.js +0 -1
  186. package/es/components/fabric-chart/src/hooks/useShadow.js +0 -1
  187. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +0 -1
  188. package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
  189. package/es/components/fabric-chart/src/hooks/useTop.js +0 -1
  190. package/es/components/field-set/src/FieldSet.vue2.js +0 -1
  191. package/es/components/form-config/src/FormConfig.vue2.js +0 -1
  192. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +0 -1
  193. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +0 -1
  194. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +0 -1
  195. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +0 -1
  196. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +0 -1
  197. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +0 -1
  198. package/es/components/form-render/src/FormRender.vue2.js +0 -1
  199. package/es/components/form-render/src/FormRenderWrapper.vue2.js +0 -1
  200. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +0 -1
  201. package/es/components/form-render/src/components/tooltipMessage.vue2.js +0 -1
  202. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
  203. package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
  204. package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
  205. package/es/components/iho-table/src/IhoTable.vue2.js +0 -1
  206. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +0 -1
  207. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +0 -1
  208. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +0 -1
  209. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +0 -1
  210. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +0 -1
  211. package/es/components/info-header/src/InfoHeader.vue2.js +0 -1
  212. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +0 -1
  213. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +0 -1
  214. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +0 -1
  215. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +0 -1
  216. package/es/components/info-header/src/components/infoDescription/index.vue2.js +0 -1
  217. package/es/components/info-header/src/components/patientInfo/index.vue2.js +0 -1
  218. package/es/components/keyboard/src/Keyboard.vue2.js +0 -1
  219. package/es/components/keyboard/src/components/InputNumber.vue2.js +0 -1
  220. package/es/components/keyboard/src/components/NumberPanel.vue2.js +0 -1
  221. package/es/components/map/src/Map.vue2.js +0 -1
  222. package/es/components/picture-clipper/src/PictureClipper.vue2.js +0 -1
  223. package/es/components/quick-search/src/index.vue2.js +0 -1
  224. package/es/components/recommend-search/src/RecommendSearch.vue2.js +0 -1
  225. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +0 -1
  226. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +0 -1
  227. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +0 -1
  228. package/es/components/scale-view/src/ScaleView.vue2.js +0 -1
  229. package/es/components/scale-view/src/components/AnswerParse.vue2.js +0 -1
  230. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +0 -1
  231. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +0 -1
  232. package/es/components/scale-view/src/components/NoData.vue2.js +0 -1
  233. package/es/components/search-cascader/src/SearchCascader.vue2.js +0 -1
  234. package/es/components/select-label/src/LabelFormContent.vue2.js +0 -1
  235. package/es/components/select-label/src/components/label-classify.vue2.js +0 -1
  236. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +0 -1
  237. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +0 -1
  238. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +0 -1
  239. package/es/components/steps-wheel/src/StepsWheel.vue2.js +0 -1
  240. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +0 -1
  241. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +0 -1
  242. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +0 -1
  243. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +0 -1
  244. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +0 -1
  245. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +0 -1
  246. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +0 -1
  247. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +0 -1
  248. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +0 -1
  249. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +0 -1
  250. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +0 -1
  251. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
  252. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +0 -1
  253. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +0 -1
  254. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +0 -1
  255. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +0 -1
  256. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +0 -1
  257. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +0 -1
  258. package/es/components/time-line/src/TimeLine.vue2.js +0 -1
  259. package/es/components/time-picker/src/TimePicker.vue2.js +0 -1
  260. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +0 -1
  261. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +0 -1
  262. package/es/shared/components/SelectPage/SelectPage.vue2.js +0 -1
  263. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +0 -1
  264. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +0 -1
  265. package/es/shared/components/no-data/NoData.vue2.js +0 -1
  266. /package/es/_virtual/{_plugin-vue_export-helper.js → plugin-vue_export-helper.js} +0 -0
  267. /package/es/components/fabric-chart/src/{hooks/constant.d.ts → constants/index.d.ts} +0 -0
  268. /package/es/components/fabric-chart/src/{hooks/constant.js → constants/index.js} +0 -0
@@ -1 +0,0 @@
1
- import{defineComponent as e,computed as a,openBlock as l,createBlock as u,unref as t,mergeProps as r,withCtx as v,createElementBlock as i,Fragment as n,renderList as o}from"vue";import{NCheckboxGroup as p,NCheckbox as s}from"naive-ui";var m=e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:""},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:m}){const y=e,f=a({set(e){m("update:value",e)},get:()=>Array.isArray(y.value)?y.value:y.value?[y.value]:[]});function d(e){y.multiple||!Array.isArray(e)?f.value=e:f.value=function(e){return e.filter((e=>!f.value.includes(e)))}(e)[0]}return(a,m)=>(l(),u(t(p),r(a.$attrs,{value:t(f),"onUpdate:value":d}),{default:v((()=>[(l(!0),i(n,null,o(e.options,(e=>(l(),u(t(s),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}});export{m as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import p from"../../../../../date-picker/index.js";import d from"moment";import{isString as m}from"lodash-es";var v=e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const i=e,n=a(),c=t((()=>{let e="";switch(i.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function y(e){n.value=e;const a=e?d(e).format(c.value):e;v("update:value",a)}return l((()=>i.value),(e=>{e&&m(e)?n.value=d(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":y},null,8,["type","clearable","valueFormat","placeholder","value"]))}});export{v as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as d,normalizeClass as i,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as m,createTextVNode as p,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import b from"../../../../../date-picker/index.js";import h from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";const Y={class:"render-widget-date-range"},F={key:0,class:"radio-date-group"},M=["onClick"],D={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=e({__name:"DateRangeInner",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const w=e,P=a([]),C=a(!1),_=a(""),j=a(),x=a(),H=l((()=>{let e="";switch(w.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),O=l((()=>{let e="";switch(w.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function T(e,a){switch(a){case"start":j.value=e;break;case"end":x.value=e}const l=j.value?h(j.value).format(H.value):null,t=x.value?h(x.value).format(H.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function U(e){return!!x.value&&e>x.value}function $(e){return!!j.value&&e<j.value}return t((()=>w.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=h(a.trim()).valueOf()),void(l.trim()&&(x.value=h(l.trim()).valueOf()))}j.value=x.value=null,_.value=""}),{immediate:!0}),function(){const e=k(H.value);P.value=e}(),(a,l)=>(u(),r("div",Y,[C.value?n("v-if",!0):(u(),r("div",F,[(u(!0),r(v,null,d(P.value,(e=>(u(),r("span",{key:e.value,class:i(["radio-date-item",_.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,_.value===l?_.value="":_.value=l,void(_.value&&f("update:value",_.value));var l}},o(e.label),11,M)))),128))])),s(c(y),{secondary:"",class:i(C.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>C.value=!C.value)},{default:m((()=>[p(o(c(O)),1)])),_:1},8,["class"]),C.value?(u(),r("div",D,[s(c(b),{type:e.type,to:"body","default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":U,"onUpdate:value":l[1]||(l[1]=e=>T(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,s(c(b),{type:e.type,to:"body","default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:x.value,"is-date-disabled":$,"onUpdate:value":l[2]||(l[2]=e=>T(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}});export{w as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as d}from"vue";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as o}from"lodash-es";var n=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:n}){const c=e,p=a(),v=t((()=>{let e="";switch(c.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),m={"今天":[f().startOf("day").valueOf(),f().endOf("day").valueOf()],"昨天":[f().subtract(1,"days").startOf("day").valueOf(),f().subtract(1,"days").endOf("day").valueOf()],"近一周":[f().subtract(1,"w").startOf("day").valueOf(),f().endOf("day").valueOf()],"近一月":[f().subtract(1,"months").startOf("day").valueOf(),f().endOf("day").valueOf()]};function i(e){if(e){const[a,t]=e,l=`${f(a).format(v.value)} ~ ${f(t).format(v.value)}`;n("update:value",l)}else n("update:value",e)}return l((()=>c.value),(e=>{if(e&&o(e)&&e.includes("~")){const[a,t]=e.split("~");p.value=[f(a.trim()).valueOf(),f(t.trim()).valueOf()]}else p.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(s),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:p.value,shortcuts:m,"onUpdate:value":i},null,8,["type","clearable","startPlaceholder","endPlaceholder","value"]))}});export{n as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as l,watch as t,openBlock as a,createBlock as u,unref as r,withCtx as n,createVNode as i,createElementVNode as d}from"vue";import{NInputGroup as o,NInputNumber as s}from"naive-ui";import{isString as m}from"lodash-es";const p=d("span",{class:"divider"}," ~ ",-1);var v=e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:d}){const v=e,c=l(),h=l();function f(e,l){var t,a;let u="";switch(l){case"startNumber":u=`${null!=e?e:""} ~ ${null!=(t=h.value)?t:""}`;break;case"endNumber":u=`${null!=(a=c.value)?a:""} ~ ${null!=e?e:""}`}const r=u.split(" ~ ").some((e=>e.trim()));d("update:value",r?u:"")}return t((()=>v.value),(e=>{if(c.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,t]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(t.trim()&&(h.value=Number(t.trim())))}}),{immediate:!0}),(l,t)=>(a(),u(r(o),{class:"render-widget-input-number-group"},{default:n((()=>[i(r(s),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":t[0]||(t[0]=e=>f(e,"startNumber"))},null,8,["placeholder","value"]),p,i(r(s),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":t[1]||(t[1]=e=>f(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}});export{v as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as l,inject as t,watch as s,computed as o,openBlock as a,createElementBlock as n,Fragment as i,renderList as c,unref as r,createElementVNode as d,toDisplayString as u,normalizeClass as p,withDirectives as f,createBlock as m,normalizeStyle as b,withCtx as v,createVNode as h,withModifiers as y,createCommentVNode as g}from"vue";import{NTag as k,NTooltip as S,NIcon as w}from"naive-ui";import{ChevronUpCircleOutline as C,ChevronDownCircleOutline as x}from"@vicons/ionicons5";import U from"../../../directive/resize.js";import L from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as j}from"../../../constants/index.js";import{isString as B}from"lodash-es";const T={class:"label-attr-filter-container"},_={class:"edit-f-label"},z={class:"label-f-content"},I={key:0,class:"label-f-unfold-btn"},q=["onClick"],A=d("span",null,"收起",-1),G=d("span",null,"展开",-1);var H=e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:H}){const M=e,{handleGetConfigApi:N}=L(),O="rgb(85, 133, 245)",D=l([]),E=l([]),F=t(j);s((()=>M.value),(e=>{const l=e&&B(e)?e.split("|#|"):[];D.value=l}),{immediate:!0});const J=o((()=>E.value&&E.value.length>0?E.value.map((e=>(e.labelList.map((e=>{e.isSelect=D.value.includes(e.labelShowText)})),e))):[])),K=e=>e.isSelect?{background:e.backgroundColor||O,borderColor:e.backgroundColor||O}:{};return(async()=>{try{const{widgetCfg:e={}}=M.componentCfg,{classifyStr:l=""}=e;let t=await N({classifyStr:l},"requestListByClassify",{},F);if(t){const{data:e}=t,{list:l=[]}=e;E.value=l}}catch(e){console.log(e)}})(),(e,l)=>(a(),n("div",T,[(a(!0),n(i,null,c(r(J),(e=>(a(),n("div",{class:"edit-labels-content",key:e.classifyId},[d("span",_,u(e.classifyName)+":",1),d("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((a(),n("div",z,[(a(!0),n(i,null,c(e.labelList,(e=>(a(),m(r(k),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)D.value.push(l.labelShowText);else{const e=D.value.findIndex((e=>e===l.labelShowText));e>-1&&D.value.splice(e,1)}H("update:value",D.value.join("|#|"))})(l,e),style:b(K(e))},{default:v((()=>[h(r(S),{placement:"top-start",duration:0},{trigger:v((()=>[d("span",null,u(e.labelShowText),1)])),default:v((()=>[d("span",null,u(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[r(U),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(a(),n("div",I,[d("span",{class:"operate-btn",onClick:y((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(a(),n(i,{key:0},[A,h(r(w),{component:r(C),size:"16"},null,8,["component"])],64)):(a(),n(i,{key:1},[G,h(r(w),{component:r(x),size:"16"},null,8,["component"])],64))],8,q)])):g("v-if",!0)])))),128))]))}});export{H as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as t,ref as l,inject as a,computed as o,openBlock as s,createBlock as u,unref as n,mergeProps as i,isRef as r}from"vue";import{NSelect as p}from"naive-ui";import c from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as f}from"../../../constants/index.js";var v=e({__name:"LabelOut",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const m=e,{handleGetConfigApi:h}=c(),d=t(),b=l([]),g=a(f),y=o({set(e){const t=e?e.join("|#|"):e;v("update:value",t)},get:()=>m.value?m.value.split("|#|"):[]}),x=o((()=>{if(b.value&&b.value.length>0){let e=[],t=[];return b.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText}))}))})),t}return[]}));return(async()=>{try{const{widgetCfg:e={}}=m.componentCfg,{classifyStr:t=""}=e;let l=await h({classifyStr:t},"requestListByClassify",{},g);if(l){const{data:e}=l,{list:t=[]}=e;b.value=t}}catch(e){console.log(e)}})(),(e,t)=>(s(),u(n(p),i({to:"body"},n(d),{value:n(y),"onUpdate:value":t[0]||(t[0]=e=>r(y)?y.value=e:null),options:n(x)}),null,16,["value","options"]))}});export{v as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,inject as n,computed as l,openBlock as o,createBlock as i,unref as u,mergeProps as r,isRef as s,h as c}from"vue";import{NSelect as p,NTag as v}from"naive-ui";import{useDebounceFn as d}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";var y=e({__name:"Select",props:{value:{type:[Array,String,Number]}},emits:["update:value","changeInitState"],setup(e,{emit:y}){const g=e,{handleGetConfigApi:h}=f(),b=a(),w=t([]),I=t(!1),S=t(!1),A=n(m),O=l({set(e){const a=Array.isArray(e)?e:e?[e]:null;y("update:value",a)},get(){var e;if(Array.isArray(g.value)&&g.value.length>0){const{multiple:e}=b;return e||1!=g.value.length?g.value:g.value[0]}return null!=(e=g.value)?e:null}});async function k(e){try{if(b.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:o,valueKey:i}=b.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),S.value=!0;let r=await h(u,"requestDynamicSelect",{},A);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[o[0]],value:e[i]})));return w.value=t,t}}}catch(e){console.log(e)}finally{S.value=!1}}const K=d((async e=>{await async function(e){const{manualMapping:a}=b;if(!a){const a=e.trim();await k(a)}}(e)}),300);async function M(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=b;if(e&&Array.isArray(t))return I.value=!1,void(w.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&A&&(I.value=!0,await k(""))}function x(e){const{manualMapping:a}=b;if(a)return c("div",e.label);const{showKeys:t=[]}=b.dynamicOptionInfo;return b.dynamicOptionInfo&&t.length>0?c("div",{class:"select-widget-dynamic-option"},t.map((a=>c("span",{class:"select-widget-dynamic-item"},e[a])))):c("div",e.label)}function C({option:e,handleClose:a}){const{multiple:t}=b;return t?c(v,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>c("div",e.label)}):c("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=b;await M();const o=Array.isArray(g.value)?g.value.length>0:g.value;if(!l&&!o){if(e)return y("update:value",a),void y("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=w.value[0];y("update:value",[e.value]),y("changeInitState",n,!0);break}}}}(),(e,a)=>(o(),i(u(p),r(u(b),{value:u(O),"onUpdate:value":a[0]||(a[0]=e=>s(O)?O.value=e:null),to:"body",loading:S.value,options:w.value,remote:I.value,"render-label":x,"render-tag":C,onSearch:u(K),onClear:M}),null,16,["value","loading","options","remote","onSearch"]))}});export{y as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,openBlock as t,createBlock as a,unref as n,withCtx as l,createElementBlock as s,Fragment as p,renderList as i,createVNode as r,createTextVNode as u,toDisplayString as c,createElementVNode as m,createCommentVNode as o}from"vue";import{NTimeline as y,NTimelineItem as f,NSpace as d,NButton as _}from"naive-ui";const v={class:"content"},x={class:"content-name"},k={key:0,class:"content-extra"};var T=e({__name:"TimeLine",props:{items:{type:Array,default:()=>[]}},setup:e=>(T,b)=>(t(),a(n(y),{class:"c-time-line"},{default:l((()=>[(t(!0),s(p,null,i(e.items,((e,y)=>(t(),a(n(f),{key:y,type:e.type},{default:l((()=>[(t(!0),s(p,null,i(e.subItem,((p,i)=>(t(),a(n(d),{key:i,vertical:"",align:"start"},{default:l((()=>[r(n(_),{strong:"",secondary:"",type:e.type},{default:l((()=>[u(c(p.title),1)])),_:2},1032,["type"]),m("div",v,[r(n(d),{justify:"space-between"},{default:l((()=>[m("span",x,c(p.name),1),m("span",null,c(p.time),1)])),_:2},1024),p.extraText?(t(),s("p",k,c(p.extraText),1)):o("v-if",!0),m("p",null,c(p.content),1)])])),_:2},1024)))),128))])),_:2},1032,["type"])))),128))])),_:1}))});export{T as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as r,ref as s,computed as t,openBlock as o,createBlock as m,unref as i,mergeProps as a,createSlots as f,renderList as u,withCtx as l,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";var d=e({__name:"TimePicker",setup(e,{expose:d}){const k=r(),h=s(null),$=t((()=>Reflect.get(k,"format")?k.format:"HH:mm:ss")),{focus:_,blur:v}=c(h,$,k);return d({$timePicker:h,focus:_,blur:v}),(e,r)=>(o(),m(i(p),a({ref_key:"timePickerRef",ref:h},e.$attrs),f({_:2},[u(e.$slots,((r,s)=>({name:s,fn:l((()=>[n(e.$slots,s)]))})))]),1040))}});export{d as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,reactive as l,onMounted as o,nextTick as i,onUnmounted as n,resolveComponent as a,openBlock as s,createElementBlock as r,createCommentVNode as c,createVNode as u,unref as d,withCtx as p,createElementVNode as f,Fragment as m,renderList as g,withDirectives as h,normalizeClass as v,toDisplayString as _,vShow as k,createTextVNode as y}from"vue";import L from"spark-md5";import C from"axios";import{useMessage as z,NIcon as x,NProgress as S,NButton as F}from"naive-ui";import{UploadProps as w,getUploadData as b,statusSet as I}from"./hooks/upload-data.js";import{UploadComputed as A}from"./hooks/upload-computed.js";import{FolderOutline as M,DocumentAttachOutline as q,Close as B}from"@vicons/ionicons5";const E={class:"c-chunk-upload-container"},U=f("p",null,"点击或将文件拖拽到这里上传",-1),$={class:"c-file-list-conatiner"},D={key:0,class:"file-list"},N={class:"c-f-item"},P={class:"c-f-item-icon"},R={class:"c-f-item-info"},j={class:"c-f-item-info-title"},T={class:"title"},G={class:"size"},J={class:"c-f-item-info-time"},K={class:"c-f-item-btn"},O={class:"upload-btn"},H=f("span",null,"上传新文件",-1);var Q=e({__name:"chunk-upload-new",props:{...w},emits:["getSumbitList","closeUpload"],setup(e,{expose:w,emit:Q}){const V=e,{UploadState:W}=b();var X=C.create({});const Y=t(null),Z=t(null),ee=l(W),te=z(),{initState:le,uploadArguments:oe,autoStart:ie,btnAttrs:ne}=A(V,ee);le();const ae=e=>{let t=new FileReader;(new Date).getTime();let l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=0;const i=1024e4;let n=Math.ceil(e.size/i),a=new L.ArrayBuffer;function s(){let n=o*i,a=n+i>=e.size?e.size:n+i;t.readAsArrayBuffer(l.call(e.file,n,a))}I(e,"md5"),e.pause(),s(),t.onload=t=>{if(a.append(t.target.result),o<n)o++,s();else{let t=a.end();re(t,e)}},t.onerror=function(){console.warn(`文件${e.name}读取出错,请检查该文件`),e.cancel()}},se=e=>{let t=(e=>{const t=(null==V?void 0:V.max_size)||"";if(!t)return!1;let l=e.size/1024<+t;return l||te.error(`附件大小超过了${(e=>{let t;return e?(t=+(+e).toFixed(2),t<1024?t+"KB":t<1048576?(t/1024).toFixed(2)+"MB":t<1073741824?(t/1048576).toFixed(2)+"GB":void 0):t})(t)}`),!l})(e);((e,t)=>{let l=!1;if(e){if(e.includes("*"))return!1;let o=t.getExtension();e.includes(o)||(te.error(`不支持${o}格式`),l=!0)}return l})(V.propsCategoryMap,e)||(()=>{var e,t;if(V.maxLength>0){let l=(null==(e=V.defaultList)?void 0:e.length)||0,o=(null==(t=ee.configList)?void 0:t.length)||0;if(V.maxLength<=l+o)return te.error(`最多只能上传${V.maxLength}个`),!0}return!1})()||t?e.ignored=!0:(e.file_upload_status="",I(e,"init"),e.crm_upload_config={...e},ee.configList.push(e),I(e,"ready"),ie.value&&(e.pause(),ae(e)))},re=async(e,t)=>{try{const l=await((e,t,l)=>{let o=ee.uploadConfig.checkFileMd5Exist;return new Promise(((i,n)=>{const a={md5:t,fileName:e,...oe.value};X.get(o,{params:a}).then((e=>{i(e.data)})).catch((e=>{I(l,"failed"),console.log("verifyUpload -> err",e)}))}))})(t.name,e,t);if("00000"==l.code){const{data:e}=l||{};if(e.presence)return I(t,"complete"),t.crm_chkuns_complete_status="complete",void(t.crm_uploade_resInfo={url:e.path,name:t.name,size:t.size})}t.uniqueIdentifier=e,I(t,"uploading"),t.resume()}catch(e){console.log(e,"chunk-upload-computeMD5Success")}},ce=()=>{},ue=(e,t,l)=>{let o=JSON.parse(l);o.success?(I(t,"merging"),((e,t)=>{new Promise(((l,o)=>{const i={...e,...oe.value};X.post(ee.uploadConfig.partFileMerge,i,{timeout:0}).then((({data:e})=>{if("00000"===e.code){if(I(t,"complete"),Y.value){let l=(null==e?void 0:e.data)||{};Y.value.fileList.forEach((e=>{e.uniqueIdentifier==t.uniqueIdentifier&&(e.crm_chkuns_complete_status="complete",e.crm_uploade_resInfo={url:l.path||l.url,name:t.name,size:t.size,...l})}))}l()}else te.error("上传失败"),l()})).catch((e=>{console.log("mergeRequest -> err",e),o()}))}))})({md5:t.uniqueIdentifier,fileName:t.name,fileChunkNum:t.chunks.length},t),o.needMerge&&I(t,"merging")):I(t,"failed")},de=()=>{var e,t;let l=(null==(t=null==(e=null==Z?void 0:Z.value)?void 0:e.$el)?void 0:t.querySelector("input"))||!1;l&&l.click()},pe=(e,t="text")=>((null==e?void 0:e.file_upload_status)||{})[t],fe=e=>["complete","failed"].includes(pe(e,"status")),me=(e,t)=>{I(t,"failed")},ge=(e,t)=>{if("complete"==t.crm_chkuns_complete_status)return 100;return parseInt(100*e+"",10)},he=()=>{var e;0!=((null==(e=ee.configList)?void 0:e.length)||0)?i((()=>{ee.configList.forEach((e=>{(e.file_upload_status||{}).status&&(I(e,"uploading"),ae(e))}))})):te.info("请选择文件")},ve=()=>{var e,t;console.log("cancelcancelcancel"),null==(t=null==(e=Y.value)?void 0:e.uploader)||t.cancel(),ee.configList=[],Q("closeUpload",!1)};return(()=>{try{console.log(V.getChunkUploadConfig),V.getChunkUploadConfig().then((e=>{console.log(e),ee.uploadConfig={...e},ee.headers={Authorization:"bearer "+ee.uploadConfig.token},(()=>{for(const e in ee.headers)X.defaults.headers.common[e]=ee.headers[e];X.defaults.withCredentials=ee.withCredentials})()}))}catch(e){console.log(e)}})(),o((()=>{i((()=>{}))})),n((()=>{})),w({cancel:ve,confirm:()=>{console.log("ininini");const{configList:e}=ee;0!==((null==e?void 0:e.length)||0)?e.filter((e=>!["complete","failed"].includes(e.file_upload_status.status))).length>0?te.info("请上传文件或者等待文件上传完成!"):((()=>{var e;let t=(null==(e=null==ee?void 0:ee.configList)?void 0:e.length)||0,l=[];t>0&&ee.configList.forEach((e=>{"complete"==e.crm_chkuns_complete_status&&l.push({size:e.size,...e.crm_uploade_resInfo})})),Q("getSumbitList",l)})(),ve()):te.info("请选择文件上传")}}),(e,t)=>{const l=a("uploader-unsupport"),o=a("uploader-drop"),i=a("uploader-file"),n=a("uploader-list"),L=a("uploader-btn"),C=a("uploader");return s(),r("div",E,[c(" 上传 "),u(C,{ref_key:"uploaderDom",ref:Y,options:ee.options,autoStart:d(ie),onFileAdded:se,onFileSuccess:ue,onFileProgress:ce,onFileError:me,class:"uploader-app"},{default:p((()=>[u(l),u(o,null,{default:p((()=>[f("div",{class:"c-drap-container dragger-btn",onClick:de},[u(d(x),{component:d(M)},null,8,["component"]),U])])),_:1}),u(n,null,{default:p((e=>[f("div",$,[e?(s(),r("ul",D,[(s(!0),r(m,null,g(e.fileList,(e=>(s(),r("li",{key:e.id},[h(u(i,{class:v("file_"+e.id),ref_for:!0,ref:"files",file:e,list:!0},{default:p((t=>[f("div",{class:v(["c-file-container",{"c-file-boder-bottom":fe(e)}])},[f("div",N,[f("div",P,[u(d(x),{component:d(q),style:{color:"#5585f5"}},null,8,["component"])]),f("div",R,[f("div",j,[f("span",T,_(e.name),1),f("span",G,"("+_(t.formatedSize)+")",1)]),f("div",J,[f("span",null,_(t.formatedTimeRemaining),1),f("span",null,_(pe(e,"text")),1)])]),f("div",K,[u(d(x),{component:d(B),onClick:t=>(e=>{e.cancel?e.cancel():e.remove&&e.remove();let t=e.id;ee.configList=ee.configList.filter((e=>e.id!==t))})(e)},null,8,["component","onClick"])])]),u(d(S),{percentage:ge(ee.progress,e),type:"line","show-indicator":!1},null,8,["percentage"])],2)])),_:2},1032,["class","file"]),[[k,!e.ignored]])])))),128))])):c("v-if",!0)])])),_:1}),f("div",O,[h(u(L,{attrs:d(ne),ref_key:"uploadBtnDom",ref:Z},{default:p((()=>[H])),_:1},8,["attrs"]),[[k,!1]]),u(d(F),{type:"primary",class:"mgl-10",onClick:he},{default:p((()=>[y("开始上传")])),_:1})])])),_:1},8,["options","autoStart"])])}}});export{Q as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,reactive as o,computed as s,onMounted as l,openBlock as i,createElementBlock as t,withDirectives as a,normalizeClass as r,unref as n,createElementVNode as d,Fragment as u,vShow as p,createCommentVNode as m,createVNode as c,withCtx as v,normalizeStyle as f,toDisplayString as g,createTextVNode as h,withModifiers as y,createBlock as k}from"vue";import"xe-utils";import"moment";import b from"../../../../shared/utils/vexutilsExpand.js";import{getVodData as C}from"../hooks/vod-data.js";import{VodComputed as U}from"../hooks/vod-computed.js";import L from"../../../../shared/components/player-vod/video-modal.js";import V from"../vod-upload-modal.js";import{NIcon as D,NButton as O}from"naive-ui";import{PlayCircleSharp as w,PlayCircleOutline as x,RemoveCircleSharp as S}from"@vicons/ionicons5";import _ from"../../../../shared/assets/img/video_default_cover.png.js";import j from"../../../../shared/assets/img/video.png.js";import F from"../../../../shared/assets/img/success.png.js";import z from"../../../../shared/components/VueDraggable/src/vuedraggable.js";const N={class:"c-upload"},M={class:"chunk-btn-content"},A={class:"c-uploader-btn"},J=["src"],B=d("div",{class:"uploader-text"},[d("p",null,"点击上传"),d("span",{class:"guage-text"},"上传视频(不超过50M)")],-1),E=["src"],P=d("div",{class:"uploader-text"},[d("p",null,"上传视频")],-1),T={class:"vod-wrap c-uploader-preview-wrap"},R={key:0,class:"vod-def-bg vod-uploading"},G={class:"vod-def-bg vod-done"},H=["src"],K=["src"],$={class:"c-icon-wrap"},q={class:"vod-def-bg vod-error"},I=["src"],Q={class:"tooltip-wrap error-wrap"},W=["onClick"];var X=e({__name:"vod-chunk-upload",props:{formData:{type:Object,default:()=>({})},source:String,limitNum:{default:1},defFileList:{default:""},isLock:Boolean,isDetail:{type:Boolean,default:!1},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["vodFileList"],setup(e,{emit:X}){const Y=e,{VodState:Z}=C(),ee=o(Z),oe={},{isShowBtn:se,maskHeight:le,showPercent:ie,allow_format:te,defaultValue:ae,isDisabled:re,max_size:ne,maxlength:de}=U(Y,ee,{mainForm:oe});console.log(se.value,"----isShowBtn---",Y.formData.title),s((()=>ue()));const ue=()=>{const{formData:e}=Y;let o=[];if(o="guage"===Y.source?Y.defFileList:null==oe?void 0:oe.handleSysParams(oe.defaultValue[e.name]||e.default_val),o=JSON.parse(JSON.stringify(o)),!o)return[];let s=[];return Array.isArray(o)&&(s=[...o]),b.isJSON(o)&&(s=JSON.parse(o)),Array.isArray(s)?(s.forEach((e=>{e.thumbUrl=e.vodCoverUrl||void 0,e.uid=(-Math.random()).toString(),e.status="done"})),ee.fileList=s,console.log(ee.fileList,"----list---list"),pe(s),s):[]},pe=e=>{if(!Array.isArray(e))return"";const{formData:o,source:s}=Y;let l=[];e.forEach((e=>{if("done"===e.status&&(e.response&&"00000"==e.response.code||e.url)){const{data:o={}}=e.response||{};e.url||o.videoUrl;let s=e.vodCoverUrl||o.vodCoverUrl;l.push({name:e.name,size:e.size,url:e.url||o.videoUrl,vodCoverUrl:s,uid:e.id||e.uid||(-Math.random()).toString()})}})),console.log(l,"---resList---",Y.formData.title);let i=JSON.stringify(l);"guage"!==s?oe.baseForm.setFieldsValue({[o.val_key]:i}):X("vodFileList",i,Y.formData)},me=(e,o)=>{let s,l;if(e.type&&(l=e.type),e.url||e.videoUrl){if(s=e.url||e.videoUrl,!l){let e=s.split(".");l=`video/${e[e.length-1]}`}}else s=URL.createObjectURL(e.originFileObj);ee.playerOptions={sources:[{type:l,src:s}]},ee.videoVisible=!0},ce=()=>{ee.videoVisible=!1},ve=()=>{re.value||(ee.chunkUploadVisible=!0)},fe=e=>{let o=[];e.forEach((e=>{let s=e.videoCoverPic||void 0;o.push({name:e.videoName||e.name,url:e.videoUrl||e.url,size:e.size,vodCoverUrl:s,status:"done",uid:(-Math.random()).toString()})})),ee.fileList.push(...o),pe(ee.fileList)},ge=()=>{pe(ee.fileList)};return l((()=>{ue()})),(o,s)=>(i(),t("div",N,[e.isDetail||Y.isLock?m("v-if",!0):a((i(),t("div",{key:0,class:r(["c-chunk-uploader-btn",{"disable-upload":n(re)}]),onClick:ve},[d("div",M,[d("div",A,["guage"==Y.source?(i(),t(u,{key:0},[d("img",{src:n(j),class:"guage-img"},null,8,J),B],64)):(i(),t(u,{key:1},[d("img",{src:n(j),class:"guage-img"},null,8,E),P],64))])])],2)),[[p,n(se)]]),c(n(z),{modelValue:ee.fileList,"onUpdate:modelValue":s[0]||(s[0]=e=>ee.fileList=e),animation:"150",itemKey:"uid",disabled:n(re).value,options:ee.draggableOptions,onUpdate:ge,class:"drag-content"},{item:v((({element:o,index:s})=>{return[d("div",T,[m(" 上传中 "),"uploading"===o.status?(i(),t("div",R,[m(" TODO: 封面图补充 "),d("div",{class:"uploading-mask",style:f({height:n(le)(o)})},[d("span",null,g(n(ie)(o.percent))+"%",1)],4)])):"done"===o.status?(i(),t(u,{key:1},[m(" 上传完成 "),d("div",G,[d("img",{src:(l=o,l.thumbUrl?l.thumbUrl:_),class:"vod-cover-img"},null,8,H),d("div",{class:r(["tooltip-wrap",{"is-new":o.isNew}])},[d("img",{src:n(F),class:"upload-img"},null,8,K),h(" 上传成功 ")],2),m(" 播放图标 "),d("div",$,[c(n(D),{component:n(w),class:"icon-play theme_filled",onClick:y((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"]),c(n(D),{component:n(x),class:"icon-play theme_outlined",onClick:y((e=>me(o)),["prevent","stop"])},null,8,["component","onClick"])])])],2112)):"error"===o.status?(i(),t(u,{key:2},[m(" 上传失败 "),d("div",q,[d("img",{src:o.thumbUrl,class:"vod-cover-img"},null,8,I),d("div",Q,[d("span",null,g(o.message?o.message:"上传失败,继续上传?"),1),c(n(O),{size:"small",onClick:y((e=>{}),["prevent","stop"])},{default:v((()=>[h("确定")])),_:2},1032,["onClick"])])])],2112)):m("v-if",!0),!["done","error"].includes(o.status)||n(re)||e.isDetail?m("v-if",!0):(i(),t("div",{key:3,onClick:y((e=>{return o=s,ee.fileList.splice(o,1),void pe(ee.fileList);var o}),["stop"]),class:"uploader-preview-delete"},[c(n(D),{class:"pre-delete",component:n(S)},null,8,["component"])],8,W))])];var l})),_:1},8,["modelValue","disabled","options"]),ee.videoVisible?(i(),k(n(L),{key:1,visible:ee.videoVisible,formData:Y.formData,playerOptions:ee.playerOptions,onCloseVideoModal:ce},null,8,["visible","formData","playerOptions"])):m("v-if",!0),c(n(V),{modelValue:ee.chunkUploadVisible,"onUpdate:modelValue":s[1]||(s[1]=e=>ee.chunkUploadVisible=e),modalTitle:Y.formData.name,max_size:n(ne),maxLength:n(de),propsCategoryMap:n(te),defaultList:ee.fileList,getChunkUploadConfig:e.getChunkUploadConfig,onGetSumbitList:fe},null,8,["modelValue","modalTitle","max_size","maxLength","propsCategoryMap","defaultList","getChunkUploadConfig"])]))}});export{X as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,resolveComponent as a,openBlock as n,createElementBlock as o,createVNode as t,unref as s,withModifiers as c,withCtx as l,createTextVNode as r}from"vue";import{NButton as g}from"naive-ui";import{ChevronBackOutline as i,ChevronForwardOutline as d}from"@vicons/ionicons5";var p=e({__name:"SelectPage",props:{searchPageConfig:{type:Object,default:()=>({page:1,total:0,hasNextPage:!1})},handleSearchChangePage:{type:Function,default:()=>{}}},setup(e){const p=e;return(e,h)=>{const f=a("n-icon");return n(),o("div",{class:"form-select-btn",onMousedown:h[2]||(h[2]=e=>e.preventDefault())},[t(s(g),{disabled:p.searchPageConfig.page<=1,type:"dashed",block:"",onClick:h[0]||(h[0]=c((e=>p.handleSearchChangePage("prev")),["self","stop"]))},{default:l((()=>[t(f,{component:s(i)},null,8,["component"]),r(" 上一页 ")])),_:1},8,["disabled"]),t(s(g),{disabled:1==+p.searchPageConfig.asyncCount?!p.searchPageConfig.hasNextPage:p.searchPageConfig.page>=p.searchPageConfig.total,type:"dashed",block:"",onClick:h[1]||(h[1]=c((e=>p.handleSearchChangePage("next")),["self","stop"]))},{default:l((()=>[r(" 下一页 "),t(f,{component:s(d)},null,8,["component"])])),_:1},8,["disabled"])],32)}}});export{p as default};
@@ -1 +0,0 @@
1
- import{defineComponent as s,computed as e,openBlock as t,createElementBlock as l,mergeProps as a,unref as i,toDisplayString as n,createCommentVNode as c,createElementVNode as o}from"vue";const r={key:0},u=["xlink:href"];var f=s({__name:"SvgIcon",props:{iconClass:{default:""},title:{default:""},className:null},setup(s){const f=s,v=e((()=>`#icon-${f.iconClass}`)),m=e((()=>f.className?"svg-icon "+f.className:"svg-icon"));return(e,f)=>(t(),l("svg",a({class:i(m),"aria-hidden":"true"},e.$attrs),[s.title?(t(),l("title",r,n(s.title),1)):c("v-if",!0),o("use",{"xlink:href":i(v)},null,8,u)],16))}});export{f as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as l,openBlock as o,createElementBlock as a,createVNode as s,unref as i,withCtx as n,createElementVNode as u,normalizeClass as r,renderSlot as f,toDisplayString as p,createTextVNode as m}from"vue";import{NTooltip as c}from"naive-ui";import"xe-utils";import"moment";import v from"../../utils/vexutilsExpand.js";const d={class:"text-over-tooltip-components"};var x=e({__name:"TextOverTooltip",props:{content:null,className:null,refName:null,effect:{default:"dark"},placement:{default:"top"},tooltipTitle:{default:""},isAlias:{type:Boolean}},setup(e){const x=e;let N=t(!1);const h=l((()=>{let e=x.tooltipTitle||x.content||"";return v.isNumber(e)?e.toString():e})),T=t(null),g=()=>{N.value=!1};return(t,l)=>(o(),a("div",d,[s(i(c),{effect:e.effect,show:i(N),placement:e.placement},{trigger:n((()=>[u("div",{class:r(["ellipsis",e.className]),onMouseover:l[0]||(l[0]=t=>(e=>{if(x.isAlias)return void(N.value=!0);let t=T.value.parentNode.offsetWidth,l=T.value.offsetWidth;N.value=l>t})(e.refName)),onMouseout:g},[u("i",{ref:e=>{e&&(T.value=e)}},[f(t.$slots,"default"),u("i",null,p(e.content),1)],512)],34)])),default:n((()=>[m(" "+p(i(h)),1)])),_:3},8,["effect","show","placement"])]))}});export{x as default};
@@ -1 +0,0 @@
1
- import{defineComponent as t,computed as e,openBlock as a,createElementBlock as o,unref as s,createCommentVNode as n,createElementVNode as r,toDisplayString as i}from"vue";import p from"../../assets/img/nodata.png.js";import m from"../../assets/img/no-permission.png.js";import l from"../../assets/img/failure.png.js";import g from"../../assets/img/notfound.png.js";const f=["src"];var c=t({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(t){const c=t,u={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"22px",color:"#333"},d={width:"260px",maxWidth:"70%"},y={marginTop:"12px",marginBottom:"0",fontSize:"16px",color:"rgb(0 0 0 / 80%)"},x={marginTop:"6px",fontSize:"14px",color:"rgb(0 0 0 / 40%)"},h=e((()=>{let t=null;switch(c.noDataImg){case"no-permission":t=m;break;case"failure":t=l;break;case"nodata":t=p;break;default:t=g}return t})),D=e((()=>{let t="";switch(c.noDataImg){case"no-permission":t="请联系管理员";break;case"failure":t="请稍后再试"}return t}));return(e,p)=>(a(),o("div",{style:u},[t.showImg?(a(),o("img",{key:0,style:d,src:s(h),alt:""},null,8,f)):n("v-if",!0),r("p",{style:y},i(t.noDataTip),1),s(D)?(a(),o("span",{key:1,style:x},i(s(D)),1)):n("v-if",!0)]))}});export{c as default};