cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15

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 (425) hide show
  1. package/README.md +87 -87
  2. package/es/_virtual/plugin-vue_export-helper.js +1 -9
  3. package/es/components/annotation-edit/index.js +1 -10
  4. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
  5. package/es/components/big-table/index.js +1 -15
  6. package/es/components/big-table/src/BigTable.vue.js +1 -6
  7. package/es/components/big-table/src/BigTable.vue2.js +1 -2498
  8. package/es/components/big-table/src/bigTableEmits.js +1 -53
  9. package/es/components/big-table/src/bigTableProps.js +1 -120
  10. package/es/components/big-table/src/bigTableState.js +1 -62
  11. package/es/components/big-table/src/components/NoData.vue.js +1 -74
  12. package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
  13. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
  14. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
  15. package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
  16. package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
  17. package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
  18. package/es/components/big-table/src/components/input-button.vue.js +1 -39
  19. package/es/components/big-table/src/components/separate.vue.js +1 -30
  20. package/es/components/big-table/src/constants/index.js +1 -3
  21. package/es/components/big-table/src/hooks/index.js +1 -9
  22. package/es/components/big-table/src/hooks/useAnchor.js +1 -49
  23. package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
  24. package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
  25. package/es/components/big-table/src/hooks/useEdit.js +1 -133
  26. package/es/components/big-table/src/hooks/useEvent.js +1 -95
  27. package/es/components/big-table/src/hooks/useFormat.js +1 -507
  28. package/es/components/big-table/src/hooks/useNestTable.js +1 -86
  29. package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
  30. package/es/components/big-table/src/hooks/useTableParse.js +1 -142
  31. package/es/components/big-table/src/utils.js +1 -618
  32. package/es/components/bpmn-workflow/index.js +1 -10
  33. package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
  34. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
  35. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
  36. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
  37. package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
  38. package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
  39. package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
  40. package/es/components/button-print/index.js +1 -12
  41. package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
  42. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
  43. package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
  44. package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
  45. package/es/components/button-print/src/components/Preview.vue.js +1 -6
  46. package/es/components/button-print/src/components/Preview.vue2.js +1 -67
  47. package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
  48. package/es/components/button-print/src/utils/browserPrint.js +1 -43
  49. package/es/components/button-print/src/utils/dialog.js +1 -121
  50. package/es/components/button-print/src/utils/index.js +1 -2
  51. package/es/components/button-print/src/utils/print.d.ts +5 -1
  52. package/es/components/button-print/src/utils/print.js +1 -432
  53. package/es/components/editor/index.js +1 -10
  54. package/es/components/editor/src/Editor.js +1 -77
  55. package/es/components/fabric-chart/index.js +1 -10
  56. package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
  57. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
  58. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
  59. package/es/components/fabric-chart/src/components/useStyle.js +1 -36
  60. package/es/components/fabric-chart/src/hooks/constant.js +1 -78
  61. package/es/components/fabric-chart/src/hooks/index.js +1 -11
  62. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
  63. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
  64. package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
  65. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
  66. package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
  67. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
  68. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
  69. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
  70. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
  71. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
  72. package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
  73. package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
  74. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
  75. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
  76. package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
  77. package/es/components/fabric-chart/src/utils/index.js +1 -15624
  78. package/es/components/fabric-chart/src/utils/utils.js +1 -32
  79. package/es/components/field-set/index.js +1 -10
  80. package/es/components/field-set/src/FieldSet.vue.js +1 -470
  81. package/es/components/form-config/index.d.ts +1 -1
  82. package/es/components/form-config/index.js +1 -10
  83. package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
  84. package/es/components/form-config/src/FormConfig.vue.js +1 -124
  85. package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
  86. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
  87. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
  88. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
  89. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
  90. package/es/components/form-config/src/components/index.js +1 -6
  91. package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
  92. package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
  93. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
  94. package/es/components/form-config/src/components/renderer/index.js +1 -3
  95. package/es/components/form-config/src/constants/index.js +1 -61
  96. package/es/components/form-config/src/hooks/index.js +1 -3
  97. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
  98. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
  99. package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
  100. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
  101. package/es/components/form-config/src/utils/index.js +1 -26
  102. package/es/components/form-render/index.js +1 -30
  103. package/es/components/form-render/src/FormRender.vue.js +1 -239
  104. package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
  105. package/es/components/form-render/src/components/renderer/combination.js +1 -114
  106. package/es/components/form-render/src/components/renderer/complex.js +1 -37
  107. package/es/components/form-render/src/components/renderer/date.js +1 -171
  108. package/es/components/form-render/src/components/renderer/formItem.js +1 -128
  109. package/es/components/form-render/src/components/renderer/index.js +1 -43
  110. package/es/components/form-render/src/components/renderer/input.js +1 -50
  111. package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
  112. package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
  113. package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
  114. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
  115. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
  116. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
  117. package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
  118. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
  119. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
  120. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
  121. package/es/components/form-render/src/components/renderer/select.js +1 -176
  122. package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
  123. package/es/components/form-render/src/components/renderer/slider.js +1 -38
  124. package/es/components/form-render/src/components/renderer/switch.js +1 -48
  125. package/es/components/form-render/src/components/renderer/textarea.js +1 -36
  126. package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
  127. package/es/components/form-render/src/constants/index.js +1 -59
  128. package/es/components/form-render/src/hooks/index.js +1 -15
  129. package/es/components/form-render/src/hooks/useAnchor.js +1 -99
  130. package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
  131. package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
  132. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
  133. package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
  134. package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
  135. package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
  136. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
  137. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
  138. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
  139. package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
  140. package/es/components/form-render/src/hooks/useFormContext.js +1 -70
  141. package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
  142. package/es/components/form-render/src/hooks/useFormField.js +1 -13
  143. package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
  144. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
  145. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
  146. package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
  147. package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
  148. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
  149. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
  150. package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
  151. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  152. package/es/components/form-render/src/types/fieldItem.js +1 -1
  153. package/es/components/form-render/src/types/index.js +1 -1
  154. package/es/components/form-render/src/utils/business.js +1 -114
  155. package/es/components/form-render/src/utils/dom.js +1 -38
  156. package/es/components/form-render/src/utils/index.js +1 -241
  157. package/es/components/form-render/src/utils/schema.js +1 -105
  158. package/es/components/grid/index.js +1 -11
  159. package/es/components/grid/src/Grid.js +1 -28
  160. package/es/components/grid/src/hooks.js +1 -168
  161. package/es/components/iho-table/index.js +1 -36
  162. package/es/components/iho-table/src/IhoTable.vue.js +1 -157
  163. package/es/components/iho-table/src/constants/index.js +1 -157
  164. package/es/components/iho-table/src/hooks/export.js +1 -2
  165. package/es/components/iho-table/src/hooks/index.js +1 -2
  166. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
  167. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
  168. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
  169. package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
  170. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
  171. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
  172. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
  173. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
  174. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
  175. package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
  176. package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
  177. package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
  178. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
  179. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
  180. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
  181. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
  182. package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
  183. package/es/components/iho-table/src/plugins/index.js +1 -47
  184. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
  185. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
  186. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
  187. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
  188. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
  189. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
  190. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
  191. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
  192. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
  193. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
  194. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
  195. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
  196. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
  197. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
  198. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
  199. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
  200. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
  201. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
  202. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
  203. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
  204. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
  205. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
  206. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
  207. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
  208. package/es/components/iho-table/src/types/index.js +1 -1
  209. package/es/components/iho-table/src/types/pluginType.js +1 -16
  210. package/es/components/iho-table/src/utils/index.js +1 -169
  211. package/es/components/index.js +1 -119
  212. package/es/components/info-header/index.js +1 -10
  213. package/es/components/info-header/src/HiddenContent.vue.js +1 -70
  214. package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
  215. package/es/components/info-header/src/InfoHeader.vue.js +1 -313
  216. package/es/components/insurance-sdk/index.js +1 -1
  217. package/es/components/insurance-sdk/src/constants/index.js +1 -160
  218. package/es/components/insurance-sdk/src/utils/index.js +1 -1
  219. package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
  220. package/es/components/keyboard/index.d.ts +4 -21
  221. package/es/components/keyboard/index.js +1 -10
  222. package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
  223. package/es/components/keyboard/src/Keyboard.vue.js +1 -164
  224. package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
  225. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
  226. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
  227. package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
  228. package/es/components/keyboard/src/utils/index.js +1 -5
  229. package/es/components/map/index.js +1 -10
  230. package/es/components/map/src/Map.vue.js +1 -336
  231. package/es/components/recommend-search/index.js +1 -10
  232. package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
  233. package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
  234. package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
  235. package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
  236. package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
  237. package/es/components/recommend-search/src/constant/index.js +1 -7
  238. package/es/components/scale-view/index.js +1 -35
  239. package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
  240. package/es/components/scale-view/src/ScaleView.vue.js +1 -429
  241. package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
  242. package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
  243. package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
  244. package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
  245. package/es/components/scale-view/src/components/NoData.vue.js +1 -74
  246. package/es/components/scale-view/src/components/ScaleScore.js +1 -63
  247. package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
  248. package/es/components/scale-view/src/components/formitem/address.js +1 -3993
  249. package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
  250. package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
  251. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
  252. package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
  253. package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
  254. package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
  255. package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
  256. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
  257. package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
  258. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
  259. package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
  260. package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
  261. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
  262. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
  263. package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
  264. package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
  265. package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
  266. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
  267. package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
  268. package/es/components/scale-view/src/hooks/use-component.js +1 -86
  269. package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
  270. package/es/components/scale-view/src/hooks/use-event.js +1 -129
  271. package/es/components/scale-view/src/hooks/use-noData.js +1 -41
  272. package/es/components/scale-view/src/utils/judge-types.js +1 -36
  273. package/es/components/search-cascader/index.js +1 -10
  274. package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
  275. package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
  276. package/es/components/search-cascader/src/components/index.js +1 -1
  277. package/es/components/search-cascader/src/constants/index.js +1 -11
  278. package/es/components/search-cascader/src/hooks/index.js +1 -1
  279. package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
  280. package/es/components/search-cascader/src/utils/index.js +1 -11
  281. package/es/components/select-label/index.js +1 -15
  282. package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
  283. package/es/components/select-label/src/SelectLabel.vue.js +1 -6
  284. package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
  285. package/es/components/select-label/src/components/label-classify.vue.js +1 -132
  286. package/es/components/select-person/index.js +1 -10
  287. package/es/components/select-person/src/SelectPerson.vue.js +1 -6
  288. package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
  289. package/es/components/select-person/src/utils/index.js +1 -58
  290. package/es/components/shortcut-provider/index.js +1 -12
  291. package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
  292. package/es/components/shortcut-provider/src/constants/index.js +1 -8
  293. package/es/components/shortcut-provider/src/hooks/index.js +1 -2
  294. package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
  295. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
  296. package/es/components/shortcut-provider/src/utils/index.js +1 -92
  297. package/es/components/shortcut-setter/index.d.ts +1 -1
  298. package/es/components/shortcut-setter/index.js +1 -10
  299. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  300. package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
  301. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
  302. package/es/components/steps-wheel/index.js +1 -10
  303. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
  304. package/es/components/table-filter/index.js +1 -21
  305. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
  306. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
  307. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
  308. package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
  309. package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
  310. package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
  311. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
  312. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
  313. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
  314. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
  315. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
  316. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
  317. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
  318. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
  319. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
  320. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
  321. package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
  322. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
  323. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
  324. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
  325. package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
  326. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
  327. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
  328. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
  329. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
  330. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
  331. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
  332. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
  333. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
  334. package/es/components/table-filter/src/const/dataOptions.js +1 -107
  335. package/es/components/table-filter/src/const/index.js +1 -5
  336. package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
  337. package/es/components/table-filter/src/directive/preventReClick.js +1 -14
  338. package/es/components/table-filter/src/directive/resize.js +1 -12
  339. package/es/components/table-filter/src/hooks/export.js +1 -1
  340. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
  341. package/es/components/table-filter/src/hooks/useMixins.js +1 -532
  342. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
  343. package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
  344. package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
  345. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
  346. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
  347. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
  348. package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
  349. package/es/components/table-filter/src/tool/options.js +1 -200
  350. package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
  351. package/es/components/table-filter/src/tool/time-domain.js +1 -100
  352. package/es/components/table-filter/src/tool/transformData.js +1 -169
  353. package/es/components/table-filter/src/tool/utils.js +1 -29
  354. package/es/components/table-filter/src/types/enums.js +1 -67
  355. package/es/components/time-line/index.js +1 -10
  356. package/es/components/time-line/src/TimeLine.vue.js +1 -70
  357. package/es/components/vod-chunk-upload/index.js +1 -14
  358. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
  359. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
  360. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
  361. package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
  362. package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
  363. package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
  364. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
  365. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
  366. package/es/env.d.ts +24 -24
  367. package/es/shared/assets/img/failure.png.js +1 -3
  368. package/es/shared/assets/img/no-permission.png.js +1 -3
  369. package/es/shared/assets/img/nodata.png.js +1 -3
  370. package/es/shared/assets/img/notfound.png.js +1 -3
  371. package/es/shared/assets/img/qr.png.js +1 -3
  372. package/es/shared/assets/img/success.png.js +1 -3
  373. package/es/shared/assets/img/video.png.js +1 -3
  374. package/es/shared/assets/img/video_default_cover.png.js +1 -3
  375. package/es/shared/assets/img/xb_big.png.js +1 -3
  376. package/es/shared/assets/img/xb_small.png.js +1 -3
  377. package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
  378. package/es/shared/components/SelectPage/index.js +1 -2
  379. package/es/shared/components/SlotRender/SlotRender.js +1 -35
  380. package/es/shared/components/SlotRender/index.js +1 -2
  381. package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
  382. package/es/shared/components/SvgIcon/index.js +1 -2
  383. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
  384. package/es/shared/components/TextOverTooltip/index.js +1 -2
  385. package/es/shared/components/VueDraggable/index.js +1 -2
  386. package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
  387. package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
  388. package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
  389. package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
  390. package/es/shared/components/VueDraggable/src/util/console.js +1 -9
  391. package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
  392. package/es/shared/components/VueDraggable/src/util/string.js +1 -11
  393. package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
  394. package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
  395. package/es/shared/components/no-data/NoData.vue.js +1 -74
  396. package/es/shared/components/no-data/index.js +1 -2
  397. package/es/shared/components/player-vod/player.js +1 -121
  398. package/es/shared/components/player-vod/video-modal.js +1 -91
  399. package/es/shared/global/variable.js +1 -3
  400. package/es/shared/utils/anime.js +1 -129
  401. package/es/shared/utils/colorLog.js +1 -53
  402. package/es/shared/utils/index.js +1 -167
  403. package/es/shared/utils/loadViewer.js +1 -11
  404. package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
  405. package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
  406. package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
  407. package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
  408. package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
  409. package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
  410. package/es/shared/utils/tapable/Hook.js +1 -140
  411. package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
  412. package/es/shared/utils/tapable/SyncBailHook.js +1 -19
  413. package/es/shared/utils/tapable/SyncHook.js +1 -34
  414. package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
  415. package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
  416. package/es/shared/utils/utilExpand.js +1 -781
  417. package/es/shared/utils/vexutils.js +1 -59
  418. package/package.json +2 -2
  419. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  420. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  421. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  422. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  423. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  424. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  425. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,10 +1 @@
1
- import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
2
- import { safeComponentRegister } from '../../shared/utils/index.js';
3
- import script from './src/RecommendSearch.vue.js';
4
-
5
- const RecommendSearch = script;
6
- RecommendSearch.install = function(app) {
7
- safeComponentRegister(app, RecommendSearch, COMPONENT_NAMESPACE + "RecommendSearch");
8
- };
9
-
10
- export { RecommendSearch as default };
1
+ import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import o from"./src/RecommendSearch.vue.js";const a=o;a.install=function(o){r(o,a,e+"RecommendSearch")};export{a as default};
@@ -1,63 +1 @@
1
- import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, isRef, withCtx, renderSlot } from 'vue';
2
- import { useVModel } from '@vueuse/core';
3
- import RecommendInput from './components/RecommendInput.vue.js';
4
- import RecommendSelect from './components/RecommendSelect.vue.js';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
6
-
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "RecommendSearch",
9
- props: {
10
- mode: { type: String, default: "input" },
11
- value: { type: [String, Number] },
12
- labelKey: { type: String, default: "label" },
13
- valueKey: { type: String, default: "value" },
14
- placeholder: { type: String },
15
- editPlaceholder: { type: String, default: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22" },
16
- clearable: { type: Boolean, default: true },
17
- options: { type: Array, default: () => [] },
18
- commonList: { type: Array, default: () => [] },
19
- recentList: { type: Array, default: () => [] },
20
- recommendDeletable: { type: Boolean, default: true },
21
- inputProps: { type: Object },
22
- popProps: { type: Object }
23
- },
24
- emits: [
25
- "update:value",
26
- "search",
27
- "delete",
28
- "choose",
29
- "clear",
30
- "openMenu",
31
- "closeMenu"
32
- ],
33
- setup(__props, { emit: emits }) {
34
- const props = __props;
35
- const valueRef = useVModel(props, "value", emits);
36
- const componentMap = {
37
- input: RecommendInput,
38
- select: RecommendSelect
39
- };
40
- const currentComponent = computed(() => {
41
- return componentMap[props.mode];
42
- });
43
- return (_ctx, _cache) => {
44
- return openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), mergeProps(_ctx.$props, {
45
- value: unref(valueRef),
46
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(valueRef) ? valueRef.value = $event : null),
47
- onSearch: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("search", $event)),
48
- onChoose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("choose", $event)),
49
- onOpenMenu: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("openMenu", $event)),
50
- onCloseMenu: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("closeMenu", $event)),
51
- onDelete: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("delete", $event))
52
- }), {
53
- empty: withCtx(() => [
54
- renderSlot(_ctx.$slots, "empty")
55
- ]),
56
- _: 3
57
- }, 16, ["value"]);
58
- };
59
- }
60
- });
61
- var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendSearch.vue"]]);
62
-
63
- export { script as default };
1
+ import{defineComponent as e,computed as t,openBlock as o,createBlock as l,resolveDynamicComponent as p,unref as r,mergeProps as n,isRef as a,withCtx as u,renderSlot as m}from"vue";import{useVModel as c}from"@vueuse/core";import i from"./components/RecommendInput.vue.js";import s from"./components/RecommendSelect.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";var y=d(e({__name:"RecommendSearch",props:{mode:{type:String,default:"input"},value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},clearable:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0},inputProps:{type:Object},popProps:{type:Object}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:d}){const y=e,v=c(y,"value",d),f={input:i,select:s},h=t((()=>f[y.mode]));return(e,t)=>(o(),l(p(r(h)),n(e.$props,{value:r(v),"onUpdate:value":t[0]||(t[0]=e=>a(v)?v.value=e:null),onSearch:t[1]||(t[1]=t=>e.$emit("search",t)),onChoose:t[2]||(t[2]=t=>e.$emit("choose",t)),onOpenMenu:t[3]||(t[3]=t=>e.$emit("openMenu",t)),onCloseMenu:t[4]||(t[4]=t=>e.$emit("closeMenu",t)),onDelete:t[5]||(t[5]=t=>e.$emit("delete",t))}),{empty:u((()=>[m(e.$slots,"empty")])),_:3},16,["value"]))}}),[["__file","RecommendSearch.vue"]]);export{y as default};
@@ -1,157 +1 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, unref, mergeProps, isRef, withCtx, createVNode, createElementVNode, renderSlot } from 'vue';
2
- import { uuidGenerator } from '../../../../shared/utils/index.js';
3
- import { useDebounceFn, onClickOutside } from '@vueuse/core';
4
- import { NPopover, NInput, NSpin } from 'naive-ui';
5
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
6
-
7
- const _hoisted_1 = ["id"];
8
- const _sfc_main = /* @__PURE__ */ defineComponent({
9
- __name: "BaseSearch",
10
- props: {
11
- displayValue: { type: String },
12
- valueFormatter: {
13
- type: Function
14
- },
15
- show: { type: Boolean },
16
- loading: { type: Boolean },
17
- placeholder: { type: String, default: "\u8BF7\u8F93\u5165" },
18
- clearable: { type: Boolean, default: true },
19
- inputProps: { type: Object, default: () => ({}) },
20
- popProps: { type: Object, default: () => ({}) },
21
- clearPatternOnOpenMenu: { type: Boolean, default: true }
22
- },
23
- emits: ["update:show", "clear", "search", "openMenu", "closeMenu"],
24
- setup(__props, { expose, emit: emits }) {
25
- const props = __props;
26
- const uuid = uuidGenerator();
27
- const search = useDebounceFn((content = "") => {
28
- emits("search", content);
29
- }, 300);
30
- const popoverRef = ref();
31
- const _show = ref(props.show);
32
- const show = computed({
33
- get() {
34
- return _show.value || props.show;
35
- },
36
- set(value) {
37
- emits("update:show", value);
38
- _show.value = value;
39
- }
40
- });
41
- const inputRef = ref();
42
- const patternContent = ref("");
43
- const displayValueRef = computed({
44
- get() {
45
- if (show.value)
46
- return patternContent.value;
47
- return props.displayValue;
48
- },
49
- set(value) {
50
- patternContent.value = value || "";
51
- search(value);
52
- }
53
- });
54
- function openMenuAtInput(evt) {
55
- var _a;
56
- if (((_a = evt.target) == null ? void 0 : _a.tagName) !== "INPUT")
57
- return;
58
- openMenu();
59
- }
60
- function openMenu() {
61
- if (show.value)
62
- return;
63
- show.value = true;
64
- emits("openMenu");
65
- if (props.clearPatternOnOpenMenu) {
66
- patternContent.value = "";
67
- }
68
- }
69
- function closeMenu() {
70
- var _a;
71
- show.value = false;
72
- (_a = inputRef.value) == null ? void 0 : _a.blur();
73
- emits("closeMenu");
74
- }
75
- function onClear() {
76
- emits("clear");
77
- }
78
- onClickOutside(inputRef, (evt) => {
79
- var _a;
80
- if (!show.value)
81
- return;
82
- const _evt = evt;
83
- if (!_evt.target)
84
- return closeMenu();
85
- if (isInPopper(_evt.target)) {
86
- (_a = inputRef.value) == null ? void 0 : _a.focus();
87
- return;
88
- }
89
- closeMenu();
90
- function isInPopper(targetEle) {
91
- let result = false;
92
- let current = targetEle;
93
- while (current) {
94
- if (current.id === uuid) {
95
- result = true;
96
- break;
97
- }
98
- current = current.parentElement;
99
- }
100
- return result;
101
- }
102
- });
103
- expose({
104
- setPattern(value) {
105
- patternContent.value = value;
106
- },
107
- closeMenu,
108
- openMenu
109
- });
110
- return (_ctx, _cache) => {
111
- return openBlock(), createBlock(unref(NPopover), mergeProps({
112
- trigger: "manual",
113
- class: "recommend-search",
114
- placement: "bottom-start",
115
- show: unref(show),
116
- "onUpdate:show": _cache[2] || (_cache[2] = ($event) => isRef(show) ? show.value = $event : null),
117
- "show-arrow": false,
118
- ref_key: "popoverRef",
119
- ref: popoverRef,
120
- width: "trigger"
121
- }, __props.popProps), {
122
- trigger: withCtx(() => [
123
- createVNode(unref(NInput), mergeProps(__props.inputProps, {
124
- placeholder: __props.placeholder,
125
- clearable: __props.clearable,
126
- onClear,
127
- onFocus: openMenuAtInput,
128
- onClick: openMenuAtInput,
129
- onKeydown: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("keydown", $event)),
130
- ref_key: "inputRef",
131
- ref: inputRef,
132
- value: unref(displayValueRef),
133
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(displayValueRef) ? displayValueRef.value = $event : null)
134
- }), null, 16, ["placeholder", "clearable", "value"])
135
- ]),
136
- default: withCtx(() => [
137
- createVNode(unref(NSpin), { show: __props.loading }, {
138
- default: withCtx(() => [
139
- createElementVNode("section", {
140
- id: unref(uuid),
141
- class: "base-search__menu",
142
- style: { "min-height": "100px" }
143
- }, [
144
- renderSlot(_ctx.$slots, "menu")
145
- ], 8, _hoisted_1)
146
- ]),
147
- _: 3
148
- }, 8, ["show"])
149
- ]),
150
- _: 3
151
- }, 16, ["show"]);
152
- };
153
- }
154
- });
155
- var BaseSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "BaseSearch.vue"]]);
156
-
157
- export { BaseSearch as default };
1
+ import{defineComponent as e,ref as a,computed as t,openBlock as l,createBlock as o,unref as r,mergeProps as n,isRef as u,withCtx as s,createVNode as p,createElementVNode as i,renderSlot as c}from"vue";import{uuidGenerator as v}from"../../../../shared/utils/index.js";import{useDebounceFn as d,onClickOutside as f}from"@vueuse/core";import{NPopover as h,NInput as m,NSpin as g}from"naive-ui";import y from"../../../../_virtual/plugin-vue_export-helper.js";const w=["id"];var _=y(e({__name:"BaseSearch",props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","clear","search","openMenu","closeMenu"],setup(e,{expose:y,emit:_}){const b=e,M=v(),P=d(((e="")=>{_("search",e)}),300),B=a(),O=a(b.show),k=t({get:()=>O.value||b.show,set(e){_("update:show",e),O.value=e}}),x=a(),j=a(""),S=t({get:()=>k.value?j.value:b.displayValue,set(e){j.value=e||"",P(e)}});function F(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&U()}function U(){k.value||(k.value=!0,_("openMenu"),b.clearPatternOnOpenMenu&&(j.value=""))}function C(){var e;k.value=!1,null==(e=x.value)||e.blur(),_("closeMenu")}function N(){_("clear")}return f(x,(e=>{var a;if(!k.value)return;const t=e;if(!t.target)return C();!function(e){let a=!1,t=e;for(;t;){if(t.id===M){a=!0;break}t=t.parentElement}return a}(t.target)?C():null==(a=x.value)||a.focus()})),y({setPattern(e){j.value=e},closeMenu:C,openMenu:U}),(a,t)=>(l(),o(r(h),n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:r(k),"onUpdate:show":t[2]||(t[2]=e=>u(k)?k.value=e:null),"show-arrow":!1,ref_key:"popoverRef",ref:B,width:"trigger"},e.popProps),{trigger:s((()=>[p(r(m),n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:N,onFocus:F,onClick:F,onKeydown:t[0]||(t[0]=e=>a.$emit("keydown",e)),ref_key:"inputRef",ref:x,value:r(S),"onUpdate:value":t[1]||(t[1]=e=>u(S)?S.value=e:null)}),null,16,["placeholder","clearable","value"])])),default:s((()=>[p(r(g),{show:e.loading},{default:s((()=>[i("section",{id:r(M),class:"base-search__menu",style:{"min-height":"100px"}},[c(a.$slots,"menu")],8,w)])),_:3},8,["show"])])),_:3},16,["show"]))}}),[["__file","BaseSearch.vue"]]);export{_ as default};
@@ -1,125 +1 @@
1
- import { defineComponent, ref, watch, onMounted, computed, openBlock, createElementBlock, createVNode, mergeProps, unref, withCtx, Fragment, renderSlot, createCommentVNode, createElementVNode, renderList, toDisplayString } from 'vue';
2
- import { useVModel, useVirtualList } from '@vueuse/core';
3
- import RecommendMenu from './RecommendMenu.vue.js';
4
- import BaseSearch from './BaseSearch.vue.js';
5
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
6
-
7
- const _hoisted_1 = { class: "recommend-search" };
8
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("section", { class: "recommend-search__empty" }, "\u6682\u65E0\u6570\u636E", -1);
9
- const _hoisted_3 = ["onClick"];
10
- const _hoisted_4 = ["title"];
11
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("section", { class: "recommend-search__empty" }, "\u6682\u65E0\u6570\u636E", -1);
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- __name: "RecommendInput",
14
- props: {
15
- value: { type: String },
16
- options: { type: Array, default: () => [] },
17
- placeholder: { type: String, default: "\u8BF7\u8F93\u5165" },
18
- clearable: { type: Boolean, default: true },
19
- commonList: { type: Array, default: () => [] },
20
- recentList: { type: Array, default: () => [] },
21
- recommendDeletable: { type: Boolean, default: true }
22
- },
23
- emits: ["update:value", "search", "delete", "choose", "clear", "openMenu", "closeMenu"],
24
- setup(__props, { emit: emits }) {
25
- const props = __props;
26
- const baseSearchRef = ref();
27
- function setPattern(value = "") {
28
- var _a;
29
- (_a = baseSearchRef.value) == null ? void 0 : _a.setPattern(value);
30
- }
31
- const valueRef = useVModel(props, "value", emits);
32
- watch(valueRef, setPattern);
33
- onMounted(() => setPattern(valueRef.value));
34
- const parsedOptions = computed(() => {
35
- if (valueRef.value) {
36
- return props.options;
37
- }
38
- return props.options.filter((option) => {
39
- return props.commonList.every(notInList) && props.recentList.every(notInList);
40
- function notInList(item) {
41
- return item.itemObj !== option.itemObj;
42
- }
43
- });
44
- });
45
- function search(value) {
46
- valueRef.value = value;
47
- emits("search", value);
48
- }
49
- function onOpenMenu() {
50
- emits("openMenu");
51
- }
52
- function onCloseMenu() {
53
- emits("closeMenu");
54
- }
55
- function onChoose({ type, value }) {
56
- var _a;
57
- valueRef.value = value.itemObj;
58
- (_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
59
- emits("choose", { type, value: value.itemObj });
60
- }
61
- const { list, wrapperProps, containerProps } = useVirtualList(parsedOptions, { itemHeight: 32, overscan: 3 });
62
- function onKeydown(event) {
63
- if (!["ArrowUp", "ArrowDown", "Enter"].includes(event.key))
64
- return;
65
- console.log(event);
66
- }
67
- return (_ctx, _cache) => {
68
- return openBlock(), createElementBlock("section", _hoisted_1, [
69
- createVNode(BaseSearch, mergeProps({
70
- ref_key: "baseSearchRef",
71
- ref: baseSearchRef,
72
- "display-value": unref(valueRef),
73
- "clear-pattern-on-open-menu": false,
74
- placeholder: __props.placeholder,
75
- clearable: __props.clearable,
76
- onKeydown,
77
- onSearch: search,
78
- onOpenMenu,
79
- onCloseMenu
80
- }, _ctx.$attrs), {
81
- menu: withCtx(() => [
82
- !unref(valueRef) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
83
- createVNode(RecommendMenu, {
84
- "common-list": __props.commonList,
85
- "recent-list": __props.recentList,
86
- deletable: __props.recommendDeletable,
87
- onDelete: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("delete", $event)),
88
- onChoose
89
- }, null, 8, ["common-list", "recent-list", "deletable"]),
90
- !__props.commonList.length && !__props.recentList.length ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
91
- _hoisted_2
92
- ]) : createCommentVNode("v-if", true)
93
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
94
- unref(parsedOptions).length ? (openBlock(), createElementBlock("section", mergeProps({
95
- key: 0,
96
- class: "recommend-search__optionContainer"
97
- }, unref(containerProps), { style: { "height": "256px" } }), [
98
- createElementVNode("section", mergeProps({ class: "recommend-search__optionList" }, unref(wrapperProps)), [
99
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (option) => {
100
- return openBlock(), createElementBlock("div", {
101
- onClick: ($event) => onChoose({ value: option.data }),
102
- key: option.data.itemObj,
103
- class: "recommend-search__option"
104
- }, [
105
- createElementVNode("div", {
106
- class: "recommend-search__optionText",
107
- title: option.data.itemObj
108
- }, toDisplayString(option.data.itemObj), 9, _hoisted_4)
109
- ], 8, _hoisted_3);
110
- }), 128))
111
- ], 16)
112
- ], 16)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
113
- _hoisted_5
114
- ])
115
- ], 64))
116
- ]),
117
- _: 3
118
- }, 16, ["display-value", "placeholder", "clearable"])
119
- ]);
120
- };
121
- }
122
- });
123
- var RecommendInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendInput.vue"]]);
124
-
125
- export { RecommendInput as default };
1
+ import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,mergeProps as s,unref as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as v,renderList as y,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as _}from"@vueuse/core";import b from"./RecommendMenu.vue.js";import j from"./BaseSearch.vue.js";import k from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"recommend-search"},L=v("section",{class:"recommend-search__empty"},"暂无数据",-1),M=["onClick"],O=["title"],w=v("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=k(e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:k}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const x=f(A,"value",k);o(x,S),n((()=>S(x.value)));const D=l((()=>x.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function R(e){x.value=e,k("search",e)}function $(){k("openMenu")}function B(){k("closeMenu")}function P({type:e,value:t}){var o;x.value=t.itemObj,null==(o=C.value)||o.closeMenu(),k("choose",{type:e,value:t.itemObj})}const{list:I,wrapperProps:E,containerProps:H}=_(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(r(),a("section",g,[c(j,s({ref_key:"baseSearchRef",ref:C,"display-value":i(x),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:R,onOpenMenu:$,onCloseMenu:B},t.$attrs),{menu:m((()=>[i(x)?(r(),a(u,{key:1},[i(D).length?(r(),a("section",s({key:0,class:"recommend-search__optionContainer"},i(H),{style:{height:"256px"}}),[v("section",s({class:"recommend-search__optionList"},i(E)),[(r(!0),a(u,null,y(i(I),(e=>(r(),a("div",{onClick:t=>P({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[v("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[w]))],64)):(r(),a(u,{key:0},[c(b,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:P},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}}),[["__file","RecommendInput.vue"]]);export{A as default};
@@ -1,104 +1 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, createBlock, unref, createCommentVNode, Fragment, renderList, withCtx, toDisplayString } from 'vue';
2
- import { TrashOutline } from '@vicons/ionicons5';
3
- import { NIcon, NTag } from 'naive-ui';
4
- import { RecommendType } from '../constant/index.js';
5
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
6
-
7
- const _hoisted_1 = { class: "recommend-search__menuRecommend" };
8
- const _hoisted_2 = {
9
- key: 0,
10
- class: "recommend-search__commonRecommend"
11
- };
12
- const _hoisted_3 = { class: "recommend-search__menuRecommendList" };
13
- const _hoisted_4 = {
14
- key: 1,
15
- class: "recommend-search__recentRecommend"
16
- };
17
- const _hoisted_5 = { class: "recommend-search__menuRecommendList" };
18
- const _sfc_main = /* @__PURE__ */ defineComponent({
19
- __name: "RecommendMenu",
20
- props: {
21
- getDisplayValue: { type: Function, default: (item) => item.itemObj },
22
- commonList: { default: () => [] },
23
- recentList: { default: () => [] },
24
- deletable: { type: Boolean }
25
- },
26
- emits: ["delete", "choose"],
27
- setup(__props, { emit: emits }) {
28
- function clickTag(type, value) {
29
- emits("choose", { type, value });
30
- }
31
- function clickCommonTag(value) {
32
- clickTag(RecommendType.COMMONLY, value);
33
- }
34
- function clickRecentTag(value) {
35
- clickTag(RecommendType.RECENTLY, value);
36
- }
37
- function deleteTag(type) {
38
- emits("delete", type);
39
- }
40
- function deleteCommonTag() {
41
- deleteTag(RecommendType.COMMONLY);
42
- }
43
- function deleteRecentTag() {
44
- deleteTag(RecommendType.RECENTLY);
45
- }
46
- return (_ctx, _cache) => {
47
- return openBlock(), createElementBlock("section", _hoisted_1, [
48
- __props.recentList.length ? (openBlock(), createElementBlock("section", _hoisted_2, [
49
- createElementVNode("header", null, [
50
- createTextVNode(" \u6700\u8FD1\u641C\u7D22 "),
51
- __props.deletable ? (openBlock(), createBlock(unref(NIcon), {
52
- key: 0,
53
- component: unref(TrashOutline),
54
- onClick: deleteCommonTag
55
- }, null, 8, ["component"])) : createCommentVNode("v-if", true)
56
- ]),
57
- createElementVNode("div", _hoisted_3, [
58
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.recentList, (item) => {
59
- return openBlock(), createBlock(unref(NTag), {
60
- size: "small",
61
- onClick: ($event) => clickRecentTag(item),
62
- type: "primary",
63
- key: item.itemObj
64
- }, {
65
- default: withCtx(() => [
66
- createTextVNode(toDisplayString(__props.getDisplayValue(item)), 1)
67
- ]),
68
- _: 2
69
- }, 1032, ["onClick"]);
70
- }), 128))
71
- ])
72
- ])) : createCommentVNode("v-if", true),
73
- __props.commonList.length ? (openBlock(), createElementBlock("section", _hoisted_4, [
74
- createElementVNode("header", null, [
75
- createTextVNode(" \u5E38\u7528\u641C\u7D22 "),
76
- __props.deletable ? (openBlock(), createBlock(unref(NIcon), {
77
- key: 0,
78
- component: unref(TrashOutline),
79
- onClick: deleteRecentTag
80
- }, null, 8, ["component"])) : createCommentVNode("v-if", true)
81
- ]),
82
- createElementVNode("div", _hoisted_5, [
83
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.commonList, (item) => {
84
- return openBlock(), createBlock(unref(NTag), {
85
- size: "small",
86
- onClick: ($event) => clickCommonTag(item),
87
- type: "primary",
88
- key: item.itemObj
89
- }, {
90
- default: withCtx(() => [
91
- createTextVNode(toDisplayString(__props.getDisplayValue(item)), 1)
92
- ]),
93
- _: 2
94
- }, 1032, ["onClick"]);
95
- }), 128))
96
- ])
97
- ])) : createCommentVNode("v-if", true)
98
- ]);
99
- };
100
- }
101
- });
102
- var RecommendMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendMenu.vue"]]);
103
-
104
- export { RecommendMenu as default };
1
+ import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as f}from"naive-ui";import{RecommendType as v}from"../constant/index.js";import _ from"../../../../_virtual/plugin-vue_export-helper.js";const y={class:"recommend-search__menuRecommend"},h={key:0,class:"recommend-search__commonRecommend"},k={class:"recommend-search__menuRecommendList"},L={key:1,class:"recommend-search__recentRecommend"},C={class:"recommend-search__menuRecommendList"};var R=_(e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:_}){function R(e,n){_("choose",{type:e,value:n})}function O(e){_("delete",e)}function b(){O(v.COMMONLY)}function g(){O(v.RECENTLY)}return(_,O)=>(n(),o("section",y,[e.recentList.length?(n(),o("section",h,[t("header",null,[m(" 最近搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:b},null,8,["component"])):c("v-if",!0)]),t("div",k,[(n(!0),o(s,null,r(e.recentList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.RECENTLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0),e.commonList.length?(n(),o("section",L,[t("header",null,[m(" 常用搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:g},null,8,["component"])):c("v-if",!0)]),t("div",C,[(n(!0),o(s,null,r(e.commonList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.COMMONLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0)]))}}),[["__file","RecommendMenu.vue"]]);export{R as default};
@@ -1,146 +1 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, mergeProps, unref, isRef, withCtx, createElementVNode, normalizeProps, guardReactiveProps, Fragment, renderList, normalizeClass, toDisplayString, createBlock, createCommentVNode, renderSlot } from 'vue';
2
- import { jsonParse } from '../../../../shared/utils/index.js';
3
- import { Checkmark } from '@vicons/ionicons5';
4
- import { useVModel, useVirtualList } from '@vueuse/core';
5
- import { isObject } from 'lodash-es';
6
- import BaseSearch from './BaseSearch.vue.js';
7
- import { NIcon } from 'naive-ui';
8
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
9
-
10
- const _hoisted_1 = { class: "recommend-search" };
11
- const _hoisted_2 = ["onClick"];
12
- const _hoisted_3 = ["title"];
13
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("section", { class: "recommend-search__empty" }, "\u6682\u65E0\u6570\u636E", -1);
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- __name: "RecommendSelect",
16
- props: {
17
- value: { type: [String, Number] },
18
- labelKey: { type: String, default: "label" },
19
- valueKey: { type: String, default: "value" },
20
- placeholder: { type: String, default: "\u8BF7\u9009\u62E9" },
21
- editPlaceholder: { type: String, default: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22" },
22
- options: { type: Array, default: () => [] },
23
- commonList: { type: Array, default: () => [] },
24
- recentList: { type: Array, default: () => [] }
25
- },
26
- emits: ["update:value", "search", "delete", "choose", "clear", "openMenu", "closeMenu"],
27
- setup(__props, { emit: emits }) {
28
- const props = __props;
29
- const showRef = ref(false);
30
- const displayPlaceholder = computed(() => {
31
- return showRef.value ? props.editPlaceholder : props.placeholder;
32
- });
33
- const currentOption = ref();
34
- function getRecommendOption(item) {
35
- return jsonParse(item.itemObj);
36
- }
37
- const commonOptions = computed(() => props.commonList.map(getRecommendOption));
38
- const recentOptions = computed(() => props.recentList.map(getRecommendOption));
39
- const optionWithoutRecommend = computed(() => {
40
- return props.options.filter((option) => {
41
- return commonOptions.value.every(notInList) && recentOptions.value.every(notInList);
42
- function notInList(item) {
43
- return item[props.valueKey] !== option[props.valueKey];
44
- }
45
- });
46
- });
47
- function getDisplayValue(item) {
48
- let result = "";
49
- [...parsedOptions.value, currentOption.value].find((option) => {
50
- if (!isObject(option) || option[props.valueKey] !== item)
51
- return;
52
- result = option[props.labelKey];
53
- return true;
54
- });
55
- return result;
56
- }
57
- const baseSearchRef = ref();
58
- const valueRef = useVModel(props, "value", emits);
59
- const parsedOptions = computed(() => {
60
- return [...commonOptions.value, ...recentOptions.value, ...optionWithoutRecommend.value];
61
- });
62
- function search(value = "") {
63
- emits("search", value);
64
- }
65
- function onOpenMenu() {
66
- search();
67
- emits("openMenu");
68
- }
69
- function onCloseMenu() {
70
- emits("closeMenu");
71
- }
72
- function onClear() {
73
- valueRef.value = null;
74
- emits("clear");
75
- }
76
- function emitChoose(value) {
77
- emits("choose", { value, option: { ...currentOption.value } });
78
- }
79
- function onChooseOption(option) {
80
- var _a;
81
- if (!isObject(option))
82
- return;
83
- valueRef.value = option[props.valueKey];
84
- (_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
85
- currentOption.value = option;
86
- emitChoose(option[props.valueKey]);
87
- }
88
- const { list, wrapperProps, containerProps } = useVirtualList(parsedOptions, { itemHeight: 32, overscan: 5 });
89
- return (_ctx, _cache) => {
90
- return openBlock(), createElementBlock("section", _hoisted_1, [
91
- createVNode(BaseSearch, mergeProps({
92
- ref_key: "baseSearchRef",
93
- ref: baseSearchRef,
94
- value: unref(valueRef),
95
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(valueRef) ? valueRef.value = $event : null),
96
- show: showRef.value,
97
- "onUpdate:show": _cache[1] || (_cache[1] = ($event) => showRef.value = $event),
98
- "display-value": getDisplayValue(unref(valueRef)),
99
- placeholder: unref(displayPlaceholder),
100
- onOpenMenu,
101
- onCloseMenu,
102
- onSearch: search,
103
- onClear
104
- }, _ctx.$attrs), {
105
- menu: withCtx(() => [
106
- unref(parsedOptions).length ? (openBlock(), createElementBlock("section", mergeProps({
107
- key: 0,
108
- class: "recommend-search__optionContainer",
109
- style: { "height": "256px" }
110
- }, unref(containerProps)), [
111
- createElementVNode("section", normalizeProps(guardReactiveProps(unref(wrapperProps))), [
112
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (option) => {
113
- return openBlock(), createElementBlock("div", {
114
- onClick: ($event) => onChooseOption(option.data),
115
- key: option.data[__props.valueKey],
116
- class: normalizeClass([
117
- "recommend-search__option",
118
- {
119
- "is-active": option.data[__props.valueKey] === unref(valueRef)
120
- }
121
- ])
122
- }, [
123
- createElementVNode("div", {
124
- class: "recommend-search__optionText",
125
- title: option.data.itemObj
126
- }, toDisplayString(option.data[__props.labelKey]), 9, _hoisted_3),
127
- option.data[__props.valueKey] === unref(valueRef) ? (openBlock(), createBlock(unref(NIcon), {
128
- key: 0,
129
- component: unref(Checkmark)
130
- }, null, 8, ["component"])) : createCommentVNode("v-if", true)
131
- ], 10, _hoisted_2);
132
- }), 128))
133
- ], 16)
134
- ], 16)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
135
- _hoisted_4
136
- ])
137
- ]),
138
- _: 3
139
- }, 16, ["value", "show", "display-value", "placeholder"])
140
- ]);
141
- };
142
- }
143
- });
144
- var RecommendSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendSelect.vue"]]);
145
-
146
- export { RecommendSelect as default };
1
+ import{defineComponent as e,ref as t,computed as a,openBlock as l,createElementBlock as o,createVNode as n,mergeProps as r,unref as u,isRef as i,withCtx as c,createElementVNode as s,normalizeProps as p,guardReactiveProps as v,Fragment as m,renderList as d,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as _,renderSlot as K}from"vue";import{jsonParse as S}from"../../../../shared/utils/index.js";import{Checkmark as g}from"@vicons/ionicons5";import{useVModel as b,useVirtualList as k}from"@vueuse/core";import{isObject as M}from"lodash-es";import j from"./BaseSearch.vue.js";import{NIcon as x}from"naive-ui";import C from"../../../../_virtual/plugin-vue_export-helper.js";const w={class:"recommend-search"},L=["onClick"],P=["title"],A=s("section",{class:"recommend-search__empty"},"暂无数据",-1);var O=C(e({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:C}){const O=e,R=t(!1),U=a((()=>R.value?O.editPlaceholder:O.placeholder)),$=t();function B(e){return S(e.itemObj)}const H=a((()=>O.commonList.map(B))),N=a((()=>O.recentList.map(B))),T=a((()=>O.options.filter((e=>{return H.value.every(t)&&N.value.every(t);function t(t){return t[O.valueKey]!==e[O.valueKey]}}))));function q(e){let t="";return[...E.value,$.value].find((a=>{if(M(a)&&a[O.valueKey]===e)return t=a[O.labelKey],!0})),t}const z=t(),D=b(O,"value",C),E=a((()=>[...H.value,...N.value,...T.value]));function F(e=""){C("search",e)}function G(){F(),C("openMenu")}function I(){C("closeMenu")}function J(){D.value=null,C("clear")}function Q(e){var t,a;M(e)&&(D.value=e[O.valueKey],null==(t=z.value)||t.closeMenu(),$.value=e,a=e[O.valueKey],C("choose",{value:a,option:{...$.value}}))}const{list:V,wrapperProps:W,containerProps:X}=k(E,{itemHeight:32,overscan:5});return(t,a)=>(l(),o("section",w,[n(j,r({ref_key:"baseSearchRef",ref:z,value:u(D),"onUpdate:value":a[0]||(a[0]=e=>i(D)?D.value=e:null),show:R.value,"onUpdate:show":a[1]||(a[1]=e=>R.value=e),"display-value":q(u(D)),placeholder:u(U),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},t.$attrs),{menu:c((()=>[u(E).length?(l(),o("section",r({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},u(X)),[s("section",p(v(u(W))),[(l(!0),o(m,null,d(u(V),(t=>(l(),o("div",{onClick:e=>Q(t.data),key:t.data[e.valueKey],class:y(["recommend-search__option",{"is-active":t.data[e.valueKey]===u(D)}])},[s("div",{class:"recommend-search__optionText",title:t.data.itemObj},f(t.data[e.labelKey]),9,P),t.data[e.valueKey]===u(D)?(l(),h(u(x),{key:0,component:u(g)},null,8,["component"])):_("v-if",!0)],10,L)))),128))],16)],16)):K(t.$slots,"empty",{key:1},(()=>[A]))])),_:3},16,["value","show","display-value","placeholder"])]))}}),[["__file","RecommendSelect.vue"]]);export{O as default};
@@ -1,7 +1 @@
1
- var RecommendType = /* @__PURE__ */ ((RecommendType2) => {
2
- RecommendType2["COMMONLY"] = "COMMONLY";
3
- RecommendType2["RECENTLY"] = "RECENTLY";
4
- return RecommendType2;
5
- })(RecommendType || {});
6
-
7
- export { RecommendType };
1
+ var C=(C=>(C.COMMONLY="COMMONLY",C.RECENTLY="RECENTLY",C))(C||{});export{C as RecommendType};