cnhis-design-vue 3.1.44-beta.12 → 3.1.44-beta.13

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 (272) hide show
  1. package/es/components/base-search/index.d.ts +0 -6
  2. package/es/components/base-search/src/index.vue.d.ts +0 -6
  3. package/es/components/base-search/src/index.vue.js +1 -1
  4. package/es/components/base-search/src/index.vue2.js +1 -0
  5. package/es/components/big-table/src/BigTable.vue.js +1 -1
  6. package/es/components/big-table/src/components/NoData.vue.js +1 -1
  7. package/es/components/big-table/src/components/NoData.vue2.js +1 -0
  8. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -1
  9. package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +1 -0
  10. package/es/components/big-table/src/components/input-button.vue.js +1 -1
  11. package/es/components/big-table/src/components/input-button.vue2.js +1 -0
  12. package/es/components/big-table/src/components/separate.vue.js +1 -1
  13. package/es/components/big-table/src/components/separate.vue2.js +1 -0
  14. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
  15. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +1 -0
  16. package/es/components/button-print/src/ButtonPrint.vue.js +1 -1
  17. package/es/components/button-print/src/components/EditFormat.vue.js +1 -1
  18. package/es/components/button-print/src/components/EditFormat.vue2.js +1 -0
  19. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -1
  20. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -0
  21. package/es/components/button-print/src/components/Preview.vue.js +1 -1
  22. package/es/components/classification/index.d.ts +553 -75
  23. package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
  24. package/es/components/classification/src/components/search-filter/index.vue.js +1 -1
  25. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -0
  26. package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
  27. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  28. package/es/components/classification/src/components/set-classification/index.vue2.js +1 -0
  29. package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
  30. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  31. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -0
  32. package/es/components/classification/src/const/index.d.ts +2 -2
  33. package/es/components/classification/src/index.vue.d.ts +553 -75
  34. package/es/components/classification/src/index.vue.js +1 -1
  35. package/es/components/classification/src/index.vue2.js +1 -0
  36. package/es/components/classification/style/index.css +1 -1
  37. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  38. package/es/components/date-picker/src/DatePicker.vue2.js +1 -0
  39. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
  40. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -0
  41. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  42. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -0
  43. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  44. package/es/components/field-set/src/FieldSet.vue2.js +1 -0
  45. package/es/components/form-config/index.d.ts +0 -2
  46. package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
  47. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  48. package/es/components/form-config/src/FormConfig.vue2.js +1 -0
  49. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
  50. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
  51. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -0
  52. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  53. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -0
  54. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  55. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  56. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -0
  57. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
  58. package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +1 -0
  59. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
  60. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -0
  61. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  62. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -0
  63. package/es/components/form-render/index.d.ts +0 -1
  64. package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
  65. package/es/components/form-render/src/FormRender.vue.js +1 -1
  66. package/es/components/form-render/src/FormRender.vue2.js +1 -0
  67. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
  68. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
  69. package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -0
  70. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  71. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  72. package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
  73. package/es/components/form-render/src/components/renderer/input.js +1 -1
  74. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
  75. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
  76. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  77. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -1
  78. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -0
  79. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  80. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  81. package/es/components/form-render/src/components/renderer/select.js +1 -1
  82. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -1
  83. package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -0
  84. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  85. package/es/components/form-render/src/types/index.d.ts +2 -0
  86. package/es/components/guide/src/renderer.js +1 -1
  87. package/es/components/iho-select-label/src/LabelFormContent.vue.js +1 -1
  88. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +1 -0
  89. package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
  90. package/es/components/iho-select-label/src/SelectLabel.vue2.js +1 -0
  91. package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
  92. package/es/components/iho-select-label/src/components/label-classify.vue2.js +1 -0
  93. package/es/components/iho-table/index.d.ts +2 -0
  94. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  95. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  96. package/es/components/iho-table/src/IhoTable.vue2.js +1 -0
  97. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
  98. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -1
  99. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +1 -0
  100. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  101. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -0
  102. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  103. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -0
  104. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  105. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -1
  106. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -0
  107. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
  108. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -0
  109. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  110. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
  111. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  112. package/es/components/iho-table/src/types/index.d.ts +1 -0
  113. package/es/components/iho-table/src/utils/index.js +1 -1
  114. package/es/components/iho-table/style/index.css +1 -1
  115. package/es/components/index.css +1 -1
  116. package/es/components/info-header/index.d.ts +8 -2
  117. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
  118. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  119. package/es/components/info-header/src/InfoHeader.vue2.js +1 -0
  120. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  121. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -0
  122. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +1 -1
  123. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -0
  124. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  125. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +1 -0
  126. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  127. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +1 -0
  128. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
  129. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  130. package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -0
  131. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
  132. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  133. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -0
  134. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  135. package/es/components/keyboard/src/Keyboard.vue2.js +1 -0
  136. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  137. package/es/components/keyboard/src/components/InputNumber.vue2.js +1 -0
  138. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -1
  139. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -0
  140. package/es/components/map/src/Map.vue.js +1 -1
  141. package/es/components/map/src/Map.vue2.js +1 -0
  142. package/es/components/quick-search/index.d.ts +0 -6
  143. package/es/components/quick-search/src/index.vue.d.ts +0 -6
  144. package/es/components/quick-search/src/index.vue.js +1 -1
  145. package/es/components/quick-search/src/index.vue2.js +1 -0
  146. package/es/components/quick-search/style/index.css +1 -1
  147. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
  148. package/es/components/recommend-search/src/RecommendSearch.vue2.js +1 -0
  149. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
  150. package/es/components/recommend-search/src/components/RecommendInput.vue2.js +1 -0
  151. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
  152. package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +1 -0
  153. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
  154. package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +1 -0
  155. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  156. package/es/components/scale-view/src/ScaleView.vue2.js +1 -0
  157. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
  158. package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -0
  159. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
  160. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -0
  161. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -1
  162. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -0
  163. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -1
  164. package/es/components/scale-view/src/components/NoData.vue.js +1 -1
  165. package/es/components/scale-view/src/components/NoData.vue2.js +1 -0
  166. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
  167. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -0
  168. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  169. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  170. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -0
  171. package/es/components/select-label/src/SelectLabel.vue.js +1 -1
  172. package/es/components/select-label/src/components/label-classify.vue.js +1 -1
  173. package/es/components/select-label/src/components/label-classify.vue2.js +1 -0
  174. package/es/components/select-person/src/SearchMultiple.vue.js +1 -1
  175. package/es/components/select-person/src/SelectPerson.vue.js +1 -1
  176. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -1
  177. package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -0
  178. package/es/components/shortcut-setter/index.d.ts +0 -1
  179. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
  180. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -1
  181. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -0
  182. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -1
  183. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -0
  184. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  185. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -0
  186. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
  187. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
  188. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -0
  189. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
  190. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
  191. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
  192. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
  193. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
  194. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
  195. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
  196. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
  197. package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
  198. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
  199. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
  200. package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
  201. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
  202. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
  203. package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
  204. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
  205. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
  206. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
  207. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
  208. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
  209. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
  210. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
  211. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +1 -0
  212. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
  213. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
  214. package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
  215. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
  216. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  217. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -0
  218. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  219. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +1 -0
  220. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  221. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
  222. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -1
  223. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -0
  224. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -1
  225. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -0
  226. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  227. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +1 -0
  228. package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
  229. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
  230. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
  231. package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
  232. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
  233. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
  234. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
  235. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  236. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -0
  237. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
  238. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  239. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
  240. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  241. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
  242. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  243. package/es/components/table-filter/src/constants/index.d.ts +3 -0
  244. package/es/components/table-filter/src/constants/index.js +1 -0
  245. package/es/components/table-filter/src/directive/resize.js +1 -1
  246. package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
  247. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  248. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  249. package/es/components/table-filter/src/tool/transformData.js +1 -1
  250. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  251. package/es/components/table-filter/src/types/enums.js +1 -1
  252. package/es/components/time-line/src/TimeLine.vue.js +1 -1
  253. package/es/components/time-line/src/TimeLine.vue2.js +1 -0
  254. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  255. package/es/components/time-picker/src/TimePicker.vue2.js +1 -0
  256. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -1
  257. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -0
  258. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
  259. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -0
  260. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -1
  261. package/es/shared/components/SelectPage/SelectPage.vue2.js +1 -0
  262. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -1
  263. package/es/shared/components/SvgIcon/SvgIcon.vue2.js +1 -0
  264. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
  265. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +1 -0
  266. package/es/shared/components/no-data/NoData.vue.js +1 -1
  267. package/es/shared/components/no-data/NoData.vue2.js +1 -0
  268. package/es/shared/package.json.js +1 -1
  269. package/package.json +2 -2
  270. package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
  271. package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.js +0 -1
  272. /package/es/_virtual/{plugin-vue_export-helper.js → _plugin-vue_export-helper.js} +0 -0
@@ -1 +1 @@
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),{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
+ 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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import p from"../../../../../date-picker/index.js";import d from"moment";import{isString as m}from"lodash-es";var v=e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const i=e,n=a(),c=t((()=>{let e="";switch(i.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function y(e){n.value=e;const a=e?d(e).format(c.value):e;v("update:value",a)}return l((()=>i.value),(e=>{e&&m(e)?n.value=d(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":y},null,8,["type","clearable","valueFormat","placeholder","value"]))}});export{v as default};
@@ -1 +1 @@
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 i,normalizeClass as d,toDisplayString as n,createCommentVNode as o,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 h from"../../../../../date-picker/index.js";import b 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?b(x.value).format(H.value):null,t=C.value?b(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=b(a.trim()).valueOf()),void(l.trim()&&(C.value=b(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?o("v-if",!0):(u(),r("div",_,[(u(!0),r(v,null,i(w.value,(e=>(u(),r("span",{key:e.value,class:d(["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}},n(e.label),11,D)))),128))])),s(c(y),{secondary:"",class:d(P.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>P.value=!P.value)},{default:p((()=>[m(n(c(I)),1)])),_:1},8,["class"]),P.value?(u(),r("div",M,[s(c(h),{type:e.type,"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(h),{type:e.type,"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"])])):o("v-if",!0)]))}}),[["__file","DateRangeInner.vue"]]);export{w as default};
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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as d,normalizeClass as i,toDisplayString as o,createCommentVNode as n,createVNode as s,unref as c,withCtx as m,createTextVNode as p,createElementVNode as f}from"vue";import{NButton as y}from"naive-ui";import b from"../../../../../date-picker/index.js";import h from"moment";import{isString as g}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";const Y={class:"render-widget-date-range"},F={key:0,class:"radio-date-group"},M=["onClick"],D={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=e({__name:"DateRangeInner",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const w=e,P=a([]),C=a(!1),_=a(""),j=a(),x=a(),H=l((()=>{let e="";switch(w.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),O=l((()=>{let e="";switch(w.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function T(e,a){switch(a){case"start":j.value=e;break;case"end":x.value=e}const l=j.value?h(j.value).format(H.value):null,t=x.value?h(x.value).format(H.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function U(e){return!!x.value&&e>x.value}function $(e){return!!j.value&&e<j.value}return t((()=>w.value),(e=>{if(e&&g(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=h(a.trim()).valueOf()),void(l.trim()&&(x.value=h(l.trim()).valueOf()))}j.value=x.value=null,_.value=""}),{immediate:!0}),function(){const e=k(H.value);P.value=e}(),(a,l)=>(u(),r("div",Y,[C.value?n("v-if",!0):(u(),r("div",F,[(u(!0),r(v,null,d(P.value,(e=>(u(),r("span",{key:e.value,class:i(["radio-date-item",_.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,_.value===l?_.value="":_.value=l,void(_.value&&f("update:value",_.value));var l}},o(e.label),11,M)))),128))])),s(c(y),{secondary:"",class:i(C.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>C.value=!C.value)},{default:m((()=>[p(o(c(O)),1)])),_:1},8,["class"]),C.value?(u(),r("div",D,[s(c(b),{type:e.type,to:"body","default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:j.value,"is-date-disabled":U,"onUpdate:value":l[1]||(l[1]=e=>T(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,s(c(b),{type:e.type,to:"body","default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:x.value,"is-date-disabled":$,"onUpdate:value":l[2]||(l[2]=e=>T(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):n("v-if",!0)]))}});export{w as default};
@@ -1 +1 @@
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 f from"../../../../../date-picker/index.js";import s from"moment";import{isString as n}from"lodash-es";import o from"../../../../../../_virtual/plugin-vue_export-helper.js";var p=o(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:o}){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={"今天":[s().startOf("day").valueOf(),s().endOf("day").valueOf()],"昨天":[s().subtract(1,"days").startOf("day").valueOf(),s().subtract(1,"days").endOf("day").valueOf()],"近一周":[s().subtract(1,"w").startOf("day").valueOf(),s().endOf("day").valueOf()],"近一月":[s().subtract(1,"months").startOf("day").valueOf(),s().endOf("day").valueOf()]};function m(e){if(e){const[a,t]=e,l=`${s(a).format(v.value)} ~ ${s(t).format(v.value)}`;o("update:value",l)}else o("update:value",e)}return l((()=>p.value),(e=>{if(e&&n(e)&&e.includes("~")){const[a,t]=e.split("~");c.value=[s(a.trim()).valueOf(),s(t.trim()).valueOf()]}else c.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(f),{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
+ 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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as d}from"vue";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as o}from"lodash-es";var n=e({__name:"DateRangeOut",props:{type:{type:String,default:"daterange"},clearable:{type:Boolean,default:!1},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},componentCfg:{type:Object,default:()=>({})},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:n}){const c=e,p=a(),v=t((()=>{let e="";switch(c.type){case"daterange":e="YYYY-MM-DD";break;case"datetimerange":e="YYYY-MM-DD HH:mm:ss"}return e})),m={"今天":[f().startOf("day").valueOf(),f().endOf("day").valueOf()],"昨天":[f().subtract(1,"days").startOf("day").valueOf(),f().subtract(1,"days").endOf("day").valueOf()],"近一周":[f().subtract(1,"w").startOf("day").valueOf(),f().endOf("day").valueOf()],"近一月":[f().subtract(1,"months").startOf("day").valueOf(),f().endOf("day").valueOf()]};function i(e){if(e){const[a,t]=e,l=`${f(a).format(v.value)} ~ ${f(t).format(v.value)}`;n("update:value",l)}else n("update:value",e)}return l((()=>c.value),(e=>{if(e&&o(e)&&e.includes("~")){const[a,t]=e.split("~");p.value=[f(a.trim()).valueOf(),f(t.trim()).valueOf()]}else p.value=null}),{immediate:!0}),(a,t)=>(r(),u(d(s),{to:"body",type:e.type,clearable:e.clearable,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,value:p.value,shortcuts:m,"onUpdate:value":i},null,8,["type","clearable","startPlaceholder","endPlaceholder","value"]))}});export{n as default};
@@ -1 +1 @@
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
+ 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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,watch as t,openBlock as a,createBlock as u,unref as r,withCtx as n,createVNode as i,createElementVNode as d}from"vue";import{NInputGroup as o,NInputNumber as s}from"naive-ui";import{isString as m}from"lodash-es";const p=d("span",{class:"divider"}," ~ ",-1);var v=e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:d}){const v=e,c=l(),h=l();function f(e,l){var t,a;let u="";switch(l){case"startNumber":u=`${null!=e?e:""} ~ ${null!=(t=h.value)?t:""}`;break;case"endNumber":u=`${null!=(a=c.value)?a:""} ~ ${null!=e?e:""}`}const r=u.split(" ~ ").some((e=>e.trim()));d("update:value",r?u:"")}return t((()=>v.value),(e=>{if(c.value=h.value=null,e&&m(e)&&e.includes("~")){const[l,t]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(t.trim()&&(h.value=Number(t.trim())))}}),{immediate:!0}),(l,t)=>(a(),u(r(o),{class:"render-widget-input-number-group"},{default:n((()=>[i(r(s),{style:{minWidth:"88px"},placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":t[0]||(t[0]=e=>f(e,"startNumber"))},null,8,["placeholder","value"]),p,i(r(s),{style:{minWidth:"88px"},placeholder:e.endPlaceholder,value:h.value,"onUpdate:value":t[1]||(t[1]=e=>f(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}});export{v as default};
@@ -8,9 +8,6 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: StringConstructor;
9
9
  default: string;
10
10
  };
11
- filterApiConfig: {
12
- type: ObjectConstructor;
13
- };
14
11
  }, {
15
12
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
16
13
  baseActiveColor: string;
@@ -22,15 +19,13 @@ declare const _default: import("vue").DefineComponent<{
22
19
  type: StringConstructor;
23
20
  default: string;
24
21
  };
25
- filterApiConfig: {
26
- type: ObjectConstructor;
27
- };
28
22
  }>> & {
29
23
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
30
24
  }>>;
31
25
  emit: (event: "update:value", ...args: any[]) => void;
32
26
  selectedList: import("vue").Ref<string[]>;
33
27
  tagList: import("vue").Ref<never[]>;
28
+ filterApiConfig: import("../../../../..").AnyObject;
34
29
  categoryList: import("vue").ComputedRef<IFilterCategoryLabelItemType[]>;
35
30
  onResize: (el: HTMLElement, categoryItem: IFilterCategoryLabelItemType) => void;
36
31
  handleLabelUpfold: (categoryItem: IFilterCategoryLabelItemType) => void;
@@ -59,9 +54,6 @@ declare const _default: import("vue").DefineComponent<{
59
54
  type: StringConstructor;
60
55
  default: string;
61
56
  };
62
- filterApiConfig: {
63
- type: ObjectConstructor;
64
- };
65
57
  }>> & {
66
58
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
67
59
  }, {
@@ -0,0 +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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as l,inject as t,watch as s,computed as o,openBlock as a,createElementBlock as n,Fragment as i,renderList as c,unref as r,createElementVNode as d,toDisplayString as u,normalizeClass as p,withDirectives as f,createBlock as m,normalizeStyle as b,withCtx as v,createVNode as h,withModifiers as y,createCommentVNode as g}from"vue";import{NTag as k,NTooltip as S,NIcon as w}from"naive-ui";import{ChevronUpCircleOutline as C,ChevronDownCircleOutline as x}from"@vicons/ionicons5";import U from"../../../directive/resize.js";import L from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as j}from"../../../constants/index.js";import{isString as B}from"lodash-es";const T={class:"label-attr-filter-container"},_={class:"edit-f-label"},z={class:"label-f-content"},I={key:0,class:"label-f-unfold-btn"},q=["onClick"],A=d("span",null,"收起",-1),G=d("span",null,"展开",-1);var H=e({__name:"LabelInner",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:H}){const M=e,{handleGetConfigApi:N}=L(),O="rgb(85, 133, 245)",D=l([]),E=l([]),F=t(j);s((()=>M.value),(e=>{const l=e&&B(e)?e.split("|#|"):[];D.value=l}),{immediate:!0});const J=o((()=>E.value&&E.value.length>0?E.value.map((e=>(e.labelList.map((e=>{e.isSelect=D.value.includes(e.labelShowText)})),e))):[])),K=e=>e.isSelect?{background:e.backgroundColor||O,borderColor:e.backgroundColor||O}:{};return(async()=>{try{const{widgetCfg:e={}}=M.componentCfg,{classifyStr:l=""}=e;let t=await N({classifyStr:l},"requestListByClassify",{},F);if(t){const{data:e}=t,{list:l=[]}=e;E.value=l}}catch(e){console.log(e)}})(),(e,l)=>(a(),n("div",T,[(a(!0),n(i,null,c(r(J),(e=>(a(),n("div",{class:"edit-labels-content",key:e.classifyId},[d("span",_,u(e.classifyName)+":",1),d("div",{class:p(["edit-f-content",{"label-select-height":!e.isUnfold&&e.labelList&&e.isShowBtn}])},[f((a(),n("div",z,[(a(!0),n(i,null,c(e.labelList,(e=>(a(),m(r(k),{checkable:"",key:e.labelCode,checked:e.isSelect,"onUpdate:checked":l=>((e,l)=>{if(l.isSelect=e,e)D.value.push(l.labelShowText);else{const e=D.value.findIndex((e=>e===l.labelShowText));e>-1&&D.value.splice(e,1)}H("update:value",D.value.join("|#|"))})(l,e),style:b(K(e))},{default:v((()=>[h(r(S),{placement:"top-start",duration:0},{trigger:v((()=>[d("span",null,u(e.labelShowText),1)])),default:v((()=>[d("span",null,u(e.labelShowText),1)])),_:2},1024)])),_:2},1032,["checked","onUpdate:checked","style"])))),128))])),[[r(U),l=>((e,l)=>{let t=e.offsetHeight||0;t&&(t>80?l.isShowBtn=!0:(l.isShowBtn=!1,l.isUnfold=!1))})(l,e)]])],2),e.labelList&&e.isShowBtn?(a(),n("div",I,[d("span",{class:"operate-btn",onClick:y((l=>(e=>{e.isUnfold=!e.isUnfold})(e)),["stop"])},[e.isUnfold?(a(),n(i,{key:0},[A,h(r(w),{component:r(C),size:"16"},null,8,["component"])],64)):(a(),n(i,{key:1},[G,h(r(w),{component:r(x),size:"16"},null,8,["component"])],64))],8,q)])):g("v-if",!0)])))),128))]))}});export{H as default};
@@ -9,9 +9,6 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: StringConstructor;
10
10
  default: string;
11
11
  };
12
- filterApiConfig: {
13
- type: ObjectConstructor;
14
- };
15
12
  }, {
16
13
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
17
14
  $attrs: {
@@ -25,14 +22,12 @@ declare const _default: import("vue").DefineComponent<{
25
22
  type: StringConstructor;
26
23
  default: string;
27
24
  };
28
- filterApiConfig: {
29
- type: ObjectConstructor;
30
- };
31
25
  }>> & {
32
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
33
27
  }>>;
34
28
  emit: (event: "update:value", ...args: any[]) => void;
35
29
  tagList: import("vue").Ref<never[]>;
30
+ filterApiConfig: import("../../../../..").AnyObject;
36
31
  valueCp: import("vue").WritableComputedRef<string[]>;
37
32
  optionList: import("vue").ComputedRef<SelectOption[]>;
38
33
  initTagList: () => Promise<void>;
@@ -45,9 +40,6 @@ declare const _default: import("vue").DefineComponent<{
45
40
  type: StringConstructor;
46
41
  default: string;
47
42
  };
48
- filterApiConfig: {
49
- type: ObjectConstructor;
50
- };
51
43
  }>> & {
52
44
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
53
45
  }, {
@@ -0,0 +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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as l,inject as a,computed as o,openBlock as s,createBlock as u,unref as n,mergeProps as i,isRef as r}from"vue";import{NSelect as p}from"naive-ui";import c from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as f}from"../../../constants/index.js";var v=e({__name:"LabelOut",props:{componentCfg:{type:Object},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:v}){const m=e,{handleGetConfigApi:h}=c(),d=t(),b=l([]),g=a(f),y=o({set(e){const t=e?e.join("|#|"):e;v("update:value",t)},get:()=>m.value?m.value.split("|#|"):[]}),x=o((()=>{if(b.value&&b.value.length>0){let e=[],t=[];return b.value.forEach((l=>{l.labelList.forEach((l=>{e.includes(l.labelShowText)||(e.push(l.labelShowText),t.push({label:l.labelShowText,value:l.labelShowText}))}))})),t}return[]}));return(async()=>{try{const{widgetCfg:e={}}=m.componentCfg,{classifyStr:t=""}=e;let l=await h({classifyStr:t},"requestListByClassify",{},g);if(l){const{data:e}=l,{list:t=[]}=e;b.value=t}}catch(e){console.log(e)}})(),(e,t)=>(s(),u(n(p),i({to:"body"},n(d),{value:n(y),"onUpdate:value":t[0]||(t[0]=e=>r(y)?y.value=e:null),options:n(x)}),null,16,["value","options"]))}});export{v as default};
@@ -3,17 +3,11 @@ declare const _default: import("vue").DefineComponent<{
3
3
  value: {
4
4
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
5
5
  };
6
- filterApiConfig: {
7
- type: ObjectConstructor;
8
- };
9
6
  }, {
10
7
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
11
8
  value: {
12
9
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
13
10
  };
14
- filterApiConfig: {
15
- type: ObjectConstructor;
16
- };
17
11
  }>> & {
18
12
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
19
13
  onChangeInitState?: ((...args: any[]) => any) | undefined;
@@ -26,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
26
20
  selectOptions: import("vue").Ref<any[]>;
27
21
  isRemote: import("vue").Ref<boolean>;
28
22
  isLoading: import("vue").Ref<boolean>;
23
+ filterApiConfig: import("../../../../..").AnyObject;
29
24
  valueCp: import("vue").WritableComputedRef<unknown>;
30
25
  searchOptions: (keyword: string) => Promise<any>;
31
26
  _handleSearch: (query: string) => Promise<void>;
@@ -43,9 +38,6 @@ declare const _default: import("vue").DefineComponent<{
43
38
  value: {
44
39
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
45
40
  };
46
- filterApiConfig: {
47
- type: ObjectConstructor;
48
- };
49
41
  }>> & {
50
42
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
51
43
  onChangeInitState?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as l,createBlock as i,unref as o,mergeProps as u,isRef as r,h as s}from"vue";import{NSelect as c,NTag as p}from"naive-ui";import{useDebounceFn as v}from"@vueuse/core";import d from"../../../hooks/useMixins.js";import f from"../../../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:f}){const m=e,{handleGetConfigApi:y}=d(),g=a(),h=t([]),b=t(!1),w=t(!1),A=n({set(e){const a=Array.isArray(e)?e:e?[e]:null;f("update:value",a)},get(){var e;if(Array.isArray(m.value)&&m.value.length>0){const{multiple:e}=g;return e||1!=m.value.length?m.value:m.value[0]}return null!=(e=m.value)?e:null}});async function I(e){try{if(g.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:o}=g.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),w.value=!0;let r=await y(u,"requestDynamicSelect",{},m.filterApiConfig);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[i[0]],value:e[o]})));return h.value=t,t}}}catch(e){console.log(e)}finally{w.value=!1}}const S=v((async e=>{await async function(e){const{manualMapping:a}=g;if(!a){const a=e.trim();await I(a)}}(e)}),300);async function C(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=g;if(e&&Array.isArray(t))return b.value=!1,void(h.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&m.filterApiConfig&&(b.value=!0,await I(""))}function O(e){const{manualMapping:a}=g;if(a)return s("div",e.label);const{showKeys:t=[]}=g.dynamicOptionInfo;return g.dynamicOptionInfo&&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 _({option:e,handleClose:a}){const{multiple:t}=g;return t?s(p,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=g;await C();const i=Array.isArray(m.value)?m.value.length>0:m.value;if(!l&&!i){if(e)return f("update:value",a),void f("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];f("update:value",[e.value]),f("changeInitState",n,!0);break}}}}(),(e,a)=>(l(),i(o(c),u(o(g),{value:o(A),"onUpdate:value":a[0]||(a[0]=e=>r(A)?A.value=e:null),loading:w.value,options:h.value,remote:b.value,"render-label":O,"render-tag":_,onSearch:o(S),onClear:C}),null,16,["value","loading","options","remote","onSearch"]))}}),[["__file","Select.vue"]]);export{m as default};
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};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as a,ref as t,inject as n,computed as l,openBlock as o,createBlock as i,unref as u,mergeProps as r,isRef as s,h as c}from"vue";import{NSelect as p,NTag as v}from"naive-ui";import{useDebounceFn as d}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as m}from"../../../constants/index.js";var y=e({__name:"Select",props:{value:{type:[Array,String,Number]}},emits:["update:value","changeInitState"],setup(e,{emit:y}){const g=e,{handleGetConfigApi:h}=f(),b=a(),w=t([]),I=t(!1),S=t(!1),A=n(m),O=l({set(e){const a=Array.isArray(e)?e:e?[e]:null;y("update:value",a)},get(){var e;if(Array.isArray(g.value)&&g.value.length>0){const{multiple:e}=b;return e||1!=g.value.length?g.value:g.value[0]}return null!=(e=g.value)?e:null}});async function k(e){try{if(b.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:l,showKeys:o,valueKey:i}=b.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(u[l[0]]=e),S.value=!0;let r=await h(u,"requestDynamicSelect",{},A);if(r){const{fieldList:e=[],rows:a=[]}=r,t=a.map((e=>({...e,label:e[o[0]],value:e[i]})));return w.value=t,t}}}catch(e){console.log(e)}finally{S.value=!1}}const K=d((async e=>{await async function(e){const{manualMapping:a}=b;if(!a){const a=e.trim();await k(a)}}(e)}),300);async function M(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=b;if(e&&Array.isArray(t))return I.value=!1,void(w.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&A&&(I.value=!0,await k(""))}function x(e){const{manualMapping:a}=b;if(a)return c("div",e.label);const{showKeys:t=[]}=b.dynamicOptionInfo;return b.dynamicOptionInfo&&t.length>0?c("div",{class:"select-widget-dynamic-option"},t.map((a=>c("span",{class:"select-widget-dynamic-item"},e[a])))):c("div",e.label)}function C({option:e,handleClose:a}){const{multiple:t}=b;return t?c(v,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>c("div",e.label)}):c("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:l}=b;await M();const o=Array.isArray(g.value)?g.value.length>0:g.value;if(!l&&!o){if(e)return y("update:value",a),void y("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=w.value[0];y("update:value",[e.value]),y("changeInitState",n,!0);break}}}}(),(e,a)=>(o(),i(u(p),r(u(b),{value:u(O),"onUpdate:value":a[0]||(a[0]=e=>s(O)?O.value=e:null),to:"body",loading:S.value,options:w.value,remote:I.value,"render-label":x,"render-tag":C,onSearch:u(K),onClear:M}),null,16,["value","loading","options","remote","onSearch"]))}});export{y as default};