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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/es/components/base-search/src/index.vue.js +1 -1
  2. package/es/components/big-table/src/BigTable.vue.js +1 -1
  3. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  4. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  5. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  6. package/es/components/big-table/src/components/separate.vue.js +1 -1
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  8. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  9. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  10. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  11. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  12. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  13. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  14. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  15. package/es/components/classification/src/index.vue.js +1 -1
  16. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  17. package/es/components/fabric-chart/index.d.ts +5 -41
  18. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -41
  19. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  20. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/{useBirthProcess.d.ts → birthProcess/useBirthProcess.d.ts} +2 -2
  22. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -0
  23. package/es/components/fabric-chart/src/hooks/{useBirthProcessChart.d.ts → birthProcess/useBirthProcessChart.d.ts} +3 -3
  24. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -0
  25. package/es/components/fabric-chart/src/hooks/index.d.ts +5 -7
  26. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +6 -0
  28. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -0
  29. package/es/components/fabric-chart/src/hooks/temperature/index.d.ts +6 -0
  30. package/es/components/fabric-chart/src/hooks/temperature/index.js +1 -0
  31. package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +4 -0
  32. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
  33. package/es/components/fabric-chart/src/hooks/{useCenter.d.ts → temperature/useCenter.d.ts} +3 -3
  34. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -0
  35. package/es/components/fabric-chart/src/hooks/{useLeft.d.ts → temperature/useLeft.d.ts} +3 -3
  36. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -0
  37. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +4 -0
  38. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -0
  39. package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +4 -0
  40. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -0
  41. package/es/components/fabric-chart/src/hooks/{useShadow.d.ts → temperature/useShadow.d.ts} +1 -1
  42. package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +1 -0
  43. package/es/components/fabric-chart/src/hooks/{useTemperatureChart.d.ts → temperature/useTemperatureChart.d.ts} +3 -3
  44. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -0
  45. package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +4 -0
  46. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
  47. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  48. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  49. package/es/components/fabric-chart/src/interface.d.ts +1 -1
  50. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  51. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  52. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  53. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  54. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  55. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  56. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  57. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  58. package/es/components/form-render/src/FormRender.vue.js +1 -1
  59. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  60. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  61. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  62. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
  63. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  64. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  65. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  66. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  67. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  68. package/es/components/form-render/src/components/renderer/select.js +1 -1
  69. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  70. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  71. package/es/components/guide/src/renderer.js +1 -1
  72. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  73. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  74. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  75. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  76. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  77. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  78. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  79. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  80. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  87. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
  89. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  90. package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
  91. package/es/components/iho-table/src/utils/index.js +1 -1
  92. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  93. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  94. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  95. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  96. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  97. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  98. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  99. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  100. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  101. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  102. package/es/components/map/src/Map.vue.js +1 -1
  103. package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -1
  104. package/es/components/quick-search/src/index.vue.js +1 -1
  105. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  106. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  107. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  108. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  109. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  110. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  111. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  112. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  113. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  114. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  115. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  116. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  117. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  118. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  119. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  120. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  121. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  122. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  123. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  124. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  125. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  126. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  127. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  128. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  129. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  130. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  131. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  132. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -1
  133. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -1
  134. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -1
  135. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -1
  136. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -1
  137. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -1
  138. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -1
  139. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -1
  140. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  141. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  142. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  143. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  144. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  145. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  146. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -1
  147. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -1
  148. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  149. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  150. package/es/components/table-filter/src/directive/resize.js +1 -1
  151. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  152. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  153. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  154. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  155. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  156. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  157. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  158. package/es/shared/components/no-data/NoData.vue.js +1 -1
  159. package/es/shared/package.json.js +1 -1
  160. package/package.json +2 -2
  161. package/es/components/base-search/src/index.vue2.js +0 -1
  162. package/es/components/big-table/src/components/NoData.vue2.js +0 -1
  163. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +0 -1
  164. package/es/components/big-table/src/components/input-button.vue2.js +0 -1
  165. package/es/components/big-table/src/components/separate.vue2.js +0 -1
  166. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +0 -1
  167. package/es/components/button-print/src/components/EditFormat.vue2.js +0 -1
  168. package/es/components/button-print/src/components/IdentityVerification.vue2.js +0 -1
  169. package/es/components/classification/src/components/search-filter/index.vue2.js +0 -1
  170. package/es/components/classification/src/components/set-classification/index.vue2.js +0 -1
  171. package/es/components/classification/src/components/table-modal/index.vue2.js +0 -1
  172. package/es/components/classification/src/index.vue2.js +0 -1
  173. package/es/components/date-picker/src/DatePicker.vue2.js +0 -1
  174. package/es/components/fabric-chart/src/FabricChart.vue2.js +0 -1
  175. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +0 -1
  176. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +0 -1
  177. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +0 -1
  178. package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
  179. package/es/components/fabric-chart/src/hooks/useBottom.js +0 -1
  180. package/es/components/fabric-chart/src/hooks/useCenter.js +0 -1
  181. package/es/components/fabric-chart/src/hooks/useLeft.js +0 -1
  182. package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
  183. package/es/components/fabric-chart/src/hooks/useOther.js +0 -1
  184. package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
  185. package/es/components/fabric-chart/src/hooks/useRight.js +0 -1
  186. package/es/components/fabric-chart/src/hooks/useShadow.js +0 -1
  187. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +0 -1
  188. package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
  189. package/es/components/fabric-chart/src/hooks/useTop.js +0 -1
  190. package/es/components/field-set/src/FieldSet.vue2.js +0 -1
  191. package/es/components/form-config/src/FormConfig.vue2.js +0 -1
  192. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +0 -1
  193. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +0 -1
  194. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +0 -1
  195. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +0 -1
  196. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +0 -1
  197. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +0 -1
  198. package/es/components/form-render/src/FormRender.vue2.js +0 -1
  199. package/es/components/form-render/src/FormRenderWrapper.vue2.js +0 -1
  200. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +0 -1
  201. package/es/components/form-render/src/components/tooltipMessage.vue2.js +0 -1
  202. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
  203. package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
  204. package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
  205. package/es/components/iho-table/src/IhoTable.vue2.js +0 -1
  206. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +0 -1
  207. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +0 -1
  208. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +0 -1
  209. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +0 -1
  210. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +0 -1
  211. package/es/components/info-header/src/InfoHeader.vue2.js +0 -1
  212. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +0 -1
  213. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +0 -1
  214. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +0 -1
  215. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +0 -1
  216. package/es/components/info-header/src/components/infoDescription/index.vue2.js +0 -1
  217. package/es/components/info-header/src/components/patientInfo/index.vue2.js +0 -1
  218. package/es/components/keyboard/src/Keyboard.vue2.js +0 -1
  219. package/es/components/keyboard/src/components/InputNumber.vue2.js +0 -1
  220. package/es/components/keyboard/src/components/NumberPanel.vue2.js +0 -1
  221. package/es/components/map/src/Map.vue2.js +0 -1
  222. package/es/components/picture-clipper/src/PictureClipper.vue2.js +0 -1
  223. package/es/components/quick-search/src/index.vue2.js +0 -1
  224. package/es/components/recommend-search/src/RecommendSearch.vue2.js +0 -1
  225. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +0 -1
  226. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +0 -1
  227. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +0 -1
  228. package/es/components/scale-view/src/ScaleView.vue2.js +0 -1
  229. package/es/components/scale-view/src/components/AnswerParse.vue2.js +0 -1
  230. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +0 -1
  231. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +0 -1
  232. package/es/components/scale-view/src/components/NoData.vue2.js +0 -1
  233. package/es/components/search-cascader/src/SearchCascader.vue2.js +0 -1
  234. package/es/components/select-label/src/LabelFormContent.vue2.js +0 -1
  235. package/es/components/select-label/src/components/label-classify.vue2.js +0 -1
  236. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +0 -1
  237. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +0 -1
  238. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +0 -1
  239. package/es/components/steps-wheel/src/StepsWheel.vue2.js +0 -1
  240. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +0 -1
  241. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +0 -1
  242. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +0 -1
  243. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +0 -1
  244. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +0 -1
  245. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +0 -1
  246. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +0 -1
  247. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +0 -1
  248. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +0 -1
  249. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +0 -1
  250. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +0 -1
  251. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
  252. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +0 -1
  253. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +0 -1
  254. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +0 -1
  255. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +0 -1
  256. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +0 -1
  257. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +0 -1
  258. package/es/components/time-line/src/TimeLine.vue2.js +0 -1
  259. package/es/components/time-picker/src/TimePicker.vue2.js +0 -1
  260. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +0 -1
  261. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +0 -1
  262. package/es/shared/components/SelectPage/SelectPage.vue2.js +0 -1
  263. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +0 -1
  264. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +0 -1
  265. package/es/shared/components/no-data/NoData.vue2.js +0 -1
  266. /package/es/_virtual/{_plugin-vue_export-helper.js → plugin-vue_export-helper.js} +0 -0
  267. /package/es/components/fabric-chart/src/{hooks/constant.d.ts → constants/index.d.ts} +0 -0
  268. /package/es/components/fabric-chart/src/{hooks/constant.js → constants/index.js} +0 -0
@@ -0,0 +1,36 @@
1
+ export const __esModule: true;
2
+ declare const _default: vue_1.DefineComponent<{
3
+ form: {
4
+ type: ObjectConstructor;
5
+ default: () => void;
6
+ };
7
+ item: {
8
+ type: ObjectConstructor;
9
+ default: () => void;
10
+ };
11
+ isLock: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
16
+ form: {
17
+ type: ObjectConstructor;
18
+ default: () => void;
19
+ };
20
+ item: {
21
+ type: ObjectConstructor;
22
+ default: () => void;
23
+ };
24
+ isLock: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ }>> & {
29
+ onScaleChange?: ((...args: any[]) => any) | undefined;
30
+ }, {
31
+ item: Record<string, any>;
32
+ isLock: boolean;
33
+ form: Record<string, any>;
34
+ }>;
35
+ export default _default;
36
+ import vue_1 = require("vue");
@@ -0,0 +1,36 @@
1
+ export const __esModule: true;
2
+ declare const _default: vue_1.DefineComponent<{
3
+ form: {
4
+ type: ObjectConstructor;
5
+ default: () => {};
6
+ };
7
+ item: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
11
+ isLock: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
16
+ form: {
17
+ type: ObjectConstructor;
18
+ default: () => {};
19
+ };
20
+ item: {
21
+ type: ObjectConstructor;
22
+ default: () => {};
23
+ };
24
+ isLock: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ }>> & {
29
+ onScaleChange?: ((...args: any[]) => any) | undefined;
30
+ }, {
31
+ item: Record<string, any>;
32
+ isLock: boolean;
33
+ form: Record<string, any>;
34
+ }>;
35
+ export default _default;
36
+ import vue_1 = require("vue");
@@ -0,0 +1,82 @@
1
+ export const __esModule: true;
2
+ declare const _default: vue_1.DefineComponent<{
3
+ title: {
4
+ type: (StringConstructor | FunctionConstructor)[];
5
+ default: string;
6
+ };
7
+ changeSize: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ closable: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ modalWidth: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ modalHeight: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ handleOk: {
24
+ type: FunctionConstructor;
25
+ default: () => {};
26
+ };
27
+ cancel: {
28
+ type: FunctionConstructor;
29
+ default: () => {};
30
+ };
31
+ visible: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("update:visible" | "onClose")[], "onClose" | "update:visible", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
36
+ title: {
37
+ type: (StringConstructor | FunctionConstructor)[];
38
+ default: string;
39
+ };
40
+ changeSize: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ closable: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ modalWidth: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ modalHeight: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ handleOk: {
57
+ type: FunctionConstructor;
58
+ default: () => {};
59
+ };
60
+ cancel: {
61
+ type: FunctionConstructor;
62
+ default: () => {};
63
+ };
64
+ visible: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ }>> & {
69
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
70
+ onOnClose?: ((...args: any[]) => any) | undefined;
71
+ }, {
72
+ closable: boolean;
73
+ title: string | Function;
74
+ visible: boolean;
75
+ modalWidth: string;
76
+ modalHeight: string;
77
+ handleOk: Function;
78
+ cancel: Function;
79
+ changeSize: boolean;
80
+ }>;
81
+ export default _default;
82
+ import vue_1 = require("vue");
@@ -1 +1 @@
1
- import e from"./SearchCascader.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","SearchCascader.vue"]]);export{a as default};
1
+ import{defineComponent as e,provide as a,computed as l,ref as t,nextTick as r,watch as o,openBlock as u,createBlock as n,unref as s,isRef as i,normalizeStyle as c,withCtx as v,createVNode as d,createElementVNode as p,renderSlot as f}from"vue";import{uuidGenerator as y}from"../../../shared/utils/index.js";import{NOOP as h}from"@vue/shared";import{useDebounceFn as m,useEventBus as g,useVModel as b,onClickOutside as w}from"@vueuse/core";import{isString as k,isArray as S,isFunction as _,isObject as K}from"lodash-es";import{NPopover as C,NInput as N}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as P,InjectionKeyboardEventBus as j,InjectionSearchCascaderLoadingNode as x,InjectionSearchCascaderValue as A}from"./constants/index.js";import{useCssVariable as U}from"./hooks/useCssVariable.js";import{SearchMenu as V}from"./components/SearchMenu.js";import F from"../../../_virtual/plugin-vue_export-helper.js";const L=["id"];var B=F(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:F}){const B=e;function E(){var e;e=[],Promise.resolve(_(B.beforeSetValue)?B.beforeSetValue(e):e).then((e=>F("update:value",e)),h)}function I(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&H()}const R=m((e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||q.value?M.emit(e.key):H()}),50),T=U(),M=g("cascaderKeydown"),$=y(),q=b(B,"show",F);a(P,l((()=>B.checkAbleLevel))),a(j,M);const z=t(""),D=l({get:()=>q.value?z.value:k(B.value)?B.value:S(B.value)?B.value.reduce(((e,a,l)=>0===l?a[B.labelKey]:e+" / "+a[B.labelKey]),""):"",set(e){z.value=e,Z(void 0,e)}});function G(e){F("focus",e)}function H(){q.value||(q.value=!0,z.value="",Z())}async function J(){var e;q.value=!1,null==(e=O.value)||e.blur()}const O=t();w(O,(e=>{var a;if(!q.value)return;const l=e;if(!l.target)return J();!function(e){let a=!1,l=e;for(;l;){if(l.id===$){a=!0;break}l=l.parentElement}return a}(l.target)?J():null==(a=O.value)||a.focus()}));const Q=t(),W=t(),X=t(),Y=t(null);a(x,Y),a(A,l((()=>B.value)));const Z=m((async(e,a)=>{var l;const{type:t,node:o}=e||{};try{if("update"===t)return void(_(B.search)&&B.search({...o,isLeaf:!0}));Y.value=o;const e=await(_(B.search)&&B.search(o,a));W.value=K(e)?e:o}finally{Y.value=null,await r(),null==(l=Q.value)||l.syncPosition()}}),400),ee=e=>{X.value=e};return o((()=>B.show),(e=>{e&&(X.value={})})),(a,l)=>(u(),n(s(C),{class:"search-cascader",trigger:"manual",show:s(q),"onUpdate:show":l[1]||(l[1]=e=>i(q)?q.value=e:null),"show-arrow":!1,placement:"bottom-start",style:c(s(T)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Q},{trigger:v((()=>[d(s(N),{class:"search-cascader__input",placeholder:s(q)?e.editPlaceholder:e.placeholder,clearable:e.clearable,onClear:E,value:s(D),"onUpdate:value":l[0]||(l[0]=e=>i(D)?D.value=e:null),ref_key:"inputRef",ref:O,onFocus:G,onClick:I,onKeydown:s(R)},null,8,["placeholder","clearable","value","onKeydown"])])),default:v((()=>[p("section",{id:s($)},[d(s(V),{"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(Z),onChangeCursor:ee,"current-node":W.value,"cursor-node":X.value},{empty:v((()=>[f(a.$slots,"empty")])),_:3},8,["label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,L)])),_:3},8,["show","style","width"]))}}),[["__file","SearchCascader.vue"]]);export{B as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,withModifiers as l}from"vue";import{traverse as c}from"../../../../shared/utils/index.js";import{Reload as s,ChevronForward as u}from"@vicons/ionicons5";import{NOOP as i}from"@vue/shared";import{useVirtualList as d}from"@vueuse/core";import{isArray as p,isFunction as f,isNumber as v,isEqual as y,isString as h}from"lodash-es";import{NCheckbox as m}from"naive-ui";import{InjectionSearchCascaderLoadingNode as g,InjectionSearchCascaderValue as N,InjectionSearchCascaderCheckAbleLevel as C,InjectionKeyboardEventBus as b}from"../constants/index.js";const k=e({props:{options:{type:Array,default:()=>[]},activeNodes:{type:Array,default:()=>[]},level:{type:Number,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},cursorNode:{type:Object,default:()=>({})}},emits:["nodeClick","changeCursor"],setup(e,{emit:r}){const o=n((()=>e.options)),{list:c,containerProps:f,wrapperProps:k}=d(o,{itemHeight:32,overscan:5}),K=a(g),_=a(N),x=a(C),A=a(b),S=n((()=>v(x.value)&&x.value<=e.level));function j(e){return Object.keys(e).length<=0}function w(r){return e.cursorNode==r}function I(r){const t=function(e){const r=[e];let t=e;for(;t.parent;)t=t.parent,r.unshift(t);return r}(r);if(p(_.value))return y(o(t,e.valueKey),o(_.value,e.valueKey));if(h(_.value)){const r=_.value.split("/").map((e=>e.trim()));return y(r,o(t,e.labelKey))}return!1;function o(e,r){return e.map((e=>e[r]))}}function O(e){const r=f.ref.value;if(r){const t=32*e-(null==r?void 0:r.clientHeight);r.scrollTo(0,t>0?t:0)}}return A.on((function(t){if("ArrowUp"===t){if(j(e.cursorNode))return;const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=0===t?o.value.length-1:t-1,n=o.value[e];r("changeCursor",n),O(e+3)}}if("ArrowRight"===t){if(j(e.cursorNode))return;r("nodeClick",{type:"search",node:e.cursorNode}),r("changeCursor",{})}if("ArrowDown"===t){if(j(e.cursorNode))return r("changeCursor",o.value[0]);const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=t>=o.value.length-1?0:t+1,n=o.value[e];r("changeCursor",n),O(e+1)}}if("ArrowLeft"===t&&e.activeNodes.length){const t=e.activeNodes.slice(-1);r("changeCursor",t[0])}"Enter"===t&&(S.value?r("nodeClick",{type:"update",node:e.cursorNode}):r("nodeClick",{type:"search",node:e.cursorNode}))})),()=>t("div",{class:"search-cascader__optionWrapper",ref:f.ref,style:f.style,onScroll:f.onScroll},[t("div",{style:k.value.style},[c.value.map((o=>{return t("div",{class:["search-cascader__option",{"search-cascader__option--active":(n=o.data,(null==(a=e.activeNodes)?void 0:a.includes(n))||w(o.data))}],onClick:()=>r("nodeClick",{type:"search",node:o.data}),title:o.data[e.labelKey]},[t("div",{class:"search-cascader__optionText"},[S.value?t(m,{style:{marginRight:"8px"},checked:I(o.data),onClick:l(i,["stop"]),onUpdateChecked:e=>e&&function(e){r("nodeClick",{type:"update",node:e})}(o.data)},null):null,o.data[e.labelKey]]),K.value===o.data?t(s,{class:"rotate"},null):o.data.isLeaf?null:t(u,null,null)]);var n,a}))])])}}),K=e({props:{childKey:{type:String,default:"children"},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},currentNode:{type:Object},cursorNode:{type:Object}},emits:["nodeClick","changeCursor"],setup(e,{slots:n,emit:a}){const l=r([]);function s(r,o){return t(k,{level:o+1,labelKey:e.labelKey,valueKey:e.valueKey,activeNodes:l.value,onNodeClick:e=>a("nodeClick",e),onChangeCursor:e=>a("changeCursor",e),options:r,cursorNode:e.cursorNode},null)}function u(r){let t=!1;return c(r,((r,o)=>{r===e.currentNode&&(t=!0,o())}),["children"]),t}function i(){if(!p(e.options)||!e.currentNode)return[];const r=[e.options];let t=e.options;for(l.value.length=0;p(t);){const o=t.find(u);if(!o)break;l.value.push(o),t=o[e.childKey],r.push(t)}if(e.cursorNode){const t=r.findIndex((r=>(r&&r.findIndex((r=>r===e.cursorNode)))>=0));if(t>=0){const e=r.slice(0,t+1);return l.value.splice(t,r.length),e}}return r}return()=>t("section",{class:"search-cascader__menuWrapper"},[p(e.options)&&e.options.length?e.currentNode?i().map(s):s(e.options,0):t("section",{class:"search-cascader__emptyWrapper"},[f(n.empty)?n.empty():t("section",null,[o("empty")])])])}});export{K as SearchMenu};
1
+ import{defineComponent as e,computed as r,inject as t,createVNode as o,withModifiers as n,ref as a,createTextVNode as l}from"vue";import{traverse as c}from"../../../../shared/utils/index.js";import{Reload as s,ChevronForward as u}from"@vicons/ionicons5";import{NOOP as i}from"@vue/shared";import{useVirtualList as d}from"@vueuse/core";import{isNumber as p,isArray as f,isEqual as v,isString as y,isFunction as h}from"lodash-es";import{NCheckbox as m}from"naive-ui";import{InjectionSearchCascaderLoadingNode as g,InjectionSearchCascaderValue as N,InjectionSearchCascaderCheckAbleLevel as C,InjectionKeyboardEventBus as b}from"../constants/index.js";const k=e({props:{options:{type:Array,default:()=>[]},activeNodes:{type:Array,default:()=>[]},level:{type:Number,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},cursorNode:{type:Object,default:()=>({})}},emits:["nodeClick","changeCursor"],setup(e,{emit:a}){const l=r((()=>e.options)),{list:c,containerProps:h,wrapperProps:k}=d(l,{itemHeight:32,overscan:5}),K=t(g),_=t(N),x=t(C),A=t(b),S=r((()=>p(x.value)&&x.value<=e.level));function j(e){return Object.keys(e).length<=0}function w(r){return e.cursorNode==r}function I(r){const t=function(e){const r=[e];let t=e;for(;t.parent;)t=t.parent,r.unshift(t);return r}(r);if(f(_.value))return v(o(t,e.valueKey),o(_.value,e.valueKey));if(y(_.value)){const r=_.value.split("/").map((e=>e.trim()));return v(r,o(t,e.labelKey))}return!1;function o(e,r){return e.map((e=>e[r]))}}function O(e){const r=h.ref.value;if(r){const t=32*e-(null==r?void 0:r.clientHeight);r.scrollTo(0,t>0?t:0)}}return A.on((function(r){if("ArrowUp"===r){if(j(e.cursorNode))return;const r=l.value.findIndex((r=>r===e.cursorNode));if(r>=0){const e=0===r?l.value.length-1:r-1,t=l.value[e];a("changeCursor",t),O(e+3)}}if("ArrowRight"===r){if(j(e.cursorNode))return;a("nodeClick",{type:"search",node:e.cursorNode}),a("changeCursor",{})}if("ArrowDown"===r){if(j(e.cursorNode))return a("changeCursor",l.value[0]);const r=l.value.findIndex((r=>r===e.cursorNode));if(r>=0){const e=r>=l.value.length-1?0:r+1,t=l.value[e];a("changeCursor",t),O(e+1)}}if("ArrowLeft"===r&&e.activeNodes.length){const r=e.activeNodes.slice(-1);a("changeCursor",r[0])}"Enter"===r&&(S.value?a("nodeClick",{type:"update",node:e.cursorNode}):a("nodeClick",{type:"search",node:e.cursorNode}))})),()=>o("div",{class:"search-cascader__optionWrapper",ref:h.ref,style:h.style,onScroll:h.onScroll},[o("div",{style:k.value.style},[c.value.map((r=>{return o("div",{class:["search-cascader__option",{"search-cascader__option--active":(t=r.data,(null==(l=e.activeNodes)?void 0:l.includes(t))||w(r.data))}],onClick:()=>a("nodeClick",{type:"search",node:r.data}),title:r.data[e.labelKey]},[o("div",{class:"search-cascader__optionText"},[S.value?o(m,{style:{marginRight:"8px"},checked:I(r.data),onClick:n(i,["stop"]),onUpdateChecked:e=>e&&function(e){a("nodeClick",{type:"update",node:e})}(r.data)},null):null,r.data[e.labelKey]]),K.value===r.data?o(s,{class:"rotate"},null):r.data.isLeaf?null:o(u,null,null)]);var t,l}))])])}}),K=e({props:{childKey:{type:String,default:"children"},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},currentNode:{type:Object},cursorNode:{type:Object}},emits:["nodeClick","changeCursor"],setup(e,{slots:r,emit:t}){const n=a([]);function s(r,a){return o(k,{level:a+1,labelKey:e.labelKey,valueKey:e.valueKey,activeNodes:n.value,onNodeClick:e=>t("nodeClick",e),onChangeCursor:e=>t("changeCursor",e),options:r,cursorNode:e.cursorNode},null)}function u(r){let t=!1;return c(r,((r,o)=>{r===e.currentNode&&(t=!0,o())}),["children"]),t}function i(){if(!f(e.options)||!e.currentNode)return[];const r=[e.options];let t=e.options;for(n.value.length=0;f(t);){const o=t.find(u);if(!o)break;n.value.push(o),t=o[e.childKey],r.push(t)}if(e.cursorNode){const t=r.findIndex((r=>(r&&r.findIndex((r=>r===e.cursorNode)))>=0));if(t>=0){const e=r.slice(0,t+1);return n.value.splice(t,r.length),e}}return r}return()=>o("section",{class:"search-cascader__menuWrapper"},[f(e.options)&&e.options.length?e.currentNode?i().map(s):s(e.options,0):o("section",{class:"search-cascader__emptyWrapper"},[h(r.empty)?r.empty():o("section",null,[l("empty")])])])}});export{K as SearchMenu};
@@ -0,0 +1,57 @@
1
+ export const __esModule: true;
2
+ export const SearchMenu: vue_1.DefineComponent<{
3
+ childKey: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ options: {
8
+ type: ArrayConstructor;
9
+ default: () => never[];
10
+ };
11
+ labelKey: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ valueKey: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ currentNode: {
20
+ type: ObjectConstructor;
21
+ };
22
+ cursorNode: {
23
+ type: ObjectConstructor;
24
+ };
25
+ }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
26
+ childKey: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ options: {
31
+ type: ArrayConstructor;
32
+ default: () => never[];
33
+ };
34
+ labelKey: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ valueKey: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ currentNode: {
43
+ type: ObjectConstructor;
44
+ };
45
+ cursorNode: {
46
+ type: ObjectConstructor;
47
+ };
48
+ }>> & {
49
+ onNodeClick?: ((...args: any[]) => any) | undefined;
50
+ onChangeCursor?: ((...args: any[]) => any) | undefined;
51
+ }, {
52
+ options: unknown[];
53
+ valueKey: string;
54
+ childKey: string;
55
+ labelKey: string;
56
+ }>;
57
+ import vue_1 = require("vue");
@@ -0,0 +1,57 @@
1
+ export const __esModule: true;
2
+ export const SearchMenu: vue_1.DefineComponent<{
3
+ childKey: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ options: {
8
+ type: ArrayConstructor;
9
+ default: () => never[];
10
+ };
11
+ labelKey: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ valueKey: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ currentNode: {
20
+ type: ObjectConstructor;
21
+ };
22
+ cursorNode: {
23
+ type: ObjectConstructor;
24
+ };
25
+ }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
26
+ childKey: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ options: {
31
+ type: ArrayConstructor;
32
+ default: () => never[];
33
+ };
34
+ labelKey: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ valueKey: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ currentNode: {
43
+ type: ObjectConstructor;
44
+ };
45
+ cursorNode: {
46
+ type: ObjectConstructor;
47
+ };
48
+ }>> & {
49
+ onNodeClick?: ((...args: any[]) => any) | undefined;
50
+ onChangeCursor?: ((...args: any[]) => any) | undefined;
51
+ }, {
52
+ options: unknown[];
53
+ valueKey: string;
54
+ childKey: string;
55
+ labelKey: string;
56
+ }>;
57
+ import vue_1 = require("vue");
@@ -1 +1 @@
1
- import e from"./LabelFormContent.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","LabelFormContent.vue"]]);export{o as default};
1
+ import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../_virtual/plugin-vue_export-helper.js";import A from"../../../shared/utils/vexutilsExpand.js";const O={key:0,class:"label-disable-wrap"},j=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},k={class:"label-wrap"},T=["id"],_={class:"edit-label-type"};var B=x(t({__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(t,{expose:x,emit:B}){const D=t,F=L(),V=e(null),P=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!P.inited)return!1;let t=P.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(...P.labelSelectedEdit,...D.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(P.labelSelectedEdit=$.value,"object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=P.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await D.saveLabelItem(a,t);i&&(F.success("添加成功!"),B("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}P.labelSelectedEdit=[...d],N.value++,D.explicit&&B("explicitOnChange",[...P.labelSelectedEdit])},X=async t=>{const{status:e}=await D.deleteLabel(t,D.item);if(e){F.success("删除成功!");for(const e in P.labelConfig){const l=P.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&P.labelConfig[e].itemList.splice(l,1)}const e=P.labelSelectedEdit||[],l=D.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),B("change",[...l],D.item)}B("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=V.value.querySelector("a[href='"+l+"']"),e&&e.click(),P.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);P.cacheAnchorKey=e},et=()=>{var t;return null==(t=V.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>D.labelOptions),(t=>{t&&(()=>{var t;if(D.isLock)return;const e=JSON.parse(JSON.stringify(D.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}P.labelConfig=e,C((()=>{let t;R(),D.explicit&&P.inited&&(t=P.labelAnchorKey),z(P.labelConfig,t),P.inited=!0}))})()}),{immediate:!0,deep:!0}),x({resetShowAdd:()=>{let{labelObj:t}=P.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([...P.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=P.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(P.labelSelectedEdit)){const e=P.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&P.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[d(W)?(n(),s("div",O,j)):o("v-if",!0),r(c("div",K,[c("div",k,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(P.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(P.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
@@ -1 +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};
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};
@@ -1 +1 @@
1
- import e from"./label-classify.vue2.js";import l from"../../../../_virtual/_plugin-vue_export-helper.js";var r=l(e,[["__file","label-classify.vue"]]);export{r as default};
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 f,normalizeClass as p,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"},V={key:0,class:"label-disable-wrap"},w=[n("p",{class:"label-disable-title"},"无可选标签",-1),n("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],N={class:"label-content"},T={key:0,class:"selfval"},x={key:1,class:"selfval"};var E=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 E=e;let U=l((null==(F=E.classifyItem)?void 0:F.itemList)||[]);return a((()=>E.classifyItem),(e=>{U.value=(null==e?void 0:e.itemList)||[]}),{immediate:!0,deep:!0}),(l,a)=>(s(),t("div",P,[i(" disable "),d(U)?(s(),t(c,{key:1},[i(" "),n("div",N,[(s(!0),t(c,null,o(d(U),(l=>(s(),u(d(I),{checkable:"",checked:l.isSelect,"onUpdate:checked":a=>((e,l,a)=>{l.isSelect=e,E.handleLabelChange(e,l,a)})(a,l,e.classifyItem),key:l.labelId,style:f(e.handleLabelColor(l)),class:p({"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((()=>[e.classifyItem.addVal?(s(),t("span",T,r(e.classifyItem.addVal),1)):(s(),t("span",x,[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",V,w))]))}}),[["__file","label-classify.vue"]]);export{E as default};
@@ -1 +1 @@
1
- import e from"./SearchMultiple.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var l=r(e,[["__file","SearchMultiple.vue"]]);export{l as default};
1
+ import e from"./SearchMultiple.vue2.js";import r from"../../../_virtual/plugin-vue_export-helper.js";var l=r(e,[["__file","SearchMultiple.vue"]]);export{l as default};
@@ -1 +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};
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};
@@ -1 +1 @@
1
- import r from"./ShortcutProvider.vue2.js";import e from"../../../_virtual/_plugin-vue_export-helper.js";var o=e(r,[["__file","ShortcutProvider.vue"]]);export{o as default};
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};
@@ -1 +1 @@
1
- import t from"./ShortcutSetter.vue2.js";import e from"../../../_virtual/_plugin-vue_export-helper.js";var r=e(t,[["__file","ShortcutSetter.vue"]]);export{r as default};
1
+ import{defineComponent as e,ref as t,computed as r,watch as o,openBlock as l,createBlock as i,unref as u}from"vue";import{isEqual as s,cloneDeep as a}from"lodash-es";import"../../shortcut-provider/index.js";import{normalizeSignatureInfo as p,isInvalidSignature as n,getDisplaySignature as c}from"../../shortcut-provider/src/utils/index.js";import m from"./ShortcutSetterItem.vue.js";import d from"../../form-render/index.js";import h from"../../../_virtual/plugin-vue_export-helper.js";import{GlobalShortcutProvider as v,useShortcuts as f}from"../../shortcut-provider/src/hooks/useShortcuts.js";var S=h(e({__name:"ShortcutSetter",props:{glob:{type:Boolean,default:!1},scope:{type:[String,Symbol]}},emits:["error","update"],setup(e,{expose:h,emit:S}){const g=e,y={SHORTCUT:m},j=t(0),_=r((()=>g.glob?v:g.scope)),k=f(_),b=t([]);let x={};function O(){x={},b.value=k.traverse().map((e=>(x[e.key]=p(e.shortcutSignature),{val_key:e.key,alias:e.label,html_type:"SHORTCUT",componentProps:{scope:_.value,onShortcutChange:T,shortcutKey:e.key,shortcutSignature:e.shortcutSignature,editPlaceholder:e.editPlaceholder,placeholder:e.placeholder,operation:e.operation},elem_width:6}))),j.value++}function T({key:e,info:t,resolve:r,reject:o}){const l=p(t);return n(l)?(S("error",`非法的快捷键组合=> ${c(l)}`),o()):Object.values(x).some((e=>s(e,l)))?(S("error",`重复的快捷键=> ${c(l)}`),o()):(S("update",{key:e,info:l}),x[e]=l,void r())}return o([_,()=>k.traverse()],O,{immediate:!0,deep:!0}),h({loadSignature(){O()},getSignature:()=>a(x),setSignature(){Object.entries(x).forEach((([e,t])=>{k.update(e,t)}))}}),(e,t)=>(l(),i(u(d),{column:12,key:j.value,"label-placement":"left","field-list":b.value,components:y},null,8,["field-list"]))}}),[["__file","ShortcutSetter.vue"]]);export{S as default};
@@ -1 +1 @@
1
- import t from"./ShortcutSetterItem.vue2.js";import e from"../../../_virtual/_plugin-vue_export-helper.js";var r=e(t,[["__file","ShortcutSetterItem.vue"]]);export{r as default};
1
+ import{defineComponent as e,ref as t,computed as u,openBlock as r,createElementBlock as l,createVNode as o,unref as n,withModifiers as a}from"vue";import{NInput as s}from"naive-ui";import{getDisplaySignature as c}from"../../shortcut-provider/src/utils/index.js";import i from"../../../_virtual/plugin-vue_export-helper.js";const p={class:"shortcut-setter-item__wrapper"};var v=i(e({__name:"ShortcutSetterItem",props:{shortcutKey:null,shortcutSignature:null,value:null,onChange:null,onFocus:null,placeholder:{default:"点击设置快捷键"},editPlaceholder:{default:"键盘按下要设置的快捷键组合"}},emits:["shortcutChange"],setup(e,{emit:i}){const v=e,h=t(c(v.shortcutSignature)),f=t(0),m=u((()=>0===f.value)),d=t(""),y=u((()=>m.value?h.value:d.value)),_=u((()=>m.value?v.placeholder:v.editPlaceholder));function g(){f.value=1}const K=t();function S(){var e;f.value=0,d.value="",null==(e=K.value)||e.blur()}const w=e=>{d.value=c(e)},j=async e=>{try{if(c(e)===h.value)return;await new Promise(((t,u)=>{i("shortcutChange",{key:v.shortcutKey,info:e,resolve:t,reject:u})})),h.value=c(e)}finally{S(),d.value=""}};return(e,t)=>(r(),l("section",p,[o(n(s),{ref_key:"inputRef",ref:K,"input-props":{class:"shortcut-setter-item"},value:n(y),placeholder:n(_),onFocus:g,onBlur:S,onKeydown:a(w,["prevent","stop"]),onKeyup:a(j,["prevent","stop"])},null,8,["value","placeholder","onKeydown","onKeyup"])]))}}),[["__file","ShortcutSetterItem.vue"]]);export{v as default};
@@ -1 +1 @@
1
- import e from"./StepsWheel.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var p=r(e,[["__file","StepsWheel.vue"]]);export{p as default};
1
+ import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as s,openBlock as o,createElementBlock as i,normalizeStyle as p,unref as r,normalizeClass as a,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as f,renderSlot as h,toDisplayString as v,vShow as g,createBlock as I,withCtx as x,createVNode as y,createTextVNode as B}from"vue";import{NTooltip as w,NEmpty as T}from"naive-ui";import{useTheme as S}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import{defaultCssVars as _}from"./constants/index.js";import k from"../../../_virtual/plugin-vue_export-helper.js";const b={class:"stepBox"},C=["title"],$=d("ul",{class:"nodeTipContent"},[d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(1)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是测试案例,请使用插槽:#nodeTipBox 自定义")]),d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(2)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是个测试案例,请使用插槽:#nodeTipBox 自定义")])],-1),L=["title"],R=["title"],j=["title"],M={key:0,style:{height:"48px"}},N={key:1},D={key:1};var W=k(e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const B=e,k=S(_,"StepsWheel"),W=t((()=>Math.ceil(P.value.length/B.stepInfo.cols))),A=t((()=>B.lastNodeRender)),{noDataMsg:E}=l(B),O=n(null),F=t((()=>{var e;let t=72;if(null==(e=null==O?void 0:O.value)?void 0:e.length){let e=O.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+B.stepInfo.cols*t}px`})),P=n([]),q=n([]),z=e=>{if(q.value.length){if(e.rowIndex===q.value.length)return!0;if(e.rowIndex<q.value.length)return q.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},G=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},H=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},J=(e,t)=>e.rowIndex%2==0?B.currentStep>=t+(B.stepInfo.cols-2*e.sort):B.currentStep>=t+2,K=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),s=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);s.push(n)}return s},Q=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},U=e=>{const{cols:t}=B.stepInfo;let l=K(P.value,t),n=l[l.length-1].filter((e=>e));return W.value%2==0?A.value&&e==n[0].nodeIndex-(t-2*n[0].sort):A.value&&e==n[n.length-1].nodeIndex-1},V=(e,t)=>{const{cols:l}=B.stepInfo;let n=K(P.value,l),s=n[n.length-1].filter((e=>e));return W.value%2==0?"circle"===t?A.value&&e==s[0].nodeIndex-(l-2*s[0].sort)-l:A.value&&e==s[0].nodeIndex-(l-2*s[0].sort):"circle"===t?A.value&&e==s[s.length-1].nodeIndex-1-l:A.value&&e==s[s.length-1].nodeIndex-2};return s((()=>B.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),s=!0,o=[];for(var i=0;i<n;i++)o[i]=new Array(t),o[i].fill(null);let p=0,r=0;for(let n=1;n<l;n++)o[p][r]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:p+1}),s?n%t!=0?r++:(s=!s,p++):n%t!=0?r--:(s=!s,p++);let a=[];o.map((e=>{e.map(((e,t)=>e&&(e.sort=t))),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),a=[...a,...e]})),P.value=a,q.value=o})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(o(),i("div",{class:"step-wheel-box",style:p({minWidth:r(F),...r(k)})},[P.value.length?(o(),i("div",{key:0,class:a(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",b,[(o(!0),i(u,null,c(P.value,((l,n)=>(o(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:O,key:(null==l?void 0:l.stepId)||n,class:a(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(o(),i(u,{key:0},[m(" 步骤头部信息 "),f(d("div",{class:a(["stepTopBox",{finished:U(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[h(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},v(l.title),9,C)]))],2),[[g,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(o(),I(r(w),{key:0,placement:"top","show-arrow":!0,trigger:"hover",style:p({opacity:"0.88"})},{trigger:x((()=>[d("div",{class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)])),default:x((()=>[h(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId},(()=>[$]))])),_:2},1032,["style"])):(o(),i("div",{key:1,class:a(["icon",{active:e.currentStep>=l.nodeIndex,finished:U(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?f((o(),i("div",{key:2,class:a(["line",{lineActive:J(l,n),finished:V(n)}])},null,2)),[[g,Q(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),G(l)||H(l)?(o(),i("div",{key:3,class:a({lineCircleActive:e.currentStep>l.nodeIndex,lineCircleFinished:V(n,"circle"),lineCircleRight:H(l),lineCircleLeft:G(l),lineCirclePlacementRight:H(l)&&"right"===e.placement,lineCirclePlacementLeft:G(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:a(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}])},[h(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),f(d("p",{class:a(["stepLabel",{labelFinsh:U(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},v(l.label),11,L),[[g,l.label]]),d("div",{class:a({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[h(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:a({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[f(d("p",{class:"stepExtra",title:l.person},v(l.person),9,R),[[g,l.person]]),m(" 步骤时间 "),f(d("p",{class:"statusTime",title:l.statusTime},v(l.statusTime),9,j),[[g,l.statusTime]])],2)]))],2)])),z(l)?(o(),i("div",M)):m("v-if",!0)],2)],64)):(o(),i("div",N,[m("null元素占位")]))],2)))),128))])],2)):(o(),i("div",D,[y(r(T),{description:r(E)},null,8,["description"])]))],4))}}),[["__file","StepsWheel.vue"]]);export{W as default};
@@ -1 +1 @@
1
- import e from"./ValueCfg.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","ValueCfg.vue"]]);export{u as default};
1
+ import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as r}from"vue";import{InputNumber as o,InputFilter as d,SelectFilter as n,Date as f,SelectDynamic as V,InputNumberGroup as g,DateRange as v,SelectLabel as s}from"./components/index.js";import{WidgetTypeEnums as C}from"../../types/enums.js";import i from"../../../../../_virtual/plugin-vue_export-helper.js";const E={class:"value-cfg_wrapper"};var y=i(e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:i}){const y=e,U=l({set(e){i("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){i("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,i)=>(a(),u("div",E,[p(" 数字框 "),m(T)===m(C).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":i[0]||(i[0]=e=>r(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(C).INPUT?(a(),t(m(d),{key:1,modelValue:m(U),"onUpdate:modelValue":i[1]||(i[1]=e=>r(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 下拉框 "),m(T)===m(C).SELECT?(a(),t(m(n),{key:2,paramCfg:e.paramCfg,widgetType:m(T),modelValue:m(U),"onUpdate:modelValue":i[2]||(i[2]=e=>r(U)?U.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),m(T)===m(C).DATE||m(T)===m(C).DATE_TIME?(a(),t(m(f),{key:3,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":i[3]||(i[3]=e=>r(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":i[4]||(i[4]=e=>r(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),m(T)===m(C).SELECTDYNAMIC?(a(),t(m(V),{key:4,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":i[5]||(i[5]=e=>r(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),m(T)===m(C).INPUTNUMBER_RANGE?(a(),t(m(g),{key:5,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":i[6]||(i[6]=e=>r(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),m(T)===m(C).DATE_RANGE_INNER||m(T)===m(C).DATETIME_RANGE_INNER?(a(),t(m(v),{key:6,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":i[7]||(i[7]=e=>r(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":i[8]||(i[8]=e=>r(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),m(T)===m(C).SELECTLABEL?(a(),t(m(s),{key:7,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":i[9]||(i[9]=e=>r(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}}),[["__file","ValueCfg.vue"]]);export{y as default};
@@ -1 +1 @@
1
- import e from"./Date.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Date.vue"]]);export{t as default};
1
+ import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,Fragment as r,createVNode as u,unref as o,isRef as p,createBlock as m,createCommentVNode as s}from"vue";import n from"../../../../../date-picker/index.js";import{NSelect as i}from"naive-ui";import{WidgetTypeEnums as d,WidgetValEnums as v}from"../../../types/enums.js";import{generateDefOptionsInApi as f}from"../../../tool/generateDefOptions.js";import y from"../../../../../../_virtual/plugin-vue_export-helper.js";var c=y(e({__name:"Date",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:y}){const c=e,g=t({set(e){y("update:modelValue",e)},get:()=>c.modelValue}),D=t({set(e){y("update:presetVal",e)},get:()=>c.presetVal}),T=t((()=>C.value.toLowerCase()||d.DATE.toLowerCase())),_=t((()=>{let e="";switch(C.value){case d.DATE:e="yyyy-MM-dd";break;case d.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),C=t((()=>c.paramCfg._rawData.type)),M=t((()=>{var e;return null==(e=c.paramCfg)?void 0:e.mappingConfig})),V=t((()=>{const e=f(C.value,M.value).slice(0);return C.value!==d.DATE&&C.value!==d.DATE_TIME||e.unshift({label:"自定义输入",value:v.CUSTOM}),e}));return(e,t)=>(a(),l(r,null,[u(o(i),{style:{width:"120px"},class:"form-item",to:"body",value:o(D),"onUpdate:value":t[0]||(t[0]=e=>p(D)?D.value=e:null),options:o(V)},null,8,["value","options"]),o(D)===o(v).CUSTOM?(a(),m(o(n),{key:0,class:"form-item",type:o(T),clearable:"",to:"body",valueFormat:o(_),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>p(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):s("v-if",!0)],64))}}),[["__file","Date.vue"]]);export{c as default};
@@ -1 +1 @@
1
- import e from"./DateRange.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","DateRange.vue"]]);export{a as default};
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as o,createVNode as s,unref as n,isRef as i,createCommentVNode as m}from"vue";import{NSelect as p}from"naive-ui";import v from"../../../../../date-picker/index.js";import d from"moment";import{cloneDeep as f,isString as c}from"lodash-es";import{WidgetTypeEnums as y,WidgetValEnums as b}from"../../../types/enums.js";import{widgetDateRangeOptions as D}from"../../../tool/baseOptions.js";import M from"../../../../../../_virtual/plugin-vue_export-helper.js";const h={key:0,style:{display:"flex"}};var T=M(e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:M}){const T=e,g=a(),E=a(),_=l((()=>{let e="";switch(V.value){case y.DATE:e="yyyy-MM-dd";break;case y.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),A=l((()=>{let e="";switch(V.value){case y.DATE:e="YYYY-MM-DD";break;case y.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),V=l((()=>T.paramCfg._rawData.type)),Y=l((()=>V.value===y.DATE?"初始日期":"初始时间")),w=l((()=>V.value===y.DATE?"截止日期":"截止时间")),x=l((()=>V.value.toLowerCase()||y.DATE.toLowerCase())),C=l((()=>{const e=f(D);return e.unshift({label:"自定义输入",value:b.CUSTOM}),e})),O=l({set(e){M("update:presetVal",e)},get:()=>T.presetVal});function j(e,a){switch(a){case"start":g.value=e;break;case"end":E.value=e}const l=g.value?d(g.value).format(A.value):null,t=E.value?d(E.value).format(A.value):null;M("update:modelValue",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function k(e){return!!E.value&&e>E.value}function U(e){return!!g.value&&e<g.value}return t((()=>T.modelValue),(e=>{if(e&&c(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(g.value=d(a.trim()).valueOf()),void(l.trim()&&(E.value=d(l.trim()).valueOf()))}g.value=E.value=null}),{immediate:!0}),(e,a)=>(u(),r(o,null,[s(n(p),{style:{width:"120px"},class:"form-item",to:"body",value:n(O),"onUpdate:value":a[0]||(a[0]=e=>i(O)?O.value=e:null),options:n(C)},null,8,["value","options"]),n(O)===n(b).CUSTOM?(u(),r("div",h,[s(n(v),{type:n(x),"default-time":"00:00:00",clearable:"",to:"body",valueFormat:n(_),placeholder:n(Y),value:g.value,"is-date-disabled":k,"onUpdate:value":a[1]||(a[1]=e=>j(e,"start"))},null,8,["type","valueFormat","placeholder","value"]),s(n(v),{style:{"margin-left":"5px"},type:n(x),"default-time":"23:59:59",clearable:"",to:"body",valueFormat:n(_),placeholder:n(w),value:E.value,"is-date-disabled":U,"onUpdate:value":a[2]||(a[2]=e=>j(e,"end"))},null,8,["type","valueFormat","placeholder","value"])])):m("v-if",!0)],64))}}),[["__file","DateRange.vue"]]);export{T as default};
@@ -1 +1 @@
1
- import e from"./InputFilter.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","InputFilter.vue"]]);export{t as default};
1
+ import{defineComponent as e,computed as l,openBlock as u,createBlock as t,unref as a,isRef as r}from"vue";import{NInput as p}from"naive-ui";import m from"../../../../../../_virtual/plugin-vue_export-helper.js";var o=m(e({__name:"InputFilter",props:{modelValue:{type:[String,Number,Array],default:null}},emits:["update:modelValue"],setup(e,{emit:m}){const o=e,i=l({set(e){m("update:modelValue",e)},get:()=>o.modelValue});return(e,l)=>(u(),t(a(p),{value:a(i),"onUpdate:value":l[0]||(l[0]=e=>r(i)?i.value=e:null),maxlength:"255",clearable:""},null,8,["value"]))}}),[["__file","InputFilter.vue"]]);export{o as default};
@@ -1 +1 @@
1
- import e from"./InputNumber.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","InputNumber.vue"]]);export{u as default};
1
+ import{defineComponent as e,computed as u,openBlock as l,createBlock as t,unref as r,isRef as a}from"vue";import{NInputNumber as m}from"naive-ui";import o from"../../../../../../_virtual/plugin-vue_export-helper.js";var p=o(e({__name:"InputNumber",props:{modelValue:{type:[String,Number,Array],default:null}},emits:["update:modelValue"],setup(e,{emit:o}){const p=e,i=u({set(e){o("update:modelValue",e)},get:()=>p.modelValue});return(e,u)=>(l(),t(r(m),{class:"form-item",value:r(i),"onUpdate:value":u[0]||(u[0]=e=>a(i)?i.value=e:null)},null,8,["value"]))}}),[["__file","InputNumber.vue"]]);export{p as default};
@@ -1 +1 @@
1
- import r from"./InputNumberGroup.vue2.js";import u from"../../../../../../_virtual/_plugin-vue_export-helper.js";var e=u(r,[["__file","InputNumberGroup.vue"]]);export{e as default};
1
+ import{defineComponent as e,ref as l,watch as u,openBlock as t,createBlock as r,unref as a,withCtx as m,createVNode as i,createElementVNode as n}from"vue";import{NInputGroup as p,NInputNumber as o}from"naive-ui";import{isString as s}from"lodash-es";import d from"../../../../../../_virtual/plugin-vue_export-helper.js";const v=n("span",{class:"divider"}," ~ ",-1);var c=d(e({__name:"InputNumberGroup",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null}},emits:["update:modelValue"],setup(e,{emit:n}){const d=e,c=l(),b=l();function f(e,l){var u,t;let r="";switch(l){case"startNumber":r=`${null!=e?e:""} ~ ${null!=(u=b.value)?u:""}`;break;case"endNumber":r=`${null!=(t=c.value)?t:""} ~ ${null!=e?e:""}`}const a=r.split(" ~ ").some((e=>e.trim()));n("update:modelValue",a?r:"")}return u((()=>d.modelValue),(e=>{if(c.value=b.value=null,e&&s(e)&&e.includes("~")){const[l,u]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(u.trim()&&(b.value=Number(u.trim())))}}),{immediate:!0}),(e,l)=>(t(),r(a(p),{class:"render-widget-input-number-group"},{default:m((()=>[i(a(o),{style:{width:"106px"},placeholder:"最小值",value:c.value,"onUpdate:value":l[0]||(l[0]=e=>f(e,"startNumber"))},null,8,["value"]),v,i(a(o),{style:{width:"106px"},placeholder:"最大值",value:b.value,"onUpdate:value":l[1]||(l[1]=e=>f(e,"endNumber"))},null,8,["value"])])),_:1}))}}),[["__file","InputNumberGroup.vue"]]);export{c as default};
@@ -1 +1 @@
1
- import e from"./SelectDynamic.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectDynamic.vue"]]);export{t as default};
1
+ import{defineComponent as e,useAttrs as a,ref as t,inject as o,computed as n,openBlock as l,createBlock as i,unref as r,isRef as u,h as s}from"vue";import{NSelect as p,NTag as c}from"naive-ui";import{WidgetOptionEnums as m}from"../../../types/enums.js";import{useDebounceFn as d}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as y}from"../../../constants/index.js";import v from"../../../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:v}){const g=e,{handleGetConfigApi:h}=f(),b=a(),w=t([]),C=t(!1),I=o(y),S=n({set(e){v("update:modelValue",e)},get:()=>g.modelValue}),x=n((()=>{var e;return null==(e=g.paramCfg)?void 0:e.optionSetting})),j=n((()=>x.value===m.MULTIPLE));async function _(e){try{const{dynamicOptionInfo:a}=g.paramCfg.optionInfo;if(a){const{autograph:t,dataSourceId:o,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:r}=a;let u={wordbookId:o,autograph:t,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),C.value=!0;let s=await h(u,"requestDynamicSelect",{},I);if(s){const{fieldList:e=[],rows:a=[]}=s,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return w.value=t,t}}}catch(e){console.log(e)}finally{C.value=!1}}const K=d((async e=>{await async function(e){const{manualMapping:a}=b;if(!a){const a=e.trim();await _(a)}}(e)}),300);async function O(){const{dynamicOptionInfo:e}=g.paramCfg.optionInfo;Object.keys(e).length>0&&I&&await _("")}function k(e){const{dynamicOptionInfo:a}=g.paramCfg.optionInfo,{showKeys:t=[]}=a;return a&&t.length>0?s("div",{class:"select-widget-dynamic-option"},t.map((a=>s("span",{class:"select-widget-dynamic-item"},e[a])))):s("div",e.label)}function T({option:e,handleClose:a}){return j.value?s(c,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return O(),(e,a)=>(l(),i(r(p),{to:"body",value:r(S),"onUpdate:value":a[0]||(a[0]=e=>u(S)?S.value=e:null),loading:C.value,options:w.value,remote:!0,"render-label":k,"render-tag":T,multiple:r(j),clearable:"",filterable:"",maxTagCount:"responsive",style:{width:"200px"},onSearch:r(K),onClear:O},null,8,["value","loading","options","multiple","onSearch"]))}}),[["__file","SelectDynamic.vue"]]);export{g as default};
@@ -1 +1 @@
1
- import e from"./SelectFilter.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectFilter.vue"]]);export{t as default};
1
+ import{defineComponent as e,computed as t,openBlock as l,createBlock as r,unref as a,isRef as u}from"vue";import{NSelect as o}from"naive-ui";import{WidgetOptionEnums as i}from"../../../types/enums.js";import{generateDefOptionsInApi as p}from"../../../tool/generateDefOptions.js";import m from"../../../../../../_virtual/plugin-vue_export-helper.js";var n=m(e({__name:"SelectFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},widgetType:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:m}){const n=e,s=t({set(e){m("update:modelValue",e)},get:()=>n.modelValue}),d=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.optionSetting})),f=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.mappingConfig})),v=t((()=>p(n.widgetType,f.value).slice(0)));return(e,t)=>(l(),r(a(o),{style:{width:"200px"},class:"form-item",value:a(s),"onUpdate:value":t[0]||(t[0]=e=>u(s)?s.value=e:null),to:"body",filterable:"",options:a(v),multiple:a(d)===a(i).MULTIPLE,maxTagCount:1},null,8,["value","options","multiple"]))}}),[["__file","SelectFilter.vue"]]);export{n as default};
@@ -1 +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};
1
+ import{defineComponent as e,ref as l,inject as t,computed as a,openBlock as o,createBlock as u,unref as s,isRef as i}from"vue";import{NSelect as r}from"naive-ui";import n from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as p}from"../../../constants/index.js";import m from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=m(e({__name:"SelectLabel",props:{paramCfg:{type:Object,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:m}){const f=e,{handleGetConfigApi:c}=n(),d=l([]),v=t(p),h=a({set(e){const l=e?e.join("|#|"):e;m("update:modelValue",l)},get:()=>f.modelValue?f.modelValue.split("|#|"):[]}),b=a((()=>{if(d.value&&d.value.length>0){let e=[],l=[];return d.value.forEach((t=>{t.labelList.forEach((t=>{e.includes(t.labelShowText)||(e.push(t.labelShowText),l.push({label:t.labelShowText,value:t.labelShowText}))}))})),l}return[]}));return(async()=>{try{const{defaultValue:e={}}=f.paramCfg._rawData,{classifyStr:l=""}=e;let t=await c({classifyStr:l},"requestListByClassify",{},v);if(t){const{data:e}=t,{list:l=[]}=e;d.value=l}}catch(e){console.log(e)}})(),(e,l)=>(o(),u(s(r),{to:"body",multiple:"",clearable:"",filterable:"",maxTagCount:"responsive",value:s(h),"onUpdate:value":l[0]||(l[0]=e=>i(h)?h.value=e:null),options:s(b),style:{width:"200px"}},null,8,["value","options"]))}}),[["__file","SelectLabel.vue"]]);export{f as default};
@@ -1 +1 @@
1
- import e from"./index.vue2.js";import r from"../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
1
+ import{defineComponent as e,useAttrs as a,reactive as l,ref as t,toRef as i,openBlock as o,createElementBlock as n,createVNode as s,unref as d,withCtx as r,createElementVNode as p,createCommentVNode as c,Fragment as u,renderList as y,normalizeClass as m,toDisplayString as v,createBlock as f,withDirectives as g,createTextVNode as C,vShow as h}from"vue";import{useMessage as k,NSpin as b,NInput as A,NIcon as L,NButton as _,NSelect as w,NTooltip as U}from"naive-ui";import{CloseOutline as N,AddOutline as x,AddCircleSharp as V}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as B,ConditionEnums as I}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as S}from"./hooks/useFilterConditions.js";import{conditionOptions as F}from"./helpers/options.js";import z from"../../../../../_virtual/plugin-vue_export-helper.js";const O={class:"searchConditionByApi_wrapper"},P={class:"class-filter-content"},q={key:0,class:"item-name"},E=p("span",{class:"label"},"筛选分类名称:",-1),R={key:1,class:"quickSearch-content"},J=p("span",{class:"label"},"父类名称:",-1),K=["onDblclick","onClick"],M={key:0,class:"s-content"},Q={key:2,class:"item-name"},G=p("span",{class:"label"}," 过滤条件: ",-1),H=p("span",null,"添加",-1),T={class:"select-item-list"},W={class:"index-span"},X=["onClick"];var Y=z(e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:z,emit:Y}){const Z=e,$=k(),ee=a(),ae=l({className:"",displayCategory:"",filterConditions:[]}),le=t(!1),{State:te,isEnableAddDisplayCategory:ie,editDisplayCategory:oe,handleDisplayCategorySelect:ne,handleDisplayCategoryRemove:se,handleDisplayCategoryAdd:de,handlerBlur:re,initDisplayCategories:pe}=j(i(ae,"displayCategory"),{conditionList:Z.conditionList},$),{State:ce,paramOptions:ue,addFilterCondition:ye,delFilterCondition:me,updateKey:ve,updateCondition:fe,getParamCfg:ge,initFilterConditions:Ce,getRawFilterConditions:he}=S(i(ae,"filterConditions"),Z.searchFieldList,B.API);function ke(){ae.className="",ae.displayCategory="",ae.filterConditions=[]}async function be(){var e;try{if(ke(),le.value=!0,pe(ee.displayCategoryList,Z.actionList_prop.displayCategory||void 0),Z.actionList_prop){ae.className=Z.actionList_prop.name,await Ce(Z.tableId,null!=(e=Z.actionList_prop.conObj)?e:[]);ae.filterConditions.length<1&&ue.value&&ue.value.length>0&&ye()}}finally{le.value=!1}}return be(),z({handleInitConditions:be,saveAdd:function(){new Promise((e=>{ae.className||!Z.showItemName?0!==ae.filterConditions.length?ae.filterConditions.some((({key:e,condition:a,value:l,presetVal:t})=>!e||!a||a===I.EQUAL&&!l&&!t))?$.warning("请补充完整条件内容"):e(!0):$.warning("请至少添加一个条件"):$.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===Z.actionList_prop.from&&(a=Z.actionList_prop.displayCategory,e=null==Z?void 0:Z.conditionList.find((e=>e.displayCategory===a)));const l={displayCategory:ae.displayCategory,name:ae.className||"",conObj:he()},t={id:e?e.sid:"",tableId:Z.tableId,setting:JSON.stringify(l)};Y("saveAdd",t,!1)}))},cancelSaveAdd:function(){ke(),Y("cancelSaveAdd")},addAction:ye,checkActionList:function(){return ae.filterConditions.every((e=>!e.field_key))}}),(a,l)=>(o(),n("div",O,[s(d(b),{show:le.value},{default:r((()=>[p("div",P,[e.showItemName?(o(),n("div",q,[E,s(d(A),{value:ae.className,"onUpdate:value":l[0]||(l[0]=e=>ae.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):c("v-if",!0),e.showItemName?(o(),n("div",R,[J,(o(!0),n(u,null,y(d(te).displayCategories,((e,a)=>(o(),n("div",{class:m(["edit-tag",{"edit-tag-select":e.value===ae.displayCategory&&e.disabled}]),key:a,onDblclick:a=>d(oe)(a,e),onClick:a=>function(e){ne(e)}(e)},[e.disabled?(o(),n("div",M,[p("span",null,v(e.value),1)])):(o(),f(d(A),{key:1,style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:10},null,8,["disabled","onBlur","value","onUpdate:value"])),s(d(L),{component:d(N),class:"anticon-close",size:"20",onClick:l=>d(se)(a,e)},null,8,["component","onClick"])],42,K)))),128)),d(ie)?(o(),n(u,{key:0},[g(s(d(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:d(de)},{default:r((()=>[s(d(L),{component:d(x),size:"20"},null,8,["component"]),C(" "+v("添加父类"))])),_:1},8,["onClick"]),[[h,!d(te).showAdd]]),g(s(d(A),{class:"edit-tag",value:d(te).addDisplayCategory,"onUpdate:value":l[1]||(l[1]=e=>d(te).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:d(re),maxLength:10},null,8,["value","onBlur"]),[[h,d(te).showAdd]])],64)):c("v-if",!0)])):c("v-if",!0),e.hideAddBtn?c("v-if",!0):(o(),n("div",Q,[G,p("span",{class:"addAction",onClick:l[2]||(l[2]=(...e)=>d(ye)&&d(ye)(...e)),style:{cursor:"pointer"}},[s(d(L),{component:d(V),class:"blue",size:"18"},null,8,["component"]),H])])),p("ul",T,[(o(!0),n(u,null,y(ae.filterConditions,((e,a)=>(o(),n("li",{key:a},[p("span",W,v(a+1)+"   ",1),c(" 选择 field_key "),s(d(w),{class:"form-item",placeholder:"请选择",value:e.key,to:"body",filterable:"",options:d(ue),"onUpdate:value":e=>d(ve)(a,e)},null,8,["value","options","onUpdate:value"]),c(" 选择 关系 "),e.key?(o(),f(d(w),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:d(F),"onUpdate:value":e=>d(fe)(a,e)},null,8,["value","options","onUpdate:value"])):c("v-if",!0),c(" 自定义 "),e.key&&e.condition&&e.condition!==d(I).NULL?(o(),f(D,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,"param-cfg":d(ge)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","param-cfg"])):c("v-if",!0),s(d(U),{title:"删除",trigger:"hover"},{trigger:r((()=>[p("i",{onClick:e=>d(me)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,X)])),default:r((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{Y as default};
@@ -1 +1 @@
1
- import e from"./CheckboxGroup.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","CheckboxGroup.vue"]]);export{o as default};
1
+ import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:""},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
@@ -1 +1 @@
1
- import e from"./Date.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Date.vue"]]);export{t as default};
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import p from"../../../../../date-picker/index.js";import m from"moment";import{isString as d}from"lodash-es";import v from"../../../../../../_virtual/plugin-vue_export-helper.js";var i=v(e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const i=e,n=a(),c=t((()=>{let e="";switch(i.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function f(e){n.value=e;const a=e?m(e).format(c.value):e;v("update:value",a)}return l((()=>i.value),(e=>{e&&d(e)?n.value=m(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":f},null,8,["type","clearable","valueFormat","placeholder","value"]))}}),[["__file","Date.vue"]]);export{i as default};
@@ -1 +1 @@
1
- import e from"./DateRangeInner.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","DateRangeInner.vue"]]);export{a as default};
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as d,normalizeClass as i,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as p,createTextVNode as m,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import b from"../../../../../date-picker/index.js";import h from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";import Y from"../../../../../../_virtual/plugin-vue_export-helper.js";const F={class:"render-widget-date-range"},_={key:0,class:"radio-date-group"},D=["onClick"],M={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=Y(e({__name:"DateRangeInner",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const Y=e,w=a([]),P=a(!1),j=a(""),x=a(),C=a(),H=l((()=>{let e="";switch(Y.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),I=l((()=>{let e="";switch(Y.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function O(e,a){switch(a){case"start":x.value=e;break;case"end":C.value=e}const l=x.value?h(x.value).format(H.value):null,t=C.value?h(C.value).format(H.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function R(e){return!!C.value&&e>C.value}function T(e){return!!x.value&&e<x.value}return t((()=>Y.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(x.value=h(a.trim()).valueOf()),void(l.trim()&&(C.value=h(l.trim()).valueOf()))}x.value=C.value=null,j.value=""}),{immediate:!0}),function(){const e=k(H.value);w.value=e}(),(a,l)=>(u(),r("div",F,[P.value?n("v-if",!0):(u(),r("div",_,[(u(!0),r(v,null,d(w.value,(e=>(u(),r("span",{key:e.value,class:i(["radio-date-item",j.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,j.value===l?j.value="":j.value=l,void(j.value&&f("update:value",j.value));var l}},o(e.label),11,D)))),128))])),s(c(y),{secondary:"",class:i(P.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>P.value=!P.value)},{default:p((()=>[m(o(c(I)),1)])),_:1},8,["class"]),P.value?(u(),r("div",M,[s(c(b),{type:e.type,to:"body","default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:x.value,"is-date-disabled":R,"onUpdate:value":l[1]||(l[1]=e=>O(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,s(c(b),{type:e.type,to:"body","default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:C.value,"is-date-disabled":T,"onUpdate:value":l[2]||(l[2]=e=>O(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}}),[["__file","DateRangeInner.vue"]]);export{w as default};
@@ -1 +1 @@
1
- import e from"./DateRangeOut.vue2.js";import t from"../../../../../../_virtual/_plugin-vue_export-helper.js";var r=t(e,[["__file","DateRangeOut.vue"]]);export{r as default};
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as d}from"vue";import o from"../../../../../date-picker/index.js";import f from"moment";import{isString as s}from"lodash-es";import n from"../../../../../../_virtual/plugin-vue_export-helper.js";var p=n(e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:n}){const p=e,c=a(),v=t((()=>{let e="";switch(p.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),i={"今天":[f().startOf("day").valueOf(),f().endOf("day").valueOf()],"昨天":[f().subtract(1,"days").startOf("day").valueOf(),f().subtract(1,"days").endOf("day").valueOf()],"近一周":[f().subtract(1,"w").startOf("day").valueOf(),f().endOf("day").valueOf()],"近一月":[f().subtract(1,"months").startOf("day").valueOf(),f().endOf("day").valueOf()]};function m(e){if(e){const[a,t]=e,l=`${f(a).format(v.value)} ~ ${f(t).format(v.value)}`;n("update:value",l)}else n("update:value",e)}return l((()=>p.value),(e=>{if(e&&s(e)&&e.includes("~")){const[a,t]=e.split("~");c.value=[f(a.trim()).valueOf(),f(t.trim()).valueOf()]}else c.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(o),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:c.value,shortcuts:i,"onUpdate:value":m},null,8,["type","clearable","startPlaceholder","endPlaceholder","value"]))}}),[["__file","DateRangeOut.vue"]]);export{p as default};
@@ -1 +1 @@
1
- import r from"./InputNumberGroup.vue2.js";import u from"../../../../../../_virtual/_plugin-vue_export-helper.js";var e=u(r,[["__file","InputNumberGroup.vue"]]);export{e as default};
1
+ import{defineComponent as e,ref as l,watch as t,openBlock as u,createBlock as r,unref as a,withCtx as i,createVNode as n,createElementVNode as p}from"vue";import{NInputGroup as o,NInputNumber as d}from"naive-ui";import{isString as m}from"lodash-es";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";const v=p("span",{class:"divider"}," ~ ",-1);var c=s(e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:p}){const s=e,c=l(),h=l();function f(e,l){var t,u;let r="";switch(l){case"startNumber":r=`${null!=e?e:""} ~ ${null!=(t=h.value)?t:""}`;break;case"endNumber":r=`${null!=(u=c.value)?u:""} ~ ${null!=e?e:""}`}const a=r.split(" ~ ").some((e=>e.trim()));p("update:value",a?r:"")}return t((()=>s.value),(e=>{if(c.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,t]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(t.trim()&&(h.value=Number(t.trim())))}}),{immediate:!0}),(l,t)=>(u(),r(a(o),{class:"render-widget-input-number-group"},{default:i((()=>[n(a(d),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":t[0]||(t[0]=e=>f(e,"startNumber"))},null,8,["placeholder","value"]),v,n(a(d),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":t[1]||(t[1]=e=>f(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}}),[["__file","InputNumberGroup.vue"]]);export{c as default};
@@ -1 +1 @@
1
- import e from"./LabelInner.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var l=r(e,[["__file","LabelInner.vue"]]);export{l as default};
1
+ import{defineComponent as e,ref as l,inject as t,watch as s,computed as o,openBlock as n,createElementBlock as a,Fragment as i,renderList as c,unref as r,createElementVNode as u,toDisplayString as p,normalizeClass as d,withDirectives as f,createBlock as m,normalizeStyle as v,withCtx as b,createVNode as h,withModifiers as g,createCommentVNode as y}from"vue";import{NTag as k,NTooltip as S,NIcon as w}from"naive-ui";import{ChevronUpCircleOutline as C,ChevronDownCircleOutline as x}from"@vicons/ionicons5";import _ from"../../../directive/resize.js";import L from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as U}from"../../../constants/index.js";import{isString as j}from"lodash-es";import B from"../../../../../../_virtual/plugin-vue_export-helper.js";const T={class:"label-attr-filter-container"},I={class:"edit-f-label"},z={class:"label-f-content"},q={key:0,class:"label-f-unfold-btn"},A=["onClick"],G=u("span",null,"收起",-1),H=u("span",null,"展开",-1);var M=B(e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:B}){const M=e,{handleGetConfigApi:N}=L(),O="rgb(85, 133, 245)",D=l([]),E=l([]),F=t(U);s((()=>M.value),(e=>{const l=e&&j(e)?e.split("|#|"):[];D.value=l}),{immediate:!0});const J=o((()=>E.value&&E.value.length>0?E.value.map((e=>(e.labelList.map((e=>{e.isSelect=D.value.includes(e.labelShowText)})),e))):[])),K=e=>e.isSelect?{background:e.backgroundColor||O,borderColor:e.backgroundColor||O}:{};return(async()=>{try{const{widgetCfg:e={}}=M.componentCfg,{classifyStr:l=""}=e;let t=await N({classifyStr:l},"requestListByClassify",{},F);if(t){const{list:e=[]}=t;E.value=e}}catch(e){console.log(e)}})(),(e,l)=>(n(),a("div",T,[(n(!0),a(i,null,c(r(J),(e=>(n(),a("div",{class:"edit-labels-content",key:e.classifyId},[u("span",I,p(e.classifyName)+":",1),u("div",{class:d(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((n(),a("div",z,[(n(!0),a(i,null,c(e.labelList,(e=>(n(),m(r(k),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)D.value.push(l.labelShowText);else{const e=D.value.findIndex((e=>e===l.labelShowText));e>-1&&D.value.splice(e,1)}B("update:value",D.value.join("|#|"))})(l,e),style:v(K(e))},{default:b((()=>[h(r(S),{placement:"top-start",duration:0},{trigger:b((()=>[u("span",null,p(e.labelShowText),1)])),default:b((()=>[u("span",null,p(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[r(_),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(n(),a("div",q,[u("span",{class:"operate-btn",onClick:g((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(n(),a(i,{key:0},[G,h(r(w),{component:r(C),size:"16"},null,8,["component"])],64)):(n(),a(i,{key:1},[H,h(r(w),{component:r(x),size:"16"},null,8,["component"])],64))],8,A)])):y("v-if",!0)])))),128))]))}}),[["__file","LabelInner.vue"]]);export{M as default};
@@ -1 +1 @@
1
- import e from"./LabelOut.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","LabelOut.vue"]]);export{t as default};
1
+ import{defineComponent as e,useAttrs as t,ref as l,inject as a,computed as o,openBlock as u,createBlock as s,unref as i,mergeProps as n,isRef as r}from"vue";import{NSelect as p}from"naive-ui";import v from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as f}from"../../../constants/index.js";import c from"../../../../../../_virtual/plugin-vue_export-helper.js";var m=c(e({__name:"LabelOut",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:c}){const m=e,{handleGetConfigApi:h}=v(),b=t(),d=l([]),g=a(f),y=o({set(e){const t=e?e.join("|#|"):e;c("update:value",t)},get:()=>m.value?m.value.split("|#|"):[]}),x=o((()=>{if(d.value&&d.value.length>0){let e=[],t=[];return d.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText}))}))})),t}return[]}));return(async()=>{try{const{widgetCfg:e={}}=m.componentCfg,{classifyStr:t=""}=e;let l=await h({classifyStr:t},"requestListByClassify",{},g);if(l){const{list:e=[]}=l;d.value=e}}catch(e){console.log(e)}})(),(e,t)=>(u(),s(i(p),n({to:"body"},i(b),{value:i(y),"onUpdate:value":t[0]||(t[0]=e=>r(y)?y.value=e:null),options:i(x)}),null,16,["value","options"]))}}),[["__file","LabelOut.vue"]]);export{m as default};
@@ -1 +1 @@
1
- import e from"./Select.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Select.vue"]]);export{t as default};
1
+ import{defineComponent as e,useAttrs as a,ref as t,inject as n,computed as l,openBlock as o,createBlock as i,unref as u,mergeProps as r,isRef as s,h as c}from"vue";import{NSelect as p,NTag as v}from"naive-ui";import{useDebounceFn as d}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";import y from"../../../../../../_virtual/plugin-vue_export-helper.js";var g=y(e({__name:"Select",props:{value:{type:[Array,String,Number]}},emits:["update:value","changeInitState"],setup(e,{emit:y}){const g=e,{handleGetConfigApi:h}=f(),b=a(),w=t([]),I=t(!1),S=t(!1),A=n(m),_=l({set(e){const a=Array.isArray(e)?e:e?[e]:null;y("update:value",a)},get(){var e;if(Array.isArray(g.value)&&g.value.length>0){const{multiple:e}=b;return e||1!=g.value.length?g.value:g.value[0]}return null!=(e=g.value)?e:null}});async function O(e){try{if(b.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:o,valueKey:i}=b.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),S.value=!0;let r=await h(u,"requestDynamicSelect",{},A);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[o[0]],value:e[i]})));return w.value=t,t}}}catch(e){console.log(e)}finally{S.value=!1}}const k=d((async e=>{await async function(e){const{manualMapping:a}=b;if(!a){const a=e.trim();await O(a)}}(e)}),300);async function x(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=b;if(e&&Array.isArray(t))return I.value=!1,void(w.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&A&&(I.value=!0,await O(""))}function K(e){const{manualMapping:a}=b;if(a)return c("div",e.label);const{showKeys:t=[]}=b.dynamicOptionInfo;return b.dynamicOptionInfo&&t.length>0?c("div",{class:"select-widget-dynamic-option"},t.map((a=>c("span",{class:"select-widget-dynamic-item"},e[a])))):c("div",e.label)}function M({option:e,handleClose:a}){const{multiple:t}=b;return t?c(v,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>c("div",e.label)}):c("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=b;await x();const o=Array.isArray(g.value)?g.value.length>0:g.value;if(!l&&!o){if(e)return y("update:value",a),void y("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=w.value[0];y("update:value",[e.value]),y("changeInitState",n,!0);break}}}}(),(e,a)=>(o(),i(u(p),r(u(b),{value:u(_),"onUpdate:value":a[0]||(a[0]=e=>s(_)?_.value=e:null),to:"body",loading:S.value,options:w.value,remote:I.value,"render-label":K,"render-tag":M,onSearch:u(k),onClear:x}),null,16,["value","loading","options","remote","onSearch"]))}}),[["__file","Select.vue"]]);export{g as default};