cnhis-design-vue 3.1.40 → 3.1.41-release.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 (515) hide show
  1. package/es/components/big-table/src/BigTable.vue.js +1 -0
  2. package/es/components/big-table/src/components/NoData.vue.js +1 -0
  3. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -0
  4. package/es/components/big-table/src/components/input-button.vue.js +1 -0
  5. package/es/components/big-table/src/components/separate.vue.js +1 -0
  6. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -0
  7. package/es/components/button-print/src/ButtonPrint.vue.js +1 -0
  8. package/es/components/button-print/src/components/EditFormat.vue.js +1 -0
  9. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -0
  10. package/es/components/button-print/src/components/Preview.vue.js +1 -0
  11. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -0
  12. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -0
  13. package/es/components/field-set/src/FieldSet.vue.js +1 -0
  14. package/es/components/form-config/src/FormConfig.vue.js +1 -0
  15. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -0
  16. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -0
  17. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -0
  18. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -0
  19. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -0
  20. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -0
  21. package/es/components/form-render/src/FormRender.vue.js +1 -0
  22. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -0
  23. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -0
  24. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -0
  25. package/es/components/form-render/src/components/renderer/select.js +1 -0
  26. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -0
  27. package/es/components/form-render/src/hooks/useAnchor.js +1 -0
  28. package/es/components/form-render/src/hooks/useAutoHidden.js +1 -0
  29. package/es/components/iho-table/src/IhoTable.vue.js +1 -0
  30. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -0
  31. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -0
  32. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -0
  33. package/es/components/info-header/src/HiddenContent.vue.js +1 -0
  34. package/es/components/info-header/src/InfoEllipsis.vue.js +1 -0
  35. package/es/components/info-header/src/InfoHeader.vue.js +1 -0
  36. package/es/components/keyboard/src/Keyboard.vue.js +1 -0
  37. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -0
  38. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -0
  39. package/es/components/map/src/Map.vue.js +1 -0
  40. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -0
  41. package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -0
  42. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -0
  43. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -0
  44. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -0
  45. package/es/components/scale-view/src/ScaleView.vue.js +1 -0
  46. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -0
  47. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -0
  48. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -0
  49. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -0
  50. package/es/components/scale-view/src/components/NoData.vue.js +1 -0
  51. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -0
  52. package/es/components/select-label/src/LabelFormContent.vue.js +1 -0
  53. package/es/components/select-label/src/SelectLabel.vue.js +1 -0
  54. package/es/components/select-label/src/components/label-classify.vue.js +1 -0
  55. package/es/components/select-person/src/SelectPerson.vue.js +1 -0
  56. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -0
  57. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -0
  58. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -0
  59. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -0
  60. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -0
  61. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -0
  62. package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -0
  63. package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -0
  64. package/es/components/table-filter/src/components/age-com/index.vue.js +1 -0
  65. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -0
  66. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -0
  67. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -0
  68. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -0
  69. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -0
  70. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -0
  71. package/es/components/table-filter/src/components/range-age/index.vue.js +1 -0
  72. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -0
  73. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -0
  74. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -0
  75. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -0
  76. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -0
  77. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -0
  78. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -0
  79. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -0
  80. package/es/components/time-line/src/TimeLine.vue.js +1 -0
  81. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -0
  82. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -0
  83. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -0
  84. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -0
  85. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -0
  86. package/es/shared/components/no-data/NoData.vue.js +1 -0
  87. package/package.json +2 -2
  88. package/es/node_modules/@formily/reactive/esm/action.js +0 -1
  89. package/es/node_modules/@formily/reactive/esm/annotations/box.js +0 -1
  90. package/es/node_modules/@formily/reactive/esm/annotations/computed.js +0 -1
  91. package/es/node_modules/@formily/reactive/esm/annotations/observable.js +0 -1
  92. package/es/node_modules/@formily/reactive/esm/annotations/ref.js +0 -1
  93. package/es/node_modules/@formily/reactive/esm/annotations/shallow.js +0 -1
  94. package/es/node_modules/@formily/reactive/esm/array.js +0 -1
  95. package/es/node_modules/@formily/reactive/esm/autorun.js +0 -1
  96. package/es/node_modules/@formily/reactive/esm/batch.js +0 -1
  97. package/es/node_modules/@formily/reactive/esm/checkers.js +0 -1
  98. package/es/node_modules/@formily/reactive/esm/environment.js +0 -1
  99. package/es/node_modules/@formily/reactive/esm/externals.js +0 -1
  100. package/es/node_modules/@formily/reactive/esm/handlers.js +0 -1
  101. package/es/node_modules/@formily/reactive/esm/internals.js +0 -1
  102. package/es/node_modules/@formily/reactive/esm/observable.js +0 -1
  103. package/es/node_modules/@formily/reactive/esm/reaction.js +0 -1
  104. package/es/node_modules/@formily/reactive/esm/tree.js +0 -1
  105. package/es/node_modules/@formily/reactive/esm/untracked.js +0 -1
  106. package/es/packages/components/big-table/src/BigTable.vue.js +0 -1
  107. package/es/packages/components/big-table/src/components/NoData.vue.js +0 -1
  108. package/es/packages/components/big-table/src/components/edit-form/edit-separate.vue.js +0 -1
  109. package/es/packages/components/big-table/src/components/input-button.vue.js +0 -1
  110. package/es/packages/components/big-table/src/components/separate.vue.js +0 -1
  111. package/es/packages/components/bpmn-workflow/src/BpmnWorkflow.vue.js +0 -1
  112. package/es/packages/components/button-print/src/ButtonPrint.vue.js +0 -1
  113. package/es/packages/components/button-print/src/components/EditFormat.vue.js +0 -1
  114. package/es/packages/components/button-print/src/components/IdentityVerification.vue.js +0 -1
  115. package/es/packages/components/button-print/src/components/Preview.vue.js +0 -1
  116. package/es/packages/components/fabric-chart/src/FabricChart.vue.js +0 -1
  117. package/es/packages/components/fabric-chart/src/components/PopupTip.vue.js +0 -1
  118. package/es/packages/components/field-set/src/FieldSet.vue.js +0 -1
  119. package/es/packages/components/form-config/src/FormConfig.vue.js +0 -1
  120. package/es/packages/components/form-config/src/components/FormConfigCreator.vue.js +0 -1
  121. package/es/packages/components/form-config/src/components/FormConfigDragDisplay.vue.js +0 -1
  122. package/es/packages/components/form-config/src/components/FormConfigEdit.vue.js +0 -1
  123. package/es/packages/components/form-config/src/components/renderer/CloseButton.vue.js +0 -1
  124. package/es/packages/components/form-config/src/components/renderer/ComplexNode.vue.js +0 -1
  125. package/es/packages/components/form-config/src/components/renderer/DefaultNode.vue.js +0 -1
  126. package/es/packages/components/form-render/src/FormRender.vue.js +0 -1
  127. package/es/packages/components/form-render/src/FormRenderWrapper.vue.js +0 -1
  128. package/es/packages/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +0 -1
  129. package/es/packages/components/form-render/src/components/renderer/searchCascade.js +0 -1
  130. package/es/packages/components/form-render/src/components/renderer/select.js +0 -1
  131. package/es/packages/components/form-render/src/components/tooltipMessage.vue.js +0 -1
  132. package/es/packages/components/form-render/src/hooks/useAnchor.js +0 -1
  133. package/es/packages/components/form-render/src/hooks/useAutoHidden.js +0 -1
  134. package/es/packages/components/iho-table/src/IhoTable.vue.js +0 -1
  135. package/es/packages/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  136. package/es/packages/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +0 -1
  137. package/es/packages/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +0 -1
  138. package/es/packages/components/info-header/src/HiddenContent.vue.js +0 -1
  139. package/es/packages/components/info-header/src/InfoEllipsis.vue.js +0 -1
  140. package/es/packages/components/info-header/src/InfoHeader.vue.js +0 -1
  141. package/es/packages/components/keyboard/src/Keyboard.vue.js +0 -1
  142. package/es/packages/components/keyboard/src/components/InputNumber.vue.js +0 -1
  143. package/es/packages/components/keyboard/src/components/NumberPanel.vue.js +0 -1
  144. package/es/packages/components/map/src/Map.vue.js +0 -1
  145. package/es/packages/components/recommend-search/src/RecommendSearch.vue.js +0 -1
  146. package/es/packages/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
  147. package/es/packages/components/recommend-search/src/components/RecommendInput.vue.js +0 -1
  148. package/es/packages/components/recommend-search/src/components/RecommendMenu.vue.js +0 -1
  149. package/es/packages/components/recommend-search/src/components/RecommendSelect.vue.js +0 -1
  150. package/es/packages/components/scale-view/src/ScaleView.vue.js +0 -1
  151. package/es/packages/components/scale-view/src/components/AnswerParse.vue.js +0 -1
  152. package/es/packages/components/scale-view/src/components/EvaluateCountdown.vue.js +0 -1
  153. package/es/packages/components/scale-view/src/components/EvaluatePage.vue.js +0 -1
  154. package/es/packages/components/scale-view/src/components/LoadingCom.vue.js +0 -1
  155. package/es/packages/components/scale-view/src/components/NoData.vue.js +0 -1
  156. package/es/packages/components/search-cascader/src/SearchCascader.vue.js +0 -1
  157. package/es/packages/components/select-label/src/LabelFormContent.vue.js +0 -1
  158. package/es/packages/components/select-label/src/SelectLabel.vue.js +0 -1
  159. package/es/packages/components/select-label/src/components/label-classify.vue.js +0 -1
  160. package/es/packages/components/select-person/src/SelectPerson.vue.js +0 -1
  161. package/es/packages/components/shortcut-provider/src/ShortcutProvider.vue.js +0 -1
  162. package/es/packages/components/shortcut-setter/src/ShortcutSetter.vue.js +0 -1
  163. package/es/packages/components/shortcut-setter/src/ShortcutSetterItem.vue.js +0 -1
  164. package/es/packages/components/steps-wheel/src/StepsWheel.vue.js +0 -1
  165. package/es/packages/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  166. package/es/packages/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  167. package/es/packages/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  168. package/es/packages/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  169. package/es/packages/components/table-filter/src/components/age-com/index.vue.js +0 -1
  170. package/es/packages/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  171. package/es/packages/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  172. package/es/packages/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +0 -1
  173. package/es/packages/components/table-filter/src/components/classify-filter/index.vue.js +0 -1
  174. package/es/packages/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  175. package/es/packages/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  176. package/es/packages/components/table-filter/src/components/range-age/index.vue.js +0 -1
  177. package/es/packages/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +0 -1
  178. package/es/packages/components/table-filter/src/components/render-widget/components/Select.vue.js +0 -1
  179. package/es/packages/components/table-filter/src/components/render-widget/index.vue.js +0 -1
  180. package/es/packages/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  181. package/es/packages/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  182. package/es/packages/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  183. package/es/packages/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  184. package/es/packages/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  185. package/es/packages/components/time-line/src/TimeLine.vue.js +0 -1
  186. package/es/packages/components/vod-chunk-upload/src/chunk-upload-new.vue.js +0 -1
  187. package/es/packages/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +0 -1
  188. package/es/packages/shared/components/SelectPage/SelectPage.vue.js +0 -1
  189. package/es/packages/shared/components/SvgIcon/SvgIcon.vue.js +0 -1
  190. package/es/packages/shared/components/TextOverTooltip/TextOverTooltip.vue.js +0 -1
  191. package/es/packages/shared/components/no-data/NoData.vue.js +0 -1
  192. /package/es/{packages/components → components}/annotation-edit/index.js +0 -0
  193. /package/es/{packages/components → components}/annotation-edit/src/AnnotationEdit.js +0 -0
  194. /package/es/{packages/components → components}/annotation-edit/src/type.js +0 -0
  195. /package/es/{packages/components → components}/big-table/index.js +0 -0
  196. /package/es/{packages/components → components}/big-table/src/BigTable.vue2.js +0 -0
  197. /package/es/{packages/components → components}/big-table/src/bigTableEmits.js +0 -0
  198. /package/es/{packages/components → components}/big-table/src/bigTableProps.js +0 -0
  199. /package/es/{packages/components → components}/big-table/src/bigTableState.js +0 -0
  200. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-date.js +0 -0
  201. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-input.js +0 -0
  202. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-select.js +0 -0
  203. /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-time.js +0 -0
  204. /package/es/{packages/components → components}/big-table/src/components/edit-form/useCommon.js +0 -0
  205. /package/es/{packages/components → components}/big-table/src/constants/index.js +0 -0
  206. /package/es/{packages/components → components}/big-table/src/hooks/index.js +0 -0
  207. /package/es/{packages/components → components}/big-table/src/hooks/useAnchor.js +0 -0
  208. /package/es/{packages/components → components}/big-table/src/hooks/useAnnotation.js +0 -0
  209. /package/es/{packages/components → components}/big-table/src/hooks/useBatchEditing.js +0 -0
  210. /package/es/{packages/components → components}/big-table/src/hooks/useEdit.js +0 -0
  211. /package/es/{packages/components → components}/big-table/src/hooks/useEvent.js +0 -0
  212. /package/es/{packages/components → components}/big-table/src/hooks/useFormat.js +0 -0
  213. /package/es/{packages/components → components}/big-table/src/hooks/useNestTable.js +0 -0
  214. /package/es/{packages/components → components}/big-table/src/hooks/useSeparateRow.js +0 -0
  215. /package/es/{packages/components → components}/big-table/src/hooks/useTableParse.js +0 -0
  216. /package/es/{packages/components → components}/big-table/src/utils.js +0 -0
  217. /package/es/{packages/components → components}/bpmn-workflow/index.js +0 -0
  218. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +0 -0
  219. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +0 -0
  220. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +0 -0
  221. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +0 -0
  222. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +0 -0
  223. /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +0 -0
  224. /package/es/{packages/components → components}/button-print/index.js +0 -0
  225. /package/es/{packages/components → components}/button-print/src/ButtonPrint.vue2.js +0 -0
  226. /package/es/{packages/components → components}/button-print/src/components/Preview.vue2.js +0 -0
  227. /package/es/{packages/components → components}/button-print/src/utils/browserPrint.js +0 -0
  228. /package/es/{packages/components → components}/button-print/src/utils/dialog.js +0 -0
  229. /package/es/{packages/components → components}/button-print/src/utils/index.js +0 -0
  230. /package/es/{packages/components → components}/button-print/src/utils/print.js +0 -0
  231. /package/es/{packages/components → components}/editor/index.js +0 -0
  232. /package/es/{packages/components → components}/editor/src/Editor.js +0 -0
  233. /package/es/{packages/components → components}/fabric-chart/index.js +0 -0
  234. /package/es/{packages/components → components}/fabric-chart/src/components/PopupMenu.js +0 -0
  235. /package/es/{packages/components → components}/fabric-chart/src/components/useStyle.js +0 -0
  236. /package/es/{packages/components → components}/fabric-chart/src/hooks/constant.js +0 -0
  237. /package/es/{packages/components → components}/fabric-chart/src/hooks/index.js +0 -0
  238. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcess.js +0 -0
  239. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcessChart.js +0 -0
  240. /package/es/{packages/components → components}/fabric-chart/src/hooks/useBottom.js +0 -0
  241. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCenter.js +0 -0
  242. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCommon.js +0 -0
  243. /package/es/{packages/components → components}/fabric-chart/src/hooks/useCumputedPoint.js +0 -0
  244. /package/es/{packages/components → components}/fabric-chart/src/hooks/useDraw.js +0 -0
  245. /package/es/{packages/components → components}/fabric-chart/src/hooks/useEvent.js +0 -0
  246. /package/es/{packages/components → components}/fabric-chart/src/hooks/useGrid.js +0 -0
  247. /package/es/{packages/components → components}/fabric-chart/src/hooks/useLeft.js +0 -0
  248. /package/es/{packages/components → components}/fabric-chart/src/hooks/useOther.js +0 -0
  249. /package/es/{packages/components → components}/fabric-chart/src/hooks/useRight.js +0 -0
  250. /package/es/{packages/components → components}/fabric-chart/src/hooks/useShadow.js +0 -0
  251. /package/es/{packages/components → components}/fabric-chart/src/hooks/useTemperatureChart.js +0 -0
  252. /package/es/{packages/components → components}/fabric-chart/src/hooks/useTop.js +0 -0
  253. /package/es/{packages/components → components}/fabric-chart/src/interface.js +0 -0
  254. /package/es/{packages/components → components}/fabric-chart/src/utils/index.js +0 -0
  255. /package/es/{packages/components → components}/fabric-chart/src/utils/utils.js +0 -0
  256. /package/es/{packages/components → components}/field-set/index.js +0 -0
  257. /package/es/{packages/components → components}/form-config/index.js +0 -0
  258. /package/es/{packages/components → components}/form-config/src/components/FormConfigMaterialItem.js +0 -0
  259. /package/es/{packages/components → components}/form-config/src/components/index.js +0 -0
  260. /package/es/{packages/components → components}/form-config/src/components/renderer/index.js +0 -0
  261. /package/es/{packages/components → components}/form-config/src/constants/index.js +0 -0
  262. /package/es/{packages/components → components}/form-config/src/hooks/index.js +0 -0
  263. /package/es/{packages/components → components}/form-config/src/hooks/useConfigurationField.js +0 -0
  264. /package/es/{packages/components → components}/form-config/src/hooks/useDataNormalize.js +0 -0
  265. /package/es/{packages/components → components}/form-config/src/hooks/usePresetRenderer.js +0 -0
  266. /package/es/{packages/components → components}/form-config/src/hooks/useSortalbeConfig.js +0 -0
  267. /package/es/{packages/components → components}/form-config/src/types/index.js +0 -0
  268. /package/es/{packages/components → components}/form-config/src/utils/index.js +0 -0
  269. /package/es/{packages/components → components}/form-render/index.js +0 -0
  270. /package/es/{packages/components → components}/form-render/src/components/renderer/combination.js +0 -0
  271. /package/es/{packages/components → components}/form-render/src/components/renderer/complex.js +0 -0
  272. /package/es/{packages/components → components}/form-render/src/components/renderer/date.js +0 -0
  273. /package/es/{packages/components → components}/form-render/src/components/renderer/formItem.js +0 -0
  274. /package/es/{packages/components → components}/form-render/src/components/renderer/index.js +0 -0
  275. /package/es/{packages/components → components}/form-render/src/components/renderer/input.js +0 -0
  276. /package/es/{packages/components → components}/form-render/src/components/renderer/inputGroup.js +0 -0
  277. /package/es/{packages/components → components}/form-render/src/components/renderer/inputNumber.js +0 -0
  278. /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +0 -0
  279. /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/index.js +0 -0
  280. /package/es/{packages/components → components}/form-render/src/components/renderer/levelSearchCascader.js +0 -0
  281. /package/es/{packages/components → components}/form-render/src/components/renderer/lineBar/index.js +0 -0
  282. /package/es/{packages/components → components}/form-render/src/components/renderer/radio_checkbox.js +0 -0
  283. /package/es/{packages/components → components}/form-render/src/components/renderer/remoteSearch.js +0 -0
  284. /package/es/{packages/components → components}/form-render/src/components/renderer/simpleComponent.js +0 -0
  285. /package/es/{packages/components → components}/form-render/src/components/renderer/slider.js +0 -0
  286. /package/es/{packages/components → components}/form-render/src/components/renderer/switch.js +0 -0
  287. /package/es/{packages/components → components}/form-render/src/components/renderer/textarea.js +0 -0
  288. /package/es/{packages/components → components}/form-render/src/constants/index.js +0 -0
  289. /package/es/{packages/components → components}/form-render/src/hooks/index.js +0 -0
  290. /package/es/{packages/components → components}/form-render/src/hooks/useAsyncQueue.js +0 -0
  291. /package/es/{packages/components → components}/form-render/src/hooks/useBusinessBinding.js +0 -0
  292. /package/es/{packages/components → components}/form-render/src/hooks/useChangeContext.js +0 -0
  293. /package/es/{packages/components → components}/form-render/src/hooks/useCommonInjection.js +0 -0
  294. /package/es/{packages/components → components}/form-render/src/hooks/useCommonLog.js +0 -0
  295. /package/es/{packages/components → components}/form-render/src/hooks/useComplexOptions.js +0 -0
  296. /package/es/{packages/components → components}/form-render/src/hooks/useFieldListAdaptor.js +0 -0
  297. /package/es/{packages/components → components}/form-render/src/hooks/useFieldNormalize.js +0 -0
  298. /package/es/{packages/components → components}/form-render/src/hooks/useFieldVisitor.js +0 -0
  299. /package/es/{packages/components → components}/form-render/src/hooks/useFormContext.js +0 -0
  300. /package/es/{packages/components → components}/form-render/src/hooks/useFormEvent.js +0 -0
  301. /package/es/{packages/components → components}/form-render/src/hooks/useFormField.js +0 -0
  302. /package/es/{packages/components → components}/form-render/src/hooks/useFormItemDeps.js +0 -0
  303. /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderLifeCycle.js +0 -0
  304. /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderOptions.js +0 -0
  305. /package/es/{packages/components → components}/form-render/src/hooks/useFormRequest.js +0 -0
  306. /package/es/{packages/components → components}/form-render/src/hooks/useFormValidator.js +0 -0
  307. /package/es/{packages/components → components}/form-render/src/hooks/useLowCodeReactions.js +0 -0
  308. /package/es/{packages/components → components}/form-render/src/hooks/useNuiThemeOverrides.js +0 -0
  309. /package/es/{packages/components → components}/form-render/src/hooks/usePresetScope.js +0 -0
  310. /package/es/{packages/components → components}/form-render/src/types/fieldItem.js +0 -0
  311. /package/es/{packages/components → components}/form-render/src/types/index.js +0 -0
  312. /package/es/{packages/components → components}/form-render/src/utils/business.js +0 -0
  313. /package/es/{packages/components → components}/form-render/src/utils/dom.js +0 -0
  314. /package/es/{packages/components → components}/form-render/src/utils/index.js +0 -0
  315. /package/es/{packages/components → components}/form-render/src/utils/schema.js +0 -0
  316. /package/es/{packages/components → components}/grid/index.js +0 -0
  317. /package/es/{packages/components → components}/grid/src/Grid.js +0 -0
  318. /package/es/{packages/components → components}/grid/src/hooks.js +0 -0
  319. /package/es/{packages/components → components}/iho-table/index.js +0 -0
  320. /package/es/{packages/components → components}/iho-table/src/constants/index.js +0 -0
  321. /package/es/{packages/components → components}/iho-table/src/hooks/export.js +0 -0
  322. /package/es/{packages/components → components}/iho-table/src/hooks/index.js +0 -0
  323. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/index.js +0 -0
  324. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useConfigHooks.js +0 -0
  325. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDataHooks.js +0 -0
  326. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +0 -0
  327. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useEventHooks.js +0 -0
  328. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useExposeHooks.js +0 -0
  329. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useFieldHooks.js +0 -0
  330. /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useSetupHooks.js +0 -0
  331. /package/es/{packages/components → components}/iho-table/src/hooks/useColumnConfigAdaptor.js +0 -0
  332. /package/es/{packages/components → components}/iho-table/src/hooks/useTableContext.js +0 -0
  333. /package/es/{packages/components → components}/iho-table/src/hooks/useTablePlugin.js +0 -0
  334. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/index.js +0 -0
  335. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/tableAnchor.js +0 -0
  336. /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/useAnchor.js +0 -0
  337. /package/es/{packages/components → components}/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -0
  338. /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/index.js +0 -0
  339. /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/types.js +0 -0
  340. /package/es/{packages/components → components}/iho-table/src/plugins/index.js +0 -0
  341. /package/es/{packages/components → components}/iho-table/src/plugins/keyboardEventPlugin/index.js +0 -0
  342. /package/es/{packages/components → components}/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -0
  343. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +0 -0
  344. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -0
  345. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +0 -0
  346. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +0 -0
  347. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +0 -0
  348. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +0 -0
  349. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +0 -0
  350. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +0 -0
  351. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +0 -0
  352. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -0
  353. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +0 -0
  354. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +0 -0
  355. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +0 -0
  356. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +0 -0
  357. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +0 -0
  358. /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +0 -0
  359. /package/es/{packages/components → components}/iho-table/src/plugins/rowClickPlugin/index.js +0 -0
  360. /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/index.js +0 -0
  361. /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +0 -0
  362. /package/es/{packages/components → components}/iho-table/src/plugins/virtualTreePlugin/index.js +0 -0
  363. /package/es/{packages/components → components}/iho-table/src/types/index.js +0 -0
  364. /package/es/{packages/components → components}/iho-table/src/types/pluginType.js +0 -0
  365. /package/es/{packages/components → components}/iho-table/src/utils/index.js +0 -0
  366. /package/es/{packages/components → components}/index.js +0 -0
  367. /package/es/{packages/components → components}/info-header/index.js +0 -0
  368. /package/es/{packages/components → components}/insurance-sdk/index.js +0 -0
  369. /package/es/{packages/components → components}/insurance-sdk/src/constants/index.js +0 -0
  370. /package/es/{packages/components → components}/insurance-sdk/src/utils/index.js +0 -0
  371. /package/es/{packages/components → components}/insurance-sdk/src/utils/insurance.js +0 -0
  372. /package/es/{packages/components → components}/keyboard/index.js +0 -0
  373. /package/es/{packages/components → components}/keyboard/src/utils/index.js +0 -0
  374. /package/es/{packages/components → components}/map/index.js +0 -0
  375. /package/es/{packages/components → components}/recommend-search/index.js +0 -0
  376. /package/es/{packages/components → components}/recommend-search/src/constant/index.js +0 -0
  377. /package/es/{packages/components → components}/recommend-search/src/types/index.js +0 -0
  378. /package/es/{packages/components → components}/scale-view/index.js +0 -0
  379. /package/es/{packages/components → components}/scale-view/src/components/ScaleScore.js +0 -0
  380. /package/es/{packages/components → components}/scale-view/src/components/composables/choose-common.js +0 -0
  381. /package/es/{packages/components → components}/scale-view/src/components/formitem/address.js +0 -0
  382. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-address.js +0 -0
  383. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-cascader.js +0 -0
  384. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-checkbox.js +0 -0
  385. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-collection.js +0 -0
  386. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-datetime.js +0 -0
  387. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-input.js +0 -0
  388. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-map.js +0 -0
  389. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-radio.js +0 -0
  390. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-select.js +0 -0
  391. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-sign.js +0 -0
  392. /package/es/{packages/components → components}/scale-view/src/components/formitem/r-upload.js +0 -0
  393. /package/es/{packages/components → components}/scale-view/src/components/formitem/sign-com.js +0 -0
  394. /package/es/{packages/components → components}/scale-view/src/components/formitem/standard-modal.js +0 -0
  395. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-computed.js +0 -0
  396. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-init.js +0 -0
  397. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-props.js +0 -0
  398. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-state.js +0 -0
  399. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-submit.js +0 -0
  400. /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-validate.js +0 -0
  401. /package/es/{packages/components → components}/scale-view/src/hooks/use-component.js +0 -0
  402. /package/es/{packages/components → components}/scale-view/src/hooks/use-evaluate.js +0 -0
  403. /package/es/{packages/components → components}/scale-view/src/hooks/use-event.js +0 -0
  404. /package/es/{packages/components → components}/scale-view/src/hooks/use-noData.js +0 -0
  405. /package/es/{packages/components → components}/scale-view/src/utils/judge-types.js +0 -0
  406. /package/es/{packages/components → components}/search-cascader/index.js +0 -0
  407. /package/es/{packages/components → components}/search-cascader/src/components/SearchMenu.js +0 -0
  408. /package/es/{packages/components → components}/search-cascader/src/components/index.js +0 -0
  409. /package/es/{packages/components → components}/search-cascader/src/constants/index.js +0 -0
  410. /package/es/{packages/components → components}/search-cascader/src/hooks/index.js +0 -0
  411. /package/es/{packages/components → components}/search-cascader/src/hooks/useCssVariable.js +0 -0
  412. /package/es/{packages/components → components}/search-cascader/src/utils/index.js +0 -0
  413. /package/es/{packages/components → components}/select-label/index.js +0 -0
  414. /package/es/{packages/components → components}/select-label/src/SelectLabel.vue2.js +0 -0
  415. /package/es/{packages/components → components}/select-person/index.js +0 -0
  416. /package/es/{packages/components → components}/select-person/src/SelectPerson.vue2.js +0 -0
  417. /package/es/{packages/components → components}/select-person/src/utils/index.js +0 -0
  418. /package/es/{packages/components → components}/shortcut-provider/index.js +0 -0
  419. /package/es/{packages/components → components}/shortcut-provider/src/constants/index.js +0 -0
  420. /package/es/{packages/components → components}/shortcut-provider/src/hooks/index.js +0 -0
  421. /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcutSignature.js +0 -0
  422. /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcuts.js +0 -0
  423. /package/es/{packages/components → components}/shortcut-provider/src/types/index.js +0 -0
  424. /package/es/{packages/components → components}/shortcut-provider/src/utils/index.js +0 -0
  425. /package/es/{packages/components → components}/shortcut-setter/index.js +0 -0
  426. /package/es/{packages/components → components}/shortcut-setter/src/types/index.js +0 -0
  427. /package/es/{packages/components → components}/steps-wheel/index.js +0 -0
  428. /package/es/{packages/components → components}/table-filter/index.js +0 -0
  429. /package/es/{packages/components → components}/table-filter/src/components/button-icon/getBtnIcon.js +0 -0
  430. /package/es/{packages/components → components}/table-filter/src/components/classify-filter/helpers/options.js +0 -0
  431. /package/es/{packages/components → components}/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +0 -0
  432. /package/es/{packages/components → components}/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +0 -0
  433. /package/es/{packages/components → components}/table-filter/src/components/render-widget/components/index.js +0 -0
  434. /package/es/{packages/components → components}/table-filter/src/components/render-widget/enums.js +0 -0
  435. /package/es/{packages/components → components}/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +0 -0
  436. /package/es/{packages/components → components}/table-filter/src/components/render-widget/widgetCfgMaps.js +0 -0
  437. /package/es/{packages/components → components}/table-filter/src/components/search-condition/fieldTypeList.js +0 -0
  438. /package/es/{packages/components → components}/table-filter/src/const/dataOptions.js +0 -0
  439. /package/es/{packages/components → components}/table-filter/src/const/index.js +0 -0
  440. /package/es/{packages/components → components}/table-filter/src/directive/flexibleResize.js +0 -0
  441. /package/es/{packages/components → components}/table-filter/src/directive/preventReClick.js +0 -0
  442. /package/es/{packages/components → components}/table-filter/src/directive/resize.js +0 -0
  443. /package/es/{packages/components → components}/table-filter/src/hooks/export.js +0 -0
  444. /package/es/{packages/components → components}/table-filter/src/hooks/useAdvanced.js +0 -0
  445. /package/es/{packages/components → components}/table-filter/src/hooks/useMixins.js +0 -0
  446. /package/es/{packages/components → components}/table-filter/src/hooks/useRenderWidget.js +0 -0
  447. /package/es/{packages/components → components}/table-filter/src/hooks/useTableSearchCon.js +0 -0
  448. /package/es/{packages/components → components}/table-filter/src/hooks/useWordBookutils.js +0 -0
  449. /package/es/{packages/components → components}/table-filter/src/tool/generateDefOptions.js +0 -0
  450. /package/es/{packages/components → components}/table-filter/src/tool/getWidgetType.js +0 -0
  451. /package/es/{packages/components → components}/table-filter/src/tool/options.js +0 -0
  452. /package/es/{packages/components → components}/table-filter/src/tool/resizeSensor.js +0 -0
  453. /package/es/{packages/components → components}/table-filter/src/tool/time-domain.js +0 -0
  454. /package/es/{packages/components → components}/table-filter/src/tool/transformData.js +0 -0
  455. /package/es/{packages/components → components}/table-filter/src/tool/utils.js +0 -0
  456. /package/es/{packages/components → components}/table-filter/src/types/enums.js +0 -0
  457. /package/es/{packages/components → components}/table-filter/src/types/index.js +0 -0
  458. /package/es/{packages/components → components}/table-filter/src/types/tool.js +0 -0
  459. /package/es/{packages/components → components}/time-line/index.js +0 -0
  460. /package/es/{packages/components → components}/vod-chunk-upload/index.js +0 -0
  461. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-computed.js +0 -0
  462. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-data.js +0 -0
  463. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-computed.js +0 -0
  464. /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-data.js +0 -0
  465. /package/es/{packages/components → components}/vod-chunk-upload/src/vod-chunk-upload/index.js +0 -0
  466. /package/es/{packages/components → components}/vod-chunk-upload/src/vod-upload-modal.js +0 -0
  467. /package/es/{packages/shared → shared}/assets/img/failure.png.js +0 -0
  468. /package/es/{packages/shared → shared}/assets/img/no-permission.png.js +0 -0
  469. /package/es/{packages/shared → shared}/assets/img/nodata.png.js +0 -0
  470. /package/es/{packages/shared → shared}/assets/img/notfound.png.js +0 -0
  471. /package/es/{packages/shared → shared}/assets/img/qr.png.js +0 -0
  472. /package/es/{packages/shared → shared}/assets/img/success.png.js +0 -0
  473. /package/es/{packages/shared → shared}/assets/img/video.png.js +0 -0
  474. /package/es/{packages/shared → shared}/assets/img/video_default_cover.png.js +0 -0
  475. /package/es/{packages/shared → shared}/assets/img/xb_big.png.js +0 -0
  476. /package/es/{packages/shared → shared}/assets/img/xb_small.png.js +0 -0
  477. /package/es/{packages/shared → shared}/components/SelectPage/index.js +0 -0
  478. /package/es/{packages/shared → shared}/components/SlotRender/SlotRender.js +0 -0
  479. /package/es/{packages/shared → shared}/components/SlotRender/index.js +0 -0
  480. /package/es/{packages/shared → shared}/components/SvgIcon/index.js +0 -0
  481. /package/es/{packages/shared → shared}/components/TextOverTooltip/index.js +0 -0
  482. /package/es/{packages/shared → shared}/components/VueDraggable/index.js +0 -0
  483. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentBuilderHelper.js +0 -0
  484. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentStructure.js +0 -0
  485. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/renderHelper.js +0 -0
  486. /package/es/{packages/shared → shared}/components/VueDraggable/src/core/sortableEvents.js +0 -0
  487. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/console.js +0 -0
  488. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/htmlHelper.js +0 -0
  489. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/string.js +0 -0
  490. /package/es/{packages/shared → shared}/components/VueDraggable/src/util/tags.js +0 -0
  491. /package/es/{packages/shared → shared}/components/VueDraggable/src/vuedraggable.js +0 -0
  492. /package/es/{packages/shared → shared}/components/no-data/index.js +0 -0
  493. /package/es/{packages/shared → shared}/components/player-vod/player.js +0 -0
  494. /package/es/{packages/shared → shared}/components/player-vod/video-modal.js +0 -0
  495. /package/es/{packages/shared → shared}/global/variable.js +0 -0
  496. /package/es/{packages/shared → shared}/index.js +0 -0
  497. /package/es/{packages/shared → shared}/types/index.js +0 -0
  498. /package/es/{packages/shared → shared}/utils/anime.js +0 -0
  499. /package/es/{packages/shared → shared}/utils/colorLog.js +0 -0
  500. /package/es/{packages/shared → shared}/utils/index.js +0 -0
  501. /package/es/{packages/shared → shared}/utils/loadViewer.js +0 -0
  502. /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelBailHook.js +0 -0
  503. /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelHook.js +0 -0
  504. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesBailHook.js +0 -0
  505. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesHook.js +0 -0
  506. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesLoopHook.js +0 -0
  507. /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesWaterfallHook.js +0 -0
  508. /package/es/{packages/shared → shared}/utils/tapable/Hook.js +0 -0
  509. /package/es/{packages/shared → shared}/utils/tapable/HookCodeFactory.js +0 -0
  510. /package/es/{packages/shared → shared}/utils/tapable/SyncBailHook.js +0 -0
  511. /package/es/{packages/shared → shared}/utils/tapable/SyncHook.js +0 -0
  512. /package/es/{packages/shared → shared}/utils/tapable/SyncLoopHook.js +0 -0
  513. /package/es/{packages/shared → shared}/utils/tapable/SyncWaterfallHook.js +0 -0
  514. /package/es/{packages/shared → shared}/utils/utilExpand.js +0 -0
  515. /package/es/{packages/shared → shared}/utils/vexutils.js +0 -0
@@ -0,0 +1 @@
1
+ import e from"./BigTable.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","BigTable.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as a,computed as e,openBlock as t,createElementBlock as s,unref as r,createCommentVNode as o,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import u from"../../../../shared/assets/img/notfound.png.js";import f from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},d=["src"],c={key:1};var h=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,h=e((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),v=e((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(e,p)=>(t(),s("div",g,[a.showImg?(t(),s("img",{key:0,src:r(h),alt:""},null,8,d)):o("v-if",!0),n("p",null,i(a.noDataTip),1),r(v)?(t(),s("span",c,i(r(v)),1)):o("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as o,watch as r,onDeactivated as a,openBlock as t,createBlock as l,unref as u,withCtx as n,createVNode as i,withModifiers as p}from"vue";import s from"../../../../../shared/components/SlotRender/SlotRender.js";import{cloneDeep as v,isObject as c,isArray as d}from"lodash-es";import{NPopover as f,NInput as m}from"naive-ui";import{useSeparateMap as w}from"../../hooks/useSeparateRow.js";import h from"../separate.vue.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var y=x(e({__name:"edit-separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["formChange"],setup(e,{emit:x}){const y=e,g=o(),_=o(!1);function b(e){_.value=e}r(_,(function(e){e?async function(e){var o;if(!e)return;j.value=v(e.row[y.col.field]),await new Promise((e=>setTimeout(e))),null==(o=g.value)||o.syncPosition()}(k(y.row)):R(k(y.row))}));const j=o(),{getRowData:k}=w();async function R(e){if(!e)return;const o=e.row[y.col.field];(c(j.value)||d(j.value)||o!==j.value)&&x("formChange",{value:j.value,row:y.row,column:y.col,index:e.index})}const S={border:"1px solid #f5f5f5",padding:"4px 0 4px 4px",background:"white","border-radius":"4px"};return a((()=>{R(k(y.row))})),(o,r)=>(t(),l(u(f),{ref_key:"popoverRef",ref:g,trigger:"manual",show:_.value,"onUpdate:show":r[3]||(r[3]=e=>_.value=e),"show-arrow":!1},{trigger:n((()=>[i(h,{onClick:r[0]||(r[0]=p((e=>_.value=!_.value),["stop"])),style:S,col:e.col,row:e.row},null,8,["col","row"])])),default:n((()=>[e.col.separateSlot?(t(),l(u(s),{key:0,renderer:e.col.separateSlot,value:j.value,"onUpdate:value":r[1]||(r[1]=e=>j.value=e),"onUpdate:show":b,col:e.col,row:e.row},null,8,["renderer","value","col","row"])):(t(),l(u(m),{key:1,value:j.value,"onUpdate:value":r[2]||(r[2]=e=>j.value=e),type:"textarea"},null,8,["value"]))])),_:1},8,["show"]))}}),[["__file","edit-separate.vue"]]);export{y as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as u,createBlock as r,unref as i,withKeys as a,withCtx as n,createVNode as o,createTextVNode as l}from"vue";import{NInput as p,NButton as v}from"naive-ui";import f from"../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"input-button",emits:["trigger"],setup(e,{emit:f}){const m=t("");function s(){f("trigger",m.value)}return(e,t)=>(u(),r(i(p),{value:m.value,"onUpdate:value":t[0]||(t[0]=e=>m.value=e),placeholder:"字段搜索",class:"check-seach-input",onKeyup:a(s,["enter"])},{suffix:n((()=>[o(i(v),{text:"",onClick:s},{default:n((()=>[l("搜索")])),_:1})])),_:1},8,["value","onKeyup"]))}}),[["__file","input-button.vue"]]);export{m as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as a,openBlock as r,createElementBlock as t,createTextVNode as p,toDisplayString as s,unref as o,createElementVNode as l}from"vue";import{useSeparateMap as u}from"../hooks/useSeparateRow.js";import i from"../../../../_virtual/plugin-vue_export-helper.js";const c={class:"big-table__separate"},_=l("span",{class:"big-table__separatePlaceholder"},s(" "),-1);var n=i(e({__name:"separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0}},setup(e){const l=e,{separateDataMap:i}=u(),n=a((()=>{const e=i.value.get(l.row);return e?e.separateData[l.col.field]:""}));return(e,a)=>(r(),t("div",c,[p(s(o(n))+" ",1),_]))}}),[["__file","separate.vue"]]);export{n as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as n,onMounted as o,openBlock as r,createElementBlock as i,createCommentVNode as s,createElementVNode as l}from"vue";import"bpmn-js/dist/assets/diagram-js.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";import"bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";import{attr as a}from"tiny-svg";import{useMessage as p}from"naive-ui";import d from"axios";import c from"moment";import m from"bpmn-js/lib/Viewer";import u from"./custom/customOtherModule/zoomScroll.js";import v from"bpmn-js/lib/features/modeling";import b from"diagram-js/lib/navigation/movecanvas";import f from"./custom/customOtherModule/customViewerRenderer.js";import y from"../../../_virtual/plugin-vue_export-helper.js";const g={class:"containers"};var h=y(e({__name:"BpmnWorkflow",props:{flowType:{type:String,default:"workflow"},processId:String,instanceId:String,token:String,getBpmnXml:{type:Function},getInstanceHistory:{type:Function},getNodeApprovaler:{type:Function}},setup(e){const y=e;p();const h=t(null),w=n({nodeMenu:[],currentCanvasXml:null,eventType:["element.click","element.hover","element.out"]});d.create({withCredentials:!0,timeout:5e3,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"bearer "+y.token},baseURL:"/"}),o((()=>{console.log("生成bpmnModeler,展示画布"),x(y.processId,y.instanceId)}));const x=async(e,t)=>{"function"==typeof y.getBpmnXml&&(w.currentCanvasXml=await y.getBpmnXml(e),k(e,t))},k=async(e,t)=>{w.bpmnModeler&&w.bpmnModeler.destroy(),w.bpmnModeler=new m({container:h.value,additionalModules:[v,b,u,f,{bendpoints:["value",{}]}]});try{const{err:n}=await w.bpmnModeler.importXML(w.currentCanvasXml);if(n&&n.length)return console.error(n);w.bpmnModeler.get("canvas").zoom("fit-viewport","auto"),I(),j(e,t)}catch(e){console.error(`[Process Designer Warn]: ${(null==e?void 0:e.message)||e}`)}},I=()=>{let e=w.bpmnModeler.get("eventBus"),t=w.bpmnModeler.get("overlays"),n=w.bpmnModeler.get("selection");w.eventType.forEach((o=>{e.on(o,(e=>{let{element:r}=e;if(r.parent){if(!e||"bpmn:Process"===r.type)return!1;switch(o){case"element.hover":(async(e,t)=>{var n;let o="",{id:r,type:i}=e;if(!["label","bpmn:SequenceFlow"].includes(e.type)){const t=w.bpmnModeler.get("selection");t.select(null),t.select(e,!0)}if("bpmn:UserTask"==i){let e=w.nodeMenu.find((e=>e.key==r));(null==(n=null==e?void 0:e.auditor)?void 0:n.length)&&(o=`审核人:${e.auditor.map((e=>e.name)).join("、")}`,t.add(r,"tip",{position:{top:0,right:-12},html:`<div style="position: absolute;\n top: calc(50% - 5px);\n left: -10px;\n width: 0px;\n height: 0px;\n border:5px solid rgba(0, 0, 0, 0.75);\n border-top: 5px solid transparent;\n border-left: 5px solid transparent;\n border-bottom: 5px solid transparent;">\n </div>\n <div class="diagram-note"\n style="background-color: rgba(0, 0, 0, 0.75);\n color: #fff;\n font-size: 14px;\n text-align:left;\n width: 200px;\n max-height: 71px;\n padding: 5px;\n border-radius: 4px;\n word-break: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;">\n ${o}\n </div>`}))}})(r,t);break;case"element.out":n.select(null),t.clear()}}}))}))},M=(e,t)=>{const n=w.bpmnModeler.get("modeling");e.renderPathColor=t,n.setColor(e,{stroke:t})},j=async(e,t)=>{if("function"!=typeof y.getInstanceHistory)return;const n=w.bpmnModeler.get("elementRegistry");let o=n.filter((e=>!["label","bpmn:Process","bpmn:SequenceFlow"].includes(e.type))),r=await y.getInstanceHistory(e,t),i={},s=[],l=[];var p,d,m;r.historyActivity.map((e=>{-1!=e.activityId.indexOf("#multiInstanceBody")&&(s.push(e.activityId.replace("#multiInstanceBody","")),l.push(e))})),(p=r.historyActivity,d="activityId",m={},p.reduce((function(e,t){return!m[t[d]]&&(m[t[d]]=e.push(t)),e}),[])).filter((e=>![...new Set(s)].includes(e.activityId)&&"StartEvent_1"!=e.activityId&&!e.activityId.startsWith("Event_"))).map((e=>{let t=e.activityId.replace("#multiInstanceBody",""),n=e,o=l.filter((t=>e.activityId==t.activityId));(null==o?void 0:o.length)&&(n=o.reduce(((e,t)=>c(e.endTime).isBefore(t.endTime)?t:e))),i[t]=n.activityState}));let u=[];await Promise.all(o.map((async t=>{var o;if(Object.keys(i).includes(t.id)){let r=n.getGraphics(t.id).childNodes[2];a(r,{rx:10,ry:10,strokeWidth:3,strokeDasharray:0});let s=n.get(t.id);4==i[t.id]&&M(s,"#5aa36a"),2==i[t.id]&&M(s,"#d14141");let l={};if("bpmn:UserTask"==t.type){if("function"!=typeof y.getNodeApprovaler)return;l=await y.getNodeApprovaler(e,t.id),u.push({key:t.id,value:null==(o=null==t?void 0:t.businessObject)?void 0:o.name,auditor:null==l?void 0:l.auditor})}}}))),w.nodeMenu=u};return(e,t)=>(r(),i("div",g,[s(" 流程画布部分 "),l("div",{class:"canvas",ref_key:"canva",ref:h},null,512)]))}}),[["__file","BpmnWorkflow.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import t from"./ButtonPrint.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var e=r(t,[["__file","ButtonPrint.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,openBlock as o,createBlock as l,unref as n,withCtx as r,createVNode as i,createElementVNode as a,createTextVNode as u}from"vue";import{useMessage as s,NForm as p,NFormItem as d,NSpace as f,NUpload as m,NUploadDragger as c,NIcon as v,NText as h,NP as w}from"naive-ui";import{Archive as _}from"@vicons/ionicons5";import g from"axios";import x from"../../../../_virtual/plugin-vue_export-helper.js";const $={style:{"margin-bottom":"12px"}};var S=x(e({__name:"EditFormat",props:{formatId:null,token:null},setup(e,{expose:x}){const S=e,E=`${window.location.protocol}//${window.location.host}/bi-api`,C=`${E}/reprot/print/open/client/saveIReportFormat`,j=`${E}/reprot/print/open/client/getIReportFiles`,y=`${E}/reprot/print/open/client/delIReportFiles`,I=g.create({}),b=s(),F=t([]);var z;function R(e){return new Promise(((t,o)=>{var l;I.get(`${y}?formatId=${null==(l=S.formatId)?void 0:l.split("_")[1]}&authorizationKey=${S.token}&fileName=${e.file.name}`).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"删除文件失败,请重试!"),o()):(b.success("删除文件成功!"),t("SUCCESS"))}))}))}return I.get(`${j}?formatId=${null==(z=S.formatId)?void 0:z.split("_")[1]}&authorizationKey=${S.token}`).then((({data:e})=>{(e.list||[]).forEach((e=>{F.value.push({id:Date.now().toString(),name:e,status:"finished"})}))})),x({submit:function(e){return new Promise(((t,o)=>{if(!function(){if(F.value.length<2)return!1;let e=!1,t=!1;const o=/\.([^.]+)$/;return F.value.forEach((l=>{var n;const r=(null==(n=l.file)?void 0:n.name)||l.name||"",i=o.exec(r)?RegExp.$1.toLowerCase():"";i&&".jrxml".includes(i)&&(e=!0),i&&".jasper".includes(i)&&(t=!0)})),!(!e||!t)}())return void b.warning("请至少上传一个jrxml文件和一个jasper文件!");if(0===F.value.filter((e=>e.file)).length)return void b.warning("本次无新文件增加,请先添加新文件!");const l=new FormData;Object.keys(e).forEach((t=>{l.append(t,e[t])})),F.value.forEach((e=>{e.file&&l.append("files",e.file)})),I.post(C,l,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((({data:e})=>{"SUCCESS"!==(null==e?void 0:e.result)?(b.error((null==e?void 0:e.resultMsg)||"上传文件失败,请重试!"),o()):t("SUCCESS")}))}))}}),(e,t)=>(o(),l(n(p),{"label-placement":"left","label-width":75},{default:r((()=>[i(n(d),{label:"格式文件:",path:"file"},{default:r((()=>[i(n(f),{vertical:""},{default:r((()=>[i(n(m),{multiple:"","directory-dnd":"","file-list":F.value,"onUpdate:file-list":t[0]||(t[0]=e=>F.value=e),onRemove:R},{default:r((()=>[i(n(c),null,{default:r((()=>[a("div",$,[i(n(v),{size:"36",depth:3,component:n(_)},null,8,["component"])]),i(n(h),{style:{"font-size":"12px"}},{default:r((()=>[u("点击或者拖动文件到该区域来上传")])),_:1}),i(n(w),{depth:"3",style:{margin:"5px 0 0 0","font-size":"13px"}},{default:r((()=>[u("至少包含一个jxml文件和一个jasper文件")])),_:1})])),_:1})])),_:1},8,["file-list"])])),_:1})])),_:1})])),_:1}))}}),[["__file","EditFormat.vue"]]);export{S as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,reactive as a,watch as l,openBlock as o,createBlock as i,unref as u,normalizeStyle as r,withCtx as s,createElementVNode as n,mergeProps as d,createVNode as p,createTextVNode as c}from"vue";import{useMessage as m,NModal as v,NForm as f,NFormItem as y,NInput as w,NButton as _}from"naive-ui";import g from"./EditFormat.vue.js";import"../utils/print.js";import{isIReport as h}from"../utils/browserPrint.js";import I from"../../../../_virtual/plugin-vue_export-helper.js";const k={class:"content"};var V=I(e({__name:"IdentityVerification",props:{verifyUser:{type:Function,default:()=>Promise.resolve()},identityVerificationTitle:{default:"打印服务身份校验"},modelValue:{type:Boolean},formatId:null,templateId:null},emits:["update:modelValue","success","close"],setup(e,{emit:I}){const V=e,x=m(),b={account:"",password:""},C=t(null),j=t(!1),U=t("");let S=a({...b});const F={account:{required:!0,message:"请输入账号"},password:{required:!0,message:"请输入密码"}},P="416px",q=t(null),E=()=>{I("update:modelValue",!1),I("close")},N=t(!1),R=()=>{var e;null==(e=q.value)||e.validate((e=>{if(e)return console.log(e),!1;(async()=>{var e,t;try{N.value=!0;const{data:a={}}=await V.verifyUser(S)||{};if("SUCCESS"!==a.result)return x.error(a.resultMsg||"身份校验失败,请重试!"),!1;h(V.formatId||"")?(j.value=!0,U.value=null==(e=a.map)?void 0:e.token):I("success",null==(t=a.map)?void 0:t.token)}finally{N.value=!1}})()}))},T=async()=>{var e,t;try{N.value=!0;if(!await(null==(t=C.value)?void 0:t.submit({authorizationKey:U.value,id:null==(e=V.formatId)?void 0:e.split("_")[1],templateId:V.templateId,datasourceName:null,dataSourceId:null})))return!1;I("success",U.value)}finally{N.value=!1}};return l((()=>V.modelValue),(e=>{e||Object.assign(S,b)})),(t,a)=>(o(),i(u(v),{preset:"dialog",title:j.value?"编辑":e.identityVerificationTitle,class:"standard-modal standard-modal-white authentication-modal c-button-print-modal",show:e.modelValue,"close-on-esc":!1,"show-icon":!1,style:r({width:P,overflowY:"auto"}),"positive-text":j.value?"确认":"","negative-text":j.value?"取消":"",onClose:E,onNegativeClick:E,onPositiveClick:T},{default:s((()=>[n("div",k,[j.value?(o(),i(g,d({key:0,ref_key:"editFormRef",ref:C},t.$attrs,{formatId:e.formatId,token:U.value}),null,16,["formatId","token"])):(o(),i(u(f),{key:1,class:"login-form-button-print",ref_key:"formRef",ref:q,model:u(S),rules:F},{default:s((()=>[p(u(y),{path:"account"},{default:s((()=>[p(u(w),{value:u(S).account,"onUpdate:value":a[0]||(a[0]=e=>u(S).account=e),placeholder:"请输入账号"},null,8,["value"])])),_:1}),p(u(y),{path:"password"},{default:s((()=>[p(u(w),{type:"password","input-props":{autocomplete:"on",name:"password"},value:u(S).password,"onUpdate:value":a[1]||(a[1]=e=>u(S).password=e),placeholder:"请输入密码"},null,8,["value"])])),_:1}),p(u(y),null,{default:s((()=>[p(u(_),{loading:N.value,type:"primary",class:"login-form-button",onClick:R},{default:s((()=>[c("登录")])),_:1},8,["loading"])])),_:1})])),_:1},8,["model"]))])])),_:1},8,["title","show","style","positive-text","negative-text"]))}}),[["__file","IdentityVerification.vue"]]);export{V as default};
@@ -0,0 +1 @@
1
+ import e from"./Preview.vue2.js";import r from"../../../../_virtual/plugin-vue_export-helper.js";var i=r(e,[["__file","Preview.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as t,ref as r,onMounted as o,openBlock as s,createElementBlock as n,Fragment as p,createElementVNode as a,createBlock as i,mergeProps as u,unref as l,createCommentVNode as c}from"vue";import{fabric as m}from"./utils/index.js";import f from"./components/PopupTip.vue.js";import h from"./components/PopupMenu.js";import v from"./hooks/useTemperatureChart.js";import d from"./hooks/useBirthProcessChart.js";import k from"../../../_virtual/plugin-vue_export-helper.js";var C=k(e({__name:"FabricChart",props:{type:{type:String,default:"temperature"},data:{type:Object,required:!0},addRenderItem:{type:Function}},emits:["change","add","remove","select"],setup(e,{expose:k,emit:C}){const w=e,y=t((()=>"temperature"===w.type)),g=r(null),j=r(),{propItems:P,redrawPoints:_,select:I,pointTipProps:b,pointMenuProps:M,clickMenu:x}=function(){const e=[j,w,C,g];return y.value?v(...e):d(...e)}();return o((()=>{j.value=new m.Canvas(g.value,{width:P.canvasWidth,height:P.canvasHeight,backgroundColor:"#fff",selection:!1,containerClass:"c-fabric-chart",fireRightClick:!0})})),k({redrawPoints:_,select:I,canvas:j}),(e,t)=>(s(),n(p,null,[a("canvas",{ref_key:"canvasRef",ref:g},null,512),j.value?(s(),i(f,u({key:0,propItems:l(P)},l(b)),null,16,["propItems"])):c("v-if",!0),j.value?(s(),i(l(h),u({key:1,propItems:l(P)},l(M),{show:l(M).show,"onUpdate:show":t[0]||(t[0]=e=>l(M).show=e),onClickMenu:l(x)}),null,16,["propItems","show","onClickMenu"])):c("v-if",!0)],64))}}),[["__file","FabricChart.vue"]]);export{C as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as p,openBlock as t,createBlock as e,Teleport as l,withDirectives as o,createElementVNode as r,normalizeStyle as u,unref as i,createElementBlock as s,Fragment as a,renderList as f,toDisplayString as n,vShow as c}from"vue";import m from"./useStyle.js";import _ from"../../../../_virtual/plugin-vue_export-helper.js";var h=_(p({__name:"PopupTip",props:{show:{type:Boolean,default:!1},point:null,list:{default:()=>[]},propItems:null},setup(p){const _=m(p);return(m,h)=>(t(),e(l,{to:".c-fabric-chart"},[o(r("ul",{class:"c-fabric-chart-popup-tip",style:u(i(_))},[(t(!0),s(a,null,f(p.list,(p=>(t(),s("li",{key:p},n(p),1)))),128))],4),[[c,p.show]])]))}}),[["__file","PopupTip.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,reactive as t,watch as i,onMounted as s,openBlock as d,createElementBlock as a,normalizeStyle as o,createVNode as c,unref as n,withCtx as h,createElementVNode as r,normalizeClass as u,createCommentVNode as p,createBlock as f,createTextVNode as w,toDisplayString as k,withDirectives as y,vShow as v,renderSlot as b}from"vue";import{NSpin as g,NCheckbox as m,NTooltip as U,NSelect as x,NInput as S,NInputNumber as E,NPopconfirm as _,NButton as W}from"naive-ui";import F from"../../../shared/components/VueDraggable/src/vuedraggable.js";import O from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"fields-set-content"},C={class:"fields-table"},N=r("span",{class:"width-show",style:{width:"4%"}},null,-1),P=r("span",{class:"width-large"},"所有字段",-1),j={class:"width-show"},R={key:0,class:"width-show"},I={key:1,class:"width-show"},L={class:"width-show"},T={class:"width-show"},D=r("span",{class:"width-showed"},"固定",-1),z=r("span",{class:"width-word"},"自定义标题",-1),B=r("span",{class:"width-showed"},"列宽",-1),G=["onClick"],H={class:"width-show drag-icon-wrap"},J=r("span",{class:"iconfont icon-a-menzhenyishengzhanxitongtubiaotuozhuai",style:{color:"#000"}},null,-1),V=r("span",null,"拖拽调整顺序",-1),$=r("span",{style:{width:"14px","margin-right":"6px"}},null,-1),A={class:"width-show"},K={key:0,class:"width-show"},M={key:1,class:"width-show"},Q={class:"width-show"},X={class:"width-show"},Y={class:"width-showed"},Z={class:"width-word"},ee={class:"width-showed"},le={key:0,class:"check-options"},te={class:"btn-operate"};var ie=O(e({__name:"FieldSet",props:{fields:{type:Array,default:function(){return[]}},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1}},emits:["onSave","onClose","reset"],setup(e,{expose:O,emit:ie}){const se=e,de={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},ae=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],oe=l(null);function ce(){const e=se.fields?JSON.parse(JSON.stringify(se.fields)):[];return Object.keys(de).forEach((l=>{e.forEach((e=>{"old"==se.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[de[l]]=1==e[l]:e[de[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1)}))})),e}const ne=t({spinning:!1,isCustomSearch:!0,clickItem:{},fields:[],widthShow:"9%",widthLarge:"19%"}),he=e=>ne.fields.some((l=>Object.prototype.hasOwnProperty.call(l,e))),re=()=>{if("old"==se.type){let e=[];return ne.fields.length>0&&ne.fields.forEach(((l,t)=>{e.push({id:l.id,field:l.name,visible:l.show,sequence:t,sortable:l.sort,title:l.alias,fixed:l.fixedWay,minWidth:l.columnWidth,bold:l.bold,...se.isEdit?{required:l.required,editable:l.editable}:{}})})),e}return ne.fields},ue=()=>{ie("onSave",{tableFields:re()})},pe=()=>{ie("onClose")};function fe(){ne.fields=ce(),ie("reset")}const we=e=>!!ne.fields.length&&ne.fields.every((l=>!(Object.prototype.hasOwnProperty.call(l,e)&&!ye(l,e))||l[e])),ke=(e,l)=>{const t=e,i=ne.fields.map((e=>(Object.prototype.hasOwnProperty.call(e,l)&&!ye(e,l)&&(e[l]=t),e)));ne.fields=i};function ye(e,l){return["editable","required"].includes(l)&&e[`${l}Disable`]}return i((()=>se.fields),(e=>{(null==e?void 0:e.length)>0&&(ne.fields=ce())}),{immediate:!0,deep:!0}),s((()=>{var e;null==(e=oe.value)||e.style.setProperty("margin","auto"),se.isEdit&&(ne.widthShow="8%",ne.widthLarge="13%")})),O({getTableFields:re}),(l,t)=>(d(),a("div",{ref_key:"settingView",ref:oe,class:"c-field-set",style:o({"--width-show":ne.widthShow,"--width-large":ne.widthLarge})},[c(n(g),{show:ne.spinning,tip:"...",style:{width:"100%",height:"100%"}},{default:h((()=>[r("div",q,[r("div",C,[r("div",{class:u(["setting-title",{"seting-title-api":!ne.isCustomSearch}])},[N,p(" 字段名称 "),P,p(" 显示 "),r("span",j,[he("show")?(d(),f(n(m),{key:0,checked:we("show"),"onUpdate:checked":t[0]||(t[0]=e=>ke(e,"show"))},null,8,["checked"])):p("v-if",!0),w(" 显示 ")]),p(" 可编辑 "),e.isEdit?(d(),a("span",R,[he("editable")?(d(),f(n(m),{key:0,checked:we("editable"),"onUpdate:checked":t[1]||(t[1]=e=>ke(e,"editable"))},null,8,["checked"])):p("v-if",!0),w(" 编辑 ")])):p("v-if",!0),p(" 是否必填 "),e.isEdit?(d(),a("span",I,[he("required")?(d(),f(n(m),{key:0,checked:we("required"),"onUpdate:checked":t[2]||(t[2]=e=>ke(e,"required"))},null,8,["checked"])):p("v-if",!0),w(" 必填 ")])):p("v-if",!0),p(" 排序 "),r("span",L,[he("sort")?(d(),f(n(m),{key:0,checked:we("sort"),"onUpdate:checked":t[3]||(t[3]=e=>ke(e,"sort"))},null,8,["checked"])):p("v-if",!0),w(" 排序 ")]),r("span",T,[c(n(m),{checked:we("bold"),"onUpdate:checked":t[4]||(t[4]=e=>ke(e,"bold"))},null,8,["checked"]),w(" 加粗 ")]),p(" 固定 "),D,p(" 自定义标题 "),z,p(" 列宽 "),B],2),r("div",{ref:"setShow",class:u(["set-show",{"set-show-api":!ne.isCustomSearch}])},[c(n(F),{list:ne.fields,animation:"150","item-key":"id",tag:"ul"},{item:h((({element:l})=>{return[l.hide?p("v-if",!0):(d(),a("li",{key:0,class:"left-style",style:o((t=l,{background:ne.clickItem.id===t.id?"#f2f2f2":void 0})),onClick:e=>{return t=l,void(ne.clickItem=t);var t}},[r("span",H,[c(n(U),{trigger:"hover"},{trigger:h((()=>[J])),default:h((()=>[V])),_:1})]),p(" 字段名称 "),r("span",{class:u(["width-large title-item",{blue:l.extraField}])},[$,r("span",null,k(l.title),1)],2),p(" 显示 "),r("span",A,[y(c(n(m),{checked:l.show,"onUpdate:checked":e=>l.show=e},null,8,["checked","onUpdate:checked"]),[[v,"0001"!=l.id]])]),p(" 是否可编辑 "),e.isEdit?(d(),a("span",K,[y(c(n(m),{disabled:l.editableDisable,checked:l.editable,"onUpdate:checked":e=>l.editable=e},null,8,["disabled","checked","onUpdate:checked"]),[[v,"0001"!=l.id]])])):p("v-if",!0),p(" 是否必填 "),e.isEdit?(d(),a("span",M,[y(c(n(m),{disabled:l.requiredDisable,checked:l.required,"onUpdate:checked":e=>l.required=e},null,8,["disabled","checked","onUpdate:checked"]),[[v,"0001"!=l.id]])])):p("v-if",!0),p(" 排序 "),r("span",Q,[y(c(n(m),{checked:l.sort,"onUpdate:checked":e=>l.sort=e,disabled:1==l.notParticipatingSort},null,8,["checked","onUpdate:checked","disabled"]),[[v,"0001"!=l.id]])]),p(" 加粗 "),r("span",X,[y(c(n(m),{checked:l.bold,"onUpdate:checked":e=>l.bold=e},null,8,["checked","onUpdate:checked"]),[[v,"0001"!=l.id]])]),p(" 固定 "),r("span",Y,[c(n(x),{value:l.fixedWay,"onUpdate:value":e=>l.fixedWay=e,options:ae,style:{width:"90%",display:"flex"}},null,8,["value","onUpdate:value"])]),p(" 自定义标题 "),r("span",Z,[y(c(n(S),{value:l.alias,"onUpdate:value":e=>l.alias=e,style:{width:"90%"},clearable:""},null,8,["value","onUpdate:value"]),[[v,"0001"!=l.id]])]),p(" 列宽 "),r("span",ee,[c(n(E),{value:l.columnWidth,"onUpdate:value":e=>l.columnWidth=e,style:{width:"120px"},clearable:""},null,8,["value","onUpdate:value"])])],12,G))];var t})),_:1},8,["list"])],2)]),se.footerFlag?(d(),a("div",le,[r("div",te,[b(l.$slots,"footer",{},(()=>[c(n(_),{onPositiveClick:fe},{trigger:h((()=>[c(n(W),{style:{"margin-right":"8px"}},{default:h((()=>[w("恢复默认设置")])),_:1})])),default:h((()=>[w(" 确认要恢复系统默认设置吗? ")])),_:1}),c(n(W),{style:{"margin-right":"8px"},onClick:pe},{default:h((()=>[w("取消")])),_:1}),c(n(W),{type:"primary",onClick:ue},{default:h((()=>[w("保存")])),_:1})]))])])):p("v-if",!0)])])),_:3},8,["show"])],4))}}),[["__file","FieldSet.vue"]]);export{ie as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as o,ref as e,provide as t,toRaw as r,openBlock as i,createElementBlock as a,normalizeStyle as n,unref as s,createElementVNode as m,createVNode as l,mergeProps as f,withCtx as u,createTextVNode as c}from"vue";import{uuidGenerator as p}from"../../../shared/utils/index.js";import{cloneDeep as d,isFunction as g}from"lodash-es";import v from"../../../shared/components/VueDraggable/src/vuedraggable.js";import _ from"./components/FormConfigCreator.vue.js";import h from"./components/FormConfigDragDisplay.vue.js";import C from"./components/FormConfigEdit.vue.js";import x from"./components/FormConfigMaterialItem.js";import{useDataNormalize as j}from"./hooks/useDataNormalize.js";import{InjectionFieldList as y,InjectionMaterialList as F,InjectionActiveFieldItem as V,FORM_CONFIG_GROUP as D}from"./constants/index.js";import"@vicons/ionicons5";import"naive-ui";import k from"../../../_virtual/plugin-vue_export-helper.js";import"./utils/index.js";import{useSortableConfig as H}from"./hooks/useSortalbeConfig.js";const b=["id"],E={class:"form-config__material"},L=m("header",{class:"form-config__materialHeader"},"物料区",-1),S={class:"form-config__displayWrapper"},I={class:"form-config__displayHeader"},N={class:"form-config__config"},R=m("header",{class:"form-config__configHeader"},"配置区",-1),U={class:"form-config__configContent"};var w=k(o({__name:"FormConfig",props:{maxHeight:{type:String},textFormatter:{type:Function}},setup(o,{expose:k}){const w=o,z=p(),{getCommonConfig:A}=H(),B=e([]);t(y,B);const M=e([]);function T(o){B.value.some((e=>e.key===o.key))||B.value.push(o)}t(F,M);const W=(o,e)=>g(w.textFormatter)?w.textFormatter(o,e):e,q=e();t(V,q);const G=e(),{transform:J,inverseTransform:K}=j();return k({loadData({fieldList:o}){let e=[],t=[];o.forEach((o=>function(o){"LINE_BAR"===o.type&&(o.children=[]);!1===o.show?t.push(o):e.push(o)}(d(r(o))))),B.value=J(e),M.value=t},validate(){var o;return null==(o=G.value)?void 0:o.validate()},getData:()=>({fieldList:K(d(r(B.value))),materialList:K(d(r(M.value)))})}),(e,t)=>(i(),a("section",{class:"form-config",style:n({"--max-height":o.maxHeight}),id:s(z)},[m("section",E,[L,l(s(v),f(s(A)(),{class:"form-config__materialContent",modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=o=>M.value=o)}),{item:u((({element:o})=>[l(s(x),{"field-item":o},null,8,["field-item"])])),_:1},16,["modelValue"])]),m("section",S,[m("header",I,[c(" 布局区 "),l(_,{onSubmit:T})]),l(h,{class:"form-config__displayContent",group:s(D),"text-formatter":W,modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=o=>B.value=o)},null,8,["group","modelValue"])]),m("section",N,[R,m("section",U,[l(C,{ref_key:"formConfigEditRef",ref:G,uuid:s(z)},null,8,["uuid"])])])],12,b))}}),[["__file","FormConfig.vue"]]);export{w as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as i,openBlock as t,createBlock as l,unref as o,withCtx as a,createVNode as r,createTextVNode as n}from"vue";import{pick as s}from"lodash-es";import{NButtonGroup as u,NPopconfirm as m,NButton as f}from"naive-ui";import{EditAbleField as d}from"../constants/index.js";import{useConfigurationField as _}from"../hooks/useConfigurationField.js";import"../../../index.js";import p from"../../../../_virtual/plugin-vue_export-helper.js";import L from"../../../form-render/index.js";var c=p(e({__name:"FormConfigCreator",emits:{submit:e=>e},setup(e,{emit:p}){const c=_().generateFieldListByKeys(null,[d.NAME,d.LAYOUT_WIDTH_ENUM,d.NOTES,d.DEFAULT_EXPAND,d.FOLD]),h=i(),E=i(),w={defaultExpand:!0,fold:!0,layoutWidthEnum:"ALL_LINE"};async function v(e,i){if(!i)return;await i.validate();const t=i.getFormValues();p("submit",{layoutWidthEnum:"ALL_LINE",...t,type:e,key:t.name,__new:!0})}return(e,i)=>(t(),l(o(u),{size:"small"},{default:a((()=>[r(o(m),{width:"200px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[0]||(i[0]=e=>v("NEWLINE",E.value))},{trigger:a((()=>[r(o(f),null,{default:a((()=>[n("新建分行符")])),_:1})])),default:a((()=>[r(o(L),{column:12,ref_key:"lineBreakFormRef",ref:E,"initial-data":o(s)(w,["layoutWidthEnum"]),size:"small","label-width":"auto","label-placement":"left",fieldList:o(c).slice(0,2)},null,8,["initial-data","fieldList"])])),_:1}),r(o(m),{width:"300px","show-icon":!1,"show-arrow":!1,onPositiveClick:i[1]||(i[1]=e=>v("LINE_BAR",h.value))},{trigger:a((()=>[r(o(f),null,{default:a((()=>[n("新建分线栏")])),_:1})])),default:a((()=>[r(o(L),{column:12,ref_key:"linebarFormRef",ref:h,"initial-data":w,size:"small","label-width":"auto","label-placement":"left",fieldList:o(c)},null,8,["fieldList"])])),_:1})])),_:1}))}}),[["__file","FormConfigCreator.vue"]]);export{c as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,openBlock as t,createBlock as r,unref as o,mergeProps as m,withCtx as i,createElementVNode as s,normalizeStyle as a,resolveDynamicComponent as l}from"vue";import n from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{usePresetRenderer as p}from"../hooks/usePresetRenderer.js";import{useSortableConfig as u}from"../hooks/useSortalbeConfig.js";import"lodash-es";import{layoutWidthEnum2Column as f}from"../utils/index.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";const g=["data-type"];var y=d(e({__name:"FormConfigDragDisplay",props:{fieldItem:{type:Object},textFormatter:{type:Function,required:!0}},setup(e){function d(e){return{"--item-column":e?f(e.layoutWidthEnum):24}}const{getRenderer:y}=p(),{getCommonConfig:c}=u();return(p,u)=>(t(),r(o(n),m(o(c)(e.fieldItem),{style:d(e.fieldItem)}),{item:i((({element:m})=>[s("div",{class:"form-config__displayContentItem","data-type":m.type,style:a(d(m))},[(t(),r(l(o(y)(m)),{"field-item":m,textFormatter:e.textFormatter},null,8,["field-item","textFormatter"]))],12,g)])),_:1},16,["style"]))}}),[["__file","FormConfigDragDisplay.vue"]]);export{y as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as i,ref as o,inject as l,watch as a,toRaw as t,openBlock as r,createElementBlock as n,Fragment as u,createBlock as s,unref as v,createVNode as d,nextTick as m}from"vue";import{cloneDeep as p}from"lodash-es";import{InjectionActiveFieldItem as f}from"../constants/index.js";import"../../../../shared/components/VueDraggable/src/vuedraggable.js";import"../utils/index.js";import c from"../../../../_virtual/plugin-vue_export-helper.js";import"@vicons/ionicons5";import{NModal as g}from"naive-ui";import"../../../../shared/utils/index.js";import{useConfigurationField as h}from"../hooks/useConfigurationField.js";import"../../../index.js";import x from"../../../form-render/index.js";var _=c(e({__name:"FormConfigEdit",props:{uuid:{type:String,required:!0}},setup(e,{expose:c}){const _=e,j=i((()=>`#${_.uuid} .form-config__config`)),y=o(0),F=o(),b=l(f),k=o([]),w=o({}),{generateFieldListByFieldItem:C}=h(),E=o(!1);async function P(){var e;b.value=R,await m(),null==(e=F.value)||e.validate()}let R=null;function q({fieldKey:e,value:i}){b.value&&(b.value[e]=i)}return a(b,(async(e,i)=>{var o;if(e){if(i&&e!==R)try{await(null==(o=F.value)?void 0:o.validate())}catch(e){return E.value=!0}R=e,w.value={editable:!0,...p(t(e))},k.value=C(e).map((e=>({...e,componentProps:{to:j.value}}))),y.value++}}),{immediate:!0}),c({validate(){var e;return null==(e=F.value)?void 0:e.validate()}}),(e,i)=>(r(),n(u,null,[(r(),s(v(x),{key:y.value,column:12,ref_key:"formRenderRef",ref:F,size:"small",onFormChange:q,"field-list":k.value,"initial-data":w.value},null,8,["field-list","initial-data"])),d(v(g),{show:E.value,"onUpdate:show":i[0]||(i[0]=e=>E.value=e),preset:"dialog",to:v(j),"close-on-esc":!1,"mask-closable":!1,closable:!1,title:"存在填写错误的字段","positive-text":"继续编辑",onPositiveClick:P},null,8,["show","to"])],64))}}),[["__file","FormConfigEdit.vue"]]);export{_ as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as o,inject as e,openBlock as t,createBlock as r,unref as n,withModifiers as i,withCtx as l,createVNode as s}from"vue";import{CloseCircle as m}from"@vicons/ionicons5";import{isArray as p}from"lodash-es";import{NButton as u,NIcon as c}from"naive-ui";import{InjectionFieldList as a,InjectionMaterialList as f}from"../../constants/index.js";import _ from"../../../../../_virtual/plugin-vue_export-helper.js";var v=_(o({__name:"CloseButton",props:{fieldItem:{type:Object,required:!0}},setup(o){const _=o,v=e(a),d=e(f),x=()=>{!function o(e){return p(e)&&e.some(((e,t,r)=>e!==_.fieldItem?o(e.children):(!e.__new&&d.value.push(e),r.splice(t,1))))}(v.value)};return(o,e)=>(t(),r(n(u),{text:"",class:"form-config__renderer--closeButton","text-color":"#a5a5a5",onClick:i(x,["stop"])},{icon:l((()=>[s(n(c),{component:n(m)},null,8,["component"])])),_:1},8,["onClick"]))}}),[["__file","CloseButton.vue"]]);export{v as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as o,computed as r,openBlock as t,createElementBlock as i,createElementVNode as l,mergeProps as m,unref as n,withModifiers as d,createTextVNode as f,toDisplayString as s,createVNode as p}from"vue";import c from"../FormConfigDragDisplay.vue.js";import u from"./CloseButton.vue.js";import{InjectionActiveFieldItem as a}from"../../constants/index.js";import{bindHover as _}from"../../utils/index.js";import v from"../../../../../_virtual/plugin-vue_export-helper.js";const x={class:"form-config__renderer--complex form-config__renderer"},g=["onClick"];var I=v(e({__name:"ComplexNode",props:{fieldItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const v=e,I=o(a);function j(){I.value=v.fieldItem}const C=r((()=>[{"is-active":I.value===v.fieldItem},"form-config__renderer--complexHeader"]));return(o,r)=>(t(),i("section",x,[l("header",m(n(_)(e.fieldItem),{class:n(C),onClick:d(j,["stop"])}),[f(s(v.fieldItem.name)+" ",1),p(u,{"field-item":e.fieldItem},null,8,["field-item"])],16,g),p(c,m(o.$props,{modelValue:e.fieldItem.children,"onUpdate:modelValue":r[0]||(r[0]=o=>e.fieldItem.children=o),class:"form-config__renderer--complex--grid"}),null,16,["modelValue"])]))}}),[["__file","ComplexNode.vue"]]);export{I as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,computed as i,openBlock as r,createBlock as o,unref as d,mergeProps as l,withModifiers as f,withCtx as a,createVNode as m,normalizeClass as n,createTextVNode as s,toDisplayString as u}from"vue";import{NButton as p,NEllipsis as c}from"naive-ui";import _ from"./CloseButton.vue.js";import{InjectionActiveFieldItem as I,WidgetTextMap as v}from"../../constants/index.js";import{bindHover as y}from"../../utils/index.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var j=x(e({__name:"DefaultNode",props:{fieldItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const x=e,j=t(I);function g(){j.value=x.fieldItem}const q=i((()=>[{"is-active":j.value===x.fieldItem},"form-config__renderer"])),h=i((()=>["form-config__renderer--default",{"is-required":x.fieldItem.required}])),C=i((()=>!1===x.fieldItem.editable));function F(){const e=v.get(x.fieldItem.type);return x.textFormatter(x.fieldItem,`${x.fieldItem.name}${e?`(${e})`:""}`)}return(t,i)=>(r(),o(d(p),l({secondary:!d(C),dashed:d(C)},d(y)(e.fieldItem),{onClick:f(g,["stop"]),class:d(q),"data-type":e.fieldItem.type}),{default:a((()=>[m(d(c),{class:n(d(h))},{default:a((()=>[s(u(F()),1)])),_:1},8,["class"]),m(_,{"field-item":e.fieldItem},null,8,["field-item"])])),_:1},16,["secondary","dashed","onClick","class","data-type"]))}}),[["__file","DefaultNode.vue"]]);export{j as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as o,computed as t,onMounted as r,onUnmounted as s,openBlock as a,createBlock as i,unref as l,withCtx as n,createElementBlock as m,createVNode as p,isRef as u,Fragment as d,renderList as c,createCommentVNode as f,createElementVNode as h,normalizeStyle as y,withKeys as j,withModifiers as g,toDisplayString as v}from"vue";import{createForm as b,onFieldValueChange as k,onFieldReact as F,onFormMount as C}from"@formily/core";import{FormProvider as H,FormConsumer as S}from"@formily/vue";import{isNumber as x,cloneDeep as A}from"lodash-es";import{NForm as R,NTabs as _,NTabPane as L,NConfigProvider as O}from"naive-ui";import{useAutoHidden as w}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as B}from"./hooks/useComplexOptions.js";import{useFormDomEvent as V,useFormExposeEvent as I}from"./hooks/useFormEvent.js";import{useFormRenderLifeCycle as N}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeReactions as D}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as q}from"./hooks/useNuiThemeOverrides.js";import"./utils/index.js";import{useFieldListAdaptor as U}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as W}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as K}from"./hooks/useFormValidator.js";import"@vueuse/core";import"date-fns";import{useAnchor as M}from"./hooks/useAnchor.js";import{useFormContext as T}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import E from"../../../_virtual/plugin-vue_export-helper.js";import{createObjSchema as P}from"./utils/schema.js";const J={key:0,style:{height:"54px"}},z={style:{"white-space":"pre"}};var G=E(e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},linebarAutoHidden:{type:Boolean}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:E,emit:G}){const Q=e,{nuiThemeOverrides:X}=q();K();const Y=o(),Z=t((()=>x(Q.maxHeight)?Q.maxHeight+"px":Q.maxHeight)),{SchemaField:$,businessCollector:ee,formItemDepsCollector:oe,changeContextCollector:te,formUUID:re}=T(Q,G),{anchorBarRef:se,currentAnchor:ae,generateAnchorList:ie,updateAnchorList:le,anchorIdList:ne,onScroll:me}=M(Q,G,Y,oe);N(Q).callLifeCycle("onSetup");const{trigger:pe}=w(),ue=b({initialValues:Q.initialData,effects(e){k("*",(o=>{const t=o.props.name.toString();ee.trigger(e,t),oe.trigger(t),G("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:te.getContext(t,o.value)}),de(t,o.value)})),Q.linebarAutoHidden&&(F("*",pe),C((e=>e.query("*").forEach(pe)))),Q.anchor&&(F("*",le),C(ie))}}),{lowCodeReactionsHandler:de,triggerAllReactionsHandler:ce}=D(t((()=>Q.lowCodeReactions)),ue);r(ce);const{schemaAdaptor:fe}=U(ee);let he=Q.fieldList||[];const ye=t((()=>Q.schema?Q.schema:Q.fieldList?(he=W().traverse(A(Q.fieldList),Q.fieldVisitor),P(fe(he))):P({}))),{onKeydown:je}=V({formModel:ue,formRenderRef:Y,props:Q}),{clearSpan:ge}=B();s((()=>ge(re)));const ve=I({formModel:ue,formRenderRef:Y,formItemDepsCollector:oe,getFieldList:()=>he,formUUID:re});return E({formModel:ue,validate:(e="*")=>ve.validate(e),getFormValues:(e=!0,o=!0)=>ve.getFormValues(e,o),setFormValues:(e,o=!0)=>ve.setFormValues(e,o),setFieldState(e,o){ve.setFieldState(e,o)},resetFields(e="*"){ve.resetFields(e)},queryWidget:async e=>ve.queryWidget(e),async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(a(),i(l(R),{class:"form-render","require-mark-placement":"left"},{default:n((()=>[e.anchor?(a(),m("section",J,[p(l(_),{value:l(ae),"onUpdate:value":t[0]||(t[0]=e=>u(ae)?ae.value=e:null),type:"line",ref_key:"anchorBarRef",ref:se},{default:n((()=>[(a(!0),m(d,null,c(l(ne),(e=>(a(),i(l(L),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):f("v-if",!0),p(l(O),{"theme-overrides":l(X)},{default:n((()=>[h("section",{class:"form-render__wrapper",style:y({"--column":e.column,"--form-height":l(Z)}),ref_key:"formRenderRef",ref:Y,onScroll:t[1]||(t[1]=(...e)=>l(me)&&l(me)(...e)),onKeydownCapture:t[2]||(t[2]=j(g(((...e)=>l(je)&&l(je)(...e)),["prevent"]),["enter"]))},[p(l(H),{form:l(ue)},{default:n((()=>[p(l($),{schema:l(ye)},null,8,["schema"]),e.consumer?(a(),i(l(S),{key:0},{default:n((({form:e})=>[h("div",z,v(JSON.stringify(e.values,null,2)),1)])),_:1})):f("v-if",!0)])),_:1},8,["form"])],36)])),_:1},8,["theme-overrides"])])),_:1}))}}),[["__file","FormRender.vue"]]);export{G as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as r,computed as t,openBlock as o,createBlock as a,nextTick as l}from"vue";import u from"./FormRender.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";var i=d(e({__name:"FormRenderWrapper",setup(e,{expose:d}){const i=r(),m=r(0);return d({...["validate","getFormValues","setFormValues","setFieldState","resetFieldState","resetFields","queryWidget"].reduce(((e,r)=>(e[r]=(...e)=>{var t;return null==(t=i.value)?void 0:t[r](...e)},e)),{}),formModel:t((()=>{var e;return null==(e=i.value)?void 0:e.formModel})),reload:async function(){m.value++,await l()}}),(e,r)=>(o(),a(u,{key:m.value,ref_key:"formRenderRef",ref:i}))}}),[["__file","FormRenderWrapper.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as r,computed as o,inject as a,openBlock as l,createElementBlock as s,createElementVNode as t,normalizeClass as i,unref as n,createTextVNode as d,toDisplayString as m,createBlock as u,createCommentVNode as f,Fragment as p,createVNode as v,withCtx as _,renderSlot as c}from"vue";import"../../../../index.js";import b from"../../tooltipMessage.vue.js";import{InjectionFormItemDepsCollector as k,FormItemLineBarDepKeyPrepend as h}from"../../../constants/index.js";import{ChevronDown as y,ChevronUp as g}from"@vicons/ionicons5";import{NCollapseTransition as j}from"naive-ui";import w from"../../../../../../_virtual/plugin-vue_export-helper.js";import{useFormField as x}from"../../../hooks/useFormField.js";const F={class:"form-render__linebar","anchor-target":""},C={class:"form-render__linebarHeaderTitle"};var H=w(e({__name:"FormCollapse",props:{show:{type:Boolean,default:!0},title:{type:String,default:""},remark:String,disabled:{type:Boolean,default:!1}},setup(e){const w=e,H=r(w.show);function B(){w.disabled||(H.value=!H.value)}const S=o((()=>["form-render__linebarHeader",{"form-render__linebarHeader--disabled":!!w.disabled}])),{fieldKey:D}=x();return a(k).setDeps(D.value,h+D.value,((e=!0)=>{H.value=e})),(r,o)=>(l(),s("section",F,[t("header",{class:i(n(S)),onClick:B},[t("div",C,[d(m(e.title)+" ",1),e.remark?(l(),u(b,{key:0,message:e.remark},null,8,["message"])):f("v-if",!0)]),e.disabled?f("v-if",!0):(l(),s(p,{key:0},[H.value?(l(),u(n(y),{key:0})):(l(),u(n(g),{key:1}))],64))],2),v(n(j),{class:"form-render__linebarItem",show:H.value},{default:_((()=>[c(r.$slots,"default")])),_:3},8,["show"])]))}}),[["__file","FormCollapse.vue"]]);export{H as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as a,inject as o,watch as r,createVNode as l,nextTick as n}from"vue";import{isEqual as i,isArray as u}from"lodash-es";import"../../../index.js";import{useCommonInjection as s}from"../../hooks/useCommonInjection.js";import{InjectionAsyncQueue as c,InjectionFormUUID as p}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../utils/index.js";import{useFormField as m}from"../../hooks/useFormField.js";import"@vueuse/core";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import"@formily/core";import"date-fns";import"@formily/reactive";import{connect as d,mapProps as v}from"@formily/vue";import"@vue/shared";import"./index.js";import"../../hooks/useFormRenderOptions.js";import{NCascader as f}from"naive-ui";import{createVisitedSetter as h,assignUpdateValue as y,traverseDependKey as j}from"../../utils/schema.js";const b=d(e({name:"FormCascader",props:{options:{type:Array,default:()=>[]},depth:{type:[Number,String]},urlConfig:{type:Object},requestCache:{type:Boolean,default:!0},onFocus:{type:Function},filterable:{type:Boolean,default:!1},onChange:{},value:{}},emits:["update:value"],setup(e,{slots:d,emit:v}){const y=t(),{field:b,title:k}=m(),C=a((()=>{var t,a;return null!=(a=null==(t=e.urlConfig)?void 0:t.nameKey)?a:"text"})),g=a((()=>{var t,a;return null!=(a=null==(t=e.urlConfig)?void 0:t.valueKey)?a:"value"})),A=a((()=>{try{const t=Array.isArray(e.value)?e.value:JSON.parse(e.value||"");return Array.isArray(t)&&t.length?t.map((e=>e[C.value])).join(" / "):null}catch(e){return null}}));function S(e,t,a){v("update:value",a.map((function(e){return{...e,label:e[C.value],children:void 0,parent:void 0}})))}const F=o(c);async function w(t){e.filterable?await async function(){if(!e.urlConfig||y.value&&e.requestCache)return;const t=await F.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:k.value,cache:e.requestCache});function a(e,t){const o={[C.value]:e[C.value],[g.value]:e[g.value],depth:t+1,isLeaf:!0};return u(e.children)&&(o.children=e.children.map((e=>a(e,t+1))),o.isLeaf=!e.children.length),o}y.value=t.map((e=>a(e,0)))}():await async function(t){if(r(e,t))return;const a=await F.addAsync(l(s(t),u(e),k.value,t));if(!a.length&&t)return t.isLeaf=!0,S(0,0,n(t)),void(K.value=!1);const o=a.map((e=>i(e,s(t))));function r(e,t){return!u(e)||!t&&y.value&&e.requestCache||s(t)>=s(e)-1}function l(t,a,o,r){const l={lvlnr:t+1+""};return r&&a.dependKey&&j(a.dependKey,((e,t)=>{l[t]=r[e]})),{params:l,...a,key:o,cache:e.requestCache}}function n(e){let t=e;const a=[e];for(;t.parent;)a.unshift(t.parent),t=t.parent;return a}function i(a,o){return{[C.value]:a[C.value],[g.value]:a[g.value],depth:o+1,parent:t,isLeaf:o+2>=s(e)}}function u(e){return e.urlConfig}function s(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=o:y.value=o}(t),await x()}const H=`form-render__cascade--menu-${o(p)}`;async function x(){await n();const e=document.querySelector(`.${H} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}const{injectValueValidate:L,injectValueWatchFromEmpty:q,injectValueBindKey:B}=s();q((()=>e.value),w),L((()=>e.value)),r((()=>e.urlConfig),(async(e,t)=>{i(e,t)||(y.value=null,await w())}));const K=t(!1);function V(e){K.value=!!e,e&&w()}const E=a((()=>y.value||e.options||[])),O=a((()=>!e.filterable)),W=B(A);return()=>l(f,{key:W.value,remote:O.value,filterable:e.filterable,"menu-props":{class:H,onClick:x},checkStrategy:"child",show:!!K.value,"onUpdate:show":V,value:A.value,"onUpdate:value":S,labelField:C.value,valueField:g.value,options:E.value,onLoad:w,onFocus:h(b)},d)}}),v({dataSource:"options"},y));export{b as SEARCH_CASCADER};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as o,inject as t,createVNode as r}from"vue";import{useDebounceFn as a}from"@vueuse/core";import{cloneDeep as s,isString as l}from"lodash-es";import{useCommonInjection as i,useSelectOptionProps as n}from"../../hooks/useCommonInjection.js";import{InjectionChangeContextCollector as p}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../../index.js";import"../../utils/index.js";import{useFormField as m}from"../../hooks/useFormField.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import"@formily/core";import"date-fns";import"@formily/reactive";import{connect as u,mapProps as c}from"@formily/vue";import"@vue/shared";import"./index.js";import{useUrlConfigOptions as d,useAutographOptions as y,useRecommendOptions as f,searchContentMatcher as v}from"../../hooks/useFormRenderOptions.js";import{NSelect as h}from"naive-ui";import{createVisitedSetter as j,assignUpdateValue as b,assignClearBindVisited as k}from"../../utils/schema.js";const S=u(e({name:"FormSelect",props:{value:{type:[String,Array]},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},onChange:{},urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},recommend:{type:Boolean,default:!1},commonList:{type:Array},recentList:{type:Array},getRecommendInfo:{type:Function},recommendNum:{type:Number,default:10},recommendCache:{type:Boolean,default:!1}},emits:["update:value","postRecommend"],setup(e,{slots:u,emit:c}){const b=o({get:()=>e.value,async set(e){c("update:value",e),g(e)}}),{labelKey:k,valueKey:S,fetchData:A,options:F}=e.urlConfig?d(e,b):y(e,b),{getRecommend:H,postRecommend:g,sortedOptions:x}=f(e,F,c,k,S),{field:B,fieldKey:C}=m();t(p).setContext(C.value,(e=>{return{currentOption:s((o=e,x.value.find((e=>e[S.value]===o))))};var o}));let R="";const L=a((async(e="")=>{R=e,A(e),H(e)}),400),{injectValueValidate:O,injectValueWatchFromEmpty:V,injectValueBindKey:K}=i();V(b,L),O(b);const P=K(b),{menuProps:W,nodeProps:q}=n();function w(e){const o=e[k.value];if(!o||!l(o))return"";const t=v(R,o);return t?r("section",null,[t.map(((e,o)=>0!==o&&e?r("span",{style:{color:o%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):o}return()=>r(h,{key:P.value,remote:!0,filterable:!0,value:b.value,"onUpdate:value":e=>b.value=e,"menu-props":W,"node-props":q,labelField:k.value,valueField:S.value,options:x.value,onSearch:L,"onUpdate:show":e=>e&&L(),onFocus:j(B),renderLabel:w},u)}}),c({dataSource:"options"},b,k));export{S as SELECT};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as o,openBlock as r,createBlock as i,unref as s,withCtx as t,createVNode as l,createElementVNode as n,createElementBlock as p,Fragment as a,renderList as m,toDisplayString as u}from"vue";import{HelpCircleOutline as g}from"@vicons/ionicons5";import{isString as f}from"lodash-es";import{NTooltip as v}from"naive-ui";import c from"../../../../_virtual/plugin-vue_export-helper.js";const _={style:{display:"inline-flex","flex-direction":"column"}};var d=c(e({__name:"tooltipMessage",props:{message:String},setup(e){const c=e,d=o((()=>f(c.message)?c.message.split("<br>"):[]));return(e,o)=>(r(),i(s(v),{trigger:"hover"},{trigger:t((()=>[l(s(g))])),default:t((()=>[n("section",_,[(r(!0),p(a,null,m(s(d),(e=>(r(),p("span",{key:e},u(e),1)))),128))])])),_:1}))}}),[["__file","tooltipMessage.vue"]]);export{d as default};
@@ -0,0 +1 @@
1
+ import{doAnimation as e}from"../../../../shared/utils/anime.js";import{untracked as t}from"@formily/reactive";import{useDebounceFn as o,watchOnce as n}from"@vueuse/core";import{ref as r,nextTick as l,computed as i}from"vue";import{FormItemLineBarDepKeyPrepend as a}from"../constants/index.js";import"../utils/index.js";import{createLinebarId as s}from"../utils/schema.js";function u(u,c,v,f){const m=r(),p=r(""),d=r([]),y=o((async function(e){var t;d.value=Object.values(e.fields).reduce(((e,t)=>("LINEBAR"===t.componentType&&"visible"===t.selfDisplay&&e.push({title:t.title,name:t.address.toString()}),e)),[]),await l(),null==(t=m.value)||t.syncBarPosition()}),100);let h=!1;async function T(t){h=!0;try{if(!v.value)return;f.trigger(a+t,!0),await l();const o=v.value.querySelector(`#${s(t)}`);if(!o)return;await new Promise((t=>{e(v.value.scrollTop,o.offsetTop,300,(e=>{var t;null==(t=v.value)||t.scrollTo({top:e})}),"easeInSine",(()=>setTimeout(t,300)))}))}finally{h=!1}}const g=o((function(e){var t;if(h||!v.value)return;const{scrollTop:o,clientHeight:n}=v.value,r=d.value.find(((e,t,r)=>{const l=r[t+1];if(!l)return!0;const i=v.value.querySelector(`#${s(l.name)}`);return i?i.offsetTop>o+n/2:void 0}))||d.value[d.value.length-1];p.value=null!=(t=null==r?void 0:r.name)?t:"",c("scroll",e)}),300);n(d,(e=>{var t,o;p.value=null!=(o=null==(t=e[0])?void 0:t.name)?o:""}));return{currentAnchor:i({get:()=>p.value,async set(e){p.value=e,await new Promise((e=>setTimeout(e,100))),await T(e)}}),onScroll:g,anchorIdList:d,generateAnchorList:y,updateAnchorList:function(e){"LINEBAR"===e.componentType&&e.selfDisplay&&t((()=>y(e.form)))},scrollTo:T,anchorBarRef:m}}export{u as useAnchor};
@@ -0,0 +1 @@
1
+ import{untracked as e}from"@formily/reactive";import{nextTick as t}from"vue";function s(){return{trigger:async function(s){const n=s.selfDisplay;e((async()=>{if("LINEBAR"===s.componentType)await t(),i(s);else{const e=s.parent;if(!e||"LINEBAR"!==e.componentType)return;"visible"===n?e.setDisplay("visible"):i(e)}}))}}}async function i(e){if("hidden"===e.selfDisplay)return;const t=function(e){const t=e.address.toString();return Reflect.get(e.form.query(t+".*"),"addresses").filter((s=>{const i=e.form.fields[s];return i&&i.address.parent().toString()===t}))}(e).some((t=>{const s=e.form.fields[t];return s&&"visible"===s.selfDisplay}));e.setDisplay(t?"visible":"hidden")}export{s as useAutoHidden};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,provide as t,computed as a,ref as o,watch as l,resolveComponent as s,openBlock as n,createElementBlock as i,unref as r,createBlock as u,resolveDynamicComponent as d,createVNode as f,mergeProps as c,createSlots as p,renderList as m,withCtx as v,createCommentVNode as b,renderSlot as g}from"vue";import{uuidGenerator as x}from"../../../shared/utils/index.js";import{useDebounceFn as h}from"@vueuse/core";import{promiseTimeout as k}from"@vueuse/shared";import{isFunction as y}from"lodash-es";import{VxeTableEventNameList as C,InjectionIhoTableEmits as j,InjectionIhoTableAnnotation as D,InjectionIhoTableUUID as _,InjectionIhoTableInstance as $,InjectionIhoTableConfig as H,InjectionIhoTableFieldList as A,InjectionIhoTableHandler as L}from"./constants/index.js";import{createTableHooks as T,applyTableConfigHooks as w,applyTableFieldHooks as R,createTableEventHandlers as E,createDomInsertComponent as F,createDataTransfer as I}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as O}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as N}from"./utils/index.js";import S from"../../../_virtual/plugin-vue_export-helper.js";const q=["id"];var z=S(e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object}},emits:["formChange","settingClick","formClick","keyboard",...C],setup(e,{expose:C,emit:S}){var z,B;const G=e,J=O(),K=function(e,...t){S(e,...t);const a=r(U)[N(e)];y(a)&&a(...t),J.trigger(e,...t)};t(j,K),t(D,a((()=>G.annotation)));const M=x();t(_,M);const P=o();t($,P);const Q=T(),U=o({uuid:null!=(B=null==(z=G.tableConfig)?void 0:z.uuid)?B:M});t(H,U);const V=h(W,10);function W(){U.value=w(Q,G.tableConfig),U.value.uuid=M}const X=o([]);t(A,X);const Y=h(Z,10);function Z(){X.value=R(Q,G.fieldList,U.value,{$table:P,emits:K})}const ee=I(Q,U,P),te=o([]),ae=h(oe,10);async function oe(){var e;te.value=await ee(G.tableData),null==(e=P.value)||e.recalculate(!0)}const le={updateTableDataRef:ae,updateConfigRef:V,updateFieldListRef:Y};t(L,le);const se=E({hooks:Q,config:U,$table:P,context:le,emits:K}),ne=a((()=>({...U.value,...se})));l((()=>G.tableConfig),(()=>{V(),Y(),ae()}),{deep:!0}),l((()=>G.fieldList),(()=>{Y(),ae()}),{deep:!0}),l([()=>G.tableData,()=>{var e;return null==(e=G.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=U.value.treeConfig)?void 0:e.expandAll)&&(await k(11),null==(t=P.value)||t.setAllTreeExpand(!0))})),l((()=>[...G.tableData]),ae),W(),Z(),oe();const{header:ie,footer:re}=F(Q);return C({$table:P,async loadData(e){var t;null==(t=P.value)||t.loadData(await ee(e))},setFilterState:(e,t)=>({fieldName:e,value:t}),...Q.exposeHooks.expose.call({},U,{$table:P,emits:K})}),Q.setupHooks.setup.call(U,X),(e,t)=>{const a=s("vxe-grid");return n(),i("section",{class:"iho-table",id:r(M)},[(n(),u(d(r(ie)))),f(a,c({ref_key:"$table",ref:P},r(ne),{columns:X.value,data:te.value}),p({_:2},[m(e.$slots,((t,a)=>({name:a,fn:v((()=>[b(" 实际上所有的vxe-grid插槽都支持 "),g(e.$slots,a)]))})))]),1040,["columns","data"]),(n(),u(d(r(re))))],8,q)}}}),[["__file","IhoTable.vue"]]);export{z as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,ref as l,onDeactivated as a,watch as o,computed as i,openBlock as s,createElementBlock as n,normalizeStyle as u,unref as r,createElementVNode as c,renderSlot as v,createVNode as p,withCtx as d,createTextVNode as f,toDisplayString as h,normalizeClass as m,createCommentVNode as _,Fragment as y,renderList as k,createBlock as b,isRef as g}from"vue";import{widthAppend as x}from"../../../../../shared/utils/index.js";import{FunnelSharp as C}from"@vicons/ionicons5";import{useVModel as S,useVirtualList as j}from"@vueuse/core";import{NEllipsis as w,NPopover as A,NIcon as $,NInput as B,NCheckbox as I,NCheckboxGroup as L,NButtonGroup as U,NButton as q}from"naive-ui";import{InjectionIhoTableUUID as P,InjectionIhoTableConfig as W}from"../../constants/index.js";import{IhoTableRenderHelper as Z}from"../../utils/index.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const E={class:"iho-table__filterWrapper"},F={key:0},H=["onClick"],O={class:"iho-table__filterListItem"},D={class:"iho-table__filterFooter"};var G=z(e({__name:"filter",props:{payload:{type:Object,required:!0},sortable:{type:Boolean},options:{type:Array,default:()=>[]},checked:{type:Array,required:!0},sortStatus:{type:String}},emits:["update:checked","update:sortStatus"],setup(e,{emit:z}){const G=e,J=t(P),K=t(W),M=S(G,"checked",z),N=S(G,"sortStatus",z),Q=l([]),R=l(!1),T=l("");function V(){R.value=!R.value}function X(){R.value=!1}a(X),o(R,(e=>{e&&(Q.value=[...M.value],T.value="")}));const{list:Y,containerProps:ee,wrapperProps:te}=j(i((()=>T.value?G.options.filter((e=>e.key.includes(T.value))):G.options)),{itemHeight:32,overscan:3}),le=i((()=>!!Q.value.length&&Q.value.length!==G.options.length)),ae=i({get:()=>Q.value.length===G.options.length,set:e=>{Q.value=e?G.options.map((e=>e.value)):[]}}),oe=i((()=>({...ee.style,height:x(320)})));function ie(){X(),z("update:checked",Q.value)}const se=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];const ne=i((()=>M.value.length||N.value)),ue=i((()=>{var e;return Z.isEditableColumn(K.value,null==(e=G.payload)?void 0:e.column)})),re=i((()=>({display:"inline-flex","align-items":"center",justifyContent:"start",width:`calc(100% - ${ue.value?19:0}px)`})));return(t,l)=>(s(),n("section",{style:u(r(re))},[c("section",null,[v(t.$slots,"header",{},(()=>[p(r(w),null,{default:d((()=>[f(h(e.payload.column.title),1)])),_:1})]))]),p(r(A),{to:`#${r(J)}`,show:R.value},{trigger:d((()=>[p(r($),{class:m(["iho-table__filterIcon",{"is-active":r(ne)}]),component:r(C),onClick:V},null,8,["class","component"])])),default:d((()=>[c("section",E,[_(' 判断是否显示升序降序模块的组件 v-if="sortable"'),e.sortable?(s(),n("div",F,[(s(),n(y,null,k(se,(e=>c("div",{key:e.status,class:m(["iho-table__filterButton",{"iho-table__filterButton--active":r(N)===e.status}]),onClick:t=>{return l=e.status,X(),void z("update:sortStatus",l);var l}},h(e.text),11,H))),64))])):_("v-if",!0),e.options.length>5?(s(),b(r(B),{key:1,value:T.value,"onUpdate:value":l[0]||(l[0]=e=>T.value=e)},null,8,["value"])):_("v-if",!0),c("div",O,[p(r(I),{label:"全选",checked:r(ae),"onUpdate:checked":l[1]||(l[1]=e=>g(ae)?ae.value=e:null),indeterminate:r(le)},null,8,["checked","indeterminate"])]),p(r(L),{value:Q.value,"onUpdate:value":l[3]||(l[3]=e=>Q.value=e)},{default:d((()=>[c("section",{ref:r(ee).ref,style:u(r(oe)),onScroll:l[2]||(l[2]=(...e)=>r(ee).onScroll&&r(ee).onScroll(...e)),class:"iho-table__filterListWrapper"},[c("section",{style:u(r(te).style)},[(s(!0),n(y,null,k(r(Y),(e=>(s(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[p(r(I),{value:e.data.value,label:e.data.key},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),c("footer",D,[c("section",null,h(`已选择${Q.value.length}项`),1),p(r(U),{size:"tiny"},{default:d((()=>[p(r(q),{onClick:l[4]||(l[4]=e=>Q.value=[])},{default:d((()=>[f("清空")])),_:1}),p(r(q),{onClick:X},{default:d((()=>[f("取消")])),_:1}),p(r(q),{type:"primary",onClick:ie},{default:d((()=>[f("确定")])),_:1})])),_:1})])])])),_:1},8,["to","show"])],4))}}),[["__file","filter.vue"]]);export{G as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as r,computed as a,watch as o,openBlock as l,createBlock as i,unref as u,mergeProps as s,withCtx as n,createVNode as d,isRef as m}from"vue";import{generateTimeFormat as c}from"../../../../../../../shared/utils/index.js";import{isFunction as v,isNaN as p}from"lodash-es";import{NPopover as f,NInput as w,NDatePicker as g}from"naive-ui";import{useIhoTableFormEvent as D}from"../../../../utils/index.js";import{useAutoFocus as $}from"../hooks/useAutoFocus.js";import h from"../../../../../../../_virtual/plugin-vue_export-helper.js";var y=h(e({__name:"editDate",props:{value:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{emit:h}){const y=e,b=t(),{emitFormChangeWithParams:T}=D(y),{formRef:k,isShow:_}=$(),F=r(),S=e=>{const t=y.value;h("update:value",e),T({oldValue:t})},{isStartDate:j=!1,isEndDate:M=!1}=b,U=b.connectField||"",x=(e,t)=>j&&U?e>t:!(!M||!U)&&e<t,H=e=>{const t=new Date(y.row[U]),r=new Date(e),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds(),i=(e,t,r,a)=>!(M&&r>a)&&(!(j&&r<a)&&x(e,t));return{isHourDisabled:t=>{if(!y.row[U])return!1;const o=new Date(`${y.row[U].split(" ")[0]} 00:00:00`).getTime(),l=r.getMinutes(),u=r.getSeconds();return i(t,a,e-60*t*60*1e3-60*l*1e3-1e3*u,o)},isMinuteDisabled:t=>{if(!y.row[U])return!1;const l=new Date(`${y.row[U].split(" ")[0]} ${a}:00:00`).getTime(),u=r.getSeconds();return i(t,o,e-60*t*1e3-1e3*u,l)},isSecondDisabled:t=>{if(!y.row[U])return!1;const r=new Date(`${y.row[U].split(" ")[0]} ${a}:${o}:00`).getTime();return i(t,l,e-1e3*t,r)}}};function P(e){return v(e)?t=>e(t,y.row):null}function q(e){if(!e)return"";const t=new Date(e),r=`00${t.getMonth()+1}`.slice(-2),a=`00${t.getDate()}`.slice(-2),o=R.value.valueFormat,l=o.includes("/")?"/":o.includes(".")?".":"-";let i=`${t.getFullYear()}${l}${r}${l}${a}`;const u=t.getTime(),s=new Date(y.row[U]).getTime();return y.row[U]&&(j&&u>s||M&&u<s)&&(i=""),i}function C(){let e=F.value;if(p(new Date(e).getTime()))if(/^\d{8}$/.test(e)){const t=`${e.slice(0,4)} ${e.slice(4,6)} ${e.slice(6)}`;e="",p(new Date(t).getTime())||(e=q(t))}else e="";else e=q(e);F.value=e||void 0,S(F.value)}const R=a((()=>{const e=b.valueFormat||"yyyy-MM-dd HH:mm:ss";return{valueFormat:e,format:e,timePickerProps:{format:c(e)}}})),A={type:b.type||"datetime",clearable:!0,placeholder:b.placeholder||"请选择",...b,...R.value,isDateDisabled:P(b.isDateDisabled)||(e=>!!y.row[U]&&x(e,M?new Date(`${y.row[U].split(" ")[0]} 00:00:00`).getTime():new Date(y.row[U]).getTime())),onUpdateFormattedValue:S};return A.type.includes("time")&&(A.isTimeDisabled=P(b.isTimeDisabled)||H),o((()=>y.value),(e=>{F.value=e})),(e,t)=>e.$attrs.isPopover?(l(),i(u(f),s({key:0,show:u(_),trigger:"click",showArrow:!1,placement:"bottom-start",style:{padding:"0"}},e.$attrs,{onClickoutside:t[4]||(t[4]=()=>_.value=!1)}),{trigger:n((()=>[d(u(w),{ref_key:"formRef",ref:k,clearable:"",value:F.value,"onUpdate:value":t[0]||(t[0]=e=>F.value=e),onBlur:C,onClick:t[1]||(t[1]=()=>_.value=!0)},null,8,["value"])])),default:n((()=>[d(u(g),s({panel:"",show:u(_),"onUpdate:show":t[2]||(t[2]=e=>m(_)?_.value=e:null),"formatted-value":F.value,"onUpdate:formatted-value":t[3]||(t[3]=e=>F.value=e)},u(A)),null,16,["show","formatted-value"])])),_:1},16,["show"])):(l(),i(u(g),s({key:1,ref_key:"formRef",ref:k,show:u(_),"onUpdate:show":t[5]||(t[5]=e=>m(_)?_.value=e:null),"formatted-value":F.value,"onUpdate:formatted-value":t[6]||(t[6]=e=>F.value=e)},u(A)),null,16,["show","formatted-value"]))}}),[["__file","editDate.vue"]]);export{y as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,ref as a,watch as o,computed as u,onMounted as r,onDeactivated as l,openBlock as i,createBlock as n,unref as s,withCtx as p,createElementVNode as v,withModifiers as d,normalizeStyle as c,toDisplayString as m,renderSlot as f,createVNode as h}from"vue";import{cloneDeep as g,isObject as w,isArray as y}from"lodash-es";import{NPopover as x,NInput as b}from"naive-ui";import{InjectionIhoTableHandler as k}from"../../../../constants/index.js";import{useIhoTableFormEvent as _}from"../../../../utils/index.js";import j from"../../../../../../../_virtual/plugin-vue_export-helper.js";const C=["onClick"];var S=j(e({__name:"editSeparate",props:{value:{},height:{type:Number,default:48},column:{type:Object,required:!0},row:{type:Object,required:!0},displayContent:{type:String,default:""},rowIndex:{type:Number,required:!0}},emits:["update:value","click"],setup(e,{emit:j}){const S=e,U=t(k),q=a(),P=a();function I(e){P.value=e}const N=a(!1);function O(e){N.value=e}function R(e){N.value=!N.value,j("click",e)}o(N,(function(e){e?async function(){var e;P.value=g(S.value),await new Promise((e=>setTimeout(e))),null==(e=q.value)||e.syncPosition()}():z()}));const{emitFormChangeWithParams:T}=_(S);async function z(){if(!w(P.value)&&!y(P.value)&&S.value===P.value)return;const e=S.value;j("update:value",P.value),T({oldValue:e}),U.updateTableDataRef()}const B=u((()=>({border:"1px solid #f5f5f5",height:S.height-16+"px",display:"flex",alignItems:"center",padding:"0",background:"white",wordBreak:"keep-all",boxSizing:"border-box","border-radius":"4px"})));return r((()=>O(!0))),l(z),(t,a)=>(i(),n(s(x),{ref_key:"popoverRef",ref:q,trigger:"manual",show:N.value,"onUpdate:show":a[1]||(a[1]=e=>N.value=e),"show-arrow":!1},{trigger:p((()=>[v("div",{onClick:d(R,["stop"]),style:c(s(B))},m(e.displayContent||" "),13,C)])),default:p((()=>[f(t.$slots,"menu",{value:P.value,"onUpdate:value":I,"onUpdate:show":O,col:e.column,row:e.row},(()=>[h(s(b),{value:P.value,"onUpdate:value":a[0]||(a[0]=e=>P.value=e),type:"textarea"},null,8,["value"])]))])),_:3},8,["show"]))}}),[["__file","editSeparate.vue"]]);export{S as default};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as a,openBlock as l,createElementBlock as o,createVNode as n,mergeProps as r,unref as u,isRef as i,withCtx as c,createElementVNode as s,normalizeProps as p,guardReactiveProps as v,Fragment as m,renderList as d,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as _,renderSlot as K}from"vue";import{jsonParse as S}from"../../../../shared/utils/index.js";import{Checkmark as g}from"@vicons/ionicons5";import{useVModel as b,useVirtualList as k}from"@vueuse/core";import{isObject as M}from"lodash-es";import j from"./BaseSearch.vue.js";import{NIcon as x}from"naive-ui";import C from"../../../../_virtual/plugin-vue_export-helper.js";const w={class:"recommend-search"},L=["onClick"],P=["title"],A=s("section",{class:"recommend-search__empty"},"暂无数据",-1);var O=C(e({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:C}){const O=e,R=t(!1),U=a((()=>R.value?O.editPlaceholder:O.placeholder)),$=t();function B(e){return S(e.itemObj)}const H=a((()=>O.commonList.map(B))),N=a((()=>O.recentList.map(B))),T=a((()=>O.options.filter((e=>{return H.value.every(t)&&N.value.every(t);function t(t){return t[O.valueKey]!==e[O.valueKey]}}))));function q(e){let t="";return[...E.value,$.value].find((a=>{if(M(a)&&a[O.valueKey]===e)return t=a[O.labelKey],!0})),t}const z=t(),D=b(O,"value",C),E=a((()=>[...H.value,...N.value,...T.value]));function F(e=""){C("search",e)}function G(){F(),C("openMenu")}function I(){C("closeMenu")}function J(){D.value=null,C("clear")}function Q(e){var t,a;M(e)&&(D.value=e[O.valueKey],null==(t=z.value)||t.closeMenu(),$.value=e,a=e[O.valueKey],C("choose",{value:a,option:{...$.value}}))}const{list:V,wrapperProps:W,containerProps:X}=k(E,{itemHeight:32,overscan:5});return(t,a)=>(l(),o("section",w,[n(j,r({ref_key:"baseSearchRef",ref:z,value:u(D),"onUpdate:value":a[0]||(a[0]=e=>i(D)?D.value=e:null),show:R.value,"onUpdate:show":a[1]||(a[1]=e=>R.value=e),"display-value":q(u(D)),placeholder:u(U),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},t.$attrs),{menu:c((()=>[u(E).length?(l(),o("section",r({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},u(X)),[s("section",p(v(u(W))),[(l(!0),o(m,null,d(u(V),(t=>(l(),o("div",{onClick:e=>Q(t.data),key:t.data[e.valueKey],class:y(["recommend-search__option",{"is-active":t.data[e.valueKey]===u(D)}])},[s("div",{class:"recommend-search__optionText",title:t.data.itemObj},f(t.data[e.labelKey]),9,P),t.data[e.valueKey]===u(D)?(l(),h(u(x),{key:0,component:u(g)},null,8,["component"])):_("v-if",!0)],10,L)))),128))],16)],16)):K(t.$slots,"empty",{key:1},(()=>[A]))])),_:3},16,["value","show","display-value","placeholder"])]))}}),[["__file","RecommendSelect.vue"]]);export{O as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as v,mergeProps as m,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as K,NFormItem as V,NButton as F}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:ve,hasScore:me,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,showEvent:Se,formKey:Ee}=_(Q,z,{query:ne}),{initForm:_e}=A(Q,z,H,{query:ne}),{submitMethod:Ae}=j(Q,z,H,{query:ne}),{nextLogicEvent:je,handleDynamicDataRelation:Te}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const De=e=>{try{ie(),_e(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&De(e):e.guage_id&&De(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{_e(o)}))}),{immediate:!0});const Oe=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,Ae(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},xe=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Ie=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,je(e,o,z.formArray),Te(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),je(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Pe=(e,o)=>{console.log(o),z.form[o.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},qe=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void Me("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value)return void Me("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Me(a)},Me=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Be()},onNegativeClick(){}})},Be=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}Ae()}))},Re=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:qe,cancel:Re}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),v(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),v(N,m({key:0},r(Ce),{onWriteGuage:Oe}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),v(P,m({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(me)?(n(),v(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(K),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),v(r(V),{key:0,path:e.val_key,"show-label":!r(D)(e.type)},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(ve)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void xe(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,xe(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),v(C(e.renderCom),m(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:Ie,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Ne(e)})(o,e),onVodFileList:Pe}),null,16,["onOnChange"])),r(ke)(e)?(n(),v(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),v(r(F),{key:0,onClick:Re},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),v(r(F),{key:1,onClick:qe,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as r,openBlock as s,createElementBlock as n,normalizeClass as i,unref as o,createElementVNode as t,createVNode as a,createTextVNode as l,toDisplayString as u,createCommentVNode as c}from"vue";import v from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import p from"../../../../_virtual/plugin-vue_export-helper.js";const m={class:"answer-res-wrap"},d={class:"answer-res"},w={key:0},f={key:0,class:"correct-answer"},g=t("p",null,"正确答案:",-1),P={class:"answer-key"},S=t("p",null,"答案解析:",-1);var _=p(e({__name:"AnswerParse",props:{item:{type:Object,default:()=>({})}},setup(e){const p=e,_=r((()=>{var e;return(null==(e=p.item)?void 0:e.questionScore)||0})),y=r((()=>{var e;return(null==(e=p.item)?void 0:e.questionScore)>0})),q=r((()=>y.value?"xitongtubiaodui":"xitongtubiaocuo")),x=r((()=>"questionPartScore"in p.item?"部分正确":y.value?"回答正确":"回答错误")),C=r((()=>"questionPartScore"in p.item?"部分":"本题")),b=r((()=>{var e;let{correctAnswer:r}=(null==(e=p.item)?void 0:e.scoreConfigs)||{};return r})),j=r((()=>{var e;let{answerKey:r}=(null==(e=p.item)?void 0:e.scoreConfigs)||{};return r||"无"}));return(e,r)=>(s(),n("div",{class:i(["c-answerParse",{"answerParse-success":o(y)}])},[t("div",m,[t("div",d,[a(o(v),{iconClass:o(q)},null,8,["iconClass"]),l(" "+u(o(x)),1)]),o(y)?(s(),n("div",w,u(o(C))+"得分:"+u(o(_))+"分",1)):c("v-if",!0)]),o(b)?(s(),n("div",f,[g,t("span",null,u(o(b)),1)])):c("v-if",!0),t("div",P,[S,t("span",null,u(o(j)),1)])],2))}}),[["__file","AnswerParse.vue"]]);export{_ as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,reactive as t,onMounted as o,watch as n,openBlock as a,createElementBlock as l,normalizeClass as u,unref as r,createElementVNode as s,toDisplayString as i,createVNode as d,createCommentVNode as c,createTextVNode as v}from"vue";import{useEvaluate as m}from"../hooks/use-evaluate.js";import w from"moment";import p from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import f from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"answered-wrap"};var j=f(e({__name:"EvaluateCountdown",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},form:{type:Object,default:()=>({})},currentTime:{default:(new Date).getTime()},showEvaluateCountdown:{type:Boolean,default:!1}},emits:["closeEvaluateCountdown"],setup(e,{expose:f,emit:j}){const h=e,b=t({source:"countdown",setAnswered:0}),{evaluateState:y,evaluateStartTime:C,showCountdown:A,getTotalLen:O,countdown:S,clearTimer:T}=m(h,b,{emit:j});o((()=>{(()=>{O();let{evaluateTime:e}=h.evaluateResultSetting;if(!A.value||!e)return;let t=(C.value?w(C.value):w()).add(e,"minutes");T(),S(t)})()})),n((()=>h.form),(e=>{(e||Object.keys(e).length)&&(console.log(e,"触发修改啦啦啦"),(e=>{var t;let o=null==(t=h.formArray)?void 0:t.filter((e=>!y.filterArr.includes(e.type)));if(!o||!o.length)return;let n={};o.forEach((t=>{const o=t.databaseTitle||t.title;n[o]=e[o]})),console.log(n);let a=0;for(let e in n){let t=n[e],o=(l=t,Object.prototype.toString.call(l));"[object Object]"==o?t&&Object.keys(t).length&&a++:"[object Array]"==o?t&&t.length&&a++:"[object Number]"==o?(t||0===t)&&a++:t&&a++}var l;b.setAnswered=a})(e))}),{immediate:!0,deep:!0});return f({getCountdownObj:()=>({setAnswered:b.setAnswered,totalLen:y.totalLen})}),(e,t)=>(a(),l("div",{class:u(["c-evaluateCountdown",{"evaluateCountdown-hasTime":h.showEvaluateCountdown}])},[h.showEvaluateCountdown?(a(),l("div",{key:0,class:u(["countdown",{"countdown-red":r(y).countdownRed}])},[s("span",null,i(r(y).countdownStr),1),d(r(p),{"icon-class":"zhongtai-zujianliebiao-gongzuoshijian"})],2)):c("v-if",!0),s("div",g,[v(" 答题情况: "+i(b.setAnswered)+"/ ",1),s("span",null,i(r(y).totalLen),1)])],2))}}),[["__file","EvaluateCountdown.vue"]]);export{j as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,reactive as t,onMounted as a,openBlock as l,createElementBlock as u,createElementVNode as i,toDisplayString as n,createCommentVNode as s,unref as r,createVNode as v,withCtx as o,createTextVNode as m,Fragment as g}from"vue";import{useEvaluate as d}from"../hooks/use-evaluate.js";import c from"moment";import{NButton as f}from"naive-ui";import p from"../../../../_virtual/plugin-vue_export-helper.js";const S={class:"c-evaluate-page"},y={class:"evaluate-container"},R={key:0,class:"evaluate-name"},b={key:1,class:"evaluate-explain"},w={class:"evaluate-score"},T=i("span",null,"测评总题",-1),E=i("span",null,"测评总分",-1),k={key:0},x=i("span",null,"测试时间(分钟)",-1),Y={key:2,class:"evaluate-time-range"};var h=p(e({__name:"EvaluatePage",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},isFinished:{type:Boolean,default:!1},maxScore:{type:Number,default:0}},emits:["writeGuage","closeEvaluateCountdown"],setup(e,{emit:p}){const h=e,_=t({source:"page",timer:null,curTime:(new Date).getTime(),timeRange:"",banStart:!1}),{evaluateState:j,evaluateStartTime:D,getEvaluateTime:C,getEvaluateStartTime:H,getEvaluateText:M,showCountdown:O,showRange:G,getTotalLen:N,countdown:$,clearTimer:A,disabledEvaluate:B,isBanStart:L}=d(h,_,{emit:p});a((()=>{P()}));const P=()=>{N(),F()},F=()=>{if(!h.evaluateResultSetting||!Object.keys(h.evaluateResultSetting).length)return;if(G.value){let e=c(D.value).format("YYYY年MM月DD日HH:mm:ss");if(C.value){let t=c(D.value).add(C.value,"minutes").format("YYYY年MM月DD日HH:mm:ss");_.timeRange=`${e}~${t}`}else _.timeRange=`${e}`}if(!D.value)return;let e=H.value;if(console.log(e,"--time"),!e)return;let t=e.getTime();A(),$(t)},q=()=>{console.log("触发---writeGuage"),A();let e=L();_.banStart=e,_.banStart||p("writeGuage",O.value)};return(e,t)=>(l(),u("div",S,[i("div",y,[h.evaluateResultSetting.evaluateName?(l(),u("h4",R,n(h.evaluateResultSetting.evaluateName),1)):s("v-if",!0),h.evaluateResultSetting.evaluateExplain?(l(),u("div",b,[i("div",null,n(h.evaluateResultSetting.evaluateExplain),1)])):s("v-if",!0),i("ul",w,[i("li",null,[i("div",null,n(r(j).totalLen),1),T]),i("li",null,[i("div",null,n(h.maxScore),1),E]),r(C)?(l(),u("li",k,[i("div",null,n(r(C)),1),x])):s("v-if",!0)]),r(G)?(l(),u("div",Y,n(_.timeRange),1)):s("v-if",!0),v(r(f),{class:"evaluate-btn",type:"primary",onClick:q,disabled:r(B)||_.banStart},{default:o((()=>[m(n(r(M))+" ",1),!r(j).isTimeOut&&r(j).countdownStr?(l(),u(g,{key:0},[m(" ("+n(r(j).countdownStr)+") ",1)],64)):s("v-if",!0)])),_:1},8,["disabled"])])]))}}),[["__file","EvaluatePage.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import{openBlock as s,createElementBlock as r,createStaticVNode as e}from"vue";import a from"../../../../_virtual/plugin-vue_export-helper.js";const o={},i={class:"n-base-loading n-base-suffix",role:"img","aria-label":"loading"},n=[e('<div class="n-base-loading__transition-wrapper"><div class="n-base-loading__container"><div class="n-base-loading__container-layer"><div class="n-base-loading__container-layer-left"><svg class="n-base-loading__svg" viewBox="0 0 235.29411764705884 235.29411764705884" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="currentColor" stroke-width="24" stroke-linecap="round" cx="117.64705882352942" cy="117.64705882352942" r="88" stroke-dasharray="491" stroke-dashoffset="246"></circle></svg></div><div class="n-base-loading__container-layer-patch"><svg class="n-base-loading__svg" viewBox="0 0 235.29411764705884 235.29411764705884" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="currentColor" stroke-width="24" stroke-linecap="round" cx="117.64705882352942" cy="117.64705882352942" r="88" stroke-dasharray="491" stroke-dashoffset="246"></circle></svg></div><div class="n-base-loading__container-layer-right"><svg class="n-base-loading__svg" viewBox="0 0 235.29411764705884 235.29411764705884" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="currentColor" stroke-width="24" stroke-linecap="round" cx="117.64705882352942" cy="117.64705882352942" r="88" stroke-dasharray="491" stroke-dashoffset="246"></circle></svg></div></div></div></div>',1)];var l=a(o,[["render",function(e,a){return s(),r("div",i,n)}],["__file","LoadingCom.vue"]]);export{l as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as a,computed as e,openBlock as t,createElementBlock as s,unref as r,createCommentVNode as o,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import u from"../../../../shared/assets/img/notfound.png.js";import f from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},d=["src"],c={key:1};var h=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,h=e((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),v=e((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(e,p)=>(t(),s("div",g,[a.showImg?(t(),s("img",{key:0,src:r(h),alt:""},null,8,d)):o("v-if",!0),n("p",null,i(a.noDataTip),1),r(v)?(t(),s("span",c,i(r(v)),1)):o("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{h as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,provide as a,computed as l,ref as t,nextTick as r,openBlock as o,createBlock as u,unref as n,isRef as s,normalizeStyle as i,withCtx as c,createVNode as p,withKeys as v,createElementVNode as d,renderSlot as f}from"vue";import{uuidGenerator as y}from"../../../shared/utils/index.js";import{NOOP as h}from"@vue/shared";import{useVModel as m,onClickOutside as b,useDebounceFn as g}from"@vueuse/core";import{isString as w,isArray as k,isFunction as S,isObject as _}from"lodash-es";import{NPopover as K,NInput as C}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as j,InjectionSearchCascaderLoadingNode as N,InjectionSearchCascaderValue as P}from"./constants/index.js";import{useCssVariable as x}from"./hooks/useCssVariable.js";import{SearchMenu as A}from"./components/SearchMenu.js";import V from"../../../_virtual/plugin-vue_export-helper.js";const F=["id"];var L=V(e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function}},emits:["update:value","focus","update:show"],setup(e,{emit:V}){const L=e;function U(){var e;e=[],Promise.resolve(S(L.beforeSetValue)?L.beforeSetValue(e):e).then((e=>V("update:value",e)),h)}function B(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&function(){if(I.value)return;I.value=!0,M.value="",J()}()}const R=x(),E=y(),I=m(L,"show",V);a(j,l((()=>L.checkAbleLevel)));const M=t(""),T=l({get:()=>I.value?M.value:w(L.value)?L.value:k(L.value)?L.value.reduce(((e,a,l)=>0===l?a[L.labelKey]:e+" / "+a[L.labelKey]),""):"",set(e){M.value=e,J(void 0,e)}});function $(e){V("focus",e)}async function q(){var e;I.value=!1,null==(e=z.value)||e.blur()}const z=t();b(z,(e=>{var a;if(!I.value)return;const l=e;if(!l.target)return q();!function(e){let a=!1,l=e;for(;l;){if(l.id===E){a=!0;break}l=l.parentElement}return a}(l.target)?q():null==(a=z.value)||a.focus()}));const D=t(),G=t(),H=t(null);a(N,H),a(P,l((()=>L.value)));const J=g((async(e,a)=>{var l;const{type:t,node:o}=e||{};try{if("update"===t)return void(S(L.search)&&L.search({...o,isLeaf:!0}));H.value=o;const e=await(S(L.search)&&L.search(o,a));G.value=_(e)?e:o}finally{H.value=null,await r(),null==(l=D.value)||l.syncPosition()}}),400);return(a,l)=>(o(),u(n(K),{class:"search-cascader",trigger:"manual",show:n(I),"onUpdate:show":l[1]||(l[1]=e=>s(I)?I.value=e:null),"show-arrow":!1,placement:"bottom-start",style:i(n(R)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:D},{trigger:c((()=>[p(n(C),{class:"search-cascader__input",placeholder:n(I)?e.editPlaceholder:e.placeholder,clearable:e.clearable,onClear:U,value:n(T),"onUpdate:value":l[0]||(l[0]=e=>s(T)?T.value=e:null),ref_key:"inputRef",ref:z,onFocus:$,onClick:B,onKeydown:v(B,["enter"])},null,8,["placeholder","clearable","value","onKeydown"])])),default:c((()=>[d("section",{id:n(E)},[p(n(A),{"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:n(J),"current-node":G.value},{empty:c((()=>[f(a.$slots,"empty")])),_:3},8,["label-key","value-key","options","onNodeClick","current-node"])],8,F)])),_:3},8,["show","style","width"]))}}),[["__file","SearchCascader.vue"]]);export{L as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,reactive as t,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,createVNode as b,withCtx as u,Fragment as f,renderList as p,createBlock as h,createTextVNode as y,toDisplayString as m,normalizeClass as v,vShow as g,nextTick as C}from"vue";import{useMessage as L,NTabs as I,NTabPane as S,NAnchor as E,NAnchorLink as w}from"naive-ui";import x from"./components/label-classify.vue.js";import{handleLabelColor as A}from"../../../shared/utils/vexutils.js";import k from"../../../_virtual/plugin-vue_export-helper.js";import O from"xe-utils";const K={key:0,class:"label-disable-wrap"},j=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],_={style:{height:"100%"}},T={class:"label-wrap"},F={key:0,class:"explicit-continer"},B={slot:"tab"},D={class:"edit-label-type"},V={class:"explicit-label-wrap left-label-wrap"},P={class:"edit-label-content"},N=["id"],W={class:"edit-label-type"};var $=k(e({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(e,{expose:k,emit:$}){const q=e,J=L(),R=l(null),z=t({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let G=l(0);const H=a((()=>{if(!z.inited)return!1;let e=z.labelConfig;return!e||Object.keys(e).every((l=>!e[l].itemList))})),M=a((()=>{let e=[].concat(...z.labelSelectedEdit,...q.labelSelectedList);return U(e,"labelId")})),Q=a((()=>{const e=M.value||[];return Array.isArray(e)?e.map((e=>e.labelId)):[]})),U=(e,l)=>{let t={};return e.reduce(((e,a)=>(!t[a[l]]&&(t[a[l]]=e.push(a)),e)),[])},X=()=>{if(z.labelSelectedEdit=M.value,"object"==typeof z.labelConfig){Object.keys(z.labelConfig||{}).forEach((e=>{var l;let t=(null==(l=z.labelConfig[e])?void 0:l.itemList)||[];t.length&&t.forEach((e=>{Q.value.includes(e.labelId)&&(e.isSelect=!0)}))}))}},Y=(e,l)=>{if(!e)return;let t=Object.keys(e)||[];if(!t.length)return;let a=e[t[0]].curKey;if(l&&"string"==typeof l){let[i]=l.split("~"),n=t.find((l=>e[l]&&e[l].curKey&&e[l].curKey.includes(i)));n&&(a=e[n].curKey)}a&&ne(a)},Z=(e,l)=>{l.showAdd=!0;const t=e.target.nextElementSibling;C((()=>{var e;null==(e=null==t?void 0:t.firstChild)||e.focus()}))},ee=(e,l)=>{setTimeout((()=>{l.addVal?te(l):l.showAdd=!1}),150)},le=(e,l)=>{l.addVal="",l.showAdd=!1},te=async e=>{var l;if(!!e.itemList.filter((e=>!(e.isPublic&&1==e.isPublic))).find((l=>l.labelName===e.addVal)))return J.error("标签名称重复!"),!1;let t="";t=(null==(l=e.itemList)?void 0:l.length)?e.itemList[0].parentColor||e.parentColor||"":(null==e?void 0:e.parentColor)||"";const a={type:e.typeId,name:e.addVal,parentColor:t},{status:i}=await q.saveLabelItem(a,e);i&&(J.success("添加成功!"),$("updateLabelData"),e.showAdd=!1)},ae=(e,l,t,a)=>{var i;const n=t.itemList,s=t.multipleChoice;let d=(null==(i=z.labelSelectedEdit)?void 0:i.length)&&O.clone(z.labelSelectedEdit,!0)||[];if(e){if(d.some((e=>e.labelId==l.labelId)))return;if(2==s){const{typeId:e,labelId:t}=l;d=d.filter((l=>l.typeId!==e)),n.forEach((e=>{e.labelId!==t&&(e.isSelect=!1)}))}d.push(l)}else{const e=d.findIndex((e=>e.labelId==l.labelId));-1!=e&&d.splice(e,1)}z.labelSelectedEdit=[...d],G.value++,q.explicit&&$("explicitOnChange",[...z.labelSelectedEdit])},ie=async e=>{const{status:l}=await q.deleteLabel(e,q.item);if(l){J.success("删除成功!");for(const l in z.labelConfig){const t=z.labelConfig[l].itemList.findIndex((l=>l.labelId==e.labelId));-1!=t&&z.labelConfig[l].itemList.splice(t,1)}const l=z.labelSelectedEdit||[],t=q.labelSelectedList||[];if(l&&l.length){const t=l.findIndex((l=>l.labelId==e.labelId));-1!=t&&l.splice(t,1)}if(t&&t.length){const l=t.findIndex((l=>l.labelId==e.labelId));-1!=l&&t.splice(l,1),$("change",[...t],q.item)}$("updateLabelData")}else J.warning("删除失败")},ne=e=>{e&&setTimeout((()=>{let l,t="#"+e;l=R.value.querySelector("a[href='"+t+"']"),l&&l.click(),z.labelAnchorKey=e}),32)},se=e=>{e.preventDefault()},de=e=>{if(!e)return;let l=e.slice(1);z.cacheAnchorKey=l},oe=()=>{var e;return null==(e=R.value)?void 0:e.querySelector(".right-label-wrap")};return i((()=>q.labelOptions),(e=>{e&&(()=>{var e;if(q.isLock)return;const l=JSON.parse(JSON.stringify(q.labelOptions));for(let t in l){let a=(null==(e=l[t])?void 0:e.typeId)||"";Object.assign(l[t],{curKey:`${t}_${a}}`})}z.labelConfig=l,C((()=>{let e;X(),q.explicit&&z.inited&&(e=z.labelAnchorKey),Y(z.labelConfig,e),z.inited=!0}))})()}),{immediate:!0,deep:!0}),k({resetShowAdd:()=>{let{labelObj:e}=z.editLabelItem;if(e&&Object.keys(e).length)for(let l in e){let t=e[l];Object.assign(t,{showAdd:!1})}},handleLabelForm:e=>{e([...z.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(e,l)=>{if("object"==typeof z.labelConfig){Object.keys(z.labelConfig||{}).forEach((t=>{var a;let i=(null==(a=z.labelConfig[t])?void 0:a.itemList)||[];i.length&&i.forEach((t=>{e==t.labelId&&(t.isSelect=l)}))}))}if(!1===l&&Array.isArray(z.labelSelectedEdit)){const l=z.labelSelectedEdit.findIndex((l=>l.labelId==e));-1!=l&&z.labelSelectedEdit.splice(l,1)}}}),(l,t)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:R},[d(H)?(n(),s("div",K,j)):o("v-if",!0),r(c("div",_,[c("div",T,[o(" 表单内嵌打开标签组件的样式 "),e.explicit?(n(),s("div",F,[b(d(I),{value:z.labelAnchorKey,type:"card",onChange:ne,"tab-position":"top"},{default:u((()=>[(n(!0),s(f,null,p(z.labelConfig,((l,t)=>(n(),h(d(S),{name:l.curKey},{default:u((()=>[c("span",B,[y(m(t)+" ",1),c("span",D,"("+m(2==l.multipleChoice?"单":"多")+"选)",1)]),c("div",V,[c("div",P,[b(x,{classifyItem:l,handleLabelChange:ae,handleLabelColor:d(A),handleDelLabel:ie,hanldeBlur:ee,handleAddLabel:Z,clearaddVal:le,isEdit:e.isEdit,sourceType:e.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])])])),_:2},1032,["name"])))),256))])),_:1},8,["value"])])):(n(),s(f,{key:1},[o(" 普通标签样式 "),c("div",{class:v(["left-label-wrap",{"total-left-label-wrap":e.isChangeWindow}])},[b(d(E),{"offset-target":oe,type:"block",onClick:se,onChange:de},{default:u((()=>[(n(!0),s(f,null,p(z.labelConfig,((e,l)=>(n(),h(d(w),{href:`#${e.curKey}`,title:String(l)},null,8,["href","title"])))),256))])),_:1})],2)],2112)),e.explicit?o("v-if",!0):(n(),s("div",{key:2,class:v(["right-label-wrap",{"total-right-label-wrap":e.isChangeWindow}])},[(n(!0),s(f,null,p(z.labelConfig,((l,t)=>(n(),s("div",{key:t,class:"edit-label-content"},[c("div",{class:"edit-label",id:l.curKey},[y(m(t)+" ",1),c("span",W,"("+m(2==l.multipleChoice?"单":"多")+"选)",1)],8,N),b(x,{classifyItem:l,handleLabelChange:ae,handleLabelColor:d(A),handleDelLabel:ie,hanldeBlur:ee,handleAddLabel:Z,clearaddVal:le,isEdit:e.isEdit,sourceType:e.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2))])],512),[[g,!d(H)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{$ as default};
@@ -0,0 +1 @@
1
+ import e from"./SelectLabel.vue2.js";import l from"../../../_virtual/plugin-vue_export-helper.js";var r=l(e,[["__file","SelectLabel.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,watch as a,openBlock as s,createElementBlock as t,createCommentVNode as i,unref as d,Fragment as c,createElementVNode as n,renderList as o,createBlock as u,normalizeStyle as p,normalizeClass as f,withCtx as y,createVNode as m,toDisplayString as r,withDirectives as b,withModifiers as v,vShow as h,createTextVNode as k}from"vue";import{NTag as I,NTooltip as g,NIcon as C,NButton as L,NInput as _}from"naive-ui";import{Close as A,Add as B}from"@vicons/ionicons5";import F from"../../../../_virtual/plugin-vue_export-helper.js";const P={class:"edit-content"},w={key:0,class:"label-disable-wrap"},N=[n("p",{class:"label-disable-title"},"无可选标签",-1),n("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],T={class:"label-content"};var V=F(e({__name:"label-classify",props:{classifyItem:{default:()=>({})},handleLabelChange:{type:Function,default:()=>{}},handleLabelColor:{type:Function,default:()=>{}},handleDelLabel:{type:Function,default:()=>{}},handleAddLabel:{type:Function,default:()=>{}},hanldeBlur:{type:Function,default:()=>{}},clearaddVal:{type:Function,default:()=>{}},isEdit:{type:Boolean,default:!1},sourceType:null},setup(e){var F;const V=e;let x=l((null==(F=V.classifyItem)?void 0:F.itemList)||[]);return a((()=>V.classifyItem),(e=>{x.value=(null==e?void 0:e.itemList)||[]}),{immediate:!0,deep:!0}),(l,a)=>(s(),t("div",P,[i(" disable "),d(x)?(s(),t(c,{key:1},[i(" "),n("div",T,[(s(!0),t(c,null,o(d(x),(l=>(s(),u(d(I),{checkable:"",checked:l.isSelect,"onUpdate:checked":a=>((e,l,a)=>{l.isSelect=e,V.handleLabelChange(e,l,a)})(a,l,e.classifyItem),key:l.labelId,style:p(e.handleLabelColor(l)),class:f({"sys-label-tag":l.isPublic&&1==l.isPublic})},{default:y((()=>[m(d(g),{placement:"top-start"},{trigger:y((()=>[n("span",null,r(l.labelName),1)])),default:y((()=>[n("span",null,r(l.labelName),1)])),_:2},1024),"guage"!=e.sourceType?b((s(),u(d(C),{key:0,class:"label-close",component:d(A),onClick:v((a=>e.handleDelLabel(l,e.classifyItem)),["stop"])},null,8,["component","onClick"])),[[h,!(l.isPublic&&1==l.isPublic)]]):i("v-if",!0)])),_:2},1032,["checked","onUpdate:checked","style","class"])))),128)),1==e.classifyItem.allowCreateByPersonal?(s(),t(c,{key:0},[e.isEdit&&!e.classifyItem.isNoAdd&&"guage"!=e.sourceType?b((s(),u(d(L),{key:0,dashed:"",class:"label-add",onClick:a[0]||(a[0]=l=>e.handleAddLabel(l,e.classifyItem))},{default:y((()=>[m(d(C),{component:d(B)},null,8,["component"]),k(" 标签 ")])),_:1},512)),[[h,!e.classifyItem.showAdd]]):i("v-if",!0),i(" 是否允许新增个人标签 allowCreateByPersonal "),e.isEdit&&!e.classifyItem.isNoAdd&&"guage"!=e.sourceType?b((s(),u(d(_),{key:1,class:"label-add add-input",value:e.classifyItem.addVal,"onUpdate:value":a[2]||(a[2]=l=>e.classifyItem.addVal=l),valueModifiers:{trim:!0},onBlur:a[3]||(a[3]=l=>e.hanldeBlur(l,e.classifyItem))},{suffix:y((()=>[m(d(C),{component:d(A),onClick:a[1]||(a[1]=v((l=>e.clearaddVal(l,e.classifyItem)),["stop"]))},null,8,["component"])])),_:1},8,["value"])),[[h,e.classifyItem.showAdd]]):i("v-if",!0)],64)):i("v-if",!0)])],2112)):(s(),t("div",w,N))]))}}),[["__file","label-classify.vue"]]);export{V as default};
@@ -0,0 +1 @@
1
+ import e from"./SelectPerson.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var o=r(e,[["__file","SelectPerson.vue"]]);export{o as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as r,ref as t,provide as e,onBeforeUnmount as o,onMounted as s,openBlock as u,createElementBlock as i,createCommentVNode as p,renderSlot as a}from"vue";import{uuidGenerator as n}from"../../../shared/utils/index.js";import{InjectionShortcutManager as c}from"./constants/index.js";import"../index.js";import l from"../../../_virtual/plugin-vue_export-helper.js";import{ShortcutManager as d}from"./hooks/useShortcuts.js";var f=l(r({__name:"ShortcutProvider",props:{scope:{type:[String,Symbol]},autoFocus:{type:Boolean,default:!0}},setup(r){const l=r,f=t(),m=new d(f,l.scope||n()).start();return e(c,m),o((()=>{m.destroy()})),s((()=>{var r;return null==(r=f.value)?void 0:r.focus()})),(r,t)=>(u(),i("section",{ref_key:"shortcutWrapperRef",ref:f,"is-shortcut-capture":"",class:"shortcut-provider",tabindex:-9999},[p(" 需要绑定该作用域快捷键的内容 "),a(r.$slots,"default")],512))}}),[["__file","ShortcutProvider.vue"]]);export{f as default};