cnhis-design-vue 3.1.40 → 3.1.41-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -3
  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
@@ -1 +0,0 @@
1
- import{batchEnd as n,batchStart as o,batchScopeEnd as t,untrackEnd as i,untrackStart as r,batchScopeStart as c}from"./reaction.js";import{createBoundaryAnnotation as f}from"./internals.js";var e=f((function(){o(),r()}),(function(){i(),n()}));e.scope=f((function(){c(),r()}),(function(){i(),t()}));export{e as action};
@@ -1 +0,0 @@
1
- import{ProxyRaw as e,RawProxy as t}from"../environment.js";import{createAnnotation as r}from"../internals.js";import{buildDataTree as a}from"../tree.js";import{bindTargetKeyWithCurrentReaction as n,runReactionsFromTargetKey as o}from"../reaction.js";var u=r((function(r){var u=r.target,i=r.key,l=r.value,v={value:u?u[i]:l},m={set:function(e){var t=v.value;v.value=e,t!==e&&o({target:v,key:i,type:"set",oldValue:t,value:e})},get:function(){return n({target:v,key:i,type:"get"}),v.value}};return e.set(m,v),t.set(v,m),a(u,i,v),u?(Object.defineProperty(u,i,{value:m,enumerable:!0,configurable:!1,writable:!1}),u):m}));export{u as box};
@@ -1 +0,0 @@
1
- import{ProxyRaw as e,RawProxy as t,ReactionStack as r}from"../environment.js";import{createAnnotation as n}from"../internals.js";import{buildDataTree as o}from"../tree.js";import{isFn as i}from"../checkers.js";import{hasRunningReaction as u,bindComputedReactions as a,isUntracking as c,bindTargetKeyWithCurrentReaction as f,batchStart as l,batchEnd as p,releaseBindingReactions as v,runReactionsFromTargetKey as s}from"../reaction.js";var y=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,d=new WeakMap;function g(e,t){if(e)return y(e,t)||g(m(e),t)}function j(e,t,r){if(!e)return r?i(r)?{get:r}:r:{};var n=function(e,t){var r=e.constructor;if(r===Object||r===Array)return g(e,t);var n=d.get(r)||{},o=n[t];if(o)return o;var i=g(e,t);return d.set(r,n),n[t]=i,i}(e,t);return n||{}}var _=n((function(n){var i=n.target,y=n.key,m=n.value,d={},g={},_=i||d,O=i?y:"value",b=j(i,O,m);function k(){var e;d.value=null===(e=b.get)||void 0===e?void 0:e.call(_)}function P(){if(-1===r.indexOf(P)){v(P);try{r.push(P),k()}finally{r.pop()}}}function h(){return u()&&a(P),c()?k():P._dirty&&(P(),P._dirty=!1),f({target:_,key:O,type:"get"}),d.value}function x(e){var t;try{l(),null===(t=b.set)||void 0===t||t.call(_,e)}finally{p()}}return P._name="ComputedReaction",P._scheduler=function(){P._dirty=!0,s({target:_,key:O,value:d.value,type:"set"})},P._isComputed=!0,P._dirty=!0,P._context=_,P._property=O,i?(Object.defineProperty(i,y,{get:h,set:x,enumerable:!0}),i):(Object.defineProperty(g,"value",{set:x,get:h}),o(i,y,d),e.set(g,d),t.set(d,g),g)}));export{_ as computed};
@@ -1 +0,0 @@
1
- import{createAnnotation as e,createObservable as t}from"../internals.js";import{bindTargetKeyWithCurrentReaction as r,runReactionsFromTargetKey as a}from"../reaction.js";var u=e((function(e){var u=e.target,n=e.key,l=e.value,o={value:t(u,n,u?u[n]:l)};return u?(Object.defineProperty(u,n,{set:function(e){var r=o.value;e=t(u,n,e),o.value=e,r!==e&&a({target:u,key:n,type:"set",oldValue:r,value:e})},get:function(){return r({target:u,key:n,type:"get"}),o.value},enumerable:!0,configurable:!1}),u):o.value}));export{u as observable};
@@ -1 +0,0 @@
1
- import{ProxyRaw as e,RawProxy as t}from"../environment.js";import{createAnnotation as r}from"../internals.js";import{buildDataTree as a}from"../tree.js";import{bindTargetKeyWithCurrentReaction as n,runReactionsFromTargetKey as o}from"../reaction.js";var u=r((function(r){var u=r.target,i=r.key,l=r.value,v={value:u?u[i]:l},m={},s=u||v,f=u?i:"value";function p(){return n({target:s,key:f,type:"get"}),v.value}function y(e){var t=v.value;v.value=e,t!==e&&o({target:s,key:f,type:"set",oldValue:t,value:e})}return u?(Object.defineProperty(u,i,{get:p,set:y,enumerable:!0}),u):(Object.defineProperty(m,"value",{set:y,get:p}),a(u,i,v),e.set(m,v),t.set(v,m),m)}));export{u as ref};
@@ -1 +0,0 @@
1
- import{createAnnotation as e,createObservable as t}from"../internals.js";import{bindTargetKeyWithCurrentReaction as r,runReactionsFromTargetKey as a}from"../reaction.js";var u=e((function(e){var u=e.target,n=e.key,l=e.value,o={value:t(u,n,u?u[n]:l,!0)};return u?(Object.defineProperty(u,n,{set:function(e){var r=o.value;e=t(u,n,e,!0),o.value=e,r!==e&&a({target:u,key:n,type:"set",oldValue:r,value:e})},get:function(){return r({target:u,key:n,type:"get"}),o.value},enumerable:!0,configurable:!1}),u):o.value}));export{u as shallow};
@@ -1 +0,0 @@
1
- var t=function(){function t(t){void 0===t&&(t=[]),this.forEachIndex=0,this.value=t}return t.prototype.add=function(t){this.has(t)||this.value.push(t)},t.prototype.has=function(t){return this.value.indexOf(t)>-1},t.prototype.delete=function(t){var e=this.value.indexOf(t);e>-1&&(this.value.splice(e,1),e<=this.forEachIndex&&(this.forEachIndex-=1))},t.prototype.forEach=function(t){if(0!==this.value.length)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++)t(this.value[this.forEachIndex])},t.prototype.batchDelete=function(t){if(0!==this.value.length)for(this.forEachIndex=0;this.forEachIndex<this.value.length;this.forEachIndex++){var e=this.value[this.forEachIndex];this.value.splice(this.forEachIndex,1),this.forEachIndex--,t(e)}},t.prototype.clear=function(){this.value.length=0},t}();export{t as ArraySet};
@@ -1 +0,0 @@
1
- import"./array.js";import"./environment.js";
@@ -1 +0,0 @@
1
- import{batchEnd as o,batchStart as r,batchScopeEnd as e,batchScopeStart as n}from"./reaction.js";import{BatchCount as t,BatchEndpoints as i}from"./environment.js";import{createBoundaryAnnotation as m}from"./internals.js";import{isFn as p}from"./checkers.js";var s=m(r,o);s.scope=m(n,e),s.endpoint=function(o){p(o)&&(0===t.value?o():i.add(o))};export{s as batch};
@@ -1 +0,0 @@
1
- var n=Object.prototype.toString,t=function(n){return n&&n instanceof Map},r=function(n){return n&&n instanceof Set},e=function(n){return n&&n instanceof WeakMap},o=function(n){return n&&n instanceof WeakSet},u=function(n){return"function"==typeof n},c=Array.isArray,i=function(t){return"[object Object]"===n.call(t)},f=function(n){return null!=n},a=function(n){return t(n)||e(n)||r(n)||o(n)},p=function(n){return i(n)||c(n)};export{c as isArr,a as isCollectionType,u as isFn,t as isMap,p as isNormalType,i as isPlainObj,r as isSet,f as isValid,e as isWeakMap,o as isWeakSet};
@@ -1 +0,0 @@
1
- import{ArraySet as e}from"./array.js";var a=new WeakMap,n=new WeakMap,w=new WeakMap,p=new WeakMap,r=new WeakMap,k=[],l={value:0},M={value:0},o={value:!1},v=new e,W=new e,b=new e,m=Symbol("MakeObservableSymbol"),u=new e;export{l as BatchCount,b as BatchEndpoints,o as BatchScope,m as MakeObservableSymbol,u as ObserverListeners,v as PendingReactions,W as PendingScopeReactions,a as ProxyRaw,p as RawNode,n as RawProxy,r as RawReactionsMap,w as RawShallowProxy,k as ReactionStack,M as UntrackCount};
@@ -1 +0,0 @@
1
- import{isValid as o,isArr as t,isPlainObj as e,isFn as r,isMap as n,isWeakMap as i,isSet as m,isWeakSet as c}from"./checkers.js";import{ProxyRaw as s}from"./environment.js";import"./tree.js";var S=Symbol("RAW_TYPE"),f=Symbol("OBSERVABLE_TYPE"),j=function(o){return s.has(o)},p=function(s){return!!o(s)&&(!!t(s)||(e(s)?!s[S]&&(!!s[f]||(!("$$typeof"in s)||!("_owner"in s))&&(!s._isAMomentObject&&(!s._isJSONSchemaObject&&(!r(s.toJS)&&!r(s.toJSON))))):!!(n(s)||i(s)||m(s)||c(s))))};export{j as isObservable,p as isSupportObservable};
@@ -1 +0,0 @@
1
- import{bindTargetKeyWithCurrentReaction as e,runReactionsFromTargetKey as t}from"./reaction.js";import{ProxyRaw as r,RawProxy as a}from"./environment.js";import{isObservable as n,isSupportObservable as o}from"./externals.js";import{createObservable as l}from"./internals.js";var i,f=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var a,n,o=r.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)l.push(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return l},y=function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n<o;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},c=new Set(Object.getOwnPropertyNames(Symbol).map((function(e){return Symbol[e]})).filter((function(e){return"symbol"==typeof e}))),p=Object.prototype.hasOwnProperty;function u(e,t,r){var i=a.get(r);return i||(!n(r)&&o(r)?l(e,t,r):r)}function g(e,t,r,a){var n=r.next;return r.next=function(){var o=n.call(r),l=o.done,i=o.value;return l||(a?i[1]=u(e,t,i[1]):i=u(e,t,i)),{done:l,value:i}},r}var s=((i={has:function(t){var a=r.get(this),n=Reflect.getPrototypeOf(this);return e({target:a,key:t,type:"has"}),n.has.apply(a,arguments)},get:function(t){var a=r.get(this),n=Reflect.getPrototypeOf(this);return e({target:a,key:t,type:"get"}),u(a,t,n.get.apply(a,arguments))},add:function(e){var a=r.get(this),n=Reflect.getPrototypeOf(this),o=n.has.call(a,e),l=n.add.apply(a,arguments);return o||t({target:a,key:e,value:e,type:"add"}),l},set:function(e,a){var n=r.get(this),o=Reflect.getPrototypeOf(this),l=o.has.call(n,e),i=o.get.call(n,e),f=o.set.apply(n,arguments);return l?a!==i&&t({target:n,key:e,value:a,oldValue:i,type:"set"}):t({target:n,key:e,value:a,type:"add"}),f},delete:function(e){var a=r.get(this),n=Reflect.getPrototypeOf(this),o=n.has.call(a,e),l=n.get?n.get.call(a,e):void 0,i=n.delete.apply(a,arguments);return o&&t({target:a,key:e,oldValue:l,type:"delete"}),i},clear:function(){var e=r.get(this),a=Reflect.getPrototypeOf(this),n=0!==e.size,o=e instanceof Map?new Map(e):new Set(e),l=a.clear.apply(e,arguments);return n&&t({target:e,oldTarget:o,type:"clear"}),l},forEach:function(t){for(var a,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var l=r.get(this),i=Reflect.getPrototypeOf(this);e({target:l,type:"iterate"});var c=function(e,r){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];return t.apply(void 0,y([u(l,r,e),r],f(a),!1))};return(a=i.forEach).call.apply(a,y([l,c],f(n),!1))},keys:function(){var t=r.get(this),a=Reflect.getPrototypeOf(this);return e({target:t,type:"iterate"}),a.keys.apply(t,arguments)},values:function(){var t=r.get(this),a=Reflect.getPrototypeOf(this);e({target:t,type:"iterate"});var n=a.values.apply(t,arguments);return g(t,"",n,!1)},entries:function(){var t=r.get(this),a=Reflect.getPrototypeOf(this);e({target:t,type:"iterate"});var n=a.entries.apply(t,arguments);return g(t,"",n,!0)}})[Symbol.iterator]=function(){var t=r.get(this),a=Reflect.getPrototypeOf(this);e({target:t,type:"iterate"});var n=a[Symbol.iterator].apply(t,arguments);return g(t,"",n,t instanceof Map)},Object.defineProperty(i,"size",{get:function(){var t=r.get(this),a=Reflect.getPrototypeOf(this);return e({target:t,type:"iterate"}),Reflect.get(a,"size",t)},enumerable:!1,configurable:!0}),i),v={get:function(e,t,r){return e=p.call(s,t)?s:e,Reflect.get(e,t,r)}},h={get:function(t,r,i){if(r){var f=t[r];if("symbol"==typeof r&&c.has(r))return f;e({target:t,key:r,receiver:i,type:"get"});var y=a.get(f);if(y)return y;if(!n(f)&&o(f)){var p=Reflect.getOwnPropertyDescriptor(t,r);if(!p||!1!==p.writable||!1!==p.configurable)return l(t,r,f)}return f}},has:function(t,r){var a=Reflect.has(t,r);return e({target:t,key:r,type:"has"}),a},ownKeys:function(t){var r=Reflect.ownKeys(t);return e({target:t,type:"iterate"}),r},set:function(e,r,a,n){var o=p.call(e,r),i=l(e,r,a),f=e[r];return e[r]=i,o?a!==f&&t({target:e,key:r,value:i,oldValue:f,receiver:n,type:"set"}):t({target:e,key:r,value:i,oldValue:f,receiver:n,type:"add"}),!0},deleteProperty:function(e,r){var a=e[r];return delete e[r],t({target:e,key:r,oldValue:a,type:"delete"}),!0}};export{h as baseHandlers,v as collectionHandlers};
@@ -1 +0,0 @@
1
- import{isNormalType as r,isCollectionType as t,isFn as n}from"./checkers.js";import{MakeObservableSymbol as e,ProxyRaw as u,RawShallowProxy as o,RawProxy as f}from"./environment.js";import{baseHandlers as i,collectionHandlers as a}from"./handlers.js";import{getDataNode as c,buildDataTree as s}from"./tree.js";import{isSupportObservable as v}from"./externals.js";var m=function(r,t){var n=new Proxy(r,i);return u.set(n,r),t?o.set(r,n):f.set(r,n),n},p=function(r,t){var n=new Proxy(r,a);return u.set(n,r),t?o.set(r,n):f.set(r,n),n},y=function(n,e,f,i){if("object"!=typeof f)return f;var a=u.get(f);if(a){var y=c(a);return y.target||(y.target=n),y.key=e,f}if(!v(f))return f;if(n){var g=u.get(n)||n;if(o.get(g))return f}return s(n,e,f),i?function(n){return r(n)?m(n,!0):t(n)?p(n,!0):n}(f):r(f)?m(f):t(f)?p(f):f},g=function(r){var t=function(t){return r({value:t})};return n(r)&&(t[e]=r),t},l=function(r,t){function e(e){var u;try{r(),n(e)&&(u=e())}finally{t()}return u}return e.bound=j(e),e},j=function(r){return function(t,n){return function(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];return r((function(){return t.apply(n,e)}))}}},b=function(r,t){var n=l(r,t),u=g((function(r){var t=r.target,e=r.key;return t[e]=n.bound(t[e],t),t}));return n[e]=u,n.bound[e]=u,n};export{g as createAnnotation,j as createBindFunction,b as createBoundaryAnnotation,l as createBoundaryFunction,y as createObservable};
@@ -1 +0,0 @@
1
- import{observable as o}from"./annotations/observable.js";import{box as n}from"./annotations/box.js";import{ref as t}from"./annotations/ref.js";import{shallow as r}from"./annotations/shallow.js";import{computed as s}from"./annotations/computed.js";import{MakeObservableSymbol as m}from"./environment.js";import{createObservable as a}from"./internals.js";function e(o){return a(null,null,o)}e.box=n,e.ref=t,e.deep=o,e.shallow=r,e.computed=s,e[m]=o;export{e as observable};
@@ -1 +0,0 @@
1
- import{isFn as e}from"./checkers.js";import{ArraySet as t}from"./array.js";import{RawReactionsMap as n,ReactionStack as r,BatchCount as a,PendingReactions as u,BatchEndpoints as c,PendingScopeReactions as o,ObserverListeners as i,BatchScope as l,UntrackCount as f}from"./environment.js";var v=Symbol("iteration key"),d=function(t,r){var a=function(e,t){var r=n.get(e),a=[];if(r){var u=r.get(t);u&&u.forEach((function(e){-1===a.indexOf(e)&&a.push(e)}))}return a}(t,r),c=f.value;f.value=0;for(var i=0,l=a.length;i<l;i++){var v=a[i];v._isComputed?v._scheduler(v):j()?o.add(v):k()?u.add(v):e(v._scheduler)?v._scheduler(v):v()}f.value=c},h=function(e){var a=e.key,u=e.type,c=e.target;"iterate"===u&&(a=v);var o,i,l,f=r[r.length-1];D()||f&&(o=f,i=function(e,r,a){var u=n.get(e);if(u){var c=u.get(r);return c?c.add(a):u.set(r,new t([a])),u}var o=new Map([[r,new t([a])]]);return n.set(e,o),o}(c,a,f),(l=o._reactionsSet)?l.add(i):o._reactionsSet=new t([i]))},s=function(n){if(e(n)){var a=r[r.length-1];if(a){var u=a._computesSet;u?u.add(n):a._computesSet=new t([n])}}},_=function(e){var t=e.key,n=e.type,r=e.target,a=e.oldTarget;if(p(),function(e){i.forEach((function(t){return t(e)}))}(e),"clear"===n?a.forEach((function(e,t){d(r,t)})):d(r,t),"add"===n||"delete"===n||"clear"===n){var u=Array.isArray(r)?"length":v;d(r,u)}y()},g=function(){return r.length>0},m=function(e){var t;null===(t=e._reactionsSet)||void 0===t||t.forEach((function(t){t.forEach((function(t){t.delete(e)}))})),u.delete(e),o.delete(e),delete e._reactionsSet},p=function(){a.value++},y=function(){if(a.value--,0===a.value){var e=f.value;f.value=0,x(),A(),f.value=e}},S=function(){l.value=!0},w=function(){var t=f.value;l.value=!1,f.value=0,o.batchDelete((function(t){e(t._scheduler)?t._scheduler(t):t()})),f.value=t},E=function(){f.value++},b=function(){f.value--},k=function(){return a.value>0},j=function(){return l.value},D=function(){return f.value>0},x=function(){u.batchDelete((function(t){e(t._scheduler)?t._scheduler(t):t()}))},A=function(){c.batchDelete((function(e){e()}))};export{y as batchEnd,w as batchScopeEnd,S as batchScopeStart,p as batchStart,s as bindComputedReactions,h as bindTargetKeyWithCurrentReaction,A as executeBatchEndpoints,x as executePendingReactions,g as hasRunningReaction,k as isBatching,j as isScopeBatching,D as isUntracking,m as releaseBindingReactions,_ as runReactionsFromTargetKey,b as untrackEnd,E as untrackStart};
@@ -1 +0,0 @@
1
- import{ProxyRaw as t,RawNode as e}from"./environment.js";var r=function(){function e(t,e,r){this.target=t,this.key=e,this.value=r}return Object.defineProperty(e.prototype,"path",{get:function(){return this.parent?this.parent.path.concat(this.key):this.key?[this.key]:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetRaw",{get:function(){return t.get(this.target)||this.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){if(this.target)return n(this.targetRaw)},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return this.key?t.targetRaw===this.targetRaw&&t.key===this.key:t.value===this.value},e.prototype.contains=function(t){if(t===this)return!0;for(var e=t.parent;e;){if(this.isEqual(e))return!0;e=e.parent}return!1},e}(),n=function(t){return e.get(t)},i=function(t,r){e.set(t,r)},a=function(e,a,o){var u=t.get(o)||o,s=n(u);if(s)return s;i(u,new r(e,a,o))};export{r as DataNode,a as buildDataTree,n as getDataNode,i as setDataNode};
@@ -1 +0,0 @@
1
- import{createBoundaryFunction as r}from"./internals.js";import{untrackEnd as o,untrackStart as t}from"./reaction.js";var i=r(t,o);export{i as untracked};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as o,openBlock as i,createBlock as n,unref as r,normalizeStyle as l,withCtx as s,createElementVNode as a,createVNode as u,Fragment as c,createTextVNode as v}from"vue";import{NModal as m,NIcon as p}from"naive-ui";import{SquareOutline as d,CopyOutline as f}from"@vicons/ionicons5";const h=["src"];var w=e({__name:"Preview",props:{visible:{type:Boolean,default:!1},src:{type:String}},emits:["update:visible"],setup(e,{emit:w}){const b=e,g=t(!0),y=o((()=>{const e=g.value?80:100;return`width: ${e}vw; height: ${e}vh`}));function k(){return u(c,null,[u("div",null,[v("预览")]),u(p,{style:{margin:"0 0 0 auto",transform:g.value?"none":"rotate(90deg)"},onClick:C,component:g.value?d:f},null)])}function C(){g.value=!g.value}function _(){b.src&&window.URL.revokeObjectURL(b.src),w("update:visible",!1)}return(t,o)=>(i(),n(r(m),{preset:"dialog",show:e.visible,"show-icon":!1,style:l(r(y)),class:"c-button-preview-modal",title:k,onClose:_,onMaskClick:_},{default:s((()=>[a("iframe",{src:e.src,frameborder:"0",width:"100%",height:"97%"},null,8,h)])),_:1},8,["show","style"]))}});export{w as default};
@@ -1 +0,0 @@
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 r,useBrowserPrint as s,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:r}=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){r(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 r={templateId:t,formatId:e,params:i,cmdid:"7"},s=await this._queryServicesPrint(r);return this._handleQueryPrintDataResult(s,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:r,printdlgshow:s="1",nobillnode:a="1",btnprint:o="1"}){const l={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:s,btnprint:o};if(r){try{r=JSON.parse(r)}catch(t){}l.print=r}return await this._queryServicesPrint(l)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const r={};let s={};try{s=Object.assign({},r,JSON.parse(i))}catch(t){s=r}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(s)};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 r(`${u}/${a}`),l=s(null,e,o);if("preview"===e)return l}}async preview({templateId:t,formatId:e,params:i="",btnprint:n,print:r},l,d){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==d?void 0:d("获取文件失败!");const n=s(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==l||l({file:t}))}await this._queryProxyOrigin();const h=await this._testConnection();if(!this._handleResultTest(h,d))return!1;const c=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n,...this.isRemote?{print:r}:{}});if(!c)return!1;const p=this._handleResult(c,d);if(!p)return!1;const u=await this._browserPrint(p,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,u),l&&l(p)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:r,nobillnode:o},l,d,h="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(s(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:r,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 r=>{if(r||n(null),a(t.formatId))return i(r);const s=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await s._downloadPDF("");if(1===n.length)return await s._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await s._downloadPDF(n[t]||""));return i}(r.filedir);i(o)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,r);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,r);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this._handleEventQueryPrintData(t,e,i,r);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,r);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},r,s){const a=await this._testConnection();if(!this._handleResultTest(a,s))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,s);if(!l)return!1;r&&r(l)}async addPrintFormat({templateId:t,params:e,token:i},n,r){const s=await this._testConnection();if(!this._handleResultTest(s,r))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,r);if(!o)return!1;n&&n(o)}}export{w as Print};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as o,inject as a,watch as r,createVNode as l,nextTick as n}from"vue";import{isEqual as i,isArray as s}from"lodash-es";import"../../../index.js";import{useCommonInjection as u}from"../../hooks/useCommonInjection.js";import{InjectionAsyncQueue as m,InjectionFormUUID as c}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../utils/index.js";import{useFormField as p}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"../../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../../node_modules/@formily/reactive/esm/action.js";import"../../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../../node_modules/@formily/reactive/esm/array.js";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 y,assignUpdateValue as h,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 h=t(),{field:b,title:k}=p(),C=o((()=>{var t,o;return null!=(o=null==(t=e.urlConfig)?void 0:t.nameKey)?o:"text"})),g=o((()=>{var t,o;return null!=(o=null==(t=e.urlConfig)?void 0:t.valueKey)?o:"value"})),A=o((()=>{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,o){v("update:value",o.map((function(e){return{...e,label:e[C.value],children:void 0,parent:void 0}})))}const F=a(m);async function _(t){e.filterable?await async function(){if(!e.urlConfig||h.value&&e.requestCache)return;const t=await F.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:k.value,cache:e.requestCache});function o(e,t){const a={[C.value]:e[C.value],[g.value]:e[g.value],depth:t+1,isLeaf:!0};return s(e.children)&&(a.children=e.children.map((e=>o(e,t+1))),a.isLeaf=!e.children.length),a}h.value=t.map((e=>o(e,0)))}():await async function(t){if(r(e,t))return;const o=await F.addAsync(l(u(t),s(e),k.value,t));if(!o.length&&t)return t.isLeaf=!0,S(0,0,n(t)),void(B.value=!1);const a=o.map((e=>i(e,u(t))));function r(e,t){return!s(e)||!t&&h.value&&e.requestCache||u(t)>=u(e)-1}function l(t,o,a,r){const l={lvlnr:t+1+""};return r&&o.dependKey&&j(o.dependKey,((e,t)=>{l[t]=r[e]})),{params:l,...o,key:a,cache:e.requestCache}}function n(e){let t=e;const o=[e];for(;t.parent;)o.unshift(t.parent),t=t.parent;return o}function i(o,a){return{[C.value]:o[C.value],[g.value]:o[g.value],depth:a+1,parent:t,isLeaf:a+2>=u(e)}}function s(e){return e.urlConfig}function u(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=a:h.value=a}(t),await H()}const w=`form-render__cascade--menu-${a(c)}`;async function H(){await n();const e=document.querySelector(`.${w} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}const{injectValueValidate:x,injectValueWatchFromEmpty:L,injectValueBindKey:q}=u();L((()=>e.value),_),x((()=>e.value)),r((()=>e.urlConfig),(async(e,t)=>{i(e,t)||(h.value=null,await _())}));const B=t(!1);function K(e){B.value=!!e,e&&_()}const V=o((()=>h.value||e.options||[])),E=o((()=>!e.filterable)),O=q(A);return()=>l(f,{key:O.value,remote:E.value,filterable:e.filterable,"menu-props":{class:w,onClick:H},checkStrategy:"child",show:!!B.value,"onUpdate:show":K,value:A.value,"onUpdate:value":S,labelField:C.value,valueField:g.value,options:V.value,onLoad:_,onFocus:y(b)},d)}}),v({dataSource:"options"},h));export{b as SEARCH_CASCADER};
@@ -1 +0,0 @@
1
- import{defineComponent as e,computed as o,inject as t,createVNode as r}from"vue";import{useDebounceFn as s}from"@vueuse/core";import{cloneDeep as a,isString as i}from"lodash-es";import{useCommonInjection as l,useSelectOptionProps as m}from"../../hooks/useCommonInjection.js";import{InjectionChangeContextCollector as n}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../../index.js";import"../../utils/index.js";import{useFormField as p}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"../../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../../node_modules/@formily/reactive/esm/action.js";import"../../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../../node_modules/@formily/reactive/esm/array.js";import{connect as u,mapProps as d}from"@formily/vue";import"@vue/shared";import"./index.js";import{useUrlConfigOptions as c,useAutographOptions as y,useRecommendOptions as f,searchContentMatcher as v}from"../../hooks/useFormRenderOptions.js";import{NSelect as j}from"naive-ui";import{createVisitedSetter as h,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:d}){const b=o({get:()=>e.value,async set(e){d("update:value",e),g(e)}}),{labelKey:k,valueKey:S,fetchData:A,options:F}=e.urlConfig?c(e,b):y(e,b),{getRecommend:H,postRecommend:g,sortedOptions:_}=f(e,F,d,k,S),{field:x,fieldKey:B}=p();t(n).setContext(B.value,(e=>{return{currentOption:a((o=e,_.value.find((e=>e[S.value]===o))))};var o}));let C="";const R=s((async(e="")=>{C=e,A(e),H(e)}),400),{injectValueValidate:L,injectValueWatchFromEmpty:O,injectValueBindKey:V}=l();O(b,R),L(b);const K=V(b),{menuProps:P,nodeProps:W}=m();function q(e){const o=e[k.value];if(!o||!i(o))return"";const t=v(C,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(j,{key:K.value,remote:!0,filterable:!0,value:b.value,"onUpdate:value":e=>b.value=e,"menu-props":P,"node-props":W,labelField:k.value,valueField:S.value,options:_.value,onSearch:R,"onUpdate:show":e=>e&&R(),onFocus:h(x),renderLabel:q},u)}}),d({dataSource:"options"},b,k));export{S as SELECT};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{doAnimation as e}from"../../../../shared/utils/anime.js";import"../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../node_modules/@formily/reactive/esm/action.js";import{untracked as o}from"../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../node_modules/@formily/reactive/esm/array.js";import{useDebounceFn as r,watchOnce as t}from"@vueuse/core";import{ref as i,nextTick as l,computed as n}from"vue";import{FormItemLineBarDepKeyPrepend as s}from"../constants/index.js";import"../utils/index.js";import{createLinebarId as a}from"../utils/schema.js";function m(m,u,c,v){const f=i(),d=i(""),p=i([]),y=r((async function(e){var o;p.value=Object.values(e.fields).reduce(((e,o)=>("LINEBAR"===o.componentType&&"visible"===o.selfDisplay&&e.push({title:o.title,name:o.address.toString()}),e)),[]),await l(),null==(o=f.value)||o.syncBarPosition()}),100);let j=!1;async function h(o){j=!0;try{if(!c.value)return;v.trigger(s+o,!0),await l();const r=c.value.querySelector(`#${a(o)}`);if(!r)return;await new Promise((o=>{e(c.value.scrollTop,r.offsetTop,300,(e=>{var o;null==(o=c.value)||o.scrollTo({top:e})}),"easeInSine",(()=>setTimeout(o,300)))}))}finally{j=!1}}const T=r((function(e){var o;if(j||!c.value)return;const{scrollTop:r,clientHeight:t}=c.value,i=p.value.find(((e,o,i)=>{const l=i[o+1];if(!l)return!0;const n=c.value.querySelector(`#${a(l.name)}`);return n?n.offsetTop>r+t/2:void 0}))||p.value[p.value.length-1];d.value=null!=(o=null==i?void 0:i.name)?o:"",u("scroll",e)}),300);t(p,(e=>{var o,r;d.value=null!=(r=null==(o=e[0])?void 0:o.name)?r:""}));return{currentAnchor:n({get:()=>d.value,async set(e){d.value=e,await new Promise((e=>setTimeout(e,100))),await h(e)}}),onScroll:T,anchorIdList:p,generateAnchorList:y,updateAnchorList:function(e){"LINEBAR"===e.componentType&&e.selfDisplay&&o((()=>y(e.form)))},scrollTo:h,anchorBarRef:f}}export{m as useAnchor};
@@ -1 +0,0 @@
1
- import"../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../node_modules/@formily/reactive/esm/action.js";import{untracked as e}from"../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../node_modules/@formily/reactive/esm/array.js";import{nextTick as r}from"vue";function o(){return{trigger:async function(o){const i=o.selfDisplay;e((async()=>{if("LINEBAR"===o.componentType)await r(),s(o);else{const e=o.parent;if(!e||"LINEBAR"!==e.componentType)return;"visible"===i?e.setDisplay("visible"):s(e)}}))}}}async function s(e){if("hidden"===e.selfDisplay)return;const r=function(e){const r=e.address.toString();return Reflect.get(e.form.query(r+".*"),"addresses").filter((o=>{const s=e.form.fields[o];return s&&s.address.parent().toString()===r}))}(e).some((r=>{const o=e.form.fields[r];return o&&"visible"===o.selfDisplay}));e.setDisplay(r?"visible":"hidden")}export{o as useAutoHidden};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(t+="",!p.value)return t;if(!t)return"-";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
@@ -1 +0,0 @@
1
- import{defineComponent as t,openBlock as e,createBlock as l,unref as i,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as u,toDisplayString as a}from"vue";import{NTooltip as s,NEllipsis as f}from"naive-ui";import d from"../../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),l(i(s),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(i(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>{var e;return[u(a(null!=(e=t.content)?e:"-"),1)]})),_:1},8,["style","tooltip"])])])),default:o((()=>[u(" "+a(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,computed as t,ref as n,nextTick as i,onMounted as o,watch as a,onBeforeUnmount as l,onDeactivated as r,onActivated as s,openBlock as c,createElementBlock as d,normalizeClass as f,normalizeStyle as u,createElementVNode as p,createCommentVNode as h,renderSlot as v,Fragment as m,createVNode as y,unref as g,withCtx as _,mergeProps as I,toDisplayString as w,renderList as b,createBlock as k,resolveDynamicComponent as x,createTextVNode as S,h as $}from"vue";import{isString as z,isArray as H}from"lodash-es";import{NPopover as W,NImage as F,NTag as j,NEllipsis as C,NScrollbar as L,NDescriptions as P,NDescriptionsItem as M}from"naive-ui";import{useThrottleFn as A,useEventListener as q}from"@vueuse/core";import R from"../../../shared/components/SlotRender/SlotRender.js";import N from"./InfoEllipsis.vue.js";import B from"./HiddenContent.vue.js";import E from"../../../../_virtual/plugin-vue_export-helper.js";const O={class:"c-info-header__operation"},U={key:0,class:"c-info-header__divider"},D={class:"c-info-header__patient"},G={class:"c-info-header__patientHeader"},J={key:0,class:"c-info-header__patientHeader--name"},K={key:1,class:"c-info-header__patientHeader--sex"},Q={key:2,class:"c-info-header__patientHeader--age"},T=p("section",{style:{height:"10px"}},null,-1),V=p("section",{style:{height:"12px"}},null,-1),X={class:"c-info-header__setting"},Y=["onClick"];var Z=E(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},separator:{type:String,default:":"},patientInfo:{type:Object,default:()=>({})},infoList:{type:Array,required:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:32},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]}},emits:["openPatientInfo","fieldSet","update:compact"],setup(e,{expose:E,emit:Z}){const ee=e;const te={patientInfo:{event:function(){Z("openPatientInfo")},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){Z("fieldSet")},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){Z("update:compact",!ee.compact),await i(),await ue()},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},ne=t((()=>ee.settingIcons.map((e=>(z(e)?te[e]:e)||{}))));function ie({type:e="warning"}){return{color:{warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"}[e],textColor:{warning:"#fff",info:"#2563F4"}[e]}}const oe=t((()=>ee.patientInfo&&H(ee.patientInfo.tagList)?ee.patientInfo.tagList.filter((e=>e.render||z(e.content)&&e.content)):[]));function ae({bold:e=!0,contentStyle:t={}}={}){return{fontWeight:e?700:500,...t}}function le(e,{bold:t=!0,contentStyle:n={}}={}){const i=fe.value[e]+"px";return{width:i,maxWidth:i,fontWeight:t?700:500,...n}}function re(e){return["电话","身份证"].some((t=>{var n,i;return null==(i=null==(n=e[ee.labelField])?void 0:n.includes)?void 0:i.call(n,t)}))}const se=n(),ce=n(3),de=n(0),fe=n([]),ue=A((async function(){await i();const e=se.value;if(!e)return;const{clientWidth:t}=e;ce.value=Math.floor(t/+ee.minColumnWidth),de.value=Math.floor(t/ce.value),await i();const n=e.querySelectorAll(".n-descriptions-table-content__label");n&&(fe.value=Array.from(n).map((e=>de.value-e.clientWidth-8)))}),200,!0,!1);let pe;function he(){clearInterval(pe)}function ve(){he(),pe=setInterval(ue,700)}return o(ue),a([()=>ee.minColumnWidth,()=>ee.infoList],ue,{flush:"post",deep:!0}),E({update:ue}),q(window,"resize",ue),l(he),r(he),s(ve),o(ve),(t,n)=>(c(),d("div",{class:f(["c-info-header",{"is-compact":e.compact}]),style:u({"--row-height":e.rowHeight,"--column-width":de.value})},[p("section",O,[h(" 操作区插槽 "),v(t.$slots,"operation")]),t.$slots.operation?(c(),d("div",U)):h("v-if",!0),p("section",D,[h(" 患者信息区插槽 "),v(t.$slots,"patientModule"),h(" 头像区插槽 "),v(t.$slots,"avatarModule",{},(()=>[t.$slots.avatarModule?h("v-if",!0):(c(),d(m,{key:0},[h(" 头像插槽 "),v(t.$slots,"avatar",{},(()=>[y(g(W),null,{trigger:_((()=>[y(g(F),I({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:_((()=>[y(g(F),I({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),p("section",null,[p("header",G,[e.patientInfo.name?(c(),d("div",J,w(e.patientInfo.name),1)):h("v-if",!0),e.patientInfo.sex?(c(),d("div",K,"/ "+w(e.patientInfo.sex),1)):h("v-if",!0),e.patientInfo.age?(c(),d("div",Q," / "+w(e.patientInfo.age)+w(e.patientInfo.ageUnit||"岁"),1)):h("v-if",!0),h(" tag区插槽 "),v(t.$slots,"tags",{tagList:g(oe)},(()=>[(c(!0),d(m,null,b(e.patientInfo.tagList||[],(e=>(c(),k(g(j),I({key:e.content,size:"medium",bordered:!1,color:ie(e)},e),{default:_((()=>[e.render?(c(),k(x(e.render),{key:0})):(c(),k(g(C),{key:1,style:{"max-width":"96px"}},{default:_((()=>[S(w(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),h(" 头像信息区插槽 "),v(t.$slots,"avatarInfo")])],64))]))]),p("section",{class:"c-info-header__info",ref_key:"infoRef",ref:se},[y(g(L),{class:"c-info-header__infoWrapper",style:u({"--row-num":e.compact?1:2})},{default:_((()=>[h(" 描述信息区插槽 "),v(t.$slots,"info",{},(()=>[T,y(g(P),{"label-align":"right",style:{width:"100%"},"label-placement":"left",separator:":",column:ce.value},{default:_((()=>[(c(!0),d(m,null,b(e.infoList,((n,i)=>(c(),k(g(M),{key:n[e.labelField],label:n[e.labelField]},{default:_((()=>[n.slot?(c(),k(g(R),{key:0,renderer:n.slot,"root-slots":t.$slots,item:n,style:u(ae(n)),width:fe.value[i]},null,8,["renderer","root-slots","item","style","width"])):re(n)?(c(),k(B,{key:1,content:n[e.valueField],tip:n.tip,"content-style":ae(n),width:fe.value[i]},null,8,["content","tip","content-style","width"])):(c(),k(N,{key:2,"content-style":le(i,n),content:n[e.valueField],tip:n.tip},null,8,["content-style","content","tip"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]),V]))])),_:3},8,["style"])],512),p("section",X,[h(" 设置区插槽 "),v(t.$slots,"setting"),t.$slots.setting?h("v-if",!0):(c(!0),d(m,{key:0},b(g(ne),(e=>(c(),d("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(c(),k(x(e.render)))],8,Y)))),128))])],6))}}),[["__file","InfoHeader.vue"]]);export{Z as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as l,provide as t,computed as n,unref as o,openBlock as a,createBlock as u,withCtx as i,createVNode as r,normalizeProps as s,mergeProps as d,createElementBlock as f,normalizeClass as c,normalizeStyle as p,createElementVNode as v,Fragment as m,renderList as y,createCommentVNode as g,createTextVNode as k,toDisplayString as h}from"vue";import{NPopover as w,NInputNumber as V,NSpace as b,NIcon as _}from"naive-ui";import{Close as x,GitCompareOutline as O,ArrowUndoSharp as C}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as I}from"@vueuse/core";import j from"../../../../_virtual/plugin-vue_export-helper.js";const D=v("span",null,"键盘",-1),K={class:"keys"},N=["onClick"];var R=j(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:j,emit:R}){const U=e,B="QWERTYUIOPASDFGHJKLZXCVBNM.",E=["Switch"," ","Undo","Enter"],F=B.split("").concat(E),M=B.split(".")[0].split("").sort().concat(["."],E);let P=l(Date.now());t("toSelectInputContent",P);const Q=n((()=>"english"===U.mode)),A=n((()=>({mode:U.mode,defaultValue:U.defaultValue,value:U.value,positionInitialValue:U.positionInitialValue,moveOffset:U.moveOffset,drag:U.drag,onChange:Y}))),G=l(F.slice()),H=l(null),J=l(null),L=l(null),T=l(),W=function(){U.defaultValue&&(T.value=U.defaultValue);if(Q.value&&U.drag){const{x:e,y:l,style:t}=I(J,{initialValue:U.positionInitialValue,preventDefault:!0,handle:L,onMove:(e,l)=>{var t,n,o,a;e.x+=null!=(n=null==(t=U.moveOffset)?void 0:t.x)?n:0,e.y+=null!=(a=null==(o=U.moveOffset)?void 0:o.y)?a:0}});return t}}();function X(e){"Switch"!==e?R("keydown",e):G.value="Q"===G.value[0]?M.slice():F.slice()}function Y(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),T.value=e,R("change",e)}return j({select:function(){P.value=Date.now()}}),(l,t)=>o(Q)||e.panel?!o(Q)&&e.panel?(a(),u(S,s(d({key:1},o(A))),null,16)):(a(),f("div",{key:2,class:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:J,style:p(o(W))},[r(o(b),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:L,style:p({cursor:e.drag?"move":"default"})},{default:i((()=>[D,r(o(_),{onClick:t[1]||(t[1]=e=>X("close")),component:o(x)},null,8,["component"])])),_:1},8,["style"]),v("div",K,[(a(!0),f(m,null,y(G.value,((e,l)=>(a(),f("span",{key:e,class:c(["key"+l]),onClick:l=>X(e)},["Switch"===e?(a(),u(o(_),{key:0,component:o(O)},null,8,["component"])):g("v-if",!0),"Undo"===e?(a(),u(o(_),{key:1,component:o(C)},null,8,["component"])):g("v-if",!0),k(" "+h(E.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,N)))),128))])],6)):(a(),u(o(w),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:{padding:"0"},"display-directive":"show"},{trigger:i((()=>[r(o(V),{value:T.value,"onUpdate:value":t[0]||(t[0]=e=>T.value=e),"show-button":!1},null,8,["value"])])),default:i((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:Y},null,8,["mode","defaultValue"])])),_:1},512))}}),[["__file","Keyboard.vue"]]);export{R as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as r}from"vue";import{NInput as i,NSpace as p,NIcon as c}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";import v from"../../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const _=e,y=t(null),V=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function b(e){return _.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*(.\d+)?$/.test(e)||!e}function j(e){const t=f(_.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>V.value),(e=>{var t,u;!_.integer&&(null==(u=null==(t=y.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:y}),(t,u)=>(n(),o(a(i),{ref_key:"inputRef",ref:y,value:e.modelValue,"onUpdate:value":x,"allow-input":b,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[r(a(p),{justify:"center",vertical:""},{default:s((()=>[r(a(c),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>j("+"))},null,8,["component"]),r(a(c),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>j("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}}),[["__file","InputNumber.vue"]]);export{g as default};
@@ -1 +0,0 @@
1
- import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";import _export_sfc from"../../../../../_virtual/plugin-vue_export-helper.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1),_sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,l,n;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(n=null==(l=props.moveOffset)?void 0:l.y)?n:0}});return a}}async function keydown(key){var _a,_b,_c;switch(key){case"Undo":updateValue(key);break;case"Enter":{if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value));const inputRefS=null==(_c=null==(_b=null==(_a=inputRef.value)?void 0:_a.$childrenRefs)?void 0:_b.$refs)?void 0:_c.inputElRef;await nextTick(),inputRefS.focus();break}default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus()):updateValue(key)}}async function updateValue(e){var t,a,u;const l=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:n,selectionEnd:o}=l,r=inputValue.value.split("");if("Undo"===e){const e=n===o?1:o-n,t=n===o?n-1:n;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(n,o-n,e);inputValue.value=r.join(""),await nextTick(),l.focus();const s="Undo"===e?n?o>n?n:n-1:0:n+1;l.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,l)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),l===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style))},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],6))}});var NumberPanel=_export_sfc(_sfc_main,[["__file","NumberPanel.vue"]]);export{NumberPanel as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as r,createVNode as l,unref as i,withCtx as c,createTextVNode as p,toDisplayString as d,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";import h from"../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-map"},y={class:"search-container"},k={class:"map-input-search"},w={class:"input-addon"},_=r("div",{id:"map-core"},null,-1),S={key:0,class:"address-list"},P=["onClick"],C={class:"title"};var M=h(e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:h}){const M=e,O=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),T=t((()=>{var e,a;return null==(a=null==(e=O.addressList)?void 0:e[0])?void 0:a.name})),I=t((()=>M.locationProp&&JSON.parse(M.locationProp)||null)),B=v(),E=e=>{if(e&&"geolocation"==e.module){O.location.lng=e.lng,O.location.lat=e.lat;const a=new O.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),O.location.lng=113.275,O.location.lat=23.117},K=e=>{const a=O.qq;var t=new a.maps.LatLng(e.lat,e.lng);O.centrePoint=t,O.map.panTo(t);const n=new a.maps.Marker({position:t,map:O.map});O.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{O.markers&&O.markers.length&&N(O.markers),O.markers=[]},x=(e={})=>{const a=O.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),O.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:O.map});s.setPosition(o.latLng),s.setTitle(e+1),O.markers.push(s),t.extend(o.latLng)}O.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=O.searchKey;e&&(O.markers&&O.markers.length&&N(O.markers),O.searchService.setLocation(""),O.searchService.setPageCapacity(50),O.searchService.search(e))},G=(e,a)=>{const t=O.qq,{name:n,address:s,latLng:o}=e,{lat:r,lng:l}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:r,lng:l});h("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},j=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};O.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=I.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new O.qq.maps.Geolocation(M.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});O.qq.maps.event.addDomListener(O.map,"click",(function(e){x({latLng:e.latLng})}))},J=e=>{O.qq=e,setTimeout((()=>{j(e),(()=>{const e=O.qq;O.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return O.searchService.setLocation(a.detail.cities[0].cityName),void O.searchService.search(O.searchKey);if(O.addressList=s||[],b(),"POI_LIST"===a.type)for(var r=0,l=s.length;r<l;r++){var i=s[r];o.extend(i.latLng),t=r,n=void 0,(n=new e.maps.Marker({map:O.map})).setPosition(s[t].latLng),n.setTitle(r+1),O.markers.push(n)}O.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?B.warning("地址检索先输入城市名称"):B.warning("查无结果!")},autoExtend:!0})})()}),0)},Y=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=M.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(J)};return n((()=>{setTimeout((()=>{Y()}),200)})),(e,a)=>(s(),o("div",f,[r("div",y,[r("div",k,[l(i(q),{value:O.searchKey,"onUpdate:value":a[0]||(a[0]=e=>O.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),r("span",w,[l(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[p("检索")])),_:1})])])]),_,O.addressList&&O.addressList.length?(s(),o("ul",S,[r("li",null,[p(" 地址:"+d(i(T))+" ",1),l(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(O.addressList[0]))},{default:c((()=>[p("确定")])),_:1})]),(s(!0),o(m,null,u(O.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[r("div",{onClick:a=>G(e)},[r("div",C,d(e.name),1),r("span",null,d(e.address),1)],8,P)])))),128))])):g("v-if",!0)]))}}),[["__file","Map.vue"]]);export{M as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,computed as t,openBlock as o,createBlock as l,resolveDynamicComponent as p,unref as r,mergeProps as n,isRef as a,withCtx as u,renderSlot as m}from"vue";import{useVModel as c}from"@vueuse/core";import i from"./components/RecommendInput.vue.js";import s from"./components/RecommendSelect.vue.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";var y=d(e({__name:"RecommendSearch",props:{mode:{type:String,default:"input"},value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},clearable:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0},inputProps:{type:Object},popProps:{type:Object}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:d}){const y=e,v=c(y,"value",d),f={input:i,select:s},h=t((()=>f[y.mode]));return(e,t)=>(o(),l(p(r(h)),n(e.$props,{value:r(v),"onUpdate:value":t[0]||(t[0]=e=>a(v)?v.value=e:null),onSearch:t[1]||(t[1]=t=>e.$emit("search",t)),onChoose:t[2]||(t[2]=t=>e.$emit("choose",t)),onOpenMenu:t[3]||(t[3]=t=>e.$emit("openMenu",t)),onCloseMenu:t[4]||(t[4]=t=>e.$emit("closeMenu",t)),onDelete:t[5]||(t[5]=t=>e.$emit("delete",t))}),{empty:u((()=>[m(e.$slots,"empty")])),_:3},16,["value"]))}}),[["__file","RecommendSearch.vue"]]);export{y as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,computed as t,openBlock as l,createBlock as o,unref as r,mergeProps as n,isRef as u,withCtx as s,createVNode as p,createElementVNode as i,renderSlot as c}from"vue";import{uuidGenerator as v}from"../../../../shared/utils/index.js";import{useDebounceFn as d,onClickOutside as f}from"@vueuse/core";import{NPopover as h,NInput as m,NSpin as g}from"naive-ui";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const w=["id"];var _=y(e({__name:"BaseSearch",props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","clear","search","openMenu","closeMenu"],setup(e,{expose:y,emit:_}){const b=e,M=v(),P=d(((e="")=>{_("search",e)}),300),B=a(),O=a(b.show),k=t({get:()=>O.value||b.show,set(e){_("update:show",e),O.value=e}}),x=a(),j=a(""),S=t({get:()=>k.value?j.value:b.displayValue,set(e){j.value=e||"",P(e)}});function F(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&U()}function U(){k.value||(k.value=!0,_("openMenu"),b.clearPatternOnOpenMenu&&(j.value=""))}function C(){var e;k.value=!1,null==(e=x.value)||e.blur(),_("closeMenu")}function N(){_("clear")}return f(x,(e=>{var a;if(!k.value)return;const t=e;if(!t.target)return C();!function(e){let a=!1,t=e;for(;t;){if(t.id===M){a=!0;break}t=t.parentElement}return a}(t.target)?C():null==(a=x.value)||a.focus()})),y({setPattern(e){j.value=e},closeMenu:C,openMenu:U}),(a,t)=>(l(),o(r(h),n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:r(k),"onUpdate:show":t[2]||(t[2]=e=>u(k)?k.value=e:null),"show-arrow":!1,ref_key:"popoverRef",ref:B,width:"trigger"},e.popProps),{trigger:s((()=>[p(r(m),n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:N,onFocus:F,onClick:F,onKeydown:t[0]||(t[0]=e=>a.$emit("keydown",e)),ref_key:"inputRef",ref:x,value:r(S),"onUpdate:value":t[1]||(t[1]=e=>u(S)?S.value=e:null)}),null,16,["placeholder","clearable","value"])])),default:s((()=>[p(r(g),{show:e.loading},{default:s((()=>[i("section",{id:r(M),class:"base-search__menu",style:{"min-height":"100px"}},[c(a.$slots,"menu")],8,w)])),_:3},8,["show"])])),_:3},16,["show"]))}}),[["__file","BaseSearch.vue"]]);export{_ as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,mergeProps as s,unref as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as v,renderList as y,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as _}from"@vueuse/core";import b from"./RecommendMenu.vue.js";import j from"./BaseSearch.vue.js";import k from"../../../../../_virtual/plugin-vue_export-helper.js";const g={class:"recommend-search"},L=v("section",{class:"recommend-search__empty"},"暂无数据",-1),M=["onClick"],O=["title"],w=v("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=k(e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:k}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const x=f(A,"value",k);o(x,S),n((()=>S(x.value)));const D=l((()=>x.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function R(e){x.value=e,k("search",e)}function $(){k("openMenu")}function B(){k("closeMenu")}function P({type:e,value:t}){var o;x.value=t.itemObj,null==(o=C.value)||o.closeMenu(),k("choose",{type:e,value:t.itemObj})}const{list:I,wrapperProps:E,containerProps:H}=_(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(r(),a("section",g,[c(j,s({ref_key:"baseSearchRef",ref:C,"display-value":i(x),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:R,onOpenMenu:$,onCloseMenu:B},t.$attrs),{menu:m((()=>[i(x)?(r(),a(u,{key:1},[i(D).length?(r(),a("section",s({key:0,class:"recommend-search__optionContainer"},i(H),{style:{height:"256px"}}),[v("section",s({class:"recommend-search__optionList"},i(E)),[(r(!0),a(u,null,y(i(I),(e=>(r(),a("div",{onClick:t=>P({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[v("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[w]))],64)):(r(),a(u,{key:0},[c(b,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:P},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}}),[["__file","RecommendInput.vue"]]);export{A as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as f}from"naive-ui";import{RecommendType as v}from"../constant/index.js";import _ from"../../../../../_virtual/plugin-vue_export-helper.js";const y={class:"recommend-search__menuRecommend"},h={key:0,class:"recommend-search__commonRecommend"},k={class:"recommend-search__menuRecommendList"},L={key:1,class:"recommend-search__recentRecommend"},C={class:"recommend-search__menuRecommendList"};var R=_(e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:_}){function R(e,n){_("choose",{type:e,value:n})}function O(e){_("delete",e)}function b(){O(v.COMMONLY)}function g(){O(v.RECENTLY)}return(_,O)=>(n(),o("section",y,[e.recentList.length?(n(),o("section",h,[t("header",null,[m(" 最近搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:b},null,8,["component"])):c("v-if",!0)]),t("div",k,[(n(!0),o(s,null,r(e.recentList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.RECENTLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0),e.commonList.length?(n(),o("section",L,[t("header",null,[m(" 常用搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:g},null,8,["component"])):c("v-if",!0)]),t("div",C,[(n(!0),o(s,null,r(e.commonList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.COMMONLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0)]))}}),[["__file","RecommendMenu.vue"]]);export{R as default};