cnhis-design-vue 3.1.40 → 3.1.41-release.1

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 (534) hide show
  1. package/README.md +87 -87
  2. package/es/components/big-table/src/BigTable.vue.js +1 -0
  3. package/es/components/big-table/src/components/NoData.vue.js +1 -0
  4. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -0
  5. package/es/components/big-table/src/components/input-button.vue.js +1 -0
  6. package/es/components/big-table/src/components/separate.vue.js +1 -0
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -0
  8. package/es/components/button-print/src/ButtonPrint.vue.js +1 -0
  9. package/es/components/button-print/src/components/EditFormat.vue.js +1 -0
  10. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -0
  11. package/es/components/button-print/src/components/Preview.vue.d.ts +1 -0
  12. package/es/components/button-print/src/components/Preview.vue.js +1 -0
  13. package/es/components/button-print/src/components/Preview.vue2.js +1 -0
  14. package/es/components/button-print/src/utils/print.d.ts +1 -1
  15. package/es/components/button-print/src/utils/print.js +1 -0
  16. package/es/components/button-print/style/index.css +1 -1
  17. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -0
  18. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -0
  19. package/es/components/field-set/src/FieldSet.vue.js +1 -0
  20. package/es/components/form-config/src/FormConfig.vue.js +1 -0
  21. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -0
  22. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -0
  23. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -0
  24. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -0
  25. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -0
  26. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -0
  27. package/es/components/form-render/src/FormRender.vue.js +1 -0
  28. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -0
  29. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -0
  30. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -0
  31. package/es/components/form-render/src/components/renderer/select.js +1 -0
  32. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -0
  33. package/es/components/form-render/src/hooks/useAnchor.js +1 -0
  34. package/es/components/form-render/src/hooks/useAutoHidden.js +1 -0
  35. package/es/components/iho-table/src/IhoTable.vue.js +1 -0
  36. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -0
  37. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -0
  38. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -0
  39. package/es/components/index.css +1 -1
  40. package/es/components/info-header/src/HiddenContent.vue.js +1 -0
  41. package/es/components/info-header/src/InfoEllipsis.vue.js +1 -0
  42. package/es/components/info-header/src/InfoHeader.vue.js +1 -0
  43. package/es/components/keyboard/src/Keyboard.vue.js +1 -0
  44. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -0
  45. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -0
  46. package/es/components/map/src/Map.vue.js +1 -0
  47. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -0
  48. package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -0
  49. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -0
  50. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -0
  51. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -0
  52. package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
  53. package/es/components/scale-view/src/ScaleView.vue.js +1 -0
  54. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -0
  55. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -0
  56. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -0
  57. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -0
  58. package/es/components/scale-view/src/components/NoData.vue.js +1 -0
  59. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -0
  60. package/es/components/select-label/src/LabelFormContent.vue.js +1 -0
  61. package/es/components/select-label/src/SelectLabel.vue.js +1 -0
  62. package/es/components/select-label/src/components/label-classify.vue.js +1 -0
  63. package/es/components/select-person/src/SelectPerson.vue.js +1 -0
  64. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -0
  65. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -0
  66. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -0
  67. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -0
  68. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
  69. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -0
  70. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -0
  71. package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -0
  72. package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -0
  73. package/es/components/table-filter/src/components/age-com/index.vue.js +1 -0
  74. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -0
  75. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -0
  76. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -0
  77. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -0
  78. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -0
  79. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -0
  80. package/es/components/table-filter/src/components/range-age/index.vue.js +1 -0
  81. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -0
  82. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -0
  83. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -0
  84. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -0
  85. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -0
  86. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -0
  87. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -0
  88. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
  89. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -0
  90. package/es/components/table-filter/style/index.css +1 -1
  91. package/es/components/time-line/src/TimeLine.vue.js +1 -0
  92. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -0
  93. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -0
  94. package/es/env.d.ts +24 -24
  95. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -0
  96. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -0
  97. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -0
  98. package/es/shared/components/no-data/NoData.vue.js +1 -0
  99. package/package.json +3 -2
  100. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  101. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  102. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  103. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  104. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  105. package/es/node_modules/@formily/reactive/esm/action.js +0 -1
  106. package/es/node_modules/@formily/reactive/esm/annotations/box.js +0 -1
  107. package/es/node_modules/@formily/reactive/esm/annotations/computed.js +0 -1
  108. package/es/node_modules/@formily/reactive/esm/annotations/observable.js +0 -1
  109. package/es/node_modules/@formily/reactive/esm/annotations/ref.js +0 -1
  110. package/es/node_modules/@formily/reactive/esm/annotations/shallow.js +0 -1
  111. package/es/node_modules/@formily/reactive/esm/array.js +0 -1
  112. package/es/node_modules/@formily/reactive/esm/autorun.js +0 -1
  113. package/es/node_modules/@formily/reactive/esm/batch.js +0 -1
  114. package/es/node_modules/@formily/reactive/esm/checkers.js +0 -1
  115. package/es/node_modules/@formily/reactive/esm/environment.js +0 -1
  116. package/es/node_modules/@formily/reactive/esm/externals.js +0 -1
  117. package/es/node_modules/@formily/reactive/esm/handlers.js +0 -1
  118. package/es/node_modules/@formily/reactive/esm/internals.js +0 -1
  119. package/es/node_modules/@formily/reactive/esm/observable.js +0 -1
  120. package/es/node_modules/@formily/reactive/esm/reaction.js +0 -1
  121. package/es/node_modules/@formily/reactive/esm/tree.js +0 -1
  122. package/es/node_modules/@formily/reactive/esm/untracked.js +0 -1
  123. package/es/packages/components/big-table/src/BigTable.vue.js +0 -1
  124. package/es/packages/components/big-table/src/components/NoData.vue.js +0 -1
  125. package/es/packages/components/big-table/src/components/edit-form/edit-separate.vue.js +0 -1
  126. package/es/packages/components/big-table/src/components/input-button.vue.js +0 -1
  127. package/es/packages/components/big-table/src/components/separate.vue.js +0 -1
  128. package/es/packages/components/bpmn-workflow/src/BpmnWorkflow.vue.js +0 -1
  129. package/es/packages/components/button-print/src/ButtonPrint.vue.js +0 -1
  130. package/es/packages/components/button-print/src/components/EditFormat.vue.js +0 -1
  131. package/es/packages/components/button-print/src/components/IdentityVerification.vue.js +0 -1
  132. package/es/packages/components/button-print/src/components/Preview.vue.js +0 -1
  133. package/es/packages/components/button-print/src/components/Preview.vue2.js +0 -1
  134. package/es/packages/components/button-print/src/utils/print.js +0 -1
  135. package/es/packages/components/fabric-chart/src/FabricChart.vue.js +0 -1
  136. package/es/packages/components/fabric-chart/src/components/PopupTip.vue.js +0 -1
  137. package/es/packages/components/field-set/src/FieldSet.vue.js +0 -1
  138. package/es/packages/components/form-config/src/FormConfig.vue.js +0 -1
  139. package/es/packages/components/form-config/src/components/FormConfigCreator.vue.js +0 -1
  140. package/es/packages/components/form-config/src/components/FormConfigDragDisplay.vue.js +0 -1
  141. package/es/packages/components/form-config/src/components/FormConfigEdit.vue.js +0 -1
  142. package/es/packages/components/form-config/src/components/renderer/CloseButton.vue.js +0 -1
  143. package/es/packages/components/form-config/src/components/renderer/ComplexNode.vue.js +0 -1
  144. package/es/packages/components/form-config/src/components/renderer/DefaultNode.vue.js +0 -1
  145. package/es/packages/components/form-render/src/FormRender.vue.js +0 -1
  146. package/es/packages/components/form-render/src/FormRenderWrapper.vue.js +0 -1
  147. package/es/packages/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +0 -1
  148. package/es/packages/components/form-render/src/components/renderer/searchCascade.js +0 -1
  149. package/es/packages/components/form-render/src/components/renderer/select.js +0 -1
  150. package/es/packages/components/form-render/src/components/tooltipMessage.vue.js +0 -1
  151. package/es/packages/components/form-render/src/hooks/useAnchor.js +0 -1
  152. package/es/packages/components/form-render/src/hooks/useAutoHidden.js +0 -1
  153. package/es/packages/components/iho-table/src/IhoTable.vue.js +0 -1
  154. package/es/packages/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  155. package/es/packages/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +0 -1
  156. package/es/packages/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +0 -1
  157. package/es/packages/components/info-header/src/HiddenContent.vue.js +0 -1
  158. package/es/packages/components/info-header/src/InfoEllipsis.vue.js +0 -1
  159. package/es/packages/components/info-header/src/InfoHeader.vue.js +0 -1
  160. package/es/packages/components/keyboard/src/Keyboard.vue.js +0 -1
  161. package/es/packages/components/keyboard/src/components/InputNumber.vue.js +0 -1
  162. package/es/packages/components/keyboard/src/components/NumberPanel.vue.js +0 -1
  163. package/es/packages/components/map/src/Map.vue.js +0 -1
  164. package/es/packages/components/recommend-search/src/RecommendSearch.vue.js +0 -1
  165. package/es/packages/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  166. package/es/packages/components/recommend-search/src/components/RecommendInput.vue.js +0 -1
  167. package/es/packages/components/recommend-search/src/components/RecommendMenu.vue.js +0 -1
  168. package/es/packages/components/recommend-search/src/components/RecommendSelect.vue.js +0 -1
  169. package/es/packages/components/scale-view/src/ScaleView.vue.js +0 -1
  170. package/es/packages/components/scale-view/src/components/AnswerParse.vue.js +0 -1
  171. package/es/packages/components/scale-view/src/components/EvaluateCountdown.vue.js +0 -1
  172. package/es/packages/components/scale-view/src/components/EvaluatePage.vue.js +0 -1
  173. package/es/packages/components/scale-view/src/components/LoadingCom.vue.js +0 -1
  174. package/es/packages/components/scale-view/src/components/NoData.vue.js +0 -1
  175. package/es/packages/components/search-cascader/src/SearchCascader.vue.js +0 -1
  176. package/es/packages/components/select-label/src/LabelFormContent.vue.js +0 -1
  177. package/es/packages/components/select-label/src/SelectLabel.vue.js +0 -1
  178. package/es/packages/components/select-label/src/components/label-classify.vue.js +0 -1
  179. package/es/packages/components/select-person/src/SelectPerson.vue.js +0 -1
  180. package/es/packages/components/shortcut-provider/src/ShortcutProvider.vue.js +0 -1
  181. package/es/packages/components/shortcut-setter/src/ShortcutSetter.vue.js +0 -1
  182. package/es/packages/components/shortcut-setter/src/ShortcutSetterItem.vue.js +0 -1
  183. package/es/packages/components/steps-wheel/src/StepsWheel.vue.js +0 -1
  184. package/es/packages/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  185. package/es/packages/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  186. package/es/packages/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  187. package/es/packages/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  188. package/es/packages/components/table-filter/src/components/age-com/index.vue.js +0 -1
  189. package/es/packages/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  190. package/es/packages/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  191. package/es/packages/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +0 -1
  192. package/es/packages/components/table-filter/src/components/classify-filter/index.vue.js +0 -1
  193. package/es/packages/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  194. package/es/packages/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  195. package/es/packages/components/table-filter/src/components/range-age/index.vue.js +0 -1
  196. package/es/packages/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +0 -1
  197. package/es/packages/components/table-filter/src/components/render-widget/components/Select.vue.js +0 -1
  198. package/es/packages/components/table-filter/src/components/render-widget/index.vue.js +0 -1
  199. package/es/packages/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  200. package/es/packages/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  201. package/es/packages/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  202. package/es/packages/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  203. package/es/packages/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  204. package/es/packages/components/time-line/src/TimeLine.vue.js +0 -1
  205. package/es/packages/components/vod-chunk-upload/src/chunk-upload-new.vue.js +0 -1
  206. package/es/packages/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +0 -1
  207. package/es/packages/shared/components/SelectPage/SelectPage.vue.js +0 -1
  208. package/es/packages/shared/components/SvgIcon/SvgIcon.vue.js +0 -1
  209. package/es/packages/shared/components/TextOverTooltip/TextOverTooltip.vue.js +0 -1
  210. package/es/packages/shared/components/no-data/NoData.vue.js +0 -1
  211. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  212. package/es/shared/utils/tapable/index.d.ts +0 -139
  213. /package/es/{packages/components → components}/annotation-edit/index.js +0 -0
  214. /package/es/{packages/components → components}/annotation-edit/src/AnnotationEdit.js +0 -0
  215. /package/es/{packages/components → components}/annotation-edit/src/type.js +0 -0
  216. /package/es/{packages/components → components}/big-table/index.js +0 -0
  217. /package/es/{packages/components → components}/big-table/src/BigTable.vue2.js +0 -0
  218. /package/es/{packages/components → components}/big-table/src/bigTableEmits.js +0 -0
  219. /package/es/{packages/components → components}/big-table/src/bigTableProps.js +0 -0
  220. /package/es/{packages/components → components}/big-table/src/bigTableState.js +0 -0
  221. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-date.js +0 -0
  222. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-input.js +0 -0
  223. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-select.js +0 -0
  224. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-time.js +0 -0
  225. /package/es/{packages/components → components}/big-table/src/components/edit-form/useCommon.js +0 -0
  226. /package/es/{packages/components → components}/big-table/src/constants/index.js +0 -0
  227. /package/es/{packages/components → components}/big-table/src/hooks/index.js +0 -0
  228. /package/es/{packages/components → components}/big-table/src/hooks/useAnchor.js +0 -0
  229. /package/es/{packages/components → components}/big-table/src/hooks/useAnnotation.js +0 -0
  230. /package/es/{packages/components → components}/big-table/src/hooks/useBatchEditing.js +0 -0
  231. /package/es/{packages/components → components}/big-table/src/hooks/useEdit.js +0 -0
  232. /package/es/{packages/components → components}/big-table/src/hooks/useEvent.js +0 -0
  233. /package/es/{packages/components → components}/big-table/src/hooks/useFormat.js +0 -0
  234. /package/es/{packages/components → components}/big-table/src/hooks/useNestTable.js +0 -0
  235. /package/es/{packages/components → components}/big-table/src/hooks/useSeparateRow.js +0 -0
  236. /package/es/{packages/components → components}/big-table/src/hooks/useTableParse.js +0 -0
  237. /package/es/{packages/components → components}/big-table/src/utils.js +0 -0
  238. /package/es/{packages/components → components}/bpmn-workflow/index.js +0 -0
  239. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +0 -0
  240. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +0 -0
  241. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +0 -0
  242. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +0 -0
  243. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +0 -0
  244. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +0 -0
  245. /package/es/{packages/components → components}/button-print/index.js +0 -0
  246. /package/es/{packages/components → components}/button-print/src/ButtonPrint.vue2.js +0 -0
  247. /package/es/{packages/components → components}/button-print/src/utils/browserPrint.js +0 -0
  248. /package/es/{packages/components → components}/button-print/src/utils/dialog.js +0 -0
  249. /package/es/{packages/components → components}/button-print/src/utils/index.js +0 -0
  250. /package/es/{packages/components → components}/editor/index.js +0 -0
  251. /package/es/{packages/components → components}/editor/src/Editor.js +0 -0
  252. /package/es/{packages/components → components}/fabric-chart/index.js +0 -0
  253. /package/es/{packages/components → components}/fabric-chart/src/components/PopupMenu.js +0 -0
  254. /package/es/{packages/components → components}/fabric-chart/src/components/useStyle.js +0 -0
  255. /package/es/{packages/components → components}/fabric-chart/src/hooks/constant.js +0 -0
  256. /package/es/{packages/components → components}/fabric-chart/src/hooks/index.js +0 -0
  257. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcess.js +0 -0
  258. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcessChart.js +0 -0
  259. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBottom.js +0 -0
  260. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCenter.js +0 -0
  261. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCommon.js +0 -0
  262. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCumputedPoint.js +0 -0
  263. /package/es/{packages/components → components}/fabric-chart/src/hooks/useDraw.js +0 -0
  264. /package/es/{packages/components → components}/fabric-chart/src/hooks/useEvent.js +0 -0
  265. /package/es/{packages/components → components}/fabric-chart/src/hooks/useGrid.js +0 -0
  266. /package/es/{packages/components → components}/fabric-chart/src/hooks/useLeft.js +0 -0
  267. /package/es/{packages/components → components}/fabric-chart/src/hooks/useOther.js +0 -0
  268. /package/es/{packages/components → components}/fabric-chart/src/hooks/useRight.js +0 -0
  269. /package/es/{packages/components → components}/fabric-chart/src/hooks/useShadow.js +0 -0
  270. /package/es/{packages/components → components}/fabric-chart/src/hooks/useTemperatureChart.js +0 -0
  271. /package/es/{packages/components → components}/fabric-chart/src/hooks/useTop.js +0 -0
  272. /package/es/{packages/components → components}/fabric-chart/src/interface.js +0 -0
  273. /package/es/{packages/components → components}/fabric-chart/src/utils/index.js +0 -0
  274. /package/es/{packages/components → components}/fabric-chart/src/utils/utils.js +0 -0
  275. /package/es/{packages/components → components}/field-set/index.js +0 -0
  276. /package/es/{packages/components → components}/form-config/index.js +0 -0
  277. /package/es/{packages/components → components}/form-config/src/components/FormConfigMaterialItem.js +0 -0
  278. /package/es/{packages/components → components}/form-config/src/components/index.js +0 -0
  279. /package/es/{packages/components → components}/form-config/src/components/renderer/index.js +0 -0
  280. /package/es/{packages/components → components}/form-config/src/constants/index.js +0 -0
  281. /package/es/{packages/components → components}/form-config/src/hooks/index.js +0 -0
  282. /package/es/{packages/components → components}/form-config/src/hooks/useConfigurationField.js +0 -0
  283. /package/es/{packages/components → components}/form-config/src/hooks/useDataNormalize.js +0 -0
  284. /package/es/{packages/components → components}/form-config/src/hooks/usePresetRenderer.js +0 -0
  285. /package/es/{packages/components → components}/form-config/src/hooks/useSortalbeConfig.js +0 -0
  286. /package/es/{packages/components → components}/form-config/src/types/index.js +0 -0
  287. /package/es/{packages/components → components}/form-config/src/utils/index.js +0 -0
  288. /package/es/{packages/components → components}/form-render/index.js +0 -0
  289. /package/es/{packages/components → components}/form-render/src/components/renderer/combination.js +0 -0
  290. /package/es/{packages/components → components}/form-render/src/components/renderer/complex.js +0 -0
  291. /package/es/{packages/components → components}/form-render/src/components/renderer/date.js +0 -0
  292. /package/es/{packages/components → components}/form-render/src/components/renderer/formItem.js +0 -0
  293. /package/es/{packages/components → components}/form-render/src/components/renderer/index.js +0 -0
  294. /package/es/{packages/components → components}/form-render/src/components/renderer/input.js +0 -0
  295. /package/es/{packages/components → components}/form-render/src/components/renderer/inputGroup.js +0 -0
  296. /package/es/{packages/components → components}/form-render/src/components/renderer/inputNumber.js +0 -0
  297. /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +0 -0
  298. /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/index.js +0 -0
  299. /package/es/{packages/components → components}/form-render/src/components/renderer/levelSearchCascader.js +0 -0
  300. /package/es/{packages/components → components}/form-render/src/components/renderer/lineBar/index.js +0 -0
  301. /package/es/{packages/components → components}/form-render/src/components/renderer/radio_checkbox.js +0 -0
  302. /package/es/{packages/components → components}/form-render/src/components/renderer/remoteSearch.js +0 -0
  303. /package/es/{packages/components → components}/form-render/src/components/renderer/simpleComponent.js +0 -0
  304. /package/es/{packages/components → components}/form-render/src/components/renderer/slider.js +0 -0
  305. /package/es/{packages/components → components}/form-render/src/components/renderer/switch.js +0 -0
  306. /package/es/{packages/components → components}/form-render/src/components/renderer/textarea.js +0 -0
  307. /package/es/{packages/components → components}/form-render/src/constants/index.js +0 -0
  308. /package/es/{packages/components → components}/form-render/src/hooks/index.js +0 -0
  309. /package/es/{packages/components → components}/form-render/src/hooks/useAsyncQueue.js +0 -0
  310. /package/es/{packages/components → components}/form-render/src/hooks/useBusinessBinding.js +0 -0
  311. /package/es/{packages/components → components}/form-render/src/hooks/useChangeContext.js +0 -0
  312. /package/es/{packages/components → components}/form-render/src/hooks/useCommonInjection.js +0 -0
  313. /package/es/{packages/components → components}/form-render/src/hooks/useCommonLog.js +0 -0
  314. /package/es/{packages/components → components}/form-render/src/hooks/useComplexOptions.js +0 -0
  315. /package/es/{packages/components → components}/form-render/src/hooks/useFieldListAdaptor.js +0 -0
  316. /package/es/{packages/components → components}/form-render/src/hooks/useFieldNormalize.js +0 -0
  317. /package/es/{packages/components → components}/form-render/src/hooks/useFieldVisitor.js +0 -0
  318. /package/es/{packages/components → components}/form-render/src/hooks/useFormContext.js +0 -0
  319. /package/es/{packages/components → components}/form-render/src/hooks/useFormEvent.js +0 -0
  320. /package/es/{packages/components → components}/form-render/src/hooks/useFormField.js +0 -0
  321. /package/es/{packages/components → components}/form-render/src/hooks/useFormItemDeps.js +0 -0
  322. /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderLifeCycle.js +0 -0
  323. /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderOptions.js +0 -0
  324. /package/es/{packages/components → components}/form-render/src/hooks/useFormRequest.js +0 -0
  325. /package/es/{packages/components → components}/form-render/src/hooks/useFormValidator.js +0 -0
  326. /package/es/{packages/components → components}/form-render/src/hooks/useLowCodeReactions.js +0 -0
  327. /package/es/{packages/components → components}/form-render/src/hooks/useNuiThemeOverrides.js +0 -0
  328. /package/es/{packages/components → components}/form-render/src/hooks/usePresetScope.js +0 -0
  329. /package/es/{packages/components → components}/form-render/src/types/fieldItem.js +0 -0
  330. /package/es/{packages/components → components}/form-render/src/types/index.js +0 -0
  331. /package/es/{packages/components → components}/form-render/src/utils/business.js +0 -0
  332. /package/es/{packages/components → components}/form-render/src/utils/dom.js +0 -0
  333. /package/es/{packages/components → components}/form-render/src/utils/index.js +0 -0
  334. /package/es/{packages/components → components}/form-render/src/utils/schema.js +0 -0
  335. /package/es/{packages/components → components}/grid/index.js +0 -0
  336. /package/es/{packages/components → components}/grid/src/Grid.js +0 -0
  337. /package/es/{packages/components → components}/grid/src/hooks.js +0 -0
  338. /package/es/{packages/components → components}/iho-table/index.js +0 -0
  339. /package/es/{packages/components → components}/iho-table/src/constants/index.js +0 -0
  340. /package/es/{packages/components → components}/iho-table/src/hooks/export.js +0 -0
  341. /package/es/{packages/components → components}/iho-table/src/hooks/index.js +0 -0
  342. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/index.js +0 -0
  343. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useConfigHooks.js +0 -0
  344. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDataHooks.js +0 -0
  345. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +0 -0
  346. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useEventHooks.js +0 -0
  347. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useExposeHooks.js +0 -0
  348. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useFieldHooks.js +0 -0
  349. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useSetupHooks.js +0 -0
  350. /package/es/{packages/components → components}/iho-table/src/hooks/useColumnConfigAdaptor.js +0 -0
  351. /package/es/{packages/components → components}/iho-table/src/hooks/useTableContext.js +0 -0
  352. /package/es/{packages/components → components}/iho-table/src/hooks/useTablePlugin.js +0 -0
  353. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/index.js +0 -0
  354. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/tableAnchor.js +0 -0
  355. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/useAnchor.js +0 -0
  356. /package/es/{packages/components → components}/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -0
  357. /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/index.js +0 -0
  358. /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/types.js +0 -0
  359. /package/es/{packages/components → components}/iho-table/src/plugins/index.js +0 -0
  360. /package/es/{packages/components → components}/iho-table/src/plugins/keyboardEventPlugin/index.js +0 -0
  361. /package/es/{packages/components → components}/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -0
  362. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +0 -0
  363. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -0
  364. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +0 -0
  365. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +0 -0
  366. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +0 -0
  367. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +0 -0
  368. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +0 -0
  369. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +0 -0
  370. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +0 -0
  371. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -0
  372. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +0 -0
  373. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +0 -0
  374. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +0 -0
  375. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +0 -0
  376. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +0 -0
  377. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +0 -0
  378. /package/es/{packages/components → components}/iho-table/src/plugins/rowClickPlugin/index.js +0 -0
  379. /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/index.js +0 -0
  380. /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +0 -0
  381. /package/es/{packages/components → components}/iho-table/src/plugins/virtualTreePlugin/index.js +0 -0
  382. /package/es/{packages/components → components}/iho-table/src/types/index.js +0 -0
  383. /package/es/{packages/components → components}/iho-table/src/types/pluginType.js +0 -0
  384. /package/es/{packages/components → components}/iho-table/src/utils/index.js +0 -0
  385. /package/es/{packages/components → components}/index.js +0 -0
  386. /package/es/{packages/components → components}/info-header/index.js +0 -0
  387. /package/es/{packages/components → components}/insurance-sdk/index.js +0 -0
  388. /package/es/{packages/components → components}/insurance-sdk/src/constants/index.js +0 -0
  389. /package/es/{packages/components → components}/insurance-sdk/src/utils/index.js +0 -0
  390. /package/es/{packages/components → components}/insurance-sdk/src/utils/insurance.js +0 -0
  391. /package/es/{packages/components → components}/keyboard/index.js +0 -0
  392. /package/es/{packages/components → components}/keyboard/src/utils/index.js +0 -0
  393. /package/es/{packages/components → components}/map/index.js +0 -0
  394. /package/es/{packages/components → components}/recommend-search/index.js +0 -0
  395. /package/es/{packages/components → components}/recommend-search/src/constant/index.js +0 -0
  396. /package/es/{packages/components → components}/recommend-search/src/types/index.js +0 -0
  397. /package/es/{packages/components → components}/scale-view/index.js +0 -0
  398. /package/es/{packages/components → components}/scale-view/src/components/ScaleScore.js +0 -0
  399. /package/es/{packages/components → components}/scale-view/src/components/composables/choose-common.js +0 -0
  400. /package/es/{packages/components → components}/scale-view/src/components/formitem/address.js +0 -0
  401. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-address.js +0 -0
  402. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-cascader.js +0 -0
  403. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-checkbox.js +0 -0
  404. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-collection.js +0 -0
  405. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-datetime.js +0 -0
  406. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-input.js +0 -0
  407. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-map.js +0 -0
  408. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-radio.js +0 -0
  409. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-select.js +0 -0
  410. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-sign.js +0 -0
  411. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-upload.js +0 -0
  412. /package/es/{packages/components → components}/scale-view/src/components/formitem/sign-com.js +0 -0
  413. /package/es/{packages/components → components}/scale-view/src/components/formitem/standard-modal.js +0 -0
  414. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-computed.js +0 -0
  415. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-init.js +0 -0
  416. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-props.js +0 -0
  417. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-state.js +0 -0
  418. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-submit.js +0 -0
  419. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-validate.js +0 -0
  420. /package/es/{packages/components → components}/scale-view/src/hooks/use-component.js +0 -0
  421. /package/es/{packages/components → components}/scale-view/src/hooks/use-evaluate.js +0 -0
  422. /package/es/{packages/components → components}/scale-view/src/hooks/use-event.js +0 -0
  423. /package/es/{packages/components → components}/scale-view/src/hooks/use-noData.js +0 -0
  424. /package/es/{packages/components → components}/scale-view/src/utils/judge-types.js +0 -0
  425. /package/es/{packages/components → components}/search-cascader/index.js +0 -0
  426. /package/es/{packages/components → components}/search-cascader/src/components/SearchMenu.js +0 -0
  427. /package/es/{packages/components → components}/search-cascader/src/components/index.js +0 -0
  428. /package/es/{packages/components → components}/search-cascader/src/constants/index.js +0 -0
  429. /package/es/{packages/components → components}/search-cascader/src/hooks/index.js +0 -0
  430. /package/es/{packages/components → components}/search-cascader/src/hooks/useCssVariable.js +0 -0
  431. /package/es/{packages/components → components}/search-cascader/src/utils/index.js +0 -0
  432. /package/es/{packages/components → components}/select-label/index.js +0 -0
  433. /package/es/{packages/components → components}/select-label/src/SelectLabel.vue2.js +0 -0
  434. /package/es/{packages/components → components}/select-person/index.js +0 -0
  435. /package/es/{packages/components → components}/select-person/src/SelectPerson.vue2.js +0 -0
  436. /package/es/{packages/components → components}/select-person/src/utils/index.js +0 -0
  437. /package/es/{packages/components → components}/shortcut-provider/index.js +0 -0
  438. /package/es/{packages/components → components}/shortcut-provider/src/constants/index.js +0 -0
  439. /package/es/{packages/components → components}/shortcut-provider/src/hooks/index.js +0 -0
  440. /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcutSignature.js +0 -0
  441. /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcuts.js +0 -0
  442. /package/es/{packages/components → components}/shortcut-provider/src/types/index.js +0 -0
  443. /package/es/{packages/components → components}/shortcut-provider/src/utils/index.js +0 -0
  444. /package/es/{packages/components → components}/shortcut-setter/index.js +0 -0
  445. /package/es/{packages/components → components}/shortcut-setter/src/types/index.js +0 -0
  446. /package/es/{packages/components → components}/steps-wheel/index.js +0 -0
  447. /package/es/{packages/components → components}/table-filter/index.js +0 -0
  448. /package/es/{packages/components → components}/table-filter/src/components/button-icon/getBtnIcon.js +0 -0
  449. /package/es/{packages/components → components}/table-filter/src/components/classify-filter/helpers/options.js +0 -0
  450. /package/es/{packages/components → components}/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +0 -0
  451. /package/es/{packages/components → components}/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +0 -0
  452. /package/es/{packages/components → components}/table-filter/src/components/render-widget/components/index.js +0 -0
  453. /package/es/{packages/components → components}/table-filter/src/components/render-widget/enums.js +0 -0
  454. /package/es/{packages/components → components}/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +0 -0
  455. /package/es/{packages/components → components}/table-filter/src/components/render-widget/widgetCfgMaps.js +0 -0
  456. /package/es/{packages/components → components}/table-filter/src/components/search-condition/fieldTypeList.js +0 -0
  457. /package/es/{packages/components → components}/table-filter/src/const/dataOptions.js +0 -0
  458. /package/es/{packages/components → components}/table-filter/src/const/index.js +0 -0
  459. /package/es/{packages/components → components}/table-filter/src/directive/flexibleResize.js +0 -0
  460. /package/es/{packages/components → components}/table-filter/src/directive/preventReClick.js +0 -0
  461. /package/es/{packages/components → components}/table-filter/src/directive/resize.js +0 -0
  462. /package/es/{packages/components → components}/table-filter/src/hooks/export.js +0 -0
  463. /package/es/{packages/components → components}/table-filter/src/hooks/useAdvanced.js +0 -0
  464. /package/es/{packages/components → components}/table-filter/src/hooks/useMixins.js +0 -0
  465. /package/es/{packages/components → components}/table-filter/src/hooks/useRenderWidget.js +0 -0
  466. /package/es/{packages/components → components}/table-filter/src/hooks/useTableSearchCon.js +0 -0
  467. /package/es/{packages/components → components}/table-filter/src/hooks/useWordBookutils.js +0 -0
  468. /package/es/{packages/components → components}/table-filter/src/tool/generateDefOptions.js +0 -0
  469. /package/es/{packages/components → components}/table-filter/src/tool/getWidgetType.js +0 -0
  470. /package/es/{packages/components → components}/table-filter/src/tool/options.js +0 -0
  471. /package/es/{packages/components → components}/table-filter/src/tool/resizeSensor.js +0 -0
  472. /package/es/{packages/components → components}/table-filter/src/tool/time-domain.js +0 -0
  473. /package/es/{packages/components → components}/table-filter/src/tool/transformData.js +0 -0
  474. /package/es/{packages/components → components}/table-filter/src/tool/utils.js +0 -0
  475. /package/es/{packages/components → components}/table-filter/src/types/enums.js +0 -0
  476. /package/es/{packages/components → components}/table-filter/src/types/index.js +0 -0
  477. /package/es/{packages/components → components}/table-filter/src/types/tool.js +0 -0
  478. /package/es/{packages/components → components}/time-line/index.js +0 -0
  479. /package/es/{packages/components → components}/vod-chunk-upload/index.js +0 -0
  480. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-computed.js +0 -0
  481. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-data.js +0 -0
  482. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-computed.js +0 -0
  483. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-data.js +0 -0
  484. /package/es/{packages/components → components}/vod-chunk-upload/src/vod-chunk-upload/index.js +0 -0
  485. /package/es/{packages/components → components}/vod-chunk-upload/src/vod-upload-modal.js +0 -0
  486. /package/es/{packages/shared → shared}/assets/img/failure.png.js +0 -0
  487. /package/es/{packages/shared → shared}/assets/img/no-permission.png.js +0 -0
  488. /package/es/{packages/shared → shared}/assets/img/nodata.png.js +0 -0
  489. /package/es/{packages/shared → shared}/assets/img/notfound.png.js +0 -0
  490. /package/es/{packages/shared → shared}/assets/img/qr.png.js +0 -0
  491. /package/es/{packages/shared → shared}/assets/img/success.png.js +0 -0
  492. /package/es/{packages/shared → shared}/assets/img/video.png.js +0 -0
  493. /package/es/{packages/shared → shared}/assets/img/video_default_cover.png.js +0 -0
  494. /package/es/{packages/shared → shared}/assets/img/xb_big.png.js +0 -0
  495. /package/es/{packages/shared → shared}/assets/img/xb_small.png.js +0 -0
  496. /package/es/{packages/shared → shared}/components/SelectPage/index.js +0 -0
  497. /package/es/{packages/shared → shared}/components/SlotRender/SlotRender.js +0 -0
  498. /package/es/{packages/shared → shared}/components/SlotRender/index.js +0 -0
  499. /package/es/{packages/shared → shared}/components/SvgIcon/index.js +0 -0
  500. /package/es/{packages/shared → shared}/components/TextOverTooltip/index.js +0 -0
  501. /package/es/{packages/shared → shared}/components/VueDraggable/index.js +0 -0
  502. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentBuilderHelper.js +0 -0
  503. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentStructure.js +0 -0
  504. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/renderHelper.js +0 -0
  505. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/sortableEvents.js +0 -0
  506. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/console.js +0 -0
  507. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/htmlHelper.js +0 -0
  508. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/string.js +0 -0
  509. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/tags.js +0 -0
  510. /package/es/{packages/shared → shared}/components/VueDraggable/src/vuedraggable.js +0 -0
  511. /package/es/{packages/shared → shared}/components/no-data/index.js +0 -0
  512. /package/es/{packages/shared → shared}/components/player-vod/player.js +0 -0
  513. /package/es/{packages/shared → shared}/components/player-vod/video-modal.js +0 -0
  514. /package/es/{packages/shared → shared}/global/variable.js +0 -0
  515. /package/es/{packages/shared → shared}/index.js +0 -0
  516. /package/es/{packages/shared → shared}/types/index.js +0 -0
  517. /package/es/{packages/shared → shared}/utils/anime.js +0 -0
  518. /package/es/{packages/shared → shared}/utils/colorLog.js +0 -0
  519. /package/es/{packages/shared → shared}/utils/index.js +0 -0
  520. /package/es/{packages/shared → shared}/utils/loadViewer.js +0 -0
  521. /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelBailHook.js +0 -0
  522. /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelHook.js +0 -0
  523. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesBailHook.js +0 -0
  524. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesHook.js +0 -0
  525. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesLoopHook.js +0 -0
  526. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesWaterfallHook.js +0 -0
  527. /package/es/{packages/shared → shared}/utils/tapable/Hook.js +0 -0
  528. /package/es/{packages/shared → shared}/utils/tapable/HookCodeFactory.js +0 -0
  529. /package/es/{packages/shared → shared}/utils/tapable/SyncBailHook.js +0 -0
  530. /package/es/{packages/shared → shared}/utils/tapable/SyncHook.js +0 -0
  531. /package/es/{packages/shared → shared}/utils/tapable/SyncLoopHook.js +0 -0
  532. /package/es/{packages/shared → shared}/utils/tapable/SyncWaterfallHook.js +0 -0
  533. /package/es/{packages/shared → shared}/utils/utilExpand.js +0 -0
  534. /package/es/{packages/shared → shared}/utils/vexutils.js +0 -0
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -0,0 +1 @@
1
+ import e from"./BigTable.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","BigTable.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as a,computed as e,openBlock as t,createElementBlock as s,unref as r,createCommentVNode as o,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import u from"../../../../shared/assets/img/notfound.png.js";import f from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},d=["src"],c={key:1};var h=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,h=e((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),v=e((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(e,p)=>(t(),s("div",g,[a.showImg?(t(),s("img",{key:0,src:r(h),alt:""},null,8,d)):o("v-if",!0),n("p",null,i(a.noDataTip),1),r(v)?(t(),s("span",c,i(r(v)),1)):o("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as o,watch as r,onDeactivated as a,openBlock as t,createBlock as l,unref as u,withCtx as n,createVNode as i,withModifiers as p}from"vue";import s from"../../../../../shared/components/SlotRender/SlotRender.js";import{cloneDeep as v,isObject as c,isArray as d}from"lodash-es";import{NPopover as f,NInput as m}from"naive-ui";import{useSeparateMap as w}from"../../hooks/useSeparateRow.js";import h from"../separate.vue.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var y=x(e({__name:"edit-separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["formChange"],setup(e,{emit:x}){const y=e,g=o(),_=o(!1);function b(e){_.value=e}r(_,(function(e){e?async function(e){var o;if(!e)return;j.value=v(e.row[y.col.field]),await new Promise((e=>setTimeout(e))),null==(o=g.value)||o.syncPosition()}(k(y.row)):R(k(y.row))}));const j=o(),{getRowData:k}=w();async function R(e){if(!e)return;const o=e.row[y.col.field];(c(j.value)||d(j.value)||o!==j.value)&&x("formChange",{value:j.value,row:y.row,column:y.col,index:e.index})}const S={border:"1px solid #f5f5f5",padding:"4px 0 4px 4px",background:"white","border-radius":"4px"};return a((()=>{R(k(y.row))})),(o,r)=>(t(),l(u(f),{ref_key:"popoverRef",ref:g,trigger:"manual",show:_.value,"onUpdate:show":r[3]||(r[3]=e=>_.value=e),"show-arrow":!1},{trigger:n((()=>[i(h,{onClick:r[0]||(r[0]=p((e=>_.value=!_.value),["stop"])),style:S,col:e.col,row:e.row},null,8,["col","row"])])),default:n((()=>[e.col.separateSlot?(t(),l(u(s),{key:0,renderer:e.col.separateSlot,value:j.value,"onUpdate:value":r[1]||(r[1]=e=>j.value=e),"onUpdate:show":b,col:e.col,row:e.row},null,8,["renderer","value","col","row"])):(t(),l(u(m),{key:1,value:j.value,"onUpdate:value":r[2]||(r[2]=e=>j.value=e),type:"textarea"},null,8,["value"]))])),_:1},8,["show"]))}}),[["__file","edit-separate.vue"]]);export{y as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as u,createBlock as r,unref as i,withKeys as a,withCtx as n,createVNode as o,createTextVNode as l}from"vue";import{NInput as p,NButton as v}from"naive-ui";import f from"../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"input-button",emits:["trigger"],setup(e,{emit:f}){const m=t("");function s(){f("trigger",m.value)}return(e,t)=>(u(),r(i(p),{value:m.value,"onUpdate:value":t[0]||(t[0]=e=>m.value=e),placeholder:"字段搜索",class:"check-seach-input",onKeyup:a(s,["enter"])},{suffix:n((()=>[o(i(v),{text:"",onClick:s},{default:n((()=>[l("搜索")])),_:1})])),_:1},8,["value","onKeyup"]))}}),[["__file","input-button.vue"]]);export{m as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as a,openBlock as r,createElementBlock as t,createTextVNode as p,toDisplayString as s,unref as o,createElementVNode as l}from"vue";import{useSeparateMap as u}from"../hooks/useSeparateRow.js";import i from"../../../../_virtual/plugin-vue_export-helper.js";const c={class:"big-table__separate"},_=l("span",{class:"big-table__separatePlaceholder"},s(" "),-1);var n=i(e({__name:"separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0}},setup(e){const l=e,{separateDataMap:i}=u(),n=a((()=>{const e=i.value.get(l.row);return e?e.separateData[l.col.field]:""}));return(e,a)=>(r(),t("div",c,[p(s(o(n))+" ",1),_]))}}),[["__file","separate.vue"]]);export{n as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as l}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as a}from"tiny-svg";import{useMessage as p}from"naive-ui";import d from"axios";import c from"moment";import m from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import b from"diagram-js/lib/navigation/movecanvas";import f from"./custom/customOtherModule/customViewerRenderer.js";import y from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"containers"};var h=y(e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function},getInstanceHistory:{type:Function},getNodeApprovaler:{type:Function}},setup(e){const y=e;p();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});d.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+y.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(y.processId,y.instanceId)}));const x=async(e,t)=>{"function"==typeof y.getBpmnXml&&(w.currentCanvasXml=await y.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new m({container:h.value,additionalModules:[v,b,u,f,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof y.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await y.getInstanceHistory(e,t),i={},s=[],l=[];var p,d,m;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),l.push(e))})),(p=r.historyActivity,d="activityId",m={},p.reduce((function(e,t){return!m[t[d]]&&(m[t[d]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=l.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>c(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];a(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let l={};if("bpmn:UserTask"==t.type){if("function"!=typeof y.getNodeApprovaler)return;l=await y.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==l?void 0:l.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",g,[s(" 流程画布部分 "),l("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}}),[["__file","BpmnWorkflow.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import t from"./ButtonPrint.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var e=r(t,[["__file","ButtonPrint.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as o,createBlock as l,unref as n,withCtx as r,createVNode as i,createElementVNode as a,createTextVNode as u}from"vue";import{useMessage as s,NForm as p,NFormItem as d,NSpace as f,NUpload as m,NUploadDragger as c,NIcon as v,NText as h,NP as w}from"naive-ui";import{Archive as _}from"@vicons/ionicons5";import g from"axios";import x from"../../../../_virtual/plugin-vue_export-helper.js";const $={style:{"margin-bottom":"12px"}};var S=x(e({__name:"EditFormat",props:{formatId:null,token:null},setup(e,{expose:x}){const S=e,E=`${window.location.protocol}//${window.location.host}/bi-api`,C=`${E}/reprot/print/open/client/saveIReportFormat`,j=`${E}/reprot/print/open/client/getIReportFiles`,y=`${E}/reprot/print/open/client/delIReportFiles`,I=g.create({}),b=s(),F=t([]);var z;function R(e){return new Promise(((t,o)=>{var l;I.get(`${y}?formatId=${null==(l=S.formatId)?void 0:l.split("_")[1]}&authorizationKey=${S.token}&fileName=${e.file.name}`).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"删除文件失败,请重试!"),o()):(b.success("删除文件成功!"),t("SUCCESS"))}))}))}return I.get(`${j}?formatId=${null==(z=S.formatId)?void 0:z.split("_")[1]}&authorizationKey=${S.token}`).then((({data:e})=>{(e.list||[]).forEach((e=>{F.value.push({id:Date.now().toString(),name:e,status:"finished"})}))})),x({submit:function(e){return new Promise(((t,o)=>{if(!function(){if(F.value.length<2)return!1;let e=!1,t=!1;const o=/\.([^.]+)$/;return F.value.forEach((l=>{var n;const r=(null==(n=l.file)?void 0:n.name)||l.name||"",i=o.exec(r)?RegExp.$1.toLowerCase():"";i&&".jrxml".includes(i)&&(e=!0),i&&".jasper".includes(i)&&(t=!0)})),!(!e||!t)}())return void b.warning("请至少上传一个jrxml文件和一个jasper文件!");if(0===F.value.filter((e=>e.file)).length)return void b.warning("本次无新文件增加,请先添加新文件!");const l=new FormData;Object.keys(e).forEach((t=>{l.append(t,e[t])})),F.value.forEach((e=>{e.file&&l.append("files",e.file)})),I.post(C,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"上传文件失败,请重试!"),o()):t("SUCCESS")}))}))}}),(e,t)=>(o(),l(n(p),{"label-placement":"left","label-width":75},{default:r((()=>[i(n(d),{label:"格式文件:",path:"file"},{default:r((()=>[i(n(f),{vertical:""},{default:r((()=>[i(n(m),{multiple:"","directory-dnd":"","file-list":F.value,"onUpdate:file-list":t[0]||(t[0]=e=>F.value=e),onRemove:R},{default:r((()=>[i(n(c),null,{default:r((()=>[a("div",$,[i(n(v),{size:"36",depth:3,component:n(_)},null,8,["component"])]),i(n(h),{style:{"font-size":"12px"}},{default:r((()=>[u("点击或者拖动文件到该区域来上传")])),_:1}),i(n(w),{depth:"3",style:{margin:"5px 0 0 0","font-size":"13px"}},{default:r((()=>[u("至少包含一个jxml文件和一个jasper文件")])),_:1})])),_:1})])),_:1},8,["file-list"])])),_:1})])),_:1})])),_:1}))}}),[["__file","EditFormat.vue"]]);export{S as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as a,watch as l,openBlock as o,createBlock as i,unref as u,normalizeStyle as r,withCtx as s,createElementVNode as n,mergeProps as d,createVNode as p,createTextVNode as c}from"vue";import{useMessage as m,NModal as v,NForm as f,NFormItem as y,NInput as w,NButton as _}from"naive-ui";import g from"./EditFormat.vue.js";import"../utils/print.js";import{isIReport as h}from"../utils/browserPrint.js";import I from"../../../../_virtual/plugin-vue_export-helper.js";const k={class:"content"};var V=I(e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:I}){const V=e,x=m(),b={account:"",password:""},C=t(null),j=t(!1),U=t("");let S=a({...b});const F={account:{required:!0,message:"请输入账号"},password:{required:!0,message:"请输入密码"}},P="416px",q=t(null),E=()=>{I("update:modelValue",!1),I("close")},N=t(!1),R=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e,t;try{N.value=!0;const{data:a={}}=await V.verifyUser(S)||{};if("SUCCESS"!==a.result)return x.error(a.resultMsg||"身份校验失败,请重试!"),!1;h(V.formatId||"")?(j.value=!0,U.value=null==(e=a.map)?void 0:e.token):I("success",null==(t=a.map)?void 0:t.token)}finally{N.value=!1}})()}))},T=async()=>{var e,t;try{N.value=!0;if(!await(null==(t=C.value)?void 0:t.submit({authorizationKey:U.value,id:null==(e=V.formatId)?void 0:e.split("_")[1],templateId:V.templateId,datasourceName:null,dataSourceId:null})))return!1;I("success",U.value)}finally{N.value=!1}};return l((()=>V.modelValue),(e=>{e||Object.assign(S,b)})),(t,a)=>(o(),i(u(v),{preset:"dialog",title:j.value?"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:r({width:P,overflowY:"auto"}),"positive-text":j.value?"确认":"","negative-text":j.value?"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:T},{default:s((()=>[n("div",k,[j.value?(o(),i(g,d({key:0,ref_key:"editFormRef",ref:C},t.$attrs,{formatId:e.formatId,token:U.value}),null,16,["formatId","token"])):(o(),i(u(f),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:u(S),rules:F},{default:s((()=>[p(u(y),{path:"account"},{default:s((()=>[p(u(w),{value:u(S).account,"onUpdate:value":a[0]||(a[0]=e=>u(S).account=e),placeholder:"请输入账号"},null,8,["value"])])),_:1}),p(u(y),{path:"password"},{default:s((()=>[p(u(w),{type:"password","input-props":{autocomplete:"on",name:"password"},value:u(S).password,"onUpdate:value":a[1]||(a[1]=e=>u(S).password=e),placeholder:"请输入密码"},null,8,["value"])])),_:1}),p(u(y),null,{default:s((()=>[p(u(_),{loading:N.value,type:"primary",class:"login-form-button",onClick:R},{default:s((()=>[c("登录")])),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"]))}}),[["__file","IdentityVerification.vue"]]);export{V as default};
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
20
20
  }>>;
21
21
  emit: (event: "update:visible", ...args: any[]) => void;
22
+ iframeId: import("vue").Ref<string>;
22
23
  isNormalSize: import("vue").Ref<boolean>;
23
24
  style: import("vue").ComputedRef<string>;
24
25
  titleRender: () => JSX.Element;
@@ -0,0 +1 @@
1
+ import e from"./Preview.vue2.js";import r from"../../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as o,onMounted as i,openBlock as n,createBlock as l,unref as r,normalizeStyle as s,withCtx as a,createElementVNode as u,createVNode as v,Fragment as m,createTextVNode as c}from"vue";import{NModal as d,NIcon as f}from"naive-ui";import{SquareOutline as p,CopyOutline as w}from"@vicons/ionicons5";const h=["name","src"];var g=e({__name:"Preview",props:{visible:{type:Boolean,default:!1},src:{type:String}},emits:["update:visible"],setup(e,{emit:g}){const b=e,y=t(`iframe-${Date.now()}`),k=t(!0),C=o((()=>{const e=k.value?80:100;return`width: ${e}vw; height: ${e}vh`}));function $(){return v(m,null,[v("div",null,[c("预览")]),v(f,{style:{margin:"0 0 0 auto",transform:k.value?"none":"rotate(90deg)"},onClick:_,component:k.value?p:w},null)])}function _(){k.value=!k.value}function B(){b.src&&window.URL.revokeObjectURL(b.src),g("update:visible",!1)}return i((()=>{setTimeout((()=>{var e,t,o;const i=null==(o=null==(t=null==(e=window.frames[y.value])?void 0:e.document)?void 0:t.getElementsByTagName("img"))?void 0:o[0];i&&(i.style.width="100%")}),300)})),(t,o)=>(n(),l(r(d),{preset:"dialog",show:e.visible,"show-icon":!1,style:s(r(C)),class:"c-button-preview-modal",title:$,onClose:B,onMaskClick:B},{default:a((()=>[u("iframe",{name:y.value,src:e.src,frameborder:"0",width:"100%",height:"97%"},null,8,h)])),_:1},8,["show","style"]))}});export{g as default};
@@ -41,7 +41,7 @@ export declare class Print {
41
41
  _queryProxyOrigin(): Promise<void>;
42
42
  _queryPrintFile(formatId: string, params?: string): Promise<any>;
43
43
  _browserPrint(result: AnyObject, mode: string): Promise<string | void>;
44
- preview({ templateId, formatId, params, btnprint, print }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
44
+ preview({ templateId, formatId, params, btnprint }: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<any>;
45
45
  printDirect({ templateId, formatId, params, print, printdlgshow, nobillnode }: AnyObject, successCallbackFn: Func, errorCallbackFn: Func, mode?: string): Promise<any>;
46
46
  private _downloadPDF;
47
47
  /**
@@ -0,0 +1 @@
1
+ import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";const l=t.create({timeout:1e3,withCredentials:!1}),d=t.create({withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.messageHandlerQueue=[],m)return m;m=this;const e=window;this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.postMessage({exec:"config",data:""}))}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{const{exec:i}=JSON.parse(t.data);"config"===i&&(this.downloadPath=(null==(e=JSON.parse(t.data).res)?void 0:e.downloadpath)||""),console.log(t),n(JSON.parse(t.data).res)}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{l({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(t){return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):d({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(t)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleResult(t,e){if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const l={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}l.print=s}else this.isRemote&&(l.print={print:"1",type:"2",zip:"0",filename:"F:\\WorkSpace\\crmweb\\web\\123456"});return await this._queryServicesPrint(l)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-1],o=await s(`${u}/${a}`),l=r(null,e,o);if("preview"===e)return l}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n});if(!h)return!1;const c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o},l,d,h="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,h),void(null==l||l({file:t}))):null==d?void 0:d("获取文件失败!")}await this._queryProxyOrigin();const c=await this._testConnection();if(!this._handleResultTest(c,d))return!1;const p=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o});if(!p)return!1;const u=this._handleResult(p,d);if(!u)return!1;await this._browserPrint(u,h),l&&l(u)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
@@ -1 +1 @@
1
- .dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.n-dialog.n-modal.c-button-preview-modal{max-width:none}.n-dialog.n-modal.c-button-preview-modal .n-dialog__content{height:98%}
1
+ .dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.c-button-preview-modal{max-width:none!important}.c-button-preview-modal .n-dialog__content{height:98%}
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as t,ref as r,onMounted as o,openBlock as s,createElementBlock as n,Fragment as p,createElementVNode as a,createBlock as i,mergeProps as u,unref as l,createCommentVNode as c}from"vue";import{fabric as m}from"./utils/index.js";import f from"./components/PopupTip.vue.js";import h from"./components/PopupMenu.js";import v from"./hooks/useTemperatureChart.js";import d from"./hooks/useBirthProcessChart.js";import k from"../../../_virtual/plugin-vue_export-helper.js";var C=k(e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select"],setup(e,{expose:k,emit:C}){const w=e,y=t((()=>"temperature"===w.type)),g=r(null),j=r(),{propItems:P,redrawPoints:_,select:I,pointTipProps:b,pointMenuProps:M,clickMenu:x}=function(){const e=[j,w,C,g];return y.value?v(...e):d(...e)}();return o((()=>{j.value=new m.Canvas(g.value,{width:P.canvasWidth,height:P.canvasHeight,backgroundColor:"#fff",selection:!1,containerClass:"c-fabric-chart",fireRightClick:!0})})),k({redrawPoints:_,select:I,canvas:j}),(e,t)=>(s(),n(p,null,[a("canvas",{ref_key:"canvasRef",ref:g},null,512),j.value?(s(),i(f,u({key:0,propItems:l(P)},l(b)),null,16,["propItems"])):c("v-if",!0),j.value?(s(),i(l(h),u({key:1,propItems:l(P)},l(M),{show:l(M).show,"onUpdate:show":t[0]||(t[0]=e=>l(M).show=e),onClickMenu:l(x)}),null,16,["propItems","show","onClickMenu"])):c("v-if",!0)],64))}}),[["__file","FabricChart.vue"]]);export{C as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as p,openBlock as t,createBlock as e,Teleport as l,withDirectives as o,createElementVNode as r,normalizeStyle as u,unref as i,createElementBlock as s,Fragment as a,renderList as f,toDisplayString as n,vShow as c}from"vue";import m from"./useStyle.js";import _ from"../../../../_virtual/plugin-vue_export-helper.js";var h=_(p({__name:"PopupTip",props:{show:{type:Boolean,default:!1},point:null,list:{default:()=>[]},propItems:null},setup(p){const _=m(p);return(m,h)=>(t(),e(l,{to:".c-fabric-chart"},[o(r("ul",{class:"c-fabric-chart-popup-tip",style:u(i(_))},[(t(!0),s(a,null,f(p.list,(p=>(t(),s("li",{key:p},n(p),1)))),128))],4),[[c,p.show]])]))}}),[["__file","PopupTip.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,reactive as t,watch as i,onMounted as s,openBlock as d,createElementBlock as a,normalizeStyle as o,createVNode as c,unref as n,withCtx as h,createElementVNode as r,normalizeClass as u,createCommentVNode as p,createBlock as f,createTextVNode as w,toDisplayString as k,withDirectives as y,vShow as v,renderSlot as b}from"vue";import{NSpin as g,NCheckbox as m,NTooltip as U,NSelect as x,NInput as S,NInputNumber as E,NPopconfirm as _,NButton as W}from"naive-ui";import F from"../../../shared/components/VueDraggable/src/vuedraggable.js";import O from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"fields-set-content"},C={class:"fields-table"},N=r("span",{class:"width-show",style:{width:"4%"}},null,-1),P=r("span",{class:"width-large"},"所有字段",-1),j={class:"width-show"},R={key:0,class:"width-show"},I={key:1,class:"width-show"},L={class:"width-show"},T={class:"width-show"},D=r("span",{class:"width-showed"},"固定",-1),z=r("span",{class:"width-word"},"自定义标题",-1),B=r("span",{class:"width-showed"},"列宽",-1),G=["onClick"],H={class:"width-show drag-icon-wrap"},J=r("span",{class:"iconfont icon-a-menzhenyishengzhanxitongtubiaotuozhuai",style:{color:"#000"}},null,-1),V=r("span",null,"拖拽调整顺序",-1),$=r("span",{style:{width:"14px","margin-right":"6px"}},null,-1),A={class:"width-show"},K={key:0,class:"width-show"},M={key:1,class:"width-show"},Q={class:"width-show"},X={class:"width-show"},Y={class:"width-showed"},Z={class:"width-word"},ee={class:"width-showed"},le={key:0,class:"check-options"},te={class:"btn-operate"};var ie=O(e({__name:"FieldSet",props:{fields:{type:Array,default:function(){return[]}},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1}},emits:["onSave","onClose","reset"],setup(e,{expose:O,emit:ie}){const se=e,de={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},ae=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],oe=l(null);function ce(){const e=se.fields?JSON.parse(JSON.stringify(se.fields)):[];return Object.keys(de).forEach((l=>{e.forEach((e=>{"old"==se.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[de[l]]=1==e[l]:e[de[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1)}))})),e}const ne=t({spinning:!1,isCustomSearch:!0,clickItem:{},fields:[],widthShow:"9%",widthLarge:"19%"}),he=e=>ne.fields.some((l=>Object.prototype.hasOwnProperty.call(l,e))),re=()=>{if("old"==se.type){let e=[];return ne.fields.length>0&&ne.fields.forEach(((l,t)=>{e.push({id:l.id,field:l.name,visible:l.show,sequence:t,sortable:l.sort,title:l.alias,fixed:l.fixedWay,minWidth:l.columnWidth,bold:l.bold,...se.isEdit?{required:l.required,editable:l.editable}:{}})})),e}return ne.fields},ue=()=>{ie("onSave",{tableFields:re()})},pe=()=>{ie("onClose")};function fe(){ne.fields=ce(),ie("reset")}const we=e=>!!ne.fields.length&&ne.fields.every((l=>!(Object.prototype.hasOwnProperty.call(l,e)&&!ye(l,e))||l[e])),ke=(e,l)=>{const t=e,i=ne.fields.map((e=>(Object.prototype.hasOwnProperty.call(e,l)&&!ye(e,l)&&(e[l]=t),e)));ne.fields=i};function ye(e,l){return["editable","required"].includes(l)&&e[`${l}Disable`]}return i((()=>se.fields),(e=>{(null==e?void 0:e.length)>0&&(ne.fields=ce())}),{immediate:!0,deep:!0}),s((()=>{var e;null==(e=oe.value)||e.style.setProperty("margin","auto"),se.isEdit&&(ne.widthShow="8%",ne.widthLarge="13%")})),O({getTableFields:re}),(l,t)=>(d(),a("div",{ref_key:"settingView",ref:oe,class:"c-field-set",style:o({"--width-show":ne.widthShow,"--width-large":ne.widthLarge})},[c(n(g),{show:ne.spinning,tip:"...",style:{width:"100%",height:"100%"}},{default:h((()=>[r("div",q,[r("div",C,[r("div",{class:u(["setting-title",{"seting-title-api":!ne.isCustomSearch}])},[N,p(" 字段名称 "),P,p(" 显示 "),r("span",j,[he("show")?(d(),f(n(m),{key:0,checked:we("show"),"onUpdate:checked":t[0]||(t[0]=e=>ke(e,"show"))},null,8,["checked"])):p("v-if",!0),w(" 显示 ")]),p(" 可编辑 "),e.isEdit?(d(),a("span",R,[he("editable")?(d(),f(n(m),{key:0,checked:we("editable"),"onUpdate:checked":t[1]||(t[1]=e=>ke(e,"editable"))},null,8,["checked"])):p("v-if",!0),w(" 编辑 ")])):p("v-if",!0),p(" 是否必填 "),e.isEdit?(d(),a("span",I,[he("required")?(d(),f(n(m),{key:0,checked:we("required"),"onUpdate:checked":t[2]||(t[2]=e=>ke(e,"required"))},null,8,["checked"])):p("v-if",!0),w(" 必填 ")])):p("v-if",!0),p(" 排序 "),r("span",L,[he("sort")?(d(),f(n(m),{key:0,checked:we("sort"),"onUpdate:checked":t[3]||(t[3]=e=>ke(e,"sort"))},null,8,["checked"])):p("v-if",!0),w(" 排序 ")]),r("span",T,[c(n(m),{checked:we("bold"),"onUpdate:checked":t[4]||(t[4]=e=>ke(e,"bold"))},null,8,["checked"]),w(" 加粗 ")]),p(" 固定 "),D,p(" 自定义标题 "),z,p(" 列宽 "),B],2),r("div",{ref:"setShow",class:u(["set-show",{"set-show-api":!ne.isCustomSearch}])},[c(n(F),{list:ne.fields,animation:"150","item-key":"id",tag:"ul"},{item:h((({element:l})=>{return[l.hide?p("v-if",!0):(d(),a("li",{key:0,class:"left-style",style:o((t=l,{background:ne.clickItem.id===t.id?"#f2f2f2":void 0})),onClick:e=>{return t=l,void(ne.clickItem=t);var t}},[r("span",H,[c(n(U),{trigger:"hover"},{trigger:h((()=>[J])),default:h((()=>[V])),_:1})]),p(" 字段名称 "),r("span",{class:u(["width-large title-item",{blue:l.extraField}])},[$,r("span",null,k(l.title),1)],2),p(" 显示 "),r("span",A,[y(c(n(m),{checked:l.show,"onUpdate:checked":e=>l.show=e},null,8,["checked","onUpdate:checked"]),[[v,"0001"!=l.id]])]),p(" 是否可编辑 "),e.isEdit?(d(),a("span",K,[y(c(n(m),{disabled:l.editableDisable,checked:l.editable,"onUpdate:checked":e=>l.editable=e},null,8,["disabled","checked","onUpdate:checked"]),[[v,"0001"!=l.id]])])):p("v-if",!0),p(" 是否必填 "),e.isEdit?(d(),a("span",M,[y(c(n(m),{disabled:l.requiredDisable,checked:l.required,"onUpdate:checked":e=>l.required=e},null,8,["disabled","checked","onUpdate:checked"]),[[v,"0001"!=l.id]])])):p("v-if",!0),p(" 排序 "),r("span",Q,[y(c(n(m),{checked:l.sort,"onUpdate:checked":e=>l.sort=e,disabled:1==l.notParticipatingSort},null,8,["checked","onUpdate:checked","disabled"]),[[v,"0001"!=l.id]])]),p(" 加粗 "),r("span",X,[y(c(n(m),{checked:l.bold,"onUpdate:checked":e=>l.bold=e},null,8,["checked","onUpdate:checked"]),[[v,"0001"!=l.id]])]),p(" 固定 "),r("span",Y,[c(n(x),{value:l.fixedWay,"onUpdate:value":e=>l.fixedWay=e,options:ae,style:{width:"90%",display:"flex"}},null,8,["value","onUpdate:value"])]),p(" 自定义标题 "),r("span",Z,[y(c(n(S),{value:l.alias,"onUpdate:value":e=>l.alias=e,style:{width:"90%"},clearable:""},null,8,["value","onUpdate:value"]),[[v,"0001"!=l.id]])]),p(" 列宽 "),r("span",ee,[c(n(E),{value:l.columnWidth,"onUpdate:value":e=>l.columnWidth=e,style:{width:"120px"},clearable:""},null,8,["value","onUpdate:value"])])],12,G))];var t})),_:1},8,["list"])],2)]),se.footerFlag?(d(),a("div",le,[r("div",te,[b(l.$slots,"footer",{},(()=>[c(n(_),{onPositiveClick:fe},{trigger:h((()=>[c(n(W),{style:{"margin-right":"8px"}},{default:h((()=>[w("恢复默认设置")])),_:1})])),default:h((()=>[w(" 确认要恢复系统默认设置吗? ")])),_:1}),c(n(W),{style:{"margin-right":"8px"},onClick:pe},{default:h((()=>[w("取消")])),_:1}),c(n(W),{type:"primary",onClick:ue},{default:h((()=>[w("保存")])),_:1})]))])])):p("v-if",!0)])])),_:3},8,["show"])],4))}}),[["__file","FieldSet.vue"]]);export{ie as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as o,ref as e,provide as t,toRaw as r,openBlock as i,createElementBlock as a,normalizeStyle as n,unref as s,createElementVNode as m,createVNode as l,mergeProps as f,withCtx as u,createTextVNode as c}from"vue";import{uuidGenerator as p}from"../../../shared/utils/index.js";import{cloneDeep as d,isFunction as g}from"lodash-es";import v from"../../../shared/components/VueDraggable/src/vuedraggable.js";import _ from"./components/FormConfigCreator.vue.js";import h from"./components/FormConfigDragDisplay.vue.js";import C from"./components/FormConfigEdit.vue.js";import x from"./components/FormConfigMaterialItem.js";import{useDataNormalize as j}from"./hooks/useDataNormalize.js";import{InjectionFieldList as y,InjectionMaterialList as F,InjectionActiveFieldItem as V,FORM_CONFIG_GROUP as D}from"./constants/index.js";import"@vicons/ionicons5";import"naive-ui";import k from"../../../_virtual/plugin-vue_export-helper.js";import"./utils/index.js";import{useSortableConfig as H}from"./hooks/useSortalbeConfig.js";const b=["id"],E={class:"form-config__material"},L=m("header",{class:"form-config__materialHeader"},"物料区",-1),S={class:"form-config__displayWrapper"},I={class:"form-config__displayHeader"},N={class:"form-config__config"},R=m("header",{class:"form-config__configHeader"},"配置区",-1),U={class:"form-config__configContent"};var w=k(o({__name:"FormConfig",props:{maxHeight:{type:String},textFormatter:{type:Function}},setup(o,{expose:k}){const w=o,z=p(),{getCommonConfig:A}=H(),B=e([]);t(y,B);const M=e([]);function T(o){B.value.some((e=>e.key===o.key))||B.value.push(o)}t(F,M);const W=(o,e)=>g(w.textFormatter)?w.textFormatter(o,e):e,q=e();t(V,q);const G=e(),{transform:J,inverseTransform:K}=j();return k({loadData({fieldList:o}){let e=[],t=[];o.forEach((o=>function(o){"LINE_BAR"===o.type&&(o.children=[]);!1===o.show?t.push(o):e.push(o)}(d(r(o))))),B.value=J(e),M.value=t},validate(){var o;return null==(o=G.value)?void 0:o.validate()},getData:()=>({fieldList:K(d(r(B.value))),materialList:K(d(r(M.value)))})}),(e,t)=>(i(),a("section",{class:"form-config",style:n({"--max-height":o.maxHeight}),id:s(z)},[m("section",E,[L,l(s(v),f(s(A)(),{class:"form-config__materialContent",modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=o=>M.value=o)}),{item:u((({element:o})=>[l(s(x),{"field-item":o},null,8,["field-item"])])),_:1},16,["modelValue"])]),m("section",S,[m("header",I,[c(" 布局区 "),l(_,{onSubmit:T})]),l(h,{class:"form-config__displayContent",group:s(D),"text-formatter":W,modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=o=>B.value=o)},null,8,["group","modelValue"])]),m("section",N,[R,m("section",U,[l(C,{ref_key:"formConfigEditRef",ref:G,uuid:s(z)},null,8,["uuid"])])])],12,b))}}),[["__file","FormConfig.vue"]]);export{w as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as i,openBlock as t,createBlock as l,unref as o,withCtx as a,createVNode as r,createTextVNode as n}from"vue";import{pick as s}from"lodash-es";import{NButtonGroup as u,NPopconfirm as m,NButton as f}from"naive-ui";import{EditAbleField as d}from"../constants/index.js";import{useConfigurationField as _}from"../hooks/useConfigurationField.js";import"../../../index.js";import p from"../../../../_virtual/plugin-vue_export-helper.js";import L from"../../../form-render/index.js";var c=p(e({__name:"FormConfigCreator",emits:{submit:e=>e},setup(e,{emit:p}){const c=_().generateFieldListByKeys(null,[d.NAME,d.LAYOUT_WIDTH_ENUM,d.NOTES,d.DEFAULT_EXPAND,d.FOLD]),h=i(),E=i(),w={defaultExpand:!0,fold:!0,layoutWidthEnum:"ALL_LINE"};async function v(e,i){if(!i)return;await i.validate();const t=i.getFormValues();p("submit",{layoutWidthEnum:"ALL_LINE",...t,type:e,key:t.name,__new:!0})}return(e,i)=>(t(),l(o(u),{size:"small"},{default:a((()=>[r(o(m),{width:"200px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[0]||(i[0]=e=>v("NEWLINE",E.value))},{trigger:a((()=>[r(o(f),null,{default:a((()=>[n("新建分行符")])),_:1})])),default:a((()=>[r(o(L),{column:12,ref_key:"lineBreakFormRef",ref:E,"initial-data":o(s)(w,["layoutWidthEnum"]),size:"small","label-width":"auto","label-placement":"left",fieldList:o(c).slice(0,2)},null,8,["initial-data","fieldList"])])),_:1}),r(o(m),{width:"300px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[1]||(i[1]=e=>v("LINE_BAR",h.value))},{trigger:a((()=>[r(o(f),null,{default:a((()=>[n("新建分线栏")])),_:1})])),default:a((()=>[r(o(L),{column:12,ref_key:"linebarFormRef",ref:h,"initial-data":w,size:"small","label-width":"auto","label-placement":"left",fieldList:o(c)},null,8,["fieldList"])])),_:1})])),_:1}))}}),[["__file","FormConfigCreator.vue"]]);export{c as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,openBlock as t,createBlock as r,unref as o,mergeProps as m,withCtx as i,createElementVNode as s,normalizeStyle as a,resolveDynamicComponent as l}from"vue";import n from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{usePresetRenderer as p}from"../hooks/usePresetRenderer.js";import{useSortableConfig as u}from"../hooks/useSortalbeConfig.js";import"lodash-es";import{layoutWidthEnum2Column as f}from"../utils/index.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";const g=["data-type"];var y=d(e({__name:"FormConfigDragDisplay",props:{fieldItem:{type:Object},textFormatter:{type:Function,required:!0}},setup(e){function d(e){return{"--item-column":e?f(e.layoutWidthEnum):24}}const{getRenderer:y}=p(),{getCommonConfig:c}=u();return(p,u)=>(t(),r(o(n),m(o(c)(e.fieldItem),{style:d(e.fieldItem)}),{item:i((({element:m})=>[s("div",{class:"form-config__displayContentItem","data-type":m.type,style:a(d(m))},[(t(),r(l(o(y)(m)),{"field-item":m,textFormatter:e.textFormatter},null,8,["field-item","textFormatter"]))],12,g)])),_:1},16,["style"]))}}),[["__file","FormConfigDragDisplay.vue"]]);export{y as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as i,ref as o,inject as l,watch as a,toRaw as t,openBlock as r,createElementBlock as n,Fragment as u,createBlock as s,unref as v,createVNode as d,nextTick as m}from"vue";import{cloneDeep as p}from"lodash-es";import{InjectionActiveFieldItem as f}from"../constants/index.js";import"../../../../shared/components/VueDraggable/src/vuedraggable.js";import"../utils/index.js";import c from"../../../../_virtual/plugin-vue_export-helper.js";import"@vicons/ionicons5";import{NModal as g}from"naive-ui";import"../../../../shared/utils/index.js";import{useConfigurationField as h}from"../hooks/useConfigurationField.js";import"../../../index.js";import x from"../../../form-render/index.js";var _=c(e({__name:"FormConfigEdit",props:{uuid:{type:String,required:!0}},setup(e,{expose:c}){const _=e,j=i((()=>`#${_.uuid} .form-config__config`)),y=o(0),F=o(),b=l(f),k=o([]),w=o({}),{generateFieldListByFieldItem:C}=h(),E=o(!1);async function P(){var e;b.value=R,await m(),null==(e=F.value)||e.validate()}let R=null;function q({fieldKey:e,value:i}){b.value&&(b.value[e]=i)}return a(b,(async(e,i)=>{var o;if(e){if(i&&e!==R)try{await(null==(o=F.value)?void 0:o.validate())}catch(e){return E.value=!0}R=e,w.value={editable:!0,...p(t(e))},k.value=C(e).map((e=>({...e,componentProps:{to:j.value}}))),y.value++}}),{immediate:!0}),c({validate(){var e;return null==(e=F.value)?void 0:e.validate()}}),(e,i)=>(r(),n(u,null,[(r(),s(v(x),{key:y.value,column:12,ref_key:"formRenderRef",ref:F,size:"small",onFormChange:q,"field-list":k.value,"initial-data":w.value},null,8,["field-list","initial-data"])),d(v(g),{show:E.value,"onUpdate:show":i[0]||(i[0]=e=>E.value=e),preset:"dialog",to:v(j),"close-on-esc":!1,"mask-closable":!1,closable:!1,title:"存在填写错误的字段","positive-text":"继续编辑",onPositiveClick:P},null,8,["show","to"])],64))}}),[["__file","FormConfigEdit.vue"]]);export{_ as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as o,inject as e,openBlock as t,createBlock as r,unref as n,withModifiers as i,withCtx as l,createVNode as s}from"vue";import{CloseCircle as m}from"@vicons/ionicons5";import{isArray as p}from"lodash-es";import{NButton as u,NIcon as c}from"naive-ui";import{InjectionFieldList as a,InjectionMaterialList as f}from"../../constants/index.js";import _ from"../../../../../_virtual/plugin-vue_export-helper.js";var v=_(o({__name:"CloseButton",props:{fieldItem:{type:Object,required:!0}},setup(o){const _=o,v=e(a),d=e(f),x=()=>{!function o(e){return p(e)&&e.some(((e,t,r)=>e!==_.fieldItem?o(e.children):(!e.__new&&d.value.push(e),r.splice(t,1))))}(v.value)};return(o,e)=>(t(),r(n(u),{text:"",class:"form-config__renderer--closeButton","text-color":"#a5a5a5",onClick:i(x,["stop"])},{icon:l((()=>[s(n(c),{component:n(m)},null,8,["component"])])),_:1},8,["onClick"]))}}),[["__file","CloseButton.vue"]]);export{v as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as o,computed as r,openBlock as t,createElementBlock as i,createElementVNode as l,mergeProps as m,unref as n,withModifiers as d,createTextVNode as f,toDisplayString as s,createVNode as p}from"vue";import c from"../FormConfigDragDisplay.vue.js";import u from"./CloseButton.vue.js";import{InjectionActiveFieldItem as a}from"../../constants/index.js";import{bindHover as _}from"../../utils/index.js";import v from"../../../../../_virtual/plugin-vue_export-helper.js";const x={class:"form-config__renderer--complex form-config__renderer"},g=["onClick"];var I=v(e({__name:"ComplexNode",props:{fieldItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const v=e,I=o(a);function j(){I.value=v.fieldItem}const C=r((()=>[{"is-active":I.value===v.fieldItem},"form-config__renderer--complexHeader"]));return(o,r)=>(t(),i("section",x,[l("header",m(n(_)(e.fieldItem),{class:n(C),onClick:d(j,["stop"])}),[f(s(v.fieldItem.name)+" ",1),p(u,{"field-item":e.fieldItem},null,8,["field-item"])],16,g),p(c,m(o.$props,{modelValue:e.fieldItem.children,"onUpdate:modelValue":r[0]||(r[0]=o=>e.fieldItem.children=o),class:"form-config__renderer--complex--grid"}),null,16,["modelValue"])]))}}),[["__file","ComplexNode.vue"]]);export{I as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,computed as i,openBlock as r,createBlock as o,unref as d,mergeProps as l,withModifiers as f,withCtx as a,createVNode as m,normalizeClass as n,createTextVNode as s,toDisplayString as u}from"vue";import{NButton as p,NEllipsis as c}from"naive-ui";import _ from"./CloseButton.vue.js";import{InjectionActiveFieldItem as I,WidgetTextMap as v}from"../../constants/index.js";import{bindHover as y}from"../../utils/index.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var j=x(e({__name:"DefaultNode",props:{fieldItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const x=e,j=t(I);function g(){j.value=x.fieldItem}const q=i((()=>[{"is-active":j.value===x.fieldItem},"form-config__renderer"])),h=i((()=>["form-config__renderer--default",{"is-required":x.fieldItem.required}])),C=i((()=>!1===x.fieldItem.editable));function F(){const e=v.get(x.fieldItem.type);return x.textFormatter(x.fieldItem,`${x.fieldItem.name}${e?`(${e})`:""}`)}return(t,i)=>(r(),o(d(p),l({secondary:!d(C),dashed:d(C)},d(y)(e.fieldItem),{onClick:f(g,["stop"]),class:d(q),"data-type":e.fieldItem.type}),{default:a((()=>[m(d(c),{class:n(d(h))},{default:a((()=>[s(u(F()),1)])),_:1},8,["class"]),m(_,{"field-item":e.fieldItem},null,8,["field-item"])])),_:1},16,["secondary","dashed","onClick","class","data-type"]))}}),[["__file","DefaultNode.vue"]]);export{j as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as o,computed as t,onMounted as r,onUnmounted as s,openBlock as a,createBlock as i,unref as l,withCtx as n,createElementBlock as m,createVNode as p,isRef as u,Fragment as d,renderList as c,createCommentVNode as f,createElementVNode as h,normalizeStyle as y,withKeys as j,withModifiers as g,toDisplayString as v}from"vue";import{createForm as b,onFieldValueChange as k,onFieldReact as F,onFormMount as C}from"@formily/core";import{FormProvider as H,FormConsumer as S}from"@formily/vue";import{isNumber as x,cloneDeep as A}from"lodash-es";import{NForm as R,NTabs as _,NTabPane as L,NConfigProvider as O}from"naive-ui";import{useAutoHidden as w}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as B}from"./hooks/useComplexOptions.js";import{useFormDomEvent as V,useFormExposeEvent as I}from"./hooks/useFormEvent.js";import{useFormRenderLifeCycle as N}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeReactions as D}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as q}from"./hooks/useNuiThemeOverrides.js";import"./utils/index.js";import{useFieldListAdaptor as U}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as W}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as K}from"./hooks/useFormValidator.js";import"@vueuse/core";import"date-fns";import{useAnchor as M}from"./hooks/useAnchor.js";import{useFormContext as T}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import E from"../../../_virtual/plugin-vue_export-helper.js";import{createObjSchema as P}from"./utils/schema.js";const J={key:0,style:{height:"54px"}},z={style:{"white-space":"pre"}};var G=E(e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},linebarAutoHidden:{type:Boolean}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:E,emit:G}){const Q=e,{nuiThemeOverrides:X}=q();K();const Y=o(),Z=t((()=>x(Q.maxHeight)?Q.maxHeight+"px":Q.maxHeight)),{SchemaField:$,businessCollector:ee,formItemDepsCollector:oe,changeContextCollector:te,formUUID:re}=T(Q,G),{anchorBarRef:se,currentAnchor:ae,generateAnchorList:ie,updateAnchorList:le,anchorIdList:ne,onScroll:me}=M(Q,G,Y,oe);N(Q).callLifeCycle("onSetup");const{trigger:pe}=w(),ue=b({initialValues:Q.initialData,effects(e){k("*",(o=>{const t=o.props.name.toString();ee.trigger(e,t),oe.trigger(t),G("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:te.getContext(t,o.value)}),de(t,o.value)})),Q.linebarAutoHidden&&(F("*",pe),C((e=>e.query("*").forEach(pe)))),Q.anchor&&(F("*",le),C(ie))}}),{lowCodeReactionsHandler:de,triggerAllReactionsHandler:ce}=D(t((()=>Q.lowCodeReactions)),ue);r(ce);const{schemaAdaptor:fe}=U(ee);let he=Q.fieldList||[];const ye=t((()=>Q.schema?Q.schema:Q.fieldList?(he=W().traverse(A(Q.fieldList),Q.fieldVisitor),P(fe(he))):P({}))),{onKeydown:je}=V({formModel:ue,formRenderRef:Y,props:Q}),{clearSpan:ge}=B();s((()=>ge(re)));const ve=I({formModel:ue,formRenderRef:Y,formItemDepsCollector:oe,getFieldList:()=>he,formUUID:re});return E({formModel:ue,validate:(e="*")=>ve.validate(e),getFormValues:(e=!0,o=!0)=>ve.getFormValues(e,o),setFormValues:(e,o=!0)=>ve.setFormValues(e,o),setFieldState(e,o){ve.setFieldState(e,o)},resetFields(e="*"){ve.resetFields(e)},queryWidget:async e=>ve.queryWidget(e),async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(a(),i(l(R),{class:"form-render","require-mark-placement":"left"},{default:n((()=>[e.anchor?(a(),m("section",J,[p(l(_),{value:l(ae),"onUpdate:value":t[0]||(t[0]=e=>u(ae)?ae.value=e:null),type:"line",ref_key:"anchorBarRef",ref:se},{default:n((()=>[(a(!0),m(d,null,c(l(ne),(e=>(a(),i(l(L),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):f("v-if",!0),p(l(O),{"theme-overrides":l(X)},{default:n((()=>[h("section",{class:"form-render__wrapper",style:y({"--column":e.column,"--form-height":l(Z)}),ref_key:"formRenderRef",ref:Y,onScroll:t[1]||(t[1]=(...e)=>l(me)&&l(me)(...e)),onKeydownCapture:t[2]||(t[2]=j(g(((...e)=>l(je)&&l(je)(...e)),["prevent"]),["enter"]))},[p(l(H),{form:l(ue)},{default:n((()=>[p(l($),{schema:l(ye)},null,8,["schema"]),e.consumer?(a(),i(l(S),{key:0},{default:n((({form:e})=>[h("div",z,v(JSON.stringify(e.values,null,2)),1)])),_:1})):f("v-if",!0)])),_:1},8,["form"])],36)])),_:1},8,["theme-overrides"])])),_:1}))}}),[["__file","FormRender.vue"]]);export{G as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as r,computed as t,openBlock as o,createBlock as a,nextTick as l}from"vue";import u from"./FormRender.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";var i=d(e({__name:"FormRenderWrapper",setup(e,{expose:d}){const i=r(),m=r(0);return d({...["validate","getFormValues","setFormValues","setFieldState","resetFieldState","resetFields","queryWidget"].reduce(((e,r)=>(e[r]=(...e)=>{var t;return null==(t=i.value)?void 0:t[r](...e)},e)),{}),formModel:t((()=>{var e;return null==(e=i.value)?void 0:e.formModel})),reload:async function(){m.value++,await l()}}),(e,r)=>(o(),a(u,{key:m.value,ref_key:"formRenderRef",ref:i}))}}),[["__file","FormRenderWrapper.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as r,computed as o,inject as a,openBlock as l,createElementBlock as s,createElementVNode as t,normalizeClass as i,unref as n,createTextVNode as d,toDisplayString as m,createBlock as u,createCommentVNode as f,Fragment as p,createVNode as v,withCtx as _,renderSlot as c}from"vue";import"../../../../index.js";import b from"../../tooltipMessage.vue.js";import{InjectionFormItemDepsCollector as k,FormItemLineBarDepKeyPrepend as h}from"../../../constants/index.js";import{ChevronDown as y,ChevronUp as g}from"@vicons/ionicons5";import{NCollapseTransition as j}from"naive-ui";import w from"../../../../../../_virtual/plugin-vue_export-helper.js";import{useFormField as x}from"../../../hooks/useFormField.js";const F={class:"form-render__linebar","anchor-target":""},C={class:"form-render__linebarHeaderTitle"};var H=w(e({__name:"FormCollapse",props:{show:{type:Boolean,default:!0},title:{type:String,default:""},remark:String,disabled:{type:Boolean,default:!1}},setup(e){const w=e,H=r(w.show);function B(){w.disabled||(H.value=!H.value)}const S=o((()=>["form-render__linebarHeader",{"form-render__linebarHeader--disabled":!!w.disabled}])),{fieldKey:D}=x();return a(k).setDeps(D.value,h+D.value,((e=!0)=>{H.value=e})),(r,o)=>(l(),s("section",F,[t("header",{class:i(n(S)),onClick:B},[t("div",C,[d(m(e.title)+" ",1),e.remark?(l(),u(b,{key:0,message:e.remark},null,8,["message"])):f("v-if",!0)]),e.disabled?f("v-if",!0):(l(),s(p,{key:0},[H.value?(l(),u(n(y),{key:0})):(l(),u(n(g),{key:1}))],64))],2),v(n(j),{class:"form-render__linebarItem",show:H.value},{default:_((()=>[c(r.$slots,"default")])),_:3},8,["show"])]))}}),[["__file","FormCollapse.vue"]]);export{H as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as a,inject as o,watch as r,createVNode as l,nextTick as n}from"vue";import{isEqual as i,isArray as u}from"lodash-es";import"../../../index.js";import{useCommonInjection as s}from"../../hooks/useCommonInjection.js";import{InjectionAsyncQueue as c,InjectionFormUUID as p}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../utils/index.js";import{useFormField as m}from"../../hooks/useFormField.js";import"@vueuse/core";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import"@formily/core";import"date-fns";import"@formily/reactive";import{connect as d,mapProps as v}from"@formily/vue";import"@vue/shared";import"./index.js";import"../../hooks/useFormRenderOptions.js";import{NCascader as f}from"naive-ui";import{createVisitedSetter as h,assignUpdateValue as y,traverseDependKey as j}from"../../utils/schema.js";const b=d(e({name:"FormCascader",props:{options:{type:Array,default:()=>[]},depth:{type:[Number,String]},urlConfig:{type:Object},requestCache:{type:Boolean,default:!0},onFocus:{type:Function},filterable:{type:Boolean,default:!1},onChange:{},value:{}},emits:["update:value"],setup(e,{slots:d,emit:v}){const y=t(),{field:b,title:k}=m(),C=a((()=>{var t,a;return null!=(a=null==(t=e.urlConfig)?void 0:t.nameKey)?a:"text"})),g=a((()=>{var t,a;return null!=(a=null==(t=e.urlConfig)?void 0:t.valueKey)?a:"value"})),A=a((()=>{try{const t=Array.isArray(e.value)?e.value:JSON.parse(e.value||"");return Array.isArray(t)&&t.length?t.map((e=>e[C.value])).join(" / "):null}catch(e){return null}}));function S(e,t,a){v("update:value",a.map((function(e){return{...e,label:e[C.value],children:void 0,parent:void 0}})))}const F=o(c);async function w(t){e.filterable?await async function(){if(!e.urlConfig||y.value&&e.requestCache)return;const t=await F.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:k.value,cache:e.requestCache});function a(e,t){const o={[C.value]:e[C.value],[g.value]:e[g.value],depth:t+1,isLeaf:!0};return u(e.children)&&(o.children=e.children.map((e=>a(e,t+1))),o.isLeaf=!e.children.length),o}y.value=t.map((e=>a(e,0)))}():await async function(t){if(r(e,t))return;const a=await F.addAsync(l(s(t),u(e),k.value,t));if(!a.length&&t)return t.isLeaf=!0,S(0,0,n(t)),void(K.value=!1);const o=a.map((e=>i(e,s(t))));function r(e,t){return!u(e)||!t&&y.value&&e.requestCache||s(t)>=s(e)-1}function l(t,a,o,r){const l={lvlnr:t+1+""};return r&&a.dependKey&&j(a.dependKey,((e,t)=>{l[t]=r[e]})),{params:l,...a,key:o,cache:e.requestCache}}function n(e){let t=e;const a=[e];for(;t.parent;)a.unshift(t.parent),t=t.parent;return a}function i(a,o){return{[C.value]:a[C.value],[g.value]:a[g.value],depth:o+1,parent:t,isLeaf:o+2>=s(e)}}function u(e){return e.urlConfig}function s(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=o:y.value=o}(t),await x()}const H=`form-render__cascade--menu-${o(p)}`;async function x(){await n();const e=document.querySelector(`.${H} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}const{injectValueValidate:L,injectValueWatchFromEmpty:q,injectValueBindKey:B}=s();q((()=>e.value),w),L((()=>e.value)),r((()=>e.urlConfig),(async(e,t)=>{i(e,t)||(y.value=null,await w())}));const K=t(!1);function V(e){K.value=!!e,e&&w()}const E=a((()=>y.value||e.options||[])),O=a((()=>!e.filterable)),W=B(A);return()=>l(f,{key:W.value,remote:O.value,filterable:e.filterable,"menu-props":{class:H,onClick:x},checkStrategy:"child",show:!!K.value,"onUpdate:show":V,value:A.value,"onUpdate:value":S,labelField:C.value,valueField:g.value,options:E.value,onLoad:w,onFocus:h(b)},d)}}),v({dataSource:"options"},y));export{b as SEARCH_CASCADER};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as o,inject as t,createVNode as r}from"vue";import{useDebounceFn as a}from"@vueuse/core";import{cloneDeep as s,isString as l}from"lodash-es";import{useCommonInjection as i,useSelectOptionProps as n}from"../../hooks/useCommonInjection.js";import{InjectionChangeContextCollector as p}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../../index.js";import"../../utils/index.js";import{useFormField as m}from"../../hooks/useFormField.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import"@formily/core";import"date-fns";import"@formily/reactive";import{connect as u,mapProps as c}from"@formily/vue";import"@vue/shared";import"./index.js";import{useUrlConfigOptions as d,useAutographOptions as y,useRecommendOptions as f,searchContentMatcher as v}from"../../hooks/useFormRenderOptions.js";import{NSelect as h}from"naive-ui";import{createVisitedSetter as j,assignUpdateValue as b,assignClearBindVisited as k}from"../../utils/schema.js";const S=u(e({name:"FormSelect",props:{value:{type:[String,Array]},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},onChange:{},urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},recommend:{type:Boolean,default:!1},commonList:{type:Array},recentList:{type:Array},getRecommendInfo:{type:Function},recommendNum:{type:Number,default:10},recommendCache:{type:Boolean,default:!1}},emits:["update:value","postRecommend"],setup(e,{slots:u,emit:c}){const b=o({get:()=>e.value,async set(e){c("update:value",e),g(e)}}),{labelKey:k,valueKey:S,fetchData:A,options:F}=e.urlConfig?d(e,b):y(e,b),{getRecommend:H,postRecommend:g,sortedOptions:x}=f(e,F,c,k,S),{field:B,fieldKey:C}=m();t(p).setContext(C.value,(e=>{return{currentOption:s((o=e,x.value.find((e=>e[S.value]===o))))};var o}));let R="";const L=a((async(e="")=>{R=e,A(e),H(e)}),400),{injectValueValidate:O,injectValueWatchFromEmpty:V,injectValueBindKey:K}=i();V(b,L),O(b);const P=K(b),{menuProps:W,nodeProps:q}=n();function w(e){const o=e[k.value];if(!o||!l(o))return"";const t=v(R,o);return t?r("section",null,[t.map(((e,o)=>0!==o&&e?r("span",{style:{color:o%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):o}return()=>r(h,{key:P.value,remote:!0,filterable:!0,value:b.value,"onUpdate:value":e=>b.value=e,"menu-props":W,"node-props":q,labelField:k.value,valueField:S.value,options:x.value,onSearch:L,"onUpdate:show":e=>e&&L(),onFocus:j(B),renderLabel:w},u)}}),c({dataSource:"options"},b,k));export{S as SELECT};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as o,openBlock as r,createBlock as i,unref as s,withCtx as t,createVNode as l,createElementVNode as n,createElementBlock as p,Fragment as a,renderList as m,toDisplayString as u}from"vue";import{HelpCircleOutline as g}from"@vicons/ionicons5";import{isString as f}from"lodash-es";import{NTooltip as v}from"naive-ui";import c from"../../../../_virtual/plugin-vue_export-helper.js";const _={style:{display:"inline-flex","flex-direction":"column"}};var d=c(e({__name:"tooltipMessage",props:{message:String},setup(e){const c=e,d=o((()=>f(c.message)?c.message.split("<br>"):[]));return(e,o)=>(r(),i(s(v),{trigger:"hover"},{trigger:t((()=>[l(s(g))])),default:t((()=>[n("section",_,[(r(!0),p(a,null,m(s(d),(e=>(r(),p("span",{key:e},u(e),1)))),128))])])),_:1}))}}),[["__file","tooltipMessage.vue"]]);export{d as default};
@@ -0,0 +1 @@
1
+ import{doAnimation as e}from"../../../../shared/utils/anime.js";import{untracked as t}from"@formily/reactive";import{useDebounceFn as o,watchOnce as n}from"@vueuse/core";import{ref as r,nextTick as l,computed as i}from"vue";import{FormItemLineBarDepKeyPrepend as a}from"../constants/index.js";import"../utils/index.js";import{createLinebarId as s}from"../utils/schema.js";function u(u,c,v,f){const m=r(),p=r(""),d=r([]),y=o((async function(e){var t;d.value=Object.values(e.fields).reduce(((e,t)=>("LINEBAR"===t.componentType&&"visible"===t.selfDisplay&&e.push({title:t.title,name:t.address.toString()}),e)),[]),await l(),null==(t=m.value)||t.syncBarPosition()}),100);let h=!1;async function T(t){h=!0;try{if(!v.value)return;f.trigger(a+t,!0),await l();const o=v.value.querySelector(`#${s(t)}`);if(!o)return;await new Promise((t=>{e(v.value.scrollTop,o.offsetTop,300,(e=>{var t;null==(t=v.value)||t.scrollTo({top:e})}),"easeInSine",(()=>setTimeout(t,300)))}))}finally{h=!1}}const g=o((function(e){var t;if(h||!v.value)return;const{scrollTop:o,clientHeight:n}=v.value,r=d.value.find(((e,t,r)=>{const l=r[t+1];if(!l)return!0;const i=v.value.querySelector(`#${s(l.name)}`);return i?i.offsetTop>o+n/2:void 0}))||d.value[d.value.length-1];p.value=null!=(t=null==r?void 0:r.name)?t:"",c("scroll",e)}),300);n(d,(e=>{var t,o;p.value=null!=(o=null==(t=e[0])?void 0:t.name)?o:""}));return{currentAnchor:i({get:()=>p.value,async set(e){p.value=e,await new Promise((e=>setTimeout(e,100))),await T(e)}}),onScroll:g,anchorIdList:d,generateAnchorList:y,updateAnchorList:function(e){"LINEBAR"===e.componentType&&e.selfDisplay&&t((()=>y(e.form)))},scrollTo:T,anchorBarRef:m}}export{u as useAnchor};
@@ -0,0 +1 @@
1
+ import{untracked as e}from"@formily/reactive";import{nextTick as t}from"vue";function s(){return{trigger:async function(s){const n=s.selfDisplay;e((async()=>{if("LINEBAR"===s.componentType)await t(),i(s);else{const e=s.parent;if(!e||"LINEBAR"!==e.componentType)return;"visible"===n?e.setDisplay("visible"):i(e)}}))}}}async function i(e){if("hidden"===e.selfDisplay)return;const t=function(e){const t=e.address.toString();return Reflect.get(e.form.query(t+".*"),"addresses").filter((s=>{const i=e.form.fields[s];return i&&i.address.parent().toString()===t}))}(e).some((t=>{const s=e.form.fields[t];return s&&"visible"===s.selfDisplay}));e.setDisplay(t?"visible":"hidden")}export{s as useAutoHidden};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,provide as t,computed as a,ref as o,watch as l,resolveComponent as s,openBlock as n,createElementBlock as i,unref as r,createBlock as u,resolveDynamicComponent as d,createVNode as f,mergeProps as c,createSlots as p,renderList as m,withCtx as v,createCommentVNode as b,renderSlot as g}from"vue";import{uuidGenerator as x}from"../../../shared/utils/index.js";import{useDebounceFn as h}from"@vueuse/core";import{promiseTimeout as k}from"@vueuse/shared";import{isFunction as y}from"lodash-es";import{VxeTableEventNameList as C,InjectionIhoTableEmits as j,InjectionIhoTableAnnotation as D,InjectionIhoTableUUID as _,InjectionIhoTableInstance as $,InjectionIhoTableConfig as H,InjectionIhoTableFieldList as A,InjectionIhoTableHandler as L}from"./constants/index.js";import{createTableHooks as T,applyTableConfigHooks as w,applyTableFieldHooks as R,createTableEventHandlers as E,createDomInsertComponent as F,createDataTransfer as I}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as O}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as N}from"./utils/index.js";import S from"../../../_virtual/plugin-vue_export-helper.js";const q=["id"];var z=S(e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object}},emits:["formChange","settingClick","formClick","keyboard",...C],setup(e,{expose:C,emit:S}){var z,B;const G=e,J=O(),K=function(e,...t){S(e,...t);const a=r(U)[N(e)];y(a)&&a(...t),J.trigger(e,...t)};t(j,K),t(D,a((()=>G.annotation)));const M=x();t(_,M);const P=o();t($,P);const Q=T(),U=o({uuid:null!=(B=null==(z=G.tableConfig)?void 0:z.uuid)?B:M});t(H,U);const V=h(W,10);function W(){U.value=w(Q,G.tableConfig),U.value.uuid=M}const X=o([]);t(A,X);const Y=h(Z,10);function Z(){X.value=R(Q,G.fieldList,U.value,{$table:P,emits:K})}const ee=I(Q,U,P),te=o([]),ae=h(oe,10);async function oe(){var e;te.value=await ee(G.tableData),null==(e=P.value)||e.recalculate(!0)}const le={updateTableDataRef:ae,updateConfigRef:V,updateFieldListRef:Y};t(L,le);const se=E({hooks:Q,config:U,$table:P,context:le,emits:K}),ne=a((()=>({...U.value,...se})));l((()=>G.tableConfig),(()=>{V(),Y(),ae()}),{deep:!0}),l((()=>G.fieldList),(()=>{Y(),ae()}),{deep:!0}),l([()=>G.tableData,()=>{var e;return null==(e=G.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=U.value.treeConfig)?void 0:e.expandAll)&&(await k(11),null==(t=P.value)||t.setAllTreeExpand(!0))})),l((()=>[...G.tableData]),ae),W(),Z(),oe();const{header:ie,footer:re}=F(Q);return C({$table:P,async loadData(e){var t;null==(t=P.value)||t.loadData(await ee(e))},setFilterState:(e,t)=>({fieldName:e,value:t}),...Q.exposeHooks.expose.call({},U,{$table:P,emits:K})}),Q.setupHooks.setup.call(U,X),(e,t)=>{const a=s("vxe-grid");return n(),i("section",{class:"iho-table",id:r(M)},[(n(),u(d(r(ie)))),f(a,c({ref_key:"$table",ref:P},r(ne),{columns:X.value,data:te.value}),p({_:2},[m(e.$slots,((t,a)=>({name:a,fn:v((()=>[b(" 实际上所有的vxe-grid插槽都支持 "),g(e.$slots,a)]))})))]),1040,["columns","data"]),(n(),u(d(r(re))))],8,q)}}}),[["__file","IhoTable.vue"]]);export{z as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,ref as l,onDeactivated as a,watch as o,computed as i,openBlock as s,createElementBlock as n,normalizeStyle as u,unref as r,createElementVNode as c,renderSlot as v,createVNode as p,withCtx as d,createTextVNode as f,toDisplayString as h,normalizeClass as m,createCommentVNode as _,Fragment as y,renderList as k,createBlock as b,isRef as g}from"vue";import{widthAppend as x}from"../../../../../shared/utils/index.js";import{FunnelSharp as C}from"@vicons/ionicons5";import{useVModel as S,useVirtualList as j}from"@vueuse/core";import{NEllipsis as w,NPopover as A,NIcon as $,NInput as B,NCheckbox as I,NCheckboxGroup as L,NButtonGroup as U,NButton as q}from"naive-ui";import{InjectionIhoTableUUID as P,InjectionIhoTableConfig as W}from"../../constants/index.js";import{IhoTableRenderHelper as Z}from"../../utils/index.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const E={class:"iho-table__filterWrapper"},F={key:0},H=["onClick"],O={class:"iho-table__filterListItem"},D={class:"iho-table__filterFooter"};var G=z(e({__name:"filter",props:{payload:{type:Object,required:!0},sortable:{type:Boolean},options:{type:Array,default:()=>[]},checked:{type:Array,required:!0},sortStatus:{type:String}},emits:["update:checked","update:sortStatus"],setup(e,{emit:z}){const G=e,J=t(P),K=t(W),M=S(G,"checked",z),N=S(G,"sortStatus",z),Q=l([]),R=l(!1),T=l("");function V(){R.value=!R.value}function X(){R.value=!1}a(X),o(R,(e=>{e&&(Q.value=[...M.value],T.value="")}));const{list:Y,containerProps:ee,wrapperProps:te}=j(i((()=>T.value?G.options.filter((e=>e.key.includes(T.value))):G.options)),{itemHeight:32,overscan:3}),le=i((()=>!!Q.value.length&&Q.value.length!==G.options.length)),ae=i({get:()=>Q.value.length===G.options.length,set:e=>{Q.value=e?G.options.map((e=>e.value)):[]}}),oe=i((()=>({...ee.style,height:x(320)})));function ie(){X(),z("update:checked",Q.value)}const se=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];const ne=i((()=>M.value.length||N.value)),ue=i((()=>{var e;return Z.isEditableColumn(K.value,null==(e=G.payload)?void 0:e.column)})),re=i((()=>({display:"inline-flex","align-items":"center",justifyContent:"start",width:`calc(100% - ${ue.value?19:0}px)`})));return(t,l)=>(s(),n("section",{style:u(r(re))},[c("section",null,[v(t.$slots,"header",{},(()=>[p(r(w),null,{default:d((()=>[f(h(e.payload.column.title),1)])),_:1})]))]),p(r(A),{to:`#${r(J)}`,show:R.value},{trigger:d((()=>[p(r($),{class:m(["iho-table__filterIcon",{"is-active":r(ne)}]),component:r(C),onClick:V},null,8,["class","component"])])),default:d((()=>[c("section",E,[_(' 判断是否显示升序降序模块的组件 v-if="sortable"'),e.sortable?(s(),n("div",F,[(s(),n(y,null,k(se,(e=>c("div",{key:e.status,class:m(["iho-table__filterButton",{"iho-table__filterButton--active":r(N)===e.status}]),onClick:t=>{return l=e.status,X(),void z("update:sortStatus",l);var l}},h(e.text),11,H))),64))])):_("v-if",!0),e.options.length>5?(s(),b(r(B),{key:1,value:T.value,"onUpdate:value":l[0]||(l[0]=e=>T.value=e)},null,8,["value"])):_("v-if",!0),c("div",O,[p(r(I),{label:"全选",checked:r(ae),"onUpdate:checked":l[1]||(l[1]=e=>g(ae)?ae.value=e:null),indeterminate:r(le)},null,8,["checked","indeterminate"])]),p(r(L),{value:Q.value,"onUpdate:value":l[3]||(l[3]=e=>Q.value=e)},{default:d((()=>[c("section",{ref:r(ee).ref,style:u(r(oe)),onScroll:l[2]||(l[2]=(...e)=>r(ee).onScroll&&r(ee).onScroll(...e)),class:"iho-table__filterListWrapper"},[c("section",{style:u(r(te).style)},[(s(!0),n(y,null,k(r(Y),(e=>(s(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[p(r(I),{value:e.data.value,label:e.data.key},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),c("footer",D,[c("section",null,h(`已选择${Q.value.length}项`),1),p(r(U),{size:"tiny"},{default:d((()=>[p(r(q),{onClick:l[4]||(l[4]=e=>Q.value=[])},{default:d((()=>[f("清空")])),_:1}),p(r(q),{onClick:X},{default:d((()=>[f("取消")])),_:1}),p(r(q),{type:"primary",onClick:ie},{default:d((()=>[f("确定")])),_:1})])),_:1})])])])),_:1},8,["to","show"])],4))}}),[["__file","filter.vue"]]);export{G as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as r,computed as a,watch as o,openBlock as l,createBlock as i,unref as u,mergeProps as s,withCtx as n,createVNode as d,isRef as m}from"vue";import{generateTimeFormat as c}from"../../../../../../../shared/utils/index.js";import{isFunction as v,isNaN as p}from"lodash-es";import{NPopover as f,NInput as w,NDatePicker as g}from"naive-ui";import{useIhoTableFormEvent as D}from"../../../../utils/index.js";import{useAutoFocus as $}from"../hooks/useAutoFocus.js";import h from"../../../../../../../_virtual/plugin-vue_export-helper.js";var y=h(e({__name:"editDate",props:{value:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{emit:h}){const y=e,b=t(),{emitFormChangeWithParams:T}=D(y),{formRef:k,isShow:_}=$(),F=r(),S=e=>{const t=y.value;h("update:value",e),T({oldValue:t})},{isStartDate:j=!1,isEndDate:M=!1}=b,U=b.connectField||"",x=(e,t)=>j&&U?e>t:!(!M||!U)&&e<t,H=e=>{const t=new Date(y.row[U]),r=new Date(e),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds(),i=(e,t,r,a)=>!(M&&r>a)&&(!(j&&r<a)&&x(e,t));return{isHourDisabled:t=>{if(!y.row[U])return!1;const o=new Date(`${y.row[U].split(" ")[0]} 00:00:00`).getTime(),l=r.getMinutes(),u=r.getSeconds();return i(t,a,e-60*t*60*1e3-60*l*1e3-1e3*u,o)},isMinuteDisabled:t=>{if(!y.row[U])return!1;const l=new Date(`${y.row[U].split(" ")[0]} ${a}:00:00`).getTime(),u=r.getSeconds();return i(t,o,e-60*t*1e3-1e3*u,l)},isSecondDisabled:t=>{if(!y.row[U])return!1;const r=new Date(`${y.row[U].split(" ")[0]} ${a}:${o}:00`).getTime();return i(t,l,e-1e3*t,r)}}};function P(e){return v(e)?t=>e(t,y.row):null}function q(e){if(!e)return"";const t=new Date(e),r=`00${t.getMonth()+1}`.slice(-2),a=`00${t.getDate()}`.slice(-2),o=R.value.valueFormat,l=o.includes("/")?"/":o.includes(".")?".":"-";let i=`${t.getFullYear()}${l}${r}${l}${a}`;const u=t.getTime(),s=new Date(y.row[U]).getTime();return y.row[U]&&(j&&u>s||M&&u<s)&&(i=""),i}function C(){let e=F.value;if(p(new Date(e).getTime()))if(/^\d{8}$/.test(e)){const t=`${e.slice(0,4)} ${e.slice(4,6)} ${e.slice(6)}`;e="",p(new Date(t).getTime())||(e=q(t))}else e="";else e=q(e);F.value=e||void 0,S(F.value)}const R=a((()=>{const e=b.valueFormat||"yyyy-MM-dd HH:mm:ss";return{valueFormat:e,format:e,timePickerProps:{format:c(e)}}})),A={type:b.type||"datetime",clearable:!0,placeholder:b.placeholder||"请选择",...b,...R.value,isDateDisabled:P(b.isDateDisabled)||(e=>!!y.row[U]&&x(e,M?new Date(`${y.row[U].split(" ")[0]} 00:00:00`).getTime():new Date(y.row[U]).getTime())),onUpdateFormattedValue:S};return A.type.includes("time")&&(A.isTimeDisabled=P(b.isTimeDisabled)||H),o((()=>y.value),(e=>{F.value=e})),(e,t)=>e.$attrs.isPopover?(l(),i(u(f),s({key:0,show:u(_),trigger:"click",showArrow:!1,placement:"bottom-start",style:{padding:"0"}},e.$attrs,{onClickoutside:t[4]||(t[4]=()=>_.value=!1)}),{trigger:n((()=>[d(u(w),{ref_key:"formRef",ref:k,clearable:"",value:F.value,"onUpdate:value":t[0]||(t[0]=e=>F.value=e),onBlur:C,onClick:t[1]||(t[1]=()=>_.value=!0)},null,8,["value"])])),default:n((()=>[d(u(g),s({panel:"",show:u(_),"onUpdate:show":t[2]||(t[2]=e=>m(_)?_.value=e:null),"formatted-value":F.value,"onUpdate:formatted-value":t[3]||(t[3]=e=>F.value=e)},u(A)),null,16,["show","formatted-value"])])),_:1},16,["show"])):(l(),i(u(g),s({key:1,ref_key:"formRef",ref:k,show:u(_),"onUpdate:show":t[5]||(t[5]=e=>m(_)?_.value=e:null),"formatted-value":F.value,"onUpdate:formatted-value":t[6]||(t[6]=e=>F.value=e)},u(A)),null,16,["show","formatted-value"]))}}),[["__file","editDate.vue"]]);export{y as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,ref as a,watch as o,computed as u,onMounted as r,onDeactivated as l,openBlock as i,createBlock as n,unref as s,withCtx as p,createElementVNode as v,withModifiers as d,normalizeStyle as c,toDisplayString as m,renderSlot as f,createVNode as h}from"vue";import{cloneDeep as g,isObject as w,isArray as y}from"lodash-es";import{NPopover as x,NInput as b}from"naive-ui";import{InjectionIhoTableHandler as k}from"../../../../constants/index.js";import{useIhoTableFormEvent as _}from"../../../../utils/index.js";import j from"../../../../../../../_virtual/plugin-vue_export-helper.js";const C=["onClick"];var S=j(e({__name:"editSeparate",props:{value:{},height:{type:Number,default:48},column:{type:Object,required:!0},row:{type:Object,required:!0},displayContent:{type:String,default:""},rowIndex:{type:Number,required:!0}},emits:["update:value","click"],setup(e,{emit:j}){const S=e,U=t(k),q=a(),P=a();function I(e){P.value=e}const N=a(!1);function O(e){N.value=e}function R(e){N.value=!N.value,j("click",e)}o(N,(function(e){e?async function(){var e;P.value=g(S.value),await new Promise((e=>setTimeout(e))),null==(e=q.value)||e.syncPosition()}():z()}));const{emitFormChangeWithParams:T}=_(S);async function z(){if(!w(P.value)&&!y(P.value)&&S.value===P.value)return;const e=S.value;j("update:value",P.value),T({oldValue:e}),U.updateTableDataRef()}const B=u((()=>({border:"1px solid #f5f5f5",height:S.height-16+"px",display:"flex",alignItems:"center",padding:"0",background:"white",wordBreak:"keep-all",boxSizing:"border-box","border-radius":"4px"})));return r((()=>O(!0))),l(z),(t,a)=>(i(),n(s(x),{ref_key:"popoverRef",ref:q,trigger:"manual",show:N.value,"onUpdate:show":a[1]||(a[1]=e=>N.value=e),"show-arrow":!1},{trigger:p((()=>[v("div",{onClick:d(R,["stop"]),style:c(s(B))},m(e.displayContent||" "),13,C)])),default:p((()=>[f(t.$slots,"menu",{value:P.value,"onUpdate:value":I,"onUpdate:show":O,col:e.column,row:e.row},(()=>[h(s(b),{value:P.value,"onUpdate:value":a[0]||(a[0]=e=>P.value=e),type:"textarea"},null,8,["value"])]))])),_:3},8,["show"]))}}),[["__file","editSeparate.vue"]]);export{S as default};